/* Depth & motion layer for index-circular.html */
body { overflow-x: clip; }

/* Glass sticky nav (main.js toggles .scrolled on #navbar) */
#navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 244, 241, 0.72) !important;
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  transition: box-shadow 0.3s ease;
}
#navbar.scrolled { box-shadow: 0 10px 30px -18px rgba(14, 26, 20, 0.45); }

/* Buttons lift */
.btn { transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease; will-change: transform; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 24px -12px rgba(14, 26, 20, 0.5); filter: saturate(1.08); }
.btn:active { transform: translateY(0) scale(0.98); box-shadow: none; }

/* Hand-made bits: handwriting, marker underline, margin notes */
.hand { font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive; font-weight: 700; letter-spacing: 0; }
.scribble {
  white-space: nowrap;
  padding-bottom: 0.08em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M4 16c40-9 92-12 148-8 50 3 96 5 144-4M18 20c60-6 140-8 262-6' fill='none' stroke='%23FF5C00' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% 0.32em no-repeat;
}
.hero { position: relative; }
.hero-note {
  position: absolute;
  z-index: 2;
  left: 300px;
  bottom: 150px;
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  color: #0E1A14;
  rotate: -4deg;
}
.hero-note svg { display: block; margin: 4px 0 0 -30px; }
@media (max-width: 760px) { .hero-note { display: none; } }

/* Note from the team: a slightly crooked card with a taped-on photo */
.team-note {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  padding: 40px;
  background: #FFFDF6;
  border: 1px solid #E6E0CF;
  border-radius: 6px;
  box-shadow: 0 2px 0 #E6E0CF, 0 24px 40px -30px rgba(14, 26, 20, 0.4);
  rotate: -0.6deg;
}
/* Polaroid-style team photo */
.photo-slot {
  position: relative;
  flex: 0 0 260px;
  height: 260px;
  margin: 0;
  background: #E6ECE7;
  border: 10px solid #fff;
  border-bottom-width: 44px;
  box-shadow: 0 12px 24px -14px rgba(14, 26, 20, 0.5);
  rotate: 3deg;
}
.photo-slot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.photo-slot figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -40px;
  text-align: center;
  font-size: 24px;
  color: #33443B;
}
.photo-slot::before,
.pin:has(img)::before,
.pin:has(.pin-art)::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -14px;
  left: 50%;
  width: 90px;
  height: 26px;
  translate: -50% 0;
  rotate: -4deg;
  background: rgba(255, 233, 160, 0.78);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
@media (max-width: 760px) {
  .team-note { padding: 28px 22px; rotate: 0deg; }
  .photo-slot { flex-basis: 100%; height: auto; aspect-ratio: 1; max-width: 340px; margin-inline: auto; }
}

/* 3D hero stage */
.hero-visual { position: relative; height: 620px; }
.scene { position: absolute; inset: -40px -40px 0 -40px; }
.scene canvas { display: block; width: 100%; height: 100%; }
.scene-fallback { position: absolute; inset: 0; margin: auto; width: 60%; height: auto; }
.scene.is-3d .scene-fallback { display: none; }
.passport.tilt {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 320px;
  box-sizing: border-box;
  padding: 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 40px 70px -35px rgba(14, 26, 20, 0.55), inset 0 1px 0 #fff;
}
@media (max-width: 760px) {
  .hero-visual { height: auto; }
  .scene { position: relative; inset: auto; height: 380px; margin-inline: -24px; }
  .passport.tilt { position: relative; width: auto; margin-top: -48px; }
}

/* Tilt cards with cursor glare */
.tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.2s ease-out, box-shadow 0.3s ease;
}
.tilt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.28), transparent 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.tilt:hover::after { opacity: 1; }
.tilt:hover { box-shadow: 0 34px 60px -30px rgba(14, 26, 20, 0.45); }

