/* ============================================================
   BRICKHAUS CONSTRUCTION LTD — Stylesheet
   ============================================================ */

/* --- TOKENS ------------------------------------------------- */
:root {
  --blue:        #005BFF;
  --blue-light:  #1E6BFF;
  --black:       #0A0A0A;
  --dark:        #1E1E1E;
  --white:       #FFFFFF;
  --grey-light:  #F5F7FA;
  --grey-mid:    #9BA3AF;
  --grey-border: #2C2C2C;

  --font-head:   'Montserrat', sans-serif;
  --font-body:   'Inter', sans-serif;

  --container:   1200px;
  --radius:      4px;
  --radius-lg:   8px;

  --transition:  0.25s ease;
  --header-h:    72px;
}

/* --- RESET -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, select, textarea { font: inherit; }

/* --- UTILITY ----------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--dark {
  background: var(--dark);
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section__header--light {
  text-align: center;
}

.section__eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}

.section__eyebrow--blue { color: var(--blue); }

.section__heading {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--black);
  line-height: 1.15;
  margin-bottom: 16px;
}

.section__heading--light { color: var(--white); }

.section__sub {
  color: var(--grey-mid);
  font-size: 1.05rem;
  line-height: 1.7;
}

.section__sub--muted { color: var(--grey-mid); }

/* --- BUTTONS ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--blue-light);
  border-color: var(--blue-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 91, 255, 0.35);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.4);
}

.btn--secondary:hover,
.btn--secondary:focus-visible {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.btn--full { width: 100%; }

/* --- LOGO -------------------------------------------------- */
.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  height: 44px;
  width: auto;
  display: block;
  /* PNG has transparency — renders correctly on dark backgrounds */
}

.logo__img--footer {
  height: 36px;
  width: auto;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.logo--footer:hover .logo__img--footer {
  opacity: 1;
}

/* --- HEADER ------------------------------------------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--black);
  border-bottom: 1px solid var(--grey-border);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--blue);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  transform: scaleX(1);
}

.nav__link--cta {
  background: var(--blue);
  color: var(--white);
  padding: 8px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--blue);
}

.nav__link--cta::after { display: none; }

.nav__link--cta:hover,
.nav__link--cta:focus-visible {
  color: var(--white);
  background: var(--blue-light);
  border-color: var(--blue-light);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  z-index: 101;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --- HERO -------------------------------------------------- */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(0,91,255,0.08) 0%, transparent 50%),
    var(--black);
  z-index: 0;
}

/* Subtle brick texture via CSS */
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 28px,
      rgba(255,255,255,0.015) 28px,
      rgba(255,255,255,0.015) 30px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 58px,
      rgba(255,255,255,0.01) 58px,
      rgba(255,255,255,0.01) 60px
    );
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 80px 24px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}

.hero__eyebrow {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}

.hero__heading {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 0;
  letter-spacing: -0.01em;
}

/* Signature element: split BRICK/HAUS colour treatment */
.hero__heading--brick {
  color: var(--white);
  letter-spacing: 0.04em;
}

.hero__heading--haus {
  color: var(--blue);
  letter-spacing: 0.04em;
}

.hero__heading--light {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 400;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-top: 8px;
}

/* The signature dash rule */
.hero__rule {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  margin: 32px 0;
}

.hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.hero__scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  position: relative;
}

.hero__scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--blue);
  border-radius: 2px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50%       { opacity: 0.3; transform: translateX(-50%) translateY(8px); }
}

/* --- SERVICES ---------------------------------------------- */
.services {
  background: var(--grey-light);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,91,255,0.1);
  border-color: rgba(0,91,255,0.2);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(0,91,255,0.06);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: background var(--transition);
}

.service-card:hover .service-card__icon {
  background: rgba(0,91,255,0.12);
}

.service-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}

.service-card__desc {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.65;
}

/* --- ABOUT ------------------------------------------------- */
.about {
  background: var(--white);
}

.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__visual {
  position: relative;
}

.about__brick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 32px;
}

.brick {
  height: 48px;
  border-radius: 2px;
}

.brick--blue  { background: var(--blue); }
.brick--dark  { background: var(--dark); }
.brick--white { background: var(--grey-light); border: 1px solid rgba(0,0,0,0.08); }

