/*
Theme Name: The Lago Family Frenchie Co.
Theme URI: https://houstonfrenchies.com
Author: The Lago Family
Description: A warm, editorial single-page boutique storefront for a family French Bulldog kennel. Hero, filterable puppy store with statuses + financing, slide-out cart, finance estimator, family story, and content sections. Built from a Claude Design handoff.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lago-family-frenchie
*/

:root {
  --cream: #f6f1e7;
  --cream-2: #efe7d5;
  --cream-3: #e9dfca;
  --paper: #fbf8f1;
  --ink: #211b14;
  --brown: #4a3a2c;
  --brown-deep: #382a1e;
  --muted: #6e6253;
  --line: rgba(74, 58, 44, 0.16);
  --line-soft: rgba(74, 58, 44, 0.09);
  --accent: #b5683a;
  --accent-ink: #7c3f1f;
  --ok: #5b7c52;
  --ok-bg: #e7ecdf;
  --reserved: #b98a36;
  --reserved-bg: #f3e9d3;
  --sold: #9b9183;
  --sold-bg: #e8e2d6;
  --display: "Newsreader", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --maxw: 1240px;
  --shadow-card: 0 1px 0 rgba(74,58,44,0.04), 0 18px 40px -28px rgba(56,42,30,0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #fff; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }
@media (max-width: 720px) { .wrap { padding: 0 22px; } }

.display { font-family: var(--display); font-weight: 500; line-height: 0.98; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent-ink);
}

/* ---------- image placeholders (replaces design-tool image-slot) ---------- */
.img-ph {
  position: relative; width: 100%; height: 100%;
  background: var(--cream-2); overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.img-ph img { width: 100%; height: 100%; object-fit: cover; }
.img-ph .img-ph-cap {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; padding: 16px; color: rgba(74,58,44,.55);
  font-size: 13px; font-weight: 500; letter-spacing: .01em;
}
.img-ph .img-ph-cap svg { opacity: .45; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav-brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-size: 20px; font-weight: 600; }
.nav-mark { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--brown);
  display: grid; place-items: center; font-size: 15px; color: var(--brown); }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .18s; }
.nav-links a:hover { color: var(--ink); }
.nav-cart {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  background: var(--brown); color: #fff; border: none; padding: 11px 18px;
  border-radius: 999px; font-size: 14px; font-weight: 600; transition: transform .15s, background .2s;
}
.nav-cart:hover { background: var(--brown-deep); transform: translateY(-1px); }
.nav-cart .count {
  min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; background: var(--accent);
  color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.nav-cart .count[hidden] { display: none; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: none; border-radius: 10px; font-weight: 600; font-size: 15px;
  padding: 15px 26px; transition: transform .15s, background .2s, box-shadow .2s, color .2s;
}
.btn-primary { background: var(--brown); color: #fff; }
.btn-primary:hover { background: var(--brown-deep); transform: translateY(-2px); box-shadow: 0 14px 26px -16px rgba(56,42,30,.8); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brown); background: rgba(74,58,44,0.04); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(0.94); transform: translateY(-2px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* status pills */
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700;
  letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; text-transform: uppercase; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; }
.pill.available { background: var(--ok-bg); color: var(--ok); }
.pill.available .dot { background: var(--ok); }
.pill.reserved { background: var(--reserved-bg); color: var(--reserved); }
.pill.reserved .dot { background: var(--reserved); }
.pill.sold { background: var(--sold-bg); color: var(--sold); }
.pill.sold .dot { background: var(--sold); }

.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp .8s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
  min-height: min(82vh, 760px); padding-block: 56px 64px; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; }
.hero-eyebrow .rule { width: 30px; height: 1.5px; background: var(--accent); }
.hero h1 { font-size: clamp(48px, 6.4vw, 92px); margin: 0 0 28px; color: var(--ink); }
.hero h1 .it { font-style: italic; font-weight: 400; }
.hero-sub { font-size: clamp(18px, 1.5vw, 21px); font-weight: 500; color: var(--muted);
  max-width: 30ch; line-height: 1.5; margin: 0 0 38px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-trust { display: flex; gap: 26px; margin-top: 44px; flex-wrap: wrap; }
.hero-trust .t { display: flex; flex-direction: column; gap: 2px; }
.hero-trust .t b { font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--ink); }
.hero-trust .t span { font-size: 13px; color: var(--muted); font-weight: 500; }
.hero-badge-wrap { position: relative; display: grid; place-items: center; }
.hero-badge { width: min(440px, 90%); aspect-ratio: 1; border-radius: 50%; }
.hero-badge .img-ph { border-radius: 50%; background: transparent; overflow: visible; }
.hero-badge .img-ph img { object-fit: contain; }
.hero-blob { position: absolute; inset: 4%; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, var(--cream-2), var(--cream-3)); z-index: -1; }
.hero-orbit { position: absolute; inset: -2%; border: 1.5px dashed var(--line); border-radius: 50%; }
.paw { position: absolute; color: var(--accent); opacity: .5; font-size: 22px; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; min-height: 0; text-align: center; }
  .hero-grid > * { min-width: 0; }
  .hero-badge-wrap { order: -1; }
  .hero-badge { width: min(440px, 78vw, 40vh); }
  .hero h1 { font-size: clamp(40px, 11vw, 72px); overflow-wrap: break-word; }
  .hero-eyebrow, .hero-cta, .hero-trust { justify-content: center; }
  .hero-eyebrow { max-width: 100%; }
  .hero-sub { max-width: 46ch; margin-inline: auto; }
}

