/* =============================================
   ProDentim Review Site — Global Design System
   Zero CDN dependencies. Pure vanilla CSS.
   ============================================= */

/* ── Variables ── */
:root {
  --mint:       #10b981;
  --mint-dark:  #059669;
  --mint-light: #d1fae5;
  --navy:       #0f172a;
  --navy-mid:   #1e3a5f;
  --navy-light: #1e40af;
  --white:      #ffffff;
  --off-white:  #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-600:   #475569;
  --gray-800:   #1e293b;
  --gold:       #f59e0b;
  --red-light:  #fee2e2;
  --red:        #ef4444;

  --font-main: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --radius:    12px;
  --radius-lg: 20px;
  --shadow:    0 4px 24px rgba(15,23,42,0.10);
  --shadow-lg: 0 8px 40px rgba(15,23,42,0.16);
  --transition: 0.25s ease;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-main);
  background: var(--off-white);
  color: var(--gray-800);
  line-height: 1.7;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--mint-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--mint); }

/* ── Typography ── */
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--navy); }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; color: var(--gray-600); }
strong { color: var(--gray-800); }

/* ── Layout ── */
.container { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
section { padding: 60px 0; }

/* ── Reading Progress Bar ── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--mint), var(--navy-light));
  z-index: 9999; transition: width 0.1s linear;
}

/* ── Header / Nav ── */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: 1100px; margin: 0 auto;
}
.logo { color: var(--white); font-size: 1.2rem; font-weight: 800; letter-spacing: -0.3px; }
.logo span { color: var(--mint); }
.nav-links { display: flex; gap: 20px; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500; transition: color var(--transition); }
.nav-links a:hover { color: var(--mint); }
.header-cta {
  background: var(--mint); color: var(--white) !important;
  padding: 8px 18px; border-radius: 50px; font-weight: 700 !important;
  font-size: 0.85rem !important; white-space: nowrap;
  box-shadow: 0 2px 10px rgba(16,185,129,0.4);
  transition: background var(--transition), transform var(--transition) !important;
}
.header-cta:hover { background: var(--mint-dark) !important; transform: translateY(-1px); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ── Country / Language Switcher ── */
.lang-switcher {
  position: relative;
  display: inline-block;
}
.lang-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s, border-color 0.2s;
  font-family: inherit;
}
.lang-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: var(--mint);
}
.lang-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 8px;
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  list-style: none;
  padding: 6px 0;
  min-width: 190px;
  display: none;
  z-index: 1000;
}
.lang-dropdown.show {
  display: block;
  animation: fadeInDown 0.2s ease-out;
}
.lang-dropdown li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.lang-dropdown li a:hover,
.lang-dropdown li a.active {
  background: rgba(16, 185, 129, 0.18);
  color: var(--mint);
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Disclosure Banner ── */
.disclosure-banner {
  background: #fef3c7; border-bottom: 1px solid #fde68a;
  padding: 8px 20px; text-align: center; font-size: 0.8rem; color: #92400e;
}
.disclosure-banner a { color: #92400e; text-decoration: underline; }

/* ── Hero Section ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0d253f 100%);
  color: var(--white); padding: 70px 0 60px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16,185,129,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner { display: flex; align-items: center; gap: 40px; max-width: 900px; margin: 0 auto; padding: 0 20px; }
.hero-text { flex: 1; }
.hero-badge {
  display: inline-block; background: rgba(16,185,129,0.15);
  border: 1px solid rgba(16,185,129,0.4); color: var(--mint);
  padding: 4px 14px; border-radius: 50px; font-size: 0.82rem; font-weight: 700;
  margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px;
}
.hero p { color: rgba(255,255,255,0.8); font-size: 1.1rem; margin-bottom: 24px; }
.hero-img { flex: 0 0 320px; text-align: center; }
.hero-img img { max-height: 380px; margin: 0 auto; filter: drop-shadow(0 12px 24px rgba(0,0,0,0.4)); }

/* Trust Bar */
.trust-bar {
  display: flex; gap: 20px; flex-wrap: wrap; margin-top: 24px;
  padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.1);
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: rgba(255,255,255,0.75); }
.trust-item span { color: var(--mint); font-weight: 700; }

/* ── Rating Score Box ── */
.score-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-lg); border: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: 30px; margin: 40px 0;
}
.score-number { text-align: center; flex: 0 0 120px; }
.score-big { font-size: 3.5rem; font-weight: 800; color: var(--navy); line-height: 1; }
.score-stars { color: var(--gold); font-size: 1.2rem; margin: 4px 0; }
.score-label { font-size: 0.8rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.5px; }
.score-bars { flex: 1; }
.score-bar-row { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; font-size: 0.85rem; }
.score-bar-label { width: 140px; font-weight: 600; color: var(--gray-600); }
.score-bar-track { flex: 1; height: 10px; background: var(--gray-200); border-radius: 5px; overflow: hidden; }
.score-bar-fill { height: 100%; background: linear-gradient(90deg, var(--mint), var(--mint-dark)); border-radius: 5px; transition: width 1s ease-out; }
.score-bar-val { width: 36px; text-align: right; font-weight: 700; color: var(--navy); }

