/* =========================================================
   BERRY BOUND — independent travel guide to Knott's Berry Farm
   Design: "Neo‑Western Postcard" — berry, mustard, cream, ink
   ========================================================= */
:root {
  --berry: #8c1d47;
  --berry-deep: #5b0f2e;
  --mustard: #f0a92e;
  --sun: #ffd166;
  --teal: #1f8a8a;
  --cream: #fbf1e1;
  --paper: #f4e4c8;
  --ink: #1c1526;
  --ink-soft: #4a3f55;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 18px 40px -18px rgba(28, 21, 38, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --display: "Rye", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --hand: "Caveat", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
}
html { overflow-x: clip; }
.split > *, .grid > * { min-width: 0; }
body::before { /* paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; margin: 0 0 .5em; letter-spacing: .5px; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--berry); background: rgba(140, 29, 71, .1); padding: .4em 1em; border-radius: 99px; margin-bottom: 1rem;
}
.hand { font-family: var(--hand); font-size: 1.6em; color: var(--mustard); }
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section--ink { background: var(--ink); color: var(--cream); }
.section--ink .eyebrow { color: var(--sun); background: rgba(255, 209, 102, .12); }
.section--paper { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-inline: auto; text-align: center; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 2000; background: var(--berry); display: grid; place-items: center;
  transition: clip-path .9s var(--ease); clip-path: circle(150% at 50% 50%);
}
.loader.done { clip-path: circle(0% at 50% 50%); pointer-events: none; }
.loader__berry { width: 90px; height: 90px; animation: bounce .8s var(--ease) infinite alternate; }
.loader__text { font-family: var(--display); color: var(--cream); margin-top: 14px; font-size: 1.4rem; text-align: center; }
@keyframes bounce { to { transform: translateY(-22px) rotate(8deg); } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 0;
  transition: background .4s, padding .4s, box-shadow .4s;
}
.header.scrolled { background: rgba(28, 21, 38, .92); backdrop-filter: blur(12px); padding: 10px 0; box-shadow: var(--shadow); }
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); font-family: var(--display); font-size: 1.35rem; }
.logo svg { width: 38px; height: 38px; transition: transform .6s var(--ease); }
.logo:hover svg { transform: rotate(-20deg) scale(1.1); }
.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none; color: var(--cream); font-weight: 500; padding: 8px 14px; border-radius: 99px; position: relative;
  transition: background .3s, color .3s;
}
.nav a:hover { background: rgba(255, 255, 255, .12); }
.nav a.active { background: var(--mustard); color: var(--ink); }
.nav .btn { margin-left: 8px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: var(--cream); transition: .4s var(--ease); }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger.open span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--mustard); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: .6em; padding: .95em 1.7em; border-radius: 99px; border: 0;
  font: 700 1rem var(--sans); background: var(--bg); color: var(--fg); text-decoration: none; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .25);
}
.btn::before {
  content: ""; position: absolute; inset: 0; background: var(--berry); z-index: -1;
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 9px 0 rgba(0, 0, 0, .25); color: var(--cream); }
.btn:hover::before { transform: scaleX(1); transform-origin: left; }
.btn:active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0, 0, 0, .25); }
.btn--ghost { --bg: transparent; --fg: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); }
.btn--berry { --bg: var(--berry); --fg: var(--cream); }
.btn--berry::before { background: var(--ink); }
.btn--sm { padding: .6em 1.2em; font-size: .9rem; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; min-height: 100svh; position: relative; display: flex; align-items: center; color: var(--cream);
  overflow: hidden; background: var(--ink);
}
.hero__bg { position: absolute; inset: -8%; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.15); transition: opacity 1.4s, transform 7s linear; position: absolute; inset: 0; }
.hero__bg img.on { opacity: 1; transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(28, 21, 38, .92) 0%, rgba(91, 15, 46, .7) 45%, rgba(28, 21, 38, .15) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 80px; }
.hero h1 { max-width: 13ch; }
.hero h1 .word { display: inline-block; overflow: hidden; vertical-align: top; }
.hero h1 .word > span { display: inline-block; transform: translateY(110%); animation: rise .9s var(--ease) forwards; }
@keyframes rise { to { transform: none; } }
.hero__lead { font-size: 1.2rem; max-width: 52ch; opacity: .9; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__badge {
  position: absolute; right: 6%; bottom: 12%; z-index: 2; width: 170px; height: 170px;
  animation: spin 18s linear infinite;
}
.hero__badge text { font: 700 13px var(--sans); letter-spacing: 3.2px; fill: var(--sun); text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__dots { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 3; display: flex; gap: 8px; }
.hero__dots button { width: 30px; height: 5px; border-radius: 3px; border: 0; background: rgba(255, 255, 255, .35); cursor: pointer; transition: .4s; padding: 0; }
.hero__dots button.on { background: var(--mustard); width: 54px; }
.scroll-hint { position: absolute; left: 32px; bottom: 32px; z-index: 3; writing-mode: vertical-rl; font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.scroll-hint::after { content: ""; display: block; width: 1px; height: 60px; background: var(--cream); margin: 10px auto 0; animation: drip 2s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Page hero (inner pages) */
.page-hero { position: relative; min-height: 62vh; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; background: var(--ink); }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(28, 21, 38, .95), rgba(91, 15, 46, .45) 60%, rgba(28, 21, 38, .3)); }
.page-hero .container { position: relative; z-index: 2; padding: 150px 0 60px; }
.page-hero p { max-width: 60ch; font-size: 1.15rem; opacity: .9; }
.crumbs { font-size: .85rem; opacity: .75; margin-bottom: 1rem; }
.crumbs a { text-decoration: none; border-bottom: 1px dashed; }