/* ---------- store ---------- */
.store { padding: 84px 0 30px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 40px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(34px, 4vw, 52px); margin: 12px 0 0; color: var(--ink); }
.sec-head p { color: var(--muted); font-size: 16px; max-width: 46ch; margin: 12px 0 0; line-height: 1.55; }
.store-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1.5px solid var(--line); background: transparent; color: var(--muted);
  padding: 9px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; transition: all .18s; }
.chip:hover { border-color: var(--brown); color: var(--ink); }
.chip.on { background: var(--brown); border-color: var(--brown); color: #fff; }

.grid-3 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 900px; margin-inline: auto; }
@media (max-width: 980px) { .grid-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 640px) { .grid-3 { grid-template-columns: 1fr; } }

/* card */
.pcard { background: var(--paper); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .25s; position: relative;
  border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.pcard:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -30px rgba(56,42,30,.6); }
.pcard.is-sold { opacity: .72; }
.pcard[hidden] { display: none; }
.pcard-media { position: relative; aspect-ratio: 4/3.4; background: var(--cream-2); }
.pcard-media .img-ph { width: 100%; height: 100%; }
.pcard-status { position: absolute; top: 14px; left: 14px; z-index: 2; backdrop-filter: blur(3px); }
.pcard-fav { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  border: none; background: rgba(251,248,241,.86); display: grid; place-items: center; font-size: 17px; color: var(--ink);
  transition: transform .15s, background .2s; }
