/* Encanto Mirada — dark edition
   Palette: espresso #14100D → #241A13, gold-brown #C08A4E / #8B5A2B, sand text #EFE6D6 */

:root {
  --bg: #14100D;
  --bg-2: #1B1511;
  --surface: #241A13;
  --surface-2: #2E2118;
  --fg: #EFE6D6;
  --muted: #A89578;
  --border: #3A2A1D;
  --border-soft: #2A1F16;
  --accent: #C08A4E;
  --accent-deep: #8B5A2B;
  --accent-on: #14100D;
  --radius: 4px;
  --maxw: 1200px;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.55);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: 'PT Root UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* warm grain over the whole page */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(rgba(192, 138, 78, 0.035) 1px, transparent 1px),
    radial-gradient(rgba(239, 230, 214, 0.018) 1px, transparent 1px);
  background-size: 3px 3px, 7px 7px;
  background-position: 0 0, 1px 2px;
  mix-blend-mode: overlay;
}

header, main, footer { position: relative; z-index: 1; }

h1, h2, h3, h4, .display { font-family: 'Cormorant Garamond', serif; font-weight: 500; line-height: 1.08; margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 18px; } }

.section { padding: 88px 0; }
@media (max-width: 900px) { .section { padding: 60px 0; } }
.section--alt { background: var(--bg-2); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: 16px; line-height: 1.7; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(20, 16, 13, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border); }
.brand span { font-family: 'Cormorant Garamond', serif; font-size: 22px; letter-spacing: 0.04em; line-height: 1; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  transition: color 0.25s ease;
}
.nav a:hover, .nav a:focus-visible { color: var(--fg); }
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }

.burger {
  display: none;
  background: transparent;
  border: 0;
  padding: 10px;
  cursor: pointer;
  line-height: 0;
}
.burger svg { width: 24px; height: 24px; stroke: var(--fg); }
.mobile-nav {
  display: none;
  border-top: 1px solid var(--border-soft);
  padding: 20px 0 26px;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--border-soft);
}
@media (max-width: 1020px) {
  .nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 760px) {
  .site-header .bar > .btn--gold { display: none; }
  .brand span { font-size: 20px; white-space: nowrap; }
  .site-header .bar { gap: 14px; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--accent); color: var(--accent-on); }
