/* ══════════════════════════════════════════════════════════════════
   THE ECONOMIC WOMAN (TEW)
   Design System: Apple Gallery Style × Pan-African Heritage
   Theme: Light / Museum Gallery in Soft Daylight
   ══════════════════════════════════════════════════════════════════ */

:root {
  /* Colors — Apple España Palette */
  --color-fog-white: #f5f5f7;
  --color-pure-white: #ffffff;
  --color-obsidian: #1d1d1f;
  --color-carbon: #000000;
  --color-pewter: #707070;
  --color-slate: #505050;
  --color-graphite: #474747;
  --color-iron: #333333;
  --color-silver: #858585;
  --color-pale-mist: #d6d6d6;
  --color-ash-veil: #e2e2e5;
  --color-iris-blue: #0071e3;
  --color-sapphire: #0066cc;
  --color-sky-signal: #2997ff;
  --color-cornflower: #509be7;
  --color-ice-wash: #aad0f6;

  /* TEW Cultural Accents */
  --color-tew-crimson: #8B1A1A;
  --color-tew-wine: #5C0F0F;
  --color-tew-gold: #C8922A;
  --color-tew-gold-light: #F5D77A;
  --color-tew-green: #1A5C1A;

  /* Typography */
  --font-sf-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
  --font-sf-text: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  --font-serif-title: 'Playfair Display', Georgia, serif;
  --font-cinzel: 'Cinzel', Georgia, serif;
  --font-script: 'Alex Brush', cursive;

  /* Radius */
  --radius-pill: 980px;

  /* Spacing */
  --section-gap: 96px;
}

/* ── Base resets & smooth scrolling ── */
html {
  scroll-behavior: smooth;
  background-color: var(--color-fog-white);
  color: var(--color-obsidian);
  font-family: var(--font-sf-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

section[id], div[id] {
  scroll-margin-top: 54px;
}

::selection {
  background: #1d1d1f;
  color: #ffffff;
}

/* ── Apple-style Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--color-fog-white);
}
::-webkit-scrollbar-thumb {
  background: #d6d6d6;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: #a8a8aa;
}

/* ── African Geometric Hairline Ribbon ── */
.african-ribbon {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    #8B1A1A 0px, #8B1A1A 16px,
    #C8922A 16px, #C8922A 22px,
    #1A5C1A 22px, #1A5C1A 38px,
    #1d1d1f 38px, #1d1d1f 44px,
    #C8922A 44px, #C8922A 50px
  );
  width: 100%;
}

.african-ribbon-subtle {
  height: 2px;
  opacity: 0.85;
}

/* ── Apple 44px Sticky Nav ── */
.apple-nav {
  height: 44px;
  background-color: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* ── Pill Buttons (980px Radius) ── */
.btn-pill-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  background-color: var(--color-iris-blue);
  color: var(--color-pure-white);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.016em;
  padding: 11px 21px;
  line-height: 1.15;
  transition: background-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  border: none;
  cursor: pointer;
}
.btn-pill-primary:hover {
  background-color: #0077ed;
  transform: scale(1.015);
}
.btn-pill-primary:active {
  background-color: #0062c4;
  transform: scale(0.985);
}

.btn-pill-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  background-color: transparent;
  color: var(--color-sapphire);
  border: 1px solid var(--color-sapphire);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.016em;
  padding: 11px 21px;
  line-height: 1.15;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-pill-secondary:hover {
  background-color: rgba(0, 102, 204, 0.06);
  border-color: #0055b3;
  color: #0055b3;
}
.btn-pill-secondary:active {
  background-color: rgba(0, 102, 204, 0.12);
  transform: scale(0.985);
}

.btn-pill-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-pill);
  background-color: var(--color-obsidian);
  color: var(--color-pure-white);
  font-size: 14px;
  font-weight: 500;
  padding: 11px 22px;
  transition: opacity 0.2s ease, transform 0.15s ease;
}
.btn-pill-dark:hover {
  opacity: 0.9;
  transform: scale(1.015);
}