/* ---------- Marquee ---------- */
.marquee { background: var(--mustard); color: var(--ink); overflow: hidden; padding: 16px 0; transform: rotate(-1.5deg); margin: -20px -10px; position: relative; z-index: 5; box-shadow: var(--shadow); }
.marquee__track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; font-family: var(--display); font-size: 1.5rem; white-space: nowrap; }
.marquee__track span::after { content: "✦"; margin-left: 48px; color: var(--berry); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.from-left { transform: translateX(-60px); }
.reveal.from-right { transform: translateX(60px); }
.reveal.zoom { transform: scale(.88); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Grid & cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 90px); align-items: center; }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s; transform-style: preserve-3d; position: relative;
}
.card__img { aspect-ratio: 4/3; overflow: hidden; position: relative; background: var(--paper); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .card__img img { transform: scale(1.08); }
.card__body { padding: 24px 26px 28px; }
.card__tag { position: absolute; top: 16px; left: 16px; z-index: 2; background: var(--ink); color: var(--sun); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { font-size: .8rem; font-weight: 600; padding: 5px 12px; border-radius: 99px; background: var(--paper); color: var(--ink-soft); }
.thrill { display: flex; gap: 3px; margin-top: 12px; align-items: center; font-size: .8rem; color: var(--ink-soft); }
.thrill i { width: 18px; height: 6px; border-radius: 3px; background: #e4d6bf; }
.thrill i.on { background: var(--berry); }

/* feature tiles */
.tile { padding: 34px 30px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); transition: transform .5s var(--ease), background .4s; }
.tile:hover { transform: translateY(-8px); background: rgba(255, 255, 255, .09); }
.tile__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--mustard); color: var(--ink); font-size: 1.7rem; margin-bottom: 18px; transition: transform .6s var(--ease); }
.tile:hover .tile__icon { transform: rotate(-12deg) scale(1.1); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat__num { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.8rem); color: var(--berry); line-height: 1; }
.section--ink .stat__num { color: var(--sun); }
.stat__label { font-weight: 600; opacity: .8; margin-top: 6px; }

/* image stack */
.stack { position: relative; aspect-ratio: 1/1.05; }
.stack img { position: absolute; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); border: 8px solid var(--white); }
.stack img:nth-child(1) { width: 72%; height: 70%; top: 0; left: 0; transform: rotate(-4deg); }
.stack img:nth-child(2) { width: 62%; height: 58%; bottom: 0; right: 0; transform: rotate(5deg); }
.stack .sticker { position: absolute; right: 8%; top: 6%; background: var(--berry); color: var(--cream); width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-family: var(--display); font-size: 1rem; line-height: 1.1; transform: rotate(12deg); animation: wobble 4s ease-in-out infinite; z-index: 3; }
@keyframes wobble { 50% { transform: rotate(-6deg) scale(1.06); } }

/* Coaster SVG */
.coaster-wrap { position: relative; margin-top: 40px; }
.coaster-wrap svg { width: 100%; height: auto; overflow: visible; }
.coaster-track { fill: none; stroke: var(--mustard); stroke-width: 5; stroke-linecap: round; }
.coaster-rails { fill: none; stroke: rgba(251, 241, 225, .25); stroke-width: 2; stroke-dasharray: 2 12; }

/* timeline */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 0; bottom: 0; width: 3px; background: repeating-linear-gradient(var(--berry) 0 14px, transparent 14px 22px); }
.tl-item { position: relative; margin-bottom: 42px; }
.tl-item::before { content: ""; position: absolute; left: -36px; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--mustard); border: 4px solid var(--cream); box-shadow: 0 0 0 3px var(--berry); }
.tl-year { font-family: var(--display); font-size: 1.8rem; color: var(--berry); }

