/* Tails & Trails - main stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@600;800&display=swap');

:root {
  --sand: #F6F4F0;
  --mint: #DCE6D4;
  --teal: #6B8E23;
  --teal-dark: #3A5F20;
  --mustard: #B87333;
  --charcoal: #3B2F2F;
  --ink: #1F1714;
  --white: #ffffff;
  --glass: rgba(246, 244, 240, 0.78);
  --shadow: 0 25px 60px rgba(59, 47, 47, 0.12);
  --radius: 24px;
  --max: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--sand);
  color: var(--charcoal);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1.1; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

::selection { background: var(--mint); color: var(--teal-dark); }

/* Navigation */
header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .75rem 5vw;
  background: transparent;
  pointer-events: none;
  transition: padding .35s ease, background .35s ease, backdrop-filter .35s ease;
}

header.scrolled {
  padding: .5rem 5vw;
  background: rgba(10,18,10,.90);
  backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 2px 30px rgba(0,0,0,.4), 0 1px 0 rgba(107,142,35,.22);
}

header > * { pointer-events: auto; }

nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: none;
  margin: 0;
  padding: .55rem 1.2rem;
  background: rgba(10,18,10,.62);
  backdrop-filter: blur(28px) saturate(200%);
  border: 1px solid rgba(107,142,35,.38);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06), 0 0 0 1px rgba(107,142,35,.08);
  transition: all .35s ease;
}

header.scrolled .header-logo { height: clamp(44px, 7vw, 52px); max-width: 150px; }

.logo {
  display: flex; align-items: center; gap: .75rem;
  font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 800;
  color: var(--teal-dark);
}

.logo span { color: var(--mustard); }

.logo .logo-tails { color: #3a5f20; }
.logo .logo-amp {
  background: linear-gradient(90deg, #3a5f20, #b87333);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.logo .logo-trails { color: #b87333; }

.logo i { color: var(--teal); width: 26px; height: 26px; }

header .logo {
  display: flex; align-items: center; z-index: 1001; pointer-events: auto;
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transition: filter .35s ease;
}

.header-logo {
  height: clamp(64px, 10vw, 100px); width: auto; max-width: 220px;
  object-fit: contain; display: block;
  position: relative; z-index: 9999;
  filter:
    drop-shadow(0 2px 10px rgba(0,0,0,.70))
    drop-shadow(0 0 3px rgba(255,255,255,.20));
  animation: logoGlow 3s ease-in-out infinite alternate;
  transition: filter .35s ease;
}

body.home-page .header-logo {
  animation:
    logoEntrance 4.4s cubic-bezier(.22,1,.36,1) both,
    logoGlow 3s ease-in-out 4.4s infinite alternate;
}

@keyframes logoEntrance {
  0%   { transform: translate(80vw, 25vh) scale(0.45) rotate(0deg);   opacity: 0; }
  10%  { opacity: 1; }
  48%  { transform: translate(36vw, 38vh) scale(3.4)  rotate(720deg); opacity: 1; }
  82%  { transform: translate(0, 0)       scale(1.08) rotate(720deg); }
  100% { transform: translate(0, 0)       scale(1)    rotate(720deg); opacity: 1; }
}

@keyframes logoGlow {
  from {
    filter:
      drop-shadow(0 2px 10px rgba(0,0,0,.65))
      drop-shadow(0 0 2px rgba(255,255,255,.12));
  }
  to {
    filter:
      drop-shadow(0 2px 12px rgba(0,0,0,.75))
      drop-shadow(0 0 8px rgba(255,255,255,.30))
      drop-shadow(0 0 14px rgba(184,115,51,.18));
  }
}

.nav-links {
  display: flex; gap: .35rem; list-style: none;
  font-size: .95rem; font-weight: 500;
}

.nav-links a {
  position: relative; color: rgba(255,255,255,.80);
  padding: .55rem 1.1rem; border-radius: 100px;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  border: 1px solid transparent;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(107,142,35,.6), 0 0 18px rgba(107,142,35,.28);
  border-color: rgba(107,142,35,.4);
}

.hamburger { display: none; background: none; border: none; color: var(--charcoal); cursor: pointer; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.8rem; border-radius: 100px; font-weight: 600;
  border: 2px solid transparent; cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  font-size: .95rem;
}

.btn:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 18px 40px rgba(59,47,47,.18); }

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  box-shadow: 0 10px 25px rgba(107,142,35,.35);
}

.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 20px 45px rgba(107,142,35,.45); }

