/* ===== Local fonts ===== */
@font-face {
  font-family: 'ThirdRail';
  src: url('Third-Rail-copy.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

/* ===== Design tokens ===== */
:root {
  --green-dark: #49284D;
  --green: #2f7a3e;
  --green-bright: #4caf2e;
  --green-lime: #6dd13f;
  --red: #d83a2f;
  --yellow: #f2b91c;
  --pink: #f48fb1;
  --cream: #f4f1ea;
  --ink: #1a1a1a;
  --white: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  text-transform: capitalize;
  overflow-x: hidden;
}
/* Exempt elements that should NOT be auto-capitalized */
input, textarea, select,
input::placeholder, textarea::placeholder,
.eyebrow, .marquee-track span,
.footer-bottom p,
.unit-price span,
.loc-card li { text-transform: none; }

/* ===== Content capped at 1440px, color bands stay full-width =====
   Each section spans the full viewport (so its background color fills
   edge-to-edge), but horizontal padding grows on wide screens to keep
   the actual content centered within a 1440px column. */
.nav,
.hero,
.colors,
.mission {
  --gutter: max(40px, (100% - 1440px) / 2);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

h1, h2, h3 {
  font-family: 'Stack', Georgia, serif;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.green { color: var(--green-bright); }

/* ===== Announcement bar ===== */
.announce {
  background: var(--green-dark);
  color: var(--white);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 7px;
}

/* ===== Nav ===== */
.nav {
  background: transparent;
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  padding-top: 18px;
  padding-bottom: 18px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
.nav.scrolled {
  background: transparent;
}
.nav-links { display: flex; gap: 26px; align-items: center; padding-bottom: 40px; }
.nav-links a {
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  opacity: 0.92;
  transition: opacity 0.2s;
}
.nav-links a:hover { opacity: 1; text-decoration: underline; }
.logo {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  background: #49284d;
  position: relative;
  width: 180px;
  height: 180px;
  margin-top: -40px;
  align-self: flex-start;
  clip-path: url(#logoClip);
}
.logo-img {
  height: 80px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
}
.nav-icons { display: flex; gap: 16px; justify-content: flex-end; align-items: center; padding-right: 24px; padding-bottom: 40px; }
.pkns-logo {
  height: 30px;
  width: auto;
  display: block;
}
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s;
}
.whatsapp-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  border-radius: 999px;
  padding: 14px 34px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: var(--cream); color: var(--green-dark); }
.btn-green { background: var(--green); color: var(--white); }

/* ===== Hero ===== */
.hero {
  background: url('herobackground.png') center/cover no-repeat var(--green-dark);
  color: var(--white);
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 24px;
  align-items: center;
  min-height: 100vh;
  padding-top: 50px;
  padding-bottom: 50px;
  overflow-x: hidden;
}
/* Dark gradient overlay — left side darker for text legibility */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.6) 0%,
    rgba(0,0,0,0.3) 50%,
    rgba(0,0,0,0.0) 100%
  );
  z-index: 0;
}
.hero > * { position: relative; z-index: 1; }
.hero-text h1 {
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 26px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}
.hero-text p {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.6;
  opacity: 1;
  margin-bottom: 28px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.5);
  color: #fff;
}
.scribble { position: relative; }
.scribble::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: 4px;
  height: 3px;
  background: var(--green);
  opacity: 0.9;
  z-index: -1;
  border-radius: 4px;
}
.annot {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  font-style: italic;
  color: var(--green-lime);
  letter-spacing: 0;
  display: inline-block;
  transform: rotate(-6deg);
  vertical-align: middle;
  line-height: 1.2;
  margin: 0 6px;
}
.annot.dark { color: var(--green); }

/* Hero collage */
.hero-collage {
  position: relative;
  min-height: 660px;
}
.photo {
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 16px 40px rgba(0,0,0,0.3);
}
.photo-leash {
  position: absolute;
  top: 0; left: 0;
  width: 400px; height: 620px;
  background: url('hero1image.png') center/cover no-repeat;
  transform: rotate(-3deg);
  z-index: 2;
}
.photo-dog {
  position: absolute;
  top: 180px; left: 40%;
  width: 380px; height: 440px;
  background: url('hero1image.png.png') center/cover no-repeat;
  transform: rotate(4deg);
  z-index: 1;
}
.small-card {
  position: absolute;
  bottom: 40px; left: 58%;
  z-index: 3;
}

