/* =========================================================
   PawPrint Studio — Stylesheet
   Tokens: Canvas linen bg, Oxide/Ochre/Sage paint accents,
   Fraunces (display) + Work Sans (body)
   ========================================================= */

:root {
  --canvas: #EDE6D8;
  --paper: #FBF8F1;
  --ink: #2B2620;
  --ink-soft: #5B5346;
  --oxide: #B5462F;
  --oxide-dark: #8E3623;
  --ochre: #D9A441;
  --sage: #6B7A5E;
  --line: rgba(43, 38, 32, 0.14);
  --shadow: 0 10px 30px rgba(43, 38, 32, 0.12);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1120px;
  --radius: 6px;
  --radius-lg: 22px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 0.5em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 1em; max-width: 62ch; color: var(--ink-soft); }

.lede { font-size: 1.15rem; max-width: 52ch; }

section { padding: 96px 0; }

.section-tight { padding: 64px 0; }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* Paint-swatch motif dot */
.swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 10px;
  flex-shrink: 0;
}
.swatch--oxide { background: var(--oxide); }
.swatch--ochre { background: var(--ochre); }
.swatch--sage { background: var(--sage); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

.btn-primary {
  background: var(--oxide);
  color: var(--paper);
}
.btn-primary:hover { background: var(--oxide-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.btn-link {
  background: none;
  border: none;
  padding: 0;
  font-weight: 600;
  color: var(--oxide-dark);
  text-underline-offset: 4px;
  text-decoration: underline;
  border-radius: 0;
}

.btn-block { width: 100%; justify-content: center; }

/* =========================== HEADER =========================== */

.announcement-bar {
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  font-size: 0.88rem;
  padding: 9px 20px;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.announcement-bar span {
  opacity: 1;
  transition: opacity 0.4s ease;
}
.announcement-bar span.fade { opacity: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); border-bottom-color: var(--oxide); }

.nav-links a.nav-cta {
  background: var(--oxide);
  color: var(--paper);
  padding: 11px 20px;
  border-radius: 999px;
  border-bottom: none;
}
.nav-links a.nav-cta:hover { background: var(--oxide-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 34px;
  height: 26px;
  position: relative;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle::before { top: 4px; }
.nav-toggle span { top: 12px; }
.nav-toggle::after { top: 20px; }
.nav-toggle.open::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open::after { transform: translateY(-8px) rotate(-45deg); }
.nav-toggle.open span { opacity: 0; }

/* =========================== HERO =========================== */

.hero {
  padding: 64px 0 90px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .btn-primary { margin-top: 8px; }
.hero-copy .btn-link { display: block; margin-top: 18px; }

.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--paper);
}
.hero-visual figure {
  margin: 0;
  aspect-ratio: 3/4;
  overflow: hidden;
  position: relative;
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual figcaption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(43,38,32,0.72);
  color: var(--paper);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
}
.hero-visual .divider-mark {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--ochre);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  z-index: 2;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(43,38,32,0.25);
}

/* =========================== ORIGIN STORY =========================== */

.origin {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.origin .container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.origin-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.origin-photo img { width: 100%; height: 100%; object-fit: cover; }

/* =========================== STEPS =========================== */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 8px;
}
.step-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--oxide);
  margin-bottom: 10px;
  line-height: 1;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.98rem; }

/* =========================== OCCASIONS =========================== */

.occasions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.occasion-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 30px 24px;
  border: 1px solid var(--line);
}
.occasion-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.occasion-card p { font-size: 0.92rem; margin-bottom: 0; }
.occasion-card .swatch { margin-bottom: 14px; width: 14px; height: 14px; }

/* =========================== FEATURES / GALLERY =========================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 56px;
}
.feature h3 { font-size: 1.08rem; }
.feature p { font-size: 0.95rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 14px;
}
.gallery-grid > a {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  display: block;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.gallery-grid > a:hover img { transform: scale(1.06); }
.gallery-grid .tall { grid-row: span 2; }
.gallery-grid .wide { grid-column: span 2; }
.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(transparent, rgba(43,38,32,0.75));
  color: var(--paper);
  font-size: 0.82rem;
  padding: 24px 12px 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-grid > a:hover .gallery-caption { opacity: 1; }

/* =========================== TESTIMONIALS =========================== */

.testimonials {
  background: var(--ink);
  color: var(--paper);
}
.testimonials .section-head h2,
.testimonials .section-head p { color: var(--paper); }
.testimonial-track {
  position: relative;
  min-height: 220px;
}
.testimonial-slide {
  display: none;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-slide.active { display: block; }
.testimonial-slide blockquote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.45;
  margin: 0 0 20px;
}
.testimonial-slide cite {
  font-style: normal;
  font-size: 0.9rem;
  color: rgba(251,248,241,0.7);
}
.testimonial-stars { color: var(--ochre); margin-bottom: 18px; letter-spacing: 3px; }
.testimonial-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}
.testimonial-nav button {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; background: rgba(251,248,241,0.3);
  cursor: pointer; padding: 0;
}
.testimonial-nav button.active { background: var(--ochre); }

