/* ===== CSS Variables ===== */
:root {
  --color-primary: #b8860b;
  --color-primary-dark: #966f09;
  --color-primary-light: #d4a843;
  --color-secondary: #5c4033;
  --color-accent: #e8d5b7;
  --color-bg: #fffaf3;
  --color-bg-alt: #f5ebe0;
  --color-text: #3b3028;
  --color-text-light: #6b5e53;
  --color-white: #ffffff;
  --color-dark: #2c2418;
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --radius: 8px;
  --nav-height: 70px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

/* ===== Layout ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-secondary);
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background-color: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-secondary);
}

.nav-brand:hover {
  color: var(--color-primary);
}

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

.nav-links a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

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

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 40px) 20px 40px;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-accent) 50%, var(--color-bg-alt) 100%);
}

.hero-content {
  max-width: 700px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  color: var(--color-secondary);
  margin-bottom: 16px;
  line-height: 1.2;
}

.tagline {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: 32px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.btn-large {
  padding: 18px 48px;
  font-size: 1.15rem;
}

/* ===== About ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--color-text-light);
}

.about-text p:last-child {
  margin-bottom: 0;
}

/* ===== Placeholder Images ===== */
.placeholder-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background-color: var(--color-accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--color-primary-light);
}

.placeholder-image span {
  color: var(--color-text-light);
  font-style: italic;
  font-size: 0.95rem;
}

.placeholder-large {
  aspect-ratio: 3 / 2;
  max-width: 500px;
}

/* ===== Dog Cards ===== */
.dog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.dog-card {
  background-color: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.dog-image {
  overflow: hidden;
}

.dog-image .placeholder-image {
  border-radius: 0;
  border: none;
  border-bottom: 2px dashed var(--color-primary-light);
}

.dog-info {
  padding: 24px;
}

.dog-info h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--color-secondary);
  margin-bottom: 4px;
}

.dog-role {
  font-size: 0.9rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 12px;
}

.dog-info p:last-child {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ===== Featured Puppy ===== */
.featured-puppy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.featured-info h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-secondary);
  margin-bottom: 8px;
}

.featured-subtitle {
  font-size: 1.05rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 20px;
}

.puppy-details {
  list-style: none;
  margin-bottom: 20px;
}

.puppy-details li {
  padding: 6px 0;
  color: var(--color-text-light);
  border-bottom: 1px solid var(--color-accent);
}

.puppy-details li:last-child {
  border-bottom: none;
}

.featured-info > p {
  color: var(--color-text-light);
  margin-bottom: 24px;
}

/* ===== Contact ===== */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content > p:first-child {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: 28px;
}

.contact-note {
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--color-dark);
  color: var(--color-accent);
  text-align: center;
  padding: 28px 20px;
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .dog-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .about-content,
  .featured-puppy {
    grid-template-columns: 1fr;
  }

  .featured-image {
    display: flex;
    justify-content: center;
  }

  .placeholder-large {
    max-width: 100%;
  }
}

@media (max-width: 700px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .tagline {
    font-size: 1.05rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 36px;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, box-shadow 0.3s ease;
    box-shadow: none;
  }

  .nav-links.open {
    max-height: 280px;
    box-shadow: var(--shadow-md);
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 16px 20px;
    border-bottom: none;
  }

  .nav-links a:hover {
    background-color: var(--color-bg-alt);
  }
}
