/* ============================================================
   Sydney Zoo — components.css
   Cards, statement, olive bands, feature list, FAQ, contact, banner
   ============================================================ */

/* ---- Guiding statement ---- */
.statement { text-align: center; }
.statement .eyebrow { justify-content: center; margin-bottom: 24px; }
.statement p {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(1.4rem, 3.2vw, 2.15rem); line-height: 1.35; color: var(--ink);
  max-width: 24ch; margin-inline: auto;
}
.statement .mark {
  display: inline-grid; place-items: center; width: 1.4em; height: 1.4em;
  vertical-align: -0.35em; margin-inline: 0.15em; border-radius: 50%;
  background: var(--olive); color: #fff;
}
.statement .mark svg { width: 0.7em; height: 0.7em; }

/* ---- Full-bleed image block ---- */
.media-band img { width: 100%; height: clamp(280px, 46vw, 620px); object-fit: cover; border-radius: var(--radius-card); }

/* ---- Feature list ---- */
.feature { display: grid; gap: 10px; padding-top: 28px; border-top: 1px solid var(--line); }
.feature .num { font-family: var(--font-display); font-weight: 800; color: var(--olive); font-size: 1.1rem; }
.feature h3 { font-size: 1.25rem; }
.feature p { color: var(--muted); }

/* ---- Zoo cards ---- */
.zoo-card { display: flex; flex-direction: column; background: var(--paper); }
.zoo-card .thumb { overflow: hidden; }
.zoo-card .thumb img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-card);
  transition: transform 0.5s ease;
}
.zoo-card:hover .thumb img { transform: scale(1.04); }
.zoo-card .body { padding-top: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.zoo-card .suburb { font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--olive); }
.zoo-card h3 { font-size: 1.4rem; font-family: var(--font-display); font-weight: 700; }
.zoo-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.zoo-card .tlink { margin-top: 6px; }

