/* fonts.css is linked separately in <head> so it loads in parallel and can be
   cache-busted; do not @import it here (that serializes the request). */

/* ============================================================
   NovaForma — single stylesheet
   Design system per build brief §4. Restraint, material honesty,
   photography as the visual load-bearer. Sienna on CTAs only.
   ============================================================ */

:root {
  /* Color */
  --navy:       #15395A;
  --navy-deep:  #0E2840;
  --bone:       #F2EFE9;
  --white:      #FFFFFF;
  --cement:     #8C9299;  /* rules, borders, decorative arrows only */
  --label:      #616770;  /* muted TEXT (eyebrows, labels, captions) — AA on white and bone */
  --ink:        #1A1D21;
  --sienna:     #B4541F;
  --sienna-deep:#9A461A;   /* CTA hover only */

  /* Derived neutrals */
  --line:       #E3DED4;   /* hairline on bone/white */
  --line-cool:  #D8DDE2;
  --ink-soft:   #4A4F55;   /* muted body */
  --bone-tint:  #F7F5F0;

  /* Type */
  --font-display: "Bodoni Moda", Georgia, "Times New Roman", serif;
  --font-label:   "Jost", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body:    "Inter", system-ui, -apple-system, Segoe UI, sans-serif;

  /* Spacing — 8px scale */
  --s1: 0.5rem;   /* 8  */
  --s2: 1rem;     /* 16 */
  --s3: 1.5rem;   /* 24 */
  --s4: 2rem;     /* 32 */
  --s5: 3rem;     /* 48 */
  --s6: 4rem;     /* 64 */
  --s7: 6rem;     /* 96 */

  /* Layout */
  --maxw: 1200px;
  --measure: 68ch;
  --radius: 2px;
  --header-h: 84px;
  --header-h-scrolled: 64px;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(14,40,64,.06), 0 2px 8px rgba(14,40,64,.05);
  --shadow-md: 0 6px 24px rgba(14,40,64,.10);
  --shadow-lg: 0 18px 50px rgba(14,40,64,.16);
  --ease: cubic-bezier(.22,.61,.36,1);
  --dur: 150ms;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea, button { font-family: inherit; font-size: inherit; }
ul[role="list"] { list-style: none; padding: 0; }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--sienna);
  outline-offset: 2px;
  border-radius: 1px;
}

/* Skip link */
.skip-link {
  position: absolute; left: var(--s2); top: -100px;
  background: var(--navy); color: var(--white);
  padding: var(--s1) var(--s3); z-index: 1000; border-radius: var(--radius);
  font-family: var(--font-label); transition: top var(--dur) var(--ease);
}
.skip-link:focus { top: var(--s2); }

/* ---------- Typography ---------- */
h1, h2 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; color: var(--navy); }
h1 { font-size: clamp(2.5rem, 1.7rem + 3.2vw, 3.75rem); }
h2 { font-size: clamp(2rem, 1.5rem + 2vw, 2.85rem); }
h3 { font-family: var(--font-body); font-weight: 600; font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); line-height: 1.25; color: var(--ink); letter-spacing: -0.005em; }
h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; }
p { max-width: var(--measure); }
strong { font-weight: 600; }

.eyebrow {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--label);
  display: inline-block;
}
.eyebrow--onnavy { color: #A9C0D6; }

.lede { font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); color: var(--ink-soft); }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s3); }
@media (min-width: 768px) { .container { padding-inline: var(--s4); } }

.section { padding-block: var(--s6); }
@media (min-width: 768px) { .section { padding-block: var(--s7); } }
.section--tight { padding-block: var(--s5); }
.section--bone { background: var(--bone); }
.section--navy { background: var(--navy); color: var(--white); }
.section--navy h2, .section--navy h1 { color: var(--white); }
.section--navy-deep { background: var(--navy-deep); color: var(--white); }

