/*
Theme Name: Mendez Diaz Contracting
Theme URI: https://mendezdiazcontracting.com
Author: Mendez Diaz Contracting
Description: Custom responsive theme for Mendez Diaz Contracting — residential and commercial remodeling, roofing, and general construction. Includes Home, About Us, Services, Gallery, Contact (lead form with email delivery and photo uploads), and Privacy Policy pages, created automatically on activation.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: mendez-diaz
*/

/* Mendez Diaz Contracting — site styles */
:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-hero: clamp(2.75rem, 0.8rem + 6vw, 6.25rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem; --space-32: 8rem;

  --ink: #030921;
  --ink-2: #0a1434;
  --ink-3: #15224d;
  --paper: #f4f6fa;
  --paper-2: #e7ebf3;
  --white: #ffffff;
  --text: #0d1530;
  --muted: #525c72;
  --muted-on-dark: #b3bbd0;
  --line: #d6dce8;
  --line-dark: #23305a;
  --accent: #1c3a8c;        /* brand royal navy */
  --hl: #a9bcf5;            /* light brand tint for dark backgrounds */
  --accent-hover: #132b6b;
  --accent-soft: #e2e8f7;
  --success: #2f7d4a;
  --error: #b42318;

  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;

  --radius: 6px;
  --container: 1200px;
  --gutter: clamp(var(--space-5), 4vw, var(--space-10));
  --section: clamp(var(--space-16), 9vw, var(--space-32));
  --header-h: 76px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--space-4)); }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--text-base); line-height: 1.6;
  color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 800; letter-spacing: -0.015em; }
h1, h2 { font-family: var(--font-display); }
h3 { font-family: var(--font-body); font-size: var(--text-lg); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
p { margin: 0; }
ul { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--paper2 { background: var(--paper-2); }
.section--dark { background: var(--ink); color: var(--white); }
.section--white { background: var(--white); }
.skip-link { position: absolute; left: -9999px; top: var(--space-2); background: var(--accent); color: var(--white); padding: var(--space-2) var(--space-4); z-index: 200; }
.skip-link:focus { left: var(--space-2); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Eyebrow + headings */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--hl); }
.section-head { max-width: 680px; margin-bottom: clamp(var(--space-10), 5vw, var(--space-16)); }
.section-head h2 { font-size: var(--text-2xl); margin-top: var(--space-4); }
.section-head p { margin-top: var(--space-4); color: var(--muted); max-width: 60ch; }
.section--dark .section-head p { color: var(--muted-on-dark); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: var(--space-3) var(--space-6);
  font-size: var(--text-sm); font-weight: 700; letter-spacing: .01em; text-decoration: none;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--accent); color: var(--white); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--ink-3); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.text-link { display: inline-flex; align-items: center; gap: var(--space-2); font-weight: 700; color: var(--accent); text-decoration: none; border-bottom: 2px solid transparent; padding-bottom: 2px; }
