/* ========================================
   Eagle Mountain Siberians - Main Styles
   (Previous polished version)
   ======================================== */

:root {
  --primary: #16352E;
  --primary-light: #1f4a40;
  --accent: #A8B5A2;
  --accent-dark: #8a9a84;
  --bg: #F5F0E6;
  --bg-light: #ffffff;
  --text: #1a1a1a;
  --text-light: #555;
  --border: #ddd;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --header-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  --card-hover-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  --kitten-img-bg: linear-gradient(135deg, #e8f0e9, #d4e0d6);
  --input-bg: #ffffff;
  --footer-bg: #16352E;
  --guardian-band-bg:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(168, 181, 162, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(22, 53, 46, 0.12), transparent 50%),
    linear-gradient(165deg, #eef4ef 0%, #f5f0e6 45%, #e8efe9 100%);
  --guardian-card-bg: #ffffff;
  --guardian-point-bg: #ffffff;
  --guardian-you-bg: #e8f0e9;
  --guardian-note-bg: #fff3cd;
  --guardian-note-color: #6b5200;
  --theme-toggle-bg: #f0ebe3;
  --theme-toggle-border: #ddd;
}

/* Dark mode */
html[data-theme="dark"] {
  --primary: #8fb5a6;
  --primary-light: #a8c9bc;
  --accent: #6d8f7e;
  --accent-dark: #8fb5a6;
  --bg: #0f1412;
  --bg-light: #1a2220;
  --text: #e6ebe8;
  --text-light: #a3b0aa;
  --border: #2c3834;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  --header-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  --card-hover-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  --kitten-img-bg: linear-gradient(135deg, #1e2e28, #243830);
  --input-bg: #141c19;
  --footer-bg: #0a100e;
  --guardian-band-bg:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(109, 143, 126, 0.2), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 100%, rgba(0, 0, 0, 0.35), transparent 50%),
    linear-gradient(165deg, #121a17 0%, #0f1412 45%, #15201c 100%);
  --guardian-card-bg: #1a2220;
  --guardian-point-bg: #1a2220;
  --guardian-you-bg: #24332d;
  --guardian-note-bg: #3d3420;
  --guardian-note-color: #e6d59a;
  --theme-toggle-bg: #24332d;
  --theme-toggle-border: #3a4a44;
  color-scheme: dark;
}

html[data-theme="light"] {
  color-scheme: light;
}

/* Override common inline white section backgrounds in dark mode */
html[data-theme="dark"] .section[style*="background:#fff"],
html[data-theme="dark"] .section[style*="background: #fff"],
html[data-theme="dark"] .section[style*="background:white"] {
  background: var(--bg) !important;
}

/* Smooth theme switch (not on first paint) */
html.theme-ready body,
html.theme-ready body * {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

header {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--header-shadow);
}

/* Theme toggle button */
.theme-toggle {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 999px;
  border: 1.5px solid var(--theme-toggle-border);
  background: var(--theme-toggle-bg);
  color: var(--text);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
}
.theme-toggle:hover {
  transform: scale(1.06);
  border-color: var(--primary);
}
.theme-toggle:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.theme-toggle .theme-icon-sun { display: none; }
.theme-toggle .theme-icon-moon { display: inline; }
html[data-theme="dark"] .theme-toggle .theme-icon-sun { display: inline; }
html[data-theme="dark"] .theme-toggle .theme-icon-moon { display: none; }
.nav-end {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0.45rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; }
.logo-img {
  height: 120px;
  width: auto;
  max-width: min(280px, 42vw);
  object-fit: contain;
  display: block;
}
.logo span { font-size: 1.25rem; line-height: 1.2; }

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.15rem;
  align-items: center;
}