.section__head { max-width: 60ch; margin-bottom: var(--s5); }
.section__head .eyebrow { margin-bottom: var(--s2); }
.section__head p { margin-top: var(--s2); color: var(--ink-soft); }
.section--navy .section__head p { color: #C6D2DE; }

.stack > * + * { margin-top: var(--s2); }
.center { text-align: center; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head--center .eyebrow { display: block; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--navy); --btn-fg: var(--white); --btn-bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--font-label); font-weight: 500; font-size: 0.98rem;
  line-height: 1; letter-spacing: .01em;
  padding: 0.95em 1.5em; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1.5px solid var(--btn-bd);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { --btn-bg: var(--sienna); --btn-fg: var(--white); --btn-bd: var(--sienna); }
.btn--primary:hover { --btn-bg: var(--sienna-deep); --btn-bd: var(--sienna-deep); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--white); --btn-bd: var(--navy); }
.btn--navy:hover { --btn-bg: var(--navy-deep); --btn-bd: var(--navy-deep); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--navy); --btn-bd: var(--navy); }
.btn--ghost:hover { --btn-bg: var(--navy); --btn-fg: var(--white); }
.btn--ghost-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255,255,255,.55); }
.btn--ghost-light:hover { --btn-bg: rgba(255,255,255,.10); --btn-bd: #fff; }
.btn--block { display: flex; width: 100%; }
.btn--lg { padding: 1.05em 1.8em; font-size: 1.02rem; }

.textlink {
  font-family: var(--font-label); font-weight: 500; letter-spacing: .01em;
  color: var(--navy); display: inline-flex; align-items: center; gap: .4em;
  border-bottom: 1.5px solid transparent; transition: border-color var(--dur) var(--ease), gap var(--dur) var(--ease);
}
.textlink:hover { border-color: currentColor; gap: .65em; }
.textlink .arrow { transition: transform var(--dur) var(--ease); }
.textlink:hover .arrow { transform: translateX(2px); }
.textlink--light { color: var(--white); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line-cool); box-shadow: var(--shadow-sm); }
.site-header__inner {
  display: flex; align-items: center; gap: var(--s3);
  height: var(--header-h);
  transition: height var(--dur) var(--ease);
}
.is-scrolled .site-header__inner { height: var(--header-h-scrolled); }

/* Logo lockup: monogram + live-text wordmark */
.logo { display: inline-flex; align-items: center; gap: .6rem; padding-block: .3rem; }
.logo__mark { width: 34px; height: auto; transition: width var(--dur) var(--ease); }
.is-scrolled .logo__mark { width: 30px; }
.logo__word { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-family: var(--font-display); font-weight: 500; color: var(--navy);
  font-size: 1.32rem; letter-spacing: .02em; text-transform: uppercase;
}
.logo__desc {
  font-family: var(--font-label); text-transform: uppercase;
  letter-spacing: .22em; font-size: .55rem; color: var(--label);
  margin-top: .18rem;
}
@media (max-width: 420px) { .logo__desc { display: none; } }

.primary-nav { margin-left: auto; display: none; }
@media (min-width: 960px) { .primary-nav { display: block; } }
.primary-nav__list { display: flex; align-items: center; gap: var(--s1); }
.nav-item { position: relative; }
.nav-link {
  font-family: var(--font-label); font-weight: 500; font-size: .98rem;
  color: var(--ink); padding: .6rem .85rem; border-radius: var(--radius);
  display: inline-flex; align-items: center; gap: .4em;
  position: relative;
}
.nav-link[aria-current="page"], .nav-item--active > .nav-link { color: var(--navy); }
.nav-link[aria-current="page"]::after, .nav-item--active > .nav-link::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .28rem;
  height: 2px; background: var(--sienna);
}
.nav-link:hover { color: var(--navy); }
.nav-caret { transition: transform var(--dur) var(--ease); }
[aria-expanded="true"] .nav-caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown { position: relative; }
.dropdown__panel {
  position: absolute; top: calc(100% + .4rem); left: 0;
  min-width: 320px; background: var(--white);
  border: 1px solid var(--line-cool); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: var(--s1);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.dropdown:hover .dropdown__panel,
.dropdown__panel:focus-within,
.dropdown__panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown__link {
  display: block; padding: .6rem .8rem; border-radius: var(--radius);
  font-size: .96rem; color: var(--ink); transition: background var(--dur) var(--ease);
}
.dropdown__link:hover, .dropdown__link:focus-visible { background: var(--bone); color: var(--navy); }
.dropdown__all { border-top: 1px solid var(--line); margin-top: var(--s1); padding-top: var(--s1); }
.dropdown__all .dropdown__link { font-family: var(--font-label); font-weight: 500; color: var(--navy); }

.header-actions { display: none; align-items: center; gap: var(--s2); margin-left: var(--s2); }
@media (min-width: 960px) { .header-actions { display: flex; } }
.header-phone { font-family: var(--font-label); font-weight: 500; color: var(--navy); display: inline-flex; align-items: center; gap: .45em; white-space: nowrap; }
.header-phone:hover { color: var(--sienna-deep); }

/* Hamburger */
.nav-toggle { display: inline-flex; margin-left: auto; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius); color: var(--navy); }
@media (min-width: 960px) { .nav-toggle { display: none; } }
.nav-toggle svg { width: 26px; height: 26px; }

