/* =====================================================================
   ÁLTER Weddings — Shared Stylesheet
   v2.0 · Design System Foundations + Extended Components
   ===================================================================== */

/* ─── FONT LOADING (LOCAL) ─── */
@font-face {
  font-family: 'Raleway';
  src: url('fonts/Raleway-Light.woff2') format('woff2'),
       url('fonts/Raleway-Light.ttf') format('truetype');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('fonts/Raleway-Medium.woff2') format('woff2'),
       url('fonts/Raleway-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('fonts/Raleway-Bold.woff2') format('woff2'),
       url('fonts/Raleway-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('fonts/Raleway-ExtraBold.woff2') format('woff2'),
       url('fonts/Raleway-ExtraBold.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Sloop';
  src: url('fonts/Sloop-ScriptThree.woff2') format('woff2'),
       url('fonts/Sloop-ScriptThree.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}


/* ─── TOKENS ─── */
:root {
  /* Surfaces — warm ivory */
  --bg:         #F5F0EB;
  --bg2:        #EDE7DF;
  --bg3:        #E4DDD4;
  --bg4:        #D8CFC3;

  /* Ink — warm grayscale */
  --ink:        #1E1916;
  --ink2:       #6B5E54;
  --ink3:       #9B8B7E;
  --ink4:       #C4B7AA;

  /* Brand accents */
  --accent:     oklch(62% 0.08 50);     /* sienna */
  --accent-d:   oklch(54% 0.08 48);
  --gold:       oklch(72% 0.09 72);
  --rose:       oklch(78% 0.04 30);

  /* Semantic */
  --success:    oklch(58% 0.07 145);
  --warning:    oklch(72% 0.10 75);
  --danger:     oklch(56% 0.13 28);

  /* Dark — cinematic */
  --dark:       #0F0D0B;
  --dark2:      #1A1612;
  --dark3:      #2A2520;
  --b-ink:      #F0EAE2;
  --b-ink2:     #9B8E82;

  /* Type */
  --sans:       'Raleway', 'Helvetica Neue', sans-serif;
  --script:     'Sloop', 'Allura', 'Brush Script MT', cursive;
  --hand:       'Sloop', 'Allura', cursive;
  --mono:       'Courier New', monospace;

  /* Radii — kept tight for editorial feel */
  --r-sm:       2px;
  --r-md:       4px;
  --r-lg:       8px;
  --r-pill:     999px;

  /* Spacing */
  --sp-2: 2px;  --sp-4: 4px;   --sp-8: 8px;   --sp-12: 12px;
  --sp-16:16px; --sp-24:24px;  --sp-32:32px;  --sp-48: 48px;
  --sp-64:64px; --sp-80:80px;  --sp-120:120px;

  /* Motion */
  --t-fast: 0.15s ease;
  --t-base: 0.2s ease;
  --t-med:  0.3s ease;
  --t-slow: 0.6s ease;

  /* Elevation — sparse, high-key */
  --shadow-sm: 0 1px 2px rgba(30,25,22,0.06);
  --shadow-md: 0 8px 24px -8px rgba(30,25,22,0.12);
  --shadow-lg: 0 24px 48px -16px rgba(30,25,22,0.18);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; display: block; }

/* ─── TYPE UTILS ─── */
.script { font-family: var(--script); font-weight: 400; letter-spacing: 0; text-transform: none; }
.eyebrow {
  font-weight: 700; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink2);
}
.eyebrow-accent { color: var(--accent); }
.h-display {
  font-family: var(--sans); font-weight: 800;
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -0.01em; line-height: 1;
}
.h-section {
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.h-card {
  font-weight: 700; font-size: 14px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.body-lg { font-weight: 300; font-size: 18px; line-height: 1.6; color: var(--ink2); }
.body    { font-weight: 400; font-size: 14px; line-height: 1.7; color: var(--ink2); }
.caption { font-size: 11px; color: var(--ink3); letter-spacing: 0.04em; }

/* ─── PLACEHOLDER IMAGERY ─── */
/* Striped placeholder — drop a `data-ph` attribute for the explainer label. */
.ph {
  position: relative;
  background: var(--bg3);
  background-image: repeating-linear-gradient(-45deg,
    transparent 0 28px,
    rgba(30,25,22,0.04) 28px 29px);
  display: flex; align-items: flex-end; justify-content: flex-start;
  overflow: hidden;
}
.ph::after {
  content: attr(data-ph);
  position: absolute; left: 14px; bottom: 12px;
  font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.06em;
  color: rgba(30,25,22,0.32);
  text-transform: uppercase;
}
.ph.ph-bg2 { background-color: var(--bg2); }
.ph.ph-bg4 { background-color: var(--bg4); }
.ph.ph-ink { background-color: var(--dark2); background-image: repeating-linear-gradient(-45deg,transparent 0 28px,rgba(245,240,235,0.04) 28px 29px); }
.ph.ph-ink::after { color: rgba(245,240,235,0.4); }

/* ─── BUTTONS ─── */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 36px; font-family: var(--sans); font-weight: 700; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; border: none; cursor: pointer; transition: all var(--t-base); text-decoration: none; line-height: 1; }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--accent); }
.btn-secondary { background: transparent; color: var(--ink); border: 1px solid rgba(30,25,22,0.3); padding: 15px 36px; }
.btn-secondary:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-d); }
.btn-ghost-light { background: transparent; color: var(--bg); border: 1px solid rgba(245,240,235,0.25); padding: 15px 36px; }
.btn-ghost-light:hover { background: var(--bg); color: var(--ink); }
.btn-text-arrow { padding: 0; background: none; border: none; gap: 16px; color: var(--ink); }
.btn-text-arrow .arrow-line { width: 40px; height: 1px; background: var(--accent); transition: width var(--t-med); }
.btn-text-arrow:hover .arrow-line { width: 56px; }
.btn-sm { padding: 10px 22px; font-size: 10px; }
.btn-block { width: 100%; justify-content: center; }

/* ─── TAGS ─── */
.tag { display: inline-flex; align-items: center; padding: 5px 12px; font-size: 10px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.tag-ink { background: var(--ink); color: var(--bg); }
.tag-accent { background: var(--accent); color: #fff; }
.tag-outline { border: 1px solid rgba(30,25,22,0.25); color: var(--ink2); }
.tag-gold { background: var(--gold); color: var(--ink); }
.tag-soft { background: var(--bg3); color: var(--ink2); }

/* ─── DIVIDERS ─── */
.div-line { width: 100%; height: 1px; background: rgba(30,25,22,0.1); }
.div-orn  { display: flex; align-items: center; gap: 16px; }
.div-orn::before, .div-orn::after { content: ''; flex: 1; height: 1px; background: rgba(30,25,22,0.12); }
.div-orn span { font-family: var(--script); font-size: 28px; color: var(--accent); opacity: 0.7; line-height: 1; }

/* ─── NAV (DESKTOP + MOBILE DRAWER) ─── */
.nav {
  position: sticky; top: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px; height: 72px;
  background: rgba(245,240,235,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(30,25,22,0.06);
}
.nav-logo { font-weight: 800; font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; display: flex; align-items: center; gap: 4px; }
.nav-logo .script { font-size: 22px; color: var(--accent); margin-right: -2px; transform: translateY(2px); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { font-weight: 500; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink2); transition: color var(--t-base); }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 24px; }
.lang-switch { font-size: 11px; letter-spacing: 0.12em; color: var(--ink3); display: flex; gap: 6px; font-weight: 500; }
.lang-switch button { background: none; border: none; color: inherit; cursor: pointer; font: inherit; padding: 0; }
.lang-switch .is-on { color: var(--ink); border-bottom: 1px solid var(--ink); }
.nav-burger { display: none; flex-direction: column; gap: 4px; background: none; border: none; padding: 6px; cursor: pointer; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink); transition: transform var(--t-med); }

/* Mobile drawer */
.nav-drawer { position: fixed; inset: 0; background: var(--ink); color: var(--bg); display: flex; flex-direction: column; padding: 80px 32px 32px; opacity: 0; pointer-events: none; transition: opacity var(--t-med); z-index: 90; }
.nav-drawer.is-open { opacity: 1; pointer-events: auto; }
.nav-drawer ul { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: auto; }
.nav-drawer ul a { font-family: var(--script); font-size: 36px; color: var(--bg); }
.nav-drawer-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: var(--bg); font-size: 22px; cursor: pointer; }

/* ─── FORMS ─── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font-weight: 700; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink2); }
.field-input, .field-textarea, .field-select {
  border: none; border-bottom: 1px solid rgba(30,25,22,0.2);
  background: transparent; padding: 10px 0;
  font-family: var(--sans); font-size: 14px; color: var(--ink);
  outline: none; width: 100%;
  transition: border-color var(--t-base);
}
.field-input::placeholder, .field-textarea::placeholder { color: rgba(30,25,22,0.3); }
.field-input:focus, .field-textarea:focus, .field-select:focus { border-color: var(--ink); }
.field-textarea { resize: vertical; min-height: 80px; }
.field-help { font-size: 11px; color: var(--ink3); }
.field-error { font-size: 11px; color: var(--danger); letter-spacing: 0.04em; }

/* Radio cards */
.radio-card-group { display: grid; gap: 8px; }
.radio-card { position: relative; display: flex; gap: 16px; padding: 20px; background: var(--bg2); cursor: pointer; transition: background var(--t-base); }
.radio-card input { position: absolute; opacity: 0; pointer-events: none; }
.radio-card:hover { background: var(--bg3); }
.radio-card .dot { width: 14px; height: 14px; border: 1px solid var(--ink3); border-radius: 50%; flex-shrink: 0; margin-top: 4px; transition: all var(--t-base); }
.radio-card input:checked ~ .dot { border-color: var(--accent); box-shadow: inset 0 0 0 3px var(--accent); }
.radio-card input:checked ~ .rc-body { color: var(--ink); }
.rc-body { flex: 1; }
.rc-title { font-weight: 700; font-size: 13px; letter-spacing: 0.04em; color: var(--ink); margin-bottom: 4px; }
.rc-desc { font-size: 12px; color: var(--ink2); line-height: 1.5; }

/* ─── ACCORDION ─── */
.accordion { border-top: 1px solid rgba(30,25,22,0.1); }
.accordion-item { border-bottom: 1px solid rgba(30,25,22,0.1); }
.accordion-trigger {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0; text-align: left;
  font-family: var(--sans); font-weight: 500; font-size: 16px;
  color: var(--ink);
}
.accordion-trigger:hover { color: var(--accent); }
.accordion-icon { width: 14px; height: 14px; position: relative; flex-shrink: 0; transition: transform var(--t-med); }
.accordion-icon::before, .accordion-icon::after {
  content: ''; position: absolute; background: currentColor;
  top: 50%; left: 50%;
}
.accordion-icon::before { width: 14px; height: 1px; transform: translate(-50%,-50%); }
.accordion-icon::after  { width: 1px; height: 14px; transform: translate(-50%,-50%); transition: transform var(--t-med); }
.accordion-item.is-open .accordion-icon::after { transform: translate(-50%,-50%) scaleY(0); }
.accordion-panel { max-height: 0; overflow: hidden; transition: max-height var(--t-med); }
.accordion-item.is-open .accordion-panel { max-height: 480px; }
.accordion-content { padding: 0 0 28px; max-width: 64ch; font-weight: 300; font-size: 15px; line-height: 1.7; color: var(--ink2); }

/* ─── PRICING / PACKAGE CARDS ─── */
.pkg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.pkg {
  position: relative;
  background: var(--bg2); padding: 48px 40px;
  display: flex; flex-direction: column; gap: 24px;
  transition: background var(--t-med);
}
.pkg.is-featured { background: var(--ink); color: var(--bg); }
.pkg-head { display: flex; flex-direction: column; gap: 12px; }
.pkg-eyebrow { font-weight: 700; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink3); }
.pkg.is-featured .pkg-eyebrow { color: var(--gold); }
.pkg-name { font-family: var(--script); font-size: 38px; line-height: 1; color: var(--accent); }
.pkg.is-featured .pkg-name { color: var(--gold); }
.pkg-desc { font-size: 12px; color: var(--ink2); line-height: 1.6; }
.pkg.is-featured .pkg-desc { color: rgba(245,240,235,0.6); }
.pkg-price { display: flex; align-items: baseline; gap: 6px; padding-top: 16px; border-top: 1px solid rgba(30,25,22,0.1); }
.pkg.is-featured .pkg-price { border-color: rgba(245,240,235,0.12); }
.pkg-amount { font-weight: 800; font-size: 36px; letter-spacing: -0.01em; }
.pkg-currency, .pkg-period { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink3); }
.pkg.is-featured .pkg-currency, .pkg.is-featured .pkg-period { color: rgba(245,240,235,0.5); }
.pkg-list { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.5; flex: 1; }
.pkg-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink2); }
.pkg-list li::before { content: '+'; flex-shrink: 0; color: var(--accent); font-weight: 700; line-height: 1.5; }
.pkg.is-featured .pkg-list li { color: rgba(245,240,235,0.75); }
.pkg.is-featured .pkg-list li::before { color: var(--gold); }
.pkg-flag {
  position: absolute; top: 0; right: 0;
  background: var(--gold); color: var(--ink);
  padding: 6px 12px; font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
}

