/* ========== RESET & VARIABLES ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --cream: #FAF6F1;
  --warm-white: #FFFDF9;
  --sage: #8BA888;
  --sage-dark: #6B8E6B;
  --sage-light: #D4E4D1;
  --terracotta: #C4856A;
  --terracotta-light: #E8C4B4;
  --gold: #D4A86A;
  --gold-light: #F0DFC0;
  --charcoal: #3A3632;
  --warm-gray: #7A746E;
  --light-gray: #E8E2DC;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Nunito', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  line-height: 1.7;
  font-weight: 300;
  overflow-x: hidden;
}

/* ========== NAVIGATION ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
  background: rgba(250, 246, 241, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s ease;
}
nav.scrolled {
  padding: 0.6rem 2rem;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
nav a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--warm-gray);
  text-decoration: none;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.3s;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--sage);
  transition: width 0.3s ease;
}
nav a:hover { color: var(--charcoal); }
nav a:hover::after { width: 100%; }

/* ========== HERO ========== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(139,168,136,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(212,168,106,0.10) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(196,133,106,0.08) 0%, transparent 50%);
  pointer-events: none;
}

.hero-photo {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid var(--warm-white);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.10),
    0 0 0 1px rgba(139,168,136,0.2);
  margin-bottom: 2.5rem;
  opacity: 0;
  transform: scale(0.9);
  animation: heroFadeIn 1.2s ease forwards 0.3s;
}

.hero-names {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--charcoal);
  letter-spacing: 0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.6s;
}
.hero-names .ampersand {
  color: var(--sage);
  font-style: italic;
  font-weight: 300;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-style: italic;
  font-weight: 300;
  color: var(--warm-gray);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 0.9s;
}

.hero-divider {
  width: 60px;
  height: 1.5px;
  background: var(--sage);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.1s;
}

.hero-verse {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--warm-gray);
  max-width: 500px;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.3s;
}

.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.6s;
}
.scroll-hint span {
  display: block;
  width: 20px;
  height: 32px;
  border: 1.5px solid var(--warm-gray);
  border-radius: 10px;
  position: relative;
}
.scroll-hint span::after {
  content: '';
  width: 3px;
  height: 6px;
  background: var(--warm-gray);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollPulse 2s ease infinite;
}

/* ========== SECTIONS ========== */
section {
  padding: 5rem 2rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Alternating full-width section backgrounds */
.section-bg-alt {
  background: var(--warm-white);
  border-top: 1px solid rgba(0,0,0,0.03);
  border-bottom: 1px solid rgba(0,0,0,0.03);
  box-shadow: inset 0 4px 12px rgba(0,0,0,0.015), inset 0 -4px 12px rgba(0,0,0,0.015);
}
.section-bg-alt > section {
  max-width: 900px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--charcoal);
  margin-bottom: 2rem;
  line-height: 1.2;
}

.prose {
  font-size: 1.02rem;
  color: var(--charcoal);
  line-height: 1.85;
  font-weight: 300;
}
.prose p { margin-bottom: 1.5rem; }
.prose p:last-child { margin-bottom: 0; }

/* ========== FULL-WIDTH PHOTO BREAK ========== */
.photo-break {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  height: 55vh;
  min-height: 350px;
  overflow: hidden;
  position: relative;
}
.photo-break img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.photo-break.portrait-source {
  height: 70vh;
  min-height: 450px;
}
.photo-break.portrait-source img {
  object-position: center 20%;
}

/* ========== QUOTE BREAK ========== */
.quote-break {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--charcoal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.quote-break .quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 300;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.02em;
}
.quote-break .quote-accent {
  color: var(--sage-light);
  font-size: 1rem;
  opacity: 0.6;
}
.photo-break .overlay-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(58,54,50,0.30);
}
.photo-break .overlay-text span {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: white;
  font-style: italic;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

/* ========== OUR STORY - TIMELINE ========== */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin-top: 2rem;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1.5px;
  background: var(--sage-light);
}
.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}
.timeline-item:last-child { margin-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.5rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
  transform: translateX(-50%);
  left: calc(-2.5rem + 0.75px);
}
.timeline-date {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 0.3rem;
}
.timeline-text {
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 300;
}

/* ========== PHOTO GALLERY ========== */
.gallery-section {
  max-width: 1100px;
  padding: 5rem 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}
.gallery-grid .gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.gallery-grid .gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}
.gallery-grid .gallery-item.tall {
  grid-row: span 2;
  aspect-ratio: auto;
}
.gallery-grid .gallery-item.wide {
  grid-column: span 2;
  aspect-ratio: auto;
}
.gallery-grid .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.gallery-grid .gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-grid .gallery-item .caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1rem 1rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.5));
  color: white;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-grid .gallery-item:hover .caption {
  opacity: 1;
}

/* ========== MEET THE PUPS ========== */
.pups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.pup-card {
  text-align: center;
  transition: transform 0.3s ease;
}
.pup-card:hover { transform: translateY(-6px); }
.pup-card img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--warm-white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  margin-bottom: 0.8rem;
}
.pup-card h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.2rem;
}
.pup-card p {
  font-size: 0.82rem;
  color: var(--warm-gray);
  font-weight: 300;
}
.pup-card .pup-placeholder {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--warm-white);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  margin: 0 auto 0.8rem;
  background: var(--sage-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--sage);
}

/* ========== PROMISES ========== */
.promises-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.promise-card {
  background: var(--cream);
  border: 1px solid var(--light-gray);
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.promise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.06);
}
.promise-icon {
  font-size: 2rem;
  margin-bottom: 0.8rem;
}
.promise-card h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.promise-card p {
  font-size: 0.88rem;
  color: var(--warm-gray);
  font-weight: 300;
  line-height: 1.6;
}