.btn-outline {
  background: rgba(255,255,255,.55);
  border-color: var(--teal-dark);
  color: var(--teal-dark);
  backdrop-filter: blur(8px);
}

.btn-outline:hover { background: var(--teal-dark); color: var(--white); border-color: var(--teal-dark); box-shadow: 0 14px 35px rgba(58,95,32,.35); }

/* Hero */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: clamp(120px, 16vw, 170px) 8vw 5rem;
  overflow: hidden;
  background: #0a1a0a; /* dark fallback so any pre-video flash is invisible */
}

.home-hero { min-height: 100vh; }

.hero > img, .hero > video {
  flex: 0 0 auto;
  width: min(30%, 400px);
  aspect-ratio: 3/4;
  height: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 20px 80px 20px 80px;
  box-shadow: 0 30px 60px rgba(59,47,47,.16);
  transform: perspective(1000px) rotateY(-4deg) rotate(0deg);
  z-index: 1;
  animation: settle 1.3s cubic-bezier(.22,1,.36,1) forwards;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s ease;
}

.hero > img:hover, .hero > video:hover {
  transform: perspective(1000px) rotateY(0deg) rotate(0deg) scale(1.03);
  box-shadow: 0 45px 90px rgba(59,47,47,.22);
}

.hero .hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  transform: none;
  transition: none;
  animation: none;
  object-fit: cover;
  background: #0a1a0a; /* covers gap between poster load and first video frame */
  z-index: 0;
  pointer-events: none;
  opacity: 1;
}

.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  animation: drift-orb 14s ease-in-out infinite alternate;
}

.hero::before {
  width: 420px; height: 420px; background: var(--mint); filter: blur(90px); opacity: .45;
  top: -120px; left: -120px;
}

.hero::after {
  width: 280px; height: 280px; background: var(--mustard); filter: blur(70px); opacity: .28;
  bottom: -40px; right: 25%; animation-delay: -5s;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,.50) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(90deg, rgba(31,41,30,.70) 0%, rgba(31,41,30,.40) 55%, rgba(31,41,30,.15) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 0 0 50%;
  max-width: 560px;
  color: var(--ink);
  text-align: left !important;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 4rem); letter-spacing: -2px; line-height: 1;
  margin-bottom: 1.2rem;
  background: linear-gradient(120deg, var(--ink) 0%, var(--teal-dark) 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1 span {
  display: block; color: var(--mustard);
  font-size: .48em; margin-top: .5rem; opacity: .92;
}

.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 480px; margin-bottom: 2rem; color: var(--charcoal); opacity: .9; }