.text-link:hover { border-color: currentColor; }
.text-link svg { width: 16px; height: 16px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(3,9,33,.96); color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); }
.brand { display: inline-flex; align-items: center; gap: var(--space-3); text-decoration: none; color: var(--white); line-height: 1; }
.brand img.brand-logo, .brand .custom-logo { max-height: 56px; width: auto; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.brand-mark { display: flex; flex-direction: column; gap: 4px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; letter-spacing: .01em; text-transform: uppercase; }
.brand-sub { font-size: .6875rem; font-weight: 700; letter-spacing: .32em; text-transform: uppercase; color: var(--hl); }
.brand-name span { color: var(--hl); }
.main-nav ul { list-style: none; display: flex; align-items: center; gap: var(--space-8); }
.main-nav a { text-decoration: none; font-size: var(--text-sm); font-weight: 500; color: #d9dbdd; padding-block: var(--space-2); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.main-nav a:hover { color: var(--white); }
.main-nav a[aria-current="page"] { color: var(--white); border-color: var(--accent); }
.header-cta { display: inline-flex; }
.nav-toggle { display: none; background: none; border: 0; color: var(--white); width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; margin-right: calc(var(--space-2) * -1); }
.nav-toggle svg { width: 26px; height: 26px; }
.mobile-cta { display: none; }

@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .brand-name { font-size: 1.125rem; }
  .brand-sub { font-size: .625rem; letter-spacing: .26em; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; background: var(--ink);
    padding: var(--space-8) var(--gutter); transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s var(--ease), visibility .3s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav li { border-bottom: 1px solid var(--line-dark); }
  .main-nav a { display: block; padding-block: var(--space-5); font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; border: 0; }
  .main-nav a[aria-current="page"] { color: var(--hl); }
  .mobile-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: var(--space-3) var(--gutter) calc(var(--space-3) + env(safe-area-inset-bottom));
    background: rgba(3,9,33,.97); border-top: 1px solid var(--line-dark);
  }
  .mobile-cta .btn { width: 100%; }
  body { padding-bottom: 76px; }
  body.page-contact .mobile-cta { display: none; }
  body.page-contact { padding-bottom: 0; }
}
body.nav-open { overflow: hidden; }

/* Hero */
.hero {
  position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end;
  color: var(--white); background: var(--ink); isolation: isolate; overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(3,9,33,.88) 0%, rgba(3,9,33,.62) 45%, rgba(3,9,33,.2) 100%),
              linear-gradient(0deg, rgba(3,9,33,.75) 0%, rgba(3,9,33,0) 45%);
}
.hero-inner { padding-block: clamp(var(--space-24), 14vh, var(--space-32)) clamp(var(--space-12), 7vw, var(--space-20)); }
.hero h1 { font-size: var(--text-hero); line-height: .95; margin-top: var(--space-5); letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--hl); }
.hero-lede { margin-top: var(--space-6); max-width: 58ch; font-size: var(--text-base); color: #e3e4e5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.trust-strip {
  list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8);
  margin-top: clamp(var(--space-10), 6vw, var(--space-16)); padding-top: var(--space-6);
  border-top: 1px solid rgba(255,255,255,.18); font-size: var(--text-sm); color: #e3e4e5;
}
.trust-strip li { display: inline-flex; align-items: center; gap: var(--space-2); }
.trust-strip svg { width: 18px; height: 18px; color: var(--hl); flex: none; }

