/* === Tokens === */
:root {
  --color-primary: #FF4D4D;
  --color-secondary: #4D94FF;
  --color-accent: #00E676;
  --color-neutral-dark: #1C1C1E;
  --color-neutral-light: #F5F5F7;
  --color-bg: #FBF1EC;
  --color-bg-warm: #F5E1D8;
  --color-ink: #2A1F1C;
  --color-muted: #6E5A54;
  --color-line: rgba(28,28,30,0.12);
  --font-heading: 'Lora', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --max: 1120px;
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
  -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, h4 { font-family: var(--font-heading); font-weight: 600; line-height: 1.2; color: var(--color-ink); margin: 0 0 .75rem; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
blockquote { margin: 0; }

/* === Layout helpers === */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 720px; }
.eyebrow { font-family: var(--font-body); font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--color-primary); font-weight: 600; margin-bottom: .75rem; }

/* === Header === */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-line);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(251,241,236,0.9);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.25rem; gap: 1rem; }
.logo img { height: 72px; width: auto; display: block; }
@media (min-width: 768px) { .logo img { height: 96px; } }
.primary-nav { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.75rem; }
.primary-nav a { color: var(--color-ink); font-weight: 500; font-size: .95rem; }
.primary-nav a[aria-current="page"] { color: var(--color-primary); }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: space-between;
  width: 32px; height: 24px;
  background: none; border: 0; padding: 4px 0; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: var(--color-ink); border-radius: 2px; }
.nav-toggle[aria-expanded="true"] + .primary-nav { display: block; }
@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .primary-nav { display: block; }
}
@media (max-width: 767px) {
  .primary-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--color-bg); border-bottom: 1px solid var(--color-line); padding: 1rem 1.25rem; }
  .primary-nav ul { flex-direction: column; gap: .75rem; }
}

/* === Hero === */
.hero { padding: 3.5rem 0 2.5rem; text-align: center; background: var(--color-bg); }
@media (min-width: 768px) { .hero { padding: 6rem 0 4rem; } }
.hero h1 { max-width: 28ch; margin-inline: auto; }
.hero-sub { max-width: 52ch; margin: 1rem auto 1.5rem; color: var(--color-muted); font-size: 1.125rem; }
.hero-cta { margin-bottom: 2.5rem; }
.hero-figure { margin: 2.5rem auto 0; max-width: 100%; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(90,40,30,0.35); }
.hero-figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* === Buttons === */
.btn { display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem; transition: transform .15s ease, box-shadow .15s ease; border: 0; cursor: pointer; font-family: var(--font-body); }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 30px -12px rgba(255,77,77,0.55); }
.btn-light { background: #fff; color: var(--color-ink); }
.btn-light:hover { text-decoration: none; transform: translateY(-1px); }

/* === Sections === */
.section { padding: 3.5rem 0; }
@media (min-width: 768px) { .section { padding: 5rem 0; } }
.section-intro { text-align: center; }
.section-intro.alt { background: var(--color-bg-warm); }
.section-intro p { color: var(--color-ink); font-size: 1.05rem; line-height: 1.75; }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head p { color: var(--color-muted); max-width: 55ch; margin-inline: auto; }

/* === Grid & Cards === */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.75rem;
  border: 1px solid var(--color-line);
  box-shadow: 0 20px 40px -30px rgba(90,40,30,0.25);
  transition: transform .18s ease, box-shadow .18s ease;
}
.card h3 { margin-top: .75rem; }
.card .icon { color: var(--color-primary); }
a.card-link { color: inherit; display: block; }
a.card-link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 24px 48px -24px rgba(90,40,30,0.35); }
a.card-link h3 { color: var(--color-ink); }

/* === Testimonial === */
.section-testimonial { text-align: center; background: var(--color-bg-warm); }
.section-testimonial blockquote p { font-family: var(--font-heading); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.5; color: var(--color-ink); font-style: italic; }
.section-testimonial cite { display: block; margin-top: 1rem; font-style: normal; color: var(--color-muted); font-size: .95rem; }

/* === CTA Band === */
.cta-band { background: var(--color-primary); color: #fff; padding: 3.5rem 0; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.9); max-width: 55ch; margin: 0 auto 1.25rem; }
.cta-band .contact-line { font-size: .95rem; }

/* === Two column === */
.two-col { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.two-col figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(90,40,30,0.35); }
.two-col figure img { aspect-ratio: 4/5; object-fit: cover; width: 100%; }

/* === Contact === */
.section-contact { background: var(--color-bg-warm); }
.contact-info address { font-style: normal; line-height: 1.8; color: var(--color-ink); }
.contact-form { background: #fff; padding: 2rem; border-radius: var(--radius); border: 1px solid var(--color-line); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 500; font-size: .9rem; margin-bottom: .35rem; }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; font-family: inherit; font-size: 1rem;
  border: 1px solid var(--color-line); border-radius: 8px; background: var(--color-bg);
  color: var(--color-ink);
}
.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: .85rem; color: var(--color-muted); margin: 1rem 0 1.25rem; line-height: 1.5; }
.form-consent input { margin-top: .2rem; flex-shrink: 0; }

/* === Article detail === */
.article { max-width: 65ch; margin: 3rem auto; padding: 0 1.25rem; }
.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 { margin: 2rem 0; border-radius: var(--radius); overflow: hidden; }
.article-hero img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.article-body p { font-size: 1.125rem; line-height: 1.8; margin-block: 1.25rem; color: var(--color-ink); }
.article-foot { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-line); }
.back-link { color: var(--color-primary); font-weight: 500; }

/* === Footer === */
.site-footer { background: var(--color-neutral-dark); color: var(--color-neutral-light); padding: 3rem 0 1.5rem; margin-top: 0; }
.site-footer h3 { color: #fff; font-family: var(--font-body); font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: var(--color-neutral-light); }
.site-footer a:hover { color: var(--color-primary); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; padding-block: 1rem 2rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: 3rem; } }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer address { font-style: normal; line-height: 1.7; color: rgba(245,245,247,0.85); margin-bottom: 1rem; }
.legal-links { display: flex; flex-wrap: wrap; gap: 1rem; padding-top: .5rem; border-top: 1px solid rgba(255,255,255,0.12); margin-top: 1rem; }
.legal-links li { margin: 0; }
.tagline { font-family: var(--font-heading); font-style: italic; color: rgba(245,245,247,0.75); margin-top: .5rem; }
.logo-footer img { filter: brightness(0) invert(1); height: 60px; }
.copyright { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 1.25rem; font-size: .85rem; color: rgba(245,245,247,0.7); }

/* === 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: var(--radius); max-width: 640px;
  margin-inline: auto;
  box-shadow: 0 25px 60px -20px rgba(0,0,0,0.4);
  font-size: .9rem; line-height: 1.55;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner p { margin: 0 0 .9rem; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-banner button {
  padding: .55rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,0.25);
  background: transparent; color: var(--color-neutral-light); font-family: inherit; font-size: .85rem; cursor: pointer;
}
.cookie-banner [data-cookie-accept] { background: var(--color-primary); border-color: var(--color-primary); color: #fff; font-weight: 600; }
.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: .85rem; }
.cookie-banner__prefs [data-cookie-save] { margin-top: .5rem; align-self: flex-start; background: var(--color-accent); border-color: var(--color-accent); color: var(--color-neutral-dark); font-weight: 600; }
