/* === Tokens === */
:root {
  --color-primary: #0F766E;
  --color-secondary: #14B8A6;
  --color-accent: #0369A1;
  --color-neutral-dark: #134E4A;
  --color-neutral-light: #F0FDFA;
  --color-text: #0f2a29;
  --color-muted: #4b6b68;
  --color-border: rgba(19,78,74,0.14);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, -apple-system, Segoe UI, sans-serif;
  --radius-lg: 24px;
  --radius-md: 12px;
  --shadow-card: 0 30px 60px -30px rgba(15,42,41,0.28);
  --shadow-soft: 0 8px 24px -18px rgba(15,42,41,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: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 0.6em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

/* === Layout === */
main { display: block; }
.section { padding: 4rem 1.25rem; max-width: 1120px; margin-inline: auto; }
.section--narrow { max-width: 760px; }
.section--tint { background: var(--color-neutral-light); max-width: none; }
.section--tint > * { max-width: 1120px; margin-inline: auto; }
.section--tint.section--narrow > * { max-width: 760px; }
.section__head { text-align: center; margin-bottom: 2.5rem; }
.section__sub { color: var(--color-muted); max-width: 52ch; margin-inline: auto; }
.visually-quiet { text-align: center; font-size: 1rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1.5rem; }

/* === Header === */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-border); }
.site-header__inner { max-width: 1200px; margin-inline: auto; padding: 0.85rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.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.5rem 0.75rem; display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; color: var(--color-neutral-dark); font-family: var(--font-body); font-size: 0.95rem; }
.nav-toggle__bar { display: block; width: 18px; height: 2px; background: var(--color-neutral-dark); }
.nav-toggle__bar + .nav-toggle__bar { display: none; }
.nav-toggle__label { margin-left: 0.25rem; }
.primary-nav { display: none; flex-direction: column; gap: 0.4rem; padding: 0.75rem 1.25rem 1.25rem; background: #ffffff; border-top: 1px solid var(--color-border); }
.primary-nav.is-open { display: flex; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 500; padding: 0.35rem 0; text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 860px) {
  .site-header__inner { padding: 1rem 2rem; }
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; align-items: center; gap: 1.75rem; padding: 0; background: transparent; border: 0; }
  .primary-nav a { padding: 0; }
}

/* === Hero card === */
.hero { padding: 3rem 1.25rem 2rem; background: linear-gradient(160deg, var(--color-neutral-light) 0%, #ffffff 80%); position: relative; }
.hero-card__inner {
  max-width: 880px;
  margin-inline: auto;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
  text-align: left;
}
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.8rem; color: var(--color-primary); font-weight: 600; margin: 0 0 1rem; }
.hero h1 { margin-bottom: 1rem; }
.lede { font-size: 1.15rem; color: var(--color-muted); max-width: 55ch; margin-bottom: 1.75rem; }
.hero-card__figure { margin: 2rem 0 0; border-radius: var(--radius-md); overflow: hidden; }
.hero-card__figure img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }

@media (min-width: 768px) {
  .hero { padding: 5rem 2rem 3rem; }
  .hero-card__inner { padding: 4rem; }
  .hero-card__figure { margin-top: 2.5rem; }
}

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