/* Page hero (interior) */
.page-hero { position: relative; color: var(--white); background: var(--ink); isolation: isolate; overflow: hidden; }
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,9,33,.9), rgba(3,9,33,.55)); }
.page-hero .container { padding-block: clamp(var(--space-20), 12vw, var(--space-32)) clamp(var(--space-12), 7vw, var(--space-20)); }
.page-hero h1 { font-size: var(--text-2xl); margin-top: var(--space-4); max-width: 18ch; }
.page-hero p { margin-top: var(--space-4); max-width: 56ch; color: #e3e4e5; }
.breadcrumb { font-size: var(--text-xs); color: var(--muted-on-dark); margin-bottom: var(--space-6); }
.breadcrumb a { color: #e3e4e5; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* Split layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(var(--space-10), 6vw, var(--space-20)); align-items: center; }
.split--reverse .split-media { order: -1; }
.split-body h2 { font-size: var(--text-2xl); margin-top: var(--space-4); }
.split-body p { margin-top: var(--space-5); color: var(--muted); max-width: 58ch; }
.split-body .text-link, .split-body .btn { margin-top: var(--space-8); }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.split-media .stamp {
  position: absolute; left: calc(var(--space-6) * -1); bottom: calc(var(--space-6) * -1);
  background: var(--accent); color: var(--white); padding: var(--space-5) var(--space-6); border-radius: var(--radius);
  max-width: 240px; font-size: var(--text-sm); font-weight: 600; line-height: 1.35;
}
.split-media .stamp strong { display: block; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 800; line-height: 1; margin-bottom: var(--space-2); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split-media { order: 0; }
  .split-media .stamp { left: var(--space-4); bottom: var(--space-4); }
}

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.service-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(3,9,33,.35); }
.service-card-media { aspect-ratio: 4/3; overflow: hidden; }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.service-card:hover .service-card-media img { transform: scale(1.05); }
.service-card-body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.service-card-num { font-size: var(--text-xs); font-weight: 700; color: var(--accent); letter-spacing: .12em; }
.service-card p { color: var(--muted); font-size: var(--text-sm); flex: 1; }
.service-card .text-link { margin-top: var(--space-2); font-size: var(--text-sm); }
.center-cta { margin-top: clamp(var(--space-10), 5vw, var(--space-16)); display: flex; justify-content: center; }
@media (max-width: 1080px) { .service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .service-grid { grid-template-columns: 1fr; } }

/* Features (why choose us) */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line-dark); }
.feature { padding: var(--space-8) var(--space-6) var(--space-8) 0; border-right: 1px solid var(--line-dark); }
.feature + .feature { padding-left: var(--space-6); }
.feature:last-child { border-right: 0; }
.feature-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius); background: rgba(28,58,140,.16); color: var(--hl); margin-bottom: var(--space-6); }
.feature-icon svg { width: 24px; height: 24px; }
.feature p { margin-top: var(--space-3); color: var(--muted-on-dark); font-size: var(--text-sm); }
.section--paper2 .feature-grid, .section--white .feature-grid { border-color: var(--line); }
.section--paper2 .feature, .section--white .feature { border-color: var(--line); }
.section--paper2 .feature p, .section--white .feature p { color: var(--muted); }
.section--paper2 .feature-icon, .section--white .feature-icon { background: var(--accent-soft); color: var(--accent); }
.feature-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature, .feature + .feature { padding: var(--space-8) var(--space-6) var(--space-8) 0; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .feature:nth-child(even) { padding-left: var(--space-6); border-left: 1px solid var(--line-dark); }
  .section--paper2 .feature, .section--white .feature { border-color: var(--line); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Process */
.process { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-8); counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 28px; right: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 14px); }
.process li { position: relative; }
.process-num {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  margin-bottom: var(--space-6); box-shadow: 0 0 0 8px var(--paper);
}
.process li:first-child .process-num { background: var(--accent); }
.process p { margin-top: var(--space-3); color: var(--muted); font-size: var(--text-sm); }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; gap: var(--space-8); }
  .process::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px); }
  .process li { display: grid; grid-template-columns: 56px 1fr; column-gap: var(--space-6); }
  .process-num { grid-row: span 2; margin-bottom: 0; }
  .process h3 { align-self: end; }
  .process p { margin-top: var(--space-2); }
}

