:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #CA8A04;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1B2E;
  --color-muted: #5B5470;
  --color-border: rgba(76, 29, 149, 0.14);
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1180px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: #ffffff;
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-neutral-dark); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1.25rem; }

/* === Header === */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 0.75rem;
  gap: 1rem;
}
.logo { display: inline-block; line-height: 0; }
.logo img { height: 72px; width: auto; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--color-border);
  color: var(--color-neutral-dark);
  padding: 0.5rem; border-radius: 8px; cursor: pointer;
}
.primary-nav { display: none; }
.primary-nav.is-open { display: flex; flex-direction: column; gap: 0.25rem; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border); }
.primary-nav a { padding: 0.6rem 0.25rem; color: var(--color-neutral-dark); font-weight: 500; border-bottom: 1px solid var(--color-border); }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 768px) {
  .logo img { height: 96px; }
  .nav-toggle { display: none; }
  .primary-nav, .primary-nav.is-open {
    display: flex; flex-direction: row; position: static; padding: 0; gap: 1.75rem; background: transparent; border: 0;
  }
  .primary-nav a { border: 0; padding: 0.25rem 0; font-size: 0.95rem; }
  .primary-nav a:hover { color: var(--color-primary); text-decoration: none; }
}

/* === Hero split === */
.hero { padding-block: 3rem; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
.hero-copy .eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--color-primary); font-weight: 600; margin-bottom: 0.75rem; }
.hero-copy .lede { font-size: 1.15rem; color: var(--color-muted); margin-block: 1rem 1.75rem; max-width: 48ch; }
.hero-media img { border-radius: var(--radius-lg); aspect-ratio: 4/5; object-fit: cover; width: 100%; }

@media (min-width: 900px) {
  .hero { padding-block: 5rem; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .hero-copy { order: 1; }
  .hero-media { order: 2; }
}

.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--color-primary); font-weight: 600; margin-bottom: 0.75rem; }

/* === Buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600; font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-neutral-dark); text-decoration: none; transform: translateY(-1px); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #a8730a; text-decoration: none; transform: translateY(-1px); }

/* === Sections === */
.section { padding-block: 3.5rem; }
.section-alt { background: var(--color-neutral-light); }
.narrow { max-width: 720px; margin-inline: auto; }
.narrow-col { max-width: 780px; margin-inline: auto; }
.section-head { text-align: left; max-width: 60ch; margin-bottom: 2rem; }
.section-head .sub { color: var(--color-muted); font-size: 1.05rem; }
.body-text { font-size: 1.05rem; color: var(--color-text); line-height: 1.75; }

.two-col { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .two-col { grid-template-columns: 1.1fr 0.9fr; gap: 4rem; }
}
.media-frame img { border-radius: var(--radius-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* === Grid cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .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: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card .icon { color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { color: var(--color-neutral-dark); }
.card p { color: var(--color-muted); font-size: 0.98rem; margin-bottom: 0; }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 20px 40px -25px rgba(76,29,149,0.35); border-color: var(--color-secondary); }
.card .read-more { display: inline-block; margin-top: 1rem; color: var(--color-primary); font-weight: 600; font-size: 0.95rem; }

/* === Testimonial === */
.testimonial {
  margin: 0;
  text-align: center;
  padding: 2rem 1rem;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.15rem, 2.2vw, 1.5rem); color: var(--color-neutral-dark); font-weight: 500; line-height: 1.5; margin-bottom: 1rem; }
.testimonial cite { font-style: normal; color: var(--color-muted); font-size: 0.95rem; }

/* === CTA band === */
.cta-band {
  background: var(--color-primary);
  color: #fff;
  padding-block: 3rem;
}
.cta-band h2 { color: #fff; margin-bottom: 0.35rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin: 0; }
.cta-inner { display: flex; flex-direction: column; gap: 1.5rem; align-items: flex-start; }
@media (min-width: 768px) {
  .cta-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; }
}

/* === Article detail === */
.article { max-width: 65ch; margin-inline: auto; padding: 3rem 1rem 4rem; }
.article-head { margin-bottom: 1.5rem; }
.article-head h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.article-sub { font-size: 1.2rem; color: var(--color-muted); line-height: 1.5; }
.article-hero-img { aspect-ratio: 16/9; object-fit: cover; margin-block: 2rem; border-radius: 8px; width: 100%; }
.article p { font-size: 1.125rem; line-height: 1.75; margin-block: 1.25rem; }
.article h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.article-foot { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--color-border); }
.back-link { color: var(--color-primary); font-weight: 600; }

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 3rem; } }
.contact-grid address { font-style: normal; line-height: 1.8; color: var(--color-muted); margin-bottom: 1.5rem; }
.contact-grid address a { color: var(--color-primary); }
.hours { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.hours th, .hours td { padding: 0.5rem 0; text-align: left; font-weight: 400; color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.hours th { color: var(--color-neutral-dark); font-weight: 500; }
.hours td { color: var(--color-muted); text-align: right; }

.contact-card-block { text-align: center; }
.contact-card-block .section-head { margin-left: auto; margin-right: auto; text-align: center; }
.contact-details p { margin: 0.25rem 0; color: var(--color-muted); }
.contact-details a { color: var(--color-primary); }
.contact-details .btn { margin-top: 1.5rem; }

/* === Form === */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; color: var(--color-neutral-dark); font-weight: 500; }
.contact-form input, .contact-form textarea {
  font: inherit; color: inherit;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(124,58,237,0.15); }
.contact-form textarea { resize: vertical; min-height: 140px; }
.form-consent { flex-direction: row !important; align-items: flex-start; gap: 0.6rem !important; font-size: 0.85rem !important; color: var(--color-muted) !important; font-weight: 400 !important; line-height: 1.5; }
.form-consent input { margin-top: 0.2rem; }
.form-consent a { color: var(--color-primary); }

/* === Thank-you === */
.thank-you { text-align: center; padding-block: 5rem; }
.thank-you .body-text { max-width: 60ch; margin-inline: auto; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: rgba(255,255,255,0.85); padding-block: 3.5rem 1.5rem; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.1fr 0.9fr 1fr; } }
.site-footer h3 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 0.5rem; }
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: #fff; }
.site-footer address { font-style: normal; line-height: 1.7; margin-bottom: 1rem; }
.tagline { color: rgba(255,255,255,0.7); margin-top: 0.5rem; }
.logo-footer img { height: 56px; filter: brightness(0) invert(1); }
.legal-links { margin-top: 1rem; font-size: 0.9rem; }
.copyright { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 1.25rem; font-size: 0.85rem; color: rgba(255,255,255,0.65); }

/* === 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.4rem;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.4);
  max-width: 560px;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: 0.92rem; line-height: 1.55; color: var(--color-neutral-light); }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner__actions button, .cookie-banner__prefs button {
  font: inherit; cursor: pointer;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem; font-weight: 600;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: var(--color-neutral-light);
}
.cookie-banner__actions [data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner__actions [data-cookie-accept]:hover { background: #a8730a; }
.cookie-banner__prefs { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.2); }
.cookie-banner__prefs label { font-size: 0.9rem; display: flex; gap: 0.5rem; align-items: center; }
.cookie-banner__prefs [data-cookie-save] { align-self: flex-start; background: var(--color-neutral-light); color: var(--color-neutral-dark); border-color: var(--color-neutral-light); margin-top: 0.5rem; }
