/* ==========================================================================
   A5 · PAWLUNO — "Playful Breeze" theme layer
   --------------------------------------------------------------------------
   Load order : style.css → pages.css / articles.css → theme.css (always last)
   Scope      : design tokens + a short list of component overrides.
                style.css is never edited; no copy, data or markup changed.
   Language   : a bright sky-blue ground, warm sunshine highlights, very large
                radii, capsule buttons that gently bloom on hover, and cards
                that lift with a springy hop instead of a calm glide.
   Palette    : sky blue with a sunny accent, deep navy ink, airy blue paper.
   Note       : the only raw colour values live in the :root block below;
                every component rule reads a custom property instead.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1 · Palette, shape, depth and rhythm — the single source of raw values
   -------------------------------------------------------------------------- */
:root {
  /* paper: cool sky white, never grey */
  --color-bg: #F2FAFD;
  --color-bg-alt: #E4F3FA;
  --color-surface: #FFFFFF;
  --color-surface-soft: #F7FCFF;

  /* ink: deep navy-teal, softer than black */
  --color-ink: #132B38;
  --color-ink-soft: #3D5B69;
  --color-muted: #7A96A3;

  /* sky blue scale */
  --color-accent: #2E8FC4;
  --color-accent-deep: #1F6D99;
  --color-accent-soft: #CFE7F4;
  --color-accent-wash: #EAF6FC;

  /* sunshine accent: highlight, badges, hover flashes */
  --color-warm: #FFD166;

  /* lines & light */
  --color-hairline: rgba(19, 43, 56, 0.08);
  --color-hairline-strong: rgba(19, 43, 56, 0.14);
  --color-highlight: rgba(255, 255, 255, 0.9);

  /* derived tints — declared once, referenced by var() everywhere below */
  --breeze-yellow-soft: #FFE7AE;
  --breeze-yellow-wash: #FFF6DF;
  --breeze-yellow-ink: #7A5410;
  --breeze-accent-tint: rgba(46, 143, 196, 0.1);
  --breeze-accent-tint-strong: rgba(46, 143, 196, 0.18);
  --breeze-yellow-tint: rgba(255, 209, 102, 0.16);
  --breeze-glass: rgba(255, 255, 255, 0.88);
  --breeze-veil: rgba(242, 250, 253, 0.9);
  --breeze-image-veil: linear-gradient(
    180deg,
    rgba(19, 43, 56, 0.02) 20%,
    rgba(19, 43, 56, 0.78) 100%
  );
  --breeze-halo: radial-gradient(
    circle,
    var(--color-accent-wash) 0%,
    rgba(234, 246, 252, 0) 68%
  );
  --breeze-cta: linear-gradient(
    135deg,
    var(--color-accent-wash) 0%,
    var(--breeze-yellow-wash) 100%
  );
  --breeze-horizon:
    radial-gradient(
      1200px 620px at 82% -12%,
      var(--breeze-yellow-tint) 0%,
      rgba(255, 246, 223, 0) 62%
    ),
    radial-gradient(
      980px 540px at 6% 6%,
      var(--color-accent-wash) 0%,
      rgba(234, 246, 252, 0) 60%
    );
  --breeze-btn-shadow: 0 18px 36px -20px rgba(46, 143, 196, 0.62);
  --breeze-btn-shadow-hover: 0 24px 46px -20px rgba(31, 109, 153, 0.68);
  --breeze-nav-shadow: 0 16px 44px -34px rgba(31, 109, 153, 0.45);
  --breeze-chip-shadow: 0 10px 24px -18px rgba(31, 109, 153, 0.5);
  --breeze-badge-shadow: 0 8px 18px -12px rgba(31, 109, 153, 0.55);
  --breeze-panel-shadow: 0 26px 60px -34px rgba(46, 143, 196, 0.32);
  --breeze-photo-shadow: 0 30px 60px -40px rgba(31, 109, 153, 0.5);

  /* shape: rounder than every sibling, nothing sharp anywhere */
  --radius-sm: 1rem;
  --radius-md: 1.5rem;
  --radius-lg: 2rem;
  --radius-xl: 2.5rem;

  /* depth: one soft blue drop plus a sunny secondary lift */
  --shadow-ambient: 0 26px 60px -34px rgba(46, 143, 196, 0.32);
  --shadow-lift: 0 34px 72px -30px rgba(31, 109, 153, 0.4);
  --shadow-inset: inset 0 1px 1px var(--color-highlight);

  /* motion: a touch springier than the base sheet */
  --ease-spring: cubic-bezier(0.3, 0.9, 0.28, 1.12);
}

