/* ============================================================
   FURRY FRIENDS PET SITTING - LUXURY DESIGN SYSTEM
   ============================================================ */

/* CSS Variables */
:root {
  --purple-deep: #540754;
  --purple-light: #7a1a7a;
  --purple-glow: rgba(84, 7, 84, 0.3);
  --gold: #DC9200;
  --gold-light: #f4b942;
  --cream: #F4F0EC;
  --cream-dark: #e8e2db;
  --white: #ffffff;
  --black: #1a1a1a;
  --gray: #666666;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.3);
  --shadow: 0 8px 32px rgba(84, 7, 84, 0.15);
  --shadow-heavy: 0 20px 60px rgba(84, 7, 84, 0.25);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--black);
  line-height: 1.7;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--purple-deep);
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

a {
  color: var(--purple-deep);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold);
}

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

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================================
   NAVIGATION - PURPLE THEME
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 0;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-light));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  transition: var(--transition);
}

.nav.scrolled {
  padding: 0.5rem 0;
  box-shadow: var(--shadow);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
  cursor: pointer;
  transition: var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-cta {
  background: var(--white);
  color: var(--purple-deep) !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 50px;
  box-shadow: var(--shadow);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-heavy);
  background: var(--cream);
}

.nav-cta::after {
  display: none;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--white);
  border-radius: 3px;
  transition: var(--transition);
}

/* ============================================================
   HERO SECTION - SPLIT SCREEN WITH SLIDER
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}

.hero-slider-container {
  position: relative;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(100%);
  transition: transform 0.8s ease-in-out, opacity 0.8s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
}

.hero-slide.slide-out {
  opacity: 1;
  transform: translateX(-100%);
  z-index: 1;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 4rem;
  background: var(--cream);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gold);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 2rem;
  width: fit-content;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title .word {
  display: inline-block;
  overflow: hidden;
}

.hero-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 500px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-light));
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

.btn-secondary {
  background: transparent;
  color: var(--purple-deep);
  border: 2px solid var(--purple-deep);
}

.btn-secondary:hover {
  background: var(--purple-deep);
  color: var(--white);
}

/* ============================================================
   ESTATE PASSPORT MARQUEE
   ============================================================ */
.marquee-section {
  background: var(--purple-deep);
  padding: 2rem 0;
  overflow: hidden;
}

.marquee-wrapper {
  display: flex;
  width: max-content;
}

.marquee-content {
  display: flex;
  gap: 4rem;
  padding: 0 2rem;
  animation: none;
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  white-space: nowrap;
  opacity: 0.9;
  transition: var(--transition);
}

.marquee-item:hover {
  opacity: 1;
}

.marquee-dot {
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
.services {
  padding: 4rem 0 2rem;
  background: var(--white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-block;
  background: rgba(84, 7, 84, 0.1);
  color: var(--purple-deep);
  padding: 0.5rem 1.5rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-header p {
  color: var(--gray);
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Service Feature - Left/Right Layout */
.service-feature {
  padding: 4rem 0;
  background: var(--cream);
}

.service-feature:nth-child(odd) {
  background: var(--white);
}

.service-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-feature-reverse .service-feature-grid {
  direction: rtl;
}

.service-feature-reverse .service-feature-grid>* {
  direction: ltr;
}

.service-feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
}

.service-feature-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.service-feature-image:hover img {
  transform: scale(1.05);
}

.service-feature-content {
  padding: 2rem;
}

.service-feature-content .bento-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-feature-content h3 {
  margin-bottom: 1rem;
}

.service-feature-content p {
  color: var(--gray);
  margin-bottom: 2rem;
  line-height: 1.8;
}

/* 4-Card Services Grid */
.services-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 4rem 0;
}

.service-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
}

.service-card:hover {
  border-color: var(--gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.service-card .bento-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.service-card h4 {
  font-family: 'Playfair Display', serif;
  color: var(--purple-deep);
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.service-card p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Legacy Bento Grid (keeping for backwards compatibility) */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 1.5rem;
  grid-template-areas:
    "daily daily overnight security"
    "meds walks overnight photos";
}

.bento-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  transform-style: preserve-3d;
  border: 2px solid transparent;
}

.bento-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-heavy);
}