/* testimonial / quote */
.quote { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.3rem); line-height: 1.3; max-width: 26ch; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter { border: 2px solid var(--ink); background: transparent; padding: 9px 20px; border-radius: 99px; font: 600 .95rem var(--sans); cursor: pointer; transition: .3s var(--ease); }
.filter:hover { transform: translateY(-2px); }
.filter.on { background: var(--ink); color: var(--sun); }
.card.hide { display: none; }
.card.pop { animation: pop .6s var(--ease); }
@keyframes pop { from { opacity: 0; transform: scale(.9) translateY(20px); } }
.search { flex: 1 1 220px; max-width: 320px; margin-left: auto; }

/* ---------- Gallery ---------- */
.masonry { columns: 3 280px; column-gap: 20px; }
.masonry figure { margin: 0 0 20px; break-inside: avoid; border-radius: 18px; overflow: hidden; position: relative; cursor: zoom-in; background: var(--paper); }
.masonry img { width: 100%; transition: transform .8s var(--ease), filter .6s; }
.masonry figure:hover img { transform: scale(1.06); filter: saturate(1.25); }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 14px; color: var(--cream); background: linear-gradient(transparent, rgba(28, 21, 38, .9)); font-weight: 600; transform: translateY(100%); transition: transform .5s var(--ease); }
.masonry figure:hover figcaption { transform: none; }
.lightbox { position: fixed; inset: 0; z-index: 1500; background: rgba(28, 21, 38, .95); display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .4s; padding: 20px; }
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-height: 80vh; max-width: min(1100px, 100%); border-radius: 12px; transform: scale(.9); transition: transform .5s var(--ease); }
.lightbox.open img { transform: none; }
.lightbox__cap { color: var(--cream); text-align: center; margin-top: 14px; }
.lightbox__cap small { opacity: .6; display: block; }
.lb-btn { position: absolute; background: var(--mustard); border: 0; width: 50px; height: 50px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; transition: transform .3s; }
.lb-btn:hover { transform: scale(1.12); }
.lb-close { top: 20px; right: 20px; } .lb-prev { left: 20px; top: 50%; } .lb-next { right: 20px; top: 50%; }

