/* === Design tokens === */
:root {
  --color-primary: #4F46E5;
  --color-secondary: #818CF8;
  --color-accent: #F97316;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #EEF2FF;
  --color-surface: #ffffff;
  --color-text: #1E1B4B;
  --color-muted: #4b4a6b;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius: 12px;
  --shadow-sm: 0 4px 12px -6px rgba(30, 27, 75, 0.15);
  --shadow-md: 0 20px 40px -20px rgba(30, 27, 75, 0.25);
}

/* === 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.6;
  color: var(--color-text);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); }
a:hover { color: var(--color-neutral-dark); }
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; font-weight: 600; margin: 0 0 0.75em; }
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 1em; }

/* === Layout === */
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 1.25rem; }

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30,27,75,0.08);
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1rem;
}
.logo { display: inline-block; line-height: 0; }
.logo img { height: 72px; width: auto; }
.nav-toggle {
  background: none;
  border: 1px solid rgba(30,27,75,0.12);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  color: var(--color-neutral-dark);
  cursor: pointer;
}
.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--color-surface);
  padding: 1rem 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(30,27,75,0.08);
}
.site-nav.is-open { display: flex; }
.site-nav a {
  color: var(--color-neutral-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
}
.site-nav a.is-current { color: var(--color-primary); }

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

/* === Hero — centered === */
.hero { padding-block: 3.5rem; text-align: center; }
.hero .container { display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 1rem;
}
.hero h1 { max-width: 22ch; margin-inline: auto; }
.hero__sub {
  max-width: 52ch;
  margin: 0.5rem auto 1.75rem;
  font-size: 1.15rem;
  color: var(--color-muted);
}
.hero__cta { margin-bottom: 2.5rem; }
.hero__figure { width: 100%; max-width: 960px; margin: 0; }
.hero__figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }

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

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

/* === Sections === */
.section { padding-block: 4rem; }
.section--narrow .container { max-width: 720px; text-align: left; }
.section--tinted { background: var(--color-neutral-light); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }
.section__head p { color: var(--color-muted); }
.section__title { text-align: center; margin-bottom: 2rem; }

@media (min-width: 768px) {
  .section { padding-block: 5.5rem; }
}

/* === Grid === */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* === Cards === */
.card {
  background: var(--color-surface);
  border: 1px solid rgba(30,27,75,0.08);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.card h3 { margin-bottom: 0.25rem; }
.card p { color: var(--color-muted); margin: 0; }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-neutral-light);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.card__more { margin-top: 0.75rem; color: var(--color-primary); font-weight: 600; }
.card-link { text-decoration: none; color: inherit; transition: transform 0.18s ease, box-shadow 0.18s ease; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); color: inherit; }

/* === Testimonial === */
.testimonial { background: var(--color-neutral-light); }
.quote {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  line-height: 1.55;
  color: var(--color-neutral-dark);
  padding: 0 1rem;
}
.quote p { margin-bottom: 1rem; }
.quote cite { font-style: normal; font-family: var(--font-body); font-size: 0.95rem; color: var(--color-muted); }

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding-block: 3rem;
}
.cta-band__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  align-items: flex-start;
}
.cta-band h2 { color: #fff; margin: 0 0 0.35em; }
.cta-band p { margin: 0; color: rgba(255,255,255,0.85); }

@media (min-width: 768px) {
  .cta-band__inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* === About split === */
.about-split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.about-split figure { margin: 0; }
.about-split img { border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/5; object-fit: cover; }
@media (min-width: 900px) {
  .about-split { grid-template-columns: 1.2fr 1fr; gap: 4rem; }
}

/* === Article === */
.article {
  max-width: 65ch;
  margin-inline: auto;
  padding: 3rem 1.25rem 2rem;
}
.article__head { margin-bottom: 1.5rem; }
.article__head h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.article__sub { font-size: 1.2rem; color: var(--color-muted); margin: 0; }
.article__hero { margin: 2rem 0; }
.article__hero img { aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; width: 100%; }
.article p { font-size: 1.125rem; line-height: 1.75; margin-block: 1.25rem; }
.article__foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(30,27,75,0.1); }
.back-link { text-decoration: none; color: var(--color-primary); font-weight: 600; }
.back-link:hover { color: var(--color-neutral-dark); }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 4rem; } }
.contact-grid address { font-style: normal; margin-bottom: 1rem; }
.hours { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.hours th, .hours td { padding: 0.55rem 0; text-align: left; border-bottom: 1px solid rgba(30,27,75,0.08); font-weight: 500; }
.hours td { color: var(--color-muted); text-align: right; }

.contact-form { background: var(--color-neutral-light); padding: 2rem; border-radius: var(--radius); }
.contact-form h2 { margin-top: 0; }
.form-row { display: flex; flex-direction: column; margin-bottom: 1rem; }
.form-row label { font-weight: 600; margin-bottom: 0.35rem; font-size: 0.95rem; }
.form-row input, .form-row textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(30,27,75,0.18);
  border-radius: 8px;
  background: #fff;
  color: inherit;
}
.form-row input:focus, .form-row textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.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;
  flex-wrap: wrap;
}
.form-consent input { margin-top: 0.25rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 3.5rem 0 1.5rem;
  margin-top: 4rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: var(--font-body); font-weight: 600; margin: 0 0 1rem; }
.site-footer a { color: var(--color-neutral-light); text-decoration: none; }
.site-footer a:hover { color: var(--color-accent); }
.site-footer .logo img { height: 60px; background: #fff; padding: 6px 10px; border-radius: 8px; }
.site-footer__tag { color: rgba(255,255,255,0.7); margin-top: 0.75rem; }
.site-footer nav ul, .site-footer__legal { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer address { font-style: normal; color: rgba(255,255,255,0.85); margin-bottom: 1rem; }
.site-footer__legal { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.9rem; }
.site-footer__copy { text-align: center; margin: 2.5rem 0 0; color: rgba(255,255,255,0.55); font-size: 0.85rem; }

@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.4fr; 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);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-width: 640px;
  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.55rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
}
.cookie-banner button:hover { background: rgba(255,255,255,0.08); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-accept]:hover { background: #d95c0c; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,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; margin-top: 0.5rem; background: var(--color-primary); border-color: var(--color-primary); }
