/* ============================================================
   VALQUEIRA — sections, components, hero variants
   ============================================================ */

/* ============================================================
   HERO — three variants toggled by html[data-hero]
   ============================================================ */
.hero-variant { display: none; }
html[data-hero="fullbleed"]   .hero-fullbleed   { display: block; }
html[data-hero="split"]       .hero-split        { display: grid; }
html[data-hero="typographic"] .hero-typographic  { display: flex; }

/* shared hero shell */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }

/* --- Variant A: full-bleed photograph --- */
.hero-fullbleed { min-height: 100svh; }
.hero-fullbleed .hero-media { position: absolute; inset: 0; }
.hero-fullbleed .hero-media image-slot { width: 100%; height: 100%; }
.hero-fullbleed .hero-scrim {
  position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(105deg, rgba(14,24,41,0.92) 0%, rgba(14,24,41,0.72) 38%, rgba(14,24,41,0.28) 72%, rgba(14,24,41,0.12) 100%);
}
.hero-fullbleed .hero-inner {
  position: relative; z-index: 3;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: 120px; padding-bottom: 80px;
}
.hero-fullbleed .hero-copy { max-width: 760px; }

/* --- Variant B: split (copy left, image right) --- */
.hero-split { grid-template-columns: 1fr 1fr; align-items: stretch; min-height: 100svh; }
.hero-split .hero-copy-col {
  display: flex; flex-direction: column; justify-content: center;
  padding: 140px var(--gutter) 80px; max-width: 720px; margin-left: auto;
}
.hero-split .hero-media { position: relative; }
.hero-split .hero-media image-slot { width: 100%; height: 100%; min-height: 100svh; }
@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .hero-media image-slot { min-height: 56svh; }
  .hero-split .hero-copy-col { padding-top: 120px; }
}

/* --- Variant C: typographic-led (centered, type hero, image band below) --- */
.hero-typographic { flex-direction: column; min-height: 100svh; justify-content: center; padding-top: 120px; }
.hero-typographic .hero-type {
  text-align: center; padding-block: clamp(40px, 8vw, 90px);
  display: flex; flex-direction: column; align-items: center; gap: 30px;
}
.hero-typographic .hero-type .lead { max-width: 56ch; }
.hero-typographic .hero-type .eyebrow { justify-content: center; }
.hero-typographic .hero-band { height: clamp(180px, 26vh, 320px); }
.hero-typographic .hero-band image-slot { width: 100%; height: 100%; }

/* hero copy elements shared */
.hero-copy .eyebrow,
.hero-type .eyebrow { margin-bottom: 26px; }
.hero h1 { margin-bottom: 0.42em; text-wrap: wrap; }
.hero .hero-actions { margin-top: 38px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero .triad {
  margin-top: 54px; display: flex; gap: 18px; align-items: center;
  font-family: var(--font-display); font-size: clamp(18px, 1.8vw, 24px); font-weight: 400;
  color: rgba(255,255,255,0.85);
}
.hero .triad .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.hero-typographic .triad { justify-content: center; }

/* scroll cue */
.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 4;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.5);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--accent), transparent); }

/* ============================================================
   TRUST BAR / STATS
   ============================================================ */
.trust { background: var(--navy); border-top: 1px solid var(--hairline-dark); padding-block: clamp(48px, 6vw, 76px); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--hairline-dark); }
.stat { background: var(--navy); padding: 8px clamp(12px, 2vw, 30px); text-align: center; }
.stat .num {
  font-family: var(--font-display); font-weight: 300; color: var(--accent);
  font-size: clamp(40px, 4.6vw, 58px); line-height: 1; letter-spacing: -0.01em;
}
.stat .lbl { margin-top: 12px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
@media (max-width: 720px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.sec-head { max-width: 720px; margin-bottom: clamp(48px, 6vw, 72px); }
.sec-head .eyebrow { margin-bottom: 22px; }
.sec-head .lead { margin-top: 22px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }
.sec-head.center .lead { margin-inline: auto; }

/* ============================================================
   SERVICE GRID (4-up, shared hairline border, hover to navy)
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.svc {
  background: var(--offwhite); padding: clamp(30px, 3vw, 44px) clamp(26px, 2.6vw, 38px);
  min-height: 340px; display: flex; flex-direction: column;
  transition: background .5s ease, color .5s ease; position: relative;
}
.svc .svc-no { font-family: var(--font-display); font-size: 15px; color: var(--accent); letter-spacing: 0.05em; }
.svc .svc-icon { margin-top: 18px; color: var(--accent); transition: color .5s ease; }
.svc h3 { margin-top: auto; padding-top: 28px; font-family: var(--font-display); font-weight: 400; font-size: clamp(19px, 1.8vw, 22px); color: var(--navy); transition: color .5s ease; }
.svc p { margin-top: 14px; font-size: 13.5px; line-height: 1.7; color: var(--slate); transition: color .5s ease; }
.svc .svc-link { margin-top: 22px; }
.svc:hover { background: var(--navy); }
.svc:hover h3 { color: #fff; }
.svc:hover p { color: rgba(255,255,255,0.55); }
.svc:hover .svc-no { color: var(--accent); }
@media (max-width: 960px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } .svc { min-height: 280px; } }
@media (max-width: 560px) { .svc-grid { grid-template-columns: 1fr; } }

/* ============================================================
   WHO WE SERVE — two columns + image
   ============================================================ */
.serve-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.serve-list { display: flex; flex-direction: column; }
.serve-item { padding-block: 26px; border-top: 1px solid var(--border); }
.serve-item:last-child { border-bottom: 1px solid var(--border); }
.serve-item h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2vw, 25px); color: var(--navy); }
.serve-item p { margin-top: 8px; font-size: 14px; color: var(--slate); line-height: 1.7; }
.serve-media image-slot { width: 100%; height: clamp(420px, 46vw, 600px); }
@media (max-width: 860px) { .serve-grid { grid-template-columns: 1fr; } .serve-media { order: -1; } .serve-media image-slot { aspect-ratio: 4/3; } }