/* mini card */
.card {
  width: 130px;
  border-radius: 14px;
  padding: 16px 14px;
  color: var(--white);
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
  transform: rotate(6deg);
}
.card-red { background: var(--red); }
.card-label { font-family: 'Stack', serif; font-weight: 700; font-size: 16px; display: block; }
.card-sub { font-size: 10px; opacity: 0.7; }

/* ===== Colors section ===== */
.colors {
  background: var(--cream);
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 40px;
  position: relative;
}
.colors-head h2,
.colors-foot h3 {
  font-size: clamp(34px, 5vw, 56px);
}
.colors-head { text-align: left; margin: 0 0 10px; }

/* Holds the centered card cluster; the heading floats to the right
   (absolutely positioned) so it does NOT push the cards off-center. */
.colors-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.colors-foot {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  text-align: left;
  max-width: 320px;
}

.pill {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--white);
  padding: 5px 12px;
  border-radius: 999px;
  transform: rotate(-5deg);
  letter-spacing: 0;
  line-height: 1.1;
  vertical-align: middle;
}
.pill-red { background: var(--red); }

/* badges */
.badges {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  margin: 16px 0 0;
}
.badge {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green-dark);
}
.badge span { writing-mode: horizontal-tb; }
.badge .icon { width: 28px; height: 28px; flex-shrink: 0; }

/* tag cards */
.tags {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: -10px;
  margin: 0 0 60px;
  min-height: 460px;
}
.tag {
  width: 240px;
  height: 440px;
  border-radius: 28px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 36px 20px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.22);
  text-align: center;
}
.tag-brand { font-family: 'Stack', serif; font-weight: 700; font-size: 18px; }
.tag-icon { margin: 24px 0; }
.tag-icon svg { width: 72px; height: 72px; }
.tag-title { font-family: Georgia, 'Times New Roman', serif; font-weight: 900; font-size: 30px; line-height: 1; }
.tag-red { background: var(--red); transform: rotate(-10deg) translateX(40px); transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease; }
.tag-yellow { background: var(--yellow); transform: scale(1.12); z-index: 3; position: relative; transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease; }
.tag-green { background: var(--green-bright); transform: rotate(10deg) translateX(-40px); transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease; }

.tag-red:hover    { transform: rotate(-10deg) translateX(40px) translateY(-18px) scale(1.05); box-shadow: 0 32px 60px rgba(0,0,0,0.32); }
.tag-yellow:hover { transform: scale(1.2) translateY(-18px); box-shadow: 0 32px 60px rgba(0,0,0,0.32); }
.tag-green:hover  { transform: rotate(10deg) translateX(-40px) translateY(-18px) scale(1.05); box-shadow: 0 32px 60px rgba(0,0,0,0.32); }

.colors .btn,
.colors .sparkle-btn { margin-top: 20px; align-self: center; }

/* ===== Mission ===== */
.mission {
  background: var(--white);
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 80px;
  align-items: center;
  min-height: 100vh;
  padding-top: 50px;
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
}
.mission::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -20%;
  width: 160%;
  height: 160%;
  transform: translateY(-50%);
  background: url('pattern-background.svg') right center/contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
.mission > * { position: relative; z-index: 1; }
.mission-collage { position: relative; min-height: 660px; }
.photo-mission-1 {
  position: absolute;
  top: 0; left: 0;
  width: 400px; height: 620px;
  background: url('images3.1.png') center/cover no-repeat;
  transform: rotate(-3deg);
  z-index: 1;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}
