/* ============================================
   FAF Builders Corp — Design System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Brand colors */
  --navy: #234A78;
  --navy-deep: #17324F;
  --navy-darker: #0D1F33;
  --slate: #40414A;
  --slate-light: #6B6C75;
  --gold: #4F7CAC;
  --gold-light: #6E97C0;

  /* Neutrals */
  --cream: #F4F5F7;
  --cream-deep: #E8EAED;
  --white: #FFFFFF;
  --border: #DEE1E6;
  --ink: #1C1D22;

  /* Type */
  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --max-width: 1200px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(13, 31, 51, 0.08);
  --shadow-md: 0 8px 24px rgba(13, 31, 51, 0.12);
  --shadow-lg: 0 20px 48px rgba(13, 31, 51, 0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--navy-darker);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: '';
  display: inline-grid;
  grid-template-columns: repeat(2, 4px);
  grid-template-rows: repeat(2, 4px);
  gap: 2px;
  width: 10px;
  height: 10px;
}
.eyebrow::before {
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 4px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 6px 0 / 4px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 6px / 4px 4px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 6px 6px / 4px 4px no-repeat;
}

p { color: var(--slate); }
p.lead { font-size: 1.15rem; color: var(--slate); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-gold:hover { background: var(--gold-light); box-shadow: var(--shadow-md); }

.btn-outline-light {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); border-color: var(--white); }

.btn-outline-navy {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }

.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-deep); box-shadow: var(--shadow-md); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 68px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--slate);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--navy); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gold);
}

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--navy-darker);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--navy-darker) 0%, var(--navy-deep) 55%, var(--navy) 100%);
  color: var(--white);
  overflow: hidden;
  padding: 100px 0 80px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13,31,51,0.55), rgba(13,31,51,0.75)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 40px);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-grid-solo { grid-template-columns: 1fr; max-width: 640px; }

.hero .eyebrow { color: var(--gold-light); }
.hero .eyebrow::before {
  background:
    linear-gradient(var(--gold-light), var(--gold-light)) 0 0 / 4px 4px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) 6px 0 / 4px 4px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) 0 6px / 4px 4px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) 6px 6px / 4px 4px no-repeat;
}
.hero h1 { color: var(--white); margin-bottom: 22px; }
.hero h1 em { font-style: normal; color: var(--gold-light); }

.hero .lead { color: rgba(255,255,255,0.82); max-width: 46ch; margin-bottom: 34px; }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 40px;
}
.hero-stats .stat-num {
  font-family: var(--font-head);
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-light);
}
.hero-stats .stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

/* ---------- Sections ---------- */
section { padding: 96px 0; }
section.tight { padding: 64px 0; }
.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.bg-cream { background: var(--cream); }
.bg-navy { background: var(--navy-darker); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.75); }

/* ---------- Services grid ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--gold);
}

.icon-frame {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: var(--navy-darker);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.icon-frame svg { width: 26px; height: 26px; stroke: var(--gold-light); }

.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 0.95rem; }
.service-card .learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--navy);
}

/* ---------- Why choose us ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.feature-item { text-align: left; }
.feature-item .icon-frame { background: var(--cream-deep); }
.feature-item .icon-frame svg { stroke: var(--navy); }
.feature-item h3 { font-size: 1.08rem; margin-bottom: 8px; }
.feature-item p { font-size: 0.92rem; }

/* ---------- Spotlight ---------- */
.spotlight-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.spotlight-grid .spot-main { grid-row: 1 / 3; }
.spotlight-grid > div {
  border-radius: 8px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  min-height: 220px;
}

