/* styles.css - Premium & Fully Responsive | Optimized for Speed & SEO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #FFFCF5;
  color: #4A3629;
  scroll-behavior: smooth;
}

h1, h2, h3, .logo, .playfair {
  font-family: 'Playfair Display', serif;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

:root {
  --cream: #FFF8ED;
  --white: #FFFFFF;
  --gold: #D4AF37;
  --gold-light: #F5E6B8;
  --soft-brown: #B87C4F;
  --brown-dark: #7A5438;
  --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 20px 25px -12px rgba(0, 0, 0, 0.1);
}

/* Header & Nav */
.navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 0;
}

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

.logo {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--brown-dark);
}

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

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--soft-brown);
  transition: 0.2s;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
}

.mobile-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Buttons */
.btn-primary {
  background: var(--gold);
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover {
  background: #C19B2E;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  padding: 10px 26px;
  border-radius: 40px;
  font-weight: 600;
  color: var(--soft-brown);
  cursor: pointer;
  transition: 0.2s;
}

.btn-outline:hover {
  background: var(--gold-light);
}

/* Premium Puppy Card */
.puppy-card {
  background: var(--white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.puppy-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.puppy-card .image-wrapper {
  position: relative;
  overflow: hidden;
  background: var(--cream);
  aspect-ratio: 1 / 0.9;
}

.puppy-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.puppy-card:hover img {
  transform: scale(1.03);
}

.puppy-card .badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gold);
  color: white;
  padding: 6px 14px;
  border-radius: 40px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  backdrop-filter: blur(2px);
}

.puppy-card .card-content {
  padding: 22px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.puppy-card .puppy-name {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  color: var(--brown-dark);
  margin-bottom: 6px;
}

.puppy-card .puppy-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--soft-brown);
  border-bottom: 1px solid var(--gold-light);
  padding-bottom: 10px;
}

.puppy-card .puppy-meta i {
  margin-right: 5px;
  color: var(--gold);
}

.puppy-card .description {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #5a4a3c;
  margin-bottom: 20px;
  flex: 1;
}

.puppy-card .button-group {
  display: flex;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.puppy-card .button-group .btn-outline,
.puppy-card .button-group .btn-primary {
  flex: 1;
  text-align: center;
  padding: 10px 6px;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 40px;
  transition: all 0.2s;
  cursor: pointer;
}

.puppy-card .button-group .btn-outline {
  background: transparent;
  border: 1.5px solid var(--gold);
  color: var(--soft-brown);
}

.puppy-card .button-group .btn-outline:hover {
  background: var(--gold-light);
}

.puppy-card .button-group .btn-primary {
  background: var(--gold);
  border: none;
  color: white;
}

.puppy-card .button-group .btn-primary:hover {
  background: #C19B2E;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0.2s, opacity 0.2s;
}

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

.modal-content {
  background: var(--white);
  max-width: 550px;
  width: 90%;
  border-radius: 32px;
  padding: 28px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: fadeUp 0.3s ease;
}

@keyframes fadeUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 28px;
  cursor: pointer;
  color: var(--soft-brown);
}

/* Forms */
input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border-radius: 24px;
  border: 1px solid #EADBCE;
  background-color: var(--cream);
  margin-top: 6px;
  margin-bottom: 14px;
  font-family: inherit;
}

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

/* Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
}

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

section {
  margin: 70px 0;
}

.hero {
  background: linear-gradient(135deg, #FFF8ED, #FFF3E0);
  border-radius: 48px;
  padding: 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 6vw, 3rem);
  line-height: 1.2;
  word-break: break-word;
}

footer {
  background: #F5EDE3;
  padding: 40px 0 24px;
  margin-top: 60px;
  text-align: center;
}

.sticky-contact {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--gold);
  border-radius: 60px;
  padding: 12px 20px;
  display: flex;
  gap: 16px;
  z-index: 99;
  box-shadow: var(--shadow-md);
}

.sticky-contact a {
  color: white;
  font-size: 1.4rem;
  transition: transform 0.2s;
}

.sticky-contact a:hover {
  transform: scale(1.1);
}

/* Accordion */
.accordion-item {
  background: var(--white);
  border-radius: 20px;
  margin-bottom: 12px;
  padding: 6px 16px;
}