/* ========== CLOSING / CTA ========== */
.closing {
  text-align: center;
  padding: 5rem 2rem 6rem;
  max-width: 700px;
  margin: 0 auto;
}
.closing .section-title {
  margin-bottom: 1.5rem;
}
.closing .prose {
  margin-bottom: 2.5rem;
}
.closing-hearts {
  font-size: 2rem;
  color: var(--terracotta-light);
  margin-bottom: 1.5rem;
  letter-spacing: 0.5rem;
}
.contact-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: white;
  background: var(--sage);
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(139,168,136,0.3);
}
.contact-btn:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,168,136,0.4);
}

/* ========== DONATE SECTION ========== */
.donate-section {
  text-align: center;
  padding: 4rem 2rem;
  background: var(--charcoal);
  position: relative;
  overflow: hidden;
}
.donate-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(139,168,136,0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(212,168,106,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.donate-section .section-label {
  color: var(--sage-light);
}
.donate-section .section-title {
  color: rgba(255,255,255,0.9);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 1rem;
}
.donate-section .prose {
  color: rgba(255,255,255,0.55);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-size: 0.95rem;
}
.donate-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.donate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}
.donate-btn i,
.donate-btn svg {
  font-size: 1.2rem;
  width: 1.2rem;
  height: 1.2rem;
}
.donate-btn.venmo {
  background: #008CFF;
  color: white;
  box-shadow: 0 4px 20px rgba(0,140,255,0.3);
}
.donate-btn.venmo:hover {
  background: #006FCC;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,140,255,0.4);
}
.donate-btn.cashapp {
  background: #00D632;
  color: white;
  box-shadow: 0 4px 20px rgba(0,214,50,0.3);
}
.donate-btn.cashapp:hover {
  background: #00B82B;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,214,50,0.4);
}
.donate-note {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  font-style: italic;
}

/* ========== T-SHIRT PREVIEW ========== */
.shirt-preview {
  margin-bottom: 2rem;
  perspective: 800px;
}
.shirt-flipper {
  position: relative;
  width: 280px;
  height: 280px;
  margin: 0 auto;
  transition: transform 0.6s ease;
  transform-style: preserve-3d;
  cursor: pointer;
}
@media (hover: hover) {
  .shirt-preview:hover .shirt-flipper {
    transform: rotateY(180deg);
  }
}
.shirt-flipper.flipped {
  transform: rotateY(180deg);
}
.shirt-flipper img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.10);
  backface-visibility: hidden;
}
.shirt-back {
  transform: rotateY(180deg);
}
.shirt-hint {
  margin-top: 0.8rem;
  font-size: 0.75rem;
  color: var(--warm-gray);
  font-style: italic;
  opacity: 0.6;
}

/* ========== T-SHIRT FORM ========== */
.tshirt-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 400px;
  margin: 0 auto;
}
.tshirt-form input,
.tshirt-form select {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 300;
  padding: 0.9rem 1.2rem;
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  background: var(--warm-white);
  color: var(--charcoal);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
}
.tshirt-form input:focus,
.tshirt-form select:focus {
  border-color: var(--sage);
  box-shadow: 0 0 0 3px rgba(139,168,136,0.15);
}
.tshirt-form input::placeholder {
  color: var(--warm-gray);
  opacity: 0.6;
}
.form-status {
  font-size: 0.88rem;
  font-weight: 400;
  margin-top: 0.5rem;
  min-height: 1.4em;
}
.form-status.success { color: var(--sage-dark); }
.form-status.error { color: var(--terracotta); }

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 1.5rem 2rem;
  background: var(--charcoal);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.90);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  animation: lbFade 0.3s ease;
}
.lightbox.active { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.lightbox-close:hover { opacity: 1; }

/* ========== ANIMATIONS ========== */
@keyframes heroFadeIn {
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.3; transform: translateX(-50%) translateY(8px); }
}
@keyframes lbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== PARTICLE CANVAS ========== */
.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero > *:not(.particle-canvas) {
  position: relative;
  z-index: 2;
}

/* ========== PARALLAX ========== */
.photo-break {
  overflow: hidden;
}
.photo-break img {
  will-change: transform;
  transition: none;
}

/* ========== ENHANCED REVEALS ========== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.gallery-item,
.pup-card,
.promise-card,
.timeline-item {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-item.stagger-visible,
.pup-card.stagger-visible,
.promise-card.stagger-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Timeline items animate from left */
.timeline-item {
  transform: translateX(-20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item.timeline-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Subtle section dividers */
section::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background: var(--sage-light);
  margin: 3rem auto 0;
  opacity: 0.5;
}
section:last-of-type::after,
.gallery-section::after {
  display: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  nav { gap: 1rem; flex-wrap: wrap; }
  nav a { font-size: 0.68rem; }
  .hero-photo { width: 240px; height: 240px; }
  section { padding: 3.5rem 1.5rem; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-grid .gallery-item.tall { grid-row: span 1; aspect-ratio: 1; }
  .gallery-grid .gallery-item.wide { grid-column: span 1; }
  .pups-grid { grid-template-columns: repeat(2, 1fr); }
  .pup-card img { width: 140px; height: 140px; }
  .photo-break { height: 40vh; min-height: 250px; }
}

@media (max-width: 480px) {
  nav { gap: 0.6rem; padding: 0.8rem 1rem; }
  nav a { font-size: 0.62rem; letter-spacing: 0.1em; }
  .gallery-grid { grid-template-columns: 1fr; }
  .pups-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}
