/* ==========================================================================
   VisionPlus Romania - Stiluri Principale (Google Ads & Eye-Care Compliant)
   Paletă Culori: Drapelul României (Albastru #002B7F, Galben #FCD116, Roșu #CE1126)
   ========================================================================== */

:root {
  /* Culori Drapelul României */
  --ro-blue: #002B7F;
  --ro-blue-hover: #001f5c;
  --ro-blue-light: #eef4ff;
  --ro-yellow: #FCD116;
  --ro-yellow-dark: #d9af00;
  --ro-yellow-bg: #fffdf0;
  --ro-red: #CE1126;
  --ro-red-hover: #a80a1c;

  /* Culori Neutre și Medicale */
  --bg-primary: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  
  /* Umbre și Tranziții */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 43, 127, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 43, 127, 0.12);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s ease;
}

/* Reset & Baza */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a {
  color: var(--ro-blue);
  text-decoration: none;
  transition: var(--transition);
}

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Top Banner Tricolor de Identitate */
.top-tricolor-bar {
  height: 5px;
  background: linear-gradient(90deg, var(--ro-blue) 33.33%, var(--ro-yellow) 33.33% 66.66%, var(--ro-red) 66.66%);
  width: 100%;
}

/* Header & Navigație */
.header {
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ro-blue);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: var(--ro-blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ro-blue);
  border: 2px solid var(--ro-blue);
}

.logo span {
  color: var(--ro-red);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 24px;
  align-items: center;
}

.nav-link {
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.nav-link:hover, .nav-link.active {
  color: var(--ro-blue);
  background-color: var(--ro-blue-light);
}

.nav-btn {
  background-color: var(--ro-red);
  color: #fff !important;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(206, 17, 38, 0.25);
}

.nav-btn:hover {
  background-color: var(--ro-red-hover);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ro-blue);
  cursor: pointer;
}

/* Banner Notificare Medicală Top (Google Ads Compliance) */
.disclaimer-top-bar {
  background-color: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
  padding: 8px 20px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.disclaimer-top-bar strong {
  color: var(--ro-blue);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #eef4ff 0%, #ffffff 60%, var(--ro-yellow-bg) 100%);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  background: var(--ro-yellow);
  color: #000;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
  color: var(--ro-blue);
  margin-bottom: 20px;
  font-weight: 800;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 30px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 30px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--ro-red);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(206, 17, 38, 0.3);
}

.btn-primary:hover {
  background-color: var(--ro-red-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--ro-blue);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 43, 127, 0.2);
}

.btn-secondary:hover {
  background-color: var(--ro-blue-hover);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--ro-blue);
  border: 2px solid var(--ro-blue);
}

.btn-outline:hover {
  background-color: var(--ro-blue-light);
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image-wrapper img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.badge-float {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--ro-yellow-dark);
  box-shadow: var(--shadow-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ro-blue);
}

/* Secțiuni Generale */
.section {
  padding: 70px 0;
}

.section-alt {
  background-color: #ffffff;
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px auto;
}

.section-subtitle {
  color: var(--ro-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
  margin-bottom: 8px;
  display: block;
}

.section-title {
  font-size: 2rem;
  color: var(--text-main);
  margin-bottom: 16px;
  font-weight: 700;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Carduri & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  gap: 40px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 30px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 43, 127, 0.2);
}

.card-icon {
  width: 56px;
  height: 56px;
  background-color: var(--ro-blue-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ro-blue);
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.card-title {
  font-size: 1.25rem;
  color: var(--ro-blue);
  margin-bottom: 12px;
  font-weight: 700;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Pagina de Comandă / Lead Form */
.product-hero {
  background: linear-gradient(135deg, #ffffff 0%, var(--ro-blue-light) 100%);
  padding: 50px 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.product-gallery {
  background: #fff;
  padding: 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  text-align: center;
  border: 1px solid var(--border-color);
}

.product-img {
  max-height: 420px;
  margin: 0 auto 20px auto;
  object-fit: contain;
}

.product-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.p-badge {
  background: var(--ro-yellow-bg);
  border: 1px solid var(--ro-yellow-dark);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #856404;
}

.lead-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 35px;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--ro-blue);
  position: relative;
}

.lead-card-header {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
  margin-bottom: 25px;
  text-align: center;
}

.price-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 15px;
  margin: 15px 0;
}

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

.price-current {
  color: var(--ro-red);
  font-size: 2.2rem;
  font-weight: 800;
}

.stock-tag {
  background: #def7ec;
  color: #03543f;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
}

.form-group {
  margin-bottom: 20px;
}

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

.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  transition: var(--transition);
  background: #fff;
}

.form-input:focus {
  outline: none;
  border-color: var(--ro-blue);
  box-shadow: 0 0 0 3px rgba(0, 43, 127, 0.15);
}

.form-notice {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 15px;
  text-align: center;
  line-height: 1.4;
}

.form-notice a {
  text-decoration: underline;
}

/* Certificate Grid */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.cert-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 25px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.cert-badge-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--ro-yellow-bg), #fff);
  border: 2px dashed var(--ro-yellow-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px auto;
  font-size: 1.8rem;
  color: var(--ro-blue);
}

.cert-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ro-blue);
  margin-bottom: 8px;
}

/* Footer & Conformitate */
.footer {
  background-color: #0f172a;
  color: #94a3b8;
  padding: 60px 0 30px 0;
  margin-top: auto;
  border-top: 5px solid var(--ro-blue);
}

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

.footer-about h3 {
  color: #ffffff;
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-title {
  color: #ffffff;
  font-size: 1.05rem;
  margin-bottom: 20px;
  font-weight: 700;
}

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

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.anpc-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}

.anpc-btn {
  display: inline-block;
  border: 1px solid #334155;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: #cbd5e1;
  background: #1e293b;
  text-align: center;
}

.anpc-btn:hover {
  background: #334155;
  color: #fff;
}

.footer-disclaimer-box {
  background: #1e293b;
  border-left: 4px solid var(--ro-yellow);
  padding: 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 30px;
  font-size: 0.83rem;
  line-height: 1.6;
  color: #cbd5e1;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 25px;
  text-align: center;
  font-size: 0.85rem;
}

/* Modal Consimțământ Cookie (GDPR) */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.15);
  border-top: 3px solid var(--ro-blue);
  padding: 20px;
  z-index: 9999;
  display: none;
}

.cookie-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-text {
  font-size: 0.9rem;
  color: var(--text-main);
  max-width: 800px;
}

.cookie-btns {
  display: flex;
  gap: 10px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 20px;
}

/* Modal Simplu Feedback Formular */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #fff;
  padding: 40px;
  border-radius: var(--radius-md);
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-icon {
  font-size: 3rem;
  color: var(--success);
  margin-bottom: 15px;
}

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

  .hero-title {
    font-size: 2rem;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
  }

  .nav-menu.active {
    display: flex;
  }

  .mobile-toggle {
    display: block;
  }

  .cookie-container {
    flex-direction: column;
    align-items: flex-start;
  }
}