/* --------------------------------------------------------------------------
   2 · Ground and type — a soft blue horizon behind everything
   -------------------------------------------------------------------------- */
body {
  background: var(--breeze-horizon), var(--color-bg);
  background-attachment: fixed;
}

::selection { background: var(--breeze-yellow-soft); color: var(--color-ink); }

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
  border-radius: var(--radius-sm);
}

.section--alt { background: var(--color-bg-alt); }

.eyebrow {
  background: var(--color-surface);
  color: var(--color-accent-deep);
  box-shadow: var(--breeze-chip-shadow);
}
.eyebrow::before {
  background: var(--color-warm);
  box-shadow: 0 0 0 4px var(--breeze-yellow-tint);
}

.section-title { letter-spacing: -0.04em; }
.section-lead { color: var(--color-ink-soft); }

/* small text highlight — the sunny half of the palette */
.text-accent { color: var(--color-accent); }

/* --------------------------------------------------------------------------
   3 · Badges — sunshine fill, navy ink, full capsule
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--color-warm);
  color: var(--color-ink);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: var(--breeze-badge-shadow);
}

.brand-badge {
  border-radius: var(--radius-pill);
  background: var(--color-warm);
  color: var(--color-ink);
  box-shadow: var(--breeze-badge-shadow);
}

/* small inline pills keep the sun accent instead of flat grey */
.product-spec,
.proof-pill {
  background: var(--color-accent-wash);
  color: var(--color-accent-deep);
}

/* --------------------------------------------------------------------------
   4 · Buttons — full capsule, springy bloom on hover
   -------------------------------------------------------------------------- */
.btn {
  border-radius: var(--radius-pill);
  transition: transform var(--dur-fast) var(--ease-spring),
    box-shadow var(--dur-fast) var(--ease-spring),
    background var(--dur-fast) var(--ease-spring),
    color var(--dur-fast) var(--ease-spring);
}
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn:active { transform: translateY(0) scale(0.99); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-surface);
  box-shadow: var(--breeze-btn-shadow);
}
.btn-primary:hover {
  background: var(--color-accent-deep);
  box-shadow: var(--breeze-btn-shadow-hover);
  transform: translateY(-2px) scale(1.02);
}
.btn-primary:focus-visible { outline-color: var(--color-accent-deep); }

.btn-ghost {
  background: var(--color-surface);
  color: var(--color-ink);
  box-shadow: var(--shadow-ambient), var(--shadow-inset);
}
.btn-ghost:hover {
  background: var(--color-surface);
  box-shadow: var(--shadow-lift), var(--shadow-inset);
}

.btn-icon {
  background: var(--breeze-accent-tint-strong);
  color: var(--color-surface);
}
.btn-ghost .btn-icon {
  background: var(--breeze-yellow-wash);
  color: var(--color-ink);
}
.btn:hover .btn-icon {
  transform: translate(2px, -2px) scale(1.08);
  background: var(--breeze-yellow-soft);
  color: var(--color-ink);
}
.btn-ghost:hover .btn-icon {
  background: var(--color-warm);
  color: var(--color-ink);
}

/* --------------------------------------------------------------------------
   5 · Cards — every card hops the same six pixels, with a deeper blue shadow
   -------------------------------------------------------------------------- */
.bento-card,
.product-card,
.cap-card,
.insight-card,
.bezel,
.pdp-card,
.article-card {
  border-radius: var(--radius-xl);
  transition: transform var(--dur-mid) var(--ease-spring),
    box-shadow var(--dur-mid) var(--ease-spring),
    border-color var(--dur-mid) var(--ease-spring);
}

