/* Ported from site/pages.css. Loaded on the internal pages only - NOT on the
   home page or a product page, neither of which loads it in the source. */

/* ==========================================================================
   NEEDOH® — Shared internal-page styles
   Loaded on Where to Buy, About, FAQ, Contact, News hub, Thank You (any page
   that isn't Home or a product template). Design tokens live here; each page's
   own <style> block only holds page-specific layout on top of these.
   ========================================================================== */

/* ---------- Schylling brand fonts ---------- */
/* ---------- Design tokens ---------- */
:root {
  --cream: #FFFFFF;
  --cream-2: #f7f8f9;
  --paper: #FFFFFF;
  --ink: #231f20;
  --ink-soft: #4a4547;
  --ink-mute: #6b6669;
  --rule: #E5E5E5;

  --brand-black:  #231f20;
  --brand-pink:   #ff40b4;
  --brand-orange: #f48220;
  --brand-yellow: #ffe800;
  --brand-green:  #38d430;
  --brand-blue:   #3fabe1;
  --brand-purple: #8969d3;

  --accent:       #ff40b4;
  --accent-deep:  #c7087c;
  --accent-soft:  #ffcaea;
  --accent-2:     #f48220;
  --accent-2-deep:#bc4a00;
  --accent-2-soft:#fcdcc0;

  --font-display:     "Spicy Rice", "Recoleta", Georgia, serif;
  --font-display-alt: "Familjen Grotesk", "Söhne Breit", system-ui, sans-serif;
  --font-body:        "Freeman", "Hanken Grotesk", system-ui, sans-serif;
  --font-script:      "Caveat", "Marker Felt", cursive;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 0 rgba(35,31,32,0.04), 0 8px 24px -8px rgba(35,31,32,0.18);
  --shadow-lift: 0 2px 0 rgba(35,31,32,0.05), 0 22px 44px -16px rgba(35,31,32,0.28);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 4px; }
::selection { background: var(--accent); color: var(--paper); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-wrap: balance;
}
h1.display { font-size: clamp(36px, 5.2vw, 76px); line-height: 1.1;  margin: 0 0 24px; }
h2.display { font-size: clamp(28px, 3.6vw, 52px); line-height: 1.12; margin: 0 0 20px; }
h3.display { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.18; margin: 0 0 14px; }
.script {
  font-family: var(--font-script);
  font-weight: 700;
  letter-spacing: 0.01em;
}

p { margin: 0 0 18px; }
p:last-child { margin-bottom: 0; }
.lede {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
}

/* ---------- Container ---------- */
.wrap {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}
.wrap-narrow  { max-width: 820px;  margin: 0 auto; padding: 0 32px; }
.wrap-article { max-width: 720px;  margin: 0 auto; padding: 0 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 200ms, color 200ms, transform 200ms;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink);   color: var(--accent); }
.btn-primary:hover { background: var(--accent); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--accent); }
.btn-dark  { background: var(--ink); color: var(--accent); }
.btn-dark:hover { background: var(--accent); color: var(--ink); }
.btn-sm    { padding: 11px 20px; font-size: 13.5px; }