/* ── Apple Text Link with Chevron ── */
.apple-link {
  color: var(--color-sapphire);
  font-size: 15px;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: color 0.15s ease;
}
.apple-link:hover {
  color: var(--color-cornflower);
  text-decoration: underline;
}
.apple-link i {
  font-size: 11px;
  transition: transform 0.2s ease;
}
.apple-link:hover i {
  transform: translateX(2px);
}

/* ── Museum Gallery Pedestal ── */
.gallery-pedestal {
  background: var(--color-pure-white);
  border-radius: 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.gallery-pedestal:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.03);
}

/* ── Soft Washes ── */
.surface-canvas {
  background-color: var(--color-fog-white);
}
.surface-pure-white {
  background-color: var(--color-pure-white);
}
.surface-wash-ice {
  background: linear-gradient(180deg, #f5f5f7 0%, #e8f2fc 50%, #f5f5f7 100%);
}
.surface-wash-warm {
  background: linear-gradient(180deg, #f5f5f7 0%, #faf3e5 50%, #f5f5f7 100%);
}
.surface-wash-rose {
  background: linear-gradient(180deg, #f5f5f7 0%, #fae8e8 50%, #f5f5f7 100%);
}
.surface-dark-band {
  background-color: #000000;
  color: #f5f5f7;
}

/* ── Typography Utility Classes ── */
.headline-display {
  font-family: var(--font-sf-display);
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-obsidian);
}
@media (min-width: 640px) {
  .headline-display {
    font-size: 44px;
    line-height: 1.1;
  }
}
@media (min-width: 768px) {
  .headline-display {
    font-size: 56px;
    line-height: 1.07;
    letter-spacing: -0.02em;
  }
}

.headline-section {
  font-family: var(--font-sf-display);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-obsidian);
}
@media (min-width: 640px) {
  .headline-section {
    font-size: 34px;
    line-height: 1.15;
  }
}
@media (min-width: 768px) {
  .headline-section {
    font-size: 40px;
    line-height: 1.1;
  }
}

.subhead-editorial {
  font-size: 19px;
  line-height: 1.35;
  font-weight: 400;
  color: var(--color-obsidian);
  letter-spacing: 0.005em;
}
@media (min-width: 768px) {
  .subhead-editorial {
    font-size: 21px;
    line-height: 1.25;
  }
}

.body-editorial {
  font-size: 17px;
  line-height: 1.47;
  font-weight: 400;
  color: var(--color-slate);
  letter-spacing: -0.022em;
}

.caption-editorial {
  font-size: 12px;
  line-height: 1.33;
  font-weight: 400;
  color: var(--color-pewter);
  letter-spacing: -0.01em;
}

/* ── Floating Hero Image ── */
.hero-floating-render {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.09));
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-floating-render:hover {
  transform: scale(1.015);
}

/* ── Certificate Canvas (Precise & Crisp) ── */
#cert-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
  background-color: #ffffff;
}

/* ── Quiz Option Buttons (Apple-level Cleanliness) ── */
.quiz-option-card {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  border-radius: 16px;
  background-color: var(--color-pure-white);
  border: 1px solid var(--color-pale-mist);
  color: var(--color-obsidian);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.quiz-option-card:hover {
  background-color: #fafafa;
  border-color: #b0b0b5;
}
.quiz-option-card .key-badge {
  width: 24px;
  height: 24px;
  border-radius: 980px;
  border: 1px solid var(--color-silver);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-graphite);
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s ease;
}
.quiz-option-card.selected {
  background-color: #f0f7ff;
  border-color: var(--color-iris-blue);
}
.quiz-option-card.selected .key-badge {
  background-color: var(--color-iris-blue);
  border-color: var(--color-iris-blue);
  color: #ffffff;
}
.quiz-option-card.correct {
  background-color: #eafaf1;
  border-color: #24a159;
}
.quiz-option-card.correct .key-badge {
  background-color: #24a159;
  border-color: #24a159;
  color: #ffffff;
}
.quiz-option-card.wrong {
  background-color: #fdf0f0;
  border-color: #d93025;
}
.quiz-option-card.wrong .key-badge {
  background-color: #d93025;
  border-color: #d93025;
  color: #ffffff;
}

/* ── Lightbox ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  align-items: center;
  justify-content: center;
}
#lightbox.open {
  display: flex;
}

/* ── Animated Entrance ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