.hero .cta { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero .section-label { color: var(--teal-dark) !important; }

/* Home hero video text */
.home-hero .hero-content { color: #fff; flex: 0 0 auto; max-width: 1024px; width: 96%; }
.home-hero .section-label { color: #fff !important; letter-spacing: 3px; font-size: .8rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.home-hero h1 { background: none; color: #fff; -webkit-text-fill-color: #fff; font-size: clamp(2.6rem, 5.6vw, 5.2rem); text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.home-hero h1 span { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.home-hero p { color: #fff; opacity: 1; max-width: 100%; font-size: clamp(1.1rem, 2.2vw, 1.35rem); text-shadow: 0 1px 6px rgba(0,0,0,.55); }
.home-hero .btn-outline { color: #fff; border-color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.home-hero .btn-outline:hover { background: #fff; color: var(--charcoal); }

/* Services hero */
.services-hero { min-height: 85vh; }
.services-hero .hero-content {
  background: transparent;
  padding: 0;
  flex: 0 0 auto;
  max-width: 1024px;
  width: 96%;
}
.services-hero .section-label { color: #fff !important; letter-spacing: 3px; font-size: .8rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.services-hero h1 { background: none; color: #fff; -webkit-text-fill-color: #fff; font-size: clamp(2.6rem, 5.6vw, 5.2rem); text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.services-hero h1 span { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.services-hero p { color: #fff; opacity: 1; max-width: 100%; font-size: clamp(1.1rem, 2.2vw, 1.35rem); text-shadow: 0 1px 6px rgba(0,0,0,.55); }

/* About hero */
.about-hero { min-height: 85vh; }
.about-hero .hero-content {
  background: transparent;
  padding: 0;
  flex: 0 0 auto;
  max-width: 1024px;
  width: 96%;
}
.about-hero .section-label { color: #fff !important; letter-spacing: 3px; font-size: .8rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.about-hero h1 { background: none; color: #fff; -webkit-text-fill-color: #fff; font-size: clamp(2.6rem, 5.6vw, 5.2rem); text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.about-hero h1 span { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.about-hero p { color: #fff; opacity: 1; max-width: 100%; font-size: clamp(1.1rem, 2.2vw, 1.35rem); text-shadow: 0 1px 6px rgba(0,0,0,.55); }

/* Gallery hero */
.gallery-hero { min-height: 85vh; }
.gallery-hero .hero-content {
  background: transparent;
  padding: 0;
  flex: 0 0 auto;
  max-width: 1024px;
  width: 96%;
}
.gallery-hero .section-label { color: #fff !important; letter-spacing: 3px; font-size: .8rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.gallery-hero h1 { background: none; color: #fff; -webkit-text-fill-color: #fff; font-size: clamp(2.6rem, 5.6vw, 5.2rem); text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.gallery-hero h1 span { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.gallery-hero p { color: #fff; opacity: 1; max-width: 100%; font-size: clamp(1.1rem, 2.2vw, 1.35rem); text-shadow: 0 1px 6px rgba(0,0,0,.55); }

/* Contact hero */
.contact-hero { min-height: 85vh; }
.contact-hero .hero-content {
  background: transparent;
  padding: 0;
  flex: 0 0 auto;
  max-width: 1024px;
  width: 96%;
}
.contact-hero .section-label { color: #fff !important; letter-spacing: 3px; font-size: .8rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.contact-hero h1 { background: none; color: #fff; -webkit-text-fill-color: #fff; font-size: clamp(2.6rem, 5.6vw, 5.2rem); text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.contact-hero h1 span { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.45); }
.contact-hero p { color: #fff; opacity: 1; max-width: 100%; font-size: clamp(1.1rem, 2.2vw, 1.35rem); text-shadow: 0 1px 6px rgba(0,0,0,.55); }

.services-hero h1, .about-hero h1, .gallery-hero h1, .contact-hero h1 { text-align: center !important; }

/* Floating paw */
.paw-float {
  position: absolute;
  left: 2.8rem;
  bottom: -6.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 10;
  animation: pawFloat 2.6s ease-out 4.4s both, pawBob 1.4s ease-in-out 7s infinite;
}

.paw-float .paw-arrow {
  font-size: 2rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,.5);
  line-height: 1;
  margin-bottom: .2rem;
}

.paw-float img {
  width: 55px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.4));
}

@keyframes pawFloat {
  0% { transform: translate(-250%, -180%) rotate(-30deg) scale(0.4); opacity: 0; }
  70% { transform: translate(-10px, -10px) rotate(10deg) scale(1.15); opacity: 1; }
  100% { transform: translate(0, 0) rotate(0deg) scale(1); opacity: 1; }
}

@keyframes pawBob {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-12px) rotate(-2deg) scale(1.05); }
}

/* Floating blobs */
.blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
  pointer-events: none; z-index: -1;
}

.blob-1 { width: 500px; height: 500px; background: var(--mint); top: -120px; right: -120px; }

.blob-2 { width: 340px; height: 340px; background: var(--mustard); bottom: -80px; left: -80px; opacity: .35; }

/* Sections */
section { padding: 6rem 5vw; position: relative; }

.section-wrap { max-width: var(--max); margin: 0 auto; }

.section-label {
  display: inline-block; color: var(--teal-dark); font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; font-size: .75rem; margin-bottom: 1rem;
}

.section-title { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 1.4rem; color: var(--ink); }

.section-sub { color: #5f6b5c; max-width: 620px; font-size: 1.05rem; }

/* Video section */
.video-section {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 6rem 5vw;
}

.video-section .section-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.video-section .section-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31,41,30,.70) 0%, rgba(31,41,30,.50) 50%, rgba(31,41,30,.35) 100%);
  z-index: 1;
  pointer-events: none;
}

.video-section .section-wrap {
  position: relative;
  z-index: 2;
  color: #fff;
}

.video-section .section-label { color: #fff !important; letter-spacing: 3px; font-size: .8rem; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.video-section .section-title { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.45); }
.video-section .section-sub { color: #fff; opacity: .95; text-shadow: 0 1px 6px rgba(0,0,0,.55); }
.video-section h3 { color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.4); }
.video-section p { color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.45); }
.video-section .feature-list { color: #fff; }
.video-section .feature-list i { color: #fff; filter: drop-shadow(0 2px 4px rgba(0,0,0,.4)); }
.video-section .feature-list strong { color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.45); }
.video-section .feature-list div { text-shadow: 0 1px 5px rgba(0,0,0,.45); }

/* Feature list */
.feature-list { list-style: none; display: grid; gap: 1.4rem; margin-top: 2.4rem; }

.feature-list li { display: flex; gap: 1.2rem; align-items: flex-start; }

.feature-list i { color: var(--teal); flex-shrink: 0; margin-top: .2rem; }

/* Alternating feature sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "pic txt";
  gap: 4vw;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0;
}

.split .media {
  grid-area: pic;
  width: min(440px, 100%);
  aspect-ratio: 3/4;
  height: auto;
  border-radius: 30px 120px 30px 120px;
  overflow: hidden;
  background: var(--mint);
  justify-self: center;
  z-index: 1;
}

.split img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

.split > div:not(.media) {
  grid-area: txt;
  margin: 0;
  width: auto;
  max-width: 520px;
  padding: 0 0 0 1.8rem;
  background: transparent;
  backdrop-filter: none;
  border: none;
  border-left: 4px solid var(--teal);
  border-radius: 0;
  z-index: 2;
  align-self: center;
}

.split.reverse { grid-template-areas: "txt pic"; }

.split.reverse .media { justify-self: center; }

.split.reverse > div:not(.media) {
  padding: 0 1.8rem 0 0;
  border-left: none;
  border-right: 4px solid var(--teal);
  justify-self: end;
}

/* Accordion */
.accordion {
  display: grid;
  gap: 1.2rem;
  margin-top: 2.5rem;
}

.accordion-item {
  border-radius: 24px;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid rgba(255,255,255,.55);
  overflow: hidden;
  transition: box-shadow .3s ease, transform .3s ease;
}

.accordion-item:hover { transform: translateY(-3px); box-shadow: 0 20px 45px rgba(59,47,47,.1); }

.accordion-item summary {
  display: flex; align-items: center; gap: 1.2rem;
  padding: 1.6rem 2rem;
  cursor: pointer;
  list-style: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  color: var(--ink);
}

.accordion-item summary::-webkit-details-marker { display: none; }

.accordion-item .acc-num {
  font-family: 'Inter', sans-serif;
  font-size: .85rem; font-weight: 700; letter-spacing: 1px;
  color: var(--white); background: var(--teal);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.accordion-item .acc-icon {
  margin-left: auto;
  width: 22px; height: 22px;
  color: var(--teal-dark);
  transition: transform .35s ease;
}

.accordion-item[open] .acc-icon { transform: rotate(180deg); }

.accordion-body {
  padding: 0 2rem 2rem;
  color: var(--charcoal);
  line-height: 1.65;
}

.accordion-body p { margin-bottom: 1.2rem; }

.accordion-body img {
  width: 100vw;
  height: clamp(260px, 42vh, 480px); object-fit: contain;
  object-position: center;
  background: var(--mint);
  margin: 1.5rem 0 0 calc(50% - 50vw);
  border-radius: 0;
  opacity: 0;
  transform: perspective(800px) rotateY(-18deg) rotate(-5deg) translateX(-80px) scale(.88);
}

.accordion-item[open] .accordion-body img {
  animation: settle-acc .8s cubic-bezier(.22,1,.36,1) forwards;
}

/* Fan accordion */
.fan-accordion {
  display: flex;
  gap: 1rem;
  height: clamp(420px, 70vh, 720px);
  margin-top: 3rem;
}

.fan-panel {
  flex: 1;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: flex .7s cubic-bezier(.22,1,.36,1), filter .4s ease;
  filter: grayscale(.3) brightness(.85);
}

.fan-panel img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fan-panel .panel-label {
  position: absolute;
  bottom: 1.6rem; left: 1.6rem;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,.4);
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  transition: all .4s ease;
}

.fan-panel .panel-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  margin-bottom: .8rem;
  background: var(--teal);
  color: var(--white);
  border-radius: 50%;
  font-size: .75rem;
  font-family: 'Inter', sans-serif;
  writing-mode: horizontal-tb;
  transform: rotate(180deg);
}

.fan-panel .panel-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(59,47,47,.72));
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: all .4s ease .2s;
}

