/* === Tokens === */
:root {
  --color-primary: #1E3A8A;
  --color-secondary: #3B82F6;
  --color-accent: #F97316;
  --color-neutral-dark: #1E40AF;
  --color-neutral-light: #EFF6FF;
  --color-ink: #0F172A;
  --color-muted: #475569;
  --font-heading: 'Lora', serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --shadow-soft: 0 12px 32px -18px rgba(15, 23, 42, 0.25);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: #ffffff;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.2;
  margin: 0 0 0.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 720px; }
.section { padding-block: 4rem; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }
.section.alt { background: var(--color-neutral-light); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section-head p { color: var(--color-muted); }

/* === Header === */
.site-header {
  border-bottom: 1px solid rgba(30, 58, 138, 0.08);
  background: #ffffff;
  position: sticky; top: 0; z-index: 50;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: 1rem; gap: 1rem; }
.logo img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.primary-nav { display: none; gap: 1.75rem; align-items: center; }
.primary-nav a { color: var(--color-ink); font-weight: 500; font-size: 0.95rem; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-toggle {
  background: transparent; border: 0; padding: 0.5rem; cursor: pointer;
  display: inline-flex; flex-direction: column; gap: 4px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--color-primary); display: block; }
@media (min-width: 768px) {
  .primary-nav { display: flex; }
  .nav-toggle { display: none; }
}
.primary-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(30,58,138,0.1); }

/* === Hero centered === */
.hero { padding-block: 3.5rem 3rem; text-align: center; background: linear-gradient(180deg, var(--color-neutral-light) 0%, #ffffff 100%); }
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero .hero-sub { max-width: 52ch; margin: 1rem auto 1.75rem; color: var(--color-muted); font-size: 1.125rem; }
.hero .hero-cta { margin-bottom: 2.5rem; }
.hero-figure { margin: 0; }
.hero-figure img { border-radius: var(--radius); box-shadow: var(--shadow-soft); aspect-ratio: 16/9; object-fit: cover; width: 100%; }
@media (min-width: 768px) { .hero { padding-block: 6rem 4rem; } }

/* === Buttons === */
.btn {
  display: inline-block; padding: 0.85rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-neutral-dark); text-decoration: none; }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #ea580c; text-decoration: none; }

/* === Intro === */
.intro { text-align: center; }
.intro p { color: var(--color-muted); font-size: 1.05rem; text-align: left; }
@media (min-width: 640px) { .intro p { text-align: center; } }

/* === Cards grid === */
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-grid { grid-template-columns: repeat(3, 1fr); } }
.cards-grid-2 { }
@media (min-width: 640px) { .cards-grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .cards-grid-2 { grid-template-columns: repeat(2, 1fr); } }
.card {
  padding: 1.75rem; background: #fff;
  border: 1px solid rgba(30, 58, 138, 0.1); border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.card .icon { color: var(--color-secondary); margin-bottom: 0.75rem; }
.card h3 { color: var(--color-primary); margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin: 0; }

/* === Testimonial === */
.testimonial { background: var(--color-neutral-light); text-align: center; }
.testimonial blockquote { margin: 0; }
.testimonial blockquote p {
  font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--color-primary); line-height: 1.5; font-style: italic; margin-bottom: 1rem;
}
.testimonial cite { color: var(--color-muted); font-style: normal; font-size: 0.95rem; }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: #fff; padding-block: 4rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 56ch; margin-inline: auto; }
.cta-band .btn-accent { margin-top: 0.5rem; }

/* === Contact form === */
.contact-form { display: grid; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 500; font-size: 0.9rem; color: var(--color-ink); }
.field input, .field textarea {
  font: inherit; padding: 0.75rem 0.9rem; border: 1px solid rgba(30,58,138,0.2);
  border-radius: 8px; background: #fff; color: var(--color-ink);
}
.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); }
.form-consent input { margin-top: 0.25rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255,255,255,0.9); padding-block: 3rem 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.25rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; } }
.footer-col h4 { color: #fff; font-family: var(--font-body); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.footer-col .tagline { color: rgba(255,255,255,0.75); font-style: italic; margin-top: 0.75rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.footer-col a { color: rgba(255,255,255,0.85); }
.footer-col a:hover { color: #fff; }
.footer-col address { font-style: normal; color: rgba(255,255,255,0.85); line-height: 1.7; }
.legal-links { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer .logo img { filter: brightness(0) invert(1); }
.copyright { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.7); }

/* === 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 40px -18px rgba(0,0,0,0.4);
  max-width: 720px; margin-inline: auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.95rem; }
.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(255,255,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[data-cookie-accept]:hover { background: #ea580c; }
.cookie-banner__prefs { display: grid; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.cookie-banner__prefs button { justify-self: start; margin-top: 0.5rem; }
