:root {
  --color-primary: #0369A1;
  --color-secondary: #0EA5E9;
  --color-accent: #22C55E;
  --color-neutral-dark: #0C4A6E;
  --color-neutral-light: #F0F9FF;
  --color-text: #0C1F2E;
  --color-muted: #4A6B7E;
  --color-border: rgba(12, 74, 110, 0.12);
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --max: 1120px;
  --radius: 12px;
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
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-neutral-dark); }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 1rem; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

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

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--color-border); border-radius: 8px; cursor: pointer;
}
.nav-toggle__bar { display: block; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; }
.primary-nav { display: none; width: 100%; }
.primary-nav.is-open { display: block; }
.primary-nav ul { list-style: none; margin: 0; padding: 1rem 0 0.5rem; display: flex; flex-direction: column; gap: 0.35rem; }
.primary-nav a { display: block; padding: 0.55rem 0.25rem; color: var(--color-neutral-dark); text-decoration: none; font-weight: 500; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; width: auto; }
  .primary-nav ul { flex-direction: row; padding: 0; gap: 1.5rem; align-items: center; }
  .primary-nav a { padding: 0.25rem 0; position: relative; }
  .primary-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--color-accent);
  }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: 0.9rem 1.6rem;
  border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 1rem;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.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; }

/* === Hero (centered) === */
.hero { padding-block: 3.5rem 2.5rem; text-align: center; }
.hero h1 { max-width: 28ch; margin-inline: auto; }
.hero__sub { max-width: 52ch; margin: 0 auto 1.75rem; color: var(--color-muted); font-size: 1.15rem; }
.hero__cta { margin: 0 0 2.5rem; }
.hero__figure { margin: 0; }
.hero__figure img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.hero--compact { padding-block: 3rem 1.5rem; }
@media (min-width: 768px) { .hero { padding-block: 6rem 4rem; } .hero__figure img { aspect-ratio: 21 / 9; } }

/* === Sections === */
.section { padding-block: 3rem; }
.section--tint { background: var(--color-neutral-light); }
.section--narrow > .container { max-width: 720px; }
.section__title { text-align: center; margin-bottom: 2rem; }
.section__lede { text-align: center; max-width: 60ch; margin: 0 auto 2rem; color: var(--color-muted); font-size: 1.1rem; }
@media (min-width: 768px) { .section { padding-block: 5rem; } }

/* === Grid & Cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid--3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-bottom: 1rem;
  background: var(--color-neutral-light); color: var(--color-primary);
  border-radius: 10px;
}
.card h3 { margin-bottom: 0.5rem; color: var(--color-neutral-dark); }
.card p { margin: 0; color: var(--color-muted); }

.card-link { text-decoration: none; color: inherit; display: block; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(12, 74, 110, 0.35); border-color: rgba(3, 105, 161, 0.35); }

/* === Testimonial === */
.testimonial {
  max-width: 720px; margin: 0 auto; text-align: center;
  padding: 2rem 1rem; font-family: var(--font-heading); color: var(--color-neutral-dark);
}
.testimonial p { font-size: clamp(1.25rem, 2.4vw, 1.65rem); line-height: 1.5; font-style: italic; margin-bottom: 1rem; }
.testimonial cite { display: block; font-family: var(--font-body); font-style: normal; font-size: 0.95rem; color: var(--color-muted); letter-spacing: 0.02em; }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: #fff; padding-block: 3.5rem; text-align: center; }
.cta-band h2 { color: #fff; margin-bottom: 0.75rem; }
.cta-band p { color: rgba(240, 249, 255, 0.9); margin: 0 auto 1.25rem; max-width: 52ch; }
.cta-band .btn--accent { background: var(--color-accent); }

/* === Contact form === */
.contact-form { display: grid; gap: 1.1rem; margin-top: 2rem; }
.form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.form-row label { font-weight: 500; color: var(--color-neutral-dark); font-size: 0.95rem; }
.form-row input, .form-row textarea {
  font: inherit; padding: 0.75rem 0.85rem; border: 1px solid var(--color-border); border-radius: 8px;
  background: #fff; color: var(--color-text); transition: border-color .15s ease, box-shadow .15s ease;
}
.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.18); }
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--color-muted); line-height: 1.5; }
.form-consent input { margin-top: 0.25rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(240, 249, 255, 0.85); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.site-footer .logo img { filter: brightness(0) invert(1); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; } }
.footer-heading { font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; margin: 0 0 1rem; }
.footer-tag { color: rgba(240, 249, 255, 0.75); font-size: 0.95rem; margin-top: 0.75rem; }
.footer-nav, .footer-legal { list-style: none; margin: 0; padding: 0; }
.footer-nav li, .footer-legal li { margin-bottom: 0.4rem; }
.footer-nav a, .footer-legal a, .site-footer address a { color: rgba(240, 249, 255, 0.85); text-decoration: none; }
.footer-nav a:hover, .footer-legal a:hover, .site-footer address a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.5rem; font-size: 0.9rem; }
.footer-copy { text-align: center; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(240, 249, 255, 0.12); font-size: 0.85rem; color: rgba(240, 249, 255, 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.15rem 1.25rem; border-radius: var(--radius);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.35);
  max-width: 640px; margin-inline: auto;
  font-size: 0.9rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.85rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  font: inherit; padding: 0.55rem 1rem; border-radius: 999px; border: 1px solid rgba(240, 249, 255, 0.3);
  background: transparent; color: var(--color-neutral-light); cursor: pointer;
}
.cookie-banner button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner button:hover { border-color: var(--color-neutral-light); }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(240, 249, 255, 0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: 0.4rem; background: var(--color-primary); border-color: var(--color-primary); }
