/* =========================================================
   Virginia Waterproofing & Masonry, Inc. — Design System
   Direction: luxury-refined / editorial for a structural firm
   Palette: deep navy · ivory · brass accent
   Type: Fraunces (display) · Space Grotesk (labels) · Figtree (body)
   ========================================================= */

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

:root {
  --navy-950: #06172e;
  --navy-900: #0a2043;
  --navy-800: #0f2d5c;
  --navy-700: #16407e;
  --blue-500: #2f6fb0;
  --blue-400: #4a8bd0;
  --ivory:    #f5f1e8;
  --cream:    #ece5d6;
  --paper:    #fbf9f4;
  --brass:    #c39a4e;
  --brass-lt: #d8b978;
  --text:     #10233f;
  --muted:    #4f5e73;
  --muted-lt: #a9b6c6;
  --border:   #dfd8c8;
  --border-dk: rgba(255,255,255,0.12);

  --maxw: 1280px;
  --gutter: clamp(16px, 2.2vw, 36px);
  --radius: 2px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 76px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: 'Fraunces', serif; font-weight: 600; line-height: 1.05; letter-spacing: -0.01em; color: var(--text); }
.display { font-size: clamp(2.6rem, 6.5vw, 5.4rem); font-weight: 600; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); }
p  { color: var(--muted); font-size: 1.05rem; }
a  { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: 'Space Grotesk', monospace;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--brass); display: inline-block; }
.eyebrow.center::before { display: none; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
section { padding-block: clamp(52px, 9vw, 132px); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  text-align: center;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.82rem; font-weight: 500; line-height: 1;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 15px 28px; border-radius: var(--radius);
  transition: transform .15s var(--ease), background .2s, color .2s, box-shadow .2s;
  cursor: pointer; border: 1px solid transparent;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brass); color: var(--navy-950); }
.btn-primary:hover { background: var(--brass-lt); box-shadow: 0 12px 30px -12px rgba(195,154,78,.7); }
.btn-ghost { border-color: var(--border-dk); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-lt); }
.btn-dark { background: var(--navy-900); color: var(--ivory); }
.btn-dark:hover { background: var(--navy-800); }
.btn svg { width: 15px; height: 15px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251,249,244,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: clamp(24px, 4vw, 60px); height: var(--header-h); }
.nav-right { display: flex; align-items: center; gap: clamp(22px, 3vw, 40px); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 52px; width: auto; display: block; }
.brand-mark { display: none; height: 40px; width: auto; }
.footer-mark { height: 44px; width: auto; }
.brand .brand-txt { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-txt b { font-family: 'Fraunces', serif; font-size: 1.02rem; letter-spacing: -0.01em; color: var(--navy-900); }
.brand .brand-txt span { font-family: 'Fraunces', serif; font-weight: 500; font-size: 0.95rem; letter-spacing: -0.005em; text-transform: none; color: var(--navy-900); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--text);
  position: relative; padding: 6px 0; transition: color .2s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--brass); transition: width .25s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--navy-900); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav .btn-dark { height: 36px; padding: 0 20px; font-size: 0.73rem; }
.nav-phone { font-family: 'Space Grotesk', monospace; font-weight: 600; font-size: 0.9rem; color: var(--navy-900); white-space: nowrap; border-left: 1px solid var(--border); padding-left: 16px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--navy-900); transition: .3s; }

