/* ==========================================================================
   SUPER PATCH - MASTER DESIGN SYSTEM (BRIGHT, LUXURY, LIGHT WELLNESS)
   ========================================================================== */

/* Fonts loaded via preconnected HTML link tags for maximum Core Web Vitals speed */

:root {
  /* Core Color Palette - Bright, Luminous, Pure */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-strong: rgba(255, 255, 255, 0.95);

  /* Primary Brand Gradients & Accents */
  --brand-purple: #7042f4;
  --brand-purple-light: #ece7ff;
  --brand-violet: #8e54e9;
  --brand-pink: #ff3385;
  --brand-pink-light: #fff0f6;
  --brand-orange: #ff6a00;
  --brand-orange-light: #fff4ec;
  --brand-blue: #0088ff;
  --brand-blue-light: #e8f4ff;
  --brand-emerald: #0ea573;
  --brand-emerald-light: #e8f8f2;
  --brand-gold: #eab308;
  --brand-gold-light: #fefce8;

  /* Neutrals & Text */
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-light: #e2e8f0;
  --border-subtle: #f1f5f9;
  --border-focus: #c7d2fe;

  /* Gradients */
  --grad-primary: linear-gradient(135deg, #7042f4 0%, #a855f7 50%, #ec4899 100%);
  --grad-sunset: linear-gradient(135deg, #ff6a00 0%, #ee0979 100%);
  --grad-ocean: linear-gradient(135deg, #0088ff 0%, #00d2ff 100%);
  --grad-zen: linear-gradient(135deg, #8a2387 0%, #e94057 50%, #f27121 100%);
  --grad-card-glow: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,0.8) 100%);
  --grad-ambient: radial-gradient(circle at 50% -20%, rgba(139, 92, 246, 0.12) 0%, rgba(236, 72, 153, 0.06) 40%, rgba(255, 255, 255, 0) 70%);

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.06), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px -4px rgba(15, 23, 42, 0.08), 0 4px 8px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -12px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 30px 60px -15px rgba(15, 23, 42, 0.16), 0 12px 24px -6px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 12px 36px rgba(112, 66, 244, 0.22);
  --shadow-gold: 0 8px 24px rgba(234, 179, 8, 0.25);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-editorial: 'Playfair Display', Georgia, serif;

  /* Layout & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;
  --max-width: 1280px;
  --max-width-narrow: 1040px;
  --header-height: 80px;
}

/* ==========================================================================
   CSS RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  background-image: 
    radial-gradient(at 10% 10%, rgba(139, 92, 246, 0.04) 0px, transparent 50%),
    radial-gradient(at 90% 20%, rgba(236, 72, 153, 0.04) 0px, transparent 50%),
    radial-gradient(at 50% 80%, rgba(56, 189, 248, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
}

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

img {
  content-visibility: auto;
}

.brand-logo-img, .hero-section img {
  content-visibility: visible;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

ul, ol {
  list-style: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.2rem); }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); }
h4 { font-size: 1.25rem; font-weight: 700; }
h5 { font-size: 1.05rem; font-weight: 600; }

.editorial-italic {
  font-family: var(--font-editorial);
  font-style: italic;
  font-weight: 500;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Spacing */
.section {
  padding: 96px 0;
  position: relative;
}

.section-sm {
  padding: 60px 0;
}

.section-hero {
  padding-top: 140px;
  padding-bottom: 90px;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   TOP ANNOUNCEMENT BAR & CURRENCY SELECTOR
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%);
  color: #ffffff;
  font-size: 0.825rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 8px 0;
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  min-height: 38px;
  box-sizing: border-box;
}

.top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 16px;
  text-align: center;
}

.top-bar-message {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}

.top-bar-badge {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.top-bar-controls {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  line-height: 1;
}

.region-currency-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.8rem;
  color: #ffffff;
  line-height: 1;
}

.region-currency-toggle:hover {
  background: rgba(255, 255, 255, 0.28);
}

.region-flag {
  display: none !important;
}

.top-bar-desktop-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.top-bar-guarantee-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-weight: 700;
}

