/* === Tokens === */
:root {
  --color-primary: #6366F1;
  --color-secondary: #818CF8;
  --color-accent: #10B981;
  --color-neutral-dark: #1E1B4B;
  --color-neutral-light: #F5F3FF;
  --color-text: #1E1B4B;
  --color-muted: #4b4874;
  --color-border: rgba(30, 27, 75, 0.12);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;
  --radius-lg: 24px;
  --radius-md: 12px;
  --shadow-card: 0 30px 60px -30px rgba(30, 27, 75, 0.25);
  --shadow-soft: 0 12px 30px -18px rgba(30, 27, 75, 0.25);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* === Typography === */
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; margin: 0 0 1rem; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 1rem;
}
.lede { font-size: 1.05rem; color: var(--color-muted); max-width: 65ch; }

/* === Layout === */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: 3.5rem; }
.section--narrow > .container { max-width: 780px; }
.section--tint { background: var(--color-neutral-light); }

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

/* === Header === */
.site-header {
  background: #ffffff;
  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;
  padding-block: 0.75rem;
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) {
  .logo img { height: 96px; }
}
.logo--footer img { height: 72px; }

/* === Nav === */
.primary-nav__list { display: none; }
.nav-toggle {
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  color: var(--color-neutral-dark);
  display: inline-flex;
}
.primary-nav.is-open .primary-nav__list {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  flex-direction: column;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 1.25rem;
  gap: 0.75rem;
}
.primary-nav { position: static; }
.site-header { position: sticky; }
.primary-nav__list a {
  color: var(--color-neutral-dark);
  font-weight: 600;
  padding: 0.4rem 0;
  display: inline-block;
}
.primary-nav__list a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .primary-nav__list {
    display: flex !important;
    position: static;
    flex-direction: row;
    gap: 1.75rem;
    background: transparent;
    border: 0;
    padding: 0;
  }
}

/* === Hero card === */
.hero { padding-block: 2.5rem 3rem; background: linear-gradient(180deg, #eeecff 0%, #ffffff 100%); }
.hero-card__card {
  max-width: 880px;
  margin-inline: auto;
  padding: 2.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-align: left;
}
.hero-card__card h1 { max-width: 22ch; }
.hero__sub {
  font-size: 1.1rem;
  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;
  aspect-ratio: 16 / 9;
  background: var(--color-neutral-light);
}
.hero-card__figure img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 768px) {
  .hero { padding-block: 4rem 5rem; }
  .hero-card__card { padding: 3.5rem; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--color-primary); color: #ffffff; }
.btn--primary:hover { background: #4f52d6; }
.btn--accent { background: var(--color-accent); color: #ffffff; }
.btn--accent:hover { background: #0e9b6d; }

/* === Grid & cards === */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 620px) {
  .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); }
}
.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  display: block;
  color: inherit;
}
.card h3 { margin-top: 0.5rem; color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); margin: 0; }
.card__icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--color-neutral-light);
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.card-link {
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.card-link:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 20px 40px -20px rgba(30, 27, 75, 0.35);
}

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

/* === CTA band === */
.cta-band {
  background: var(--color-neutral-dark);
  color: #ffffff;
  padding-block: 3.5rem;
}
.cta-band__inner { text-align: center; max-width: 720px; margin-inline: auto; }
.cta-band h2 { color: #ffffff; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin-bottom: 1.75rem; }

/* === Contact === */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .contact-layout { grid-template-columns: 1.4fr 1fr; align-items: start; }
}
.contact-form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; font-size: 0.95rem; color: var(--color-neutral-dark); }
.field input, .field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--color-text);
  width: 100%;
}
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: var(--color-primary);
}
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-muted);
  line-height: 1.4;
}
.form-consent input { margin-top: 0.2rem; }
.contact-hours {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}
.contact-hours h3 { margin-top: 0; }
.hours { margin: 0; }
.hours > div {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed var(--color-border);
}
.hours > div:last-child { border-bottom: 0; }
.hours dt { font-weight: 600; color: var(--color-neutral-dark); margin: 0; }
.hours dd { margin: 0; color: var(--color-muted); }

/* === Article === */
.article {
  max-width: 65ch;
  margin-inline: auto;
  padding: 3rem 1.25rem 4rem;
}
.article__header 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-bottom: 1.5rem;
}
.article__hero {
  margin: 2rem 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--color-neutral-light);
}
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article h2 {
  margin-top: 2.5rem;
  font-size: 1.6rem;
}
.article p {
  font-size: 1.125rem;
  line-height: 1.75;
  margin-block: 1.25rem;
}
.article__footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.back-link { font-weight: 600; color: var(--color-primary); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(255, 255, 255, 0.82);
  padding-block: 3rem 1.5rem;
  margin-top: 3rem;
}
.site-footer a { color: #ffffff; }
.site-footer a:hover { color: var(--color-secondary); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
}
.site-footer__heading {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1rem;
  margin: 0 0 0.75rem;
}
.site-footer__tagline { color: rgba(255, 255, 255, 0.7); margin-top: 0.75rem; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.site-footer__legal { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; }
.site-footer__copy {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.site-footer nav ul { display: flex; flex-direction: column; gap: 0.35rem; }

/* === 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: var(--radius-md);
  padding: 1.25rem;
  box-shadow: 0 30px 60px -20px 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.75rem; font-size: 0.95rem; }
.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.cookie-banner__actions button {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  color: var(--color-neutral-light);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}
.cookie-banner__actions button[data-cookie-accept] {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #ffffff;
}
.cookie-banner__prefs {
  margin-top: 1rem;
  display: grid;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}
.cookie-banner__prefs label {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.9rem;
}
.cookie-banner__prefs button {
  justify-self: start;
  margin-top: 0.5rem;
  background: var(--color-primary);
  color: #ffffff;
  border: 0;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
}
