/* === Tokens === */
:root {
  --color-primary: #0369A1;
  --color-secondary: #0EA5E9;
  --color-accent: #22C55E;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --color-text: #0C1E2E;
  --color-muted: #4A6072;
  --color-border: rgba(12, 74, 110, 0.14);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --shadow-card: 0 8px 24px -12px rgba(12, 74, 110, 0.18);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--color-text); background: #ffffff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

/* === Typography === */
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; font-weight: 600; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); margin-top: 0; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.8rem; font-weight: 600; color: var(--color-primary); margin-bottom: 0.75rem; }
.lede { color: var(--color-muted); font-size: 1.05rem; margin-bottom: 1.25rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* === Layout === */
.container { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 720px; margin-inline: auto; }
.center { text-align: center; }

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

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

/* === Hero (split) === */
.hero { padding-block: 3rem; background: linear-gradient(180deg, var(--color-neutral-light), #ffffff); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.hero-text h1 { margin-bottom: 1.25rem; }
.hero-sub { font-size: 1.125rem; color: var(--color-muted); max-width: 48ch; margin-bottom: 1.75rem; }
.hero-image img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-card); }

@media (min-width: 900px) {
  .hero { padding-block: 5rem; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
  .hero-text { order: 1; }
  .hero-image { order: 2; }
}

/* === Buttons === */
.btn { display: inline-block; padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 600; letter-spacing: 0.01em; transition: transform 0.15s ease, box-shadow 0.15s ease; border: 1px solid transparent; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-neutral-dark); color: #fff; }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #16a34a; color: #fff; }

/* === Sections === */
.section { padding-block: 3.5rem; }
.section-alt { background: var(--color-neutral-light); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 2.5rem; }

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

/* === Grid & Cards === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card { background: #fff; padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow-card); }
.card h3 { color: var(--color-neutral-dark); margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin-bottom: 0; }
.card-icon { color: var(--color-primary); margin-bottom: 1rem; }
a.card-link { display: block; color: inherit; }
a.card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(12, 74, 110, 0.28); }
a.card-link h3 { color: var(--color-primary); }

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

/* === CTA band === */
.cta-band { background: var(--color-primary); color: #fff; padding-block: 3.5rem; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); margin-bottom: 1.75rem; }
.cta-band .btn-accent { color: #fff; }

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

/* === Contact form === */
.contact-form { display: grid; gap: 1.25rem; background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: var(--shadow-card); }
.form-row { display: grid; gap: 0.4rem; }
.form-row label { font-weight: 600; color: var(--color-neutral-dark); font-size: 0.95rem; }
.form-row input, .form-row textarea { font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--color-border); border-radius: 8px; background: #fff; color: var(--color-text); }
.form-row input:focus, .form-row textarea:focus { outline: 2px solid var(--color-secondary); outline-offset: 1px; border-color: var(--color-secondary); }
.form-consent { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--color-muted); flex-wrap: wrap; }
.form-consent input { margin-top: 0.25rem; }

/* === Thank-you === */
.thank-you-hero { padding-block: 5rem; background: var(--color-neutral-light); }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: #cfe4f2; padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2rem; }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.4rem; }
.site-footer a { color: #cfe4f2; }
.site-footer a:hover { color: #fff; }
.tagline { color: #a7c5db; margin-top: 0.75rem; }
.footer-logo img { height: 64px; filter: brightness(0) invert(1); }
.legal-links { margin-top: 1rem; font-size: 0.9rem; }
.copyright { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-top: 1.25rem; font-size: 0.85rem; color: #a7c5db; }
address { font-style: normal; line-height: 1.7; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr 1.3fr; }
}

/* === 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 40px -12px rgba(0, 0, 0, 0.4); max-width: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button { background: transparent; color: var(--color-neutral-light); border: 1px solid rgba(240, 249, 255, 0.35); padding: 0.55rem 1rem; border-radius: 6px; font-size: 0.9rem; }
.cookie-banner button:hover { background: rgba(240, 249, 255, 0.1); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-accept]:hover { background: #16a34a; }
.cookie-banner__prefs { display: grid; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(240, 249, 255, 0.2); }
.cookie-banner__prefs label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.cookie-banner__prefs [data-cookie-save] { justify-self: start; margin-top: 0.5rem; background: var(--color-neutral-light); color: var(--color-neutral-dark); border-color: var(--color-neutral-light); }
