:root {
  --primary: #bc6c25;
  --primary-dark: #7f4f24;
  --accent: #dda15e;
  --bg: #fefae0;
  --surface: #ffffff;
  --text: #2d2416;
  --text-muted: #6b5c4a;
  --yes: #2a9d8f;
  --no: #e76f51;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(188, 108, 37, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Segoe UI', system-ui, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--primary); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.site-header {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white; padding: 16px 0; position: sticky; top: 0; z-index: 100;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-size: 1.5rem; font-weight: 700; color: white; text-decoration: none; }
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.9); }
.search-box input { padding: 8px 16px; border: none; border-radius: 24px; width: 220px; }

.hero {
  background: linear-gradient(135deg, #7f4f24 0%, var(--accent) 100%);
  color: white; padding: 80px 0; text-align: center;
}
.hero h1 { font-size: 3rem; margin-bottom: 16px; font-weight: 800; }
.hero p { font-size: 1.25rem; opacity: 0.9; max-width: 600px; margin: 0 auto; }
.hero-stats { display: flex; justify-content: center; gap: 48px; margin-top: 40px; }
.hero-stat strong { display: block; font-size: 2rem; }

.section { padding: 64px 0; }
.section-title { font-size: 2rem; margin-bottom: 8px; }
.section-subtitle { color: var(--text-muted); margin-bottom: 32px; }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform 0.2s; }
.card:hover { transform: translateY(-4px); }
.filter-card { width: 100%; border: 0; color: inherit; cursor: pointer; font: inherit; text-align: left; }
.filter-card.is-active { outline: 3px solid var(--accent); transform: translateY(-4px); }
.empty-state { grid-column: 1 / -1; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; text-align: center; color: var(--text-muted); }
.card-image { width: 100%; height: 200px; object-fit: cover; }
.card-body { padding: 20px; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 20px; font-size: 0.75rem; background: #faedcd; color: var(--primary-dark); margin-top: 8px; margin-right: 4px; }

.detail-hero { position: relative; height: 420px; overflow: hidden; }
.detail-hero img { width: 100%; height: 100%; object-fit: cover; }
.detail-hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.75)); color: white; padding: 48px 24px 32px;
}
.detail-content { padding: 48px 0; }
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.info-box { background: var(--surface); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 24px; }
.info-box h2 { font-size: 1.3rem; margin-bottom: 16px; color: var(--primary-dark); }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.fact-item { padding: 12px; background: var(--bg); border-radius: 8px; }
.fact-item label { font-size: 0.75rem; text-transform: uppercase; color: var(--text-muted); }
.fact-item p { font-weight: 600; margin-top: 4px; }
.trait-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #f0e6d6; }
.trait-yes { color: var(--yes); font-weight: 600; }
.trait-no { color: var(--no); font-weight: 600; }
.personality-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.personality-tag { padding: 6px 14px; background: #faedcd; border-radius: 20px; font-size: 0.85rem; }
.faq-item { border-bottom: 1px solid #f0e6d6; padding: 16px 0; }

.site-footer { background: var(--primary-dark); color: rgba(255,255,255,0.8); padding: 48px 0 24px; margin-top: 64px; }
.footer-bottom { text-align: center; font-size: 0.85rem; }

@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .detail-grid, .facts-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}


/* AdSense legal and contact pages */
.legal-hero {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: white;
  padding: 56px 0;
}
.legal-hero h1 { font-size: 2.5rem; margin-bottom: 8px; }
.legal-hero p { max-width: 760px; opacity: 0.92; font-size: 1.05rem; }
.legal-page { padding: 48px 0; }
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 32px;
  align-items: start;
}
.legal-content .info-box h2 { margin-top: 8px; }
.legal-content .info-box h3 { margin: 20px 0 8px; color: var(--primary-dark); }
.legal-content .info-box p,
.legal-content .info-box li { margin-bottom: 10px; color: var(--text); }
.legal-content ul { padding-left: 20px; margin: 10px 0 18px; }
.legal-meta {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  position: sticky;
  top: 92px;
}
.legal-meta a { display: block; margin: 8px 0; font-weight: 600; }
.contact-form label {
  display: block;
  font-weight: 600;
  margin: 14px 0 6px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8e2ea;
  border-radius: 8px;
  font: inherit;
  background: white;
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form button,
.contact-actions button {
  margin-top: 16px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.contact-form button:hover,
.contact-actions button:hover { opacity: 0.9; }
.form-note {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--text-muted);
}
.footer-legal {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}
.footer-legal a { color: rgba(255,255,255,0.85); font-weight: 600; }
@media (max-width: 860px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-meta { position: static; }
}

/* Dog homepage redesign */
body { background: #fff8ed; }
.site-header { background: #2b2118; box-shadow: 0 10px 30px rgba(43, 33, 24, 0.18); }
.dog-hero {
  background:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.28), transparent 20rem),
    linear-gradient(135deg, #2b2118 0%, #7f4f24 48%, #d99b5f 100%);
  text-align: left;
  padding: 92px 0;
}
.dog-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 48px; align-items: center; }
.dog-hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: 0.95; max-width: 760px; letter-spacing: -0.05em; }
.dog-hero p { margin: 20px 0 0; max-width: 620px; }
.eyebrow { display: inline-block; margin-bottom: 16px; color: #ffd7a2; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.dog-hero .hero-stats { justify-content: flex-start; gap: 18px; }
.dog-hero .hero-stat { background: rgba(255,255,255,0.13); border: 1px solid rgba(255,255,255,0.18); border-radius: 18px; padding: 16px 20px; min-width: 120px; }
.hero-dog-card { background: #fff; color: var(--text); border-radius: 30px; overflow: hidden; box-shadow: 0 28px 80px rgba(43,33,24,.32); }
.hero-dog-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.hero-dog-card div { padding: 22px; }
.matcher-section { padding-top: 40px; }
.matcher-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 28px; align-items: stretch; }
.matcher-controls { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.matcher-controls label { background: #fff; border-radius: 18px; padding: 16px; box-shadow: var(--shadow); font-weight: 800; color: var(--primary-dark); }
.matcher-controls select { width: 100%; margin-top: 10px; padding: 11px 12px; border: 1px solid #ead8bf; border-radius: 12px; font: inherit; background: #fffaf3; }
.match-result {
  background: #2b2118;
  color: #fff8ed;
  border-radius: 26px;
  padding: 28px;
  box-shadow: 0 18px 50px rgba(43,33,24,.25);
}
.match-result span { color: #ffd7a2; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; font-size: .75rem; }
.match-result h3 { font-size: 2rem; margin: 12px 0; }
.match-result a { color: #ffd7a2; font-weight: 900; }
#breeds .cards-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
#breeds .card { border-radius: 26px; box-shadow: 0 16px 40px rgba(91, 62, 31, .13); }
#breeds .card-image { height: 230px; }
.dog-size-section { background: #fff; border-top: 1px solid #f1dfc5; border-bottom: 1px solid #f1dfc5; }
.dog-size-section .filter-card { border: 1px solid #f0dcc1; border-radius: 22px; box-shadow: none; }
@media (max-width: 860px) {
  .dog-hero-grid, .matcher-grid, .matcher-controls { grid-template-columns: 1fr; }
  .dog-hero .hero-stats { flex-direction: column; }
}

