/* ==========================================================================
   Puppy Palace Phnom Penh — single stylesheet (index.html + AMP twin)
   Warm premium: cream, honey gold, deep charcoal. Not dark-luxury gambling.
   ========================================================================== */

:root {
  --cream: #fdf8f2;
  --cream-2: #f7efe3;
  --ink: #22201d;
  --ink-soft: #5b544c;
  --honey: #d99a2b;
  --honey-2: #f0b445;
  --honey-deep: #a86f12;
  --teal: #1f5f5b;
  --line: #e4d9c8;
  --white: #fff;
  --shadow-sm: 0 1px 2px rgba(34, 32, 29, .06), 0 2px 8px rgba(34, 32, 29, .05);
  --shadow-md: 0 4px 12px rgba(34, 32, 29, .08), 0 12px 32px rgba(34, 32, 29, .07);
  --radius: 16px;
  --maxw: 1180px;
  --font: "Segoe UI", "Helvetica Neue", Arial, "Noto Sans Khmer", "Noto Sans SC", sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 12px 18px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 248, 242, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.head-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 62px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 54px; height: 54px; flex: 0 0 54px;
  object-fit: contain; display: block;
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 15px; line-height: 1.15; }
.brand-sub { font-size: 10.5px; color: var(--ink-soft); letter-spacing: .08em; text-transform: uppercase; }

.lang-switch { display: flex; gap: 4px; background: var(--cream-2); padding: 4px; border-radius: 999px; }
.lang-btn {
  border: 0; background: transparent; cursor: pointer; font: inherit;
  font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 999px;
  min-height: 36px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft); white-space: nowrap; text-decoration: none;
}
.lang-btn.is-on { background: var(--ink); color: #fff; }
.lang-btn:focus-visible { outline: 2px solid var(--honey-deep); outline-offset: 2px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 82% 18%, rgba(240,180,69,.30), transparent 55%),
    radial-gradient(circle at 12% 88%, rgba(31,95,91,.12), transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; gap: 28px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.85); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600;
  color: var(--honey-deep); margin-bottom: 16px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #2e9e6b; flex: 0 0 7px; }
.hero h1 { font-size: clamp(30px, 7vw, 52px); margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--honey-deep); }
.hero-lead { font-size: clamp(15px, 3.6vw, 18px); color: var(--ink-soft); max-width: 34em; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: 14px 22px; border-radius: 999px; border: 0; font-size: 15.5px;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-wa {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff; box-shadow: 0 6px 18px rgba(18,140,126,.30);
}
.btn-ghost {
  background: var(--white); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.btn svg { width: 19px; height: 19px; flex: 0 0 19px; }
.btn:focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 3px; }

.hero-art {
  position: relative; border-radius: 22px; overflow: hidden;
  background: linear-gradient(160deg, #fff5e2, #ffe6bd);
  border: 1px solid var(--line); box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
}
.hero-art picture { display: block; width: 100%; height: 100%; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-badge {
  position: absolute; bottom: 14px; left: 14px;
  background: rgba(255,255,255,.93); border: 1px solid var(--line);
  border-radius: 12px; padding: 8px 14px; font-size: 12.5px; font-weight: 600;
  box-shadow: var(--shadow-sm);
}

/* ---------- trust strip ---------- */
.trust { background: var(--ink); color: #f4efe7; padding: 16px 0; }
.trust-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 18px; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.trust-item svg { width: 20px; height: 20px; flex: 0 0 20px; color: var(--honey-2); }

/* ---------- sections ---------- */
section { padding: 48px 0; }
.sec-head { max-width: 40em; margin-bottom: 26px; }
.sec-kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--honey-deep); margin-bottom: 8px;
}
.sec-head h2 { font-size: clamp(24px, 5.5vw, 36px); }
.sec-head p { color: var(--ink-soft); margin: 0; }
.sec-alt { background: var(--cream-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- breed catalog ---------- */
.breeds { display: grid; grid-template-columns: 1fr; gap: 16px; }
.breed {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.breed-art {
  height: 140px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(150deg, #fff3dd, #ffe3b8);
  position: relative;
}
.breed-art { height: auto; aspect-ratio: 4 / 3; }
.breed-art picture { display: block; width: 100%; height: 100%; }
.breed-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.breed-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.16) 0%, rgba(0,0,0,0) 34%);
}
.breed-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; font-weight: 700;
  background: rgba(255,255,255,.92); color: var(--honey-deep);
  border-radius: 999px; padding: 4px 10px; border: 1px solid var(--line);
}
.breed-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.breed h3 { font-size: 17px; margin: 0; }
.breed-meta { font-size: 13px; color: var(--ink-soft); }
.breed-price {
  font-weight: 700; font-size: 17px; color: var(--honey-deep); margin-top: auto;
  padding-top: 8px;
}
.breed-price small { font-size: 11.5px; font-weight: 600; color: var(--ink-soft); letter-spacing: .04em; }
.breed-link {
  margin-top: 10px; display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; background: #effaf3; color: #0f7a52; text-decoration: none;
  border-radius: 10px; padding: 10px 12px; font-size: 14px; font-weight: 700;
  border: 1px solid #cdeedd;
}
.breed-link svg { width: 16px; height: 16px; }

/* ---------- steps ---------- */
.steps { display: grid; gap: 14px; counter-reset: st; }
.step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow-sm);
}
.step-num {
  counter-increment: st; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--honey-2), var(--honey-deep));
  color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.step-num::before { content: counter(st); }