.bento-card:hover,
.product-card:hover,
.cap-card:hover,
.insight-card:hover,
.bezel:hover,
.pdp-card:hover,
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lift), var(--shadow-inset);
}

/* the bezel wrapper keeps its 8px core offset in step with the new radius */
.bezel { padding: 8px; background: var(--color-bg-alt); }
.bezel-core { border-radius: calc(var(--radius-xl) - 8px); }
.bezel--flat { background: var(--breeze-accent-tint); }

/* product cards get a soft sunny halo on hover */
.product-card:hover .product-media { background: var(--color-accent-wash); }
.product-card:hover .product-tag { color: var(--color-accent-deep); }

/* bento tiles that carry a photo use the blue-tinted veil */
.bento-media::after { background: var(--breeze-image-veil); }
.bento-card--accent { background: var(--color-accent); color: var(--color-surface); }
.bento-card--accent .bento-index { color: var(--breeze-yellow-soft); }

/* --------------------------------------------------------------------------
   6 · Hero — a rounded window with a sunny peeking panel behind it
   -------------------------------------------------------------------------- */
.hero-frame {
  position: relative;
  border-radius: var(--radius-xl);
  isolation: isolate;
}
.hero-frame img,
.hero-frame .hero-fallback {
  position: relative;
  z-index: 1;
  border-radius: calc(var(--radius-xl) - 8px);
}
/* the wrapper (not the clipped frame) carries the peeking blue panel */
.hero-visual .bezel {
  position: relative;
  isolation: isolate;
  background: var(--color-bg-alt);
}
.hero-visual .bezel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--color-accent-soft);
  transform: translate(16px, 18px) rotate(1.2deg);
  box-shadow: var(--breeze-panel-shadow);
}
.hero-frame img {
  box-shadow: var(--breeze-photo-shadow), inset 0 0 0 1px var(--color-highlight);
}
.hero-fallback {
  background: linear-gradient(
    150deg,
    var(--color-accent-wash),
    var(--color-bg-alt) 55%,
    var(--color-accent-soft)
  );
}
.hero-float {
  border-radius: var(--radius-md);
  background: var(--breeze-glass);
  box-shadow: var(--shadow-lift), var(--shadow-inset);
}
.hero-float-value { color: var(--color-accent-deep); }
.hero-proof { border-top-color: var(--color-hairline); }
.hero-proof-item svg { color: var(--color-accent); }

/* --------------------------------------------------------------------------
   7 · Navigation & footer accents
   -------------------------------------------------------------------------- */
.nav-inner.is-scrolled {
  background: var(--breeze-glass);
  box-shadow: var(--breeze-nav-shadow);
}
.nav-links a:hover { color: var(--color-accent-deep); }
.nav-links a::after { background: var(--color-warm); height: 2px; }
.nav-cta { border-radius: var(--radius-pill); }
.nav-overlay { background: var(--breeze-veil); }
.nav-overlay a:hover { color: var(--color-accent); }
.nav-toggle { background: var(--color-accent-wash); }

.trust-bar { background: var(--color-ink); }
.stat-value span { color: var(--color-warm); }
.footer-col a:hover { color: var(--color-warm); }

/* --------------------------------------------------------------------------
   8 · CTA band — blue paper warming into sunshine
   -------------------------------------------------------------------------- */
.cta-section { background: var(--breeze-cta); }
.cta-orb,
.cta-glow { background: var(--color-warm); opacity: 0.35; }
.cta-point svg { color: var(--color-accent); }

/* --------------------------------------------------------------------------
   9 · Motion & contrast safety
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body { background-attachment: scroll; }
  .btn:hover,
  .bento-card:hover,
  .product-card:hover,
  .cap-card:hover,
  .insight-card:hover,
  .bezel:hover,
  .pdp-card:hover,
  .article-card:hover {
    transform: none;
  }
  .hero-visual .bezel::before { transform: translate(0, 0) rotate(0deg); }
}