nav a {
  display: block;
  padding: 0.4rem 0.65rem;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
nav a:hover, nav a.active {
  background: var(--primary);
  color: #fff;
  text-decoration: none;
}

.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  padding: 4.5rem 1.5rem;
  text-align: center;
}
.hero-content { max-width: 780px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: 2.6rem; font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
.hero p {
  font-size: 1.15rem;
  opacity: 0.95;
  margin-bottom: 1.75rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-light); border-color: var(--primary-light); color: #fff; }
.btn-accent { background: var(--accent); color: var(--primary); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: var(--primary); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.section .btn-outline, .feature-card .btn-outline { color: var(--primary); border-color: var(--primary); }
.section .btn-outline:hover, .feature-card .btn-outline:hover { background: var(--primary); color: #fff; }

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem;
  text-align: center;
}
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 { font-size: 1.9rem; color: var(--primary); margin-bottom: 0.6rem; }
.section-header p { color: var(--text-light); max-width: 640px; margin: 0 auto; font-size: 1.05rem; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}
.feature-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--card-hover-shadow); }
.feature-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.feature-card h3 { color: var(--primary); margin-bottom: 0.6rem; font-size: 1.15rem; }
.feature-card p, .feature-card li { color: var(--text-light); font-size: 0.95rem; }
.simple-list { list-style: none; display: inline-block; text-align: left; margin-top: 0.5rem; }
.simple-list li { padding: 0.3rem 0; padding-left: 1.2rem; position: relative; }
.simple-list li::before { content: "•"; color: var(--accent); font-weight: bold; position: absolute; left: 0; }

