:root {
  --color-primary: #2563EB;
  --color-secondary: #3B82F6;
  --color-accent: #F97316;
  --color-neutral-dark: #1E293B;
  --color-neutral-light: #F8FAFC;
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, system-ui, sans-serif;
  --measure: 65ch;
  --radius: 8px;
}

/* === Base === */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  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: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--color-neutral-dark); }
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); letter-spacing: -0.01em; margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin: 0 0 1rem; }
h3 { font-size: 1.2rem; margin: 0 0 .5rem; }
p { margin: 0 0 1rem; }

/* === Layout helpers === */
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.25rem; }
.narrow { max-width: 720px; margin-inline: auto; }
.center { text-align: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--color-secondary); margin: 0 0 1rem; }
.lede { font-size: 1.15rem; color: #475569; margin: 0 0 1.25rem; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30, 41, 59, 0.08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-block: .75rem; gap: 1rem; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: none; border: none; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; padding: .5rem;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--color-neutral-dark); border-radius: 2px; }
.site-nav { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.site-nav a { color: var(--color-neutral-dark); font-weight: 600; padding: .5rem .25rem; }
.site-nav a[aria-current="page"] { color: var(--color-primary); }
.site-nav.is-open { display: block; width: 100%; padding-block: .5rem 1rem; }

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .site-nav { display: block; }
  .site-nav ul { flex-direction: row; gap: 1.75rem; }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: .85rem 1.6rem;
  border-radius: var(--radius); font-weight: 600;
  font-family: var(--font-body); font-size: 1rem;
  text-decoration: none; cursor: pointer; border: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(30,41,59,.35); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: #1D4FD1; }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #E56410; }

/* === Hero (fullscreen) === */
.hero-fullscreen {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-neutral-light);
  overflow: hidden;
}
.hero-fullscreen.hero-inner { min-height: 65vh; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(30,41,59,.65), rgba(37,99,235,.55)); z-index: 1; }
.hero-overlay.solid { background: linear-gradient(135deg, var(--color-primary), var(--color-secondary)); }
.hero-content { position: relative; z-index: 2; padding-block: 5rem; max-width: 780px; }
.hero-content .eyebrow { color: #DBEAFE; }
.hero-content h1 { color: #fff; max-width: 20ch; }
.hero-sub { font-size: 1.2rem; color: #E2E8F0; max-width: 52ch; margin: 0 0 1.75rem; }
.hero.ty .hero-content { padding-block: 4rem; }

@media (min-width: 768px) {
  .hero-content { padding-block: 8rem; }
  .hero-sub { font-size: 1.3rem; }
}

/* === Sections === */
.section { padding-block: 4rem; }
.section.alt { background: #EFF6FF; }
@media (min-width: 768px) { .section { padding-block: 6rem; } }

.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head .lede { margin-inline: auto; max-width: 60ch; }

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

/* === Cards === */
.card {
  background: #fff;
  border: 1px solid rgba(30,41,59,.08);
  border-radius: 12px;
  padding: 1.75rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card .icon { color: var(--color-primary); }
.card h3 { margin: 0; }
.card p { margin: 0; color: #334155; }
.card-link { color: inherit; text-decoration: none; }
.card-link:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(30,41,59,.25); border-color: rgba(37,99,235,.4); text-decoration: none; }
.read-more { color: var(--color-primary); font-weight: 600; margin-top: .5rem; display: inline-block; }

/* === Testimonial === */
.testimonial {
  margin: 0;
  padding: 2rem 1.5rem;
  border-left: 4px solid var(--color-accent);
  background: #fff;
  border-radius: var(--radius);
}
.testimonial p { font-family: var(--font-heading); font-size: 1.25rem; font-style: italic; line-height: 1.5; margin: 0 0 1rem; }
.testimonial cite { font-style: normal; font-weight: 600; color: #475569; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  padding-block: 4rem;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #DBEAFE; margin-bottom: 1.5rem; max-width: 52ch; margin-inline: auto; }

/* === Article detail === */
.article-detail {
  max-width: 65ch;
  margin: 3rem auto;
  padding-inline: 1.25rem;
}
.article-header { margin-bottom: 2rem; }
.article-header h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1.25rem; }
.article-sub { font-size: 1.2rem; color: #475569; }
.article-hero {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  border-radius: var(--radius); margin-block: 2rem;
}
.article-detail > p {
  font-size: 1.1rem;
  line-height: 1.75;
  margin-block: 1.25rem;
  color: #1E293B;
}
.back { margin-top: 2.5rem; }
.back-link { font-weight: 600; }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-top: 2rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.3fr; } }
.contact-info h3 { margin-top: 1.5rem; margin-bottom: .5rem; }
.contact-info h3:first-child { margin-top: 0; }
.contact-info address { font-style: normal; line-height: 1.7; }
.hours { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.hours th, .hours td { text-align: left; padding: .4rem 0; border-bottom: 1px solid rgba(30,41,59,.08); font-weight: 400; }
.hours th { font-weight: 600; }

/* === Form === */
.contact-form {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid rgba(30,41,59,.08);
}
.contact-form h3 { margin-top: 0; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; font-size: .95rem; }
.field input, .field textarea {
  width: 100%;
  padding: .7rem .85rem;
  border: 1px solid rgba(30,41,59,.2);
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--color-neutral-dark);
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; border-color: var(--color-primary); }
.form-consent {
  display: flex; gap: .6rem; align-items: flex-start;
  font-size: .9rem; color: #475569;
  margin: 1rem 0 1.25rem;
}
.form-consent input { margin-top: .25rem; flex-shrink: 0; }

/* === FAQ === */
.faq details {
  background: #fff;
  border: 1px solid rgba(30,41,59,.08);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: .75rem;
}
.faq summary { font-weight: 600; cursor: pointer; font-family: var(--font-heading); font-size: 1.05rem; }
.faq details[open] summary { margin-bottom: .5rem; }
.faq details p { margin: 0; color: #334155; }

/* === Footer === */
.site-footer {
  background: var(--color-neutral-dark);
  color: #CBD5E1;
  padding-block: 3rem 1.5rem;
  margin-top: 2rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: .75rem; }
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .35rem; }
.footer-grid address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.footer-grid .logo img { height: 60px; filter: brightness(0) invert(1); }
.tagline { color: #94A3B8; font-size: .95rem; margin-top: .5rem; }
.legal-links { margin-top: 1rem; font-size: .85rem; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.25rem; margin-top: 2rem; text-align: center; color: #94A3B8; font-size: .85rem; }

/* === 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;
  border-radius: 12px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,.35);
  max-width: 560px;
  margin-inline: auto;
  font-size: .95rem;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; color: #CBD5E1; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  border: none;
  padding: .55rem 1rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255,255,255,.1);
  color: #fff;
}
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #fff; }
.cookie-banner [data-cookie-reject] { background: rgba(255,255,255,.14); }
.cookie-banner [data-cookie-settings] { background: transparent; border: 1px solid rgba(255,255,255,.25); }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: .5rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; margin-top: .5rem; background: var(--color-primary); }