/* popular animals — slider (full portraits, no crop) */
.slider-main { position: relative; }
.slider-viewport {
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slider-viewport::-webkit-scrollbar { display: none; }
.slider-track { display: flex; gap: clamp(14px, 1.6vw, 20px); }
.slider-track .animal-card {
  flex: 0 0 clamp(210px, 23vw, 282px);
  aspect-ratio: 2 / 3; scroll-snap-align: start;
}
.slider-track .animal-card img { aspect-ratio: auto; height: 100%; }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; z-index: 3;
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 24px rgba(24,24,24,0.16);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, opacity 0.2s ease;
}
.slider-arrow:hover { background: var(--olive); color: #fff; border-color: var(--olive); }
.slider-arrow:active { transform: translateY(-50%) scale(0.94); }
.slider-arrow.prev { left: -16px; }
.slider-arrow.next { right: -16px; }
.slider-arrow svg { width: 22px; height: 22px; }
.slider-arrow[disabled] { opacity: 0; pointer-events: none; }

.slider-dots { display: flex; justify-content: center; gap: 9px; margin-top: 24px; }
.slider-dots button {
  width: 8px; height: 8px; border-radius: 100px; background: var(--line);
  cursor: pointer; transition: background 0.2s ease, width 0.2s ease;
}
.slider-dots button:hover { background: var(--muted); }
.slider-dots button.active { background: var(--olive); width: 24px; }

@media (max-width: 700px) { .slider-arrow { display: none; } }

/* ---- Olive bands ---- */
.olive-band {
  background: var(--olive); color: #fff; border-radius: var(--radius-card);
  padding: clamp(32px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.olive-band::after {
  content: ""; position: absolute; inset: 0; opacity: 0.16; pointer-events: none;
  background-image: url("../assets/animal-tracks.svg");
  background-size: 168px 168px;
}
.olive-band > * { position: relative; z-index: 1; }
.olive-stats { display: grid; gap: 28px; }
.olive-stats .stat .k { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.olive-stats .stat .v { color: rgba(255,255,255,0.8); font-size: 0.95rem; }
@media (min-width: 768px) { .olive-stats { grid-template-columns: repeat(3, 1fr); } }

.cta-band { background: var(--olive); color: #fff; text-align: center; border-radius: var(--radius-card); padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 64px); position: relative; overflow: hidden; }
.cta-band::after {
  content: ""; position: absolute; inset: 0; opacity: 0.14; pointer-events: none;
  background-image: url("../assets/animal-tracks.svg"); background-size: 184px 184px;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.9rem, 4vw, 3rem); }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 46ch; margin: 16px auto 28px; }

/* ---- Animals strip ---- */
.animal-card { position: relative; overflow: hidden; border-radius: var(--radius-card); background: var(--ink); }
.animal-card img { width: 100%; aspect-ratio: 3/4; object-fit: cover; transition: transform 0.5s ease; }
.animal-card:hover img { transform: scale(1.05); }
.animal-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px;
  color: #fff; background: linear-gradient(0deg, rgba(24,24,24,0.85), transparent);
}
.animal-card figcaption .n { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.animal-card figcaption .s { font-size: 0.85rem; color: rgba(255,255,255,0.75); }

/* ---- FAQ ---- */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; text-align: left; display: flex; justify-content: space-between; gap: 20px;
  align-items: center; padding: 24px 0; font-family: var(--font-body); font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.3rem);
}
.faq-q .ico { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: transform 0.25s ease, background-color 0.2s; }
.faq-item.open .faq-q .ico { background: var(--olive); border-color: var(--olive); color: #fff; transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.faq-a > div { overflow: hidden; }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a p { color: var(--muted); padding-bottom: 24px; max-width: 68ch; }

/* ---- Contact strip ---- */
.contact-strip {
  background: var(--sand); border-radius: var(--radius-card);
  padding: clamp(28px, 4vw, 48px); display: grid; gap: 20px; align-items: center;
}
.contact-strip .eyebrow { margin-bottom: 8px; }
.contact-strip h2 { font-family: var(--font-display); font-weight: 800; }
@media (min-width: 768px) { .contact-strip { grid-template-columns: 1fr auto; } }

/* ---- Article body (zoo pages) ---- */
.article { max-width: 760px; margin-inline: auto; }
.article p { margin-bottom: 1.2em; font-size: 1.075rem; color: #2a2a2a; }
.article h2 { margin: 1.6em 0 0.5em; }
.article h3 { margin: 1.4em 0 0.4em; }
.article ul.bullets { display: grid; gap: 10px; margin: 0 0 1.4em; }
.article ul.bullets li { position: relative; padding-left: 26px; color: #2a2a2a; }
.article ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; background: var(--olive); border-radius: 50%; }

/* quick facts box */
.facts { background: var(--sand); padding: 24px; display: grid; gap: 14px; }
.facts .row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.facts .row:last-child { border-bottom: none; padding-bottom: 0; }
.facts .row dt { font-weight: 600; color: var(--olive); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; }
.facts .row dd { color: #2a2a2a; }

/* signature animals — icon-free card grid on zoo pages */
.sig-grid { display: grid; gap: clamp(22px, 3vw, 34px); }
@media (min-width: 720px) { .sig-grid { grid-template-columns: repeat(3, 1fr); } }
.sig { border-top: 2px solid var(--olive); padding-top: 18px; }
.sig h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 8px; }
.sig p { color: var(--muted); font-size: 0.97rem; }

/* sister-zoo (Dubbo) callout — smaller than main article */
.sister {
  border-left: 3px solid var(--olive); background: var(--sand);
  padding: clamp(20px, 3vw, 32px); margin-top: 40px;
}
.sister .eyebrow { margin-bottom: 10px; }
.sister h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin-bottom: 10px; }
.sister p { color: #2a2a2a; margin-bottom: 0.8em; }
.sister p:last-child { margin-bottom: 0; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--ink); color: #fff;
  padding: 16px var(--gutter) calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; gap: 16px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  border-top: 2px solid var(--olive);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; color: rgba(255,255,255,0.82); font-size: 0.92rem; max-width: 60ch; }
.cookie-banner a { color: #cfd0a8; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 18px; font-size: 0.92rem; }
.cookie-actions .btn-outline { border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }
.cookie-actions .btn-outline:hover { border-color: #fff; }

.cookie-modal { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 20px; background: rgba(0,0,0,0.5); }
.cookie-modal[hidden] { display: none; }
.cookie-modal .box { background: var(--paper); color: var(--ink); max-width: 520px; width: 100%; padding: clamp(24px,4vw,36px); border-radius: 6px; max-height: 88vh; overflow:auto; }
.cookie-modal h2 { font-family: var(--font-display); font-weight: 800; margin-bottom: 8px; }
.cookie-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cookie-row h3 { font-size: 1rem; }
.cookie-row p { color: var(--muted); font-size: 0.88rem; margin-top: 2px; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .track { position: absolute; inset: 0; background: #ccc; border-radius: 100px; transition: background 0.2s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform 0.2s; }
.switch input:checked + .track { background: var(--olive); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:disabled + .track { opacity: 0.6; }
.cookie-modal .box .btn { margin-top: 20px; }