.btn--gold:hover { background: #D9A468; }
.btn--line { border-color: var(--border); color: var(--fg); background: transparent; }
.btn--line:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghostline { border-color: rgba(239, 230, 214, 0.32); color: var(--fg); background: transparent; }
.btn--ghostline:hover { border-color: var(--fg); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.55; cursor: default; transform: none; }

.link-underline { position: relative; display: inline-block; }
.link-underline::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.link-underline:hover::after, .link-underline:focus-visible::after { transform: scaleX(1); }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: contrast(1.04) saturate(0.92) brightness(0.86);
  animation: heroIn 1.5s ease-out both;
}
@keyframes heroIn { from { opacity: 0; transform: scale(1.05); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .hero__img { animation: none; }
  html { scroll-behavior: auto; }
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(20, 16, 13, 0.96) 4%, rgba(20, 16, 13, 0.45) 42%, rgba(20, 16, 13, 0.25) 70%, rgba(20, 16, 13, 0.55) 100%),
    radial-gradient(90% 60% at 60% 20%, rgba(192, 138, 78, 0.12), transparent 70%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding: 0 24px 76px; }
.hero__inner .wrap { padding: 0; }
.hero__mark {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(46px, 9vw, 104px);
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}
.hero h1 small {
  display: block;
  font-family: 'PT Root UI', sans-serif;
  font-size: 12px;
  letter-spacing: 0.34em;
  color: var(--muted);
  margin-top: 14px;
  text-transform: uppercase;
}
.hero__text { max-width: 620px; margin-top: 26px; color: rgba(239, 230, 214, 0.82); font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- about ---------- */
.split { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .split, .split[style] { grid-template-columns: 1fr !important; gap: 40px; } }
.figure { position: relative; }
.figure img { width: 100%; height: 560px; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 900px) { .figure img { height: 380px; } }
.figure__tag {
  position: absolute;
  right: -12px;
  bottom: -12px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 18px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.figure__tag b { display: block; font-family: 'Cormorant Garamond', serif; font-size: 34px; line-height: 1; color: var(--accent); font-weight: 500; }
.figure__tag span { display: block; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

.prose p { margin: 0 0 18px; color: rgba(239, 230, 214, 0.82); }
.prose strong { color: var(--fg); font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 40px; margin-top: 46px; max-width: 560px; }
.facts__num { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 30px; color: var(--accent); line-height: 1; }
.facts h3 { font-size: 21px; margin: 8px 0 4px; }
.facts p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- puppies ---------- */
.puppy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
@media (max-width: 1020px) { .puppy-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .puppy-grid { grid-template-columns: 1fr; } }

.puppy { border: 1px solid var(--border-soft); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: transform 0.35s ease, border-color 0.35s ease; }
.puppy:hover { transform: translateY(-4px); border-color: var(--border); }
.puppy__img { aspect-ratio: 4 / 5; overflow: hidden; background: #100C09; }
.puppy__img img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.88) contrast(1.04) brightness(0.94); transition: transform 0.6s ease; }
.puppy:hover .puppy__img img { transform: scale(1.04); }
.puppy__body { padding: 24px 22px 26px; display: flex; flex-direction: column; flex: 1; }

.pill {
  display: inline-block;
  padding: 5px 11px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 2px;
  white-space: nowrap;
}
.pill--free { background: var(--accent); color: var(--accent-on); }
.pill--reserved { background: transparent; color: var(--accent); border: 1px solid var(--accent-deep); }
.pill--sold { background: transparent; color: var(--muted); border: 1px solid var(--border); }

.puppy__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.puppy__breed { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.puppy h3 { font-size: 30px; margin: 10px 0 0; }
.puppy__desc { margin: 10px 0 0; font-size: 14px; color: var(--muted); line-height: 1.65; }

.spec { margin: 20px 0 0; border-top: 1px solid var(--border-soft); padding-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; text-align: right; color: var(--fg); }
.spec .price { color: var(--accent); }

.puppy__actions { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }
.puppy__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.puppy__row .btn { padding: 12px 10px; font-size: 11px; letter-spacing: 0.1em; }
.puppy__parents { margin-top: 14px; font-size: 13px; color: var(--muted); }
.puppy__parents a { color: var(--accent); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border-soft); margin-bottom: 40px; }
.filter-btn {
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 12px 18px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.filter-btn:hover { color: var(--fg); }
.filter-btn.is-active { color: var(--fg); border-bottom-color: var(--accent); }

/* ---------- litters & parents ---------- */
.litter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 1020px) { .litter-grid { grid-template-columns: 1fr; } }
.litter {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 30px 26px 28px;
  display: flex;
  flex-direction: column;
}
.litter h3 { font-size: 26px; margin: 8px 0 0; }
.litter__kennel { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.litter p { font-size: 14px; color: var(--muted); line-height: 1.65; }
.litter__tests { margin: 14px 0 0; font-size: 13px; color: rgba(239, 230, 214, 0.72); }
.litter__list { margin: 16px 0 0; font-size: 14px; }
.litter__list li { padding: 6px 0; border-bottom: 1px solid var(--border-soft); }
.litter__list a { color: var(--accent); }
.litter .btn { margin-top: 22px; align-self: flex-start; }

/* ---------- breed ---------- */
.breed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 900px) { .breed-grid { grid-template-columns: 1fr; gap: 44px; } }
.breed img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); filter: saturate(0.9) brightness(0.92); }
.breed h3 { font-size: 34px; margin: 26px 0 0; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.breed h3 em { font-family: 'Cormorant Garamond', serif; color: var(--accent); font-size: 19px; font-weight: 400; }
.breed p { color: rgba(239, 230, 214, 0.82); }
.breed dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 22px 0 0; border-top: 1px solid var(--border-soft); padding-top: 20px; font-size: 14px; }
.breed dt { color: var(--muted); }
.breed dd { margin: 0; text-align: right; }

.divider-mark { display: flex; align-items: center; gap: 16px; justify-content: center; color: var(--accent); margin-bottom: 26px; }
.divider-mark i { flex: 1; max-width: 90px; height: 1px; background: var(--border); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 44px; } }
.contact-line { margin-bottom: 26px; }
.contact-line .k { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 4px; }
.contact-line .v { font-family: 'Cormorant Garamond', serif; font-size: 26px; }
.contact-line .v.small { font-family: 'PT Root UI', sans-serif; font-size: 14px; color: var(--accent); margin-top: 6px; display: inline-block; }
.socials { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--border-soft); }
.socials a { display: block; padding: 8px 0; color: var(--muted); font-size: 15px; }
.socials a:hover { color: var(--accent); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 22px; }
.field label { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-family: inherit;
  font-size: 16px;
  color: var(--fg);
  border-radius: 0;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 96px; }