/* ---------- Filter bar ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.filter-btn {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--slate);
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy-darker); border-color: var(--navy-darker); color: var(--white); }
.gallery-item.hidden { display: none; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--slate) 0%, var(--navy-darker) 100%);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.gallery-item::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 26px);
  z-index: -1;
}
.gallery-item.has-photo {
  background-size: cover;
  background-position: center;
}
.gallery-item.has-photo::before {
  background-image: linear-gradient(0deg, rgba(13,31,51,0.88) 0%, rgba(13,31,51,0.15) 55%, rgba(13,31,51,0.05) 100%);
}
.gallery-item .tag {
  padding: 20px;
  color: var(--white);
}
.gallery-item .tag .eyebrow { color: var(--gold-light); margin-bottom: 6px; }
.gallery-item .tag .eyebrow::before {
  background:
    linear-gradient(var(--gold-light), var(--gold-light)) 0 0 / 4px 4px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) 6px 0 / 4px 4px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) 0 6px / 4px 4px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) 6px 6px / 4px 4px no-repeat;
}
.gallery-item h3 { color: var(--white); font-size: 1.15rem; }
.gallery-item .tag p { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-top: 6px; }

.feature-banner {
  position: relative;
  aspect-ratio: 21/9;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(150deg, var(--slate) 0%, var(--navy-darker) 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.feature-banner.has-photo::before {
  content: '';
  position: absolute; inset: 0;
  background-image: linear-gradient(0deg, rgba(13,31,51,0.88) 0%, rgba(13,31,51,0.1) 60%, rgba(13,31,51,0.05) 100%);
  z-index: -1;
}
.feature-banner .tag { padding: 32px; color: var(--white); max-width: 480px; }
.feature-banner .tag .eyebrow { color: var(--gold-light); margin-bottom: 6px; }
.feature-banner .tag .eyebrow::before {
  background:
    linear-gradient(var(--gold-light), var(--gold-light)) 0 0 / 4px 4px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) 6px 0 / 4px 4px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) 0 6px / 4px 4px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) 6px 6px / 4px 4px no-repeat;
}
.feature-banner h3 { color: var(--white); font-size: 1.4rem; }
.feature-banner .tag p { color: rgba(255,255,255,0.75); font-size: 0.95rem; margin-top: 8px; }
@media (max-width: 720px) {
  .feature-banner { aspect-ratio: 4/5; }
}

/* ---------- Service detail rows ---------- */
.detail-row-solo {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
  max-width: 720px;
}
.detail-row-solo:last-child { border-bottom: none; }
.detail-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--border);
  line-height: 1;
  flex-shrink: 0;
  padding-top: 4px;
}
.detail-list { margin-top: 22px; display: grid; gap: 12px; }
.detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.96rem;
  color: var(--slate);
}
.detail-list li::before {
  content: '';
  width: 8px; height: 8px;
  margin-top: 6px;
  background: var(--gold);
  border-radius: 1px;
  flex-shrink: 0;
}

/* ---------- Process steps ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: step;
}
.process-step { position: relative; padding-top: 8px; }
.process-step .step-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--gold);
  opacity: 0.5;
  margin-bottom: 14px;
}
.process-step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.process-step p { font-size: 0.92rem; }

/* ---------- Service area ---------- */
.area-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.area-wrap-solo { grid-template-columns: 1fr; max-width: 640px; }
.area-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; margin-top: 28px; }
.area-list li { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 600; font-size: 0.98rem; color: var(--navy-darker); }
.area-list li::before {
  content: '';
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 1px;
  flex-shrink: 0;
}
/* ---------- Stats band ---------- */
.stats-band {
  background: var(--navy-darker);
  color: var(--white);
  padding: 64px 0;
}
.stats-band .stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}
.stats-band .stat-num {
  font-family: var(--font-head);
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--gold-light);
}
.stats-band .stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin-top: 6px;
}

/* ---------- Testimonial / CTA band ---------- */
.cta-band {
  background: var(--navy-darker);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 18px; }
.cta-band p { max-width: 560px; margin: 0 auto 32px; color: rgba(255,255,255,0.78); }

/* ---------- Forms ---------- */
.contact-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: start; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 8px;
  color: var(--navy-darker);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.96rem;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.field textarea { resize: vertical; min-height: 120px; }

.contact-info-card {
  background: var(--navy-darker);
  color: var(--white);
  padding: 40px;
  border-radius: 8px;
}
.contact-info-card h3 { color: var(--white); margin-bottom: 24px; }
.contact-info-row {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-info-row:last-child { border-bottom: none; }
.contact-info-row .icon-frame { background: rgba(79,124,172,0.18); width: 42px; height: 42px; flex-shrink: 0; margin-bottom: 0; }
.contact-info-row .icon-frame svg { width: 20px; height: 20px; }
.contact-info-row .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.55); margin-bottom: 3px; }
.contact-info-row .value { font-family: var(--font-head); font-weight: 600; }

.form-note {
  font-size: 0.85rem;
  color: var(--slate-light);
  margin-top: 16px;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  background: var(--navy-darker);
  color: var(--white);
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 40px);
}
.page-header h1 { color: var(--white); position: relative; }
.breadcrumb {
  display: flex; gap: 8px; align-items: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 16px;
  position: relative;
}
.breadcrumb a:hover { color: var(--gold-light); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-darker);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand img { height: 44px; margin-bottom: 16px; background: var(--white); padding: 6px 10px; border-radius: 6px; }
.footer-brand p { font-size: 0.9rem; color: rgba(255,255,255,0.6); max-width: 30ch; }
.footer-col h4 {
  font-family: var(--font-head);
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--gold-light); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 420px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .area-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-outline-navy { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px 32px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .hero { padding: 56px 0 48px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .services-grid, .features-grid, .gallery-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .stats-band .stats-row { grid-template-columns: 1fr 1fr; gap: 26px; }
  .spotlight-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .spotlight-grid .spot-main { grid-row: auto; }
  section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
