/* === Tokens === */
:root {
  --color-primary: #2563EB;
  --color-secondary: #3B82F6;
  --color-accent: #F97316;
  --color-neutral-dark: #1E40AF;
  --color-neutral-light: #EFF6FF;
  --color-text: #0F172A;
  --color-text-muted: #475569;
  --color-border: rgba(30, 64, 175, 0.12);
  --font-heading: 'Manrope', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 20px rgba(30, 64, 175, 0.06);
  --shadow-md: 0 10px 30px -10px rgba(30, 64, 175, 0.20);
  --shadow-lg: 0 30px 60px -30px rgba(30, 64, 175, 0.35);
}

/* === Base === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; margin-bottom: .75rem; }
p { margin: 0 0 1rem; color: var(--color-text-muted); }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.container.narrow { max-width: 780px; }
.section { padding-block: 3.5rem; }
.section-tinted { background: var(--color-neutral-light); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-sub { font-size: 1.05rem; color: var(--color-text-muted); max-width: 60ch; margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 600; color: var(--color-primary); margin: 0 0 1rem; }

/* === Header (glass nav) === */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.scrolled { background: rgba(255, 255, 255, 0.92); box-shadow: 0 4px 24px rgba(30, 64, 175, 0.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.logo { display: inline-flex; align-items: center; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle {
  background: transparent; border: 1px solid var(--color-border); color: var(--color-primary);
  border-radius: var(--radius-sm); padding: .5rem; cursor: pointer; display: inline-flex;
}
.primary-nav { display: none; }
.primary-nav a {
  display: block; padding: .75rem 1rem; color: var(--color-text); font-weight: 500; position: relative;
}
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.primary-nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--color-border); padding: .5rem 1rem 1rem;
}

@media (min-width: 900px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav { display: flex !important; position: static; background: transparent; border: 0; padding: 0; gap: .25rem; }
  .primary-nav a { padding: .5rem .9rem; }
  .primary-nav a::after {
    content: ''; position: absolute; left: .9rem; right: .9rem; bottom: .25rem; height: 2px;
    background: var(--color-primary); transform: scaleX(0); transform-origin: left;
    transition: transform .3s var(--ease);
  }
  .primary-nav a:hover { text-decoration: none; }
  .primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
}

/* === Buttons === */
.btn {
  display: inline-block; padding: .85rem 1.5rem; border-radius: 999px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, color .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid rgba(37, 99, 235, .35); outline-offset: 2px; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; box-shadow: 0 12px 28px -12px rgba(37, 99, 235, 0.55);
}
.btn-primary:hover { box-shadow: 0 18px 34px -12px rgba(37, 99, 235, 0.7); }
.btn-accent { background: var(--color-accent); color: #fff; box-shadow: 0 12px 28px -12px rgba(249, 115, 22, 0.55); }
.btn-accent:hover { background: #ea6a12; box-shadow: 0 18px 34px -12px rgba(249, 115, 22, 0.7); }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-neutral-light); }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* === Hero card === */
.hero-card-section {
  position: relative;
  padding-block: 3rem 3.5rem;
  background:
    radial-gradient(60% 60% at 20% 10%, rgba(249, 115, 22, 0.10), transparent 70%),
    radial-gradient(50% 50% at 90% 20%, rgba(37, 99, 235, 0.12), transparent 70%),
    linear-gradient(180deg, var(--color-neutral-light), #ffffff);
}
.hero-card {
  max-width: 900px; margin-inline: auto;
  background: #ffffff; border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: 2.25rem 1.5rem;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.hero-card h1 { max-width: 22ch; }
.hero-card .lede { font-size: 1.15rem; color: var(--color-text-muted); max-width: 55ch; }
.hero-card__media { margin-top: 2rem; border-radius: var(--radius-md); overflow: hidden; }
.hero-card__media img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }

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

/* === Grid === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@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); } }

/* === Cards === */
.card {
  background: #ffffff; border: 1px solid var(--color-border);
  border-radius: var(--radius-md); padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.18));
  color: var(--color-primary); margin-bottom: 1rem;
}
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; }

/* === Split layout === */
.split { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
.split-media img { border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-md); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

/* === Testimonial === */
.testimonial-section { background: linear-gradient(180deg, #ffffff, var(--color-neutral-light)); }
.testimonial { text-align: center; margin: 0; }
.testimonial-portrait {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 1.25rem; box-shadow: var(--shadow-md); border: 3px solid #fff;
}
.testimonial blockquote { margin: 0 auto; max-width: 60ch; }
.testimonial blockquote p {
  font-family: var(--font-heading); font-size: clamp(1.1rem, 2vw, 1.4rem);
  line-height: 1.5; color: var(--color-text); font-weight: 500;
}
.testimonial cite { display: block; margin-top: 1rem; color: var(--color-text-muted); font-style: normal; font-size: .95rem; }

/* === CTA band === */
.cta-band {
  background: linear-gradient(135deg, var(--color-primary), var(--color-neutral-dark));
  color: #fff; padding-block: 3.5rem; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 60ch; margin-inline: auto; }
.cta-band .contact-line { font-family: var(--font-heading); font-weight: 600; color: #fff; }

/* === FAQ === */
.faq details {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius-sm); padding: 1rem 1.25rem; margin-bottom: .75rem;
  transition: box-shadow .2s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary {
  font-family: var(--font-heading); font-weight: 600; cursor: pointer;
  list-style: none; position: relative; padding-right: 2rem; color: var(--color-text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 0; top: 0;
  font-size: 1.4rem; color: var(--color-primary); transition: transform .2s;
}
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: .75rem; margin-bottom: 0; }

/* === Contact === */
.contact-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.contact-info h3 { margin-top: 1.25rem; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-primary); }
.contact-info h3:first-child { margin-top: 0; }
.hours { width: 100%; border-collapse: collapse; margin-top: .5rem; }
.hours th, .hours td { padding: .5rem .5rem; text-align: left; border-bottom: 1px solid var(--color-border); font-weight: 400; }
.hours th { color: var(--color-text); font-weight: 500; }
.contact-map img { border-radius: var(--radius-md); box-shadow: var(--shadow-md); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* === Form === */
.contact-form { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 1.75rem; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 500; margin-bottom: .35rem; color: var(--color-text); }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; font: inherit; color: var(--color-text);
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-sm);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-consent { display: flex; align-items: flex-start; gap: .6rem; margin: 1rem 0 1.25rem; font-size: .9rem; color: var(--color-text-muted); }
.form-consent input { margin-top: .25rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255,255,255,0.85); padding-top: 3rem; }
.site-footer h4 { color: #fff; }
.site-footer p { color: rgba(255,255,255,0.75); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--color-accent); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; padding-bottom: 2rem; }
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-tagline { font-family: var(--font-heading); font-weight: 500; margin-top: 1rem; }
.footer-legal { margin-top: 1rem; font-size: .9rem; }
.logo-footer img { height: 64px; filter: brightness(0) invert(1); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-block: 1.25rem; text-align: center; font-size: .9rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.4fr; 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);
  padding: 1.25rem 1.25rem; border-radius: var(--radius-md);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.35);
  max-width: 640px; margin: 0 auto;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { color: var(--color-neutral-light); margin: 0 0 .9rem; font-size: .95rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.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 .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.35); }
.cookie-banner .btn-ghost:hover { background: rgba(255,255,255,0.1); }

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
