/* ==========================================================
   Cattery site — shared styles
   Palette: ivory, warm sand, charcoal, muted gold
   ========================================================== */

:root {
  --ivory: #faf7f2;
  --cream: #f3ede4;
  --sand: #e6dccd;
  --taupe: #a8998a;
  --stone: #6f655b;
  --charcoal: #2b2724;
  --ink: #1d1a18;
  --gold: #b0905c;
  --gold-soft: #cdb48a;
  --white: #ffffff;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius: 2px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .5em;
  letter-spacing: .01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
p  { margin: 0 0 1.2em; }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.55;
  color: var(--stone);
  font-style: italic;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.narrow { max-width: 760px; }
.center { text-align: center; }
.center .divider { margin-left: auto; margin-right: auto; }

.divider {
  width: 56px;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 1.6rem 0 2rem;
}

section { padding: clamp(72px, 11vw, 140px) 0; }
.bg-cream { background: var(--cream); }
.bg-dark  { background: var(--ink); color: var(--sand); }
.bg-dark h2, .bg-dark h3 { color: var(--ivory); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 400;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1.05em 2.4em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--ivory);
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn-light { background: transparent; color: var(--ivory); border-color: var(--ivory); }
.btn-light:hover { background: var(--ivory); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.center .btn-row { justify-content: center; }

.text-link {
  font-size: .75rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 4px;
  transition: color .3s;
}
.text-link:hover { color: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(168, 153, 138, .25);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-name {
  font-family: var(--serif);
  font-size: 1.65rem;
  letter-spacing: .06em;
  color: var(--ink);
}
.brand-sub {
  font-size: .6rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 6px;
}
.nav-links {
  display: flex;
  gap: clamp(18px, 2.4vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--stone);
  padding: 6px 0;
  position: relative;
  transition: color .3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute;
  left: 10px;
  width: 24px; height: 1px;
  background: var(--ink);
  content: "";
  transition: transform .3s var(--ease), opacity .3s;
}
.nav-toggle span { top: 22px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after  { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  /* backdrop-filter traps fixed-position children inside the header,
     which squashed the open menu into 84px. Solid header on mobile instead. */
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: var(--ivory);
  }
  .nav-links {
    position: fixed;
    top: 84px; left: 0; right: 0;
    height: calc(100vh - 84px);
    height: calc(100dvh - 84px);
    z-index: 49;
    background: var(--ivory);
    visibility: hidden;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s var(--ease);
  }
  .nav-links a { font-size: .9rem; }
  .nav-links { transition: opacity .35s var(--ease), visibility 0s linear .35s; }
  .nav-open .nav-links { opacity: 1; pointer-events: auto; visibility: visible; transition: opacity .35s var(--ease); }
  .nav-open { overflow: hidden; }
}

/* ---------- Photo placeholders ----------
   Replace any .photo div with an <img> once real photos arrive.
   ---------------------------------------- */
.photo {
  position: relative;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(255,255,255,.55), transparent 60%),
    linear-gradient(160deg, var(--sand), #d6c8b5 70%, #cbbba6);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.photo::after {
  content: attr(data-label);
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(43, 39, 36, .55);
  padding: 18px 20px;
}
.photo.wide   { aspect-ratio: 16 / 10; }
.photo.square { aspect-ratio: 1 / 1; }
.photo.tall   { aspect-ratio: 3 / 4; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo.has-img::after { content: none; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  padding: 0;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 8vw, 120px) var(--gutter);
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.hero-copy h1 em { font-style: italic; color: var(--gold); }
.hero-media .photo { height: 100%; aspect-ratio: auto; min-height: 420px; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-media .photo { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head {
  padding: clamp(80px, 12vw, 150px) 0 clamp(56px, 8vw, 96px);
  text-align: center;
  border-bottom: 1px solid rgba(168, 153, 138, .25);
}
.page-head .lede { max-width: 640px; margin: 0 auto; }

/* ---------- Layout helpers ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 860px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ---------- Pillars / feature cards ---------- */
.pillar { padding-top: 1.6rem; border-top: 1px solid var(--gold-soft); }
.pillar .num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--gold);
  letter-spacing: .1em;
  display: block;
  margin-bottom: .8rem;
}
.pillar p { color: var(--stone); font-size: .98rem; }

/* ---------- Breed cards ---------- */
.breed-card .photo { margin-bottom: 1.8rem; }
.breed-card p { color: var(--stone); }

/* ---------- Quote ---------- */
.quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  line-height: 1.4;
  font-style: italic;
  color: var(--ivory);
  max-width: 880px;
  margin: 0 auto;
}
.quote-by {
  display: block;
  margin-top: 2rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: .72rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

/* ---------- Parents ---------- */
.parent-card { background: var(--white); }
.parent-card .body { padding: 28px 30px 34px; }
.parent-card h3 { margin-bottom: .2rem; }
.parent-meta {
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}
.parent-card p { color: var(--stone); font-size: .96rem; margin-bottom: 1rem; }
.facts {
  list-style: none;
  padding: 1rem 0 0;
  margin: 0;
  border-top: 1px solid var(--sand);
  font-size: .85rem;
  color: var(--stone);
}
.facts li { display: flex; justify-content: space-between; padding: 5px 0; gap: 16px; }
.facts li span:first-child { letter-spacing: .12em; text-transform: uppercase; font-size: .7rem; color: var(--taupe); padding-top: 3px; }

/* ---------- Process steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 36px 0;
  border-bottom: 1px solid rgba(168, 153, 138, .3);
}
.steps li:first-child { border-top: 1px solid rgba(168, 153, 138, .3); }
.steps li::before {
  content: "0" counter(step);
  font-family: var(--serif);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--gold);
}
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--stone); margin: 0; }
@media (max-width: 600px) {
  .steps li { grid-template-columns: 1fr; gap: 10px; }
}

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid rgba(168, 153, 138, .25);
  color: var(--stone);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px; top: 24px;
  width: 12px; height: 1px;
  background: var(--gold);
}

/* ---------- Care cards ---------- */
.care-card { background: var(--white); padding: 40px 36px; }
.care-card p { color: var(--stone); font-size: .96rem; margin: 0; }

/* ---------- Gallery ---------- */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.filter-btn {
  font-family: var(--sans);
  font-size: .7rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  background: none;
  border: 1px solid var(--sand);
  color: var(--stone);
  padding: .9em 1.8em;
  cursor: pointer;
  transition: all .3s var(--ease);
}
.filter-btn:hover { border-color: var(--taupe); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery figure { margin: 0; cursor: zoom-in; }
.gallery figure.hidden { display: none; }
.gallery .photo { transition: transform .6s var(--ease); }
.gallery figure:hover .photo { transform: scale(1.015); }
.gallery figcaption {
  padding: 14px 2px 0;
  display: flex;
  justify-content: space-between;
  font-size: .78rem;
  color: var(--stone);
}
.gallery figcaption strong {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--ink);
}
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(29, 26, 24, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-inner { width: min(560px, 100%); }
.lightbox-inner .photo { width: 100%; }
.lightbox-caption { color: var(--sand); text-align: center; margin-top: 16px; font-family: var(--serif); font-size: 1.3rem; }
.lightbox-close {
  position: absolute;
  top: 18px; right: 22px;
  background: none; border: 0;
  color: var(--ivory);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  width: 44px; height: 44px;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form label {
  display: block;
  font-size: .68rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 8px;
}
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--taupe);
  padding: 10px 0;
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
}
.form select { appearance: none; -webkit-appearance: none; cursor: pointer; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--gold); }
.form-note { font-size: .85rem; color: var(--taupe); }
.form-success {
  display: none;
  padding: 40px;
  background: var(--white);
  text-align: center;
}
.form-success.show { display: block; }

.contact-detail { margin-bottom: 2rem; }
.contact-detail .eyebrow { margin-bottom: .4rem; }
.contact-detail p { font-family: var(--serif); font-size: 1.35rem; color: var(--ink); margin: 0; }
.contact-detail a { text-decoration: none; }
.contact-detail a:hover { color: var(--gold); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band p { color: var(--sand); max-width: 560px; margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--taupe);
  padding: 80px 0 36px;
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(168, 153, 138, .2);
}
.site-footer .brand-name { color: var(--ivory); }
.site-footer h4 {
  font-family: var(--sans);
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 400;
  margin-bottom: 1.2rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .5rem; }
.site-footer a { text-decoration: none; transition: color .3s; }
.site-footer a:hover { color: var(--ivory); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .75rem;
  letter-spacing: .08em;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