.photo-mission-2 {
  position: absolute;
  bottom: 0; left: 40%;
  width: 380px; height: 440px;
  background: url('images3.2.png') center/cover no-repeat;
  transform: rotate(4deg);
  z-index: 2;
  box-shadow: 0 16px 40px rgba(0,0,0,0.22);
}
.bubble {
  position: absolute;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.bubble-green { background: var(--green-lime); top: -14px; right: -20px; }
.bubble-pink { background: var(--pink); bottom: 20px; left: -40px; }

.mission-text { max-width: 560px; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--green);
}
.mission-text h2 {
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin: 16px 0 24px;
}
.yellow-hi {
  display: inline;
  background: var(--yellow);
  padding: 2px 10px 4px;
  border-radius: 6px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.mission-text p {
  font-size: 14px;
  line-height: 1.7;
  color: #444;
  margin-bottom: 24px;
}
.link-underline {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--green-bright);
  padding-bottom: 3px;
}

/* ===== Locations slider (scroll-driven, pinned) ===== */
.locations {
  background: var(--cream);
  height: 140vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 0;
  overflow: hidden;
}
.locations-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  padding: 0 24px;
  flex-shrink: 0;
}
.locations-head h2 {
  font-size: clamp(48px, 6.5vw, 80px);
  margin: 14px 0 18px;
}
.locations-head p {
  font-size: 18px;
  line-height: 1.7;
  color: #444;
}

.slider {
  width: 100%;
  overflow: visible;
}
.slide-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 10px max(40px, (100% - 1440px) / 2);
  will-change: transform;
}

.loc-card {
  flex: 0 0 340px;
  width: 340px;
  min-height: 520px;
  border-radius: 26px;
  padding: 40px 30px;
  color: var(--white);
  box-shadow: 0 18px 40px rgba(0,0,0,0.16);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.loc-green  { background: var(--green-bright); }
.loc-red    { background: var(--red); }
.loc-yellow { background: var(--yellow); color: var(--ink); }
.loc-dark   { background: var(--green-dark); }

.loc-icon svg { width: 48px; height: 48px; }
.loc-card h3 {
  font-family: 'Stack', serif;
  font-weight: 900;
  font-size: 42px;
  line-height: 1;
  margin: 10px 0 12px;
}
.loc-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.loc-card li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.22);
}
.loc-yellow li { border-bottom-color: rgba(0,0,0,0.12); }
.loc-card li:last-child { border-bottom: none; padding-bottom: 0; }
.loc-card li span {
  flex-shrink: 0;
  font-weight: 700;
  font-size: 13px;
  opacity: 0.85;
}

/* ===== Unit type tabs ===== */
.units {
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 60px 24px;
}
.units-head { max-width: 640px; margin-bottom: 40px; }
.units-head h2 { font-size: clamp(34px, 5vw, 56px); margin: 14px 0 18px; }
.units-head p { font-size: 15px; line-height: 1.7; color: #444; }

.unit-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
}
.unit-tab {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--green-dark);
  background: #fff;
  border: 2px solid rgba(31,77,46,0.18);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.unit-tab:hover { transform: translateY(-2px); border-color: var(--green); }
.unit-tab.is-active {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}

/* Coloured code circle inside each tab */
.unit-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.unit-code--a { background: var(--green-bright); }
.unit-code--b { background: var(--yellow); color: var(--green-dark); }
.unit-code--c { background: var(--red); }
.unit-code--d { background: var(--green-dark); }
.unit-tab.is-active .unit-code--d { background: #fff; color: var(--green-dark); }

.unit-panel { width: 100%; max-width: 520px; }
.unit-card {
  background: #fff;
  border-radius: 28px;
  padding: 48px 40px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.10);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.unit-card[hidden] { display: none; }
.unit-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--green-dark);
  background: rgba(76, 175, 46, 0.12);
  border: 2px solid rgba(31, 77, 46, 0.18);
  padding: 12px 24px;
  border-radius: 999px;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.unit-cta svg { width: 18px; height: 18px; }
.unit-cta:hover {
  transform: translateY(-2px);
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}
.unit-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-dark);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
}
.unit-badge .unit-code { width: 34px; height: 34px; }
.unit-badge .unit-code--d { background: #fff; color: var(--green-dark); }
.unit-size {
  font-family: 'Stack', serif;
  font-size: 22px;
  color: var(--green-dark);
}
.unit-size strong { font-size: 48px; display: block; line-height: 1; margin-bottom: 4px; }
.unit-price {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'DM Sans', sans-serif;
}
.unit-price span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
}
.unit-price strong {
  font-family: 'Stack', serif;
  font-weight: 900;
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--green-dark);
}

