/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Lato', sans-serif;
  --max: 1160px;
}

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

/* === Layout === */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.section { padding: 4rem 0; }
.section-alt { background: #fff; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 2.5rem; }

/* === Header === */
.site-header { background: var(--color-neutral-light); border-bottom: 1px solid rgba(76, 29, 149, 0.1); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: .75rem; padding-bottom: .75rem; gap: 1rem; }
.logo img { height: 72px; width: auto; display: block; }
.primary-nav { display: none; gap: 1.75rem; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 700; font-size: .95rem; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: .5rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--color-neutral-dark); }
.primary-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(76,29,149,0.1); gap: 1rem; }

/* === Hero === */
.hero { padding: 3.5rem 0; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.eyebrow { font-family: var(--font-body); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-primary); margin: 0 0 1rem; }
.hero-text h1 { max-width: 18ch; }
.hero-sub { font-size: 1.2rem; color: var(--color-neutral-dark); opacity: .85; max-width: 52ch; margin-bottom: 1.75rem; }
.hero-media img { aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; width: 100%; }
.hero-simple { padding: 5rem 0 3rem; }

/* === Buttons === */
.btn { display: inline-block; padding: .9rem 1.6rem; border-radius: 6px; font-weight: 700; font-size: 1rem; letter-spacing: 0.02em; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-neutral-dark); }
.btn-accent { background: var(--color-accent); color: #fff; }
.btn-accent:hover { background: #16a34a; }

/* === Grid === */
.grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
.card { background: var(--color-neutral-light); border: 1px solid rgba(76, 29, 149, 0.12); border-radius: 12px; padding: 1.75rem; }
.section-alt .card { background: var(--color-neutral-light); }
.card .icon { color: var(--color-primary); margin-bottom: 1rem; }
.card h3 { margin-bottom: .5rem; }
.card p { margin: 0; font-size: .98rem; }
a.card-link { color: inherit; text-decoration: none; display: block; transition: transform .2s ease, box-shadow .2s ease; }
a.card-link:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(76,29,149,0.25); text-decoration: none; }
a.card-link h3 { color: var(--color-primary); }

/* === Split === */
.split { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
.split-media img { border-radius: 12px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* === Testimonial === */
.testimonial-section { background: var(--color-neutral-dark); color: var(--color-neutral-light); }
.testimonial-section h2, .testimonial-section p, .testimonial-section cite { color: var(--color-neutral-light); }
.testimonial { margin: 0; text-align: center; }
.testimonial p { font-family: var(--font-heading); font-size: 1.5rem; line-height: 1.5; font-style: italic; margin-bottom: 1.25rem; }
.testimonial cite { font-family: var(--font-body); font-style: normal; font-size: .95rem; opacity: .85; letter-spacing: 0.03em; }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: #fff; padding: 4rem 0; text-align: center; }
.cta-band h2, .cta-band p { color: #fff; }
.cta-band .contact-line { font-size: .95rem; opacity: .85; }

/* === Article detail === */
.article-detail { max-width: 65ch; margin: 3rem auto; padding: 0 1.25rem; }
.article-detail h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 1rem; }
.article-sub { font-size: 1.2rem; color: var(--color-secondary); margin-bottom: 1.5rem; }
.article-hero-img { aspect-ratio: 16/9; object-fit: cover; margin: 2rem 0; border-radius: 8px; width: 100%; }
.article-detail p { font-size: 1.125rem; line-height: 1.75; margin: 1.25rem 0; }
.article-footer { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(76,29,149,0.15); }
.back-link { font-weight: 700; }

/* === Contact form === */
.contact-form { display: grid; gap: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field input, .field textarea { font: inherit; padding: .8rem .9rem; border: 1px solid rgba(76,29,149,0.25); border-radius: 6px; background: #fff; color: var(--color-neutral-dark); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-consent { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; line-height: 1.5; }
.form-consent input { margin-top: 4px; }
.contact-line { font-size: 1rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: var(--color-neutral-light); padding: 3.5rem 0 1.5rem; margin-top: 4rem; }
.site-footer h3 { color: var(--color-neutral-light); font-size: 1.15rem; margin-bottom: 1rem; }
.site-footer a { color: var(--color-neutral-light); opacity: .85; }
.site-footer a:hover { opacity: 1; color: #fff; }
.site-footer .logo img { filter: brightness(0) invert(1); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.tagline { font-family: var(--font-heading); font-size: 1.1rem; font-style: italic; opacity: .9; margin-top: .5rem; }
.site-footer address { font-style: normal; margin-bottom: 1rem; line-height: 1.7; }
.legal-links { display: grid; gap: .3rem; }
.legal-links a { font-size: .9rem; }
.copyright { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2.5rem; padding-top: 1.25rem; text-align: center; font-size: .85rem; opacity: .8; }

/* === 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.5rem; border-radius: 10px; box-shadow: 0 20px 60px -20px rgba(0,0,0,0.5); max-width: 620px; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 1rem; font-size: .92rem; line-height: 1.5; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner__actions button { font: inherit; font-weight: 700; border: 0; padding: .55rem 1rem; border-radius: 6px; cursor: pointer; background: transparent; color: var(--color-neutral-light); border: 1px solid rgba(255,255,255,0.3); font-size: .88rem; }
.cookie-banner__actions button[data-cookie-accept] { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.cookie-banner__prefs { margin-top: 1rem; display: grid; gap: .5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
.cookie-banner__prefs label { display: flex; align-items: center; gap: .5rem; font-size: .9rem; }
.cookie-banner__prefs button { font: inherit; font-weight: 700; margin-top: .5rem; padding: .55rem 1rem; border-radius: 6px; border: 0; background: var(--color-primary); color: #fff; cursor: pointer; }

/* === Responsive === */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  body { font-size: 18px; }
  .logo img { height: 96px; }
  .primary-nav { display: flex; }
  .nav-toggle { display: none; }
  .hero { padding: 5.5rem 0; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .section { padding: 5.5rem 0; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
