/* === Tokens === */
:root {
  --color-primary: #1E3A5F;
  --color-secondary: #F2EDE3;
  --color-accent: #C97B3D;
  --color-neutral-dark: #0D1A2A;
  --color-neutral-light: #FAF6EE;
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --measure: 680px;
  --radius: 6px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-neutral-dark);
  background: var(--color-neutral-light);
  -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-accent); }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0 0 1rem;
}
p { margin: 0 0 1.25rem; }
ul { padding: 0; margin: 0; list-style: none; }

/* === Layout === */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}
.container--narrow {
  max-width: calc(var(--measure) + 2.5rem);
}

/* === Header === */
.site-header {
  background: var(--color-neutral-light);
  border-bottom: 1px solid rgba(13, 26, 42, 0.08);
  padding-block: 1rem;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo img { height: 72px; width: auto; display: block; }
.logo--footer img { height: 60px; }
.primary-nav { position: relative; }
.nav-toggle {
  background: transparent;
  border: 1px solid var(--color-primary);
  color: var(--color-primary);
  padding: 0.5rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.nav-list {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--color-neutral-light);
  border: 1px solid rgba(13, 26, 42, 0.12);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  min-width: 200px;
  z-index: 20;
}
.nav-list.is-open { display: block; }
.nav-list li { padding: 0.4rem 0; }
.nav-list a {
  text-decoration: none;
  color: var(--color-neutral-dark);
  font-weight: 500;
}
.nav-list a[aria-current="page"] { color: var(--color-primary); }

/* === Hero === */
.hero {
  padding-block: 4rem 3rem;
  text-align: center;
}
.hero .container { display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 600;
  max-width: 22ch;
  margin: 0 auto 1.5rem;
}
.hero__sub {
  font-size: 1.15rem;
  max-width: 48ch;
  margin: 0 auto 2rem;
  color: rgba(13, 26, 42, 0.78);
}
.hero__cta { margin-bottom: 3rem; }
.hero__figure {
  margin: 2rem 0 0;
  width: 100%;
  max-width: 960px;
}
.hero__figure img {
  width: 100%;
  border-radius: 8px;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.hero--compact { padding-block: 3.5rem 2rem; }
.hero--compact h1 { font-size: clamp(2rem, 4.5vw, 3rem); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn--primary {
  background: var(--color-primary);
  color: var(--color-neutral-light);
}
.btn--primary:hover {
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
}

/* === Sections === */
.section { padding-block: 4rem; }
.section__title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin-bottom: 2.5rem;
  text-align: center;
}
.section--intro { padding-block: 3rem; }
.section--intro h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin-bottom: 1.25rem;
}
.section--intro p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(13, 26, 42, 0.88);
}
.section--highlights { background: var(--color-secondary); }
.section--stats { background: var(--color-secondary); }

/* === Cards === */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.card {
  background: var(--color-neutral-light);
  border: 1px solid rgba(13, 26, 42, 0.08);
  border-radius: 8px;
  padding: 2rem 1.75rem;
}
.card__icon {
  display: inline-block;
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}
.card p { margin: 0; font-size: 1rem; line-height: 1.6; }
.card--linked { padding: 0; }
.card-link {
  display: block;
  padding: 2rem 1.75rem;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -16px rgba(13, 26, 42, 0.25);
}
.card-link h3 { color: var(--color-primary); margin-bottom: 0.75rem; font-size: 1.2rem; line-height: 1.3; }
.card-link p { color: var(--color-neutral-dark); }

/* === Testimonials === */
.section--testimonial { padding-block: 3.5rem; }
.quote {
  margin: 0;
  text-align: center;
}
.quote p {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  max-width: 56ch;
  margin-inline: auto;
}
.quote cite {
  font-style: normal;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(13, 26, 42, 0.7);
  letter-spacing: 0.04em;
}

/* === CTA Band === */
.cta-band {
  background: var(--color-primary);
  color: var(--color-neutral-light);
  padding-block: 3.5rem;
  text-align: center;
}
.cta-band h2 { color: var(--color-neutral-light); margin-bottom: 1rem; }
.cta-band p { color: rgba(250, 246, 238, 0.88); margin-bottom: 1.75rem; }
.cta-band .btn--primary {
  background: var(--color-neutral-light);
  color: var(--color-primary);
}
.cta-band .btn--primary:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