/* ==========================================================================
   MAIN NAVIGATION & HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 38px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 90;
  transition: all 0.35s ease;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  top: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  max-width: 100%;
  width: 100%;
  padding: 0 36px;
  display: flex;
  align-items: center;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  padding: 12px 0;
  width: 100%;
  transition: all 0.3s ease;
}

.site-header.scrolled .nav-container {
  padding: 10px 0;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  line-height: 1;
  text-decoration: none;
}

.brand-logo-img {
  height: 60px;
  width: auto;
  max-width: 320px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease, opacity 0.25s ease, height 0.25s ease;
}

.site-header .brand-logo-img {
  height: 62px;
  max-width: 320px;
}

.site-header.scrolled .brand-logo-img {
  height: 50px;
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
  opacity: 0.95;
}

.mobile-menu-header .brand-logo-img {
  height: 48px;
  max-width: 240px;
}

.footer-brand .brand-logo {
  margin-bottom: 14px;
}

.footer-brand .brand-logo-img {
  height: 72px;
  max-width: 340px;
}

.logo-symbol {
  width: 38px;
  height: 38px;
  background: var(--grad-primary);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(112, 66, 244, 0.3);
  transform: rotate(-3deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  line-height: 1;
}

.brand-logo:hover .logo-symbol {
  transform: rotate(0deg) scale(1.05);
}

.logo-text {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.logo-text span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-dark);
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding: 8px 2px;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0%;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-purple);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-quiz-shortcut {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-purple);
  background: var(--brand-purple-light);
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  line-height: 1;
  transition: all 0.2s ease;
  box-sizing: border-box;
  text-decoration: none;
}

.btn-quiz-shortcut:hover {
  background: #dfd7ff;
  transform: translateY(-1px);
}

.btn-nav-cta {
  background: var(--text-dark);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 700;
  height: 40px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  transition: all 0.25s ease;
  box-sizing: border-box;
  text-decoration: none;
}

.btn-nav-cta:hover {
  background: var(--brand-purple);
  box-shadow: var(--shadow-glow);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}

/* Mobile Navigation Overlay */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
}

.mobile-nav-links a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-links a:hover,
.mobile-nav-links a.active {
  color: var(--brand-purple);
}

.mobile-nav-links a.mobile-patch-finder-link {
  color: var(--brand-purple);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================================================
   BUTTONS & BADGES SYSTEM
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--grad-primary);
  color: #ffffff;
  padding: 16px 36px;
  font-size: 1.05rem;
  box-shadow: 0 10px 25px rgba(112, 66, 244, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 15px 35px rgba(112, 66, 244, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-dark);
  border: 1.5px solid var(--border-light);
  padding: 15px 32px;
  font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--brand-purple);
  color: var(--brand-purple);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--text-dark);
  color: #ffffff;
  padding: 16px 34px;
  font-size: 1rem;
}

.btn-dark:hover {
  background: #1e293b;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 18px 44px;
  font-size: 1.15rem;
}

.btn-pulse {
  animation: pulse-shadow 2.5s infinite;
}

@keyframes pulse-shadow {
  0% { box-shadow: 0 0 0 0 rgba(112, 66, 244, 0.45); }
  70% { box-shadow: 0 0 0 16px rgba(112, 66, 244, 0); }
  100% { box-shadow: 0 0 0 0 rgba(112, 66, 244, 0); }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-purple {
  background: var(--brand-purple-light);
  color: var(--brand-purple);
}

.badge-gold {
  background: var(--brand-gold-light);
  color: #b45309;
  border: 1px solid #fef08a;
}

.badge-emerald {
  background: var(--brand-emerald-light);
  color: var(--brand-emerald);
}

.badge-pill-glow {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  color: var(--text-dark);
}

/* ==========================================================================
   FOOTER & COMPLIANCE
   ========================================================================== */
.site-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 80px 0 30px;
  position: relative;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 340px;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--brand-purple);
  padding-left: 4px;
}

.footer-newsletter p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.newsletter-form {
  display: flex;
  gap: 8px;
  background: var(--bg-secondary);
  border: 1.5px solid var(--border-light);
  padding: 4px;
  border-radius: var(--radius-pill);
}

.newsletter-form input {
  flex: 1;
  background: transparent;
  padding: 10px 16px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.newsletter-form button {
  background: var(--brand-purple);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.newsletter-form button:hover {
  background: var(--brand-violet);
}

/* Compliance Disclaimer Box */
.compliance-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 40px;
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.compliance-box strong {
  color: var(--text-dark);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 28px;
  font-size: 0.85rem;
  color: var(--text-light);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-legal-links {
  display: flex;
  gap: 20px;
}

.footer-legal-links a:hover {
  color: var(--text-dark);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
  .nav-menu {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .nav-actions .btn-quiz-shortcut,
  .nav-actions .btn-nav-cta {
    display: none;
  }
  .section {
    padding: 60px 0;
  }
  .section-hero {
    padding-top: 110px;
    padding-bottom: 60px;
  }
  .top-bar {
    padding: 7px 0;
  }
  .top-bar-inner {
    padding: 0 16px;
    gap: 8px;
  }
  .top-bar-badge,
  .top-bar-desktop-text {
    display: none !important;
  }
  .top-bar-guarantee-text {
    display: inline-block !important;
    font-size: 0.775rem;
    font-weight: 700;
  }
  .top-bar-message {
    font-size: 0.775rem;
  }
  .region-currency-toggle {
    padding: 3px 8px;
    font-size: 0.75rem;
  }
  .site-header {
    top: 34px;
  }
  .site-header .brand-logo-img {
    height: 48px;
    max-width: 230px;
  }
  .site-header .container {
    padding: 0 18px;
  }
  .nav-container {
    padding: 8px 0;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
