/* My Lovely Wedding — Design Tokens & Base Styles */

:root {
  /* Palette — warm ivory + soft gold (verified from their actual site) */
  --paper:        #FBF8F4;   /* warm ivory page */
  --paper-deep:   #F7F1E8;
  --cream:        #F3ECE2;   /* soft sections / cards */
  --cream-2:      #EFE5D6;
  --line:         #E7DDD2;   /* hairlines */
  --line-soft:    #EFE7DC;
  --ink:          #2B2622;   /* primary text */
  --ink-soft:     #5A524A;   /* secondary text */
  --ink-muted:    #8B7F73;
  --gold:         #C9B26B;   /* accent — slightly more saturated than #DAC97B for hierarchy */
  --gold-deep:    #A8924E;
  --forest:       #3B4A3A;   /* deep romantic secondary */
  --blush:        #C8907B;   /* alternate accent */

  --accent:       var(--gold);
  --accent-deep:  var(--gold-deep);

  --font-display: 'Bodoni Moda', 'Cormorant Garamond', 'Times New Roman', serif;
  --font-script:  'Pinyon Script', 'Tangerine', cursive;
  --font-body:    'Mulish', 'Inter', -apple-system, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --radius-sm: 2px;
  --radius:    4px;
  --radius-lg: 8px;

  --shadow-soft: 0 1px 2px rgba(43,38,34,.04), 0 8px 30px rgba(43,38,34,.06);
  --shadow-hov:  0 1px 2px rgba(43,38,34,.06), 0 20px 50px rgba(43,38,34,.12);
}

[dir="rtl"] {
  --font-display: 'Bodoni Moda', 'Noto Naskh Arabic', serif;
  --font-body:    'IBM Plex Sans Arabic', 'Mulish', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

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

/* Typography ---------------------------------------------------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.012em;
  line-height: 1.08;
  color: var(--ink);
  font-style: normal;
  text-wrap: balance;
}
.h-display em { font-style: italic; font-weight: 300; }

/* Heroes/large displays opt into tighter leading explicitly */
.h-display.h-tight { line-height: 0.96; }

.script {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  line-height: 0.85;
  color: var(--accent-deep);
}

/* Inline script accent word — used inside h-display headings.
   Centralises sizing + vertical alignment so words like "love",
   "help", "design" never collide with adjacent lines. */
.scrpt {
  font-family: var(--font-script);
  font-weight: 400;
  font-style: normal;
  color: var(--accent-deep);
  font-size: 1.18em;
  line-height: 0.6;
  display: inline-block;
  vertical-align: baseline;
  padding: 0 0.04em;
  margin: 0 0.02em -0.05em;
  /* Pinyon's natural metrics sit slightly above the Bodoni baseline
     — nudge down so the visual baselines align. */
  transform: translateY(0.06em);
}

/* When a script word lives inside a large h-display line,
   ensure the parent line has enough room. */
.h-display:has(.scrpt) { line-height: 1.22; }
.h-display.h-tight:has(.scrpt) { line-height: 1.0; padding-bottom: 0.05em; }

/* Headlines with script word — ensure proper vertical breathing room */
.h-with-script-line {
  padding-top: 0.18em;
  padding-bottom: 0.05em;
  line-height: 1.05 !important;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow .dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--accent);
  border-radius: 50%;
  margin: 0 10px 2px 0;
  vertical-align: middle;
}

.lede {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.35;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  transition: all .25s ease;
  white-space: nowrap;
}
.btn:hover { background: transparent; color: var(--ink); }

.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); }

.btn--gold {
  background: var(--accent); color: var(--ink);
  border-color: var(--accent);
}
.btn--gold:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: var(--paper); }

.btn--ivory {
  background: var(--paper); color: var(--ink);
  border-color: var(--paper);
}
.btn--ivory:hover { background: transparent; color: var(--paper); border-color: var(--paper); }

.btn--text {
  background: transparent; border: none; padding: 0;
  color: var(--ink);
  border-bottom: 1px solid var(--accent);
  border-radius: 0;
  padding-bottom: 4px;
  font-size: 11px;
  letter-spacing: 0.22em;
}
.btn--text:hover { color: var(--accent-deep); border-color: var(--accent-deep); }

