:root {
  --color-primary: #1E3A8A;
  --color-secondary: #3B82F6;
  --color-accent: #F97316;
  --color-neutral-dark: #1E40AF;
  --color-neutral-light: #EFF6FF;
  --ink: #0F1D3F;
  --ink-muted: #4B5B7A;
  --line: rgba(30, 58, 138, 0.14);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* === Base === */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #ffffff;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--color-accent); }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; color: var(--ink); letter-spacing: -0.01em; margin: 0 0 0.6em; line-height: 1.2; }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; letter-spacing: 0.02em; }
p { margin: 0 0 1em; }

/* === Layout === */
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.25rem; }
.wrap.narrow { max-width: 720px; }
.center { text-align: center; }
.muted { color: var(--ink-muted); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 600; color: var(--color-secondary); margin: 0 0 1rem; }

/* === Header === */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.logo { display: inline-flex; align-items: center; text-decoration: none; }
.logo img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) {
  .logo img { height: 96px; }
}

/* === Primary nav === */
.primary-nav { position: relative; }
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 34px;
  height: 26px;
  padding: 4px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-primary); border-radius: 2px; }
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0.75rem 0;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 200px;
  box-shadow: 0 20px 45px -25px rgba(30, 58, 138, 0.35);
  display: none;
}
.nav-menu.is-open { display: block; }
.nav-menu li { padding: 0; }
.nav-menu a { display: block; padding: 0.55rem 1.2rem; text-decoration: none; color: var(--ink); font-weight: 500; }
.nav-menu a[aria-current="page"] { color: var(--color-accent); }
.nav-menu a:hover { background: var(--color-neutral-light); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav-menu {
    display: flex;
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    gap: 0.4rem;
  }
  .nav-menu a { padding: 0.5rem 0.9rem; border-radius: 6px; }
}

/* === Hero — stacked === */
.hero-stacked {
  padding-block: 2.5rem 3rem;
  background: linear-gradient(180deg, var(--color-neutral-light) 0%, #ffffff 100%);
}
.hero-stacked .eyebrow { text-align: left; }
.hero-stacked h1 { text-align: left; margin-bottom: 2rem; }
.hero-figure { margin: 0 0 2rem; border-radius: 8px; overflow: hidden; }
.hero-figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.hero-sub { font-size: 1.15rem; color: var(--ink-muted); max-width: 60ch; margin-bottom: 1.75rem; }

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

/* === Sections === */
.section { padding-block: 3.5rem; }
.section-alt { background: var(--color-neutral-light); }
.section-head { margin-bottom: 2.5rem; max-width: 60ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-muted); font-size: 1.05rem; margin: 0; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }

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

/* === Grid === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .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); }
}

/* === Cards === */
.card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card .icon { color: var(--color-accent); margin-bottom: 0.4rem; }
.card h3 { margin: 0 0 0.25rem; }
.card p { margin: 0; color: var(--ink); font-size: 0.98rem; }
a.card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
a.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -18px rgba(30, 58, 138, 0.4);
  border-color: var(--color-secondary);
}
a.card-link h3 { color: var(--color-primary); }
a.card-link:hover h3 { color: var(--color-accent); }

/* === Split === */
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
.split-media img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }

/* === Testimonial === */
.pull-quote {
  margin: 0;
  padding: 2rem 1.5rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-neutral-light);
  border-radius: 4px;
}
.pull-quote p {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  line-height: 1.5;
  font-style: italic;
  margin: 0 0 1rem;
  color: var(--ink);
}
.pull-quote cite { font-style: normal; font-weight: 600; color: var(--color-primary); font-size: 0.95rem; }

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: #ffffff;
  padding-block: 3.5rem;
}
.cta-band h2, .cta-band p { color: #ffffff; }
.cta-band p { opacity: 0.92; }
.cta-band .btn-accent { color: #ffffff; }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 3rem; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.contact-info { font-style: normal; }
.contact-info p { margin-bottom: 1rem; }
.contact-info strong { display: block; font-family: var(--font-heading); font-size: 1rem; color: var(--color-primary); margin-bottom: 0.15rem; }
.contact-map img { border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
.contact-line { color: var(--ink-muted); font-size: 0.98rem; }

/* === Form === */
.contact-form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  max-width: 640px;
  margin-inline: auto;
}
.contact-form h3 { margin-top: 0; }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--color-primary); }
.field input, .field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: #ffffff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-secondary); outline-offset: 1px; border-color: var(--color-secondary); }
.form-consent {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0.5rem 0 1.2rem;
  flex-wrap: wrap;
}
.form-consent input { margin-top: 0.25rem; flex-shrink: 0; }

/* === FAQ === */
.faq {
  border-bottom: 1px solid var(--line);
  padding-block: 1rem;
}
.faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform 0.2s ease;
}
.faq[open] summary::after { content: '−'; }
.faq p { margin-top: 0.8rem; color: var(--ink); }

/* === Article detail === */
.article-detail {
  max-width: 65ch;
  margin: 3rem auto;
  padding-inline: 1.25rem;
}
.article-detail header { margin-bottom: 2rem; }
.article-detail h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.article-sub { font-size: 1.2rem; color: var(--ink-muted); margin: 0; }
.article-hero { margin-block: 2rem; }
.article-hero img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.article-detail p { font-size: 1.1rem; line-height: 1.75; margin-block: 1.25rem; }
.article-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.back-link { font-weight: 600; text-decoration: none; }
.back-link:hover { text-decoration: underline; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-light);
  border-top: 1px solid var(--line);
  padding-top: 3rem;
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}
.site-footer h4 { color: var(--color-primary); margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer ul li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer address { font-style: normal; margin-bottom: 1rem; line-height: 1.7; }
.legal-links { margin-top: 1rem; }
.legal-links li { margin-bottom: 0.3rem; }
.copyright { border-top: 1px solid var(--line); padding-block: 1rem; }
.copyright p { margin: 0; text-align: center; font-size: 0.88rem; color: var(--ink-muted); }
.logo-footer img { height: 60px; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; gap: 3rem; }
  .logo-footer img { height: 72px; }
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: none;
  z-index: 9999;
  max-width: 640px;
  margin-inline: auto;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1.25rem 1.4rem;
  border-radius: 10px;
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.35);
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.92rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button, .cookie-banner__prefs button {
  font-family: var(--font-body);
  padding: 0.55rem 1rem;
  border-radius: 6px;
  border: 1px solid rgba(239, 246, 255, 0.35);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}
.cookie-banner__actions button[data-cookie-accept]:hover { background: #ea580c; border-color: #ea580c; }
.cookie-banner__actions button:hover { border-color: var(--color-neutral-light); }
.cookie-banner__prefs {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(239, 246, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.cookie-banner__prefs label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.cookie-banner__prefs button[data-cookie-save] {
  align-self: flex-start;
  margin-top: 0.5rem;
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.legal-disclaimer { position: relative; z-index: 1000; background: #f7f4f0; border-bottom: 2px solid #a1887f; color: #4a423c; padding: 0.875rem 1.5rem; }
.legal-disclaimer p { max-width: 68rem; margin: 0 auto; font-size: 0.8125rem; line-height: 1.6; text-align: center; }
.legal-disclaimer strong { text-transform: uppercase; letter-spacing: 0.04em; }
.legal-disclaimer__icon { font-size: 1rem; }
