/* === Design tokens === */
:root {
  --color-primary: #0EA5E9;
  --color-secondary: #0284C7;
  --color-accent: #10B981;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --color-bg: #FFFFFF;
  --color-text: #0C4A6E;
  --color-muted: #475569;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', system-ui, sans-serif;
  --radius: 12px;
  --shadow-sm: 0 4px 20px -12px rgba(12, 74, 110, 0.25);
  --shadow-md: 0 20px 50px -30px rgba(12, 74, 110, 0.35);
}

/* === 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: var(--color-bg);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-neutral-dark);
  line-height: 1.2;
  margin: 0 0 1rem;
  font-weight: 600;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* === Header === */
.site-header {
  border-bottom: 1px solid rgba(12, 74, 110, 0.08);
  background: var(--color-bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}
.logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: none;
  border: none;
  color: var(--color-neutral-dark);
  padding: .5rem;
  display: inline-flex;
}
.site-nav {
  display: none;
  flex-direction: column;
  width: 100%;
  gap: .25rem;
  padding-top: 1rem;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  color: var(--color-neutral-dark);
  font-weight: 700;
  padding: .75rem 0;
  border-bottom: 1px solid rgba(12, 74, 110, 0.06);
}
.site-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 900px) {
  .site-header__inner { flex-wrap: nowrap; padding: 1.25rem 1.25rem; }
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .site-nav {
    display: flex;
    flex-direction: row;
    width: auto;
    gap: 2rem;
    padding-top: 0;
  }
  .site-nav a { border-bottom: none; padding: 0; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: .875rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  border: none;
  font-size: 1rem;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover { background: var(--color-secondary); text-decoration: none; transform: translateY(-1px); }
.btn--accent {
  background: var(--color-accent);
  color: #fff;
}
.btn--accent:hover { background: #059669; text-decoration: none; transform: translateY(-1px); }

/* === Hero === */
.hero {
  padding: 3.5rem 0 4rem;
  text-align: center;
}
.hero h1 {
  max-width: 28ch;
  margin: 0 auto 1.25rem;
}
.hero__sub {
  max-width: 52ch;
  margin: 0 auto 2rem;
  font-size: 1.125rem;
  color: var(--color-muted);
}
.hero__figure {
  margin: 3rem auto 0;
  max-width: 100%;
}
.hero__figure img {
  width: 100%;
  border-radius: var(--radius);
  aspect-ratio: 16/9;
  object-fit: cover;
  box-shadow: var(--shadow-md);
}
@media (min-width: 768px) {
  .hero { padding: 5rem 0 6rem; }
}

/* === Sections === */
.section { padding: 4rem 0; }
.section--narrow .container { max-width: 720px; }
.section--narrow { text-align: center; }
.section--narrow p { text-align: left; }
.section--tint { background: var(--color-neutral-light); }
.section__sub {
  font-size: 1.05rem;
  color: var(--color-muted);
  margin: 0 auto 2rem;
  max-width: 56ch;
}

/* === Grids === */
.grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 2rem;
}
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* === Cards === */
.card {
  background: #fff;
  border: 1px solid rgba(12, 74, 110, 0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card__icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card h3 { color: var(--color-neutral-dark); margin-bottom: .5rem; }
.card p { color: var(--color-muted); margin: 0; }
.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.card-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.card-link:hover h3 { color: var(--color-primary); }

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

/* === Testimonial === */
.section--testimonial {
  padding: 4rem 0;
  text-align: center;
}
.section--testimonial blockquote {
  max-width: 60ch;
  margin: 0 auto;
  padding: 0;
}
.section--testimonial p {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--color-neutral-dark);
  font-style: italic;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}
.section--testimonial cite {
  font-style: normal;
  color: var(--color-muted);
  font-size: .95rem;
  font-weight: 700;
}

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  padding: 4rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 52ch; margin: 0 auto 2rem; color: rgba(255,255,255,0.9); }

/* === Article detail === */
.article-detail {
  max-width: 65ch;
  margin: 3rem auto;
  padding: 0 1.25rem;
}
.article-detail__header { margin-bottom: 2rem; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: .75rem;
}
.article-detail h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.article-detail__sub {
  font-size: 1.25rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.article-detail__figure {
  margin: 2rem 0;
}
.article-detail__figure img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
}
.article-detail p {
  font-size: 1.125rem;
  line-height: 1.7;
  margin-block: 1.25rem;
}
.article-detail__footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(12, 74, 110, 0.1);
}
.back-link {
  font-weight: 700;
  color: var(--color-primary);
}

/* === Contact form === */
.contact-form {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}
.form-row { margin-bottom: 1.25rem; }
.form-row label {
  display: block;
  font-weight: 700;
  margin-bottom: .4rem;
  color: var(--color-neutral-dark);
}
.form-row input,
.form-row textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid rgba(12, 74, 110, 0.2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--color-neutral-dark);
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 1.25rem 0 1.75rem;
  font-size: .9rem;
  color: var(--color-muted);
  line-height: 1.5;
}
.form-consent input { margin-top: .25rem; flex-shrink: 0; }
.form-success {
  margin-top: 1.5rem;
  padding: 1rem;
  background: var(--color-neutral-light);
  border-left: 4px solid var(--color-accent);
  color: var(--color-neutral-dark);
  border-radius: 4px;
}

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(240, 249, 255, 0.85);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: 1fr;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(240, 249, 255, 0.85); display: block; padding: .3rem 0; }
.site-footer a:hover { color: #fff; }
.logo--footer img { height: 56px; filter: brightness(0) invert(1); margin-bottom: .75rem; }
.footer__tag { font-style: italic; color: rgba(240, 249, 255, 0.7); }
.footer-nav a, .footer-contact a { text-decoration: none; }
.footer-contact address { font-style: normal; margin-bottom: 1rem; line-height: 1.8; }
.footer-legal { margin-top: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-legal a { display: inline; font-size: .9rem; }
.footer__copy {
  text-align: center;
  margin: 3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(240, 249, 255, 0.1);
  font-size: .875rem;
  color: rgba(240, 249, 255, 0.6);
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 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 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5);
  max-width: 640px;
  margin: 0 auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .9rem; line-height: 1.5; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}
.cookie-banner button {
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(240,249,255,0.3);
  background: transparent;
  color: var(--color-neutral-light);
  font-weight: 700;
  font-size: .875rem;
}
.cookie-banner button[data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.cookie-banner__prefs {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(240,249,255,0.15);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .875rem;
}
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; }
.cookie-banner__prefs button {
  margin-top: .5rem;
  align-self: flex-start;
  background: var(--color-primary);
  border-color: var(--color-primary);
}