/* ===== Guardian Homes band (homepage priority) ===== */
.guardian-band {
  background: var(--guardian-band-bg);
  border-block: 1px solid var(--border);
  padding: 3.25rem 1.25rem 3.75rem;
}
.guardian-inner {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.guardian-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  box-shadow: 0 4px 14px rgba(22, 53, 46, 0.25);
}
.guardian-title {
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.guardian-lead {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: var(--text-light);
  font-size: 1.08rem;
  line-height: 1.55;
}
.guardian-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2.25rem;
}
.guardian-cat-card {
  background: var(--guardian-card-bg);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border);
}
.guardian-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(22, 53, 46, 0.14);
}
.guardian-cat-photo {
  position: relative;
  height: 200px;
  background: #1a2e28;
  overflow: hidden;
}
.guardian-cat-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.guardian-cat-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(22, 53, 46, 0.9);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
}
.guardian-cat-tag.king {
  background: rgba(139, 105, 20, 0.92);
}
.guardian-cat-card h3 {
  color: var(--primary);
  font-size: 1.1rem;
  margin: 0.85rem 0.5rem 0.2rem;
}
.guardian-cat-card p {
  color: var(--text-light);
  font-size: 0.88rem;
  margin: 0 0.75rem 1rem;
}
.guardian-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: left;
}
.guardian-point {
  background: var(--guardian-point-bg);
  border-radius: 14px;
  padding: 1.35rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.guardian-point.highlight {
  background: linear-gradient(160deg, #16352e 0%, #1f4a40 100%);
  color: #fff;
  border: none;
  box-shadow: 0 10px 30px rgba(22, 53, 46, 0.28);
}
html[data-theme="dark"] .guardian-point.highlight {
  background: linear-gradient(160deg, #1a3d34 0%, #245347 100%);
}
.guardian-point.highlight h3,
.guardian-point.highlight li { color: #fff; }
.guardian-point.highlight li::before { color: var(--accent); }
.guardian-point-icon {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.65rem;
}
.guardian-point-icon.you { background: var(--guardian-you-bg); color: var(--primary); }
.guardian-point-icon.we { background: rgba(255,255,255,0.18); color: #fff; }
.guardian-point-icon.note { background: var(--guardian-note-bg); color: var(--guardian-note-color); }
.guardian-point h3 {
  color: var(--primary);
  font-size: 1.08rem;
  margin-bottom: 0.65rem;
}
.guardian-point ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.guardian-point li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.4;
}
.guardian-point li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}
.guardian-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}
.guardian-cta-main {
  font-size: 1.05rem;
  padding: 0.9rem 1.75rem;
  box-shadow: 0 6px 20px rgba(168, 181, 162, 0.45);
}
.guardian-cta-secondary {
  background: var(--bg-light) !important;
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.guardian-cta-secondary:hover {
  background: var(--primary) !important;
  color: #fff !important;
}
.guardian-footnote {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}
.guardian-footnote a { font-weight: 600; }

@media (max-width: 900px) {
  .guardian-cats { grid-template-columns: repeat(2, 1fr); }
  .guardian-points { grid-template-columns: 1fr; }
  .guardian-cat-photo { height: 180px; }
}
@media (max-width: 480px) {
  .guardian-cats { grid-template-columns: 1fr 1fr; gap: 0.65rem; }
  .guardian-cat-photo { height: 150px; }
  .guardian-band { padding: 2.5rem 1rem 3rem; }
}

.kittens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}
.kitten-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}
.kitten-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12); }
.kitten-image {
  background: var(--kitten-img-bg);
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.kitten-image.has-photo {
  font-size: 0;
  background: #1a1a1a;
}
.kitten-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0 2rem;
}
.photo-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow);
  background: #ddd;
}
.cat-card-image.has-photo {
  font-size: 0;
  height: 220px;
  padding: 0;
  background: #1a1a1a;
}
.cat-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-photo {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
}
.kitten-status {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 50px;
}
.status-available { background: #2e7d32; color: #fff; }
.status-reserved { background: #f9a825; color: #1a1a1a; }
.status-sold { background: #c62828; color: #fff; }
.kitten-info { padding: 1.25rem; }
.kitten-info h3 { color: var(--primary); margin-bottom: 0.35rem; font-size: 1.2rem; }
.kitten-meta { font-size: 0.88rem; color: var(--text-light); margin-bottom: 0.6rem; line-height: 1.45; }
.kitten-price { font-size: 1.25rem; font-weight: 700; color: var(--primary); margin-bottom: 0.9rem; }
.kitten-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.kitten-actions .btn { padding: 0.55rem 1rem; font-size: 0.88rem; flex: 1; min-width: 110px; }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}
.cat-card {
  background: var(--bg-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-card-body { padding: 1.1rem 1rem 1.25rem; }
.cat-card-body h3 { color: var(--primary); margin-bottom: 0.4rem; font-size: 1.05rem; line-height: 1.3; }
.cat-card-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 0.65rem; line-height: 1.45; }
.cat-card-body .btn { margin-top: 0.25rem; font-size: 0.85rem; padding: 0.45rem 0.9rem; }
.cat-card-image {
  background: linear-gradient(135deg, #e8f0e9, #d4e0d6);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
}
.cat-card-body { padding: 1.25rem; }
.cat-card-body h3 { color: var(--primary); margin-bottom: 0.35rem; }
.cat-card-body p { font-size: 0.9rem; color: var(--text-light); }

.contact-form {
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
  text-align: left;
}
.contact-form h2, .contact-form > p { text-align: center; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.4rem; color: var(--primary); font-size: 0.95rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--input-bg);
  color: var(--text);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(22, 53, 46, 0.12);
}
html[data-theme="dark"] .form-group input:focus,
html[data-theme="dark"] .form-group select:focus,
html[data-theme="dark"] .form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(143, 181, 166, 0.25);
}

footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 3rem 1.5rem 1.5rem;
  margin-top: 2rem;
}
.footer-content {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.footer-brand h3 { margin-bottom: 0.5rem; font-size: 1.2rem; }
.footer-brand p, .footer-brand a { color: rgba(255, 255, 255, 0.85); font-size: 0.95rem; }
.footer-brand a:hover { color: #fff; }
.footer-links h4 { margin-bottom: 0.75rem; font-size: 1rem; }
.footer-links ul { list-style: none; }
.footer-links a { color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; display: block; padding: 0.25rem 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  max-width: 1180px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.section img { margin-left: auto; margin-right: auto; display: block; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.kitten-card, .feature-card, .cat-card { animation: fadeInUp 0.5s ease-out both; }
.kitten-card:nth-child(1) { animation-delay: 0.05s; }
.kitten-card:nth-child(2) { animation-delay: 0.1s; }
.kitten-card:nth-child(3) { animation-delay: 0.15s; }
.kitten-card:nth-child(4) { animation-delay: 0.2s; }
.kitten-card:nth-child(5) { animation-delay: 0.25s; }
.kitten-card:nth-child(6) { animation-delay: 0.3s; }

@media (max-width: 900px) {
  .nav-container { flex-direction: column; align-items: flex-start; padding: 0.75rem 1rem; }
  nav ul { flex-wrap: wrap; width: 100%; gap: 0.2rem; }
  .logo-img { height: 100px; max-width: 220px; }
  nav a { padding: 0.35rem 0.55rem; font-size: 0.84rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero { padding: 3rem 1rem; }
  .section { padding: 2.5rem 1rem; }
  .section-header h2 { font-size: 1.55rem; }
  .kittens-grid, .cat-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .logo-img { height: 88px; max-width: 180px; }
  .logo span { font-size: 1.05rem; }
  .hero h1 { font-size: 1.6rem; }
}