.pcard-fav:hover { transform: scale(1.1); background: #fff; }
.pcard-fav.on { color: var(--accent); }
.pcard-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pcard h3 { font-family: var(--display); font-size: 27px; font-weight: 600; margin: 0; color: var(--ink); }
.pcard .meta { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.pcard .blurb { font-size: 14.5px; color: var(--muted); line-height: 1.5; margin: 0; }
.pcard-tags { display: flex; gap: 7px; flex-wrap: wrap; }
.pcard-tags .tg { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: var(--accent-ink); background: color-mix(in srgb, var(--accent) 13%, transparent);
  padding: 4px 9px; border-radius: 6px; }
.pcard-price { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 6px; border-top: 1px solid var(--line-soft); }
.pcard-price .amt { font-family: var(--display); font-size: 26px; font-weight: 600; color: var(--ink); }
.pcard-price .fin { font-size: 12.5px; color: var(--muted); font-weight: 500; display: block; margin-top: 2px; }
.pcard-price .fin b { color: var(--accent-ink); font-weight: 700; }
.pcard-price .fin a { text-decoration: underline; }
.pcard-actions { display: flex; gap: 8px; }
.pcard-actions .btn { flex: 1; padding: 13px 16px; font-size: 14px; border-radius: 10px; }

/* ---------- content bands ---------- */
section.band { padding: 96px 0; }
.band.cream2 { background: var(--cream-2); }
.band.ink { background: var(--brown-deep); color: #f4ede0; }
.band.ink .eyebrow { color: #d9a877; }
.band.ink h2, .band.ink h3 { color: #fbf6ec; }
.band.ink .muted2 { color: #cdbfab; }

/* story */
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.story-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story-imgs .a, .story-imgs .b { aspect-ratio: 1; border-radius: 18px; overflow: hidden; }
.story-imgs .c { grid-column: 1 / -1; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; }
.story-body h2 { font-size: clamp(32px, 3.6vw, 48px); margin: 14px 0 0; }
.story-body p { color: var(--muted); font-size: 16.5px; line-height: 1.65; margin: 18px 0 0; max-width: 48ch; }
.story-sign { font-family: var(--display); font-style: italic; font-size: 22px; margin-top: 22px; color: var(--ink); }
@media (max-width: 820px) { .story-grid { grid-template-columns: 1fr; gap: 32px; } }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 50px; }
.step { position: relative; }
.step .num { font-family: var(--display); font-size: 17px; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid currentColor; display: grid; place-items: center; margin-bottom: 18px; opacity: .8; }
.step h4 { font-family: var(--display); font-size: 22px; margin: 0 0 8px; font-weight: 600; }
.step p { font-size: 14.5px; line-height: 1.55; margin: 0; }
.band.ink .step p { color: #cdbfab; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; gap: 30px; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* included */
.incl-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.incl-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.incl-item { display: flex; gap: 13px; align-items: flex-start; }
.incl-item .ic { width: 40px; height: 40px; border-radius: 11px; background: var(--cream-2); display: grid;
  place-items: center; font-size: 19px; flex-shrink: 0; }
.incl-item h4 { font-size: 15.5px; margin: 0 0 3px; font-weight: 700; }
.incl-item p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.45; }
.incl-media { aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; background: var(--cream-2); }
@media (max-width: 820px) { .incl-grid { grid-template-columns: 1fr; gap: 34px; } .incl-media { order: -1; aspect-ratio: 16/10; } }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.quote { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px; }
.quote .stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; }
.quote p { font-family: var(--display); font-size: 19px; line-height: 1.45; margin: 0; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: 11px; margin-top: auto; }
.quote .who .avatar { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.quote .who b { font-size: 14px; display: block; }
.quote .who span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 820px) { .quotes { grid-template-columns: 1fr; } }

/* cta */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(34px, 4.4vw, 60px); margin: 16px auto 0; max-width: 16ch; }
.cta-band p { color: #cdbfab; font-size: 17px; margin: 18px auto 32px; max-width: 46ch; }

/* footer */
.foot { background: var(--brown-deep); color: #cdbfab; padding: 48px 0 60px; border-top: 1px solid rgba(255,255,255,.08); }
.foot-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.foot-brand { font-family: var(--display); font-size: 22px; color: #fbf6ec; display: flex; gap: 11px; align-items: center; }
.foot-brand .nav-mark { color: #d9a877; border-color: #d9a877; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h5 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #d9a877; margin: 0 0 14px; }
.foot-col a, .foot-col p { display: block; font-size: 14px; color: #cdbfab; margin: 0 0 9px; transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- cart drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(33,27,20,.42); backdrop-filter: blur(2px);
  z-index: 90; opacity: 0; animation: scrimIn .25s forwards; }
@keyframes scrimIn { to { opacity: 1; } }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 100%); background: var(--cream);
  z-index: 91; display: flex; flex-direction: column; box-shadow: -30px 0 60px -30px rgba(33,27,20,.5);
  transform: translateX(100%); animation: drawerIn .32s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes drawerIn { to { transform: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 18px;
  border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-family: var(--display); font-size: 24px; margin: 0; font-weight: 600; }
.drawer-close { border: none; background: transparent; font-size: 22px; color: var(--muted); width: 36px; height: 36px;
  border-radius: 50%; transition: background .15s; }
.drawer-close:hover { background: rgba(74,58,44,.08); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.drawer-empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.drawer-empty .big { font-size: 40px; margin-bottom: 14px; }
.citem { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.citem-thumb { width: 70px; height: 70px; border-radius: 12px; overflow: hidden; flex-shrink: 0; background: var(--cream-2); }
.citem-info { flex: 1; }
.citem-info h4 { font-family: var(--display); font-size: 19px; margin: 0; font-weight: 600; }
.citem-info .sub { font-size: 13px; color: var(--muted); margin: 2px 0 0; }
.citem-info .amt { font-weight: 700; font-size: 15px; margin-top: 6px; display: block; }
.citem-rm { border: none; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600;
  text-decoration: underline; padding: 4px 0; align-self: flex-start; }
.citem-rm:hover { color: var(--accent-ink); }
.pay-modes { display: flex; flex-direction: column; gap: 10px; margin: 4px 0 18px; }
.pay-mode { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer; transition: all .15s; background: var(--paper); }
.pay-mode.on { border-color: var(--brown); box-shadow: 0 0 0 1px var(--brown) inset; }
.pay-mode .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; flex-shrink: 0; }
.pay-mode.on .radio { border-color: var(--brown); background: radial-gradient(circle, var(--brown) 0 5px, transparent 6px); }
.pay-mode .pm-title { font-weight: 700; font-size: 14.5px; display: block; }
.pay-mode .pm-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; display: block; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 24px; background: var(--paper); }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.drawer-total .lbl { font-size: 14px; color: var(--muted); font-weight: 600; }
.drawer-total .val { font-family: var(--display); font-size: 30px; font-weight: 600; }
.drawer-total .val small { font-size: 16px; color: var(--muted); }
.drawer-note { font-size: 12px; color: var(--muted); margin: 0 0 16px; line-height: 1.45; }
.drawer-foot .btn { width: 100%; }
.reassure { display: flex; gap: 16px; justify-content: center; margin-top: 14px; }
.reassure span { font-size: 11.5px; color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }

/* finance modal */
.modal-scrim { position: fixed; inset: 0; background: rgba(33,27,20,.5); z-index: 95; display: grid; place-items: center;
  padding: 24px; opacity: 0; animation: scrimIn .2s forwards; }
.modal { background: var(--cream); border-radius: 20px; width: min(520px, 100%); overflow: hidden; position: relative;
  transform: scale(.96); animation: modalIn .25s cubic-bezier(.2,.8,.2,1) forwards; box-shadow: 0 40px 80px -30px rgba(33,27,20,.6); }
@keyframes modalIn { to { transform: none; } }
.modal-head { padding: 26px 28px 0; }
.modal-head .eyebrow { color: var(--accent-ink); }
.modal-head h3 { font-family: var(--display); font-size: 30px; margin: 10px 0 4px; font-weight: 600; }
.modal-head p { color: var(--muted); font-size: 14px; margin: 0; }
.modal-body { padding: 22px 28px 28px; }
.term-row { display: flex; gap: 10px; margin: 18px 0; }
.term { flex: 1; text-align: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 14px 8px;
  cursor: pointer; transition: all .15s; background: var(--paper); }
.term.on { border-color: var(--brown); box-shadow: 0 0 0 1px var(--brown) inset; }
.term b { display: block; font-family: var(--display); font-size: 26px; font-weight: 600; }
.term span { font-size: 12px; color: var(--muted); }
.fin-result { background: var(--cream-2); border-radius: 14px; padding: 20px; text-align: center; margin: 4px 0 20px; }
.fin-result .mo { font-family: var(--display); font-size: 46px; font-weight: 600; line-height: 1; }
.fin-result .mo small { font-size: 18px; color: var(--muted); }
.fin-result .det { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%) translateY(20px); z-index: 120;
  background: var(--brown-deep); color: #fbf6ec; padding: 15px 22px; border-radius: 14px; font-size: 14.5px; font-weight: 600;
  box-shadow: 0 20px 40px -18px rgba(33,27,20,.7); opacity: 0; animation: toastIn .3s forwards; display: flex; gap: 10px; align-items: center; }
@keyframes toastIn { to { opacity: 1; transform: translateX(-50%); } }