/* Project grid (home featured + gallery) */
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.project-grid--featured { grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(180px, 20vw, 260px); }
.project-grid--featured .project:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.project { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--ink-2); }
.project button { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.project button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-grid:not(.project-grid--featured) .project img { aspect-ratio: 4/3; }
.project:hover img { transform: scale(1.04); }
.project figcaption {
  position: absolute; inset: auto 0 0 0; padding: var(--space-10) var(--space-5) var(--space-5);
  background: linear-gradient(0deg, rgba(3,9,33,.88), rgba(3,9,33,0)); color: var(--white);
  display: flex; flex-direction: column; gap: var(--space-1); pointer-events: none;
}
.project figcaption .tag { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hl); }
.project figcaption .title { font-weight: 700; font-size: var(--text-sm); }
.project[hidden] { display: none; }
@media (max-width: 900px) {
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-grid--featured { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .project-grid--featured .project:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
  .project-grid { grid-template-columns: 1fr; }
  .project-grid--featured { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .project-grid--featured .project:nth-child(1) { grid-column: span 1; }
}

/* Filter bar */
.filter-bar { display: flex; gap: var(--space-2); overflow-x: auto; padding-bottom: var(--space-2); margin-bottom: var(--space-8); scrollbar-width: thin; }
.filter-bar button {
  flex: none; min-height: 44px; padding: var(--space-2) var(--space-5); border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); font-size: var(--text-sm); font-weight: 600; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filter-bar button:hover { border-color: var(--ink); }
.filter-bar button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.gallery-note { font-size: var(--text-xs); color: var(--muted); margin-top: var(--space-6); }
.gallery-count { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--space-4); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(3,9,33,.94); display: none; align-items: center; justify-content: center; padding: var(--space-6); }
.lightbox.is-open { display: flex; }
.lightbox-figure { margin: 0; max-width: 1100px; width: 100%; display: flex; flex-direction: column; gap: var(--space-4); }
.lightbox-figure img { width: 100%; max-height: 74vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-caption { color: var(--white); display: flex; flex-direction: column; gap: var(--space-1); }
.lightbox-caption .tag { font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--hl); }
.lightbox-caption .title { font-weight: 700; font-size: var(--text-lg); }
.lightbox-caption .desc { color: var(--muted-on-dark); font-size: var(--text-sm); }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(3,9,33,.6); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: var(--space-5); right: var(--space-5); }
.lb-prev { left: var(--space-5); top: 50%; transform: translateY(-50%); }
.lb-next { right: var(--space-5); top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .lb-prev, .lb-next { top: auto; bottom: var(--space-5); transform: none; } }

/* Before/after */
.ba { position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: var(--radius); user-select: none; touch-action: pan-y; background: var(--ink); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--white); transform: translateX(-1px); pointer-events: none; }
.ba-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 48px; height: 48px; transform: translate(-50%,-50%);
  border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center/24px no-repeat;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
}
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-label { position: absolute; top: var(--space-4); padding: var(--space-1) var(--space-3); border-radius: 4px; background: rgba(3,9,33,.75); color: var(--white); font-size: var(--text-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; pointer-events: none; }
.ba-label--before { left: var(--space-4); }
.ba-label--after { right: var(--space-4); }
.ba-note { position: absolute; bottom: var(--space-4); left: var(--space-4); padding: var(--space-1) var(--space-3); border-radius: 4px; background: rgba(255,255,255,.88); color: var(--ink); font-size: var(--text-xs); font-weight: 600; pointer-events: none; }

/* Testimonials */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-5); }
.stars { display: flex; gap: 2px; color: var(--accent); }
.stars svg { width: 18px; height: 18px; }
.quote-card blockquote { margin: 0; font-size: var(--text-base); line-height: 1.55; flex: 1; }
.quote-card cite { font-style: normal; font-size: var(--text-sm); color: var(--muted); }
.quote-card cite strong { display: block; color: var(--text); }
.placeholder-note { margin-top: var(--space-6); font-size: var(--text-xs); color: var(--muted); text-align: center; }
@media (max-width: 960px) { .quote-grid { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--ink-2); color: var(--white); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 18px); pointer-events: none; }
.cta-band .container { position: relative; padding-block: clamp(var(--space-16), 8vw, var(--space-24)); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-10); align-items: center; }
.cta-band h2 { font-size: var(--text-2xl); }
.cta-band p { margin-top: var(--space-4); max-width: 52ch; color: #c9d3ee; }
.cta-band-actions { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-4); justify-self: end; }
.cta-band-actions .btn--dark { background: var(--white); color: var(--ink); }
.cta-band-actions .btn--dark:hover { background: var(--hl); color: var(--ink); }
.cta-band-actions small { font-size: var(--text-xs); color: #c9d3ee; }
.cta-band-actions small a { color: var(--white); font-weight: 700; }
@media (max-width: 860px) { .cta-band .container { grid-template-columns: 1fr; } .cta-band-actions { justify-self: start; } }

/* About */
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.value-card { padding: var(--space-8) var(--space-6); background: var(--white); border-radius: var(--radius); border-top: 3px solid var(--accent); }
.value-card p { margin-top: var(--space-3); color: var(--muted); font-size: var(--text-sm); }
@media (max-width: 960px) { .values-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values-grid { grid-template-columns: 1fr; } }
.mission { max-width: 900px; margin-inline: auto; text-align: center; }
.mission h2 { font-size: var(--text-xl); margin-top: var(--space-4); line-height: 1.3; font-weight: 700; letter-spacing: -0.01em; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); max-width: 900px; }
.team-card { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-6); align-items: start; padding: var(--space-8); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.team-avatar { width: 96px; height: 96px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.75rem; }
.team-card .role { font-size: var(--text-xs); color: var(--accent); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-top: var(--space-1); }
.team-card p { margin-top: var(--space-3); color: var(--muted); font-size: var(--text-sm); }
.team-support { margin-top: var(--space-8); color: var(--muted); max-width: 70ch; }
@media (max-width: 760px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .team-card { grid-template-columns: 1fr; } }
.cred-list { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.cred-list li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-5); border: 1px solid var(--line-dark); border-radius: var(--radius); font-weight: 600; font-size: var(--text-sm); }
.cred-list svg { width: 28px; height: 28px; color: var(--hl); flex: none; }
@media (max-width: 960px) { .cred-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .cred-list { grid-template-columns: 1fr; } }

