/*
Theme Name: Papillon Paws
Description: A serene, classically typeset WordPress theme for Papillon Paws, a family-owned papillon puppy breeder in the United States. Includes Puppies and Testimonials post types, inquiry forms, and one-click page setup.
Version: 1.0.0
Author: RichKid
Text Domain: papillon-paws
Requires at least: 6.0
Requires PHP: 7.4
*/

:root {
  --pearl: #F7F8F6;
  --mist: #DCE6EE;
  --mist-soft: #EDF2F6;
  --dusk: #5F7A94;
  --dusk-deep: #35506B;
  --ink: #26303B;
  --muted: #5E6874;
  --sable: #A6714A;
  --sable-deep: #7E5233;
  --blush: #F1EAE3;
  --line: #D9E0E6;
  --display: 'Cormorant Garamond', 'Times New Roman', serif;
  --text: 'Source Serif 4', Georgia, serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--pearl); color: var(--ink); font-family: var(--text); font-size: 1.0625rem; line-height: 1.75; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--dusk-deep); text-underline-offset: 3px; }
a:hover { color: var(--sable-deep); }
:focus-visible { outline: 3px solid var(--sable); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 48px); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.005em; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.2rem); }
h3 { font-size: 1.75rem; }
p { margin: 0 0 1.1em; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 34em; }
.sec { padding: clamp(64px, 9vw, 120px) 0; }
.sec.tint { background: var(--mist-soft); }
.sec.blush { background: var(--blush); }
.sec-head { max-width: 40rem; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }

/* Buttons */
.btn { display: inline-block; font-family: var(--text); font-weight: 600; font-size: 1rem; text-decoration: none; padding: 14px 30px; border-radius: 999px; background: var(--dusk-deep); color: #fff; border: 2px solid var(--dusk-deep); transition: background .2s, color .2s, border-color .2s; cursor: pointer; line-height: 1.2; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--dusk-deep); }
.btn.ghost:hover { background: var(--dusk-deep); color: #fff; }
.btn.sm { padding: 10px 22px; font-size: .95rem; }
.btn.light { background: #fff; color: var(--dusk-deep); border-color: #fff; }
.btn.light:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn[aria-disabled="true"] { background: transparent; color: var(--muted); border-color: var(--line); pointer-events: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(247,248,246,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--sable); }
.brand .mark { color: var(--sable); }
.brand-text { display: block; line-height: 1.05; }
.brand-name { font-family: var(--display); font-size: 1.85rem; font-weight: 700; color: var(--ink); display: block; }
.brand-tag { font-size: .8rem; color: var(--muted); font-style: italic; display: block; margin-top: 3px; }
.site-nav ul { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.site-nav a { display: block; padding: 8px 14px; text-decoration: none; color: var(--ink); font-size: .98rem; border-radius: 999px; }
.site-nav a:hover { background: var(--mist-soft); color: var(--dusk-deep); }
.site-nav .current-menu-item > a, .site-nav .current_page_item > a { color: var(--dusk-deep); box-shadow: inset 0 -2px 0 var(--sable); border-radius: 0; }
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 999px; padding: 9px 18px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 84px) 0 clamp(64px, 8vw, 110px); background: linear-gradient(180deg, var(--mist-soft) 0%, var(--pearl) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-photo { position: relative; }
.hero-photo::before { content: ""; position: absolute; inset: 6% -8% -6% 8%; background: var(--mist); border-radius: 999px 999px 24px 24px; z-index: 0; }
.arch { position: relative; z-index: 1; aspect-ratio: 4 / 5; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--mist); }
.arch img, .arch svg { width: 100%; height: 100%; object-fit: cover; }
.hero-note { position: absolute; z-index: 2; left: -6%; bottom: 8%; background: var(--pearl); border: 1px solid var(--line); border-radius: 6px; padding: 14px 20px; max-width: 220px; font-family: var(--display); font-size: 1.25rem; line-height: 1.2; font-style: italic; color: var(--sable-deep); box-shadow: 0 16px 32px -20px rgba(38,48,59,.4); }
@media (prefers-reduced-motion: no-preference) {
  .hero-grid > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-grid > *:nth-child(2) { animation-delay: .15s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* Trust strip */
.strip { border-block: 1px solid var(--line); background: #fff; }
.strip ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.strip li { padding: 26px 22px; text-align: center; font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.strip li + li { border-left: 1px solid var(--line); }
.strip small { display: block; font-family: var(--text); font-weight: 400; font-size: .88rem; color: var(--muted); margin-top: 4px; }

/* Temperament */
.temper { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.temper-list { display: grid; }
.temper-item { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 170px 1fr; gap: 24px; }
.temper-item:last-child { border-bottom: 1px solid var(--line); }
.temper-item h3 { margin: 0; color: var(--sable-deep); font-size: 1.9rem; }
.temper-item p { margin: 0; color: var(--muted); }
.pull { font-family: var(--display); font-style: italic; font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.25; color: var(--dusk-deep); margin: 0; }

/* Puppy cards */
.puppy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 44px 32px; }
.puppy { display: flex; flex-direction: column; }
.puppy-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 14px 14px; overflow: hidden; background: var(--mist); margin-bottom: 20px; }
.puppy-photo img, .puppy-photo svg { width: 100%; height: 100%; object-fit: cover; }
.puppy.is-sold .puppy-photo img { filter: grayscale(.6) opacity(.8); }
.badge { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); background: #fff; color: var(--dusk-deep); font-size: .85rem; font-weight: 600; padding: 5px 16px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.is-reserved .badge { color: var(--sable-deep); }
.is-sold .badge { color: var(--muted); }
.puppy h3 { margin-bottom: .1em; }
.puppy .sub { color: var(--sable-deep); font-style: italic; margin-bottom: .8em; }
.facts { margin: 0 0 1em; padding: 12px 0; border-block: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; font-size: .96rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 600; }
.puppy p.bio { color: var(--muted); font-size: .98rem; flex: 1; }
.puppy .btn { align-self: flex-start; }
.empty { border: 1px dashed var(--dusk); border-radius: 8px; padding: 40px; text-align: center; background: #fff; }

/* Steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: s; position: relative; padding-top: 64px; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--sable); color: var(--sable-deep); font-family: var(--display); font-size: 1.5rem; font-weight: 600; display: grid; place-items: center; }
.steps li::after { content: ""; position: absolute; top: 23px; left: 60px; right: -16px; height: 1px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps h3 { font-size: 1.5rem; margin-bottom: .3em; }
.steps p { color: var(--muted); font-size: .98rem; margin: 0; }

/* CTA */
.cta { background: var(--dusk-deep); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #DCE6EE; max-width: 34em; margin-inline: auto; font-size: 1.15rem; }

/* Page hero + content */
.page-hero { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 5vw, 64px); background: linear-gradient(180deg, var(--mist-soft), var(--pearl)); text-align: center; }
.page-hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.2rem); }
.page-hero .lead { margin-inline: auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split.top { align-items: start; }
.prose h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.glance { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 34px; }
.glance h3 { font-size: 1.7rem; }
.glance dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; font-weight: 600; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.value { padding: 32px 32px 32px 0; }
.value + .value { padding-left: 32px; border-left: 1px solid var(--line); }
.value h3 { color: var(--sable-deep); font-size: 1.7rem; }
.value p { color: var(--muted); margin: 0; }

/* Shipping */
.ship-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.ship { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 32px; display: flex; flex-direction: column; }
.ship h3 { color: var(--dusk-deep); }
.ship .price { font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--sable-deep); margin-bottom: .5em; }
.ship p { color: var(--muted); }
.ship ul { color: var(--muted); padding-left: 1.1em; margin: 0; font-size: .98rem; }
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-family: var(--display); font-size: 1.5rem; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sable); font-size: 1.8rem; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Testimonials */
.quotes { columns: 2 340px; column-gap: 32px; }
.quote { break-inside: avoid; margin: 0 0 32px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 34px; }
.quote blockquote { margin: 0 0 18px; font-family: var(--display); font-size: 1.55rem; line-height: 1.35; font-style: italic; color: var(--ink); }
.quote blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--sable); margin-bottom: 6px; }
.quote figcaption { color: var(--muted); font-size: .95rem; }
.quote figcaption strong { color: var(--ink); display: block; }

/* Forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 4vw, 44px); }
.form-card h2 { font-size: 2.2rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.field { margin-bottom: 20px; }
label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--pearl); border: 1.5px solid #C4CFD9; border-radius: 6px; padding: 13px 14px; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--dusk-deep); outline: 3px solid rgba(95,122,148,.25); outline-offset: 0; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { border-radius: 6px; padding: 16px 20px; margin-bottom: 26px; border: 1px solid; }
.notice.ok { background: #EAF3EC; border-color: #A8CBB0; color: #245233; }
.notice.bad { background: #FBEDEA; border-color: #E4B4AA; color: #7A2A1D; }
.info-card { background: var(--blush); border-radius: 8px; padding: 34px; }
.info-card h3 { font-size: 1.7rem; }
.info-card dl { margin: 0 0 1em; }
.info-card dt { font-weight: 600; margin-top: 14px; }
.info-card dd { margin: 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: #C9D3DC; padding: 72px 0 32px; margin-top: 0; }
.site-footer a { color: #E6ECF1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid #3A4654; }
.foot-brand .brand-name { color: #fff; }
.foot-brand .brand-tag { color: #A8B5C1; }
.foot-brand .brand, .foot-brand .mark { color: #D7A77E; }
.site-footer h4 { font-family: var(--display); font-size: 1.4rem; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.foot-bottom { padding-top: 26px; font-size: .9rem; color: #A8B5C1; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Generic content */
.entry { padding: 72px 0 96px; }
.entry img { border-radius: 8px; }

/* Responsive */
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--pearl); border-bottom: 1px solid var(--line); display: none; padding: 12px 24px 24px; }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: 12px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .bar > .btn { display: none; }
  .hero-grid, .temper, .split { grid-template-columns: 1fr; }
  .hero-photo { max-width: 460px; margin-inline: auto; width: 100%; }
  .hero-note { left: 0; }
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .strip li:nth-child(3) { border-left: 0; }
  .strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps li::after { display: none; }
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 26px 0; border-left: 0; border-top: 1px solid var(--line); }
  .value:first-child { border-top: 0; }
  .ship-grid, .foot-grid, .row { grid-template-columns: 1fr; }
  .temper-item { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.puppy .bio { color: var(--muted); font-size: .98rem; flex: 1; margin-bottom: 8px; }
.puppy .bio p { margin: 0 0 .8em; }
.contact-split { grid-template-columns: 1.4fr .8fr; }
@media (max-width: 960px) { .contact-split { grid-template-columns: 1fr; } }