.fan-panel.open {
  flex: 5;
  filter: grayscale(0) brightness(1);
}

.fan-panel.open .panel-label { opacity: 0; }
.fan-panel.open .panel-body { opacity: 1; transform: translateY(0); }

/* Video banner */
.video-banner {
  position: relative; height: 60vh; min-height: 400px; display: flex; align-items: center;
  justify-content: center; overflow: hidden; border-radius: 0;
}

.video-banner video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
}

.video-banner::after {
  content: ''; position: absolute; inset: 0; background: rgba(30,42,53,.55); z-index: -1;
}

.video-banner h2 { color: var(--white); font-size: clamp(2rem, 5vw, 4rem); text-align: center; max-width: 800px; }

/* Gallery */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 1.2rem;
  max-width: var(--max); margin: 3rem auto 0;
}

.gallery .item {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 3/4; background: var(--mint);
}

.gallery .item img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .7s ease; }

.gallery .item:hover img { transform: scale(1.04); }

.gallery .wide { grid-column: span 7; }
.gallery .tall { grid-column: span 5; }
.gallery .sq { grid-column: span 4; }
.gallery .full { grid-column: span 12; }

/* Film roll */
.film-roll {
  width: 100%;
  overflow: hidden;
  padding: 4rem 0;
}

.film-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  padding: 0 5vw;
  animation: roll 30s linear infinite;
}