.bento-card.daily {
  grid-area: daily;
}

.bento-card.overnight {
  grid-area: overnight;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-light));
  color: var(--white);
}

.bento-card.overnight h3,
.bento-card.overnight p {
  color: var(--white);
}

.bento-card.security {
  grid-area: security;
}

.bento-card.meds {
  grid-area: meds;
}

.bento-card.walks {
  grid-area: walks;
}

.bento-card.photos {
  grid-area: photos;
  background: var(--gold);
}

.bento-card.photos h3,
.bento-card.photos p {
  color: var(--white);
}

.bento-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.bento-card h3 {
  margin-bottom: 0.75rem;
}

.bento-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

.bento-card .card-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--gold) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  transform: translate(-50%, -50%);
}

.bento-card:hover .card-glow {
  opacity: 0.15;
}

/* ============================================================
   PET GALLERY - HORIZONTAL SCROLL
   ============================================================ */
.pet-gallery {
  padding: 6rem 0;
  background: var(--cream);
  overflow: hidden;
}

.pet-gallery .section-header {
  margin-bottom: 3rem;
}

.gallery-scroll-container {
  width: 100%;
  overflow: hidden;
  padding: 1rem 0;
}

.gallery-scroll-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: galleryScroll 38.5s linear infinite;
}

.gallery-scroll-track:hover {
  animation-play-state: paused;
}

@keyframes galleryScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.gallery-card {
  flex-shrink: 0;
  width: 300px;
  height: 350px;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-heavy);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(84, 7, 84, 0.9));
  color: var(--white);
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

.gallery-card:hover .gallery-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card-overlay h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.gallery-card-overlay p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  margin: 0;
}

/* ============================================================
   PRICING CARDS
   ============================================================ */
.pricing {
  padding: 8rem 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem;
  border: 2px solid var(--cream-dark);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-card .btn {
  margin-top: auto;
}

.pricing-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: var(--shadow-heavy);
}

.pricing-card.featured {
  border-color: var(--purple-deep);
  transform: scale(1.05);
}

.pricing-card.featured:hover {
  transform: scale(1.05) translateY(-10px);
}

.pricing-badge {
  position: absolute;
  top: 1.5rem;
  right: -2rem;
  background: var(--gold);
  color: var(--white);
  padding: 0.5rem 3rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  transform: rotate(45deg);
}

.pricing-header {
  margin-bottom: 2rem;
}

.pricing-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--purple-deep);
}

.pricing-price span {
  font-size: 1rem;
  color: var(--gray);
}

.pricing-features {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-features li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--cream);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: bold;
}

.pricing-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.pricing-card:hover .pricing-expand {
  max-height: 300px;
}

.pricing-expand-content {
  padding-top: 1rem;
  border-top: 1px dashed var(--cream-dark);
}

/* Pricing Tiers */
.pricing-tiers {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.pricing-tiers .tier-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(84, 7, 84, 0.2);
}

.pricing-tiers .tier-item::before {
  display: none;
}

.pricing-tiers .tier-item strong {
  color: var(--purple-deep);
  font-size: 1.1rem;
}

.tier-note {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.5;
  padding: 0.75rem;
  background: rgba(84, 7, 84, 0.05);
  border-radius: var(--radius-sm);
}

.discount-note {
  background: linear-gradient(135deg, var(--gold), #e6a800);
  color: var(--white);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  text-align: center;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

/* Discount Calculator */
.calculator {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: var(--shadow);
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.calculator h3 {
  margin-bottom: 2rem;
}

.calculator-slider {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--cream);
  -webkit-appearance: none;
  margin: 2rem 0;
}

.calculator-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple-deep);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(84, 7, 84, 0.3);
}

