:root {
  --color-primary: #0F172A;
  --color-secondary: #334155;
  --color-accent: #0369A1;
  --color-neutral-dark: #020617;
  --color-neutral-light: #F8FAFC;
  --color-border: rgba(2, 6, 23, 0.12);
  --color-tint: #EEF2F6;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
  --radius: 12px;
  --shadow-card: 0 20px 40px -30px rgba(2, 6, 23, 0.35);
}

/* === Reset === */
*, *::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-primary);
  background: var(--color-neutral-light);
  -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; }

/* === Typography === */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  line-height: 1.2;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.eyebrow {
  font-family: var(--font-heading);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--color-accent);
  margin: 0 0 1rem;
}
.lede { font-size: 1.05rem; color: var(--color-secondary); }
.text-center { text-align: center; }

/* === Layout === */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container--narrow { max-width: 760px; }
.section { padding-block: 4rem; }
.section--tint { background: var(--color-tint); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section__head--left { text-align: left; margin-inline: 0; }
.section__head p { color: var(--color-secondary); }

/* === Header === */
.site-header {
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1120px;
  margin-inline: auto;
  padding: 1rem 1.25rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.logo--footer img { height: 64px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--color-primary);
  display: block; border-radius: 2px;
}
.primary-nav {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--color-neutral-light);
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
}
.primary-nav.is-open { display: flex; }
.primary-nav a {
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 500;
  padding: 0.5rem 0;
  text-decoration: none;
}
.primary-nav a[aria-current="page"] { color: var(--color-accent); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    position: static;
    padding: 0;
    border: none;
    background: transparent;
  }
}

/* === Hero (centered) === */
.hero--centered {
  padding-block: 3.5rem 2.5rem;
  text-align: center;
  background: var(--color-neutral-light);
}
.hero__title {
  max-width: 24ch;
  margin: 0.5rem auto 1.25rem;
  font-weight: 600;
}
.hero__sub {
  max-width: 52ch;
  margin: 0 auto 2rem;
  color: var(--color-secondary);
  font-size: 1.15rem;
}
.hero__cta { margin: 0 auto 3rem; }
.hero__figure {
  margin: 0 auto;
  max-width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.hero__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

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

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--color-primary); color: var(--color-neutral-light); }
.btn--primary:hover { background: #1e293b; }
.btn--accent { background: var(--color-accent); color: var(--color-neutral-light); }
.btn--accent:hover { background: #045985; }

/* === Grid / Cards === */
.grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 768px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--color-neutral-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}
.card h3 { margin-top: 0.5rem; }
.card p { color: var(--color-secondary); margin-bottom: 0; }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(3, 105, 161, 0.08);
  color: var(--color-accent);
}
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { text-decoration: none; }

/* === Testimonial === */
.testimonial {
  margin: 0;
  padding: 2rem 1rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.testimonial p {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.5;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.testimonial cite {
  font-style: normal;
  color: var(--color-secondary);
  font-size: 0.95rem;
}

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: var(--color-neutral-light);
  padding-block: 4rem;
}
.cta-band h2 { color: var(--color-neutral-light); }
.cta-band p { color: rgba(248, 250, 252, 0.85); max-width: 56ch; margin-inline: auto; }
.contact-band__body { font-family: var(--font-heading); font-weight: 500; }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--color-primary);
}
.field input, .field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-neutral-light);
  color: var(--color-primary);
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}
.form-consent {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--color-secondary);
  flex-wrap: wrap;
}
.form-consent input { margin-top: 0.25rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(248, 250, 252, 0.85);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer h4 {
  color: var(--color-neutral-light);
  font-size: 1rem;
  margin-bottom: 1rem;
}
.site-footer a { color: rgba(248, 250, 252, 0.85); }
.site-footer a:hover { color: var(--color-neutral-light); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2rem;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
}
.site-footer__tag { color: rgba(248, 250, 252, 0.7); max-width: 30ch; }
.site-footer__nav { display: flex; flex-direction: column; gap: 0.4rem; }
.site-footer__nav a { padding: 0.15rem 0; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.site-footer__legal { font-size: 0.9rem; }
.site-footer__copy {
  border-top: 1px solid rgba(248, 250, 252, 0.12);
  padding-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(248, 250, 252, 0.6);
  text-align: center;
}

/* === 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: var(--radius);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
  max-width: 560px;
  margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  font: inherit;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(248, 250, 252, 0.3);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.9rem;
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); }
.cookie-banner__prefs {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(248, 250, 252, 0.15);
}
.cookie-banner__prefs label {
  display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem;
}
.cookie-banner__prefs [data-cookie-save] {
  align-self: flex-start;
  background: var(--color-neutral-light);
  color: var(--color-primary);
  border-color: var(--color-neutral-light);
}
