/* ==========================================================================
   LibeCore — site-wide reskin (matches the new homepage design system)
   Same selectors as site.css so page markup didn't need to change.
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;1,9..144,400;1,9..144,500&family=Host+Grotesk:wght@300;400;500;600;700&display=swap');
:root {
  --navy: #1c3547;
  --navy-2: #15283a;
  --blue: #2d7d63;
  --blue-bright: #45b092;
  --accent: #3ba888;
  --accent-2: #6cc3a6;
  --ink: #17273a;
  --muted: #5c6b7d;
  --muted-light: #8b98a8;
  --line: #e2e8ec;
  --bg: #ffffff;
  --bg-soft: #fafafb;
  --radius: 0px;
  --radius-lg: 16px;
  --shadow: none;
  --shadow-sm: none;
  --wrap: 1140px;
  --font: "Host Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: linear-gradient(175deg, var(--navy), var(--navy-2) 120%); color: #fff; }
.section-dark .sec-head h2, .section-dark h2 { color: #fff; }
.section-dark .lead { color: rgba(255,255,255,0.68); }
.section-dark .eyebrow { color: var(--accent-2); }
.eyebrow { display: inline-block; font-family: var(--font); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.eyebrow.on-dark { color: var(--accent-2); }
h1, h2, h3 { font-family: var(--font); line-height: 1.1; letter-spacing: -0.025em; font-weight: 400; color: var(--ink); }
.h-xl, .h-lg { font-family: var(--font); font-weight: 400; }
.h-xl { font-size: clamp(38px, 6vw, 68px); letter-spacing: -0.03em; }
.h-lg { font-size: clamp(30px, 4.4vw, 46px); }
.lead { font-size: clamp(17px, 2vw, 20px); font-weight: 300; color: var(--muted); }
.lead a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.lead a:hover { color: var(--blue-bright); }
.on-dark .lead, .lead.on-dark { color: #cdd7ea; }

/* Buttons — flat, pill */
.btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 15px; padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: all .18s ease; font-family: var(--font); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: #256b53; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }

/* Header */
.hdr { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.hdr-inner { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-serif); font-weight: 400; font-size: 25px; color: var(--ink); }
.brand .logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand > span { color: var(--ink); }
.brand .b2 { color: var(--accent); }
.ftr .brand > span { color: #fff; }
.ftr .brand .b2 { color: var(--accent-2); }
.hdr-phone { color: var(--ink); font-weight: 500; font-size: 15px; white-space: nowrap; transition: color .15s; }
.hdr-phone:hover { color: var(--blue); }
.ftr-contact { margin-top: 10px; }
.ftr-contact a { color: #fff; font-weight: 500; font-size: 15px; }
.ftr-contact a:hover { color: var(--accent-2); }
.ftr-address { font-style: normal; margin-top: 8px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,0.65); }

.contact-details { margin-top: 30px; display: grid; gap: 18px; }
.contact-details p { margin: 0; }
.contact-details .cd-label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 4px; }
.contact-details a { color: #fff; font-weight: 500; font-size: 17px; }
.contact-details a:hover { color: var(--accent-2); }
.contact-details address { font-style: normal; font-size: 16px; line-height: 1.55; color: rgba(255,255,255,0.75); }
@media (max-width: 600px) { .hdr-phone { display: none; } }
.consent-check { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 14px; font-size: 12px; line-height: 1.5; color: var(--muted); cursor: pointer; }
.consent-check[hidden] { display: none; }
.consent-check input { flex: 0 0 16px; width: 16px; height: 16px; margin-top: 2px; accent-color: var(--blue); cursor: pointer; }
.consent-check span { flex: 1 1 auto; min-width: 0; }
.consent-check .req { color: #e24b4a; font-weight: 700; }
#audit { scroll-margin-top: 90px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--muted); font-weight: 500; font-size: 15px; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.hdr .btn { padding: 11px 22px; font-size: 15px; }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

/* Page hero (light, editorial) */
.page-hero { background: var(--bg-soft); color: var(--ink); padding: 88px 0 76px; }
.page-hero .eyebrow { color: var(--blue); }
.page-hero h1 { max-width: 18ch; margin-bottom: 18px; font-weight: 400; }
.page-hero .lead { max-width: 60ch; color: var(--muted); margin-bottom: 26px; }
.prose { max-width: 760px; }
.prose h2 { font-weight: 400; font-size: clamp(26px, 3.4vw, 34px); margin: 48px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.prose h3 { font-weight: 500; font-size: clamp(19px, 2.5vw, 24px); margin: 40px 0 10px; color: var(--ink); }
.prose h3:first-child { margin-top: 0; }
.prose strong { color: var(--ink); }

/* Feature bar */
.featbar { background: var(--blue); color: #fff; }
.featbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding-top: 40px; padding-bottom: 40px; }
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat-ic { width: 40px; height: 40px; border-radius: 8px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feat-ic svg { width: 20px; height: 20px; fill: var(--accent-2); }
.feat h5 { font-family: var(--font); font-weight: 600; font-size: 16px; margin-bottom: 3px; }
.feat p { font-size: 13.5px; color: rgba(255,255,255,0.82); line-height: 1.4; }
@media (max-width: 820px) { .featbar .wrap { grid-template-columns: 1fr 1fr; gap: 22px; } }
@media (max-width: 460px) { .featbar .wrap { grid-template-columns: 1fr; } }

/* Section headings */
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { margin-top: 16px; }

/* Cards, flip cards, steps — flat, hairline, sharp corners */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.svc-card { background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 36px 32px; transition: border-color .2s ease, transform .2s ease; }
.svc-card:hover { transform: translateY(-4px); border-color: #d4dbd8; }
.svc-icon { width: 48px; height: 48px; border-radius: 8px; background: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: transform .3s ease; }
.svc-icon svg { width: 24px; height: 24px; fill: #fff; }
.svc-card:hover .svc-icon { transform: translateY(-3px); }
.svc-card h3 { font-weight: 500; font-size: 21px; margin-bottom: 10px; }
.svc-card p { color: var(--muted); font-size: 15.5px; margin-bottom: 16px; }
.svc-card .more { color: var(--blue); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; }
.svc-card:hover .more { gap: 10px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; counter-reset: step; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: 0; padding: 30px; position: relative; transition: transform .2s ease; }
.step:hover { transform: translateY(-3px); }
.step-num { counter-increment: step; width: 42px; height: 42px; border-radius: 8px; background: var(--navy); color: #fff; font-weight: 600; font-size: 17px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.step-num::before { content: counter(step, decimal-leading-zero); }
.step h3 { font-weight: 500; font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

.flip { perspective: 1200px; display: block; color: inherit; text-decoration: none; cursor: pointer; }
a.flip { color: inherit; }
.flip-inner { position: relative; width: 100%; min-height: 300px; transition: transform .6s cubic-bezier(.2,.8,.2,1); transform-style: preserve-3d; }
.flip:hover .flip-inner, .flip:focus-within .flip-inner, .flip.flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 0; border: 1px solid var(--line); padding: 32px; display: flex; flex-direction: column; background: #fff; }
.flip-front .svc-icon { margin-bottom: 20px; }
.flip-front h3 { font-weight: 500; font-size: 21px; margin-bottom: 8px; }
.flip-front .hint { margin-top: auto; color: var(--muted-light); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.flip-back { transform: rotateY(180deg); background: linear-gradient(160deg, var(--blue), var(--navy-2)); color: #fff; justify-content: center; }
.flip-back h3 { font-weight: 500; font-size: 19px; margin-bottom: 10px; }
.flip-back p { color: rgba(255,255,255,0.82); font-size: 15px; margin-bottom: 16px; }
.flip-back .more { color: #fff; font-weight: 600; font-size: 15px; margin-top: auto; }

/* Audit / CTA form */
.audit { background: linear-gradient(175deg, var(--navy-2), var(--navy)); color: #fff; }
.audit .eyebrow { color: var(--accent-2); }
.audit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.audit h2 { margin-bottom: 18px; font-weight: 400; }
.audit .lead { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.audit-list { list-style: none; display: grid; gap: 14px; }
.audit-list li { display: flex; gap: 12px; color: rgba(255,255,255,0.82); }
.audit-list svg { width: 22px; height: 22px; fill: var(--accent-2); flex-shrink: 0; }
.audit-card { background: #fff; border-radius: 12px; padding: 34px; }
.audit-card h3 { color: var(--ink); font-weight: 500; font-size: 24px; margin-bottom: 6px; }
.audit-card > p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.audit-card input, .audit-card textarea { width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font); font-size: 15px; background: var(--bg-soft); color: var(--ink); }
.audit-card input:focus, .audit-card textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.hp-field { position: absolute; left: -9999px; }
.form-status { margin-top: 12px; font-size: 14px; color: var(--muted); text-align: center; }

/* Footer */
.ftr { background: var(--navy); color: rgba(255,255,255,0.75); padding: 64px 0 30px; }
.ftr-social { margin-top: 16px; display: flex; gap: 10px; }
.ftr-social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 0; border: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.8); transition: border-color .18s ease, color .18s ease; }
.ftr-social a:hover { border-color: var(--accent); color: var(--accent); }
.ftr-social svg { width: 19px; height: 19px; fill: currentColor; }
.ftr .brand { color: #fff; }
.ftr-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.ftr h4 { color: rgba(255,255,255,0.55); font-weight: 500; font-size: 12.5px; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 18px; }
.ftr a { display: block; color: rgba(255,255,255,0.7); font-size: 15px; padding: 5px 0; transition: color .15s; }
.ftr a:hover { color: #fff; }
.ftr-brand .brand { margin-bottom: 14px; }
.ftr-brand p { font-size: 14.5px; max-width: 34ch; color: rgba(255,255,255,0.65); }
.ftr-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 44px; padding-top: 24px; font-size: 13.5px; color: rgba(255,255,255,0.5); display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; justify-content: space-between; }
.ftr-bottom-contact { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ftr-bottom-contact a { color: inherit; font-weight: inherit; }
.ftr-bottom-contact a:hover { color: var(--accent-2); }
.ftr-bottom-contact .dot { color: rgba(255,255,255,0.5); opacity: .6; }
@media (max-width: 640px) { .ftr-bottom { justify-content: flex-start; } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s; }
.reveal[data-delay="2"] { transition-delay: .2s; }
.reveal[data-delay="3"] { transition-delay: .3s; }

@media (max-width: 900px) {
  .hero-grid, .split, .audit-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .burger { display: flex; }
  .hdr .btn { display: none; }
  .section { padding: 60px 0; }
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-actions { margin-left: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}

/* Cookie banner — matches the new homepage's dark card style */
.cookie-banner { position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 200; max-width: 640px; margin: 0 auto; background: var(--navy); color: #fff; border-radius: 12px; padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.4); font-size: 14px; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { color: rgba(255,255,255,0.8); flex: 1; min-width: 220px; }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-actions { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie { padding: 9px 18px; border-radius: 8px; border: none; font-weight: 600; font-size: 14px; cursor: pointer; font-family: var(--font); }
.btn-cookie.decline { background: rgba(255,255,255,0.1); color: #fff; }
.btn-cookie.accept { background: var(--blue); color: #fff; }