.field select option { background: var(--surface); color: var(--fg); }
.field input::placeholder, .field textarea::placeholder { color: rgba(168, 149, 120, 0.6); }
.puppy__tel { display: block; text-align: center; font-size: 12px; letter-spacing: 0.08em; color: var(--muted); padding: 2px 0 0; transition: color 0.2s ease; }
.puppy__tel:hover { color: var(--accent); }

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 34px 30px 28px;
}
.contact-card__title { font-size: clamp(26px, 3.2vw, 34px); margin: 10px 0 8px; }
.contact-card__sub { font-size: 14px; color: var(--muted); margin: 0 0 24px; line-height: 1.6; }
.contact-card__links { display: flex; flex-direction: column; gap: 10px; }
.contact-card__links .btn { padding: 14px 16px; font-size: 12px; letter-spacing: 0.06em; }
.contact-card__note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--border-soft); font-size: 12px; color: var(--muted); }
@media (max-width: 480px) {
  .contact-card { padding: 26px 20px 22px; }
  .contact-card__links .btn { font-size: 11px; letter-spacing: 0.03em; padding: 13px 10px; }
}
.form-note { font-size: 12px; color: var(--muted); margin: 16px 0 0; line-height: 1.6; }
.form-note a { color: var(--accent); }

.form-success {
  border: 1px solid var(--accent-deep);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
}
.form-success h3 { font-size: 27px; color: var(--accent); }
.form-success p { color: rgba(239, 230, 214, 0.82); font-size: 15px; }
.form-success ul { margin-top: 12px; }
.form-success li { color: var(--muted); font-size: 14px; padding: 4px 0; }
.form-success li a { color: var(--accent); }

.form-alt {
  margin-top: 26px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.form-alt span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* ---------- modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 8, 6, 0.78);
  backdrop-filter: blur(6px);
}
.modal.is-open { display: flex; }
.modal__box {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px 34px;
  box-shadow: var(--shadow);
}
.modal__close {
  position: absolute;
  top: 14px; right: 16px;
  background: transparent;
  border: 0;
  font-size: 26px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
}
.modal__close:hover { color: var(--fg); }
.modal h3 { font-size: 32px; }
.modal__sub { color: var(--muted); font-size: 14px; margin-top: 8px; }
body.modal-open { overflow: hidden; }

/* ---------- footer ---------- */
.site-footer { background: #100C09; border-top: 1px solid var(--border-soft); padding: 68px 0 34px; }
.footer-grid { display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.site-footer h4 { font-family: 'PT Root UI', sans-serif; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); font-weight: 400; margin: 0 0 18px; }
.site-footer li, .site-footer p { font-size: 15px; color: var(--muted); padding: 5px 0; }
.site-footer a:hover { color: var(--accent); }
.footer-mark { display: flex; align-items: center; gap: 14px; color: var(--accent); margin-top: 22px; }
.footer-mark span { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.footer-bottom {
  margin-top: 48px;
  padding-top: 22px;
  border-top: 1px solid var(--border-soft);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- inner pages ---------- */
.page-hero { padding: 76px 0 56px; border-bottom: 1px solid var(--border-soft); }
.crumbs { font-size: 12px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--accent); }
.page-hero h1 { font-size: clamp(38px, 6vw, 64px); }
.parent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.parent-grid--three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .parent-grid--three { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 800px) { .parent-grid { grid-template-columns: 1fr; } }
.parent img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); filter: saturate(0.9) brightness(0.94); }
.parent h3 { font-size: 26px; margin: 18px 0 0; }
.parent .role { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.parent p { font-size: 14px; color: var(--muted); }
.parent .note { font-size: 12px; color: rgba(168, 149, 120, 0.75); font-style: italic; }
.puppy-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.puppy-links a {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  font-size: 13px;
  color: var(--fg);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.puppy-links a:hover { border-color: var(--accent); color: var(--accent); }
.backlink { display: inline-block; margin-top: 40px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
