/* === Tokens === */
:root {
  --color-primary: #0369A1;
  --color-secondary: #38BDF8;
  --color-accent: #22C55E;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 8px;
  --max: 1200px;
}

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

.container { max-width: var(--max); margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-secondary);
  margin: 0 0 1rem;
}

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid rgba(12,74,110,0.08);
  backdrop-filter: blur(6px);
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: none; border: 0; padding: 0.5rem;
  color: var(--color-neutral-dark); cursor: pointer;
}
.primary-nav {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  flex-direction: column;
  background: #ffffff;
  border-bottom: 1px solid rgba(12,74,110,0.08);
  padding: 1rem 1.25rem;
  gap: 0.75rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-neutral-dark);
  font-weight: 500;
  padding: 0.35rem 0;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 900px) {
  .site-header { padding: 1rem 2rem; }
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex; position: static;
    flex-direction: row; gap: 2rem;
    background: transparent; border: 0; padding: 0;
  }
}

/* === Hero fullscreen === */
.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  color: var(--color-neutral-light);
  overflow: hidden;
  padding: 4rem 1.25rem;
}
.hero-fullscreen .hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-fullscreen .hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(3,32,55,0.55), rgba(12,74,110,0.75));
  z-index: -1;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.hero-inner h1 { color: var(--color-neutral-light); margin-bottom: 1rem; }
.hero-inner .eyebrow { color: var(--color-secondary); }
.hero-sub {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: rgba(240,249,255,0.88);
  max-width: 60ch;
  margin: 0 auto 2rem;
}
.hero-inner-page { min-height: 60vh; }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--color-primary);
  color: var(--color-neutral-light);
}
.btn-primary:hover { background: var(--color-neutral-dark); }
.btn-accent {
  background: var(--color-accent);
  color: #ffffff;
}
.btn-accent:hover { background: #16a34a; }

/* === Sections === */
.section { padding-block: 4rem; }
.section-alt { background: var(--color-neutral-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section-head p { color: rgba(12,74,110,0.75); }
.section-sub { color: rgba(12,74,110,0.7); margin-bottom: 1.5rem; }

.figure-inline { margin: 2rem 0 0; }
.figure-inline img { border-radius: var(--radius); }

/* === Grid + cards === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #ffffff;
  border: 1px solid rgba(12,74,110,0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card-icon { color: var(--color-primary); margin-bottom: 0.75rem; }
.card p { color: rgba(12,74,110,0.8); margin-bottom: 0; }
.card h3 { margin-bottom: 0.5rem; }
.card-link {
  color: inherit; text-decoration: none;
  display: block;
}
.card-link:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -18px rgba(12,74,110,0.35);
}

/* === Testimonial === */
.testimonial {
  text-align: center;
  margin: 0;
  padding: 1.5rem 0;
}
.testimonial p {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-style: italic;
  color: var(--color-neutral-dark);
  line-height: 1.5;
  margin-bottom: 1rem;
}
.testimonial cite {
  font-style: normal;
  font-size: 0.95rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: var(--color-neutral-light);
  padding-block: 4rem;
  text-align: center;
}
.cta-band h2 { color: var(--color-neutral-light); }
.cta-band p { color: rgba(240,249,255,0.88); max-width: 60ch; margin: 0 auto 1.75rem; }

/* === Contact === */
.contact-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1.15fr; }
}
.contact-inline p { margin-bottom: 0.5rem; }

form[data-contact-form] label {
  display: block; margin: 1rem 0 0.35rem;
  font-weight: 500; font-size: 0.95rem;
}
form[data-contact-form] input[type="text"],
form[data-contact-form] input[type="email"],
form[data-contact-form] textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(12,74,110,0.2);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-neutral-dark);
  background: #ffffff;
}
form[data-contact-form] input:focus,
form[data-contact-form] textarea:focus {
  outline: 2px solid var(--color-secondary);
  outline-offset: 1px;
}
.form-consent {
  display: flex; gap: 0.6rem; align-items: flex-start;
  margin: 1.25rem 0 1.5rem;
  font-size: 0.9rem;
  color: rgba(12,74,110,0.85);
  font-weight: 400;
}
.form-consent input { margin-top: 0.25rem; flex-shrink: 0; }

/* === FAQ === */
.faq {
  border-bottom: 1px solid rgba(12,74,110,0.12);
  padding: 1rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-neutral-dark);
  padding: 0.35rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  float: right;
  font-size: 1.4rem;
  color: var(--color-primary);
  line-height: 1;
}
.faq[open] summary::after { content: '−'; }
.faq p { margin-top: 0.75rem; color: rgba(12,74,110,0.82); }

/* === Article detail === */
.article-detail {
  max-width: 65ch;
  margin-inline: auto;
  padding: 3rem 1.25rem 4rem;
}
.article-detail h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.article-sub {
  font-size: 1.2rem;
  color: rgba(12,74,110,0.75);
  margin-bottom: 2rem;
}
.article-hero {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  margin-block: 2rem;
}
.article-detail h2 {
  margin-top: 2.5rem;
  font-size: 1.5rem;
}
.article-detail p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-block: 1.25rem;
}
.article-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(12,74,110,0.12); }
.back-link { font-weight: 600; }

/* === Thank-you === */
.thank-you { padding-top: 6rem; padding-bottom: 3rem; text-align: center; }
.thank-you .lede { font-size: 1.15rem; color: rgba(12,74,110,0.8); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(240,249,255,0.85);
  padding-block: 3rem 1.5rem;
  margin-top: 4rem;
}
.site-footer h3 {
  color: var(--color-neutral-light);
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(240,249,255,0.85); }
.site-footer a:hover { color: var(--color-secondary); }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.4fr; }
}
.logo-footer img { height: 64px; filter: brightness(0) invert(1); }
.tagline { color: rgba(240,249,255,0.7); font-size: 0.95rem; margin-top: 0.75rem; }
.footer-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-contact address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.legal-nav { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.9rem; }
.copyright {
  border-top: 1px solid rgba(240,249,255,0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(240,249,255,0.65);
}

/* === Cookie banner === */
.cookie-banner {
  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;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
  max-width: 640px;
  margin-inline: auto;
  font-size: 0.9rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.85rem; color: var(--color-neutral-light); }
.cookie-banner__actions {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
}
.cookie-banner__actions button {
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  border: 1px solid rgba(240,249,255,0.25);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
  font-size: 0.9rem;
  font-family: var(--font-body);
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
  font-weight: 600;
}
.cookie-banner__prefs {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(240,249,255,0.2);
  display: flex; flex-direction: column; gap: 0.5rem;
}
.cookie-banner__prefs label {
  display: flex; gap: 0.5rem; align-items: center;
  color: var(--color-neutral-light);
}
.cookie-banner__prefs button {
  align-self: flex-start;
  margin-top: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  background: var(--color-primary);
  color: var(--color-neutral-light);
  border: 0;
  cursor: pointer;
  font-weight: 600;
}