/* Services page */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: var(--space-8); overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding-block: var(--space-4); white-space: nowrap; text-decoration: none; font-size: var(--text-sm); font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-active { color: var(--ink); border-color: var(--accent); }
.service-detail + .service-detail { border-top: 1px solid var(--line); }
.service-detail .split-body h2 { font-size: var(--text-2xl); }
.check-list { list-style: none; margin-top: var(--space-6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-6); }
.check-list li { display: flex; gap: var(--space-3); font-size: var(--text-sm); line-height: 1.45; }
.check-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 2px; }
.service-num { font-family: var(--font-display); font-weight: 800; font-size: var(--text-sm); color: var(--accent); letter-spacing: .1em; }
@media (max-width: 560px) { .check-list { grid-template-columns: 1fr; } }

/* FAQ */
.faq { max-width: 860px; margin-inline: auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-6); padding-block: var(--space-6); font-weight: 700; font-size: var(--text-base); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .25s var(--ease), background .2s; }
.faq summary .icon svg { width: 16px; height: 16px; }
.faq details[open] summary .icon { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: var(--white); }
.faq details p { padding-bottom: var(--space-6); color: var(--muted); max-width: 70ch; }
.faq details p a { color: var(--accent); font-weight: 600; }

/* Contact */
.contact-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
@media (max-width: 960px) { .contact-layout { grid-template-columns: 1fr; } }
.form-card { background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); padding: clamp(var(--space-6), 4vw, var(--space-12)); }
.form-card h2 { font-size: var(--text-xl); }
.form-card > p { margin-top: var(--space-2); color: var(--muted); font-size: var(--text-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-5); margin-top: var(--space-8); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field--full { grid-column: 1 / -1; }
.field label, .field legend { font-size: var(--text-sm); font-weight: 600; }
.field .req { color: var(--accent); }
.field .opt { color: var(--muted); font-weight: 400; font-size: var(--text-xs); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: var(--space-3) var(--space-4); background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); font-size: var(--text-base);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b6067' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: var(--space-10); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aab4c8; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 3px rgba(28,58,140,.18); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--error); }
.field-error { font-size: var(--text-xs); color: var(--error); font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.field-hint { font-size: var(--text-xs); color: var(--muted); }
.file-drop { position: relative; border: 2px dashed var(--line); border-radius: var(--radius); padding: var(--space-6); text-align: center; background: var(--paper); transition: border-color .2s, background .2s; }
.file-drop:hover, .file-drop.is-drag { border-color: var(--accent); background: var(--accent-soft); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; min-height: 0; }
.file-drop svg { width: 28px; height: 28px; color: var(--accent); margin: 0 auto var(--space-2); }
.file-drop strong { display: block; font-size: var(--text-sm); }
.file-drop span { font-size: var(--text-xs); color: var(--muted); }
.file-list { list-style: none; display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.file-list li { font-size: var(--text-xs); background: var(--paper-2); padding: var(--space-1) var(--space-3); border-radius: 999px; }
.consent { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); line-height: 1.5; }
.consent input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-8); }
.form-actions .btn { width: 100%; min-height: 56px; font-size: var(--text-base); }
.form-actions .btn[disabled] { opacity: .7; cursor: progress; }
.privacy-micro { font-size: var(--text-xs); color: var(--muted); display: flex; align-items: center; gap: var(--space-2); justify-content: center; text-align: center; }
.privacy-micro svg { width: 14px; height: 14px; flex: none; }
.form-status { margin-top: var(--space-6); padding: var(--space-5) var(--space-6); border-radius: var(--radius); font-size: var(--text-sm); display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #e6f2ea; color: #1d5532; border: 1px solid #b9dcc5; }
.form-status.is-error { background: #fbe9e7; color: #8a1c12; border: 1px solid #f1c3bd; }
.form-status strong { display: block; font-size: var(--text-base); margin-bottom: var(--space-1); }
.form-status a { color: inherit; font-weight: 700; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

.info-panel { display: flex; flex-direction: column; gap: var(--space-4); position: sticky; top: calc(var(--header-h) + var(--space-6)); }
@media (max-width: 960px) { .info-panel { position: static; } }
.info-block { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: var(--space-6) var(--space-8); }
.info-block--light { background: var(--white); color: var(--text); border: 1px solid var(--line); }
.info-block h3 { font-size: var(--text-base); display: flex; align-items: center; gap: var(--space-3); }
.info-block h3 svg { width: 20px; height: 20px; color: var(--hl); flex: none; }
.info-block--light h3 svg { color: var(--accent); }
.info-block p { margin-top: var(--space-2); font-size: var(--text-sm); color: var(--muted-on-dark); }
.info-block--light p { color: var(--muted); }
.info-email { display: inline-block; margin-top: var(--space-3); font-weight: 700; color: var(--hl); text-decoration: none; overflow-wrap: anywhere; font-size: var(--text-sm); }
.info-email:hover { text-decoration: underline; }
.hours { list-style: none; margin-top: var(--space-3); font-size: var(--text-sm); }
.hours li { display: flex; justify-content: space-between; gap: var(--space-4); padding-block: var(--space-2); border-bottom: 1px solid var(--line); }
.hours li:last-child { border-bottom: 0; }
.hours li span:last-child { color: var(--muted); }
.next-steps { list-style: none; counter-reset: ns; margin-top: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.next-steps li { counter-increment: ns; display: flex; gap: var(--space-3); font-size: var(--text-sm); color: #e3e4e5; align-items: baseline; }
.next-steps li::before { content: counter(ns); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--white); display: grid; place-items: center; font-size: .75rem; font-weight: 700; }

/* Footer */
.site-footer { background: var(--ink); color: var(--muted-on-dark); font-size: var(--text-sm); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.6fr; gap: var(--space-10); padding-block: clamp(var(--space-16), 7vw, var(--space-24)) var(--space-12); }
.footer-grid h2 { font-family: var(--font-body); font-size: var(--text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--white); margin-bottom: var(--space-5); }
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.footer-grid a { text-decoration: none; color: var(--muted-on-dark); transition: color .2s; }
.footer-grid a:hover { color: var(--white); }
.footer-tagline { margin-top: var(--space-5); max-width: 32ch; }
.footer-contact li { display: flex; gap: var(--space-3); align-items: flex-start; }
.footer-contact svg { width: 18px; height: 18px; color: var(--hl); flex: none; margin-top: 3px; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-contact .btn { margin-top: var(--space-3); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-8); justify-content: space-between; font-size: var(--text-xs); }
.footer-bottom nav { display: flex; gap: var(--space-6); flex-wrap: wrap; }
.footer-bottom a { color: var(--muted-on-dark); text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); } }

/* Privacy page */
.prose { max-width: 72ch; }
.prose h2 { font-size: var(--text-xl); margin-top: var(--space-12); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose ul { margin-top: var(--space-4); color: var(--muted); }
.prose ul { padding-left: var(--space-6); }
.prose li { margin-top: var(--space-2); }
.prose a { color: var(--accent); font-weight: 600; }

/* Reveal (progressive enhancement) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 480px) {
  .hero-actions .btn, .split-body .btn, .service-detail .btn { width: 100%; }
}
@media (max-width: 760px) {
  .feature-grid--3 { grid-template-columns: 1fr; }
  .feature-grid--3 .feature, .feature-grid--3 .feature:nth-child(even) { padding-left: 0; border-left: 0; }
}

/* Brand: on dark surfaces, primary buttons become white with navy text */
.hero .btn--primary, .site-header .btn--primary, .mobile-cta .btn--primary, .site-footer .btn--primary { background: var(--white); color: var(--ink); }
.hero .btn--primary:hover, .site-header .btn--primary:hover, .mobile-cta .btn--primary:hover, .site-footer .btn--primary:hover { background: var(--hl); color: var(--ink); }
.split-media .stamp { background: var(--ink); }
.process li:first-child .process-num { background: var(--accent); }
.brand-logo-mark { height: 46px; width: auto; flex: none; }
.brand-mark { border-left: 1px solid rgba(255,255,255,.22); padding-left: var(--space-3); }
.brand-name span { color: var(--white); }
.footer-logo { width: 150px; height: auto; }
@media (max-width: 960px) { .brand-logo-mark { height: 38px; } }

/* ---- Founder story ---- */
.story-lead { font-size: var(--text-lg); color: var(--ink); font-weight: 500; }
.founder-quote { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); background: var(--ink-2); position: relative; overflow: hidden; }
.founder-quote-inner { display: grid; grid-template-columns: 180px 1fr; gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: center; max-width: 1080px; }
.founder-quote-mark { width: 100%; height: auto; opacity: .9; }
.founder-quote blockquote p { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 1rem + 2.2vw, 2.6rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--white); }
.founder-quote footer { margin-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-1); }
.founder-quote footer strong { color: var(--white); font-size: var(--text-base); }
.founder-quote footer span { color: var(--hl); font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
@media (max-width: 760px) { .founder-quote-inner { grid-template-columns: 1fr; } .founder-quote-mark { width: 96px; } }
.split--reverse .split-media { order: -1; }
@media (max-width: 960px) { .split--reverse .split-media { order: 0; } }
.mark-panel { background: var(--paper-2); border-radius: var(--radius); display: grid; place-items: center; padding: clamp(var(--space-8), 6vw, var(--space-16)); }
.mark-panel img { width: min(320px, 80%); height: auto; aspect-ratio: auto; object-fit: contain; box-shadow: none; }
.promise-list { list-style: none; padding: 0; margin-top: var(--space-8); display: grid; gap: var(--space-5); }
.promise-list li { display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); align-items: start; padding-top: var(--space-5); border-top: 1px solid var(--line); }
.promise-list li > span { font-family: var(--font-display); font-weight: 800; color: var(--accent); font-size: var(--text-lg); }
.promise-list h3 { font-size: var(--text-base); }
.promise-list p { margin-top: var(--space-1); color: var(--muted); font-size: var(--text-sm); }
.team-grid--single { grid-template-columns: 1fr; max-width: 820px; }
.team-card--founder .team-avatar { width: 120px; height: 120px; font-size: 1.6rem; letter-spacing: .02em; }
.team-card--founder { grid-template-columns: 120px 1fr; }
@media (max-width: 420px) { .team-card--founder { grid-template-columns: 1fr; } }
