/* ============================================================
   BELLE AND BLOOM DESIGNS — Design System
   Warm gold-led palette · blush + sage accents · editorial serif
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Jost:wght@300;400;500;600&family=Marcellus&display=swap');

:root {
  /* ---- Color: purple-led (brand logo), magenta-pink accent ---- */
  --cream:        #FBF7FC;   /* soft lilac white */
  --cream-deep:   #F3EAF8;   /* soft lilac */
  --ivory:        #FFFDFF;
  --ink:          #2A1133;   /* deep plum near-black */
  --ink-soft:     #6B5277;
  --ink-faint:    #9C88A8;
  --line:         #EADCF0;

  /* primary — brand purple (was "gold") */
  --gold:         #8A18C0;
  --gold-deep:    #6B0CA0;
  --gold-soft:    #EAD6F5;

  /* accent — magenta-pink (was "blush") */
  --blush:        #F0207F;
  --blush-deep:   #D1146A;
  --blush-soft:   #FBD8E8;

  /* tertiary — soft violet/periwinkle (was "sage") */
  --sage:         #A98FD8;
  --sage-deep:    #7A5CB6;
  --sage-soft:    #E9E1F7;

  --clay:         #B86FB0;

  /* ---- Type ---- */
  --serif:  'Cormorant Garamond', Georgia, serif;
  --roman:  'Marcellus', 'Cormorant Garamond', serif;
  --sans:   'Jost', system-ui, sans-serif;

  /* ---- Geometry ---- */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 12px rgba(42,17,51,.07);
  --shadow-md: 0 12px 40px rgba(42,17,51,.12);
  --shadow-lg: 0 24px 70px rgba(42,17,51,.18);

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 72px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---- Typographic scale ---- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.015em;
}
.display em { font-style: italic; font-weight: 400; }

.script { font-style: italic; font-weight: 400; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wide { max-width: 1480px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 500; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 16px 32px; border-radius: 100px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), background .3s, color .3s, box-shadow .3s;
  white-space: nowrap; cursor: pointer;
}
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover { background: var(--gold-deep); box-shadow: var(--shadow-md); }

.btn-gold { background: linear-gradient(120deg, var(--gold-deep) 0%, var(--gold) 45%, var(--blush) 100%); color: #fff; }
.btn-gold:hover { box-shadow: 0 14px 34px rgba(138,24,192,.34); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }

.btn-blush { background: var(--blush); color: #fff; }
.btn-blush:hover { background: var(--blush-deep); transform: translateY(-2px); }

.btn-sm { padding: 11px 22px; font-size: 11px; }
.btn-lg { padding: 19px 42px; font-size: 14px; }
.btn-block { width: 100%; }

/* Link with animated underline */
.link-u { position: relative; font-weight: 500; }
.link-u::after {
  content: ''; position: absolute; left: 0; bottom: -3px; height: 1px; width: 100%;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* ============================================================
   IMAGE PLACEHOLDERS — branded, intentional, premium
   ============================================================ */
.ph {
  position: relative; overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 2px, transparent 2px 22px),
    var(--ph-grad, linear-gradient(140deg, var(--gold-soft), var(--blush-soft) 55%, var(--sage-soft)));
  display: flex; align-items: center; justify-content: center;
}
.ph::after {
  content: attr(data-label);
  font-family: 'Jost', monospace; font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(42,17,51,.45);
  padding: 7px 13px; border: 1px solid rgba(42,17,51,.18);
  border-radius: 100px; background: rgba(255,253,255,.55);
  backdrop-filter: blur(2px); text-align: center; max-width: 80%;
}
.ph-blush { --ph-grad: linear-gradient(140deg, var(--blush-soft), #fff 50%, var(--gold-soft)); }
.ph-sage  { --ph-grad: linear-gradient(140deg, var(--sage-soft), #fff 50%, var(--gold-soft)); }
.ph-gold  { --ph-grad: linear-gradient(140deg, var(--gold-soft), #fff 55%, var(--blush-soft)); }
.ph-dark  { --ph-grad: linear-gradient(140deg, #2A1133, #4A1E5E 60%, #2A1133); }
.ph-dark::after { color: rgba(255,253,255,.6); border-color: rgba(255,253,255,.28); background: rgba(42,17,51,.4); }
.ph[data-label=""]::after { display: none; }

/* ============================================================
   CARDS / CHIPS / BADGES
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; letter-spacing: .04em; font-weight: 500;
  padding: 7px 15px; border-radius: 100px;
  background: var(--ivory); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-soft); transition: all .25s; cursor: pointer; white-space: nowrap;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--gold); color: var(--ink); }
.chip.active { background: var(--ink); color: var(--cream); box-shadow: none; }

.badge {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  padding: 5px 11px; border-radius: 100px;
}
.badge-best { background: var(--gold); color: #fff; }
.badge-new  { background: var(--sage); color: #fff; }
.badge-low  { background: var(--blush-deep); color: #fff; }

/* ============================================================
   FORMS
   ============================================================ */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.input {
  background: var(--ivory); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  padding: 14px 16px; color: var(--ink); transition: border .25s, box-shadow .25s; width: 100%;
}
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(138,24,192,.14); }
.input::placeholder { color: var(--ink-faint); }
.input-error { border-color: var(--blush) !important; box-shadow: 0 0 0 4px rgba(240,32,127,.10) !important; }

.field-error { font-size: 12px; color: var(--blush-deep); font-weight: 500; margin-top: -2px; }

.link-btn { color: var(--gold); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; background: none; border: none; cursor: pointer; padding: 0; font-family: inherit; font-size: inherit; }
.link-btn:hover { color: var(--gold-deep); }

/* ============================================================
   MOTION
   ============================================================ */
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
@keyframes authSpin { to { transform: rotate(360deg); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@keyframes riseIn { from { transform: translateY(22px); } to { transform: none; } }

/* Content is ALWAYS visible (opacity never animated from 0) so it renders
   reliably even in throttled/hidden iframes. Entrance is a transform-only
   enhancement layered on top. */
.reveal { opacity: 1; }
.reveal.in { animation: riseIn .7s cubic-bezier(.2,.8,.2,1); }

[data-d="1"] { animation-delay: .05s; }
[data-d="2"] { animation-delay: .10s; }
[data-d="3"] { animation-delay: .15s; }
[data-d="4"] { animation-delay: .20s; }
[data-d="5"] { animation-delay: .25s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

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

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--cream-deep); }
::-webkit-scrollbar-thumb { background: var(--gold-soft); border-radius: 100px; border: 3px solid var(--cream-deep); }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* Utility */
.center { text-align: center; }
.muted { color: var(--ink-soft); }

/* Brand gradient wordmark (purple → magenta, echoes the logo) */
.brand-grad {
  background: linear-gradient(100deg, var(--gold-deep) 0%, var(--gold) 40%, var(--blush) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  white-space: nowrap;
  display: inline-block;
  /* Extra padding so italic glyphs (especially trailing 'm') aren't clipped */
  padding: 0.06em 0.22em 0.06em 0.04em;
  margin: -0.06em -0.22em -0.06em -0.04em;
}
.divider { height: 1px; background: var(--line); border: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