.film-frame {
  flex: 0 0 auto;
  width: 320px;
  aspect-ratio: 3/4;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(59,47,47,.12);
  cursor: pointer;
}

.film-frame img { width: 100%; height: 100%; object-fit: cover; }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31,31,31,.92);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}

.lightbox.open { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 24px;
  box-shadow: 0 40px 80px rgba(0,0,0,.4);
  animation: spin-twice .9s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes spin-twice {
  from { transform: scale(0.5) rotate(0deg); }
  to { transform: scale(1) rotate(720deg); }
}

.lightbox-close {
  position: absolute;
  top: 1.5rem; right: 1.5rem;
  background: var(--white); color: var(--ink);
  border: none; border-radius: 50%;
  width: 44px; height: 44px;
  font-size: 1.6rem; line-height: 1;
  cursor: pointer; z-index: 2001;
}

@keyframes roll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }

.big-phone {
  font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  color: var(--teal-dark); margin: 1.5rem 0;
}

.big-phone a:hover { color: var(--mustard); }

form { display: grid; gap: 1.2rem; }

input, textarea, select {
  width: 100%; padding: 1rem 1.2rem; border: 1px solid rgba(30,42,53,.12);
  border-radius: 14px; font-family: inherit; font-size: 1rem; background: var(--white);
}

input:focus, textarea:focus { outline: none; border-color: var(--teal); }

form button { justify-self: start; }

/* Footer */
footer { padding: 4rem 5vw 2rem; background: var(--charcoal); color: #b7c1c9; }

.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; }

footer .logo { color: var(--white); }

.footer-logo { display: block; width: clamp(100px, 18vw, 160px); height: auto; margin-bottom: 1rem; border-radius: 50%; box-shadow: 0 10px 25px rgba(0,0,0,.1); }

footer a { color: #b7c1c9; transition: color .2s; }
footer a:hover { color: var(--mint); }

.socials { display: flex; gap: 1rem; margin-top: 1.2rem; }

.socials a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
}

.bottom { text-align: center; padding: 2rem 0 0; font-size: .85rem; color: #7e8a93; border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }

.reveal.active { opacity: 1; transform: translateY(0); }

.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }

/* Paw prints */
.paw { position: fixed; color: rgba(107,142,35,.14); pointer-events: none; animation: float 18s linear infinite; z-index: 0; }