/* ─── FOOTER ─── */
.footer { background: var(--ink); color: var(--b-ink); padding: 80px 48px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 64px; border-bottom: 1px solid rgba(245,240,235,0.1); }
.footer-brand .nav-logo { color: var(--b-ink); font-size: 15px; }
.footer-tag { font-family: var(--script); font-size: 28px; color: var(--gold); margin-top: 24px; line-height: 1.1; }
.footer-meta { font-size: 11px; color: rgba(245,240,235,0.5); letter-spacing: 0.04em; line-height: 1.7; margin-top: 16px; max-width: 28ch; }
.footer-col h4 { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: rgba(245,240,235,0.4); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { font-size: 13px; color: rgba(245,240,235,0.7); transition: color var(--t-base); }
.footer-col li a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 11px; color: rgba(245,240,235,0.4); letter-spacing: 0.06em; }

/* ─── TOAST ─── */
.toast {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 14px 20px 14px 16px;
  background: var(--ink); color: var(--bg);
  box-shadow: var(--shadow-lg);
  font-size: 13px; min-width: 320px;
  position: relative;
}
.toast::before {
  content: ''; width: 3px; align-self: stretch; background: var(--accent);
  margin: -14px 0 -14px -16px;
}
.toast.toast-success::before { background: var(--success); }
.toast.toast-warning::before { background: var(--warning); }
.toast.toast-danger::before  { background: var(--danger); }
.toast .t-title { font-weight: 700; letter-spacing: 0.06em; }
.toast .t-msg { color: rgba(245,240,235,0.65); font-size: 12px; }
.toast .t-close { background: none; border: none; color: rgba(245,240,235,0.5); cursor: pointer; margin-left: auto; font-size: 14px; }

