/* Pedro — Custom Styles (Tailwind handles layout & utilities) */

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

/* ── Theme Tokens ── */
:root {
  --gold: #C4A265;
  --gold-light: #D4B97A;
  --gold-dark: #A68B4B;
  --gold-glow: rgba(196, 162, 101, 0.15);
  --bg-primary: #0B0B0D;
  --bg-secondary: #111114;
  --bg-card: #161619;
  --bg-card-hover: #1C1C20;
  --border: rgba(196, 162, 101, 0.12);
  --border-strong: rgba(196, 162, 101, 0.25);
  --text-primary: #F2EDE4;
  --text-secondary: #9E9488;
  --text-muted: #6B6560;
  --nav-scrolled-bg: rgba(11, 11, 13, 0.92);
  --mobile-menu-bg: rgba(11, 11, 13, 0.97);
  --hero-glow: 0.08;
  --ambient-a: 0.04;
  --ambient-b: 0.03;
  color-scheme: dark;
}

[data-theme="light"] {
  --gold: #9A7B3E;
  --gold-light: #B8944F;
  --gold-dark: #7D6330;
  --gold-glow: rgba(154, 123, 62, 0.1);
  --bg-primary: #F8F6F2;
  --bg-secondary: #F0EDE7;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F5F3EF;
  --border: rgba(154, 123, 62, 0.15);
  --border-strong: rgba(154, 123, 62, 0.3);
  --text-primary: #1A1714;
  --text-secondary: #5C554A;
  --text-muted: #8E857A;
  --nav-scrolled-bg: rgba(248, 246, 242, 0.92);
  --mobile-menu-bg: rgba(248, 246, 242, 0.97);
  --hero-glow: 0.12;
  --ambient-a: 0.06;
  --ambient-b: 0.04;
  color-scheme: light;
}

/* ── Ambient Background ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(196, 162, 101, var(--ambient-a)), transparent),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(196, 162, 101, var(--ambient-b)), transparent);
  pointer-events: none;
  z-index: 0;
}

/* ── Nav Scrolled ── */
.nav-scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 1px 0 var(--border);
}

/* ── Mobile Menu ── */
.mobile-open {
  display: flex !important;
  flex-direction: column;
  position: absolute;
  top: 72px;
  inset-inline: 0;
  background: var(--mobile-menu-bg);
  backdrop-filter: blur(20px);
  padding: 24px;
  gap: 20px;
  border-bottom: 1px solid var(--border);
}

/* ── Glow Effects ── */
.hero-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(196, 162, 101, var(--hero-glow)) 0%, transparent 70%);
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 162, 101, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Card Accent Borders ── */
.card-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  opacity: 0.5;
}

.card-accent-gold::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-dark));
}

/* ── Special Backgrounds ── */
.featured-gradient {
  background: linear-gradient(170deg, rgba(196, 162, 101, 0.06) 0%, var(--bg-card) 50%);
}

.companion-pv2 {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(99, 102, 241, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.companion-aromalab {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(16, 185, 129, 0.05));
  border: 1px solid rgba(16, 185, 129, 0.2);
}

/* ── Light Mode Shadows ── */
[data-theme="light"] .card-shadow {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .card-shadow:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
[data-theme="light"] .card-featured-shadow {
  box-shadow: 0 2px 8px rgba(154, 123, 62, 0.08), 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* ── Theme Toggle ── */
.theme-toggle button.active {
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid var(--border);
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.fade-up:nth-child(1) { animation-delay: 0s; }
.fade-up:nth-child(2) { animation-delay: 0.08s; }
.fade-up:nth-child(3) { animation-delay: 0.16s; }
.fade-up:nth-child(4) { animation-delay: 0.24s; }
.fade-up:nth-child(5) { animation-delay: 0.32s; }
.fade-up:nth-child(6) { animation-delay: 0.4s; }

[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Legal Page Typography ── */
.legal h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.legal .last-updated {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 48px;
}
.legal h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 500;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.legal h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 28px;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.legal p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
}
.legal ul, .legal ol {
  color: var(--text-secondary);
  margin-bottom: 16px;
  padding-left: 24px;
  line-height: 1.75;
}
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--text-primary); }
.legal a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--gold-light); }

/* ── Cookie Consent Banner ── */
#cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 0 24px 24px;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
#cc-banner.cc-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cc-banner-inner {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
}
.cc-banner-text { flex: 1; }
.cc-banner-text strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cc-banner-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}
.cc-banner-text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cc-banner-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cc-btn {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  border: none;
}
.cc-btn-primary {
  background: var(--gold);
  color: var(--bg-primary);
}
.cc-btn-primary:hover {
  background: var(--gold-light);
  color: var(--bg-primary);
}
.cc-btn-outline {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
}
.cc-btn-outline:hover {
  border-color: var(--gold);
  background: var(--gold-glow);
}

/* ── Cookie Settings Panel ── */
.cc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s;
}
#cc-panel.cc-visible .cc-overlay { opacity: 1; }
.cc-panel-box {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  z-index: 10001;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  width: 90%;
  max-width: 520px;
  max-height: 85vh;
  overflow-y: auto;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.22, 1, 0.36, 1), transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
#cc-panel.cc-visible .cc-panel-box {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.cc-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
}
.cc-panel-header h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0;
}
.cc-panel-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.cc-panel-close:hover {
  background: var(--gold-glow);
  color: var(--text-primary);
}
.cc-panel-body { padding: 20px 28px; }
.cc-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cc-category:last-child { border-bottom: none; }
.cc-category-info { flex: 1; }
.cc-category-info strong {
  display: block;
  font-size: 0.92rem;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.cc-category-info p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}
.cc-toggle-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding-top: 2px;
}
.cc-always {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cc-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}
.cc-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.cc-slider {
  position: absolute;
  inset: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.cc-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: var(--text-muted);
  border-radius: 50%;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s;
}
.cc-switch input:checked + .cc-slider {
  background: var(--gold-glow);
  border-color: var(--gold-dark);
}
.cc-switch input:checked + .cc-slider::before {
  transform: translateX(20px);
  background: var(--gold);
}
.cc-switch.disabled { opacity: 0.6; }
.cc-switch.disabled .cc-slider { cursor: not-allowed; }
.cc-panel-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--border);
}

/* ── Responsive Cookie Consent ── */
@media (max-width: 768px) {
  .cc-banner-inner { flex-direction: column; text-align: center; }
  .cc-banner-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .cc-banner-actions { flex-direction: column; }
  .cc-btn { width: 100%; text-align: center; }
  .cc-panel-footer { flex-direction: column; }
}
