@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@400;700&family=Mulish:wght@400;600&display=swap');

:root {
  /* Thematic variables for Eye Health/Vision Education */
  --vision-bg: #FAFAF8; 
  --retina-surface: #FFFFFF;
  --optic-ink: #1a1c20;
  --lens-subtext: #4b5563;
  --iris-tone: #EC4899; /* Vibrant colorful accent */
  --sclera-tone: #8B5CF6; /* Secondary colorful accent */
  --focus-gradient: linear-gradient(135deg, #EC4899, #8B5CF6);
  --optic-border: #e5e7eb;
  
  /* Typography */
  --font-display: 'Josefin Sans', sans-serif;
  --font-body: 'Mulish', sans-serif;
  
  /* Spacing & Structure (Preset E & Random selections) */
  --pad-spacious: 16dvh;
  --rad-soft: 16px;
  --rad-pill: 999px;
  --shadow-deep: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 40px rgba(139, 92, 246, 0.1);
}

body {
  font-family: var(--font-body);
  background-color: var(--vision-bg);
  color: var(--optic-ink);
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase; /* Heading Case: uppercase */
  font-weight: 700;
  margin: 0;
}

/* Typography Editorial Elements */
.editorial-quote {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1.4;
  color: var(--iris-tone);
  border-left: 4px solid;
  border-image: var(--focus-gradient) 1;
  padding-left: 1.5rem;
  margin: 2rem 0;
  text-transform: uppercase;
}

.giant-bg-number {
  position: absolute;
  font-size: 8rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--optic-ink);
  opacity: 0.04;
  top: -2rem;
  left: -1rem;
  z-index: 0;
  pointer-events: none;
}

/* Mobile Menu Implementation - CSS Only */
.vision-nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.mobile-nav-trigger {
  display: none;
  cursor: pointer;
  z-index: 60;
}

.mobile-nav-trigger svg {
  width: 32px;
  height: 32px;
  fill: var(--optic-ink);
}

#nav-toggle {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-nav-trigger {
    display: block;
  }
  
  .vision-nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--retina-surface);
    flex-direction: column;
    justify-content: center;
    transition: right 0.3s ease-in-out;
    box-shadow: var(--shadow-deep);
    z-index: 50;
  }
  
  #nav-toggle:checked ~ .vision-nav-links {
    right: 0;
  }
}

/* Decorators & Utilities */
.gradient-text {
  background: var(--focus-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.card-top-accent {
  border-top: 4px solid;
  border-image: var(--focus-gradient) 1;
}

.editorial-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-family: var(--font-display);
  border: 2px solid var(--iris-tone);
  color: var(--optic-ink);
  background: transparent;
  border-radius: var(--rad-pill);
  text-transform: uppercase;
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.editorial-button::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--focus-gradient);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.editorial-button:hover {
  color: #fff;
  border-color: transparent;
}

.editorial-button:hover::before {
  opacity: 1;
}

/* FAQ Accordion Styling */
.faq-box {
  background: var(--retina-surface);
  border-bottom: 1px solid var(--optic-border);
}

.faq-box summary {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  padding: 1.5rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--optic-ink);
}

.faq-box summary::-webkit-details-marker {
  display: none;
}

.faq-box summary::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--iris-tone);
  transition: transform 0.3s ease;
}

.faq-box[open] summary::after {
  transform: rotate(45deg);
}

.faq-box p {
  padding-bottom: 1.5rem;
  color: var(--lens-subtext);
  line-height: 1.6;
}

/* Cookie Banner */
.cookie-portal {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--retina-surface);
  box-shadow: var(--shadow-deep);
  padding: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  border-top: 1px solid var(--optic-border);
}

@media (min-width: 768px) {
  .cookie-portal {
    flex-direction: row;
    justify-content: space-between;
  }
}

.cookie-actions {
  display: flex;
  gap: 1rem;
}

.btn-cookie {
  padding: 0.5rem 1.5rem;
  font-family: var(--font-display);
  text-transform: uppercase;
  border-radius: var(--rad-pill);
  cursor: pointer;
  font-weight: 700;
}

#accept-cookie {
  background: var(--focus-gradient);
  color: #fff;
  border: none;
}

#decline-cookie {
  background: transparent;
  border: 1px solid var(--lens-subtext);
  color: var(--optic-ink);
}