/* Language toggle */
.lang-toggle { display: inline-flex; align-items: stretch; height: 36px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 100%; padding: 0 13px; line-height: 1;
  background: none; border: 0;
  font-family: 'Space Grotesk', monospace; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
  color: var(--muted); cursor: pointer; transition: background .2s, color .2s;
}
.lang-btn + .lang-btn { border-left: 1px solid var(--border); }
.lang-btn.active { background: var(--navy-950); color: var(--ivory); }
.lang-btn:hover:not(.active) { color: var(--navy-900); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-950); color: var(--ivory); overflow: hidden; padding-block: 0; }
/* soft gradient mesh — no grid lines */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(85% 120% at 10% 6%, rgba(74,139,208,0.30) 0%, transparent 46%),
    radial-gradient(75% 100% at 95% 8%, rgba(47,111,176,0.20) 0%, transparent 52%),
    radial-gradient(120% 120% at 88% 108%, rgba(4,15,32,0.9) 0%, transparent 55%),
    linear-gradient(158deg, #071b36 0%, #0a2043 52%, #0d2a54 100%);
}
/* fine film grain */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background-image: var(--grain); background-size: 140px 140px;
  opacity: 0.05; mix-blend-mode: overlay;
}
.hero .wrap { position: relative; z-index: 3; }
.hero h1 { color: var(--paper); margin: 22px 0 24px; }
.hero h1 em { font-style: italic; color: var(--brass-lt); }
.hero p { color: #cdd9ea; max-width: 52ch; font-size: 1.12rem; }
.hero-copy { max-width: 660px; }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-inner { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; padding-block: clamp(48px, 7vw, 92px); }

/* Home: full-bleed photo hero that fits the viewport */
.hero-home { min-height: calc(100dvh - var(--header-h)); display: flex; align-items: center; }
.hero-home > .wrap { width: 100%; }
.hero-home .display { font-size: clamp(2.2rem, 4.4vw, 3.9rem); }
.hero-home h1 { margin: 16px 0 18px; }
.hero-home p { font-size: 1.04rem; }
.hero-home .hero-actions { margin-top: 26px; }
.hero-home .hero-stats { margin-top: 34px; }
/* short viewports: trim the hero so it never needs scrolling */
@media (max-height: 820px) {
  .hero-home .display { font-size: clamp(2rem, 3.6vw, 3rem); }
  .hero-home .hero-stats { margin-top: 24px; }
}
@media (max-height: 680px) {
  .hero-home .hero-stats { display: none; }
}
.hero-home::before {
  background:
    linear-gradient(95deg, rgba(4,15,32,0.95) 0%, rgba(4,15,32,0.82) 40%, rgba(5,18,36,0.45) 76%, rgba(5,18,36,0.30) 100%),
    linear-gradient(180deg, rgba(4,15,32,0.55) 0%, rgba(5,18,36,0.30) 42%, rgba(4,15,32,0.9) 100%);
}
.hero-home .hero-inner { padding-block: clamp(24px, 4vh, 52px); }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% center; z-index: 0;
  filter: saturate(1.04) contrast(1.03);
}
/* inline stat row (replaces the floating badge) */
.hero-stats { display: flex; gap: clamp(28px, 5vw, 52px); margin-top: 46px; flex-wrap: wrap; }
.hero-stat b { font-family: 'Fraunces', serif; font-size: clamp(1.9rem, 3vw, 2.4rem); color: var(--brass-lt); display: block; line-height: 1; }
.hero-stat span { font-family: 'Space Grotesk', monospace; font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: #9fb0c6; margin-top: 9px; display: block; }
.hero-stat + .hero-stat { padding-left: clamp(28px, 5vw, 52px); border-left: 1px solid var(--border-dk); }

/* Compact hero for interior pages (About, Services, Process, Contact) */
.hero-page .hero-inner { padding-block: clamp(30px, 4vw, 54px); }
.hero-page .display { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.hero-page h1 { margin: 12px 0 14px; }
.hero-page p { font-size: 1.05rem; max-width: 62ch; }

/* trust strip */
.trust { background: var(--navy-900); border-top: 1px solid var(--border-dk); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 14px 46px; justify-content: center; align-items: center; padding-block: 22px; }
.trust span { font-family: 'Space Grotesk', monospace; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-lt); display: inline-flex; align-items: center; gap: 10px; }
.trust span b { color: var(--brass-lt); }

/* ---------- Section intro ---------- */
.sec-head { max-width: 66ch; margin-bottom: 56px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin: 18px 0 18px; }

/* ---------- Pillars / value cards ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.pillar { padding: 44px 38px; border-right: 1px solid var(--border); transition: background .3s; position: relative; }
.pillar:last-child { border-right: 0; }
.pillar:hover { background: var(--ivory); }
.pillar .num { font-family: 'Space Grotesk', monospace; font-size: 0.8rem; color: var(--brass); letter-spacing: 0.1em; }
.pillar h3 { margin: 18px 0 12px; }
.pillar p { font-size: 0.98rem; }

/* ---------- Split / alternating feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { width: 100%; height: 520px; object-fit: cover; border-radius: var(--radius); }
.split-media .frame-tag {
  position: absolute; top: 22px; left: 22px;
  background: rgba(6,23,46,.85); color: var(--ivory);
  font-family: 'Space Grotesk', monospace; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 10px 16px; border-radius: var(--radius); backdrop-filter: blur(4px);
}
.checklist { list-style: none; margin-top: 26px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; color: var(--text); font-weight: 500; }
.checklist li svg { flex: none; width: 22px; height: 22px; color: var(--brass); margin-top: 2px; }

/* ---------- Services grid ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.svc { background: var(--paper); padding: 40px 38px; transition: background .3s, transform .3s; position: relative; }
.svc:hover { background: var(--navy-950); }
.svc:hover h3, .svc:hover p, .svc:hover .svc-idx { color: var(--ivory); }
.svc:hover .svc-idx { color: var(--brass-lt); }
.svc-idx { font-family: 'Space Grotesk', monospace; font-size: 0.82rem; color: var(--brass); letter-spacing: 0.14em; transition: color .3s; }
.svc h3 { margin: 16px 0 12px; transition: color .3s; }
.svc p { font-size: 0.97rem; transition: color .3s; }

/* ---------- Process steps ---------- */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 120px 1fr; gap: 40px; padding: 42px 0; border-top: 1px solid var(--border); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--border); }
.step .step-n { font-family: 'Fraunces', serif; font-size: clamp(3rem, 6vw, 4.6rem); color: var(--cream); line-height: 0.8; font-weight: 600; }
.step:hover .step-n { color: var(--brass); }
.step .step-n { transition: color .3s; }
.step h3 { margin-bottom: 12px; }
.step-body { max-width: 60ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-950); color: var(--ivory); position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(65% 130% at 50% -20%, rgba(47,111,176,0.30) 0%, transparent 56%),
    radial-gradient(80% 90% at 50% 125%, rgba(195,154,78,0.12) 0%, transparent 52%),
    linear-gradient(180deg, #071b36 0%, #0a2043 100%);
}
.cta-band::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); background-size: 140px 140px;
  opacity: 0.05; mix-blend-mode: overlay;
}
.cta-band .wrap { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.cta-band h2 { color: var(--paper); margin: 20px 0 16px; }
.cta-band p { color: #c6d2e2; max-width: 52ch; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-info { display: grid; gap: 26px; }
.info-item { display: flex; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.info-item:last-child { border-bottom: 0; }
.info-item .ic { flex: none; width: 44px; height: 44px; border-radius: var(--radius); background: var(--navy-950); color: var(--brass-lt); display: grid; place-items: center; }
.info-item .ic svg { width: 20px; height: 20px; }
.info-item h4 { font-family: 'Space Grotesk', monospace; font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.info-item p, .info-item a { color: var(--text); font-weight: 500; font-size: 1.02rem; }
.info-item a:hover { color: var(--brass); }

.form-card { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(28px, 4vw, 46px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: 'Space Grotesk', monospace; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; font-family: 'Figtree', sans-serif; font-size: 1rem;
  border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(195,154,78,.18);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-note { font-size: 0.82rem; color: var(--muted); margin-top: 8px; }
/* Honeypot anti-spam field — hidden from users, visible to bots */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: var(--muted-lt); padding-top: 80px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 56px; border-bottom: 1px solid var(--border-dk); }
.footer-brand .brand-txt b { color: var(--ivory); }
.footer-brand .brand-txt span { color: var(--ivory); }
.footer-brand p { color: var(--muted-lt); font-size: 0.95rem; margin-top: 20px; max-width: 34ch; }
.footer-col h5 { font-family: 'Space Grotesk', monospace; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brass-lt); margin-bottom: 20px; font-weight: 500; }
.footer-col a, .footer-col p { display: block; color: var(--muted-lt); font-size: 0.95rem; margin-bottom: 12px; transition: color .2s; }
.footer-col a:hover { color: var(--ivory); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-block: 26px; font-size: 0.82rem; font-family: 'Space Grotesk', monospace; letter-spacing: 0.04em; color: var(--muted); }

/* ---------- Reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
.hero [data-reveal] { transition-duration: .8s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media img { height: 380px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--border); }
  .pillar:last-child { border-bottom: 0; }
}
/* Collapse the main nav into a hamburger earlier so medium screens don't crowd */
@media (max-width: 980px) {
  .nav-links, .nav-phone { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--border);
    padding: 12px var(--gutter) 24px; z-index: 60;
  }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); width: 100%; }
}
@media (max-width: 720px) {
  .hero-home { min-height: auto; padding-top: 8px; }
  /* stats: even 3-up row, no stray dividers when they would wrap */
  .hero-stats { gap: 16px; }
  .hero-stat { flex: 1; min-width: 0; }
  .hero-stat + .hero-stat { border-left: 0; padding-left: 0; }
  .pillar { padding: 32px 26px; }
  .svc-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
}
/* Mobile header: drop the CTA button (lives in the menu + hero) so it never crowds */
@media (max-width: 700px) {
  .nav .btn-dark { display: none; }
}
/* Very small screens: swap the full header logo for the compact building mark */
@media (max-width: 460px) {
  .brand-logo { display: none; }
  .brand-mark { display: block; }
}
