@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@400;500;600;700&display=swap');

:root {
  --cream: #FAF8F5;
  --cream-dark: #F0EBE3;
  --sage: #6B9E7E;
  --sage-light: #D4E5D9;
  --teal: #4A90A4;
  --teal-light: #C8DBE3;
  --teal-dark: #2D6275;
  --lavender: #8B7AAF;
  --lavender-light: #DDD6EA;
  --gold: #C4934A;
  --gold-light: #EDE1CC;
  --text-dark: #1A1A1A;
  --text-medium: #4A4A4A;
  --text-light: #7A7A7A;
  --white: #FFFFFF;
  --card-bg: #FFFFFF;
  --border: rgba(0, 0, 0, 0.06);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.16);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--cream);
  color: var(--text-dark);
  line-height: 1.7;
}

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ===== HEADER ===== */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
}

nav {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

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

.logo-icon { font-size: 1.8rem; }

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-medium);
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width var(--transition);
}

.nav-links a:hover, .nav-links a.active { color: var(--teal-dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* ===== CAROUSEL ===== */
.carousel {
  position: relative;
  width: 100%;
  height: 680px;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

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

.carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, transparent 30%, rgba(0,0,0,0.5) 100%);
}

.carousel-caption {
  position: absolute;
  bottom: 100px;
  left: 5%;
  color: white;
  max-width: 560px;
}

.carousel-caption h2 {
  font-size: 3.2rem;
  margin-bottom: 14px;
  font-weight: 600;
}

.carousel-caption p {
  font-size: 1.15rem;
  opacity: 0.92;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  width: 56px;
  height: 56px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.4rem;
  transition: all var(--transition);
  z-index: 10;
}

.carousel-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-50%) scale(1.08);
}

.carousel-btn.prev { left: 28px; }
.carousel-btn.next { right: 28px; }

.carousel-dots {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  transition: all var(--transition);
}

.dot.active {
  background: white;
  width: 32px;
  border-radius: 5px;
}

/* ===== LAYOUT ===== */
section { padding: 80px 2rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 52px;
}

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

.section-title {
  font-size: 2.2rem;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-medium);
  max-width: 580px;
  margin: 0 auto;
}

/* ===== ABOUT ===== */
.about { background: var(--white); padding: 100px 2rem; }

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

.about-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.about-image:hover img { transform: scale(1.06); }

.about-content h2 { font-size: 2.2rem; margin-bottom: 20px; }

.about-content p { color: var(--text-medium); margin-bottom: 16px; font-size: 1.05rem; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 34px;
}

.stat-card {
  text-align: center;
  padding: 22px 14px;
  background: var(--cream);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--teal-dark);
  display: block;
}

.stat-label { font-size: 0.82rem; color: var(--text-light); margin-top: 6px; font-weight: 500; }

/* ===== BREED CARDS ===== */
.featured-breeds { background: var(--cream); }

.breeds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 26px;
}

.breed-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}

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

.breed-card-img-wrap { overflow: hidden; height: 240px; }

.breed-card-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.breed-card:hover .breed-card-img { transform: scale(1.07); }

.breed-card-body { padding: 18px 20px 20px; }

.breed-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

.tag {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tag-teal   { background: var(--teal-light);     color: var(--teal-dark); }
.tag-sage   { background: var(--sage-light);      color: #3D6B3D; }
.tag-lavender { background: var(--lavender-light); color: #5C4080; }
.tag-gold   { background: var(--gold-light);      color: #7A5A1A; }

.breed-card-name { font-size: 1.25rem; margin-bottom: 8px; }

.breed-card-desc {
  font-size: 0.88rem;
  color: var(--text-medium);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.breed-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-top: 1px solid var(--cream-dark);
  background: var(--cream);
}

.breed-card-traits { display: flex; gap: 14px; }

.trait { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.trait-label { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-light); font-weight: 700; }

.trait-dots { display: flex; gap: 3px; }

.trait-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cream-dark); }
.trait-dot.filled { background: var(--teal); }

.read-more {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
  white-space: nowrap;
}

.read-more:hover { gap: 8px; }

/* ===== FACTS ===== */
.facts {
  background: linear-gradient(135deg, #F5F2EE 0%, var(--cream) 50%, #F0EDE3 100%);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.fact-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

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

.fact-icon { font-size: 2.6rem; margin-bottom: 16px; display: block; }

.fact-card h3 { font-size: 1.12rem; margin-bottom: 10px; font-family: 'DM Sans', sans-serif; font-weight: 600; }

.fact-card p { font-size: 0.94rem; color: var(--text-medium); line-height: 1.65; }

/* ===== CTA ===== */
.cta-section { text-align: center; padding: 80px 2rem; background: var(--white); position: relative; overflow: hidden; }
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--lavender), var(--gold));
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 38px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: white;
  box-shadow: 0 6px 24px rgba(74, 144, 164, 0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(74, 144, 164, 0.45);
}

/* ===== FOOTER ===== */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.65);
  padding: 52px 2rem 24px;
}

