/* =========================================================
   Data Especial Presentes — Editorial luxury design system
   Palette: ivory, warm sand, espresso, champagne/gold, emerald
   ========================================================= */

:root {
  /* Brand tones */
  --ivory: #F8F4EC;
  --sand: #E9DFCB;
  --sand-2: #DCCFB3;
  --espresso: #1E1612;
  --espresso-2: #2A1F18;
  --champagne: #B7935A;
  --champagne-light: #D6B27C;
  --emerald: #1F3D33;
  --emerald-2: #2B5645;

  /* Light theme defaults */
  --bg: var(--ivory);
  --bg-alt: #FDFAF3;
  --bg-deep: #EFE6D2;
  --surface: #FFFFFF;
  --ink: #1A1410;
  --ink-soft: #4B3F35;
  --muted: #7A6C5D;
  --line: #E1D6BD;
  --line-strong: #C9BC9D;
  --accent: var(--champagne);
  --accent-deep: #8E6F3F;
  --botanical: var(--emerald);

  /* Type */
  --font-display: 'Fraunces', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Scale */
  --fs-xs: 0.78rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.875rem;
  --fs-3xl: 2.5rem;
  --fs-4xl: 3.5rem;
  --fs-hero: clamp(2.75rem, 6vw + 1rem, 5.5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  /* Radii & shadows */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
  --shadow-sm: 0 1px 2px rgba(30, 22, 18, 0.05), 0 2px 6px rgba(30, 22, 18, 0.04);
  --shadow-md: 0 4px 14px rgba(30, 22, 18, 0.08), 0 18px 40px -22px rgba(30, 22, 18, 0.18);
  --shadow-lg: 0 12px 28px rgba(30, 22, 18, 0.12), 0 32px 60px -28px rgba(30, 22, 18, 0.25);

  --content-w: 1200px;
  --easing: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme='dark'] {
  --bg: #14100C;
  --bg-alt: #1A1410;
  --bg-deep: #100C09;
  --surface: #1F1813;
  --ink: #F2EBDB;
  --ink-soft: #D6C9AE;
  --muted: #998A74;
  --line: #2F2620;
  --line-strong: #463829;
  --accent: var(--champagne-light);
  --accent-deep: var(--champagne);
  --botanical: #6FA08C;
}

* { box-sizing: border-box; }
*::selection { background: var(--accent); color: var(--espresso); }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.08;
  margin: 0;
  font-optical-sizing: auto;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: clamp(1.875rem, 3vw + 0.5rem, 2.75rem); letter-spacing: -0.02em; }
h3 { font-size: var(--fs-xl); font-weight: 500; letter-spacing: -0.005em; }
p  { margin: 0; }

.serif-italic { font-style: italic; font-family: var(--font-display); font-weight: 400; }

.container {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 3vw, 2.5rem);
}

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  font-weight: 500;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.7em;
}
[data-theme='dark'] .eyebrow { color: var(--accent); }
.eyebrow::before {
  content: '';
  width: 28px; height: 1px; background: currentColor; opacity: 0.7;
}

/* ====================== NAV ====================== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5);
  padding-block: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.75rem;
  color: var(--ink);
}
.brand-mark { width: 38px; height: 38px; flex: none; color: var(--accent); }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name .top {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.005em;
}
.brand-name .sub {
  font-size: 0.66rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav-menu {
  display: flex; gap: clamp(0.75rem, 2vw, 1.75rem);
  align-items: center;
}
.nav-menu a {
  font-size: 0.86rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  position: relative;
  padding-block: 4px;
  transition: color 200ms var(--easing);
}
.nav-menu a:hover { color: var(--ink); }
.nav-menu a::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 320ms var(--easing);
}
.nav-menu a:hover::after { transform: scaleX(1); }

.nav-tools { display: flex; gap: 0.5rem; align-items: center; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: background 200ms var(--easing), color 200ms var(--easing), border-color 200ms var(--easing);
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); background: var(--bg-alt); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-icon-dark { display: none; }
[data-theme='dark'] .theme-icon-light { display: none; }
[data-theme='dark'] .theme-icon-dark { display: block; }

.nav-toggle { display: none; }

@media (max-width: 880px) {
  .nav-menu {
    position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
    transform: translateY(-6px); opacity: 0; pointer-events: none;
    transition: opacity 220ms var(--easing), transform 220ms var(--easing);
  }
  .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu a { padding-block: 0.85rem; border-bottom: 1px solid var(--line); }
  .nav-menu a:last-child { border-bottom: 0; }
  .nav-menu a::after { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ====================== HERO ====================== */