/* === Grid & Cards === */
.grid { display: grid; gap: 1.25rem; 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: #ffffff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.5rem; box-shadow: var(--shadow-soft); transition: transform .15s ease, box-shadow .15s ease; }
.card h3 { color: var(--color-neutral-dark); margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin: 0; }
.card .icon { color: var(--color-primary); margin-bottom: 0.75rem; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }
.card:has(.card-link:hover), .card-link:hover { transform: translateY(-2px); }
.card-link:hover h3 { color: var(--color-primary); }

/* === Testimonial === */
.testimonial { margin: 0; padding: 2rem; background: var(--color-neutral-light); border-left: 4px solid var(--color-primary); border-radius: var(--radius-md); }
.testimonial p { font-family: var(--font-heading); font-size: 1.25rem; line-height: 1.5; color: var(--color-neutral-dark); font-style: italic; margin-bottom: 1rem; }
.testimonial cite { font-style: normal; font-weight: 600; color: var(--color-muted); }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: #ffffff; padding: 3.5rem 1.25rem; text-align: center; }
.cta-band__inner { max-width: 720px; margin-inline: auto; }
.cta-band h2 { color: #ffffff; }
.cta-band p { color: rgba(255,255,255,0.86); font-size: 1.1rem; margin-bottom: 1.5rem; }
.cta-band__meta { font-size: 0.95rem; color: rgba(255,255,255,0.75); margin-bottom: 1.25rem; }

/* === Forms === */
.contact-form { max-width: 640px; margin-inline: auto; background: #ffffff; padding: 2rem; border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.field label { font-weight: 600; margin-bottom: 0.4rem; color: var(--color-neutral-dark); }
.field input, .field textarea { font: inherit; padding: 0.7rem 0.85rem; border: 1px solid var(--color-border); border-radius: 8px; background: #ffffff; color: var(--color-text); }
.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.6rem; align-items: flex-start; font-size: 0.9rem; color: var(--color-muted); margin: 0.5rem 0 1.25rem; }
.form-consent input { margin-top: 0.25rem; }
.form-success { margin-top: 1rem; padding: 0.8rem 1rem; background: var(--color-neutral-light); border-left: 4px solid var(--color-primary); border-radius: 6px; color: var(--color-neutral-dark); }

/* === Article detail === */
.article-detail { max-width: 65ch; margin-inline: auto; padding: 3rem 1rem 4rem; }
.article-detail__head { margin-bottom: 1.5rem; }
.article-detail__head h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.article-detail__sub { font-size: 1.25rem; color: var(--color-muted); margin: 0; }
.article-detail__figure { margin: 2rem 0; border-radius: 8px; overflow: hidden; }
.article-detail__figure img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.article-detail p { font-size: 1.125rem; line-height: 1.75; margin-block: 1.25rem; }
.article-detail__back { margin-top: 3rem; }
.back-link { font-weight: 600; color: var(--color-primary); }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: var(--color-neutral-light); padding: 3rem 1.25rem 1.5rem; margin-top: 3rem; }
.site-footer__grid { max-width: 1120px; margin-inline: auto; display: grid; grid-template-columns: 1fr; gap: 2rem; }
.site-footer a { color: var(--color-neutral-light); }
.site-footer a:hover { color: #ffffff; }
.logo--footer img { height: 64px; background: rgba(255,255,255,0.06); padding: 0.4rem 0.6rem; border-radius: 8px; }
.footer__tag { color: rgba(240,253,250,0.75); margin-top: 0.75rem; font-size: 0.95rem; }
.footer__title { color: #ffffff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.75rem; }
.footer__list, .footer__legal { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.35rem; }
.footer__legal { margin-top: 1rem; }
.footer__address { font-style: normal; color: rgba(240,253,250,0.85); line-height: 1.7; margin-bottom: 0.5rem; }
.copyright { max-width: 1120px; margin: 2rem auto 0; padding-top: 1.25rem; border-top: 1px solid rgba(240,253,250,0.15); font-size: 0.85rem; color: rgba(240,253,250,0.7); text-align: center; }

@media (min-width: 800px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.3fr; gap: 3rem; }
}

/* === 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); border-radius: 12px; padding: 1rem 1.25rem; box-shadow: 0 20px 40px -15px rgba(0,0,0,0.4); max-width: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.85rem; font-size: 0.95rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button { flex: 1 1 auto; padding: 0.55rem 0.9rem; border-radius: 999px; border: 1px solid rgba(240,253,250,0.3); background: transparent; color: var(--color-neutral-light); cursor: pointer; font: inherit; font-size: 0.9rem; }
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #ffffff; }
.cookie-banner__actions button:hover { background: rgba(240,253,250,0.1); }
.cookie-banner__actions button[data-cookie-accept]:hover { background: #024e7c; }
.cookie-banner__prefs { margin-top: 0.85rem; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: 0.4rem; padding: 0.45rem 0.9rem; border-radius: 999px; border: 0; background: var(--color-secondary); color: var(--color-neutral-dark); font-weight: 600; cursor: pointer; }