/* ─── EMPTY / LOADING STATES ─── */
.empty { text-align: center; padding: 64px 24px; }
.empty-mark { font-family: var(--script); font-size: 56px; color: var(--accent); opacity: 0.4; line-height: 1; }
.empty-title { font-weight: 700; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink); margin-top: 16px; }
.empty-desc  { font-size: 13px; color: var(--ink3); max-width: 38ch; margin: 8px auto 0; line-height: 1.6; }

.skeleton { background: linear-gradient(90deg, var(--bg2) 0%, var(--bg3) 50%, var(--bg2) 100%); background-size: 200% 100%; animation: sk 1.4s ease-in-out infinite; }
@keyframes sk { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }

/* ─── STEPPER ─── */
.stepper { display: flex; gap: 0; align-items: center; }
.step { display: flex; align-items: center; gap: 10px; }
.step + .step::before { content: ''; width: 32px; height: 1px; background: rgba(30,25,22,0.15); margin: 0 8px; }
.step-num { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--ink3); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--ink3); }
.step.is-active .step-num { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.step.is-done .step-num { background: var(--accent); color: #fff; border-color: var(--accent); }
.step-label { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700; color: var(--ink3); }
.step.is-active .step-label, .step.is-done .step-label { color: var(--ink); }

/* ─── ICONS ─── */
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 28px; height: 28px; }

/* ─── LAYOUT HELPERS ─── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.section { padding: 120px 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav { padding: 0 24px; }
  .nav-links, .nav-right .lang-switch { display: none; }
  .nav-burger { display: flex; }
  .container { padding: 0 24px; }
  .section { padding: 64px 0; }
  .pkg-grid, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
}
