/* Ducktastic — shared styles
   Colours come from the Ducktastic logo (night-pond navy + duckling yellow/orange)
   and the Emberpine Camp palette (grass, ember rust). */

:root {
  --pond-900: #141d22;
  --pond-800: #1b262c; /* exact logo background */
  --pond-700: #223139;
  --pond-600: #2b3d46;
  --pond-line: #344a55;

  --cream: #f6efe2;
  --muted: #a9b7bd;
  --soft: #cdd6d9;

  --duck-300: #ffe08a;
  --duck-400: #ffc94d;
  --duck-500: #ffad3f;
  --beak: #ff8a3c;
  --ember: #e05d38;
  --grass: #7cc046;
  --water: #4fb3bf;

  --radius-lg: 22px;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);

  --font-display: "Baloo 2", "Nunito", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pond-800);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--duck-400); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--duck-300); }
:focus-visible { outline: 3px solid var(--duck-400); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 104px) 0; position: relative; }
.section--raised { background: var(--pond-700); }
.section--deep { background: var(--pond-900); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display); font-weight: 700; font-size: .95rem;
  color: var(--duck-400); text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .6em;
}
.eyebrow svg { width: 18px; height: 18px; }
.lead { font-size: 1.15rem; color: var(--soft); max-width: 62ch; }
.muted { color: var(--muted); }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(27, 38, 44, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pond-line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; gap: clamp(6px, 2vw, 22px); flex-wrap: wrap; }
.nav a {
  color: var(--soft); text-decoration: none; font-weight: 700;
  padding: 6px 10px; border-radius: 999px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--pond-900); background: var(--duck-400); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem;
  padding: 13px 24px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--duck { background: linear-gradient(180deg, var(--duck-400), var(--duck-500)); color: var(--pond-900); box-shadow: 0 6px 0 #c9771f; }
.btn--duck:hover { color: var(--pond-900); }
.btn--ghost { border-color: var(--pond-line); color: var(--cream); background: rgba(255,255,255,0.03); }
.btn--ghost:hover { border-color: var(--duck-400); color: var(--duck-300); }
.btn[aria-disabled="true"] { background: var(--pond-600); color: var(--muted); box-shadow: none; cursor: default; transform: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 18px 0 0; list-style: none; }
.chip {
  font-size: .9rem; font-weight: 700; color: var(--cream);
  background: var(--pond-600); border: 1px solid var(--pond-line);
  padding: 5px 13px; border-radius: 999px;
}
.chip--duck { background: rgba(255, 201, 77, 0.14); border-color: rgba(255, 201, 77, 0.45); color: var(--duck-300); }

/* ---------- home hero ---------- */
.hero {
  position: relative; text-align: center; overflow: hidden;
  padding: clamp(48px, 8vw, 96px) 0 0;
  background: var(--pond-800); /* flat, so the logo's own background blends in */

}
.hero-logo { width: min(640px, 92%); margin: 0 auto; }
.hero .lead { margin: 10px auto 0; }
.hero .btn-row { justify-content: center; }
.pond {
  position: relative; height: 150px; margin-top: 40px;
}
.pond svg.waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 100px; }
.duck {
  position: absolute; left: 50%; bottom: 44px; width: 92px; height: auto; aspect-ratio: 6 / 5; margin-left: -46px;
  animation: bob 3.2s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.duck--small { width: 54px; margin-left: 0; bottom: 42px; animation-delay: -1.1s; }
.duck--small.d1 { left: 30%; }
.duck--small.d2 { left: 66%; animation-delay: -2s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-7px) rotate(3deg); }
}

/* footprints trail */
.trail { display: flex; gap: 22px; justify-content: center; margin: 0 auto; opacity: .55; }
.trail svg { width: 22px; height: 22px; fill: var(--duck-500); }
.trail svg:nth-child(odd) { transform: translateY(8px) rotate(-12deg); }
.trail svg:nth-child(even) { transform: rotate(12deg); }

/* ---------- featured pack ---------- */
.feature {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(22px, 4vw, 48px); align-items: center;
}
.feature-media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  border: 3px solid var(--pond-line); position: relative;
}
.feature-media .badge { position: absolute; top: 14px; left: 14px; }
.badge {
  font-family: var(--font-display); font-weight: 800; font-size: .9rem;
  background: var(--duck-400); color: var(--pond-900);
  padding: 4px 12px; border-radius: 999px; box-shadow: 0 3px 0 #c9771f;
}

/* ---------- pack cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 22px; }
.card {
  background: var(--pond-700); border: 1px solid var(--pond-line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s ease, border-color .18s ease;
}
a.card { color: inherit; text-decoration: none; }
a.card:hover { transform: translateY(-4px); border-color: var(--duck-400); color: inherit; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--pond-600); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body p { color: var(--muted); margin: 0; }
.card-foot { margin-top: auto; padding-top: 12px; font-weight: 800; color: var(--duck-400); }
.card--egg { border-style: dashed; background: transparent; }
.egg-art { aspect-ratio: 16 / 10; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--pond-800) 0 14px, #1e2a31 14px 28px); }
.egg-art svg { width: 78px; height: 96px; animation: wobble 2.8s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes wobble {
  0%, 70%, 100% { transform: rotate(0); }
  76% { transform: rotate(-8deg); }
  82% { transform: rotate(7deg); }
  88% { transform: rotate(-4deg); }
}

/* ---------- value grid ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.value {
  background: var(--pond-800); border: 1px solid var(--pond-line); border-radius: var(--radius);
  padding: 22px;
}
.value .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 201, 77, 0.14); margin-bottom: 12px;
}
.value .icon svg { width: 26px; height: 26px; stroke: var(--duck-400); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.value p { color: var(--muted); margin: 0; }

/* ---------- pack page hero ---------- */
.pack-hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; }
.pack-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pack-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 29, 34, 0.05) 30%, rgba(20, 29, 34, 0.75) 68%, var(--pond-800) 100%);
}
.pack-hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(32px, 6vw, 64px); padding-top: 120px; }
.pack-hero h1 { text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45); margin-bottom: .15em; }
.pack-hero .lead { color: var(--cream); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6); }