@keyframes float {
  0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

/* Animations */
@keyframes settle {
  from {
    opacity: 0;
    transform: perspective(1000px) rotateY(-28deg) rotate(-10deg) translateX(120px) scale(.82);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) rotateY(-6deg) rotate(-1deg) translateX(0) scale(1);
  }
}

@keyframes settle-acc {
  from {
    opacity: 0;
    transform: perspective(800px) rotateY(-18deg) rotate(-5deg) translateX(-80px) scale(.88);
  }
  to {
    opacity: 1;
    transform: perspective(800px) rotateY(0deg) rotate(0deg) translateX(0) scale(1);
  }
}

@keyframes drift-orb {
  from { transform: translateY(0); }
  to { transform: translateY(-30px); }
}

/* ── Tablet & Mobile (≤ 820px) ───────────────────────────── */
@media (max-width: 820px) {

  /* Header – dark glass on mobile so logo/hamburger are always legible over any background */
  header {
    padding: .55rem 4vw;
    background: rgba(10,18,10,.82);
    backdrop-filter: blur(20px);
  }
  header.scrolled { padding: .45rem 4vw; }
  .header-logo { height: clamp(38px, 9vw, 56px); max-width: 130px; }
  nav { background: transparent !important; border: none !important; box-shadow: none !important; backdrop-filter: none !important; padding: 0 !important; }

  /* Hamburger – modern green pill */
  .hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .55rem 1.1rem;
    width: auto;
    height: auto;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
    border: 1px solid rgba(107,142,35,.45);
    box-shadow: 0 6px 22px rgba(107,142,35,.45), inset 0 1px 0 rgba(255,255,255,.12);
    z-index: 1001;
  }
  .hamburger-label {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    line-height: 1;
  }

  /* Nav drawer */
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 76%; max-width: 300px; height: 100dvh;
    flex-direction: column; gap: 1.6rem;
    background: var(--sand);
    box-shadow: -10px 0 40px rgba(0,0,0,.14);
    padding: 5.5rem 2rem 3rem;
    transition: right .35s ease;
    z-index: 1000;
    list-style: none;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; padding: .7rem 1.2rem; color: var(--charcoal); }

  /* Hero – video backgrounds */
  .hero {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 7rem 5vw 4rem;
    gap: 2rem;
    min-height: 100svh;
  }
  .home-hero,
  .services-hero,
  .about-hero,
  .gallery-hero,
  .contact-hero { min-height: 100svh; }

  /* Uniform dark overlay looks better on portrait than left-to-right gradient */
  .home-hero .hero-overlay,
  .services-hero .hero-overlay,
  .about-hero .hero-overlay,
  .gallery-hero .hero-overlay,
  .contact-hero .hero-overlay {
    background: rgba(31,41,30,.60);
  }

  .hero-content {
    flex: none;
    max-width: 100%;
    width: 100%;
    text-align: center !important;
    margin: 0 !important;
    padding: 0 .5rem;
  }

  /* CTA buttons stack on mobile */
  .hero .cta {
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: .8rem;
  }
  .hero .cta .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .hero h1 { font-size: clamp(2rem, 8vw, 3.2rem); }
  .home-hero h1,
  .services-hero h1,
  .about-hero h1,
  .gallery-hero h1,
  .contact-hero h1 { font-size: clamp(2rem, 8vw, 3.2rem); }

  .home-hero p,
  .services-hero p,
  .about-hero p,
  .gallery-hero p,
  .contact-hero p { font-size: clamp(.95rem, 3.4vw, 1.15rem); }

  /* Hide paw on mobile – too small to be useful */
  .paw-float { display: none; }

  /* Non-background hero media (portrait image/video) */
  .hero > img,
  .hero > video {
    flex: none; max-width: 100%;
    width: min(260px, 65%); height: auto;
    aspect-ratio: 3/4; border-radius: 24px 80px 24px 80px;
    margin: 0; object-fit: cover; transform: none;
    animation: settle 1s cubic-bezier(.22,1,.36,1) forwards;
  }
  .hero > img:hover, .hero > video:hover { transform: scale(1.02); }

  /* General section padding */
  section { padding: 3.5rem 5vw; }
  .section-title { font-size: clamp(1.8rem, 6vw, 2.8rem); }

  /* Two-column splits → single column */
  .split {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas: "pic" "txt";
  }
  .split.reverse { grid-template-areas: "pic" "txt"; }
  .split .media { width: min(380px, 100%); border-radius: 24px 80px 24px 80px; }
  .split > div:not(.media) {
    margin-top: 2rem;
    padding: 0 0 0 1.2rem;
    border-left: 4px solid var(--teal);
    border-right: none;
    justify-self: start;
  }
  .split.reverse > div:not(.media) {
    padding: 0 0 0 1.2rem;
    border-left: 4px solid var(--teal);
    border-right: none;
  }

  /* Fan accordion → vertical stack */
  .fan-accordion {
    flex-direction: column;
    height: auto;
    gap: .6rem;
  }
  .fan-panel { flex: none; height: 160px; }
  .fan-panel.open { flex: none; height: 320px; }
  .fan-panel .panel-label {
    writing-mode: horizontal-tb;
    text-orientation: unset;
    transform: none;
    bottom: 1rem; left: 1.2rem;
  }
  .fan-panel .panel-num {
    writing-mode: horizontal-tb;
    transform: none;
    margin-bottom: 0;
    margin-right: .5rem;
    display: inline-flex;
  }

  /* Gallery */
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .wide, .gallery .tall, .gallery .sq { grid-column: span 1; }
  .gallery .full { grid-column: span 2; }

  /* Film strip */
  .film-frame { width: 220px; }
  .film-track { animation: roll 20s linear infinite; }

  /* Video section */
  .video-section { min-height: 55vh; padding: 4rem 5vw; }

  /* Contact & footer */
  .contact-grid, .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .big-phone { font-size: clamp(1.8rem, 6vw, 2.6rem); }

  /* Hide decorative blobs – prevent horizontal overflow on small screens */
  .blob { display: none; }
}

