:root {
  --color-primary: #0891B2;
  --color-secondary: #22D3EE;
  --color-accent: #059669;
  --color-neutral-dark: #164E63;
  --color-neutral-light: #ECFEFF;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --max-content: 780px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; height: auto; }
a { color: var(--color-primary); }
body {
  font-family: var(--font-body);
  color: var(--color-neutral-dark);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--color-neutral-dark); }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--color-neutral-dark); color: #fff; padding: .5rem 1rem; z-index: 10000; }
.skip-link:focus { left: 0; }

/* === Layout: sidebar nav === */
.layout { display: block; }
.sidebar {
  background: var(--color-neutral-light);
  padding: 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(22,78,99,0.12);
  position: relative;
}
.logo img { height: 72px; width: auto; }
.nav-toggle {
  position: absolute; top: 1.5rem; right: 1.25rem;
  background: transparent; border: 0; padding: .5rem; cursor: pointer;
  display: inline-flex; flex-direction: column; gap: 5px; width: 44px; height: 44px; justify-content: center; align-items: center;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--color-neutral-dark); transition: transform .2s; }
.primary-nav { display: none; margin-top: 1.25rem; }
.primary-nav.is-open { display: block; }
.primary-nav ul { display: flex; flex-direction: column; gap: .25rem; }
.primary-nav a {
  display: block; padding: .625rem .75rem; border-radius: 6px;
  color: var(--color-neutral-dark); text-decoration: none; font-weight: 600;
}
.primary-nav a:hover, .primary-nav a[aria-current="page"] { background: rgba(8,145,178,0.12); color: var(--color-primary); }
.sidebar-footer { margin-top: 1.5rem; font-size: .8rem; color: rgba(22,78,99,0.7); }

main { padding: 2rem 1.25rem 4rem; }

/* === Hero === */
.hero { max-width: var(--max-content); margin: 0 auto 3rem; }
.eyebrow { font-family: var(--font-heading); font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--color-primary); font-weight: 600; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -0.01em; margin-bottom: 1.25rem; max-width: 22ch; }
.hero-sub { font-size: 1.15rem; color: rgba(22,78,99,0.85); max-width: 60ch; margin-bottom: 1.75rem; }
.hero-cta { margin-bottom: 2rem; }
.hero-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; margin-top: 2rem; }

.btn { display: inline-block; padding: .875rem 1.75rem; border-radius: 8px; font-family: var(--font-heading); font-weight: 600; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; border: 0; cursor: pointer; font-size: 1rem; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-neutral-dark); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #047857; }

/* === Intro === */
.intro { max-width: var(--max-content); margin: 0 auto 3.5rem; }
.intro h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1rem; }
.intro p { font-size: 1.0625rem; }

/* === Highlights grid === */
.highlights { max-width: 1100px; margin: 0 auto 3.5rem; }
.section-head { margin-bottom: 2rem; max-width: 60ch; }
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .5rem; }
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.card {
  background: var(--color-neutral-light);
  border: 1px solid rgba(22,78,99,0.08);
  border-radius: 12px;
  padding: 1.75rem;
  transition: transform .2s, box-shadow .2s;
}
.card .icon { color: var(--color-primary); margin-bottom: .75rem; }
.card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.card p { font-size: .975rem; color: rgba(22,78,99,0.85); }
.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(22,78,99,0.35); }

/* === Testimonial === */
.testimonial { max-width: var(--max-content); margin: 0 auto 3.5rem; padding: 2.5rem 1rem; text-align: center; }
.testimonial blockquote p { font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.15rem, 2.4vw, 1.5rem); line-height: 1.5; color: var(--color-neutral-dark); margin-bottom: 1.25rem; font-style: italic; }
.testimonial cite { font-style: normal; font-size: .95rem; color: rgba(22,78,99,0.7); }

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding: 3rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto 3.5rem;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .75rem; }
.cta-band p { margin-bottom: 1.5rem; }

/* === Contact band === */
.contact-band { max-width: var(--max-content); margin: 0 auto 3rem; padding: 2rem; background: var(--color-neutral-light); border-radius: 12px; }
.contact-band h2 { font-size: 1.5rem; margin-bottom: .75rem; }
.contact-band a { color: var(--color-primary); }

/* === Contact form === */
.form-section { max-width: var(--max-content); margin: 0 auto 3.5rem; }
.form-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .5rem; }
.contact-form { display: grid; gap: 1.25rem; margin-top: 1.5rem; }
.field { display: grid; gap: .375rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font: inherit;
  padding: .75rem .875rem;
  border: 1px solid rgba(22,78,99,0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--color-neutral-dark);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.form-consent { display: flex; gap: .625rem; align-items: flex-start; font-size: .9rem; flex-wrap: wrap; }
.form-consent input { margin-top: .25rem; }

/* === Article detail === */
.article-detail { max-width: 65ch; margin: 0 auto; padding: 0 .25rem; }
.article-detail > header { margin-bottom: 2rem; }
.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(22,78,99,0.75); }
.article-hero { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; margin-block: 2rem; }
.article-detail h2 { font-size: 1.5rem; margin: 2rem 0 1rem; }
.article-detail p { font-size: 1.125rem; line-height: 1.75; margin-block: 1.25rem; }
.back-link { margin-top: 3rem; }
.back-link a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.back-link a:hover { text-decoration: underline; }

/* === Footer === */
.site-footer { border-top: 1px solid rgba(22,78,99,0.12); padding: 3rem 0 1.5rem; margin-top: 4rem; max-width: 1100px; margin-inline: auto; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-brand { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; margin-bottom: .5rem; color: var(--color-neutral-dark); }
.site-footer nav ul { display: grid; gap: .5rem; }
.site-footer nav a { color: var(--color-neutral-dark); text-decoration: none; }
.site-footer nav a:hover { color: var(--color-primary); }
.site-footer address { font-style: normal; font-size: .95rem; margin-bottom: 1rem; }
.site-footer address a { color: var(--color-primary); text-decoration: none; }
.legal-links { display: flex; flex-wrap: wrap; gap: .5rem 1rem; font-size: .875rem; }
.legal-links a { color: rgba(22,78,99,0.7); text-decoration: none; }
.legal-links a:hover { color: var(--color-primary); }
.copyright { text-align: center; margin-top: 2rem; font-size: .85rem; color: rgba(22,78,99,0.6); }

/* === 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: 12px;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.4);
  max-width: 620px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin-bottom: 1rem; font-size: .95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  font: inherit; font-family: var(--font-heading); font-weight: 600; font-size: .9rem;
  padding: .625rem 1rem; border: 0; border-radius: 6px; cursor: pointer;
  background: rgba(255,255,255,0.15); color: var(--color-neutral-light);
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner button:hover { filter: brightness(1.1); }
.cookie-banner__prefs { display: grid; gap: .5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; gap: .5rem; align-items: center; font-size: .9rem; }
.cookie-banner__prefs [data-cookie-save] { margin-top: .5rem; justify-self: start; background: var(--color-primary); color: #fff; }

/* === Responsive: sidebar layout on desktop === */
@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
  .sidebar {
    position: sticky; top: 0; height: 100vh;
    display: flex; flex-direction: column;
    border-bottom: 0; border-right: 1px solid rgba(22,78,99,0.12);
    padding: 2rem 1.5rem;
  }
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: block; margin-top: 2.5rem; flex: 1; }
  .sidebar-footer { margin-top: auto; }
  main { padding: 3rem 2.5rem 4rem; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}

@media (min-width: 1200px) {
  main { padding: 3.5rem 4rem 5rem; }
}