/* stats strip */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.stat {
  background: var(--pond-700); border: 1px solid var(--pond-line); border-radius: var(--radius);
  padding: 18px 18px 16px; text-align: center;
}
.stat b { display: block; font-family: var(--font-display); font-size: 2.1rem; line-height: 1; color: var(--duck-400); }
.stat span { font-size: .92rem; color: var(--muted); font-weight: 700; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery button {
  padding: 0; border: 0; background: var(--pond-600); border-radius: var(--radius); overflow: hidden;
  cursor: zoom-in; position: relative; grid-column: span 2;
}
.gallery button.wide { grid-column: span 3; }
.gallery button.full { grid-column: span 6; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption {
  position: absolute; left: 10px; bottom: 10px; font-size: .82rem; font-weight: 800;
  background: rgba(20, 29, 34, 0.82); color: var(--cream); padding: 3px 10px; border-radius: 999px;
}

/* lightbox */
dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: min(1400px, 96vw); width: 100%; max-height: 96vh; overflow: hidden;
}
dialog.lightbox::backdrop { background: rgba(10, 15, 18, 0.9); }
dialog.lightbox img { width: auto; max-width: 100%; max-height: 84vh; margin: 0 auto; border-radius: var(--radius); }
dialog.lightbox p { text-align: center; color: var(--soft); margin: 10px 0 0; font-weight: 700; }
dialog.lightbox .close {
  position: absolute; top: 10px; right: 10px; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: var(--duck-400); color: var(--pond-900); font-size: 1.5rem; font-weight: 800; cursor: pointer;
}

/* model table */
.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--pond-line); }
table.models { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .96rem; }
table.models th, table.models td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--pond-line); vertical-align: top; }
table.models thead th { background: var(--pond-600); font-family: var(--font-display); font-size: 1rem; color: var(--duck-300); }
table.models tbody tr:nth-child(even) td { background: rgba(255, 255, 255, 0.02); }
table.models td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
table.models tr.group th {
  background: var(--pond-800); color: var(--cream); font-family: var(--font-display); font-size: 1.05rem;
}
table.models tr.group th span { color: var(--muted); font-family: var(--font-body); font-weight: 600; font-size: .9rem; margin-left: 6px; }
.model-name { font-weight: 800; }
.model-role { display: block; color: var(--muted); font-size: .9rem; }

/* spec list */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.spec { background: var(--pond-800); border: 1px solid var(--pond-line); border-radius: var(--radius); padding: 22px 24px; }
.spec ul { margin: 0; padding-left: 1.1em; color: var(--soft); }
.spec li { margin-bottom: .35em; }
.spec li::marker { color: var(--duck-400); }
.spec--note { border-color: rgba(224, 93, 56, 0.5); }
.spec--note h3 { color: #ff9c7d; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 48px); align-items: center; }
.split img { border-radius: var(--radius-lg); border: 3px solid var(--pond-line); box-shadow: var(--shadow); }

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 3px dotted var(--duck-500); }
.timeline li { padding: 0 0 22px 24px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: -10px; top: 6px; width: 17px; height: 17px;
  background: var(--duck-400); border-radius: 50%; border: 3px solid var(--pond-800);
}
.timeline b { font-family: var(--font-display); font-size: 1.15rem; }
.timeline .muted { display: block; font-size: .9rem; }

/* faq */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { background: var(--pond-700); border: 1px solid var(--pond-line); border-radius: var(--radius); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--duck-400); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--soft); }

/* contact box */
.contact {
  background: linear-gradient(135deg, rgba(255, 201, 77, 0.14), rgba(255, 138, 60, 0.08));
  border: 2px solid rgba(255, 201, 77, 0.4); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
}
.contact .duck-static { width: 96px; height: auto; aspect-ratio: 6 / 5; }
.contact h2 { margin-bottom: .2em; }
.contact .email { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; word-break: break-word; }

/* wave divider */
.wave { display: block; width: 100%; height: 48px; }

/* footer */
.site-footer { background: var(--pond-900); padding: 44px 0 34px; border-top: 1px solid var(--pond-line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.site-footer img { height: 38px; width: auto; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a { color: var(--soft); text-decoration: none; font-weight: 700; }
.site-footer nav a:hover { color: var(--duck-400); }
.site-footer small { color: var(--muted); display: block; width: 100%; font-size: .85rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .feature, .split { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery button, .gallery button.wide { grid-column: span 1; }
  .gallery button.full { grid-column: span 2; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand img { height: 36px; }
  .site-header .wrap { justify-content: center; padding-top: 8px; padding-bottom: 8px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery button, .gallery button.wide, .gallery button.full { grid-column: span 1; }
  .contact { grid-template-columns: 1fr; text-align: center; }
  .contact .duck-static { margin: 0 auto; }
  .duck--small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
