/* ══════════════════════════════════════════════════════════════════════════
   SEA MIRACLE — BRAND TOKENS
   Single source of truth for colour and typography.

   SUPPLIED PALETTE
     COLOR 1  #E5BE9E  Soft Peach
     COLOR 2  #DFAB76  Warm Caramel
     COLOR 3  #E7B88E  Golden Peach

   The three supplied colours are light pastels. Measured against white text
   they score 1.72:1, 2.05:1 and 1.80:1 — far below the 4.5:1 that WCAG AA
   requires. They are therefore used for GRADIENTS, TINTS AND DECORATIVE FILLS,
   never as a surface that has to carry text.

   Text, links and solid buttons come from the derived ramp below, which is
   the same hue family (29°) with the lightness solved for contrast. Every
   value here is verified, not eyeballed.
   ══════════════════════════════════════════════════════════════════════════ */

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

:root {
  /* ── Supplied brand colours (decorative) ───────────────────────────── */
  --brand-peach:   #E5BE9E;   /* COLOR 1 · Soft Peach   */
  --brand-caramel: #DFAB76;   /* COLOR 2 · Warm Caramel */
  --brand-golden:  #E7B88E;   /* COLOR 3 · Golden Peach */

  /* ── Derived ramp — every ratio below is measured ──────────────────── */
  --brand-ink:     #654120;   /*  9.01:1  body copy, headings            */
  --brand-strong:  #7C4C1F;   /*  7.22:1  strong emphasis, prices        */
  --brand-link:    #945B25;   /*  5.55:1  links (AA)                     */
  --brand-solid:   #A36833;   /*  4.58:1  solid fill carrying WHITE text */
  --brand-deep:    #774C24;   /*  7.38:1  gradient end, white text        */
  --brand-accent:  #BD712A;   /*  3.78:1  large text, borders, icons      */

  /* ── Tints — the supplied peach washed onto white ──────────────────── */
  --brand-tint-1:  #FAF6F3;   /*  page-level soft panel                  */
  --brand-tint-2:  #F6ECE2;   /*  card / table stripe                    */
  --brand-tint-3:  #F2E3D5;   /*  badge / chip fill                       */
  --brand-tint-4:  #EACCB0;   /*  chip border, hover fill                */
  --brand-tint-5:  #E8C6A7;   /*  decorative panel                        */

  /* ── Gradients ─────────────────────────────────────────────────────── */
  /* Both stops verified against white text: 4.58:1 and 7.38:1. */
  --grad-brand:  linear-gradient(135deg, #A36833 0%, #774C24 100%);
  --grad-brand-r: linear-gradient(135deg, #774C24 0%, #A36833 100%);
  /* Purely decorative — never place text directly on this. */
  --grad-peach:  linear-gradient(135deg, #E7B88E 0%, #DFAB76 55%, #E5BE9E 100%);
  --grad-peach-soft: linear-gradient(135deg, #FAF6F3 0%, #F2E3D5 100%);

  /* ── Focus ring ────────────────────────────────────────────────────── */
  --focus-ring: #A36833;

  /* ── Typography ────────────────────────────────────────────────────── */
  --font-display: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;

  /* Modest scale — e-commerce needs density, so the steps are close. */
  --fs-xs:   12px;
  --fs-sm:   13px;
  --fs-base: 15px;
  --fs-md:   16px;
  --fs-lg:   18px;
  --fs-xl:   22px;
  --fs-2xl:  28px;
  --fs-3xl:  34px;
  --fs-4xl:  44px;

  --lh-tight: 1.2;
  --lh-snug:  1.35;
  --lh-body:  1.6;
}

/* ══════════════════════════════════════════════════════════════════════════
   BASE
   ══════════════════════════════════════════════════════════════════════════ */
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  color: #1F2937;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

/* Every focusable control gets a visible, on-brand ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════════════════
   DISPLAY TYPE — storefront only.
   Scoped to .nav-link / .pdv-* etc via the storefront pages so that admin and
   customer dashboards stay entirely Inter. Serif headings inside dense tables
   and forms measurably reduce scanability.
   ══════════════════════════════════════════════════════════════════════════ */
body.storefront h1,
body.storefront h2,
body.storefront .hero-title,
body.storefront .section-title,
body.storefront .pdv-title,
body.storefront .prd-name,
body.storefront .logo-text {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -.01em;
}

/* Display serif needs a touch more weight at small sizes to avoid looking
   thin next to the Inter body copy. */
body.storefront h2,
body.storefront .section-title { font-weight: 700; }

/* ══════════════════════════════════════════════════════════════════════════
   MOTION — respect the user's system preference.
   ══════════════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
/* ── Decorative brand band ───────────────────────────────────────────────
   Uses the three supplied colours verbatim. This is purely decorative and
   deliberately carries NO text, because white on #DFAB76 is only 2.05:1. */
.storefront .brand-band{
  background:linear-gradient(135deg,#E7B88E 0%,#DFAB76 55%,#E5BE9E 100%);
}
.storefront .brand-band-soft{
  background:linear-gradient(135deg,#FAF6F3 0%,#F2E3D5 100%);
}
.storefront .brand-rule{
  height:4px;border:0;border-radius:9999px;
  background:linear-gradient(90deg,#E7B88E,#DFAB76,#E5BE9E);
}
/* Accent underline for storefront section headings. */
.storefront .section-title{
  background-image:linear-gradient(90deg,#DFAB76,#E7B88E);
  background-repeat:no-repeat;
  background-size:0% 3px;
  background-position:0 100%;
  padding-bottom:6px;
  transition:background-size .35s ease;
}
.storefront .section-title:hover{background-size:100% 3px}

/* Shared sheet animation for the mobile menu.
   Defined once here because home.css and shop.css each carry their own copy
   of the .mobile-nav rules — the panel has to look and behave identically on
   all three storefront pages, and two private @keyframes would drift apart.
   Keyframes are inert unless referenced, so this costs nothing on pages that
   never open a menu. 12px is deliberately small: the panel is already
   anchored directly beneath the navbar, so a 32px drop reads as a stutter. */
@keyframes smMenuIn{from{opacity:0;transform:translateY(-12px)}to{opacity:1;transform:none}}

/* ── Shared responsive store-policy dialog ────────────────────────────── */
.site-policy-modal[hidden] { display: none; }
.site-policy-modal {
  position: fixed; inset: 0; z-index: 1300;
  display: grid; place-items: center; padding: 20px;
  background: rgba(31,41,55,.54);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.site-policy-dialog {
  width: min(100%, 760px);
  max-height: min(86vh, 820px);
  max-height: min(86dvh, 820px);
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid rgba(255,255,255,.84); border-radius: 20px;
  background: #fffdfa;
  box-shadow: 0 28px 80px rgba(31,41,55,.26), 0 6px 20px rgba(101,65,32,.12);
}
.site-policy-header {
  flex: 0 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  padding: 24px 28px 18px;
  border-bottom: 1px solid #f0e5da;
  background: linear-gradient(135deg, #fffdfa, #faf6f3);
}
.site-policy-eyebrow {
  display: block; margin-bottom: 6px;
  color: #945b25; font-size: 10px; font-weight: 700;
  letter-spacing: .14em; line-height: 1.4; text-transform: uppercase;
}
.site-policy-header h2 {
  margin: 0; color: #47301a;
  font-family: var(--font-display); font-size: clamp(25px, 4vw, 34px);
  font-weight: 600; line-height: 1.1;
}
.site-policy-close {
  width: 38px; height: 38px; flex: 0 0 38px;
  display: grid; place-items: center;
  border: 1px solid #ead9c8; border-radius: 50%;
  background: #fff; color: #654120; font-size: 14px;
  cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.site-policy-close:hover { background: #f2e3d5; transform: rotate(4deg); }
.site-policy-close:focus-visible { outline: 2px solid #A36833; outline-offset: 3px; }
.site-policy-content {
  min-height: 0; flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain;
  padding: 22px 28px 26px;
  color: #4B5563; font-size: 14px; line-height: 1.75;
}
.site-policy-content p { margin: 0 0 15px; }
.site-policy-content h3 { margin: 23px 0 8px; color: #654120; font-size: 14px; font-weight: 700; line-height: 1.4; }
.site-policy-content ul { margin: 0 0 16px; padding-left: 22px; }
.site-policy-content li { margin: 0 0 7px; padding-left: 3px; }
.site-policy-footer {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 14px;
  padding: 13px 28px; border-top: 1px solid #f0e5da;
  background: #faf6f3; color: #735b45; font-size: 12px;
}
.site-policy-footer a { color: #814f20; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.site-policy-footer a:hover { color: #654120; text-decoration: underline; }
.site-policy-footer a:focus-visible { outline: 2px solid #A36833; outline-offset: 3px; }
@media (max-width: 560px) {
  .site-policy-modal { padding: 10px; }
  .site-policy-dialog { max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px); border-radius: 16px; }
  .site-policy-header { padding: 18px 18px 14px; gap: 12px; }
  .site-policy-content { padding: 17px 18px 20px; font-size: 13px; line-height: 1.7; }
  .site-policy-content h3 { margin-top: 20px; }
  .site-policy-footer { padding: 12px 18px; }
}