.units .btn,
.units .sparkle-btn { margin-top: 40px; align-self: center; }

/* fun pop on tab switch */
@keyframes unit-pop {
  0%   { transform: scale(0.96); opacity: 0; }
  60%  { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1); }
}
.unit-card.pop { animation: unit-pop 0.32s ease; }

/* ===== Sparkle CTA button =====
   Animated sparkles + glare sweep on hover. Adapted from an Open Props
   demo to plain CSS using this site's palette. */
.sparkle-btn {
  --font-size: 22px;            /* text size driver */
  --glare: hsl(0 0% 100% / 0.8);
  --hover: 0.4;                 /* idle lift amount */
  --pos: 0;                     /* glare sweep position */
  --pad: 14px 34px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad);
  border: 2px solid var(--color);
  border-radius: 999px;
  text-decoration: none;
  color: transparent;
  align-self: flex-start;       /* align with surrounding content */
  transition: background 0.2s, border-color 0.2s;
}
/* Dark-text variant on light (cream) backgrounds */
.sparkle-dark  { --color: var(--green-bright); --shadow: var(--green-dark); }
.sparkle-dark:hover  { background: rgba(76, 175, 46, 0.10); }
/* Light-text variant on the dark green hero */
.sparkle-light { --color: var(--cream); --shadow: #0c2716; }
.sparkle-light:hover { background: rgba(255, 255, 255, 0.08); }

.sparkle-btn:hover { --hover: 1; --pos: 1; }
.sparkle-btn:active { --hover: 0; }

/* Base text layer — flat 2D */
.sparkle-btn span {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-weight: 900;
  letter-spacing: 0.02em;
  font-size: var(--font-size);
  color: var(--color);
}
/* Top text layer — the moving glare sweep, clipped to the text */
.sparkle-btn span:last-of-type {
  position: absolute;
  inset: var(--pad);
  z-index: 2;
  color: transparent;
  text-shadow: none;
  background:
    linear-gradient(108deg,
      transparent 0 55%,
      var(--glare) 55% 60%,
      transparent 60% 70%,
      var(--glare) 70% 85%,
      transparent 85%
    ) calc(var(--pos) * -200%) 0% / 200% 100%,
    var(--color);
  -webkit-background-clip: text;
          background-clip: text;
  transition: background-position 0s;
}
.sparkle-btn:hover span:last-of-type {
  transition: background-position calc(var(--hover) * 1.5s) calc(var(--hover) * 0.25s);
}
.sparkle-btn:active span:last-of-type { --hover: 0; --pos: 1; }

/* Sparkles */
.sparkle-btn .spk {
  position: absolute;
  z-index: 3;
  width: calc(var(--font-size) * 0.5);
  aspect-ratio: 1;
  top: calc(var(--y, 50) * 1%);
  left: calc(var(--x, 0) * 1%);
  transform: translate(-50%, -50%) scale(0);
  --delay-step: 0.15s;
}
.sparkle-btn .spk path { fill: var(--color); }
.sparkle-btn:hover .spk {
  animation: sparkle 0.75s calc(var(--delay-step) * var(--d)) both;
}
@keyframes sparkle {
  50% { transform: translate(-50%, -50%) scale(var(--s, 1)); }
}
.sparkle-btn .spk:nth-of-type(1) { --x: -6;  --y: -25; --s: 1.1;  --d: 1; }
.sparkle-btn .spk:nth-of-type(2) { --x: 8;   --y: 125; --s: 1.25; --d: 2; }
.sparkle-btn .spk:nth-of-type(3) { --x: 50;  --y: -35; --s: 1.1;  --d: 3; }
.sparkle-btn .spk:nth-of-type(4) { --x: 92;  --y: 120; --s: 0.9;  --d: 2; }
.sparkle-btn .spk:nth-of-type(5) { --x: 106; --y: -20; --s: 0.8;  --d: 4; }

/* ===== Marquee ===== */
.marquee {
  background: #49284D;
  color: var(--white);
  overflow: hidden;
  padding: 16px 0;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  animation: scroll 18s linear infinite;
}
.marquee-track span {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.marquee-track .dot { opacity: 0.7; }
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Fullscreen slide gallery (pinned) ===== */
.gallery {
  position: relative;
  height: 100vh;   /* fallback for browsers without svh */
  height: 100svh;  /* small viewport height: stable, never jumps on address-bar show/hide */
  overflow: hidden;
  background: var(--green-dark);
}
.gallery-stage {
  position: absolute;
  inset: 0;
}
.g-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  will-change: transform;
  /* Initial offset is set by GSAP (yPercent) in JS — no CSS transform here
     to avoid stacking with GSAP's transform. */
}

/* placeholder "image" backgrounds via gradients in the site palette */
.g-slide[data-bg="green"] { background: linear-gradient(160deg, #1f4d2e, #2f7a3e); color: #fff; }
.g-slide[data-bg="lime"]  { background: linear-gradient(160deg, #4caf2e, #6dd13f); color: #0c2716; }
.g-slide[data-bg="dark"]  { background: linear-gradient(160deg, #0c2716, #1f4d2e); color: #fff; }
.g-slide[data-bg="cream"] { background: linear-gradient(160deg, #f4f1ea, #e6e1d6); color: #1f4d2e; }

.g-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}
.g-inner {
  position: relative;
  z-index: 1;
  padding: 0 6vw;
  text-align: center;
}
.g-explore-btn { margin-top: 28px; }

.g-symbol {
  display: block;
  width: clamp(36px, 4vw, 64px);
  height: auto;
  margin: 0 auto 20px;
  filter: brightness(0) invert(1);
}
.g-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-size: clamp(28px, 5vw, 72px);
  margin: 0;
  max-width: 1100px;
  padding: 0.15em 0;
}

.wavy-text .wave-char {
  display: inline-block;
}
.wavy-text .wave-space {
  display: inline-block;
  width: 0.3em;
}
.g-heading .g-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.15em;
  margin-bottom: -0.15em;
}
.g-heading .g-word > span {
  display: inline-block;
  will-change: transform;
  padding-top: 0.1em;
}

/* progress bar */
.gallery-progress {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  gap: 8px;
  z-index: 4;
}
.gallery-progress span {
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  transition: background 0.4s, width 0.4s;
}
.gallery-progress span.is-active { background: #fff; width: 80px; }

/* ===== Bento gallery Flip section ===== */
.bento-wrap {
  position: relative;
  width: 100%;
  height: 100vh;   /* fallback for browsers without svh */
  height: 100svh;  /* small viewport height: stable on address-bar show/hide */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--cream);
}

/* Bento grid — yellow tile (col2, row2-3) is exactly 100vw × 100vh.
   Other tiles fill the remaining space around it. */
.bento-gallery {
  display: grid;
  gap: 4px;
  /* col: side tiles = 33vw each, center = 34vw → total ~100vw */
  grid-template-columns: 33vw 34vw 33vw;
  /* row: top & bottom = 25vh each, middle two = 25vh each → 4 × 25vh = 100vh */
  grid-template-rows: 25vh 25vh 25vh 25vh;
  justify-content: center;
  align-content: center;
  transform-origin: 50% 50%;
  will-change: transform;
}

.bento-item {
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.bento-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

/* Grid areas — same bento layout */
.bento-gallery .bento-item:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
.bento-gallery .bento-item:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
.bento-gallery .bento-item:nth-child(3) { grid-area: 2 / 2 / 4 / 3; }
.bento-gallery .bento-item:nth-child(4) { grid-area: 1 / 3 / 3 / 4; }
.bento-gallery .bento-item:nth-child(5) { grid-area: 3 / 1 / 4 / 2; }
.bento-gallery .bento-item:nth-child(6) { grid-area: 3 / 3 / 5 / 4; }
.bento-gallery .bento-item:nth-child(7) { grid-area: 4 / 1 / 5 / 2; }
.bento-gallery .bento-item:nth-child(8) { grid-area: 4 / 2 / 5 / 3; }

/* Content section below the bento */
.bento-content {
  background: var(--cream);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  --gutter: max(40px, (100% - 1440px) / 2);
  padding: 80px var(--gutter);
  max-width: 100%;
}
.bento-content h2 {
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 14px 0 28px;
  max-width: 700px;
}
.bento-content p {
  font-size: 16px;
  line-height: 1.75;
  color: #444;
  max-width: 640px;
  margin-bottom: 18px;
}

/* ===== Contact section ===== */
.contact-section {
  background: var(--green-dark);
  color: var(--white);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
  --gutter: max(40px, (100% - 1440px) / 2);
  padding: 80px var(--gutter);
}

.contact-left .eyebrow { color: var(--green-lime); }
.contact-left h2 {
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 16px 0 24px;
}
.contact-left p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.8;
  max-width: 440px;
  margin-bottom: 36px;
}
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  opacity: 0.75;
}
.contact-detail-item svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.9; }

/* Form */
.contact-right { display: flex; flex-direction: column; }
.contact-form {
  background: var(--white);
  color: var(--ink);
  border-radius: 24px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form h3 {
  font-family: 'Stack', serif;
  font-weight: 900;
  font-size: 28px;
  color: var(--green-dark);
  margin-bottom: 4px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-dark);
  opacity: 0.7;
}
.form-group input,
.form-group select,
.form-group textarea {
  border: 2px solid rgba(31,77,46,0.15);
  border-radius: 10px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--ink);
  background: var(--cream);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--green-dark);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: 16px 32px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}
.form-submit svg { width: 18px; height: 18px; }
.form-submit:hover { background: var(--green); transform: translateY(-2px); }

@media (max-width: 820px) {
  .contact-section { grid-template-columns: 1fr; padding: 60px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 24px; }
}

/* ===== Layout popup / modal ===== */
.layout-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  pointer-events: none;
}
.layout-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}
.layout-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 39, 22, 0.55);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.layout-modal.is-open .layout-modal__backdrop { opacity: 1; }

