/* ============================================================
   Pet Picts — Warm Artisan Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Inter:wght@400;500;600;700&display=swap');

:root {
  /* Palette */
  --cream: #f3ebdd;
  --cream-hi: #faf6ee;
  --wall: #e0d5bf;
  --ink: #2e2418;
  --ink-soft: #6b5a43;
  --bronze: #a87544;
  --bronze-hi: #d4a574;
  --frame: #ffffff;

  /* Typography */
  --serif: 'Playfair Display', 'EB Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Rhythm */
  --max-width: 1200px;
  --section-pad-y: 72px;
  --section-pad-x: 24px;
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- LAYOUT ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}
.section {
  padding: var(--section-pad-y) 0;
  position: relative;
}
.section-alt { background: var(--cream-hi); }
.section-dark { background: var(--ink); color: var(--cream); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  color: var(--ink);
  letter-spacing: -0.5px;
  font-weight: 700;
  line-height: 1.08;
}
h1 { font-size: clamp(36px, 5.5vw, 60px); letter-spacing: -1.5px; }
h2 { font-size: clamp(28px, 3.8vw, 42px); letter-spacing: -0.8px; text-align: center; }
h3 { font-size: 18px; }

h1 em, h2 em, h3 em {
  color: var(--bronze);
  font-style: italic;
  font-weight: 400;
}

p {
  font-family: var(--sans);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}
p.lead {
  font-size: 16px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.badge {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--bronze);
  text-transform: uppercase;
}
.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.5vw, 18px);
  color: var(--bronze);
  font-weight: 400;
  line-height: 1.3;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 100px;
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--bronze);
  color: var(--frame);
}
.btn-primary:hover {
  background: #956538;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(168, 117, 68, 0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--cream);
}
.btn-lg { padding: 16px 32px; font-size: 12px; }

/* ---------- ART FRAME ---------- */
.frame {
  display: block;
  background: var(--frame);
  border: 5px solid var(--frame);
  border-radius: 2px;
  box-shadow: 0 16px 40px rgba(120, 80, 30, 0.22);
  overflow: hidden;
}
.frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- HERO STRIP ---------- */
.hero-strip {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--bronze) 0%, var(--bronze-hi) 50%, var(--bronze) 100%);
  z-index: 5;
}

/* ---------- PRODUCT CARDS / STYLE GRID ---------- */
.style-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.style-item { text-align: center; }
.style-item .frame { aspect-ratio: 1; }
.style-item .label {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink);
  margin-top: 10px;
  font-style: italic;
  font-weight: 600;
}

/* ---------- HOW IT WORKS STEPS ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 840px;
  margin: 0 auto;
}
.step { text-align: center; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--bronze);
  border-radius: 50%;
  font-family: var(--serif);
  color: var(--bronze);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}
.step h3 {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  font-size: 13px;
  max-width: 220px;
  margin: 0 auto;
}

/* ---------- TESTIMONIAL BAND ---------- */
.testimonial { text-align: center; }
.stars {
  font-size: 22px;
  color: var(--bronze-hi);
  letter-spacing: 4px;
}
.testimonial blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  margin: 16px auto 10px;
  max-width: 560px;
  line-height: 1.35;
}
.testimonial cite {
  font-size: 11px;
  color: var(--ink-soft);
  font-style: normal;
  letter-spacing: 0.5px;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--wall);
  padding: 18px 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-q::after {
  content: '+';
  color: var(--bronze);
  font-weight: 400;
  font-size: 22px;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-top: 10px;
}
.faq-item.open .faq-a { display: block; }

/* ---------- NAV ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--wall);
}
.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px var(--section-pad-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.5px;
}
.nav-logo::before { content: '✦ '; color: var(--bronze); }
.nav-links {
  display: flex;
  gap: 28px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--bronze); }

@media (max-width: 768px) {
  .nav-links { display: none; }
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--cream-hi);
  padding: 56px 0 32px;
  border-top: 1px solid var(--wall);
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  font-weight: 700;
}
.footer-brand::before { content: '✦ '; color: var(--bronze); }
.footer-tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 6px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--bronze);
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-transform: uppercase;
  font-weight: 700;
}
.footer-col a {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  max-width: var(--max-width);
  margin: 40px auto 0;
  padding: 16px var(--section-pad-x) 0;
  border-top: 1px solid var(--wall);
  font-size: 11px;
  color: var(--ink-soft);
  text-align: center;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ---------- ARTICLE / PROSE ---------- */
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
}
.article-meta {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--bronze);
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 700;
}
.article {
  font-family: var(--sans);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.75;
}
.article h1 {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -1.2px;
  margin: 0 0 20px;
}
.article h2 {
  font-family: var(--serif);
  font-size: 26px;
  text-align: left;
  margin: 48px 0 16px;
  padding-top: 24px;
  border-top: 1px solid var(--wall);
}
.article h2:first-of-type { border-top: none; padding-top: 0; }
.article h3 {
  font-family: var(--serif);
  font-size: 20px;
  margin: 32px 0 12px;
}
.article p { margin: 0 0 20px; }
.article p strong { color: var(--ink); font-weight: 600; }
.article a {
  color: var(--bronze);
  text-decoration: underline;
  text-decoration-color: rgba(168, 117, 68, 0.35);
  text-underline-offset: 3px;
}
.article a:hover { text-decoration-color: var(--bronze); }
.article ul, .article ol {
  margin: 0 0 22px 22px;
}
.article li { margin-bottom: 8px; }
.article img,
.article .frame {
  margin: 28px 0;
}
.article blockquote {
  border-left: 3px solid var(--bronze);
  padding: 4px 22px;
  margin: 24px 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
  background: var(--cream-hi);
}

/* ---------- BLOG POST CARDS ---------- */
.post-card {
  display: block;
  background: var(--cream-hi);
  border: 1px solid var(--wall);
  border-radius: 4px;
  padding: 28px;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}
.post-card:hover {
  border-color: var(--bronze);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(120, 80, 30, 0.12);
}
.post-card .tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 10px;
  color: var(--bronze);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  font-weight: 700;
}
.post-card h2 {
  font-family: var(--serif);
  font-size: 22px;
  text-align: left;
  margin: 4px 0 8px;
}
.post-card p {
  font-size: 14px;
  margin: 0;
}
.post-card .meta {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 12px;
}

/* ---------- RESPONSIVE (stacks + mobile) ---------- */
@media (max-width: 1024px) {
  .style-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-pad-y: 56px; }
  .style-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 40px; }

  /* Collapse inline 2-column grids (hero, testimonial thumbs, etc.) */
  .section [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* Tighten hero headline on mobile */
  h1 { font-size: 40px !important; }
  h2 { font-size: 30px !important; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