.calculator-output {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.calc-days,
.calc-price {
  text-align: center;
}

.calc-days span,
.calc-price span {
  display: block;
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.calc-days strong {
  font-size: 2.5rem;
  color: var(--purple-deep);
  font-family: 'Playfair Display', serif;
}

.calc-price strong {
  font-size: 2.5rem;
  color: var(--gold);
  font-family: 'Playfair Display', serif;
}

.calc-discount {
  background: var(--gold);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transition: var(--transition);
}

.calc-discount.active {
  opacity: 1;
}

/* ============================================================
   REVIEWS - HORIZONTAL SCROLL
   ============================================================ */
.reviews {
  padding: 8rem 0 4rem;
  background: var(--purple-deep);
  overflow: hidden;
}

.reviews .section-header h2,
.reviews .section-header p {
  color: var(--white);
}

.reviews .section-badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.reviews-scroll-container {
  width: 100%;
  overflow: hidden;
  padding: 2rem 0;
}

.reviews-scroll-track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: reviewsScroll 40s linear infinite;
}

.reviews-scroll-track:hover {
  animation-play-state: paused;
}

@keyframes reviewsScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.review-scroll-card {
  flex-shrink: 0;
  width: 450px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-heavy);
  transition: var(--transition);
}

.review-scroll-card:hover {
  transform: translateY(-10px) scale(1.02);
}

.review-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--cream);
}