.layout-modal__box {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 40px 36px 32px;
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);

  /* start tiny + invisible for the zoom-in entrance */
  transform: scale(0.4);
  opacity: 0;
}
/* Zooming entrance — ease-in */
.layout-modal.is-open .layout-modal__box {
  animation: zoomIn 0.4s ease-in forwards;
}
@keyframes zoomIn {
  from { transform: scale(0.4); opacity: 0; }
  60%  { opacity: 1; }
  to   { transform: scale(1); opacity: 1; }
}

.layout-modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--cream);
  color: var(--green-dark);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.layout-modal__close:hover { background: #e6e1d6; transform: rotate(90deg); }
.layout-modal__close svg { width: 20px; height: 20px; }

.layout-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green-dark);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  padding: 8px 8px 8px 22px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.layout-modal__badge .unit-code { width: 34px; height: 34px; }
.layout-modal__badge .unit-code--d { background: #fff; color: var(--green-dark); }
.layout-modal__plan {
  background: var(--cream);
  border-radius: 18px;
  padding: 24px;
  color: var(--green-dark);
  margin-bottom: 20px;
}
.layout-modal__plan svg { width: 100%; height: auto; max-height: 260px; }
.layout-modal__meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #444;
}

/* ===== Footer ===== */
.footer {
  background: var(--green);
  color: rgba(255,255,255,0.75);
  --gutter: max(40px, (100% - 1440px) / 2);
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.footer-top {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  padding: 60px var(--gutter) 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  align-content: center;
}
.footer-brand { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.footer-logo { height: 70px; width: auto; filter: brightness(0) invert(1); opacity: 0.9; display: block; }
.footer-brand p { font-size: 14px; line-height: 1.7; max-width: 320px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.7);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.footer-social a:hover { background: var(--green); color: #fff; border-color: var(--green); }
.footer-social svg { width: 18px; height: 18px; }

.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-col h4 {
  font-family: 'Stack', serif;
  font-size: 16px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li { font-size: 13px; line-height: 1.5; }
.footer-col a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--green-lime); }
.footer-pkns {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-pkns img { height: 28px; width: auto; filter: brightness(0) invert(1); opacity: 0.6; }
.footer-pkns span { font-size: 12px; opacity: 0.5; letter-spacing: 0.06em; }

.footer-bottom {
  padding: 24px var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: 12px; opacity: 0.4; }

@media (max-width: 820px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; padding: 50px 24px 40px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; padding: 20px 24px; }
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  /* Nav */
  .nav { grid-template-columns: 1fr auto; padding: 12px 20px; align-items: center; }
  .nav-links { display: none; }
  .nav-icons { padding-bottom: 0; }
  .logo { width: 80px; height: 80px; margin-top: -12px; }
  .logo-img { height: 40px; }

  /* Hero */
  .hero, .mission { grid-template-columns: 1fr; }
  .hero {
    padding: 120px 24px 60px;
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }
  .hero-text { order: 1; }
  .hero-text h1 { font-size: clamp(40px, 12vw, 64px); }
  .hero-text .annot { font-size: 10px; }
  .hero-text p { font-size: 14px; max-width: 100%; }
  .hero-collage {
    order: 2;
    min-height: 320px;
    margin-top: 32px;
    position: relative;
    width: 100%;
  }
  .photo-leash {
    width: 52vw; height: 65vw;
    top: 0; left: 2vw;
  }
  .photo-dog {
    width: 48vw; height: 52vw;
    top: 18vw; left: 38%;
  }

  /* Mission */
  .hero-collage, .mission-collage { min-height: 300px; }
  .mission-collage { min-height: 78vw; margin-top: 24px; }
  .photo-mission-1 {
    width: 52vw; height: 68vw;
    top: 0; left: 2vw;
  }
  .photo-mission-2 {
    width: 48vw; height: 52vw;
    bottom: 0; left: 40%;
  }

  /* Colors */
  .badges { flex-direction: column; align-items: center; gap: 14px; }
  .badge { justify-content: flex-start; width: max-content; }
  .colors-head, .colors-foot { text-align: center; }
  .colors-row { flex-direction: column; gap: 30px; overflow: hidden; width: 100%; }
  .colors { overflow: hidden; padding-left: 0; padding-right: 0; }
  .colors-foot { position: static; transform: none; max-width: 100%; }
  .tags {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: scroll;
    overflow-y: hidden;
    padding: 16px 20px 16px 20px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    scroll-padding: 20px;
    box-sizing: border-box;
  }
  .tags::-webkit-scrollbar { display: none; }
  .tag-red, .tag-green, .tag-yellow {
    transform: none;
    flex-shrink: 0;
    width: 200px;
    height: 300px;
    scroll-snap-align: start;
  }
  .tag-title { font-size: 18px; }
  .tag-icon svg { width: 48px; height: 48px; }

  /* Locations */
  .loc-card { flex-basis: 280px; width: 280px; padding: 28px 24px; }

  /* CTA buttons */
  .sparkle-btn { --font-size: 14px; --pad: 10px 18px; gap: 6px; }
}

/* ===== Loan Calculator ===== */
.loan-calc-section {
  background: url('herobackground.png') center/cover no-repeat var(--green-dark);
  padding: 100px 24px;
  display: flex;
  justify-content: center;
}
.loan-calc-inner {
  width: 100%;
  max-width: 600px;
}
.calculator {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}
.calculator h2 {
  font-size: clamp(22px, 3vw, 30px);
  font-family: Georgia, serif;
  margin-bottom: 28px;
  color: var(--green-dark);
}
.calculator .field {
  margin-bottom: 18px;
}
.calculator label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: #444;
  font-family: 'DM Sans', sans-serif;
}
.calculator input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 0.2s;
}
.calculator input:focus {
  outline: none;
  border-color: var(--green);
}
.calc-btn {
  width: 100%;
  padding: 14px;
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s, transform 0.2s;
}
.calc-btn:hover {
  background: var(--green);
  transform: translateY(-2px);
}
.calc-results {
  display: none;
  margin-top: 28px;
}
.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
  font-family: 'DM Sans', sans-serif;
}
.result-item span {
  font-size: 14px;
  color: #666;
}
.result-item strong {
  font-size: 16px;
  color: var(--green-dark);
}