.hero { position: relative; overflow: hidden; padding-block: clamp(3.5rem, 8vw, 7rem) clamp(3rem, 6vw, 6rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
.hero h1 .accent-word { font-style: italic; color: var(--ink); font-weight: 400; }
.hero h1 .accent-word::after {
  content: ''; display: block; width: 64px; height: 1px;
  background: var(--accent); margin-top: 0.4rem;
}
.hero-lede {
  margin-top: 1.75rem;
  font-size: clamp(1.05rem, 1.05vw + 0.85rem, 1.25rem);
  color: var(--ink-soft);
  max-width: 56ch;
  line-height: 1.55;
}
.hero-actions { margin-top: 2.25rem; display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(183, 147, 90, 0.22), transparent 55%),
    radial-gradient(ellipse at 0% 100%, rgba(31, 61, 51, 0.22), transparent 55%),
    linear-gradient(160deg, #2A1F18 0%, #1E1612 60%, #14100C 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(183, 147, 90, 0.25);
}
.hero-art svg { width: 100%; height: 100%; }
.hero-art .seal { position: absolute; inset: 0; }

.hero-strip {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.hero-strip > div {
  background: var(--bg);
  padding: 1.4rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.35rem;
}
.hero-strip dt {
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--muted);
}
.hero-strip dd { margin: 0; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
@media (max-width: 720px) { .hero-strip { grid-template-columns: repeat(2, 1fr); } }

/* ====================== BUTTONS ====================== */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  font-size: 0.92rem; letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 220ms var(--easing), background 220ms var(--easing), color 220ms var(--easing), border-color 220ms var(--easing);
  white-space: nowrap;
}
.btn .arrow { transition: transform 280ms var(--easing); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-primary {
  background: var(--espresso);
  color: var(--ivory);
}
[data-theme='dark'] .btn-primary { background: var(--accent); color: var(--espresso); }
.btn-primary:hover { background: #000; }
[data-theme='dark'] .btn-primary:hover { background: var(--champagne-light); }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--ink); }
.btn-gold {
  background: var(--accent);
  color: var(--espresso);
}
.btn-gold:hover { background: var(--accent-deep); color: var(--ivory); }

/* ====================== SECTIONS ====================== */
section { scroll-margin-top: 84px; }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section.deep { background: var(--espresso); color: var(--ivory); }
.section.deep h2, .section.deep h3 { color: var(--ivory); }
.section.deep .muted { color: #C9BFA8; }
.section.deep .eyebrow { color: var(--champagne-light); }

.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
}
.section-head .lede { color: var(--ink-soft); max-width: 60ch; margin-top: 0.75rem; }
.section-head h2 { max-width: 18ch; }
@media (max-width: 700px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
}

/* ====================== EDITORIAL HIGHLIGHT ====================== */
.editorial-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}
.editorial-grid .feature {
  grid-column: span 7;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  display: flex; flex-direction: column; gap: 1.25rem;
  position: relative; overflow: hidden;
}
.editorial-grid .feature::after {
  content: ''; position: absolute; right: -40px; bottom: -40px;
  width: 200px; height: 200px; border-radius: 999px;
  background: radial-gradient(circle at center, rgba(183, 147, 90, 0.15), transparent 70%);
  pointer-events: none;
}
.editorial-grid .side { grid-column: span 5; display: flex; flex-direction: column; gap: 1.5rem; }
.editorial-grid .mini {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.5rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  transition: border-color 200ms var(--easing), transform 200ms var(--easing);
}
.editorial-grid .mini:hover { border-color: var(--line-strong); transform: translateY(-2px); }
@media (max-width: 880px) {
  .editorial-grid .feature, .editorial-grid .side { grid-column: span 12; }
}

/* ====================== COLLECTION CARDS ====================== */
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.collection {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.5rem 1.5rem 1.6rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: transform 260ms var(--easing), box-shadow 260ms var(--easing), border-color 260ms var(--easing);
  isolation: isolate;
}
.collection::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(183, 147, 90, 0.06));
  pointer-events: none; z-index: -1;
}
.collection .ord {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.collection h3 { font-size: 1.35rem; }
.collection p { color: var(--ink-soft); font-size: 0.96rem; }
.collection .keys {
  display: flex; flex-wrap: wrap; gap: 0.4rem;
  margin-top: 0.25rem;
}
.collection .key {
  font-size: 0.74rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--bg);
}
.collection .cta {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: inline-flex; align-items: center; justify-content: space-between;
  font-size: 0.86rem; color: var(--accent-deep);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
[data-theme='dark'] .collection .cta { color: var(--accent); }
.collection .cta .arrow { transition: transform 260ms var(--easing); }
.collection:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.collection:hover .cta .arrow { transform: translateX(4px); }

/* Variant cards with botanical accent */
.collection.gold {
  background: linear-gradient(180deg, var(--surface) 0%, #F8EFDC 100%);
  border-color: #E6CFA6;
}
[data-theme='dark'] .collection.gold {
  background: linear-gradient(180deg, var(--surface) 0%, #2A2218 100%);
  border-color: #4A3A23;
}
.collection.botanical {
  background: linear-gradient(180deg, var(--surface) 0%, #E6EFE8 100%);
  border-color: #C3D6CB;
}
[data-theme='dark'] .collection.botanical {
  background: linear-gradient(180deg, var(--surface) 0%, #1A2620 100%);
  border-color: #2D4A3D;
}

/* ====================== CATEGORY BAR ====================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cat {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 1.6rem 1.5rem;
  background: var(--surface);
  transition: background 220ms var(--easing);
  min-height: 168px;
  position: relative;
}
.cat:hover { background: var(--bg-alt); }
.cat .cat-icon { color: var(--accent); width: 28px; height: 28px; }
.cat h3 { font-size: 1.1rem; font-weight: 500; }
.cat p { font-size: 0.86rem; color: var(--ink-soft); }
.cat .more {
  margin-top: auto; font-size: 0.76rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent-deep);
}
[data-theme='dark'] .cat .more { color: var(--accent); }

/* ====================== KIDS BY AGE ====================== */
.age-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.age {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem 1.4rem;
  background: var(--surface);
  display: flex; flex-direction: column; gap: 0.4rem;
  transition: border-color 220ms var(--easing), transform 220ms var(--easing);
}
.age:hover { border-color: var(--accent); transform: translateY(-2px); }
.age .range {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.age .label { font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.age p { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.4rem; }
.age .link { font-size: 0.82rem; color: var(--accent-deep); margin-top: 0.6rem; }
[data-theme='dark'] .age .link { color: var(--accent); }

/* ====================== OCCASION RAIL ====================== */
.occasion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.occasion {
  position: relative;
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  display: flex; flex-direction: column; gap: 0.75rem;
  overflow: hidden;
}
.occasion h3 { font-size: 1.5rem; }
.occasion .deco {
  position: absolute; top: -20px; right: -20px;
  width: 140px; height: 140px;
  opacity: 0.6;
  color: var(--accent);
}
.occasion .picks { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
.occasion .picks a {
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: space-between;
  gap: 0.5rem; color: var(--ink-soft);
  transition: background 200ms var(--easing), border-color 200ms var(--easing), color 200ms var(--easing);
}
.occasion .picks a:hover {
  background: var(--espresso); color: var(--ivory); border-color: var(--espresso);
}
[data-theme='dark'] .occasion .picks a:hover { background: var(--accent); color: var(--espresso); border-color: var(--accent); }

/* ====================== EDITORIAL QUOTE ====================== */
.quote {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2vw + 0.6rem, 2rem);
  font-style: italic;
  line-height: 1.35;
  color: var(--ink);
  max-width: 38ch;
}
.quote-block {
  display: grid; grid-template-columns: auto 1fr; gap: 2rem;
  align-items: start;
}
.quote-block .mark {
  font-family: var(--font-display);
  font-size: 5rem; line-height: 0.8;
  color: var(--accent);
  font-style: italic;
}
@media (max-width: 700px) { .quote-block { grid-template-columns: 1fr; } }

/* ====================== DISCLOSURE ====================== */
.disclosure {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  background: var(--surface);
  padding: 1.5rem 1.6rem;
  border-radius: var(--r-md);
  display: flex; gap: 1rem; align-items: flex-start;
}
.disclosure h4 { font-family: var(--font-display); font-size: 1.1rem; margin-bottom: 0.35rem; }
.disclosure p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; }
.disclosure svg { color: var(--accent); width: 22px; height: 22px; flex: none; margin-top: 2px; }

/* ====================== FOOTER ====================== */
.footer { background: var(--espresso); color: var(--ivory); padding-block: 4rem 2.5rem; }
[data-theme='dark'] .footer { background: #0C0907; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  align-items: start;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h5 {
  font-family: var(--font-body);
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  color: var(--champagne-light);
  margin: 0 0 1rem;
  font-weight: 500;
}
.footer a { color: #D6C9AE; font-size: 0.92rem; line-height: 2; display: block; transition: color 200ms; }
.footer a:hover { color: var(--ivory); }
.footer .brand { color: var(--ivory); }
.footer .brand .sub { color: var(--champagne-light); }
.footer .lede { color: #C9BFA8; font-size: 0.92rem; margin-top: 1rem; max-width: 40ch; line-height: 1.6; }

.footer-base {
  margin-top: 3rem; padding-top: 1.75rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.8rem; color: #998A74;
}

/* ====================== UTIL ====================== */
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin-block: 2rem; }
.row-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag-pill {
  font-size: 0.74rem; padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