/* Scroll reveal (uses `translate` so it never fights the tilt's `transform`) */
.reveal {
  opacity: 0;
  translate: 0 28px;
  transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms),
    translate 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) var(--delay, 0ms),
    transform 0.2s ease-out, box-shadow 0.3s ease;
}
.reveal.in { opacity: 1; translate: 0 0; }

/* Loop arrows nudge forward */
.loop-arrow { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(6px); color: #1E5B3E; } }

/* Impact numbers glow */
[data-count] { text-shadow: 0 0 28px rgba(200, 241, 105, 0.35); font-variant-numeric: tabular-nums; }

/* ---------- Pin wall: tilted 3D masonry board ---------- */
.pinwall { padding-block: 96px 40px; overflow: hidden; }
.pin-stage {
  position: relative;
  height: 760px;
  margin-top: 40px;
  perspective: 1800px;
  perspective-origin: 50% 20%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 80%, transparent);
}
.pin-plane {
  position: absolute;
  top: -120px;
  left: 50%;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transform-style: preserve-3d;
  transform: translateX(-50%) rotateX(var(--rx, 26deg)) rotateY(var(--ry, 0deg)) rotateZ(-9deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pin-col {
  width: 250px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transform-style: preserve-3d;
  animation: pin-drift var(--dur, 60s) linear infinite;
}
.pin-col:nth-child(even) { animation-direction: reverse; }
.pin-col:nth-child(1) { --dur: 58s; }
.pin-col:nth-child(2) { --dur: 70s; margin-top: -90px; }
.pin-col:nth-child(3) { --dur: 52s; }
.pin-col:nth-child(4) { --dur: 66s; margin-top: -60px; }
.pin-col:nth-child(5) { --dur: 62s; }
.pin-plane:hover .pin-col { animation-play-state: paused; }
/* circular.js duplicates each column's pins, so -50% loops seamlessly */
@keyframes pin-drift { to { transform: translateY(calc(-50% - 10px)); } }

.pin {
  position: relative;
  display: block;
  text-decoration: none;
  color: #0E1A14;
  transform: translateZ(0);
  rotate: var(--r, 0deg);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), rotate 0.35s ease;
}
/* Pinned up by hand, so nothing sits perfectly straight */
.pin:nth-child(3n + 1) { --r: -1.4deg; }
.pin:nth-child(3n + 2) { --r: 0.9deg; }
.pin:nth-child(3n) { --r: -0.4deg; }
.pin:hover, .pin:focus-visible { rotate: 0deg; }
.pin-media {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(14, 26, 20, 0.08), 0 18px 30px -22px rgba(14, 26, 20, 0.45);
  transition: box-shadow 0.35s ease;
}
.pin-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pin-media img.contain { object-fit: contain; padding: 18px; box-sizing: border-box; }
/* Drawn item pins (AC, cooler, car…): illustration centred in the card */
.pin-art { display: flex; align-items: center; justify-content: center; }
.pin-art svg {
  width: 78%;
  max-height: 78%;
  overflow: visible;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pin:hover .pin-art svg { transform: scale(1.06) rotate(-2deg); }
.pin-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 26, 20, 0.32);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pin-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 24px;
  box-sizing: border-box;
}
.pin-big { font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 52px; font-weight: 800; line-height: 1.02; letter-spacing: -0.02em; }
.pin-quote-mark { font-family: 'Bricolage Grotesque', Georgia, serif; font-size: 72px; line-height: 0.6; color: #C8F169; }
.pin-quote { font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif; font-size: 22px; font-weight: 700; line-height: 1.25; }
.pin-by { font-size: 13px; font-weight: 600; opacity: 0.85; }
.pin-steps { display: flex; flex-direction: column; gap: 8px; font-weight: 700; font-size: 17px; }
.pin-steps span { padding: 8px 14px; border-radius: 12px; background: #F2F4F1; width: fit-content; }
.pin-steps span.on { background: #1E5B3E; color: #fff; }
.pin-title { display: block; margin: 10px 4px 0; font-weight: 700; font-size: 15px; }
.pin-sub { display: block; margin: 2px 4px 0; font-size: 13px; color: #4A5A51; }

/* Pinterest-style hover: pin pops toward you, image zooms, Save pill + chip appear */
.pin-save, .pin-chip {
  position: absolute;
  z-index: 2;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  font-weight: 700;
  border-radius: 999px;
}
.pin-save { top: 12px; right: 12px; padding: 10px 16px; font-size: 14px; background: #FF5C00; color: #0E1A14; }
.pin-chip { top: 16px; left: 12px; padding: 6px 12px; font-size: 12px; background: rgba(255, 255, 255, 0.92); color: #0E1A14; }
.pin:hover, .pin:focus-visible { transform: translateZ(70px) scale(1.03); z-index: 3; }
.pin:hover .pin-media, .pin:focus-visible .pin-media { box-shadow: 0 2px 4px rgba(14, 26, 20, 0.1), 0 40px 60px -28px rgba(14, 26, 20, 0.6); }
.pin:hover .pin-media::after, .pin:focus-visible .pin-media::after { opacity: 1; }
.pin:hover img { transform: scale(1.06); }
.pin:hover .pin-save, .pin:hover .pin-chip,
.pin:focus-visible .pin-save, .pin:focus-visible .pin-chip { opacity: 1; transform: none; }
.pin:focus-visible { outline: 3px solid #FF5C00; outline-offset: 4px; border-radius: 20px; }

@media (max-width: 760px) {
  .pin-stage { height: 560px; perspective: 1200px; }
  .pin-plane { --rx: 20deg; top: -80px; gap: 14px; }
  .pin-col { width: 190px; gap: 14px; }
  .pin-big { font-size: 40px; }
  .pin-quote { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .loop-arrow { animation: none; }
  .btn, .tilt { transition: none; }
  .pin-col { animation: none; }
  .pin, .pin-media img, .pin-plane { transition: none; }
}

/* ---------- Reviews (cards rendered by js/main.js renderReviewCard) ---------- */
.testi-scroll-wrap {
  overflow: hidden;
  margin-top: 40px;
  padding-block: 16px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
/* main.js renders the reviews twice, so -50% loops seamlessly */
.testi-track { display: flex; gap: 18px; width: max-content; animation: testi-scroll 70s linear infinite; }
.testi-scroll-wrap:hover .testi-track { animation-play-state: paused; }
@keyframes testi-scroll { to { transform: translateX(calc(-50% - 9px)); } }
.testi-card {
  width: 320px;
  box-sizing: border-box;
  padding: 24px;
  background: #FFFFFF;
  border: 1px solid #D9E0DA;
  border-radius: 20px;
  box-shadow: 0 18px 30px -26px rgba(14, 26, 20, 0.45);
  display: flex;
  flex-direction: column;
}
.testi-card:nth-child(odd) { rotate: -0.8deg; }
.testi-card:nth-child(even) { rotate: 0.6deg; }
.testi-stars { color: #FF5C00; letter-spacing: 2px; font-size: 18px; }
.testi-card p { margin: 12px 0 18px; font-size: 16px; color: #23302A; flex-grow: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 40px; height: 40px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.testi-author strong { display: block; font-size: 15px; }
.testi-author small { display: block; font-size: 13px; color: #4A5A51; }

/* ---------- Review modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(14, 26, 20, 0.55);
}
.modal-overlay.open { display: flex; }
.modal-box {
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  box-sizing: border-box;
  padding: 28px;
  background: #FFFDF6;
  border-radius: 20px;
  box-shadow: 0 40px 80px -30px rgba(14, 26, 20, 0.6);
}
.modal-header { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.modal-header h3 { margin: 0; font-size: 26px; }
.modal-header p { margin: 4px 0 0; color: #4A5A51; }
.modal-close { min-width: 44px; min-height: 44px; border: 0; border-radius: 50%; background: #E6ECE7; font-size: 18px; cursor: pointer; }
.form-row { display: flex; flex-wrap: wrap; gap: 12px; }
.form-group { flex: 1 1 200px; display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.form-group label, .form-group .label { font-size: 14px; font-weight: 700; }
.form-group input, .form-group textarea {
  font: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid #9DB0A3;
  border-radius: 12px;
  background: #FFFFFF;
  color: #0E1A14;
}
.form-group input:focus, .form-group textarea:focus, .modal-close:focus-visible, .star-picker button:focus-visible { outline: 3px solid #FF5C00; outline-offset: 2px; }
.star-picker { display: flex; gap: 4px; }
.star-picker button { min-width: 44px; min-height: 44px; border: 0; background: none; font-size: 30px; color: #C3CEC6; cursor: pointer; }
.star-picker button.active { color: #FF5C00; }
.modal-submit { width: 100%; margin-top: 22px; border: 0; cursor: pointer; background: #FF5C00; color: #0E1A14; font-family: inherit; min-height: 52px; font-size: 16px; }
.modal-msg { margin-top: 12px; font-size: 14px; min-height: 20px; }
.modal-msg.success { color: #1E5B3E; }
.modal-msg.error { color: #B42318; }

/* ---------- FAQ ---------- */
.faq-item { background: #FFFFFF; border: 1px solid #D9E0DA; border-radius: 16px; margin-bottom: 10px; }
.faq-q {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 17px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q:focus-visible { outline: 3px solid #FF5C00; outline-offset: 2px; border-radius: 16px; }
.faq-arrow { flex-shrink: 0; width: 22px; height: 22px; color: #1E5B3E; transition: rotate 0.25s ease; }
.faq-arrow svg { width: 100%; height: 100%; }
.faq-item[open] .faq-arrow { rotate: 180deg; }
.faq-a { padding: 0 22px 20px; color: #3D4D44; font-size: 16px; }

/* ---------- WhatsApp button ---------- */
.whatsapp-btn {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #25D366;
  color: #FFFFFF;
  box-shadow: 0 14px 28px -12px rgba(14, 26, 20, 0.55);
  transition: transform 0.18s ease;
}
.whatsapp-btn:hover { color: #FFFFFF; transform: translateY(-2px) scale(1.04); }

@media (prefers-reduced-motion: reduce) {
  .testi-track { animation: none; }
  .testi-scroll-wrap { overflow-x: auto; }
}

/* ---------- Footer ---------- */
.site-footer { background: #0E1A14; color: #B8C6BD; font-size: 15px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.site-footer a { color: #E7EEE9; text-decoration: none; }
.site-footer a:hover { color: #C8F169; }
.footer-top { display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; padding-block: 64px 40px; }
.footer-brand { flex: 1 1 300px; max-width: 380px; }
.footer-brand p { margin: 12px 0 0; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 6px 16px;
  border: 1px solid #2A3A31;
  border-radius: 14px;
  background: #15241C;
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.store-badge:hover { transform: translateY(-2px); border-color: #C8F169; }
.store-badge small { display: block; font-size: 11px; color: #9DB0A3; }
.store-badge strong { display: block; font-size: 15px; line-height: 1.2; }
.footer-links { display: flex; flex-wrap: wrap; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.footer-col h3 { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.04em; color: #9DB0A3; font-weight: 700; }
.footer-col a { min-height: 32px; display: flex; align-items: center; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  padding-block: 24px 96px;
  border-top: 1px solid #2A3A31;
  font-size: 14px;
}
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #15241C;
  border: 1px solid #2A3A31;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.social-links a:hover { transform: translateY(-2px); background: #FF5C00; color: #0E1A14; border-color: #FF5C00; }
.site-footer a:focus-visible { outline: 3px solid #FF5C00; outline-offset: 3px; }
