/* === Tokens === */
:root {
  --color-primary: #7C3AED;
  --color-secondary: #A78BFA;
  --color-accent: #22C55E;
  --color-neutral-dark: #4C1D95;
  --color-neutral-light: #FAF5FF;
  --color-text: #1F1235;
  --color-muted: #5B4B7A;
  --color-border: rgba(76, 29, 149, 0.14);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --shadow-soft: 0 10px 30px -18px rgba(76, 29, 149, 0.35);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-neutral-light);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* === Typography === */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: var(--color-neutral-dark); letter-spacing: -0.01em; margin: 0 0 1rem; line-height: 1.2; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--color-primary); font-weight: 700; margin: 0 0 1rem; }

/* === Layout === */
.container { max-width: 1180px; margin-inline: auto; padding-inline: 1.25rem; }
.section { padding-block: 3.5rem; }
.section-alt { background: #fff; }
.section-narrow .container { max-width: 720px; }
.section-title { text-align: center; margin-bottom: 2.5rem; }
.section-lede { text-align: center; max-width: 60ch; margin-inline: auto; margin-bottom: 2.5rem; color: var(--color-muted); }

/* === Header === */
.site-header { background: #fff; border-bottom: 1px solid var(--color-border); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.75rem; }
.logo img { height: 72px; width: auto; display: block; }
.nav-toggle { background: transparent; border: 1px solid var(--color-border); color: var(--color-neutral-dark); border-radius: 8px; padding: 0.4rem 0.5rem; display: inline-flex; }
.primary-nav { display: none; flex-direction: column; gap: 0.5rem; position: absolute; top: 100%; right: 1.25rem; left: 1.25rem; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1rem; box-shadow: var(--shadow-soft); }
.primary-nav.is-open { display: flex; }
.primary-nav a { color: var(--color-neutral-dark); font-weight: 600; padding: 0.4rem 0; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .primary-nav { display: flex; flex-direction: row; position: static; padding: 0; border: 0; box-shadow: none; background: transparent; gap: 1.75rem; }
}
@media (min-width: 768px) {
  .logo img { height: 96px; }
}

/* === Buttons === */
.btn { display: inline-block; padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 700; letter-spacing: 0.02em; transition: transform 0.15s ease, box-shadow 0.15s ease; border: 0; font-size: 0.95rem; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-soft); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-accent { background: var(--color-accent); color: #0a1f10; }

/* === Hero (stacked) === */
.hero { padding-block: 3rem 2.5rem; background: linear-gradient(180deg, #fff 0%, var(--color-neutral-light) 100%); }
.hero .container { max-width: 820px; text-align: left; }
.hero h1 { max-width: 22ch; }
.hero-figure { margin: 2rem 0; }
.hero-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.hero-sub { font-size: 1.15rem; color: var(--color-muted); max-width: 55ch; }

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

/* === Grid === */
.grid { display: grid; gap: 1.5rem; 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); } }

/* === Cards === */
.card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.card-icon { color: var(--color-primary); margin-bottom: 0.75rem; }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--color-muted); margin: 0; }
.card-link { display: block; color: inherit; }
.card-link:hover { text-decoration: none; }
.card-link:hover .card { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: var(--color-secondary); }
.card-article h3 { color: var(--color-neutral-dark); }
.contact-card { text-align: center; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius); padding: 1.75rem 1.25rem; }
.contact-card .card-icon { display: inline-block; }
.contact-card p { color: var(--color-muted); margin: 0; }

/* === Testimonial === */
.testimonial-section { background: var(--color-neutral-dark); color: var(--color-neutral-light); }
.testimonial { max-width: 720px; margin: 0 auto; text-align: center; font-style: normal; }
.testimonial p { font-family: var(--font-heading); font-size: clamp(1.35rem, 2.6vw, 1.85rem); line-height: 1.4; color: var(--color-neutral-light); margin-bottom: 1.25rem; }
.testimonial cite { display: block; font-style: normal; font-size: 0.9rem; color: var(--color-secondary); letter-spacing: 0.08em; text-transform: uppercase; }

/* === CTA band === */
.cta-band { background: var(--color-primary); color: #fff; padding-block: 3rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 55ch; margin-inline: auto; }

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

/* === FAQ === */
.faq { border-bottom: 1px solid var(--color-border); padding: 1rem 0; }
.faq summary { font-family: var(--font-heading); font-weight: 600; font-size: 1.15rem; color: var(--color-neutral-dark); cursor: pointer; list-style: none; padding-right: 1.5rem; position: relative; }
.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 0.2s ease; }
.faq[open] summary::after { content: '−'; }
.faq p { margin-top: 0.75rem; color: var(--color-muted); }

/* === Contact form === */
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--color-border); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label { font-weight: 700; font-size: 0.9rem; color: var(--color-neutral-dark); }
.field input, .field textarea { font-family: inherit; font-size: 1rem; padding: 0.7rem 0.85rem; border: 1px solid var(--color-border); border-radius: 8px; background: var(--color-neutral-light); color: var(--color-text); }
.field input:focus, .field textarea:focus { outline: 2px solid var(--color-primary); outline-offset: 1px; }
.form-consent { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.88rem; color: var(--color-muted); }
.form-consent input { margin-top: 0.25rem; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: var(--color-neutral-light); padding-block: 3rem 1.5rem; margin-top: 3rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; }
.site-footer h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.75rem; }
.site-footer a { color: var(--color-secondary); }
.site-footer a:hover { color: #fff; }
.footer-nav { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-nav a { padding: 0.15rem 0; }
.logo-footer img { height: 60px; filter: brightness(0) invert(1); }
.tagline { color: var(--color-secondary); margin-top: 0.75rem; max-width: 30ch; }
.footer-contact address { font-style: normal; color: var(--color-secondary); line-height: 1.7; margin-bottom: 1rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.9rem; }
.copyright { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.85rem; color: var(--color-secondary); text-align: center; }

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.3fr 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; border-radius: var(--radius); box-shadow: 0 20px 50px -15px rgba(0,0,0,0.4); max-width: 640px; margin-inline: auto; }
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 0.9rem; font-size: 0.92rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.cookie-banner button { background: transparent; color: var(--color-neutral-light); border: 1px solid rgba(255,255,255,0.3); padding: 0.5rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; }
.cookie-banner [data-cookie-accept] { background: var(--color-accent); color: #0a1f10; border-color: var(--color-accent); }
.cookie-banner__prefs { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); font-size: 0.9rem; }
.cookie-banner__prefs label { display: flex; align-items: center; gap: 0.5rem; }
.cookie-banner__prefs button { align-self: flex-start; margin-top: 0.5rem; }