/* Mobile panel */
.mobile-panel {
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy-deep); color: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 280ms var(--ease);
  visibility: hidden;
}
.mobile-panel.is-open { transform: translateX(0); visibility: visible; }
.mobile-panel__top { display: flex; align-items: center; justify-content: space-between; padding: var(--s3); border-bottom: 1px solid rgba(255,255,255,.12); }
.mobile-panel__top .logo__name { color: var(--bone); }
.mobile-panel__top .logo__desc { color: #9DB2C6; }
.mobile-panel__close { color: var(--white); width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; }
.mobile-panel__close svg { width: 26px; height: 26px; }
.mobile-nav { flex: 1; overflow-y: auto; padding: var(--s2) var(--s3); }
.mobile-nav a, .mobile-nav summary {
  font-family: var(--font-label); font-weight: 500; font-size: 1.25rem;
  color: var(--white); display: block; padding: var(--s2) 0;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.mobile-nav details summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.mobile-nav details summary::-webkit-details-marker { display: none; }
.mobile-nav details[open] summary .nav-caret { transform: rotate(180deg); }
.mobile-sub { padding-left: var(--s2); }
.mobile-sub a { font-size: 1.05rem; color: #CBD8E5; font-family: var(--font-body); font-weight: 400; }
.mobile-panel__foot { padding: var(--s3); display: grid; gap: var(--s2); border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy-deep); color: var(--white); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg picture { display: block; width: 100%; height: 100%; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14,40,64,.72) 0%, rgba(14,40,64,.55) 45%, rgba(14,40,64,.66) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; gap: var(--s5); align-items: center;
  padding-block: var(--s6);
}
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.1fr .9fr; gap: var(--s6); padding-block: var(--s7); min-height: 78vh; }
}
.hero__content { max-width: 34rem; }
.hero h1 { color: var(--white); margin-top: var(--s2); }
.hero__subhead { margin-top: var(--s3); font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); color: #D8E2EC; }
.hero__trust-bullets { list-style: none; margin-top: var(--s4); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; padding: 0; }
.hero__trust-bullets li {
  display: inline-flex; align-items: center; gap: .45em;
  font-family: var(--font-label); font-weight: 500; font-size: .9rem; color: var(--white);
}
.hero__trust-bullets li::before {
  content: ''; width: 1rem; height: 1rem; flex-shrink: 0;
  background: var(--sienna); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Quote form card ---------- */
.quote-card {
  background: var(--bone); color: var(--ink);
  border-radius: var(--radius); padding: var(--s4);
  box-shadow: var(--shadow-lg);
}
.quote-card__title { font-family: var(--font-display); font-weight: 500; font-size: 1.6rem; color: var(--navy); line-height: 1.1; margin-bottom: var(--s3); }
.quote-card__sub { font-size: .95rem; color: var(--ink-soft); margin-top: .35rem; margin-bottom: var(--s3); }

.field { display: grid; gap: .4rem; margin-bottom: var(--s2); }
.field label { font-family: var(--font-label); font-weight: 500; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.field .req { color: var(--sienna); }
.field input, .field select, .field textarea {
  width: 100%; padding: .8rem .9rem; background: var(--white);
  border: 1.5px solid var(--line); border-radius: var(--radius); color: var(--ink);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #A7A196; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(21,57,90,.14);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%238C9299' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
.field--error input, .field--error select { border-color: #B4321F; box-shadow: 0 0 0 3px rgba(180,50,31,.14); }
.field__error { font-size: .82rem; color: #B4321F; display: none; }
.field--error .field__error { display: block; }

.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-status { margin-top: var(--s2); font-size: .9rem; }
.form-status[data-state="error"] { color: #B4321F; }
.btn[data-loading="true"] { opacity: .75; pointer-events: none; }
.btn__spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn[data-loading="true"] .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn__spinner { animation: none; } }

.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: var(--s2); text-align: center; }

/* ---------- Trust strip ---------- */
.trust { background: var(--bone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3) var(--s2); padding-block: var(--s5); }
@media (min-width: 768px) { .trust__grid { grid-template-columns: repeat(4, 1fr); } }
.trust__item { padding-inline: var(--s1); }
.trust__item + .trust__item { position: relative; }
@media (min-width: 768px) { .trust__item + .trust__item::before { content: ""; position: absolute; left: calc(-1 * var(--s1)); top: 4px; bottom: 4px; width: 1px; background: var(--line); } }
.trust__head { font-family: var(--font-label); font-weight: 500; font-size: 1.15rem; color: var(--navy); letter-spacing: .01em; }
.trust__sub { font-size: .88rem; color: var(--ink-soft); margin-top: .2rem; }

/* ---------- Cards grid (services) ---------- */
.card-grid { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 620px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } }

.service-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line-cool); border-radius: var(--radius);
  overflow: hidden; transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
  text-decoration: none; color: inherit;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line); }