.about__stat-stack {
  display: flex;
  gap: 32px;
  align-items: center;
  padding: 28px;
  background: var(--dark);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--blue);
}

.about__stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__stat-num {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.about__stat-unit {
  color: var(--blue);
}

.about__stat-label {
  font-size: 0.8rem;
  color: var(--grey-mid);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.about__divider {
  width: 1px;
  height: 48px;
  background: var(--grey-border);
  flex-shrink: 0;
}

.about__text {
  color: #444;
  line-height: 1.75;
  margin-bottom: 16px;
}

.about__pillars {
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about__pillars li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
}

.pillar__marker {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 1px;
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* --- PROJECTS ---------------------------------------------- */
.projects {
  background: var(--dark);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #111;
  border: 1px solid var(--grey-border);
  cursor: pointer;
}

.project-card:hover .project-card__overlay {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover .project-card__img--placeholder {
  background: rgba(0,91,255,0.12);
}

.project-card__img {
  position: absolute;
  inset: 0;
  transition: background var(--transition);
}

.project-card__img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.03);
}

.project-card__placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.4;
}

.project-card__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: all var(--transition);
}

.project-card__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.project-card__type {
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.projects__note {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: var(--grey-mid);
  font-style: italic;
}

/* --- TESTIMONIALS ------------------------------------------ */
.testimonials {
  background: var(--white);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  position: relative;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform var(--transition), box-shadow var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.testimonial-card__quote {
  font-family: Georgia, serif;
  font-size: 4rem;
  color: var(--blue);
  line-height: 0.8;
  margin-bottom: 16px;
  opacity: 0.6;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: #444;
  line-height: 1.75;
  margin-bottom: 24px;
}

.testimonial-card__footer {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,91,255,0.15);
}

.testimonial-card__name {
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--black);
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--blue);
  font-weight: 500;
}

/* --- CONTACT ----------------------------------------------- */
.contact {
  background: var(--dark);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.contact__text {
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
  margin: 16px 0 32px;
}

.contact__details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__details li {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact__link {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.contact__link:hover {
  color: var(--blue);
}

/* Form */
.contact__form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  font-family: var(--font-head);
  text-transform: uppercase;
  font-size: 0.7rem;
}

.form-label span { color: var(--blue); }

.form-input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  width: 100%;
}

.form-input::placeholder { color: rgba(255,255,255,0.25); }

.form-input:focus {
  border-color: var(--blue);
  background: rgba(0,91,255,0.06);
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%23666' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-select option {
  background: var(--dark);
  color: var(--white);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.contact__form .btn--full {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.form__success {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 0.9rem;
  padding: 14px 16px;
  background: rgba(0,91,255,0.15);
  border: 1px solid rgba(0,91,255,0.3);
  border-radius: var(--radius);
}

.form__success[hidden] { display: none; }

/* --- FOOTER ------------------------------------------------ */
.footer {
  background: var(--black);
  border-top: 1px solid var(--grey-border);
  padding: 40px 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer__nav {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer__link {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.footer__link:hover {
  color: var(--blue);
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  white-space: nowrap;
}

/* --- RESPONSIVE -------------------------------------------- */
@media (max-width: 1024px) {
  .services__grid,
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about__visual {
    order: -1;
  }

  .contact__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--black);
    padding: 32px 24px;
    transform: translateX(100%);
    transition: transform var(--transition);
    overflow-y: auto;
    border-top: 1px solid var(--grey-border);
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .nav__list li {
    width: 100%;
    border-bottom: 1px solid var(--grey-border);
  }

  .nav__link {
    display: block;
    padding: 20px 0;
    font-size: 1rem;
  }

  .nav__link::after { display: none; }

  .nav__link--cta {
    display: inline-flex;
    margin-top: 24px;
    padding: 12px 24px;
  }

  /* Hero */
  .hero__heading {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Grids */
  .services__grid,
  .projects__grid,
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  /* Contact form */
  .contact__form {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .footer__nav {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .about__stat-stack {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .about__divider {
    width: 48px;
    height: 1px;
  }
}

/* --- ACCESSIBILITY ----------------------------------------- */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
