/* === Tokens === */
:root {
  --color-primary: #0369A1;
  --color-secondary: #0EA5E9;
  --color-accent: #22C55E;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --color-text: #0F172A;
  --color-muted: #475569;
  --color-border: rgba(12, 74, 110, 0.12);
  --font-heading: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-soft: 0 2px 20px rgba(3, 105, 161, 0.06);
  --shadow-lift: 0 20px 60px -20px rgba(3, 105, 161, 0.25);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 1rem; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }
.container.center { text-align: center; }
.section { padding-block: 3.5rem; }
.section-tint { background: linear-gradient(180deg, var(--color-neutral-light) 0%, #ffffff 100%); }
.section-head { text-align: center; margin-bottom: 2.5rem; max-width: 640px; margin-inline: auto; }
.section-head p { color: var(--color-muted); }

@media (min-width: 900px) {
  .section { padding-block: 5rem; }
}

/* === Header / Nav === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(240, 249, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-bottom-color: var(--color-border);
  box-shadow: 0 6px 24px -12px rgba(12, 74, 110, 0.18);
}
.site-header__inner {
  max-width: 1180px; margin: 0 auto; padding: 0.65rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; }
@media (min-width: 768px) { .logo img { height: 96px; } }

.nav-toggle {
  background: transparent; border: 1px solid var(--color-border);
  color: var(--color-neutral-dark);
  border-radius: var(--radius-sm); padding: .5rem; cursor: pointer;
  display: inline-flex;
}
.site-nav { display: none; }
.site-nav.is-open {
  display: flex; flex-direction: column;
  position: absolute; top: 100%; left: 0; right: 0;
  background: #ffffff; padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 12px 30px -12px rgba(12, 74, 110, 0.2);
  gap: .25rem;
}
.site-nav a {
  padding: .65rem .25rem;
  color: var(--color-neutral-dark); font-weight: 500;
  border-bottom: 1px solid var(--color-border);
}
.site-nav a[aria-current="page"] { color: var(--color-primary); }
.site-nav .nav-cta {
  margin-top: .5rem; background: var(--color-primary); color: #fff;
  border-radius: 999px; text-align: center; padding: .65rem 1rem; border: none;
}
.site-nav .nav-cta:hover { color: #fff; background: var(--color-neutral-dark); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; flex-direction: row; align-items: center; gap: 1.35rem; position: static; padding: 0; box-shadow: none; background: transparent; border: 0; }
  .site-nav a { padding: .35rem 0; border: 0; position: relative; }
  .site-nav a:not(.nav-cta)::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
    background: var(--color-primary); transform: scaleX(0); transform-origin: left;
    transition: transform .25s var(--ease);
  }
  .site-nav a:not(.nav-cta):hover::after,
  .site-nav a[aria-current="page"]:not(.nav-cta)::after { transform: scaleX(1); }
  .site-nav .nav-cta { margin-top: 0; padding: .55rem 1.1rem; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body); font-weight: 600;
  font-size: .95rem;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.btn:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; box-shadow: 0 10px 30px -12px rgba(3, 105, 161, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(3, 105, 161, 0.65); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--color-neutral-dark);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-neutral-light); color: var(--color-neutral-dark); }
.btn-on-dark { background: #fff; color: var(--color-neutral-dark); box-shadow: 0 10px 30px -14px rgba(0,0,0,0.35); }
.btn-on-dark:hover { background: var(--color-neutral-light); color: var(--color-neutral-dark); }

/* === Hero card === */
.hero-card-band {
  position: relative;
  padding: 3rem 1rem 3.5rem;
  background:
    radial-gradient(1000px 500px at 15% -10%, rgba(34, 197, 94, 0.10), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(14, 165, 233, 0.18), transparent 60%),
    linear-gradient(180deg, var(--color-neutral-light), #ffffff);
  overflow: hidden;
}
.hero-card {
  max-width: 880px; margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.5rem 2rem;
  box-shadow: 0 30px 60px -30px rgba(12, 74, 110, 0.35);
  text-align: left;
}
@media (min-width: 768px) { .hero-card { padding: 3.5rem 3rem 3rem; } }

.hero-card .eyebrow {
  text-transform: uppercase; letter-spacing: 0.14em; font-size: .78rem;
  color: var(--color-primary); font-weight: 600; margin-bottom: .9rem;
}
.hero-card h1 { margin-bottom: 1.1rem; }
.hero-card .lede {
  font-size: 1.15rem; color: var(--color-muted); max-width: 60ch; margin-bottom: 1.75rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 2rem; }
.hero-card__figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lift); }
.hero-card__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* === Cards grid === */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  display: flex; flex-direction: column; gap: .5rem;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: rgba(14, 165, 233, 0.35); }
.card p { color: var(--color-muted); margin: 0; }
.card h3 { margin: 0; }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(3, 105, 161, 0.12), rgba(34, 197, 94, 0.14));
  color: var(--color-primary); margin-bottom: .35rem;
}
.card-link { text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }

/* === Quote === */
.quote {
  margin: 0; padding: 2rem 1.5rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-neutral-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.quote p { font-size: 1.15rem; font-family: var(--font-heading); font-weight: 500; color: var(--color-neutral-dark); }
.quote cite { font-style: normal; color: var(--color-muted); font-size: .95rem; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; padding-block: 3.5rem;
  position: relative; overflow: hidden;
}
.cta-band::before {
  content: ""; position: absolute; inset: -10% -10% auto auto; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin-bottom: 1.5rem; }

/* === Split === */
.split { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.split__figure { margin: 0; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lift); }
.split__figure img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.contact-grid address { font-style: normal; line-height: 1.75; margin-bottom: 1.25rem; }
.hours { border-collapse: collapse; width: 100%; max-width: 340px; font-size: .95rem; }
.hours caption { text-align: left; font-weight: 600; color: var(--color-neutral-dark); padding-bottom: .5rem; }
.hours th, .hours td { padding: .4rem .25rem; border-bottom: 1px solid var(--color-border); text-align: left; }
.hours th { color: var(--color-muted); font-weight: 500; }

.contact-form { display: flex; flex-direction: column; gap: .35rem; }
.contact-form label { font-size: .9rem; color: var(--color-neutral-dark); font-weight: 500; margin-top: .5rem; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: .7rem .85rem;
  border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  background: #fff; color: var(--color-text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--color-secondary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
.form-consent {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .85rem; color: var(--color-muted);
  margin-top: 1rem; line-height: 1.5;
}
.form-consent input { margin-top: .2rem; }
.contact-form button { margin-top: 1.25rem; align-self: flex-start; }

/* === FAQ === */
.faq {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--color-neutral-dark);
  font-family: var(--font-heading); font-size: 1.05rem;
  list-style: none; display: flex; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-weight: 400; color: var(--color-primary);
  transition: transform .2s var(--ease);
}
.faq[open] summary::after { content: "–"; }
.faq p { margin-top: .75rem; color: var(--color-muted); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark); color: #cfe6f3;
  padding: 3.5rem 0 1.5rem; margin-top: 3rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2rem;
}
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; } }
.site-footer h3 {
  color: #fff; font-size: .95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem;
}
.site-footer a { color: #cfe6f3; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.site-footer .tagline { color: #cfe6f3; margin-top: .5rem; max-width: 34ch; }
.legal-links { margin-top: 1rem !important; font-size: .9rem; opacity: .85; }
.copyright {
  text-align: center; padding-top: 2.5rem; margin: 0;
  font-size: .85rem; color: rgba(255, 255, 255, 0.6);
}
.logo-footer img { height: 64px; }
@media (min-width: 768px) { .logo-footer img { height: 80px; } }

/* === Cookie banner === */
.consent-panel {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem;
  display: none; z-index: 9999;
  background: var(--color-neutral-dark); color: var(--color-neutral-light);
  padding: 1.25rem 1.35rem; border-radius: var(--radius-md);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.4);
  max-width: 720px; margin: 0 auto;
  font-size: .92rem;
}
.consent-panel.is-visible { display: block; }
.consent-panel p { margin: 0 0 1rem; }
.consent-panel__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.consent-panel__actions .btn { padding: .55rem 1rem; font-size: .88rem; }
.consent-panel__actions .btn-ghost { color: var(--color-neutral-light); border-color: rgba(255,255,255,0.25); }
.consent-panel__actions .btn-ghost:hover { background: rgba(255,255,255,0.08); color: #fff; }
.consent-panel__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.consent-panel__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.consent-panel__prefs button { margin-top: .5rem; align-self: flex-start; }

/* === Reveal === */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

.reveal, [data-reveal], .fade-in, .animate-in { opacity: 1 !important; transform: none !important; visibility: visible !important; }