.review-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.review-stars {
  color: var(--gold);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.review-text {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
  flex-grow: 1;
}

.review-author {
  margin-top: auto;
  padding-top: 1rem;
}

.review-author h4 {
  font-size: 1rem;
  color: var(--purple-deep);
  margin: 0;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact {
  padding: 8rem 0;
  background: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info>p {
  color: var(--gray);
  margin-bottom: 2rem;
}

.contact-details {
  list-style: none;
}

.contact-details li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--cream);
}

.contact-details .icon {
  width: 40px;
  height: 40px;
  background: var(--cream);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-form {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 3rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--purple-deep);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple-deep);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.estate-message {
  background: rgba(84, 7, 84, 0.1);
  color: var(--purple-deep);
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-top: 0.5rem;
  font-size: 0.9rem;
  display: none;
}

.estate-message.active {
  display: block;
}

.form-submit {
  width: 100%;
  padding: 1.25rem;
  font-size: 1.1rem;
  justify-content: center;
  text-align: center;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: linear-gradient(135deg, var(--purple-deep), var(--purple-light));
  color: var(--white);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-grid-3col {
  grid-template-columns: 2fr 1fr 1fr;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  text-align: left;
}

.footer h4 {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.footer-copyright {
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-legal a:hover {
  color: var(--gold);
}

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 3rem;
  max-width: 500px;
  text-align: center;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.modal h3 {
  margin-bottom: 1rem;
}

.modal p {
  color: var(--gray);
  margin-bottom: 2rem;
}

/* ============================================================
   CONFETTI
   ============================================================ */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3000;
  overflow: hidden;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 10px;
  opacity: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-video-container {
    position: relative;
    height: 50vh;
  }

  .hero-content {
    padding: 4rem 2rem;
  }

  .bento-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "daily daily" "overnight security" "meds walks" "photos photos";
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Service feature grids on tablet */
  .service-feature-grid {
    gap: 2rem;
  }

  .services-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {

  /* Mobile Navigation - Purple text */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    box-shadow: var(--shadow);
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    color: var(--purple-deep) !important;
    font-size: 1.1rem;
    padding: 0.5rem 0;
  }

  .nav-links a:hover {
    color: var(--gold) !important;
  }

  .nav-links .nav-cta {
    background: var(--purple-deep) !important;
    color: var(--white) !important;
    text-align: center;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
  }

  .nav-toggle {
    display: flex;
  }

  /* Hero section mobile fix */
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 90px;
  }

  .hero-slider-container {
    position: relative;
    height: 40vh;
    min-height: 250px;
    max-height: 350px;
  }

  .hero-content {
    padding: 2.5rem 1.5rem;
    text-align: center;
    order: 2;
    align-items: center;
  }

  /* Center the hero badge on mobile */
  .hero-badge {
    margin: 0 auto 1.5rem;
  }

  .hero-video-container {
    order: 1;
    height: 40vh;
    min-height: 250px;
    max-height: 350px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-cta-group {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  /* Service Feature Sections - Stack vertically */
  .service-feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-feature-reverse .service-feature-grid {
    direction: ltr;
  }

  .service-feature-image {
    order: 1;
    max-width: 100%;
    margin: 0 auto;
  }

  .service-feature-image img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
  }

  .service-feature-content {
    order: 2;
    text-align: center;
    padding: 1.5rem 0;
  }

  .service-feature-content .btn {
    width: 100%;
    justify-content: center;
  }

  /* 4 Service Cards - Single column */
  .services-grid-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 2rem 0;
  }

  .service-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
  }

  /* Legacy Bento grid */
  .bento-grid {
    grid-template-columns: 1fr;
    grid-template-areas: "daily" "overnight" "security" "meds" "walks" "photos";
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Footer - 2 column for Quick Links and Connect */
  .footer-grid,
  .footer-grid-3col {
    display: grid;
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-grid-3col {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    justify-items: center;
  }

  .footer-brand {
    align-items: center;
    margin-bottom: 1rem;
    grid-column: span 2;
  }

  .footer-brand p {
    text-align: center;
  }

  /* Quick Links and Connect side by side - equal spacing */
  .footer-grid-3col>div:not(.footer-brand) {
    text-align: center;
    width: 100%;
  }

  /* Footer bottom mobile - stacked with legal links side by side */
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
    text-align: center;
  }

  .pricing-card.featured {
    transform: none;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .review-scroll-card {
    width: 320px;
  }

  /* About/Meet Amy section - image first on mobile */
  .about .container {
    grid-template-columns: 1fr !important;
    text-align: center;
    display: flex !important;
    flex-direction: column;
  }

  .about .container>div:first-child {
    order: 1;
  }

  .about .container>div:first-child img {
    max-width: 300px;
    margin: 0 auto 2rem;
  }

  .about .container>div:last-child {
    order: 2;
  }

  /* Left-align checklist on mobile */
  .about-checklist {
    text-align: left;
    display: inline-block;
  }

  .about .about-image {
    order: 1;
    max-width: 300px;
    margin: 0 auto 2rem;
  }

  .about .about-content {
    order: 2;
  }

  /* Section headers mobile */
  .section-header {
    text-align: center;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  /* Contact section - badge/heading/body centered, but details left-aligned */
  .contact-info {
    text-align: center;
  }

  .contact-info .section-badge {
    display: inline-block;
  }

  .contact-info h2,
  .contact-info>p {
    text-align: center;
  }

  .contact-details {
    align-items: flex-start;
    text-align: left;
  }

  .contact-details li {
    justify-content: flex-start;
  }

  /* Quote form - wider inputs on mobile */
  .quote-form {
    padding: 1.5rem 1rem;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
  }

  /* Reduce gap between pricing and contact */
  .pricing {
    padding-bottom: 3rem;
  }

  .contact {
    padding-top: 3rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 0 10px;
  }

  /* Hero slider - center the image better */
  .hero-slider-container,
  .hero-video-container {
    height: 35vh;
    min-height: 200px;
    max-height: 280px;
  }

  .hero-slide img {
    object-position: center center;
  }

  /* Center the hero badge */
  .hero-badge {
    display: block;
    text-align: center;
    margin: 0 auto 1rem;
  }

  .hero-content {
    padding: 2rem 1rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .pricing-card {
    padding: 1.5rem;
  }

  .pricing-tiers {
    padding: 0.75rem;
  }

  .tier-item {
    font-size: 0.9rem;
  }

  .service-feature {
    padding: 2rem 0;
  }

  .services-grid-4 {
    padding: 1.5rem 0;
  }

  /* Footer links side by side */
  .footer-grid>div:not(.footer-brand) {
    width: 48%;
  }
}