/* 
  Lentile Moderne - Blog Nutriție & Igienă Vizuală
  Design System & Stylesheet
*/

:root {
  --primary: #1e4d3b;
  --primary-hover: #14372a;
  --primary-light: #eaf3ee;
  --accent: #d97706;
  --accent-hover: #b45309;
  --cta-btn: #10b981;
  --cta-btn-hover: #059669;
  --text-dark: #1f2937;
  --text-muted: #4b5563;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --bg-card: #ffffff;
  --border-color: #e5e7eb;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.12);
  --font-main: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Georgia', serif, system-ui;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

h1 { font-size: 2.25rem; font-weight: 700; }
h2 { font-size: 1.85rem; font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin-bottom: 1.25rem; color: var(--text-muted); }
a { color: var(--primary); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--accent); }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.narrow-container {
  max-width: 800px;
  margin: 0 auto;
}

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

.header-top-bar {
  background-color: var(--primary);
  color: var(--bg-white);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.4rem 1rem;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

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

.nav-links a {
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
  padding: 0.5rem 0;

}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
}

.btn-header {
  background-color: var(--cta-btn);
  color: #ffffff !important;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
  border-bottom: none !important;
}

.btn-header:hover {
  background-color: var(--cta-btn-hover);
}

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

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #f0f7f3 0%, #e3efe7 100%);
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.author-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--bg-white);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
}

.author-badge img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

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

.hero-img-box img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.img-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(30, 77, 59, 0.88);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: 0.85rem;
}

/* Article Styling */
.article-section {
  padding: 3rem 0;
}

.article-header {
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: 0.5rem;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.8;
}

.article-body h2 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-body blockquote {
  background-color: var(--primary-light);
  border-left: 4px solid var(--primary);
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--primary-hover);
}

.info-box {
  background-color: #fff8f0;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 1.75rem 0;
}

.info-box h4 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* Call to Action Box */
.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, #153b2d 100%);
  color: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 3rem 0;
  box-shadow: var(--shadow-lg);
}

.cta-box h3 {
  color: #ffffff;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.cta-box p {
  color: #e2e8f0;
  max-width: 650px;
  margin: 0 auto 1.5rem auto;
}

.btn-primary {
  display: inline-block;
  background-color: var(--cta-btn);
  color: #ffffff !important;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--cta-btn-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-block;
  background-color: var(--bg-white);
  color: var(--primary) !important;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: var(--primary-light);
}

/* Product Spotlight Card */
.product-spotlight {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 2rem;
  align-items: center;
  margin: 2.5rem 0;
  box-shadow: var(--shadow-md);
}

.product-spotlight img {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--radius-md);
  margin: 0 auto;
  display: block;
}

.ingredient-list {
  list-style: none;
  margin: 1rem 0 1.5rem 0;
}

.ingredient-list li {
  padding: 0.4rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dark);
}

.ingredient-list li::before {
  content: "✓";
  color: var(--cta-btn);
  font-weight: bold;
}

/* Interactive Slider (Before / After Visualizer) */
.visualizer-section {
  background-color: var(--bg-white);
  padding: 3rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin: 3rem 0;
}

.slider-container {
  position: relative;
  max-width: 750px;
  height: 360px;
  margin: 2rem auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  user-select: none;
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  box-sizing: border-box;
}

.slider-img.after {
  background: linear-gradient(135deg, #1e4d3b 0%, #064e3b 100%);
  color: #ffffff;
  z-index: 1;
}

.slider-img.before {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  color: #f8fafc;
  z-index: 2;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  -webkit-clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

/* Simulated blurred text effect for "before" state */
.slider-img.before .slider-content {
  filter: blur(3.5px);
  opacity: 0.85;
}

.slider-img.after .slider-content {
  filter: blur(0px);
}

.slider-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.slider-badge.bad {
  background-color: #ef4444;
  color: #ffffff;
}

.slider-badge.good {
  background-color: #10b981;
  color: #ffffff;
}

.slider-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.slider-subtitle {
  font-size: 1.05rem;
  max-width: 500px;
  line-height: 1.5;
}

.slider-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: #ffffff;
  z-index: 10;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
  pointer-events: none;
  transform: translateX(-50%);
}

.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  background-color: var(--primary);
  color: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: bold;
  z-index: 15;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  pointer-events: none;
}

.slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 30;
  margin: 0;
  padding: 0;
}
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
}

/* Interactive Assessment Quiz */
.quiz-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 700px;
  margin: 3rem auto;
  box-shadow: var(--shadow-md);
}

.quiz-progress {
  height: 6px;
  background-color: var(--border-color);
  border-radius: 3px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background-color: var(--cta-btn);
  width: 25%;
  transition: width 0.3s ease;
}

.quiz-option {
  display: block;
  background-color: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.quiz-option:hover {
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.quiz-option input {
  margin-right: 0.75rem;
}

.quiz-result {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.quiz-result-score {
  font-size: 3rem;
  font-weight: bold;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Certificates Badges */
.certificates-section {
  padding: 2.5rem 0;
  text-align: center;
}

.badges-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.badge-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.badge-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Accordion FAQ */
.faq-section {
  padding: 3rem 0;
}

.faq-item {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--primary);
  user-select: none;
}

.faq-answer {
  padding: 0 1.5rem 1.25rem 1.5rem;
  display: none;
  color: var(--text-muted);
  border-top: 1px solid #f3f4f6;
  padding-top: 1rem;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-toggle {
  transition: transform 0.3s ease;
  font-size: 0.9rem;
}

/* Order Lead Form */
.order-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 550px;
  margin: 2rem auto;
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.25rem;
  text-align: left;
}

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

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-main);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30, 77, 59, 0.15);
}

.form-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.4rem;
}

.error-message {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  display: none;
}

/* Thank You Page */
.thank-you-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2rem;
  max-width: 650px;
  margin: 4rem auto;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.thank-you-icon {
  width: 70px;
  height: 70px;
  background-color: #d1fae5;
  color: var(--cta-btn);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  margin: 0 auto 1.5rem auto;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #ffffff;
  border-top: 2px solid var(--primary);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  padding: 1.25rem;
  z-index: 9999;
  display: none;
}

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

.cookie-text {
  flex: 1;
  min-width: 280px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cookie-text a {
  text-decoration: underline;
}

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

.btn-cookie-accept {
  background-color: var(--primary);
  color: #fff;
  border: none;
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
}

.btn-cookie-reject {
  background-color: var(--bg-light);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  cursor: pointer;
}

/* Footer */
.footer {
  background-color: #111827;
  color: #9ca3af;
  padding: 3.5rem 0 1.5rem 0;
  margin-top: 4rem;
  font-size: 0.9rem;
}

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

.footer-col h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

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

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

.footer-links a {
  color: #9ca3af;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-disclaimer {
  border-top: 1px solid #1f2937;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.6;
}

/* Responsive Utilities */
@media (max-width: 900px) {
  .hero-grid, .product-spotlight, .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-color);
  }
  
  .nav-links.active {
    display: flex;
  }
}