/* ============================================================
   PROCESS / HOW IT WORKS — faded numbers
   ============================================================ */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 48px); }
.step { }
.step .step-no { font-family: var(--font-display); font-weight: 300; font-size: clamp(52px, 6vw, 78px); line-height: 1; color: var(--navy); opacity: 0.12; }
.step h3 { margin-top: 18px; font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2vw, 24px); color: var(--navy); }
.step p { margin-top: 12px; font-size: 14px; color: var(--slate); line-height: 1.7; }
.step .step-rule { width: 28px; height: 1px; background: var(--accent); margin-top: 18px; }
@media (max-width: 880px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }

/* ============================================================
   WHY VALQUEIRA (dark) — differentiator list
   ============================================================ */
.why { background: var(--navy); color: #fff; }
.why-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); }
.diff-list { display: flex; flex-direction: column; }
.diff { padding-block: clamp(26px, 3vw, 38px); border-top: 1px solid var(--hairline-dark); display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.diff:last-child { border-bottom: 1px solid var(--hairline-dark); }
.diff .diff-rule { width: 28px; height: 1px; background: var(--accent); margin-top: 18px; }
.diff h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.2vw, 30px); color: #fff; }
.diff p { margin-top: 10px; font-size: 14.5px; color: rgba(255,255,255,0.52); line-height: 1.7; max-width: 52ch; }
@media (max-width: 860px) { .why-grid { grid-template-columns: 1fr; } }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 3vw, 48px); }
.member { display: grid; grid-template-columns: 180px 1fr; gap: clamp(20px, 2.4vw, 34px); align-items: start; }
.member .slot-wrap { width: 180px; height: 220px; }
.member image-slot { width: 100%; height: 100%; }
.member .role { margin-top: 4px; }
.member h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(22px, 2.2vw, 27px); color: var(--navy); }
.member .role-lbl { margin-top: 10px; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.member p { margin-top: 16px; font-size: 14px; color: var(--slate); line-height: 1.7; }
@media (max-width: 980px) { .team-grid { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .member { grid-template-columns: 1fr; } .member .slot-wrap { width: 140px; height: 170px; } }

/* ============================================================
   CTA BAND + FOOTER
   ============================================================ */
.cta { background: var(--navy-deep); color: #fff; text-align: center; }
.cta .wrap { display: flex; flex-direction: column; align-items: center; }
.cta h2 { margin-bottom: 30px; width: 100%; max-width: 100%; }
.cta .cta-sub { color: rgba(255,255,255,0.55); max-width: 48ch; margin: 0 auto 38px; font-size: 16px; }

.footer { padding-block: clamp(56px, 6vw, 84px) 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); padding-bottom: clamp(48px, 5vw, 70px); border-bottom: 1px solid var(--hairline-dark); }
.footer-brand .wordmark { color: #fff; }
.footer-brand p { margin-top: 22px; color: rgba(255,255,255,0.5); font-size: 14px; line-height: 1.7; max-width: 34ch; }
.footer-col h4 { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-col a { font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-block: 28px; flex-wrap: wrap; gap: 14px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 0.02em; }
.footer-bottom .fb-links { display: flex; gap: 24px; }
.footer-bottom .fb-links a { font-size: 12px; }
@media (max-width: 820px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ============================================================
   SECTION BACKGROUND RHYTHM (tweak)
   .alt-a defaults off-white, .alt-b defaults cream
   ============================================================ */
.alt-a { background: var(--offwhite); }
.alt-b { background: var(--cream); }
html[data-rhythm="warm"] .alt-a, html[data-rhythm="warm"] .alt-b { background: var(--cream); }
html[data-rhythm="cool"] .alt-a, html[data-rhythm="cool"] .alt-b { background: var(--offwhite); }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero { background: var(--navy); color: #fff; padding-top: clamp(150px, 16vw, 200px); padding-bottom: clamp(60px, 8vw, 100px); position: relative; }
.page-hero .eyebrow { margin-bottom: 24px; }
.page-hero h1 { font-size: clamp(40px, 5.4vw, 76px); }
.page-hero .lead { margin-top: 26px; color: rgba(255,255,255,0.55); }

/* prose */
.prose { max-width: 64ch; }
.prose p { font-size: 16px; line-height: 1.8; color: var(--slate); margin-bottom: 22px; text-wrap: pretty; }
.prose p:first-child { font-size: 19px; color: var(--navy); font-weight: 300; line-height: 1.7; }

/* ============================================================
   INNER-PAGE COMPONENTS
   ============================================================ */
/* two-column intro: prose + meta/image */
.split-2 { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split-2 .slot-wrap image-slot { width: 100%; height: clamp(360px, 40vw, 520px); }
@media (max-width: 860px) { .split-2 { grid-template-columns: 1fr; } }

/* detailed service rows */
.svc-row { display: grid; grid-template-columns: 90px 1fr 0.7fr; gap: clamp(24px, 4vw, 64px); align-items: baseline; padding-block: clamp(34px, 4vw, 52px); border-top: 1px solid var(--border); }
.svc-row:last-child { border-bottom: 1px solid var(--border); }
.svc-row .svc-row-no { font-family: var(--font-display); font-size: clamp(30px, 3vw, 40px); font-weight: 300; color: var(--accent); line-height: 1; }
.svc-row h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(24px, 2.6vw, 32px); color: var(--navy); }
.svc-row .svc-row-body { color: var(--slate); font-size: 15px; line-height: 1.75; }
.svc-row .svc-row-body ul { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.svc-row .svc-row-body li { padding-left: 18px; position: relative; }
.svc-row .svc-row-body li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--accent); }
@media (max-width: 760px) { .svc-row { grid-template-columns: 1fr; gap: 14px; } }

/* principles (dark) */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--hairline-dark); border: 1px solid var(--hairline-dark); }
.principle { background: var(--navy); padding: clamp(30px, 3.4vw, 48px); }
.principle .p-no { font-family: var(--font-display); color: var(--accent); font-size: 15px; }
.principle h3 { margin-top: 16px; font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2.2vw, 26px); color: #fff; }
.principle p { margin-top: 12px; color: rgba(255,255,255,0.52); font-size: 14.5px; line-height: 1.7; }
@media (max-width: 680px) { .principles { grid-template-columns: 1fr; } }

/* insight / article cards */
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.insight { display: flex; flex-direction: column; cursor: pointer; }
.insight .slot-wrap image-slot { width: 100%; height: clamp(200px, 22vw, 260px); }
.i-meta { display: flex; gap: 14px; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.insight .i-meta { margin-top: 22px; }
.i-meta .i-date { color: var(--muted); }
.insight h3 { margin-top: 16px; font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2vw, 24px); color: var(--navy); transition: color .35s ease; }
.insight p { margin-top: 12px; color: var(--slate); font-size: 14px; line-height: 1.7; }
.insight:hover h3 { color: var(--gold-muted); }
@media (max-width: 900px) { .insights-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .insights-grid { grid-template-columns: 1fr; } }

/* feature insight (first, wide) */
.insight-feature { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(32px, 4vw, 64px); align-items: center; margin-bottom: clamp(40px, 5vw, 72px); padding-bottom: clamp(40px, 5vw, 72px); border-bottom: 1px solid var(--border); }
.insight-feature .slot-wrap image-slot { width: 100%; height: clamp(280px, 32vw, 420px); }
.insight-feature h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.2vw, 40px); color: var(--navy); margin-top: 16px; }
.insight-feature p { margin-top: 18px; color: var(--slate); font-size: 15px; line-height: 1.75; max-width: 48ch; }
@media (max-width: 800px) { .insight-feature { grid-template-columns: 1fr; } }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--slate); font-weight: 600; margin-bottom: 10px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border); background: #fff;
  font-family: var(--font-body); font-size: 15px; font-weight: 300; color: var(--navy);
  border-radius: 0; transition: border-color .3s ease; outline: none;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.field.invalid input, .field.invalid textarea { border-color: #b4533f; }
.field .err { display: none; margin-top: 7px; font-size: 12px; color: #b4533f; }
.field.invalid .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-success { display: none; padding: 24px; border: 1px solid var(--accent); background: var(--cream); color: var(--navy); font-size: 15px; }
.form-success.show { display: block; }
.contact-aside .c-block { padding-block: 24px; border-top: 1px solid var(--border); }
.contact-aside .c-block:first-child { border-top: none; padding-top: 0; }
.contact-aside h4 { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 12px; }
.contact-aside p, .contact-aside a { font-size: 15px; color: var(--slate); line-height: 1.7; }
.contact-aside a:hover { color: var(--navy); }