/* ── Buttons & CTAs ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px; border-radius: 50px; font-weight: 700; font-size: 1rem;
  cursor: pointer; border: none; transition: all var(--transition); text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-dark) 100%);
  color: var(--white); box-shadow: 0 6px 20px rgba(16,185,129,0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--mint-dark) 0%, #047857 100%);
  color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16,185,129,0.45);
}
.btn-lg { padding: 18px 38px; font-size: 1.15rem; }
.btn-block { width: 100%; }

/* ── Cards & Grids ── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 30px 0; }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--white); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--gray-200); box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* ── Callout Box ── */
.callout {
  padding: 20px 24px; border-radius: var(--radius); margin: 24px 0;
  display: flex; gap: 16px; align-items: flex-start;
}
.callout-mint   { background: var(--mint-light); border-left: 4px solid var(--mint-dark); color: #065f46; }
.callout-yellow { background: #fef3c7; border-left: 4px solid var(--gold); color: #92400e; }
.callout-danger { background: var(--red-light); border-left: 4px solid var(--red); color: #991b1b; }
.callout-icon   { font-size: 1.4rem; flex-shrink: 0; line-height: 1; }
.callout p      { margin: 0; color: inherit; font-size: 0.95rem; }

/* ── Testimonials ── */
.testimonial {
  background: var(--white); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--gray-200); box-shadow: var(--shadow); margin-bottom: 20px;
}
.testimonial-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.testimonial-author { font-weight: 700; color: var(--navy); }
.testimonial-stars  { color: var(--gold); }
.testimonial-meta   { font-size: 0.8rem; color: var(--gray-400); margin-bottom: 8px; }
.verified-badge     { color: var(--mint-dark); font-weight: 600; font-size: 0.78rem; display: inline-flex; align-items: center; gap: 4px; }

/* ── Pricing Cards ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 40px 0; }
.pricing-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 30px;
  border: 2px solid var(--gray-200); text-align: center; position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
}
.pricing-card.popular {
  border-color: var(--mint); box-shadow: 0 10px 36px rgba(16,185,129,0.25);
  transform: scale(1.03);
}
.popular-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--mint); color: var(--white); font-size: 0.78rem;
  font-weight: 800; padding: 4px 16px; border-radius: 50px; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.price-now { font-size: 2.8rem; font-weight: 800; color: var(--navy); margin: 12px 0 4px; }
.price-now span { font-size: 1.5rem; vertical-align: super; }
.price-per { font-size: 0.85rem; color: var(--gray-600); margin-bottom: 20px; }

/* ── FAQ Accordion ── */
.faq-item {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--gray-200); margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  padding: 20px 24px; font-weight: 700; color: var(--navy); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-icon { font-size: 1.2rem; transition: transform var(--transition); color: var(--mint); }
.faq-icon.open { transform: rotate(45deg); }
.faq-answer { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease, padding 0.3s ease; color: var(--gray-600); }
.faq-answer.open { padding: 0 24px 20px; max-height: 600px; }

/* ── Check List ── */
.check-list { list-style: none; margin: 16px 0; }
.check-list li {
  position: relative; padding-left: 28px; margin-bottom: 10px;
  color: var(--gray-600); font-size: 0.95rem;
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  color: var(--mint-dark); font-weight: 800; font-size: 1rem;
}

/* ── Sticky Mobile CTA ── */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 850;
  background: var(--navy); padding: 12px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: space-between;
  border-top: 2px solid var(--mint); transition: opacity 0.3s ease;
}
.sticky-cta p { margin: 0; color: var(--white); font-weight: 700; font-size: 0.9rem; }
.sticky-cta p span { color: var(--mint); }

/* ── Exit-Intent Popup ── */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,0.75);
  backdrop-filter: blur(4px); z-index: 9999;
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.popup-overlay.show { opacity: 1; pointer-events: auto; }
.popup-box {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 36px; max-width: 480px; width: 100%; text-align: center;
  position: relative; box-shadow: var(--shadow-lg);
}
.popup-close {
  position: absolute; top: 14px; right: 18px; font-size: 1.4rem;
  background: none; border: none; cursor: pointer; color: var(--gray-400);
}

/* ── Footer ── */
.site-footer {
  background: var(--navy); color: rgba(255,255,255,0.7);
  padding: 50px 0 30px; font-size: 0.85rem; border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.footer-logo { color: var(--white); font-size: 1.2rem; font-weight: 800; margin-bottom: 12px; }
.footer-logo span { color: var(--mint); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin: 20px 0; }
.footer-links a { color: rgba(255,255,255,0.7); }
.footer-links a:hover { color: var(--mint); }
.footer-disclaimer { font-size: 0.78rem; line-height: 1.6; color: rgba(255,255,255,0.45); margin-top: 20px; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 20px 0; }

/* ── Animations ── */
.fade-up { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column; padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4); border-top: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero-inner { flex-direction: column; text-align: center; }
  .score-box { flex-direction: column; text-align: center; }
  .pricing-card.popular { transform: none; }
  .lang-switcher { margin-left: 0; margin-top: 10px; }
  .lang-dropdown { right: auto; left: 0; }
}
