/* ============================================================
   PEACE QUIET IMPORT — Design System
   Theme: Rose Pastel / Blush Editorial
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Nunito:wght@400;500;600;700&display=swap');

/* ===== TOKENS ===== */
:root {
  /* Surfaces */
  --bg:         #FEF0F3;
  --surface:    #FFFFFF;
  --surface-2:  #FFF5F7;
  --surface-3:  #FFE8EF;

  /* Rose scale */
  --rose:       #C8516E;   /* primary accent */
  --rose-dark:  #A83955;
  --rose-mid:   #E07090;
  --rose-pale:  #F9D0DC;
  --rose-blush: #FDE8EE;
  --rose-glow:  rgba(200,81,110,0.14);

  /* Dark anchors (nav, footer) */
  --dark:       #2A1018;
  --dark-2:     #3A1D26;
  --dark-border: rgba(255,255,255,0.08);

  /* Category palette */
  --cat-toys:       #FF6B35;
  --cat-sports:     #10B981;
  --cat-gifts:      #EC4899;
  --cat-packaging:  #E391A5;
  --cat-stationery: #F59E0B;

  /* Text */
  --text-hi:    #1A0810;
  --text-mid:   #7B4558;
  --text-lo:    #C09AAA;
  --text-on-dark:    #FDE8EE;
  --text-mid-dark:   rgba(253,232,238,0.55);

  /* Borders */
  --border:     rgba(200,81,110,0.13);
  --border-md:  rgba(200,81,110,0.22);

  /* Extra */
  --white: oklch(97% 0.008 5);
  --error: oklch(45% 0.19 25);

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(180,60,90,0.08);
  --shadow-md: 0 6px 28px rgba(180,60,90,0.12);
  --shadow-lg: 0 16px 56px rgba(180,60,90,0.16);

  /* Motion */
  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --t:        0.3s;
  --t-slow:   0.55s;

  /* Type */
  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Nunito', sans-serif;

  /* Layout */
  --nav-h:  68px;
  --max-w:  1200px;
  --pad-x:  clamp(16px, 4vw, 32px);
  --radius: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-hi);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--text-hi);
}
h1 { font-size: clamp(2.6rem, 6.5vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem);     font-weight: 700; }
h3 { font-size: clamp(1.05rem, 2vw, 1.2rem);  font-weight: 600; }
h4 { font-size: 0.9rem; font-weight: 600; }
p  { color: var(--text-mid); line-height: 1.75; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.bg-surface  { background: var(--surface); }
.bg-surface2 { background: var(--surface-2); }
.bg-blush    { background: var(--rose-blush); }
.bg-dark     { background: var(--dark); }

/* ===== SECTION HEADER ===== */
.section-header { margin-bottom: 56px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-subtitle { margin: 0 auto; }

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--rose);
  border-radius: 2px;
}
.section-eyebrow.on-dark { color: var(--rose-pale); }
.section-eyebrow.on-dark::before { background: var(--rose-pale); }

.section-title  { margin-bottom: 16px; }
.section-title.on-dark { color: var(--text-on-dark); }

.section-subtitle { font-size: 1rem; max-width: 560px; }
.section-subtitle.on-dark { color: var(--text-mid-dark); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--t) var(--ease-out);
  white-space: nowrap;
}
.btn-lg { padding: 16px 36px; font-size: 0.95rem; }
.btn-sm { padding: 9px 20px;  font-size: 0.8rem; }

.btn-rose {
  background: var(--rose);
  color: var(--white);
  border-color: var(--rose);
  font-weight: 700;
}
.btn-rose:hover {
  background: var(--rose-dark);
  border-color: var(--rose-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,81,110,0.3);
}

.btn-outline {
  background: transparent;
  color: var(--rose);
  border-color: var(--border-md);
}
.btn-outline:hover {
  border-color: var(--rose);
  background: var(--rose-blush);
  transform: translateY(-2px);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-on-dark);
  border-color: rgba(255,255,255,0.25);
}
.btn-outline-dark:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--dark);
  color: var(--text-on-dark);
  border-color: var(--dark);
  font-weight: 700;
}
.btn-dark:hover {
  background: var(--dark-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white {
  background: var(--surface);
  color: var(--rose-dark);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--rose-blush);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Aliases used in HTML */
.btn-gold    { background: var(--rose); color: var(--white); border-color: var(--rose); font-weight: 700; }
.btn-gold:hover { background: var(--rose-dark); border-color: var(--rose-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,81,110,0.3); }
.btn-cream   { background: var(--rose-blush); color: var(--rose-dark); border-color: var(--rose-blush); font-weight: 700; }
.btn-cream:hover { background: var(--rose-pale); transform: translateY(-2px); }

/* ===== PAGE HERO — inner pages ===== */
.page-hero {
  background: linear-gradient(160deg, var(--rose-blush) 0%, var(--surface-2) 100%);
  border-bottom: 1px solid var(--border);
  padding: calc(var(--nav-h) + 72px) 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--rose-blush) 0%, transparent 70%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.page-hero .section-eyebrow { justify-content: center; }
.page-hero h1 { position: relative; z-index: 1; }
.page-hero p  { color: var(--text-mid); max-width: 540px; margin: 20px auto 0; font-size: 1.05rem; position: relative; z-index: 1; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.text-rose   { color: var(--rose); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  z-index: 9999;
  background: var(--rose);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.18s var(--ease-out);
}
.skip-link:focus-visible { top: 0; outline: none; }

/* Global keyboard focus ring */
:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: var(--radius);
}

/* Utilities */
.section-cta { text-align: center; margin-top: 48px; }
.section-cta--sm { text-align: center; margin-top: 40px; }
.footer-legal-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ===== REVEAL — CSS scroll-driven (no JS needed) ===== */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: revealUp 0.5s var(--ease-out) both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
  /* Stagger for grid siblings */
  .reveal:nth-child(2) { animation-range: entry  5% entry 40%; }
  .reveal:nth-child(3) { animation-range: entry 10% entry 45%; }
  .reveal:nth-child(4) { animation-range: entry 14% entry 49%; }
  .reveal:nth-child(5) { animation-range: entry 18% entry 53%; }
  .reveal:nth-child(6) { animation-range: entry 22% entry 57%; }

  /* Left-slide stagger for list rows */
  .reveal-x:nth-child(2) { animation-range: entry  6% entry 46%; }
  .reveal-x:nth-child(3) { animation-range: entry 12% entry 52%; }
  .reveal-x:nth-child(4) { animation-range: entry 17% entry 57%; }
  .reveal-x:nth-child(5) { animation-range: entry 22% entry 62%; }
  .reveal-x:nth-child(6) { animation-range: entry 27% entry 67%; }

  /* CTA banner entrance */
  .cta-banner .cta-content {
    animation: revealUp 0.6s var(--ease-out) both;
    animation-timeline: view();
    animation-range: entry 0% entry 45%;
  }

  /* Stats bar counter-feel entrance */
  .stat-item {
    animation: revealUp 0.4s var(--ease-out) both;
    animation-timeline: view();
    animation-range: entry 0% entry 50%;
  }
  .stat-item:nth-child(2) { animation-range: entry  8% entry 58%; }
  .stat-item:nth-child(3) { animation-range: entry 16% entry 66%; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .section { padding: 64px 0; }
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}