/* ---------- Section utilities ---------- */
section { position: relative; }
.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }
@media (max-width: 720px) {
  .section-pad    { padding: 64px 0; }
  .section-pad-sm { padding: 44px 0; }
}
.section-alt { background: var(--cream-2); }
.section-ink { background: var(--ink); color: #fff; }
.section-ink .lede, .section-ink .text-mute { color: rgba(255,255,255,0.75); }

/* ---------- Cards ---------- */
.card {
  border-radius: var(--radius-lg);
  padding: 32px;
  background: var(--paper);
  box-shadow: var(--shadow-card);
  transition: transform 250ms cubic-bezier(.4,0,.2,1), box-shadow 250ms;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-flat {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--rule);
}

/* ---------- Layout helpers ---------- */
.flex   { display: flex; }
.col    { display: flex; flex-direction: column; }
.center { align-items: center; justify-content: center; }
.between{ justify-content: space-between; }
.gap-8  { gap: 8px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.text-mute { color: var(--ink-mute); }
.text-soft { color: var(--ink-soft); }
.text-center { text-align: center; }
.measure { max-width: 60ch; }
.measure-narrow { max-width: 44ch; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Interior page hero — black background with subtle brand glows.
   Used on all internal pages (About, Where to Buy, FAQ, Contact, News). */
.page-hero {
  padding: 190px 0 122px;
  background:
    radial-gradient(circle at 18% 22%, rgba(255,64,180,0.24), transparent 55%),
    radial-gradient(circle at 82% 32%, rgba(244,130,32,0.18), transparent 55%),
    var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  border-radius: 0 0 48px 48px;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero .eyebrow { color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.page-hero h1.display { color: #fff; margin-bottom: 20px; }
.page-hero .lede { color: rgba(255,255,255,0.9); margin-bottom: 0; }
.page-hero .text-soft { color: rgba(255,255,255,0.72); }
.page-hero p { color: rgba(255,255,255,0.9); }

/* Buttons on the black hero — swap default dark-on-dark for accent-on-dark */
.page-hero .btn-primary {
  background: var(--accent);
  color: #fff;
}
.page-hero .btn-primary:hover { background: #fff; color: var(--ink); }
.page-hero .btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.page-hero .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Nav CTA button — pages that use overlay mode over the black hero need the
   "Shop NeeDoh®" pill to stand out. Flip to accent-fill when transparent; the
   normal dark-with-pink-text look returns automatically when nav scrolls to solid. */
body[data-nav-mode="overlay"] .site-nav:not(.scrolled) .nav-cta {
  background: var(--accent);
  color: #fff;
}
body[data-nav-mode="overlay"] .site-nav:not(.scrolled) .nav-cta:hover {
  background: #fff;
  color: var(--ink);
}

@media (max-width: 720px) {
  .page-hero { padding: 168px 0 106px; }
}
/* Tighter bottom padding on mobile — compound selectors bump specificity above
   each page's local .<page>-hero rule so they don't override the mobile value. */
@media (max-width: 640px) {
  .page-hero.wtb-hero,
  .page-hero.about-hero,
  .page-hero.faq-hero,
  .page-hero.contact-hero,
  .page-hero.news-hero,
  .page-hero { padding-bottom: 50px; }
}

/* ---------- Split hero: text left, visual stack right ---------- */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
}
.hero-split-text { position: relative; z-index: 2; }
.hero-split-visual {
  position: relative;
  min-height: 380px;
}
@media (max-width: 960px) {
  .hero-split-visual { min-height: 320px; }
}
/* On mobile, add a little breathing room under the text column so the heading
   + description + button don't crowd the hero image(s) below. */
@media (max-width: 640px) {
  .hero-split { gap: 56px; }
  .hero-split-text { padding-bottom: 8px; }
}

/* ---------- Aspect-ratio brand-color tile ---------- */
.tile {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--accent);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 14px 32px -16px rgba(35,31,32,0.22);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 22px;
}
.tile-label {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 30px);
  line-height: 1.05;
  color: #fff;
  position: relative;
  z-index: 2;
}
.tile-label.dark { color: var(--ink); }
.tile img.tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
.tile.tile-tall { aspect-ratio: 3 / 4; }
.tile.tile-wide { aspect-ratio: 4 / 3; }

/* Layered tile stack for hero visual — overlapping brand-color tiles */
.tile-stack {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 380px;
}
.tile-stack .tile {
  position: absolute;
  transition: transform 400ms cubic-bezier(.4,0,.2,1);
}
.tile-stack .tile.stack-a { top: 0; right: 0; width: 68%; z-index: 2; transform: rotate(3deg); }
.tile-stack .tile.stack-b { bottom: 0; left: 0; width: 62%; z-index: 3; transform: rotate(-4deg); }
.tile-stack .tile.stack-c { top: 20%; left: 10%; width: 46%; z-index: 1; opacity: 0.85; transform: rotate(8deg); }
@media (max-width: 960px) {
  .tile-stack { max-width: 440px; margin: 0 auto; }
}

/* ---------- Stickers ---------- */
.sticker {
  position: absolute;
  font-family: var(--font-script);
  font-weight: 700;
  background: var(--paper);
  color: var(--ink);
  padding: 10px 16px;
  border-radius: 100px / 60px;
  box-shadow: 0 8px 20px -8px rgba(35,31,32,0.4), inset 0 0 0 2px rgba(255,255,255,0.5);
  transform: rotate(-6deg);
  white-space: nowrap;
  font-size: 22px;
  line-height: 1;
  z-index: 5;
}
.sticker-paper   { background: var(--paper);       color: var(--ink); }
.sticker-accent  { background: var(--accent);      color: var(--paper); }
.sticker-mustard { background: var(--brand-yellow);color: var(--ink); }
.sticker-blue    { background: var(--brand-blue);  color: var(--paper); }
.sticker-orange  { background: var(--brand-orange);color: var(--paper); }
.sticker-green   { background: var(--brand-green); color: var(--ink);  }
.sticker-purple  { background: var(--brand-purple);color: var(--paper); }
.sticker-ink     { background: var(--ink);         color: var(--accent); }
.sticker-rot-r   { transform: rotate(6deg); }
.sticker-rot-l   { transform: rotate(-6deg); }
.sticker-rot-lg  { transform: rotate(-12deg); }

/* ---------- Marquee band ---------- */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--accent);
  color: var(--paper);
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  letter-spacing: 0.02em;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.marquee-ink    { background: var(--ink);         color: var(--accent); }
.marquee-blue   { background: var(--brand-blue);  color: #fff; }
.marquee-orange { background: var(--brand-orange);color: #fff; }
.marquee-green  { background: var(--brand-green); color: var(--ink); }
.marquee-yellow { background: var(--brand-yellow);color: var(--ink); }
.marquee-track {
  display: inline-flex;
  gap: 0;
  animation: pages-scroll 32s linear infinite;
  will-change: transform;
}
.marquee-track > span { display: inline-flex; align-items: center; gap: 18px; padding-right: 18px; flex-shrink: 0; }
.marquee .dot {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: currentColor;
  vertical-align: middle;
  opacity: 0.8;
}
@keyframes pages-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}

/* ---------- Brand chip ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.02em;
  border: 1.5px solid var(--ink);
  transition: transform 180ms, background 180ms, color 180ms;
}
.chip:hover { transform: translateY(-2px); background: var(--ink); color: var(--accent); }
.chip.chip-pink   { background: var(--accent);       color: #fff; border-color: var(--accent); }
.chip.chip-blue   { background: var(--brand-blue);   color: #fff; border-color: var(--brand-blue); }
.chip.chip-orange { background: var(--brand-orange); color: #fff; border-color: var(--brand-orange); }
.chip.chip-yellow { background: var(--brand-yellow); color: var(--ink); border-color: var(--brand-yellow); }
.chip.chip-green  { background: var(--brand-green);  color: var(--ink); border-color: var(--brand-green); }
.chip.chip-purple { background: var(--brand-purple); color: #fff; border-color: var(--brand-purple); }
.chip-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Breathe animation for hero visuals ---------- */
@keyframes pages-breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.02) rotate(-0.6deg); }
}
.breathe { animation: pages-breathe 7s ease-in-out infinite; transform-origin: center; }
@media (prefers-reduced-motion: reduce) { .breathe { animation: none; } }

/* ---------- Split section (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split.split-flip .split-visual { order: 2; }
.split.split-flip .split-text { order: 1; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.split-flip .split-visual { order: 0; }
  .split.split-flip .split-text { order: 0; }
}
.split-visual { position: relative; }
.split-text { position: relative; z-index: 2; }
.split-text .eyebrow { margin-bottom: 14px; }

/* ---------- Placeholder photograph tile (for "coming soon" imagery) ---------- */
.photo-placeholder {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 32px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0)),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.14) 0 16px, transparent 16px 32px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: #fff;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 14px 32px -16px rgba(35,31,32,0.22);
}
.photo-placeholder .ph-inner {
  border: 1.5px dashed rgba(255,255,255,0.65);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  max-width: 88%;
}
.photo-placeholder.tone-pink   { background-color: var(--accent); }
.photo-placeholder.tone-blue   { background-color: var(--brand-blue); }
.photo-placeholder.tone-orange { background-color: var(--brand-orange); }
.photo-placeholder.tone-green  { background-color: var(--brand-green); color: var(--ink); }
.photo-placeholder.tone-yellow { background-color: var(--brand-yellow); color: var(--ink); }
.photo-placeholder.tone-purple { background-color: var(--brand-purple); }
.photo-placeholder.tone-ink    { background-color: var(--ink); }
.photo-placeholder.tone-green .ph-inner,
.photo-placeholder.tone-yellow .ph-inner { border-color: rgba(35,31,32,0.35); }

/* ---------- Forms ---------- */
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
button { font-family: inherit; }

.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-label {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255,64,180,0.15);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23231f20' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.form-hint {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--ink-mute); text-decoration: none; transition: color 180ms; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: rgba(35,31,32,0.3); }

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .wrap, .wrap-narrow, .wrap-article { padding: 0 20px; }
}
@media (max-width: 640px) {
  .btn { width: 100%; justify-content: center; box-sizing: border-box; }
}