/* === Stats === */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  text-align: center;
}
.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat__label {
  font-size: 0.98rem;
  color: rgba(13, 26, 42, 0.78);
  margin: 0;
  max-width: 32ch;
  margin-inline: auto;
}

/* === FAQ === */
.section--faq h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin-bottom: 2rem;
  text-align: center;
}
.section--faq details {
  border-top: 1px solid rgba(13, 26, 42, 0.12);
  padding: 1.25rem 0;
}
.section--faq details:last-of-type { border-bottom: 1px solid rgba(13, 26, 42, 0.12); }
.section--faq summary {
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.section--faq summary::-webkit-details-marker { display: none; }
.section--faq summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-weight: 400;
  font-size: 1.4rem;
  color: var(--color-primary);
}
.section--faq details[open] summary::after { content: '−'; }
.section--faq details p {
  margin-top: 1rem;
  margin-bottom: 0.25rem;
  color: rgba(13, 26, 42, 0.85);
}

/* === Hours table === */
.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.hours-table th,
.hours-table td {
  padding: 0.75rem 0;
  text-align: left;
  border-bottom: 1px solid rgba(13, 26, 42, 0.1);
  font-weight: 400;
}
.hours-table th { color: var(--color-primary); font-weight: 500; }
.hours-table td { text-align: right; }

/* === Article detail === */
.article-detail {
  max-width: 65ch;
  margin-inline: auto;
  padding: 3rem 1.25rem 4rem;
}
.article-detail__header { margin-bottom: 2rem; }
.article-detail__header h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.18;
  margin-bottom: 1rem;
}
.article-detail__sub {
  font-size: 1.2rem;
  color: rgba(13, 26, 42, 0.72);
  line-height: 1.5;
}
.article-detail__figure {
  margin: 2rem 0;
}
.article-detail__figure img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 8px;
}
.article-detail h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.75rem);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}
.article-detail p {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  color: rgba(13, 26, 42, 0.92);
}
.article-detail__back { margin-top: 3rem; }
.back-link {
  text-decoration: none;
  font-weight: 500;
  color: var(--color-primary);
}
.back-link:hover { color: var(--color-accent); }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: var(--color-secondary);
  padding-block: 3rem 1.5rem;
  margin-top: 4rem;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
.site-footer h3 {
  color: var(--color-neutral-light);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1rem;
}
.site-footer a {
  color: var(--color-secondary);
  text-decoration: none;
}
.site-footer a:hover { color: var(--color-neutral-light); text-decoration: underline; }
.site-footer ul li { padding: 0.3rem 0; }
.site-footer address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}
.tagline { color: rgba(242, 237, 227, 0.78); font-size: 0.95rem; }
.legal-links { margin-top: 1rem; font-size: 0.9rem; }
.site-footer__copy {
  border-top: 1px solid rgba(242, 237, 227, 0.15);
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: rgba(242, 237, 227, 0.65);
  text-align: center;
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: var(--color-neutral-dark);
  color: var(--color-neutral-light);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.4);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
.cookie-banner p { margin: 0; font-size: 0.92rem; line-height: 1.5; }
.cookie-banner button {
  background: var(--color-accent);
  color: var(--color-neutral-light);
  border: none;
  padding: 0.6rem 1.25rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
}
.cookie-banner button:hover { filter: brightness(1.08); }
body.cookies-accepted .cookie-banner { display: none; }

/* === Responsive === */
@media (min-width: 600px) {
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .cookie-banner {
    flex-direction: row;
    align-items: center;
    max-width: 720px;
    left: auto;
    right: 1.5rem;
  }
  .cookie-banner p { flex: 1; }
}

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .logo--footer img { height: 72px; }
  .nav-toggle { display: none; }
  .nav-list {
    display: flex;
    position: static;
    background: transparent;
    border: none;
    padding: 0;
    gap: 2rem;
  }
  .nav-list li { padding: 0; }
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.3fr; gap: 3rem; }
  .hero { padding-block: 6rem 4rem; }
}

@media (min-width: 1000px) {
  .card-grid { grid-template-columns: repeat(4, 1fr); }
  .card-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .section { padding-block: 5rem; }
}