.service-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bone); }
.service-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.service-card:hover .service-card__media img { transform: scale(1.04); }
.service-card__body { padding: var(--s3); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.service-card__body h3 { margin: 0; }
.service-card__summary { color: var(--ink-soft); font-size: .95rem; }
.service-card__more { margin-top: auto; padding-top: var(--s1); font-family: var(--font-label); font-weight: 500; color: var(--navy); display: inline-flex; gap: .4em; }
.service-card:hover .service-card__more .arrow { transform: translateX(3px); }
.service-card__more .arrow { transition: transform var(--dur) var(--ease); }

/* ---------- Portfolio / project cards ---------- */
.project-card {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line-cool); border-radius: var(--radius); overflow: hidden;
  background: var(--white); transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.project-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.project-card__media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--bone); position: relative; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms var(--ease); }
.project-card:hover .project-card__media img { transform: scale(1.04); }
.project-card__body { padding: var(--s3); display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.project-card__meta { font-family: var(--font-label); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.project-card__body h3 { margin-top: .1rem; }
.project-card__body h3 a::after { content: ""; position: absolute; inset: 0; }
.project-card__summary { color: var(--ink-soft); font-size: .92rem; margin-top: .25rem; }
.badge { position: absolute; top: var(--s2); left: var(--s2); z-index: 2; background: var(--navy-deep); color: var(--white); font-family: var(--font-label); font-weight: 500; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .6rem; border-radius: var(--radius); }

/* ---------- Before/After reveal ---------- */
.reveal { position: relative; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius); background: var(--navy-deep); user-select: none; touch-action: pan-y; }
.reveal__after, .reveal__before { position: absolute; inset: 0; }
.reveal__after img, .reveal__before img { width: 100%; height: 100%; object-fit: cover; }
.reveal__after { z-index: 1; }
.reveal__before { z-index: 2; clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0); }
.reveal-cover { margin: 0; border-radius: var(--radius); overflow: hidden; }
.reveal-cover img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.reveal__label { position: absolute; z-index: 3; bottom: var(--s2); font-family: var(--font-label); font-weight: 500; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--white); background: rgba(14,40,64,.7); padding: .3rem .55rem; border-radius: var(--radius); }
.reveal__label--before { left: var(--s2); }
.reveal__label--after { right: var(--s2); }
.reveal__divider { position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: var(--white); transform: translateX(-1px); box-shadow: 0 0 0 1px rgba(14,40,64,.25); }
.reveal__handle {
  position: absolute; z-index: 5; top: 50%; left: var(--pos, 50%);
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--white); box-shadow: var(--shadow-md);
  display: grid; place-items: center; cursor: ew-resize; color: var(--navy);
}
.reveal__handle:focus-visible { outline: 3px solid var(--sienna); outline-offset: 3px; }
.reveal__handle svg { width: 22px; height: 22px; }
/* Fallback when JS disabled */
.reveal--nojs { aspect-ratio: auto; display: grid; gap: var(--s1); grid-template-columns: 1fr 1fr; background: none; }
.reveal--nojs figure { position: relative; margin: 0; }
.reveal--nojs img { position: static; aspect-ratio: 3/2; }
.reveal--nojs figcaption { position: absolute; bottom: var(--s2); left: var(--s2); font-family: var(--font-label); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: #fff; background: rgba(14,40,64,.7); padding: .3rem .55rem; }

.featured-project { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 900px) { .featured-project { grid-template-columns: 1.3fr .7fr; gap: var(--s6); } }
.featured-project__body .eyebrow { margin-bottom: var(--s2); }

/* ---------- Process strip ---------- */
.process { background: var(--navy); color: var(--white); }
.process__grid { display: grid; gap: var(--s4); padding-block: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .process__grid { grid-template-columns: repeat(3, 1fr); gap: var(--s5); } }
.process__step { display: flex; gap: var(--s2); align-items: flex-start; }
.process__num { font-family: var(--font-label); font-weight: 500; font-size: 1.1rem; color: var(--navy-deep); background: var(--bone); width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; flex: none; }
.process__step h3 { color: var(--white); font-size: 1.1rem; }
.process__step p { color: #C6D2DE; font-size: .92rem; margin-top: .2rem; }

/* ---------- Reassurances ---------- */
.reassure-grid { display: grid; gap: var(--s4); grid-template-columns: 1fr; }
@media (min-width: 700px) { .reassure-grid { grid-template-columns: repeat(2, 1fr); } }
.reassure { display: flex; gap: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--line); }
.reassure:nth-child(-n+2) { border-top: none; padding-top: 0; }
.reassure__icon {
  flex-shrink: 0; width: 2.8rem; height: 2.8rem;
  background: var(--sienna); color: var(--white); border-radius: var(--radius);
  display: grid; place-items: center;
}
.reassure__icon svg { width: 1.3rem; height: 1.3rem; }
.reassure__text h3 { color: var(--navy); }
.reassure__text p { color: var(--ink-soft); margin-top: .35rem; font-size: .96rem; }

/* ---------- Reviews ---------- */
.review-grid { display: grid; gap: var(--s3); grid-template-columns: 1fr; }
@media (min-width: 768px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
.review { background: var(--white); border: 1px solid var(--line-cool); border-radius: var(--radius); padding: var(--s4); }
.review__stars { color: var(--sienna); letter-spacing: .1em; }
.review__text { margin-top: var(--s2); font-size: 1.02rem; }
.review__author { margin-top: var(--s2); font-family: var(--font-label); font-weight: 500; color: var(--navy); }

/* ---------- Locations + map ---------- */
.locations-layout { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .locations-layout { grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: start; } }
.zona-sidebar { display: flex; flex-direction: column; }
.zona-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: var(--s3); }
.zona-badge {
  display: inline-flex; align-items: center; gap: .4em;
  padding: .45rem .9rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line-cool);
  font-family: var(--font-label); font-weight: 500; font-size: .85rem; color: var(--navy);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
  text-decoration: none;
}
.zona-badge::before {
  content: ''; width: .85em; height: .85em; flex-shrink: 0;
  background: var(--sienna); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.zona-badge:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.zona-badge:hover::before { background: var(--white); }
.zona-sidebar .btn { align-self: flex-start; margin-top: var(--s3); }
.zona-grid { display: grid; gap: var(--s2); grid-template-columns: repeat(2, 1fr); }
.zona-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s3); border: 1px solid var(--line-cool); border-radius: var(--radius);
  background: var(--white); font-family: var(--font-label); font-weight: 500; font-size: 1.1rem; color: var(--navy);
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.zona-link:hover { background: var(--bone); border-color: var(--line); }
.zona-link .arrow { color: var(--cement); }