.step h3 { font-size: 16px; margin: 0 0 3px; }
.step p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- why us ---------- */
.why { display: grid; gap: 14px; }
.why-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.why-icon {
  width: 40px; height: 40px; border-radius: 12px; background: #effaf3;
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
  color: #0f7a52;
}
.why-icon svg { width: 21px; height: 21px; }
.why-card h3 { font-size: 16px; margin: 0 0 4px; }
.why-card p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details, .faq .faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; box-shadow: var(--shadow-sm);
}
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--honey-deep); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
.faq .faq-a { margin: 10px 0 0; font-size: 14px; color: var(--ink-soft); }
.faq .faq-q { font-weight: 700; font-size: 15px; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #3a352e 100%);
  color: #f6f1e8; padding: 44px 0; text-align: center;
}
.cta-band h2 { font-size: clamp(22px, 5vw, 32px); color: #fff; }
.cta-band p { color: #cfc6b8; max-width: 32em; margin: 0 auto 22px; }
.cta-band .btn-wa { box-shadow: 0 8px 24px rgba(37,211,102,.28); }

/* ---------- footer ---------- */
.site-foot { background: var(--cream-2); border-top: 1px solid var(--line); padding: 34px 0 90px; }
.foot-grid { display: grid; gap: 22px; }
.foot-grid h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; font-size: 14px; }
.foot-list a { text-decoration: none; color: var(--ink); }
.foot-note { font-size: 12.5px; color: var(--ink-soft); border-top: 1px solid var(--line); margin-top: 26px; padding-top: 16px; }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: rgba(253,248,242,.97); border-top: 1px solid var(--line);
  padding: 10px 16px; display: flex; align-items: center; gap: 12px;
  box-shadow: 0 -4px 16px rgba(34,32,29,.08);
}
.sticky-cta .sticky-txt { font-size: 12.5px; color: var(--ink-soft); line-height: 1.3; flex: 1; min-width: 0; }
.sticky-cta .sticky-line { display: none; }
.sticky-cta .sticky-line.is-active { display: block; }
.sticky-cta .sticky-txt strong { display: block; color: var(--ink); font-size: 13.5px; }
.sticky-cta .btn { padding: 12px 18px; font-size: 14.5px; }

/* ---------- language visibility ---------- */
[data-lang-block],
[data-lang-inline] { display: none; }
[data-lang-block].is-active { display: block; }
[data-lang-inline].is-active { display: inline; }

/* ---------- breakpoints ---------- */
@media (min-width: 560px) {
  .breeds { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(2, 1fr); }
  .trust-row { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 44px; }
  .breeds { grid-template-columns: repeat(3, 1fr); }
  .why { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: 2fr 1fr 1fr; }
  .sticky-cta { display: none; }
  .site-foot { padding-bottom: 40px; }
}

@media (min-width: 1180px) {
  .breeds { grid-template-columns: repeat(4, 1fr); }
  .hero h1 { font-size: 54px; }
}

/* ---------- a11y / motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none; animation: none; }
}

:focus-visible { outline: 3px solid var(--honey-deep); outline-offset: 2px; }

/* ---------- footer crest ---------- */
.footer-crest {
  width: 104px; height: 104px; object-fit: contain;
  margin-bottom: 12px; display: block;
}
