:root {
  --color-primary: #18181B;
  --color-secondary: #3F3F46;
  --color-accent: #2563EB;
  --color-neutral-dark: #09090B;
  --color-neutral-light: #FAFAFA;
  --color-surface: #FFFFFF;
  --color-border: rgba(9, 9, 11, 0.10);
  --color-muted: #71717A;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 24px;
  --radius-sm: 12px;
  --shadow-card: 0 30px 60px -30px rgba(9, 9, 11, 0.25);
  --shadow-soft: 0 10px 30px -18px rgba(9, 9, 11, 0.35);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--color-neutral-light);
  color: var(--color-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -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; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); line-height: 1.1; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.2; }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1rem; letter-spacing: 0.02em; font-family: var(--font-body); font-weight: 600; }
p { margin: 0 0 1rem; }

/* === Layout helpers === */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 760px; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.eyebrow.center { text-align: center; }
.lede { font-size: 1.15rem; color: var(--color-secondary); max-width: 52ch; }
.sub { color: var(--color-secondary); max-width: 60ch; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 250, 250, 0.9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.25rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 10px;
  background: transparent; border: 1px solid var(--color-border); border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: var(--color-primary); }
.primary-nav { display: none; }
.primary-nav.is-open { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--color-surface); padding: 1rem 1.25rem; border-bottom: 1px solid var(--color-border); }
.primary-nav a { color: var(--color-primary); padding: 0.5rem 0; font-weight: 500; }
.primary-nav a[aria-current="page"] { color: var(--color-accent); }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex !important; position: static; flex-direction: row; gap: 2rem; padding: 0; border: none; background: transparent; }
  .logo img { height: 96px; }
}

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

/* === Hero (hero-card) === */
.hero {
  padding: 3rem 0 4rem;
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(37, 99, 235, 0.08), transparent 60%),
    radial-gradient(900px 400px at 90% 10%, rgba(9, 9, 11, 0.06), transparent 60%),
    var(--color-neutral-light);
}
.hero-card__panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  max-width: 880px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}
.hero-card__cta { margin: 1.5rem 0 2rem; }
.hero-card__figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--color-border); }
.hero-card__figure img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }

@media (min-width: 768px) {
  .hero { padding: 5rem 0 6rem; }
  .hero-card__panel { padding: 3.5rem 3rem; }
}

/* === Sections === */
.section { padding: 4rem 0; }
.section--alt { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.5rem; }
.section__head .sub { margin-left: auto; margin-right: auto; }

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

/* === Two-column === */
.two-col { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.two-col__figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--color-border); }
.two-col__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

/* === Card grid === */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .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: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card .icon { color: var(--color-accent); margin-bottom: 0.75rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-secondary); margin: 0; font-size: 0.98rem; }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-link:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: rgba(37, 99, 235, 0.4); text-decoration: none; }

/* === Quote === */
.section--quote { padding: 4rem 0; }
.section--quote.alt { background: var(--color-surface); border-top: 1px solid var(--color-border); }
.quote {
  max-width: 780px; margin: 0 auto; text-align: center;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.45;
  color: var(--color-primary);
  border: none; padding: 0;
}
.quote p { margin: 0 0 1rem; }
.quote cite { display: block; 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: var(--color-neutral-light); padding: 3.5rem 0; }
.cta-band h2 { color: var(--color-neutral-light); margin: 0 0 0.35rem; }
.cta-band p { color: rgba(250, 250, 250, 0.82); margin: 0; }
.cta-band__inner { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
.cta-band__meta { margin-top: 0.5rem; font-size: 0.95rem; }
@media (min-width: 768px) {
  .cta-band__inner { grid-template-columns: 1fr auto; gap: 3rem; }
}

/* === Contact page === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.contact-grid h3 { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); margin: 1.25rem 0 0.35rem; font-weight: 600; }
.contact-grid address { font-style: normal; }
.hours { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.hours th, .hours td { text-align: left; padding: 0.55rem 0; border-bottom: 1px solid var(--color-border); }
.hours th { font-weight: 500; color: var(--color-secondary); }
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* === Contact form === */
.contact-form { display: grid; gap: 1rem; margin-top: 1.5rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-size: 0.9rem; font-weight: 500; color: var(--color-secondary); }
.field input, .field textarea {
  font: inherit; color: inherit;
  padding: 0.75rem 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15); }
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--color-secondary); flex-wrap: wrap; }
.form-consent input { margin-top: 0.25rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(250, 250, 250, 0.85); padding: 3.5rem 0 1.5rem; margin-top: 3rem; }
.site-footer h4 { color: var(--color-neutral-light); margin-bottom: 0.9rem; }
.site-footer a { color: rgba(250, 250, 250, 0.85); }
.site-footer a:hover { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(250,250,250,0.1); }
.site-footer__grid ul { list-style: none; padding: 0; margin: 0; }
.site-footer__grid li { padding: 0.25rem 0; }
.site-footer address { font-style: normal; margin: 0 0 1rem; line-height: 1.7; }
.site-footer .tagline { color: rgba(250, 250, 250, 0.65); margin-top: 0.75rem; }
.site-footer .legal { margin-top: 1rem; font-size: 0.9rem; }
.site-footer .logo img { height: 64px; filter: brightness(0) invert(1); }
.site-footer__copy { padding-top: 1.5rem; font-size: 0.85rem; color: rgba(250,250,250,0.55); }
.site-footer__copy p { margin: 0; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; 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);
  border-radius: var(--radius-sm);
  padding: 1.15rem 1.25rem;
  box-shadow: 0 20px 50px -15px rgba(0,0,0,0.5);
  max-width: 720px;
  margin: 0 auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.75rem; font-size: 0.92rem; color: rgba(250,250,250,0.9); }
.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(250,250,250,0.25);
  background: transparent;
  color: var(--color-neutral-light);
  cursor: pointer;
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-accept]:hover { background: #1e4fd0; }
.cookie-banner__prefs { display: grid; gap: 0.4rem; margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid rgba(250,250,250,0.15); font-size: 0.92rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs [data-cookie-save] { justify-self: start; margin-top: 0.4rem; }