/* ── Thank you popup ────────────────────────────────────────── */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(11, 25, 11, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.popup-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.8rem 2.5rem 2.2rem;
  max-width: 440px;
  width: 90%;
  text-align: center;
  box-shadow: 0 30px 80px rgba(11, 25, 11, 0.35);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.4s cubic-bezier(.22,1,.36,1);
}
.popup-overlay.active .popup-card {
  transform: translateY(0) scale(1);
}
.popup-paw {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  display: block;
  animation: pawBob 1.4s ease-in-out infinite;
}
.popup-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--teal-dark);
  margin-bottom: .6rem;
}
.popup-card p {
  color: #58646e;
  margin-bottom: 1.8rem;
  line-height: 1.65;
  font-size: .98rem;
}
.popup-close {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: 999px;
  padding: .7rem 2.2rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: .03em;
  box-shadow: 0 6px 22px rgba(45,90,39,.35);
  transition: opacity .2s, transform .2s;
}
.popup-close:hover { opacity: .85; transform: translateY(-1px); }

/* ── Small phones (≤ 480px) ──────────────────────────────── */
@media (max-width: 480px) {
  .header-logo { height: 36px; max-width: 110px; }
  .hero { padding: 6rem 4vw 3rem; }
  .hero h1,
  .home-hero h1,
  .services-hero h1,
  .about-hero h1,
  .gallery-hero h1,
  .contact-hero h1 { font-size: clamp(1.7rem, 7.5vw, 2.6rem); }
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide, .gallery .tall, .gallery .sq, .gallery .full { grid-column: span 1; }
  .film-frame { width: 180px; }
  .accordion-item summary { font-size: 1.15rem; padding: 1.1rem 1.4rem; }
  .accordion-body { padding: 0 1.4rem 1.4rem; }
  .video-section { min-height: 50vh; }

  /* Prevent accordion body images from escaping on mobile */
  .accordion-body img { margin-left: 0; width: 100%; }

  /* Contact form: full-width submit button */
  form button[type="submit"] { width: 100%; justify-content: center; }

  /* Section padding tighter on tiny screens */
  section { padding: 2.8rem 4vw; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }

  /* Footer links don't overflow */
  footer ul { padding-left: 0; }
  .footer-inner { gap: 1.5rem; }

  /* Big phone number scales down */
  .big-phone { font-size: clamp(1.6rem, 7vw, 2.2rem); margin: 1rem 0; }
}
