/* ==========================================================================
   UpVision - Vision & Eye Nutrition Dark Theme Stylesheet
   GEO: Romania | Google Ads & GDPR Compliant
   ========================================================================== */

:root {
  --bg-dark: #080d1a;
  --bg-main: #0f172a;
  --bg-card: #1e293b;
  --bg-card-alt: #162032;
  --bg-glass: rgba(30, 41, 59, 0.85);
  
  --border-subtle: #334155;
  --border-focus: #38bdf8;
  
  --text-bright: #f8fafc;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  
  --accent-cyan: #38bdf8;
  --accent-blue: #0284c7;
  --accent-blue-hover: #0369a1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.2);
  
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-family);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-blue);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-bright);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1.2rem;
  color: var(--text-main);
}

.text-muted { color: var(--text-muted); }
.text-cyan { color: var(--accent-cyan); }
.text-emerald { color: var(--accent-emerald); }
.text-amber { color: var(--accent-amber); }
.text-rose { color: var(--accent-rose); }

/* Layout Helpers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.bg-alt {
  background-color: var(--bg-main);
}

.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* Top Compliance Banner */
.top-notice-bar {
  background: linear-gradient(90deg, #1e293b, #0f172a);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.top-notice-bar strong { color: var(--accent-cyan); }

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(8, 13, 26, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  transition: all var(--transition-normal);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-bright);
  letter-spacing: -0.5px;
}

.nav-brand svg {
  color: var(--accent-cyan);
}

.nav-brand span {
  color: var(--accent-cyan);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.4rem 0.2rem;
  position: relative;
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--accent-cyan);
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-cyan);
  border-radius: 2px;
}

.btn-nav {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-cyan));
  color: #ffffff !important;
  padding: 0.6rem 1.4rem !important;
  border-radius: var(--radius-full);
  font-weight: 600 !important;
  box-shadow: var(--shadow-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

/* Mobile Hamburger Menu */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-bright);
  font-size: 1.6rem;
  cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #0284c7);
  transform: translateY(-2px);
  color: #ffffff;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.4);
}

.btn-emerald {
  background: linear-gradient(135deg, #059669, #10b981);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.25);
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--text-bright);
  border: 1px solid var(--border-subtle);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background-color: rgba(56, 189, 248, 0.05);
}

.btn-lg {
  padding: 1.1rem 2.4rem;
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

/* Cards & Glass Containers */
.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: var(--shadow-md);
}

.card-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

/* Hero Section */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  background: radial-gradient(circle at 50% 20%, rgba(2, 132, 199, 0.15), transparent 70%);
}

.hero-content h1 {
  margin-bottom: 1.2rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 650px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md), var(--shadow-glow);
  border: 1px solid var(--border-subtle);
}

.hero-image-wrapper img {
  width: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.hero-image-wrapper:hover img {
  transform: scale(1.02);
}

.price-tag-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: linear-gradient(135deg, #10b981, #047857);
  color: #ffffff;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

/* Feature Badges & Stats */
.features-grid {
  margin-top: 3rem;
}

.feature-box {
  background: var(--bg-card);
  padding: 1.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.feature-icon {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background-color: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Ingredients Section */
.ingredient-card {
  background: var(--bg-card-alt);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-subtle);
  text-align: center;
}
.ingredient-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

/* Price Box & Product Offer */
.offer-box {
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid var(--accent-cyan);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  position: relative;
  box-shadow: var(--shadow-glow);
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 1.5rem 0;
}

.current-price {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.old-price {
  font-size: 1.4rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.discount-badge {
  background-color: var(--accent-rose);
  color: #ffffff;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
}

/* Static Inline Lead Form Styling */
.lead-form-card {
  background: linear-gradient(160deg, #1e293b, #0f172a);
  border: 2px solid var(--accent-emerald);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
  position: relative;
}

.lead-form-header {
  text-align: center;
  margin-bottom: 1.8rem;
}

.lead-form-header h3 {
  font-size: 1.8rem;
  color: var(--text-bright);
  margin-bottom: 0.4rem;
}

/* Phone Input Group with Fixed Country Code Flag Prefix */
.phone-input-group {
  display: flex;
  align-items: center;
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.phone-input-group:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.phone-input-group.is-valid {
  border-color: var(--accent-emerald) !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.phone-input-group.is-invalid {
  border-color: var(--accent-rose) !important;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.2) !important;
}

.country-code-prefix {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.9rem 1rem;
  background-color: #162032;
  border-right: 1px solid var(--border-subtle);
  color: var(--text-bright);
  font-weight: 700;
  font-size: 1rem;
  user-select: none;
  white-space: nowrap;
}

.phone-input-group .form-control {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  padding-left: 0.8rem;
}

/* Interactive Vision Test Styling */
.test-container {
  max-width: 750px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

.test-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.progress-step {
  flex: 1;
  height: 6px;
  background-color: var(--border-subtle);
  border-radius: 3px;
  transition: background-color var(--transition-normal);
}

.progress-step.active {
  background-color: var(--accent-cyan);
}

.test-screen {
  display: none;
}

.test-screen.active {
  display: block;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.landolt-c-box {
  width: 140px;
  height: 140px;
  margin: 2rem auto;
  border: 16px solid var(--text-bright);
  border-radius: 50%;
  position: relative;
  box-sizing: border-box;
}

.landolt-left { border-left-color: transparent !important; }

.test-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.test-opt-btn {
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  color: var(--text-bright);
  padding: 1rem;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.test-opt-btn:hover {
  border-color: var(--accent-cyan);
  background-color: rgba(56, 189, 248, 0.1);
  color: var(--accent-cyan);
}

.contrast-text-box {
  background-color: #1e293b;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  margin: 1.5rem 0;
  text-align: center;
}

.contrast-level-1 { color: rgba(248, 250, 252, 0.08); font-size: 1.6rem; font-weight: 700; }

/* Form Controls & Validation Text */
.form-group {
  margin-bottom: 1.4rem;
  position: relative;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-control {
  width: 100%;
  padding: 0.9rem 1rem;
  background-color: var(--bg-main);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-bright);
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.phone-validation-hint {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.4rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.phone-hint-valid {
  color: var(--accent-emerald);
}

.phone-hint-invalid {
  color: var(--accent-rose);
}

.phone-hint-neutral {
  color: var(--text-muted);
}

/* Certificate Cards & Seals Grid */
.cert-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.8rem;
  margin-top: 2.5rem;
}

.cert-card {
  background: linear-gradient(145deg, var(--bg-card-alt), var(--bg-card));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.cert-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.cert-seal-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.2rem;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.2), transparent 70%);
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.cert-card h4 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  color: var(--text-bright);
}

.cert-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border-subtle);
  padding: 1.2rem 0;
  z-index: 1500;
  display: none;
}

.cookie-banner.active {
  display: block;
}

.cookie-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cookie-buttons {
  display: flex;
  gap: 0.8rem;
}

/* Medical Disclaimer Box & Footer */
.disclaimer-box {
  background-color: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-amber);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 3rem 0 1.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.site-footer {
  background-color: #050811;
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h5 {
  color: var(--text-bright);
  font-size: 1.1rem;
  margin-bottom: 1.2rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
}
.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.85rem;
}

/* Article Cards */
.article-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.article-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
  font-weight: 600;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 73px;
    left: 0;
    width: 100%;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    display: none;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .test-options {
    grid-template-columns: 1fr;
  }
  
  .cookie-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