.accordion-question {
  font-weight: 600;
  padding: 16px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
}

.accordion-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

/* Contact page premium styling */
.contact-info-premium {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 40px 0;
}

.contact-card {
  background: var(--white);
  padding: 32px 24px;
  border-radius: 32px;
  text-align: center;
  flex: 1;
  min-width: 200px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s;
}

.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.contact-card i {
  font-size: 2.5rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.contact-card a {
  text-decoration: none;
  color: var(--brown-dark);
  font-weight: 500;
  display: inline-block;
  margin-top: 8px;
  word-break: break-all;
}

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

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
  background: var(--cream);
  padding: 20px;
  border-radius: 60px;
  justify-content: center;
}

.filter-bar select,
.filter-bar input {
  background: white;
  border: 1px solid var(--gold-light);
  border-radius: 40px;
  padding: 10px 20px;
  font-size: 0.9rem;
  min-width: 140px;
  cursor: pointer;
}

/* Video player */
video {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  background: #000;
}

video:focus {
  outline: none;
}

/* ============================================ */
/* RESPONSIVE DESIGN - Consolidated Media Queries */
/* ============================================ */

/* Tablet and Mobile (max-width: 768px) */
@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  h1 {
    font-size: 1.8rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero {
    padding: 32px 20px;
  }
  
  .hero h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }
  
  .btn-primary,
  .btn-outline {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .flex-between {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  section {
    margin: 50px 0;
  }
  
  .puppy-card img {
    height: 220px;
  }
  
  .modal-content {
    width: 95%;
    padding: 20px;
    max-height: 80vh;
  }
  
  .sticky-contact {
    bottom: 16px;
    right: 16px;
    padding: 8px 16px;
    gap: 12px;
  }
  
  .sticky-contact a {
    font-size: 1.2rem;
  }
  
  .contact-info-premium {
    flex-direction: column;
    text-align: center;
  }
  
  .filter-bar {
    border-radius: 32px;
    padding: 16px;
    gap: 12px;
  }
  
  .filter-bar select,
  .filter-bar input {
    width: 100%;
  }
}

/* Mobile only (max-width: 640px) - Button stacking */
@media (max-width: 640px) {
  .puppy-card .button-group {
    flex-direction: column;
    gap: 10px;
  }
  
  .puppy-card .button-group .btn-outline,
  .puppy-card .button-group .btn-primary {
    width: 100%;
  }
  
  .puppy-card .card-content {
    padding: 18px 16px 20px;
  }
  
  .puppy-card .puppy-name {
    font-size: 1.3rem;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.5rem;
  }
}

/* Mobile menu toggle */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 14px;
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .mobile-menu {
    display: block;
  }
}
/* Mobile Menu Styles - ONLY ON MOBILE */
.mobile-menu {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-close {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  z-index: 1001;
  color: var(--brown-dark);
}

/* These styles ONLY apply on mobile devices (max-width: 768px) */
@media (max-width: 768px) {
  .mobile-menu {
    display: block;
  }
  
  .mobile-menu-close.show {
    display: block;
  }
  
  .mobile-menu.show {
    display: none;
  }
  
  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    gap: 14px;
    background: var(--white);
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    box-shadow: var(--shadow-md);
    z-index: 1000;
  }
  
  .nav-links.show {
    display: flex;
  }
  
  .nav-container {
    position: relative;
  }
}

/* On desktop (min-width: 769px), these styles ensure the close icon never shows */
@media (min-width: 769px) {
  .mobile-menu,
  .mobile-menu-close {
    display: none !important;
  }
  
  .nav-links {
    display: flex !important;
    position: static;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
}