.footer-content { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 24px;
}

.footer-brand .logo { color: white; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; }

.footer-links h4 {
  font-family: 'Nunito', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: white;
  margin-bottom: 14px;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-links a { font-size: 0.88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--teal-light); }

.footer-bottom { text-align: center; font-size: 0.82rem; opacity: 0.55; }

/* ===== BREEDS PAGE ===== */
.breeds-hero {
  background: linear-gradient(135deg, var(--teal-light) 0%, var(--cream) 50%, var(--lavender-light) 100%);
  padding: 96px 2rem 64px;
  text-align: center;
  position: relative;
}

.breeds-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(74, 144, 164, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(139, 122, 175, 0.08) 0%, transparent 50%);
  pointer-events: none;
}

.breeds-hero h1 { font-size: 3rem; margin-bottom: 16px; }
.breeds-hero p { font-size: 1.12rem; color: var(--text-medium); max-width: 580px; margin: 0 auto 32px; }

.search-bar { max-width: 480px; margin: 0 auto; position: relative; }

.search-bar input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  border: 2px solid transparent;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  background: var(--white);
  color: var(--text-dark);
  outline: none;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.search-bar input:focus {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  font-size: 1.1rem;
  pointer-events: none;
}

.breeds-full { padding: 56px 2rem 80px; }

.breeds-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  font-size: 1.05rem;
  grid-column: 1/-1;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.modal {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  max-width: 860px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(0.92) translateY(28px);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  scrollbar-width: thin;
}

.modal-overlay.open .modal { transform: scale(1) translateY(0); }

.modal-img-wrap {
  position: relative;
  height: 420px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

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

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255,255,255,0.92);
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  z-index: 10;
  color: var(--text-dark);
}

.modal-close:hover {
  background: white;
  transform: scale(1.08);
}

.modal-body { padding: 36px 40px 40px; }

.modal-breed-name { font-size: 2rem; margin-bottom: 6px; }
.modal-breed-latin { font-size: 1rem; color: var(--text-light); font-style: italic; margin-bottom: 18px; }
.modal-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.modal-desc { font-size: 1.02rem; color: var(--text-medium); line-height: 1.8; margin-bottom: 28px; }

.modal-section-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.trait-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }

.trait-name { width: 140px; font-size: 0.92rem; color: var(--text-medium); flex-shrink: 0; }

.trait-bar-wrap { flex: 1; height: 8px; background: var(--cream-dark); border-radius: 4px; overflow: hidden; }

.trait-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--teal), var(--lavender));
  transition: width 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.modal-info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px; }

.info-item { background: var(--cream); border-radius: var(--radius-sm); padding: 14px 18px; }
.info-label { font-size: 0.74rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-light); font-weight: 600; margin-bottom: 6px; }
.info-value { font-size: 0.96rem; color: var(--text-dark); font-weight: 600; }

/* ===== FADE IN ANIMATION ===== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-image { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .modal-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .carousel { height: 480px; }
  .carousel-caption h2 { font-size: 1.9rem; }
  .carousel-caption { left: 20px; bottom: 72px; }
  .carousel-btn { width: 44px; height: 44px; }
  section { padding: 56px 1.2rem; }
  .breeds-hero { padding: 64px 1.2rem 48px; }
  .breeds-hero h1 { font-size: 2.2rem; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .modal-body { padding: 24px 22px 28px; }
  .modal-info-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links { gap: 1rem; }
  .nav-links a { font-size: 0.88rem; }
  .modal-img-wrap { height: 280px; }
}
