/* === Tokens === */
: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.10);
  --color-muted: #64748B;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 8px;
  --radius-lg: 16px;
  --maxw: 780px;
}

/* === 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; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-primary); font-weight: 600; line-height: 1.2; margin: 0 0 0.75em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
figure { margin: 0; }

/* === Skip link === */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--color-primary); color: var(--color-neutral-light);
  padding: 0.75rem 1rem; z-index: 10000;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* === Layout === */
.layout { display: block; }
.sidebar {
  background: var(--color-primary);
  color: var(--color-neutral-light);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(248,250,252,0.08);
}
.logo { display: inline-block; }
.logo img { height: 72px; width: auto; display: block; }
.side-nav { display: none; width: 100%; }
.side-nav.is-open { display: block; }
.side-nav ul { list-style: none; padding: 0; margin: 0.5rem 0 0; display: flex; flex-direction: column; gap: 0.25rem; }
.side-nav a {
  display: block;
  padding: 0.65rem 0.5rem;
  color: var(--color-neutral-light);
  font-weight: 500;
  border-radius: 6px;
  letter-spacing: 0.01em;
}
.side-nav a:hover { background: rgba(248,250,252,0.08); text-decoration: none; }
.side-nav a[aria-current="page"] { color: #93C5FD; }
.nav-toggle {
  background: transparent; color: var(--color-neutral-light);
  border: 1px solid rgba(248,250,252,0.2);
  border-radius: 6px; padding: 0.4rem 0.55rem; cursor: pointer;
}
.sidebar-foot { display: none; font-size: 0.8rem; color: rgba(248,250,252,0.55); margin: 0; }

.content { padding: 0; }

/* === Sidebar layout desktop === */
@media (min-width: 900px) {
  .layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
  .sidebar {
    position: sticky; top: 0; height: 100vh;
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 2rem 1.5rem; gap: 2rem;
    border-bottom: none;
    border-right: 1px solid rgba(248,250,252,0.08);
  }
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .side-nav { display: block !important; width: 100%; margin-top: 0.5rem; }
  .side-nav ul { gap: 0.15rem; }
  .sidebar-foot { display: block; margin-top: auto; }
}

/* === Hero === */
.hero {
  padding: 3rem 1.25rem 2rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  margin: 0 0 1rem;
}
.lede {
  font-size: 1.2rem;
  color: var(--color-secondary);
  max-width: 55ch;
  margin: 0 0 1.75rem;
}
.hero-figure { margin-top: 2.5rem; border-radius: var(--radius-lg); overflow: hidden; }
.hero-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

@media (min-width: 768px) {
  .hero { padding: 5rem 2rem 3rem; }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: var(--color-neutral-light);
}
.btn-primary:hover { background: #075985; text-decoration: none; color: var(--color-neutral-light); }
.btn-ghost {
  background: transparent;
  color: var(--color-neutral-light);
  border-color: rgba(248,250,252,0.5);
}
.btn-ghost:hover { background: rgba(248,250,252,0.1); text-decoration: none; color: var(--color-neutral-light); }

/* === Sections === */
.section {
  padding: 3rem 1.25rem;
  max-width: 1080px;
  margin: 0 auto;
}
.section.narrow { max-width: var(--maxw); }
.section-head { max-width: 55ch; margin-bottom: 2rem; }
.section .sub { color: var(--color-secondary); font-size: 1.05rem; margin: 0 0 1rem; }

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

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

.card {
  background: #fff;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card .icon { color: var(--color-accent); margin-bottom: 0.85rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-secondary); margin: 0; font-size: 0.98rem; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -18px rgba(2,6,23,0.35); text-decoration: none; }
.card-link:hover h3 { color: var(--color-accent); }

/* === Testimonial === */
.testimonial-section { text-align: center; }
.testimonial {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem;
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.5;
  color: var(--color-primary);
  font-style: italic;
}
.testimonial p { margin: 0 0 1.25rem; }
.testimonial cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.92rem;
  color: var(--color-secondary);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: var(--color-neutral-light);
  padding: 3.5rem 1.25rem;
}
.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.cta-band h2 { color: var(--color-neutral-light); }
.cta-band p { color: rgba(248,250,252,0.82); margin-bottom: 1.5rem; }

/* === Article body === */
.article-body {
  max-width: 65ch;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
.article-body header { margin-bottom: 1rem; }
.article-body h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1.25rem; }
.article-sub { font-size: 1.2rem; color: var(--color-secondary); margin-bottom: 1.5rem; }
.article-hero { margin: 2rem 0; border-radius: var(--radius); overflow: hidden; }
.article-hero img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.article-body 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 var(--color-border); }
.back-link { font-weight: 500; }

/* === Contact === */
.contact-inner { max-width: var(--maxw); margin: 0 auto; }
.contact-inner address { font-style: normal; color: var(--color-secondary); margin: 1rem 0 1.75rem; line-height: 1.9; }
.contact-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
.contact-info { font-style: normal; color: var(--color-secondary); line-height: 1.7; }
.contact-info strong { color: var(--color-primary); display: inline-block; margin-bottom: 0.25rem; }
.hours { width: 100%; border-collapse: collapse; }
.hours caption { text-align: left; font-weight: 600; color: var(--color-primary); margin-bottom: 0.5rem; caption-side: top; font-size: 1.05rem; }
.hours th, .hours td { padding: 0.55rem 0; border-bottom: 1px solid var(--color-border); text-align: left; font-weight: 400; }
.hours th { color: var(--color-primary); font-weight: 500; }
.hours td { color: var(--color-secondary); text-align: right; }

/* === Form === */
.contact-form { max-width: var(--maxw); margin: 0 auto; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block; font-weight: 500; font-size: 0.92rem;
  color: var(--color-primary); margin-bottom: 0.4rem;
}
.field input, .field textarea {
  width: 100%; padding: 0.75rem 0.9rem;
  font: inherit; color: var(--color-primary);
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.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.88rem; color: var(--color-secondary);
  margin: 1rem 0 1.5rem; line-height: 1.5;
}
.form-consent input { margin-top: 0.2rem; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: rgba(248,250,252,0.78);
  padding: 3rem 1.25rem 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid; gap: 2rem;
  max-width: 1080px; margin: 0 auto;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr; }
}
.site-footer .brand { font-family: var(--font-heading); font-size: 1.4rem; color: #fff; margin: 0 0 0.5rem; }
.site-footer .muted { color: rgba(248,250,252,0.6); font-size: 0.92rem; margin: 0; }
.site-footer nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.site-footer nav a, .site-footer address a { color: rgba(248,250,252,0.85); }
.site-footer nav a:hover, .site-footer address a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.7; font-size: 0.92rem; }
.legal-links { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; font-size: 0.85rem; }
.copyright {
  max-width: 1080px; margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(248,250,252,0.1);
  font-size: 0.85rem; color: rgba(248,250,252,0.55);
}

/* === 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.25rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
  max-width: 640px;
  margin-left: auto; margin-right: auto;
  font-size: 0.92rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; line-height: 1.55; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button {
  border: 1px solid rgba(248,250,252,0.25);
  background: transparent; color: var(--color-neutral-light);
  padding: 0.55rem 1rem; border-radius: 6px;
  font: inherit; font-weight: 500; cursor: pointer;
}
.cookie-banner button:hover { background: rgba(248,250,252,0.08); }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); }
.cookie-banner [data-cookie-accept]:hover { background: #075985; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.cookie-banner__prefs label { display: flex; gap: 0.5rem; align-items: center; font-size: 0.9rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: 0.4rem; }