/* =========================== FAQ ACCORDION =========================== */

.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-question .plus {
  font-family: var(--font-body);
  font-size: 1.4rem;
  color: var(--oxide);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item.open .plus { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p { padding: 0 4px 22px; font-size: 0.98rem; }
.faq-category-label {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--oxide-dark);
  margin: 40px 0 4px;
}
.faq-category-label:first-child { margin-top: 0; }

/* =========================== CTA BANNER =========================== */

.cta-banner {
  background: var(--ochre);
  text-align: center;
  border-radius: var(--radius-lg);
  margin: 0 28px;
  padding: 72px 32px;
  position: relative;
  overflow: hidden;
}
.cta-banner h2, .cta-banner p { color: var(--ink); }
.cta-banner .section-head { margin: 0 auto 28px; }
.cta-banner::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  background: rgba(251,248,241,0.35);
  right: -120px; top: -160px;
}

/* =========================== UPLOAD / ORDER FORM =========================== */

.order-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: flex-start;
}
.upload-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow);
}
.dropzone {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 36px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  margin-bottom: 20px;
}
.dropzone:hover, .dropzone.drag { border-color: var(--oxide); background: rgba(181,70,47,0.04); }
.dropzone p { margin: 0; font-size: 0.92rem; }
.dropzone strong { color: var(--oxide-dark); }
.dropzone-preview {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.dropzone-preview img {
  width: 64px; height: 64px; object-fit: cover; border-radius: 6px;
}

.form-field { margin-bottom: 16px; }
.form-field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--canvas);
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--ink);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 2px solid var(--oxide);
  outline-offset: 1px;
}

.form-success {
  display: none;
  background: rgba(107,122,94,0.12);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: 0.95rem;
  margin-top: 16px;
}
.form-success.show { display: block; }

/* =========================== FOOTER =========================== */

.site-footer {
  background: var(--ink);
  color: rgba(251,248,241,0.85);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 { color: var(--paper); font-size: 0.95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { text-decoration: none; color: rgba(251,248,241,0.75); font-size: 0.93rem; }
.footer-grid a:hover { color: var(--paper); }
.footer-brand p { color: rgba(251,248,241,0.7); font-size: 0.93rem; }
.footer-logo { font-family: var(--font-display); font-size: 1.3rem; color: var(--paper); margin-bottom: 12px; display: block; }

.newsletter-form { display: flex; gap: 8px; }
.newsletter-form input {
  flex: 1;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid rgba(251,248,241,0.3);
  background: transparent;
  color: var(--paper);
  font-size: 0.9rem;
}
.newsletter-form input::placeholder { color: rgba(251,248,241,0.5); }
.newsletter-form button {
  background: var(--oxide);
  color: var(--paper);
  border: none;
  border-radius: 999px;
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}
.newsletter-note { font-size: 0.85rem; color: rgba(251,248,241,0.55); margin-top: 8px; }

.footer-bottom {
  border-top: 1px solid rgba(251,248,241,0.15);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: rgba(251,248,241,0.55);
}

/* =========================== PAGE HEADER (interior pages) =========================== */

.page-header {
  padding: 76px 0 56px;
  text-align: center;
}
.page-header .container { max-width: 700px; }

/* =========================== HOW IT WORKS PAGE SPECIFIC =========================== */

.guideline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.guideline-list { list-style: none; margin: 0; padding: 0; }
.guideline-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.98rem;
  color: var(--ink-soft);
}
.guideline-list .mark { flex-shrink: 0; font-weight: 700; }
.guideline-list.good .mark { color: var(--sage); }
.guideline-list.bad .mark { color: var(--oxide); }

.process-timeline {
  position: relative;
  padding-left: 44px;
  border-left: 2px solid var(--line);
}
.timeline-step { position: relative; padding-bottom: 46px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: "";
  position: absolute;
  left: -50px;
  top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--oxide);
  border: 3px solid var(--canvas);
}
.timeline-step h3 { margin-bottom: 6px; }

/* =========================== ABOUT PAGE SPECIFIC =========================== */

.story-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-bottom: 80px;
}
.story-block.reverse .story-photo { order: 2; }
.story-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 5/4;
}
.story-photo img { width: 100%; height: 100%; object-fit: cover; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.value-card h3 { font-size: 1.05rem; }
.value-card p { font-size: 0.93rem; }

/* =========================== RESPONSIVE =========================== */

@media (max-width: 960px) {
  .hero .container,
  .origin .container,
  .order-section .container,
  .guideline-grid,
  .story-block,
  .story-block.reverse .story-photo { grid-template-columns: 1fr; }
  .story-block.reverse .story-photo { order: 0; }
  .steps-grid,
  .occasions-grid,
  .features-grid,
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--canvas);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 28px 28px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a.nav-cta { margin-top: 6px; }
  .nav-toggle { display: block; }
  .steps-grid,
  .occasions-grid,
  .features-grid,
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
  section { padding: 64px 0; }
  .cta-banner { padding: 48px 24px; }
}

/* Focus visibility baseline */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--ochre);
  outline-offset: 2px;
}