/* ---------- Accordion ---------- */
.acc-item { border-bottom: 2px dashed rgba(28, 21, 38, .2); }
.acc-btn { width: 100%; text-align: left; background: none; border: 0; padding: 22px 50px 22px 0; font: 700 1.1rem var(--sans); color: var(--ink); cursor: pointer; position: relative; }
.acc-btn::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.8rem; color: var(--berry); transition: transform .4s var(--ease); }
.acc-item.open .acc-btn::after { transform: translateY(-50%) rotate(135deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.acc-panel p { padding-bottom: 20px; color: var(--ink-soft); }

/* ---------- Tabs (itinerary) ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 26px; }
.tab { padding: 12px 22px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .08); color: var(--cream); font: 600 1rem var(--sans); cursor: pointer; transition: .3s; }
.tab.on { background: var(--mustard); color: var(--ink); }
.tab-panel { display: none; }
.tab-panel.on { display: block; animation: pop .6s var(--ease); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 90px 1fr; gap: 18px; padding: 18px 22px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.steps time { font-family: var(--display); color: var(--sun); font-size: 1.2rem; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border-radius: 28px; padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow); position: relative; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { position: relative; }
.field label { display: block; font-weight: 700; font-size: .88rem; margin-bottom: 6px; }
.field input, .field select, .field textarea, .search {
  width: 100%; padding: 14px 16px; border: 2px solid #e5d7bf; border-radius: 14px; font: 1rem var(--sans);
  background: var(--cream); color: var(--ink); transition: border-color .3s, box-shadow .3s, background .3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search:focus { outline: 0; border-color: var(--berry); background: var(--white); box-shadow: 0 0 0 5px rgba(140, 29, 71, .12); }
.field .err { color: #c0213f; font-size: .8rem; font-weight: 600; min-height: 1.1em; margin-top: 4px; opacity: 0; transform: translateY(-4px); transition: .3s; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #c0213f; animation: shake .4s; }
.field.invalid .err { opacity: 1; transform: none; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; }
.check input { width: 20px; height: 20px; accent-color: var(--berry); margin-top: 2px; flex-shrink: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label { padding: 9px 16px; border-radius: 99px; border: 2px solid #e5d7bf; cursor: pointer; font-weight: 600; font-size: .9rem; transition: .25s; margin: 0; }
.pills input:checked + label { background: var(--berry); color: var(--cream); border-color: var(--berry); }
.pills input:focus-visible + label { box-shadow: 0 0 0 4px rgba(140, 29, 71, .25); }
.range-out { font-family: var(--display); color: var(--berry); font-size: 1.3rem; }
input[type=range] { padding: 0; accent-color: var(--berry); border: 0; background: none; }
.stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.stars input { display: none; }
.stars label { font-size: 2rem; color: #e0d0b3; cursor: pointer; transition: transform .2s, color .2s; margin: 0; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: var(--mustard); }
.stars label:hover { transform: scale(1.25) rotate(-10deg); }
.form-success { position: absolute; inset: 0; background: var(--white); border-radius: 28px; display: grid; place-items: center; text-align: center; padding: 30px; opacity: 0; pointer-events: none; transition: opacity .5s; }
.form-success.show { opacity: 1; pointer-events: auto; }
.form-success svg { width: 90px; margin: 0 auto 16px; }
.form-success .tick { stroke-dasharray: 60; stroke-dashoffset: 60; }
.form-success.show .tick { animation: draw .8s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.btn.loading { pointer-events: none; opacity: .8; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

.newsletter { display: flex; gap: 10px; max-width: 480px; }
.newsletter input { flex: 1; padding: 14px 18px; border-radius: 99px; border: 0; font: 1rem var(--sans); min-width: 0; }

/* contact info list */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 16px; align-items: flex-start; }
.info-list .ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--berry); color: var(--cream); display: grid; place-items: center; font-size: 1.3rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16/10; background: var(--paper); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA band ---------- */
.cta { background: var(--berry); color: var(--cream); border-radius: 36px; padding: clamp(40px, 7vw, 80px); position: relative; overflow: hidden; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; background: var(--mustard); opacity: .18; animation: float 8s ease-in-out infinite; }
.cta::before { width: 320px; height: 320px; right: -80px; top: -120px; }
.cta::after { width: 180px; height: 180px; right: 22%; bottom: -90px; animation-delay: -3s; }
@keyframes float { 50% { transform: translate(-30px, 30px) scale(1.1); } }
.cta > * { position: relative; z-index: 1; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 80px 0 30px; margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; }
.footer h4 { font-family: var(--display); font-weight: 400; font-size: 1.2rem; margin: 0 0 16px; color: var(--sun); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; opacity: .8; transition: opacity .3s, padding .3s; }
.footer a:hover { opacity: 1; padding-left: 6px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 50px; padding-top: 24px; font-size: .82rem; opacity: .65; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ---------- Toast & back-to-top ---------- */
.toast { position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 150%); background: var(--ink); color: var(--cream); padding: 16px 24px; border-radius: 16px; box-shadow: var(--shadow); z-index: 1600; transition: transform .5s var(--ease); max-width: calc(100% - 32px); border-left: 5px solid var(--mustard); }
.toast.show { transform: translate(-50%, 0); }
.to-top { position: fixed; right: 22px; bottom: 22px; width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--mustard); cursor: pointer; z-index: 90; font-size: 1.3rem; box-shadow: var(--shadow); transform: scale(0); transition: transform .4s var(--ease); }
.to-top.show { transform: scale(1); }
.progress { position: fixed; top: 0; left: 0; height: 4px; background: linear-gradient(90deg, var(--mustard), var(--berry)); z-index: 200; width: 0; }

/* image fallback */
.img-fallback { background: linear-gradient(135deg, var(--berry), var(--mustard)) !important; min-height: 200px; }

/* cursor glow (desktop) */
.glow { position: fixed; width: 340px; height: 340px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(circle, rgba(240, 169, 46, .16), transparent 65%); transform: translate(-50%, -50%); transition: opacity .3s; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
}
@media (max-width: 860px) {
  .burger { display: block; z-index: 110; }
  .nav {
    position: fixed; inset: 0; background: var(--berry-deep); flex-direction: column; justify-content: center; gap: 12px;
    clip-path: circle(0% at calc(100% - 40px) 40px); transition: clip-path .7s var(--ease);
  }
  .nav.open { clip-path: circle(150% at calc(100% - 40px) 40px); }
  .nav a { font-family: var(--display); font-size: 1.8rem; }
  .split, .grid-2 { grid-template-columns: 1fr; }
  .hero__badge { width: 110px; height: 110px; right: 16px; bottom: 90px; }
  .scroll-hint { display: none; }
  .glow { display: none; }
  .reveal.from-left, .reveal.from-right { transform: translateY(40px); }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .form-grid, .footer__grid { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 1fr; gap: 4px; }
  .newsletter { flex-direction: column; }
  .search { max-width: none; margin-left: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