.map-embed { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-cool); aspect-ratio: 4 / 3; background: var(--bone); }
.map-embed--full { width: 100%; border-radius: 0; border-left: 0; border-right: 0; aspect-ratio: 3 / 1; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-static { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-static img { width: 100%; height: 100%; object-fit: cover; }
.map-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(14,40,64,.35); color: var(--white); z-index: 2;
  font-family: var(--font-label); font-weight: 500;
}
.map-overlay .btn { pointer-events: auto; }

/* ---------- Contact block ---------- */
.contact-layout { display: grid; gap: var(--s5); }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1fr; gap: var(--s6); align-items: start; } }
.contact-details { display: grid; gap: var(--s3); }
.contact-row { display: grid; gap: .15rem; }
.contact-row__label { font-family: var(--font-label); font-weight: 500; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--label); }
.contact-row a { display: inline-flex; align-items: center; gap: .3em; color: var(--navy); font-weight: 500; }
.contact-row a:hover { color: var(--sienna-deep); }
.section--navy .contact-row a { color: var(--white); }
.section--navy .contact-row__label { color: #9DB2C6; }
.contact-icon { width: 1.1em; height: 1.1em; vertical-align: -0.15em; margin-right: .3em; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 60rem; margin-inline: auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: var(--s3) 0; font-family: var(--font-body); font-weight: 600; font-size: 1.08rem; color: var(--navy); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon { flex: none; width: 1.4rem; height: 1.4rem; position: relative; }
.faq-item summary .faq-icon::before, .faq-item summary .faq-icon::after { content: ""; position: absolute; background: var(--sienna); border-radius: 1px; }
.faq-item summary .faq-icon::before { top: 50%; left: 2px; right: 2px; height: 2px; transform: translateY(-50%); }
.faq-item summary .faq-icon::after { left: 50%; top: 2px; bottom: 2px; width: 2px; transform: translateX(-50%); transition: opacity var(--dur) var(--ease); }
.faq-item[open] summary .faq-icon::after { opacity: 0; }
.faq-item__answer { padding-bottom: var(--s3); color: var(--ink-soft); }
.faq-item__answer p { max-width: 64ch; }

/* ---------- Prose (service/location/privacy pages) ---------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: var(--s3); }
.prose h2 { margin-top: var(--s5); }
.prose h3 { margin-top: var(--s4); color: var(--navy); }
.prose ul { padding-left: 1.2rem; display: grid; gap: .5rem; }
.prose li { padding-left: .2rem; }
.prose a { color: var(--sienna-deep); border-bottom: 1px solid currentColor; }

.includes-list { list-style: none; padding: 0; display: grid; gap: var(--s2); }
.includes-list li { position: relative; padding-left: 2rem; }
.includes-list li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.15rem; height: 1.15rem; background: var(--navy); border-radius: 50%;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9 16.2l-3.5-3.5L4 14.2l5 5 11-11-1.5-1.4z'/%3E%3C/svg%3E") center/contain no-repeat; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy); color: var(--white); }
.page-hero__inner { padding-block: var(--s6); }
.page-hero h1 { color: var(--white); margin-top: var(--s2); max-width: 20ch; }
.page-hero p { margin-top: var(--s3); color: #C6D2DE; }

/* Breadcrumbs */
.breadcrumbs { font-family: var(--font-label); font-size: .8rem; letter-spacing: .04em; }
.breadcrumbs ol { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; color: #9DB2C6; }
.breadcrumbs a { color: #C6D2DE; }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs li[aria-current] { color: #fff; }
.breadcrumbs .sep { color: #6E8299; }

/* ---------- Filter chips (obras) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s1); margin-bottom: var(--s4); }
.chip {
  font-family: var(--font-label); font-weight: 500; font-size: .88rem;
  padding: .5rem .9rem; border: 1.5px solid var(--line-cool); border-radius: 100px;
  color: var(--ink-soft); background: var(--white);
  transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--navy); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.filter-group__label { font-family: var(--font-label); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--label); margin-bottom: .5rem; }
.is-hidden { display: none !important; }

/* ---------- Obras page ---------- */
.filters-wrap { display: grid; gap: var(--s3); margin-bottom: var(--s6); }
@media (min-width: 700px) { .filters-wrap { grid-template-columns: 1fr 1fr; gap: var(--s5); } }
.obras-board { display: grid; gap: var(--s7); }
.project-detail { scroll-margin-top: calc(var(--header-h) + var(--s3)); }
.obra-gallery { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-top: var(--s4); }
.obra-gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--bone); }
.obra-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 400ms var(--ease); }
.obra-gallery figure:hover img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .obra-gallery figure:hover img { transform: none; } }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy-deep); color: var(--white); }
.cta-band__inner { display: grid; gap: var(--s3); align-items: center; padding-block: var(--s6); }
@media (min-width: 820px) { .cta-band__inner { grid-template-columns: 1fr auto; gap: var(--s5); } }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #C6D2DE; margin-top: var(--s2); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #C6D2DE; padding-block: var(--s6) var(--s4); }
.footer-grid { display: grid; gap: var(--s5); grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.1fr; } }
.footer-brand .logo__name, .footer-brand .logo__desc { color: var(--bone); }
.footer-logo { display: flex; align-items: center; gap: .7rem; margin-bottom: var(--s3); }
.footer-logo img { width: 40px; }
.footer-logo .footer-word { display: flex; flex-direction: column; line-height: 1; }
.footer-logo .footer-name { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; color: var(--bone); text-transform: uppercase; letter-spacing: .02em; }
.footer-logo .footer-desc { font-family: var(--font-label); text-transform: uppercase; letter-spacing: .2em; font-size: .56rem; color: #8FA4B8; margin-top: .2rem; }
.footer-nap { font-style: normal; font-size: .92rem; line-height: 1.7; }
.footer-nap a { color: var(--bone); }
.footer-col-title { font-family: var(--font-label); font-weight: 500; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #8FA4B8; margin: 0 0 var(--s2); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.footer-col a { font-size: .94rem; color: #C6D2DE; }
.footer-col a:hover { color: var(--white); }
.footer-social { display: inline-flex; align-items: center; gap: .5em; margin-top: var(--s2); color: var(--bone); font-family: var(--font-label); font-weight: 500; }
.footer-bottom { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); justify-content: space-between; align-items: center; font-size: .84rem; color: #8FA4B8; }
.footer-bottom a { color: #A9BACC; }
.footer-bottom a:hover { color: #fff; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-md); transition: transform var(--dur) var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }
@media (min-width: 960px) { .wa-float { right: 24px; bottom: 24px; } }

/* Missing-image placeholder (dev safety) */
.img-missing { display: block; width: 100%; aspect-ratio: 3/2; background: repeating-linear-gradient(45deg, #eee, #eee 10px, #e2e2e2 10px, #e2e2e2 20px); }

/* ---------- Motion: scroll reveal ---------- */
.reveal-on-scroll { opacity: 0; transform: translateY(16px); }
.reveal-on-scroll.is-in { opacity: 1; transform: none; transition: opacity 400ms var(--ease), transform 400ms var(--ease); }
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .service-card:hover, .project-card:hover { transform: none; }
  .service-card:hover .service-card__media img, .project-card:hover .project-card__media img { transform: none; }
}

/* Utilities */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.mt-0 { margin-top: 0; }
.grid-2 { display: grid; gap: var(--s4); }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.sibling-services { display: flex; flex-wrap: wrap; gap: var(--s1); }
.sibling-services a { font-family: var(--font-label); font-weight: 500; font-size: .9rem; padding: .5rem .9rem; border: 1.5px solid var(--line-cool); border-radius: 100px; color: var(--navy); transition: background var(--dur) var(--ease); }
.sibling-services a:hover { background: var(--bone); }