/* Layout helpers ------------------------------------------------ */
.wrap { width: 100%; max-width: 1340px; margin: 0 auto; padding: 0 32px; }
.wrap-tight { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 32px; }
.wrap-wide  { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 32px; }

.section { padding: 110px 0; }
.section-sm { padding: 72px 0; }
.section-tight { padding: 56px 0; }

.divider-rule {
  display: flex; align-items: center; gap: 18px;
  color: var(--ink-soft);
}
.divider-rule::before, .divider-rule::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}

.hairline { height: 1px; background: var(--line); border: 0; margin: 0; }

/* Cards / image frames ------------------------------------------ */
.frame {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.frame:hover img { transform: scale(1.04); }

.frame--tall    { aspect-ratio: 3/4; }
.frame--portrait{ aspect-ratio: 4/5; }
.frame--square  { aspect-ratio: 1/1; }
.frame--wide    { aspect-ratio: 16/10; }
.frame--cinema  { aspect-ratio: 21/9; }

.photo-credit {
  position: absolute;
  left: 14px; bottom: 12px;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(251,248,244,.85);
  background: rgba(43,38,34,.32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 5px 9px;
  border-radius: 2px;
}

/* Form elements ------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.field > input,
.field > select,
.field > textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 12px;
  border-radius: 0;
  outline: none;
  transition: border-color .2s ease;
  width: 100%;
}
.field > textarea {
  border: 1px solid var(--line);
  padding: 14px 16px;
  border-radius: 4px;
  min-height: 120px;
  resize: vertical;
}
.field > input:focus,
.field > select:focus,
.field > textarea:focus {
  border-color: var(--accent-deep);
}
.field--inline-radio {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip-radio {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 9px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  transition: all .2s ease;
  cursor: pointer;
}
.chip-radio.is-on {
  background: var(--ink); color: var(--paper); border-color: var(--ink);
}
.chip-radio:hover { border-color: var(--ink-soft); color: var(--ink); }

/* Floating WhatsApp + sticky enquire */
.fab {
  position: fixed; right: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink);
  color: var(--paper);
  padding: 13px 18px;
  border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: var(--shadow-hov);
  z-index: 80;
  border: 1px solid var(--ink);
  transition: all .2s ease;
}
.fab:hover { background: var(--paper); color: var(--ink); }

/* RTL ------------------------------------------------------------ */
[dir="rtl"] .fab { right: auto; left: 22px; }
[dir="rtl"] .eyebrow .dot { margin: 0 0 2px 10px; }

/* Marquee / press strip */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 22px 0;
}
.marquee-track {
  display: flex; gap: 72px;
  white-space: nowrap;
  animation: marquee 42s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: 20px;
  color: var(--ink-soft);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Tiny icon glyphs (use sparingly) */
.glyph { width: 14px; height: 14px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.2; }

/* Cursor → script flourish on hover for accent links */
.link-accent {
  position: relative;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent);
  transition: color .2s ease;
}
.link-accent:hover { color: var(--accent-deep); }

/* Decorative ornaments */
.ornament {
  font-family: var(--font-script);
  color: var(--accent);
  font-size: 36px;
  line-height: 1;
  display: inline-block;
}

/* Generic transitions */
.fade-in { animation: fadeIn .6s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Page transition wrapper */
.page-enter { animation: pageEnter .45s cubic-bezier(.2,.6,.2,1) both; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Scrollbar restraint (preview frame) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-muted); }
::-webkit-scrollbar-track { background: var(--paper); }

/* Accent variants (driven by tweak) */
[data-accent="forest"] {
  --accent: #4F6151;
  --accent-deep: #3B4A3A;
}
[data-accent="blush"] {
  --accent: #C8907B;
  --accent-deep: #A57361;
}
[data-accent="gold"] {
  --accent: #C9B26B;
  --accent-deep: #A8924E;
}

/* Density --------------------------------------------------------- */
[data-density="cozy"] .section { padding: 80px 0; }
[data-density="airy"] .section { padding: 140px 0; }
