/* ================================
   Pet Family — style.css
   Design by Uday Pratap
==================================*/

:root {
  --navy: #0F2A3D;
  --navy-dark: #0A1B28;
  --charcoal: #14181D;
  --charcoal-deep: #0D0F13;
  --sky: #3FA9F5;
  --gold: #D4AF37;
  --gold-bright: #F4C430;
  --rose: #B76E79;
  --cream: #FAF7F0;
  --white: #FFFFFF;
  --ink: #1C2B33;
  --muted: #63707A;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --shadow-soft: 0 12px 30px rgba(13, 15, 19, 0.14);
  --shadow-strong: 0 22px 48px rgba(13, 15, 19, 0.28);

  --font-display: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.section-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-eyebrow {
  font-family: var(--font-display);
  color: var(--sky);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 14px;
}

.section-subtitle {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 40px;
  max-width: 560px;
}

section { padding: 90px 0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-icon { font-size: 1.1rem; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 100%);
  color: var(--charcoal-deep);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(212, 175, 55, 0.5); }

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(37, 211, 102, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-3px); }

.contact .btn-outline {
  color: var(--navy);
  border-color: var(--navy);
}
.contact .btn-outline:hover { background: rgba(11,60,93,0.08); }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 2px 24px rgba(13,15,19,0.1);
  border-bottom: 1px solid rgba(212,175,55,0.15);
  transition: background var(--transition);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--navy);
}
.logo-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}

.nav-link {
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0%;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active-link { color: var(--navy); }
.nav-link:hover::after, .nav-link.active-link::after { width: 100%; }

.header-cta {
  background: var(--navy);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition);
}
.header-cta:hover { background: var(--navy-dark); transform: translateY(-2px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url('dog.jpg') center 25%/cover no-repeat;
  transform: scale(1.05);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,17,24,0.78) 0%, rgba(15,42,61,0.6) 45%, rgba(10,15,20,0.94) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 800px;
  padding: 0 24px;
}

.hero-eyebrow {
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold);
  margin-bottom: 18px;
  font-size: 0.95rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 18px;
}
.hero-title span { display: block; color: var(--sky); }

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.scroll-cue {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 42px;
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 20px;
}
.scroll-cue span {
  position: absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { top: 8px; opacity: 1; }
  70% { top: 22px; opacity: 0; }
  100% { top: 22px; opacity: 0; }
}

/* ===== Ad Slots ===== */
.ad-slot {
  padding: 30px 24px;
  display: flex;
  justify-content: center;
}
.ad-placeholder {
  width: 100%;
  max-width: 728px;
  height: 90px;
  border: 2px dashed rgba(11,60,93,0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  background: rgba(63,169,245,0.05);
}
@media (max-width: 600px) {
  .ad-placeholder { height: 100px; }
}

/* ===== About ===== */
.about { background: var(--cream); }

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 50px;
  align-items: start;
}

.about-text p { margin-bottom: 18px; color: var(--muted); font-size: 1.02rem; }
.about-text strong { color: var(--navy); }

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.highlight-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}
.highlight-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.highlight-icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.highlight-card h3 { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); margin-bottom: 6px; }
.highlight-card p { color: var(--muted); font-size: 0.9rem; }

/* ===== Services ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(11,60,93,0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: left;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.service-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: var(--shadow-strong);
  border-color: var(--gold);
  background: linear-gradient(160deg, var(--white) 0%, #FBF6E9 100%);
}
.service-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: inline-block;
}
.service-card h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.service-card p { color: var(--muted); font-size: 0.95rem; }

/* ===== Gallery ===== */
.gallery { background: var(--cream); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery-item {
  border: none;
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
}
.gallery-item:hover img { transform: scale(1.08); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(8,42,66,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2000;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 78vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-strong);
}
.lightbox-caption { color: var(--white); margin-top: 16px; font-size: 0.95rem; }
.lightbox-close {
  position: absolute;
  top: 24px; right: 28px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
}

/* ===== Why Us ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.why-card {
  background: linear-gradient(160deg, var(--charcoal) 0%, var(--charcoal-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  border: 1px solid rgba(212,175,55,0.18);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.why-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-strong); border-color: var(--gold); }
.why-icon { font-size: 1.8rem; display: block; margin-bottom: 14px; }
.why-card h3 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 8px; color: var(--gold-bright); }
.why-card p { color: rgba(255,255,255,0.75); font-size: 0.92rem; }

/* ===== Reviews ===== */
.reviews { background: var(--cream); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}
.review-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 14px; }
.review-card p { color: var(--ink); font-style: italic; margin-bottom: 16px; }
.reviewer { color: var(--muted); font-weight: 600; font-size: 0.9rem; }

/* ===== Map ===== */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.map-cta { margin-top: 26px; text-align: center; }

/* ===== Contact ===== */
.contact { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}
.contact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 26px 20px;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition);
}
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-strong); }
.contact-icon { font-size: 1.6rem; display: block; margin-bottom: 10px; }
.contact-card h3 { font-family: var(--font-display); color: var(--navy); font-size: 1rem; margin-bottom: 8px; }
.contact-card p { color: var(--muted); font-size: 0.9rem; }
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ===== Floating Buttons ===== */
.float-btn {
  position: fixed;
  right: 22px;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-strong);
  z-index: 900;
  transition: transform var(--transition);
}
.float-btn:hover { transform: scale(1.1); }
.float-whatsapp { bottom: 96px; background: #25D366; color: var(--white); }
.float-call { bottom: 26px; background: linear-gradient(135deg, var(--gold-bright), var(--gold)); color: var(--charcoal-deep); }

/* ===== Footer ===== */
.site-footer {
  background: var(--charcoal-deep);
  color: rgba(255,255,255,0.85);
  padding: 40px 0;
  text-align: center;
  border-top: 1px solid rgba(212,175,55,0.15);
}
.footer-inner { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.footer-links { display: flex; gap: 10px; font-size: 0.9rem; }
.footer-links a { transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-credit { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-top: 4px; }

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  left: 22px; bottom: 26px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--navy);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 900;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

/* ===== Fade animation ===== */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 68px; right: -100%;
    width: 240px;
    height: calc(100vh - 68px);
    background: var(--white);
    flex-direction: column;
    padding: 30px 24px;
    gap: 22px;
    box-shadow: -6px 0 30px rgba(11,60,93,0.15);
    transition: right var(--transition);
  }
  .main-nav.open { right: 0; }
  .header-cta { display: none; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 64px 0; }
}
