/* ==========================================================================
   GLUCOTRUST EUROPE - ADVANCED STYLESHEET
   Target: Europe Only (High Conversion, Medical Trust)
   Theme: Medical Blue (Product Match), Clean White, and High-Converting Green
   ========================================================================== */

/* ===== GLOBAL RESETS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* === BRAND COLORS (GlucoTrust Medical Blue) === */
  --brand-primary:   #0B3E75; /* Deep Trust Blue */
  --brand-secondary: #1E88E5; /* Bright Accent Blue */
  --brand-accent:    #28A745; /* High-Converting Green for CTA Buttons */
  --brand-yellow:    #FFB300; /* Yellow accent for Stars & Highlights */
  --brand-green:     #1B8E36; /* Verification Green */
  --white:           #ffffff;
  --bg-light:        #F4F8FC; /* Very Soft Blue/Grey Background */
  --bg-dark:         #051D38; /* Deep Dark Blue for Footer */
  --text-main:       #222222; /* Strong Dark Grey for readability */
  --text-muted:      #555555; /* Softer text for descriptions */
  --border-color:    #D9E6F2;
  
  /* Shadows */
  --shadow-sm:       0 2px 8px rgba(11, 62, 117, 0.08);
  --shadow-md:       0 4px 20px rgba(11, 62, 117, 0.12);
  --shadow-lg:       0 12px 35px rgba(11, 62, 117, 0.18);

  /* === OPTIMIZED TYPOGRAPHY SCALES === */
  --f-xs:    1.0rem;
  --f-sm:    1.15rem;
  --f-body:  1.20rem; 
  --f-md:    1.45rem;
  --f-lg:    1.65rem;
  --f-xl:    2.1rem;
  --f-2xl:   2.6rem;
  --f-3xl:   3.1rem;
  --f-price: 3.5rem;
  --lh-body: 1.8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  font-size: var(--f-body);
  line-height: var(--lh-body);
  color: var(--text-main);
  background: var(--white);
  overflow-x: hidden;
  padding-bottom: 110px; /* Space for sticky CTA */
}

/* Typography Basics */
h1 { font-size: var(--f-3xl); font-weight: 900; line-height: 1.2; }
h2 { font-size: var(--f-2xl); font-weight: 800; line-height: 1.25; }
h3 { font-size: var(--f-xl);  font-weight: 700; line-height: 1.3; }
h4 { font-size: var(--f-lg);  font-weight: 700; line-height: 1.35; }
p, li { font-size: var(--f-body); line-height: var(--lh-body); margin-bottom: 20px; text-align: justify; text-align-last: left; }
a { text-decoration: none; color: var(--brand-secondary); }

/* ===== UTILITIES ===== */
.section    { padding: 85px 24px; }
.bg-light   { background: var(--bg-light); }
.brand-title { color: var(--brand-primary); }
.sec-title  { text-align: center; font-size: var(--f-2xl); font-weight: 900; color: var(--brand-primary); margin-bottom: 18px; }
.sec-sub    { text-align: center; font-size: var(--f-md); color: var(--text-muted); margin-bottom: 55px; max-width: 950px; margin-left: auto; margin-right: auto; line-height: 1.6; }
.wrap       { padding: 0 15px; } 

/* ===== BUTTONS ===== */
.btn-cta {
  display: inline-block; 
  background: var(--brand-accent); 
  color: var(--white) !important;
  padding: 18px 45px; 
  border-radius: 6px;
  font-weight: 900; 
  font-size: var(--f-lg);
  margin-top: 25px;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  transition: all 0.3s ease;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-cta:hover { 
  background: #218838; 
  transform: translateY(-4px); 
  box-shadow: 0 8px 25px rgba(33, 136, 56, 0.5); 
}
.btn-cta-xl { 
  font-size: 1.25rem;  
  padding: 20px 40px;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 75px; padding: 0 24px;
}
.nav-logo img { height: 55px; object-fit: contain; }
.nav-links { 
  display: flex; 
  gap: 35px; 
  list-style: none;
  margin-top: 20px; 
}
.nav-links a { color: var(--text-main); font-weight: 700; font-size: var(--f-sm); transition: color .2s; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-links a:hover { color: var(--brand-secondary); }
.btn-nav {
  background: var(--brand-primary); color: var(--white) !important;
  padding: 12px 30px; border-radius: 4px;
  font-weight: 800; font-size: var(--f-sm);
  transition: all .2s;
}
.btn-nav:hover { background: var(--brand-secondary); }

/* ===== HERO SECTION ===== */
.hero { padding: 60px 24px 85px; background: linear-gradient(135deg, #ffffff 30%, var(--bg-light) 100%); border-bottom: 1px solid var(--border-color); }
.hero-grid {
  max-width: 1150px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 55px; align-items: center;
}
.hero-img img { width: 100%; max-width: 95%; margin: 0 auto; display: block; border-radius: 12px; }
.hero-content h1 { color: var(--text-main); margin-bottom: 25px; }
.hero-content h1 span { color: var(--brand-secondary); }
.hero-content p { color: var(--text-muted); margin-bottom: 25px; font-size: var(--f-md); text-align: left; }
.trust-stars { font-size: 1.5rem; font-weight: 700; color: var(--brand-yellow); margin-bottom: 15px; }
.trust-stars span { font-size: 1rem; color: var(--text-muted); margin-left: 8px; font-weight: 500; }
.hero-divider { border: none; border-top: 2px dashed var(--border-color); margin: 25px 0; }
.reg-price { font-size: var(--f-md); color: var(--text-muted); }
.sale-price { font-size: var(--f-xl); font-weight: 900; color: var(--brand-primary); margin: 8px 0; }
.hurry-badge { display: inline-block; background: #FFF3CD; color: #856404; padding: 10px 22px; font-size: var(--f-sm); font-weight: 800; border-radius: 4px; margin-top: 10px; border: 1px solid #FFEEBA; }

/* ===== E-E-A-T AUTHOR BOX ===== */
.eeat-box {
  display: flex; align-items: center; gap: 25px;
  background: var(--bg-light); padding: 30px; border-radius: 12px;
  border: 1px solid var(--border-color); margin: 40px auto; max-width: 900px;
}
.eeat-img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; border: 4px solid var(--brand-primary); box-shadow: var(--shadow-sm); }
.eeat-content h5 { color: var(--brand-primary); font-size: 1.2rem; margin-bottom: 8px; }
.eeat-content p { font-size: 1rem; line-height: 1.6; margin: 0; text-align: left;}

/* ===== TWO COLUMNS (SCIENCE) ===== */
.two-col { max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.two-col img { width: 100%; border-radius: 12px; box-shadow: var(--shadow-md); border: 1px solid var(--border-color); }
.two-col h2 { color: var(--brand-primary); margin-bottom: 25px; }

/* ===== INGREDIENTS ===== */
.ing-list { max-width: 1000px; margin: 0 auto; list-style: none; }
.ing-item { padding: 40px 40px 40px 110px; margin-bottom: 30px; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); position: relative; display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: center; transition: all 0.3s ease; }
.ing-item:hover { box-shadow: var(--shadow-md); border-color: var(--brand-secondary); transform: translateY(-3px); }
.ing-num { width: 60px; height: 60px; background: var(--brand-primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: var(--f-lg); font-weight: 900; position: absolute; left: -20px; top: -20px; box-shadow: var(--shadow-sm); border: 4px solid var(--bg-light); }
.ing-img { width: 200px; height: 200px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-color); }
.ing-content h4 { color: var(--brand-secondary); margin-bottom: 15px; font-size: var(--f-xl); }

/* ===== PRICING TABLES ===== */
.pricing-grid { max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; align-items: end; }
.p-card { background: var(--white); border-radius: 12px; padding: 45px 30px; text-align: center; border: 2px solid var(--border-color); position: relative; transition: all .3s; }
.p-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--brand-secondary); }
.p-card.pop { border-color: var(--brand-secondary); border-width: 4px; box-shadow: var(--shadow-md); padding-top: 55px; background: #F8FBFF; }
.pop-badge { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); background: var(--brand-secondary); color: var(--white); font-weight: 900; font-size: 1.05rem; padding: 10px 28px; border-radius: 30px; white-space: nowrap; box-shadow: 0 4px 15px rgba(30, 136, 229, 0.4); }
.p-card img { width: 100%; max-width: 290px; margin: 0 auto 25px; display: block; transition: transform .3s; }
.p-card img:hover { transform: scale(1.06); }
.supply { font-size: var(--f-lg); font-weight: 900; margin-bottom: 12px; color: var(--text-main); }
.price-big { font-size: var(--f-price); font-weight: 900; color: var(--brand-primary); line-height: 1; margin: 10px 0;}
.per-btl { color: var(--text-muted); margin-bottom: 15px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px;}
.savings { font-size: var(--f-md); font-weight: 700; color: var(--brand-green); margin-bottom: 15px; }

/* ===== BONUSES SECTION ===== */
.bonuses-bg { background: linear-gradient(135deg, var(--brand-primary) 0%, var(--bg-dark) 100%); color: var(--white); }
.bonus-headline { text-align: center; margin-bottom: 55px; }
.bonus-headline h2 { color: var(--white); font-size: var(--f-3xl); margin-bottom: 15px; }
.bonus-headline p { color: #B3D4F5; font-size: var(--f-lg); }
.bonuses-grid-custom { max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.bonus-card { background: var(--white); color: var(--text-main); border-radius: 12px; padding: 35px; display: grid; grid-template-columns: 180px 1fr; gap: 30px; align-items: center; box-shadow: var(--shadow-lg); }
.bonus-card img { width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border-color); }
.bonus-card h4 { color: var(--brand-primary); font-size: var(--f-lg); margin-bottom: 12px; }
.bonus-card p { font-size: 1.05rem; line-height: 1.6; margin-bottom: 0; text-align: left;}

/* ===== GUARANTEE ===== */
.mb-inner { max-width: 1050px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: 55px; align-items: center; }
.mb-inner img { width: 100%; max-width: 300px; }
.mb-inner h3 { color: var(--brand-primary); margin-bottom: 25px; font-size: var(--f-xl);}

/* ===== GDPR COOKIE BANNER ===== */
.cookie-banner {
  position: fixed; bottom: 100px; left: 20px; right: 20px;
  background: #111; color: #fff;
  padding: 18px 30px; border-radius: 8px; z-index: 9998;
  display: flex; justify-content: space-between; align-items: center; gap: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); border-left: 6px solid var(--brand-secondary);
}
.cookie-banner p { margin: 0; font-size: 0.95rem; text-align: left; line-height: 1.5; }
.cookie-banner a { color: var(--brand-secondary); text-decoration: underline; }
.cookie-banner button {
  background: var(--brand-accent); color: var(--white);
  border: none; padding: 12px 25px; border-radius: 4px;
  cursor: pointer; font-weight: 800; white-space: nowrap; transition: 0.3s;
}
.cookie-banner button:hover { background: #218838; }

/* ===== BOTTOM STICKY CTA BAR (NEW GENERATOR) ===== */
.bottom-cta-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(5, 29, 56, 0.95); /* Deep Medical Blue Transparent */
  backdrop-filter: blur(12px);
  border-top: 4px solid var(--brand-accent);
  padding: 18px 45px 18px 25px; 
  z-index: 9999;
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.25);
}
.bottom-cta-bar.visible { transform: translateY(0); }

.close-cta {
  position: absolute; top: -16px; right: 20px;
  background: var(--brand-secondary); color: white;
  border: none; border-radius: 50%;
  width: 32px; height: 32px; font-size: 20px; line-height: 30px;
  cursor: pointer; z-index: 10000; box-shadow: var(--shadow-md); transition: 0.3s;
}
.close-cta:hover { background: #1565C0; transform: scale(1.1); }

.cta-bar-content {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; gap: 25px;
}
.cta-text { color: var(--white); font-size: var(--f-md); letter-spacing: 0.5px; }
.cta-pulse { animation: pulseWarning 1.5s infinite; display: inline-block; font-size: 1.3rem; }
.btn-cta-bar {
  background: var(--brand-accent); color: var(--white) !important;
  padding: 15px 40px; border-radius: 4px;
  font-weight: 900; font-size: 1.1rem;
  white-space: nowrap; transition: background 0.3s;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.4); text-transform: uppercase;
}
.btn-cta-bar:hover { background: #218838; }

@keyframes pulseWarning { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.1); } 100% { opacity: 1; transform: scale(1); } }

/* ===== FOOTER ===== */
footer { background: var(--bg-dark); color: #B3D4F5; padding: 75px 24px 45px; text-align: center; }
.foot-disc { max-width: 1100px; margin: 0 auto; font-size: 0.95rem; line-height: 1.8; text-align: justify; text-align-last: center; }
.foot-disc p { margin-bottom: 15px; }
.foot-links { display: flex; justify-content: center; gap: 35px; margin: 45px 0 30px; flex-wrap: wrap; }
.foot-links a { color: var(--brand-secondary); font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; }
.foot-links a:hover { color: var(--white); }
.foot-copy { font-size: 0.9rem; opacity: 0.6; margin-top: 20px;}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  :root {
    --f-body: 1.15rem; --f-md: 1.3rem; --f-lg: 1.45rem;
    --f-xl: 1.8rem; --f-2xl: 2.2rem; --f-3xl: 2.8rem; --f-price: 3rem;
  }
  .hero-grid, .two-col, .mb-inner { grid-template-columns: 1fr; text-align: center; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .bonuses-grid-custom { grid-template-columns: 1fr; max-width: 650px; }
  .nav-links, .btn-nav { display: none; }
  .p-card.pop { padding-top: 45px; }
  .ing-item { grid-template-columns: 1fr; text-align: center; padding: 55px 30px 35px; }
  .ing-num { left: 50%; transform: translateX(-50%); top: -30px; }
  .ing-img { margin: 0 auto; }
  .bonus-card { grid-template-columns: 1fr; text-align: center; }
  .bonus-card img { width: 240px; margin: 0 auto; }
  .cta-bar-content { flex-direction: column; text-align: center; gap: 15px; }
  .btn-cta-bar { width: 100%; text-align: center; }
  p, li { text-align: left; }
}

@media (max-width: 600px) {
  :root {
    --f-body: 1.05rem; --f-md: 1.15rem; --f-lg: 1.3rem;
    --f-xl: 1.6rem; --f-2xl: 1.9rem; --f-3xl: 2.2rem; --f-price: 2.6rem;
  }
  .btn-cta, .btn-cta-xl { padding: 18px 20px; font-size: var(--f-md); width: 100%; }
  .section { padding: 55px 20px; }
  .foot-disc { text-align: left; text-align-last: left; }
  .cookie-banner { flex-direction: column; bottom: 105px; text-align: center; }
  .cookie-banner p { text-align: center; }
  .eeat-box { flex-direction: column; text-align: center; }
}

/* ================= EXIT INTENT POPUP STYLES ================= */
.exit-popup-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.75);
  z-index: 100000;
  display: flex; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.exit-popup-overlay.show {
  opacity: 1; visibility: visible;
}
.exit-popup-content {
  background: #E8F1F8; /* Light blue from your screenshot */
  width: 90%; max-width: 850px;
  padding: 40px; border-radius: 6px;
  position: relative;
  text-align: center;
  box-shadow: 0 15px 50px rgba(0,0,0,0.5);
  border: 1px solid #D1E0EE;
}
.exit-popup-close {
  position: absolute; top: -18px; right: -18px;
  background: #222; color: #fff;
  border: 3px solid #fff; border-radius: 50%;
  width: 40px; height: 40px;
  font-size: 20px; line-height: 34px; cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  display: flex; justify-content: center; align-items: center;
  transition: background 0.3s;
}
.exit-popup-close:hover { background: #E31821; }

.exit-title {
  font-size: 3.8rem; font-weight: 900; color: #111;
  margin-bottom: 5px; letter-spacing: 1px;
}
.exit-subtitle {
  font-size: 1.6rem; font-weight: 700; color: #111;
  line-height: 1.3; margin-bottom: 35px;
}
.exit-body {
  display: flex; align-items: center; gap: 40px;
  margin-bottom: 35px;
}
.exit-img { flex: 0 0 35%; }
.exit-img img { width: 100%; max-width: 300px; height: auto; }

.exit-text {
  flex: 0 0 65%;
  text-align: left;
  font-size: 1.25rem; color: #666; line-height: 1.6;
}
.exit-text strong { color: #333; font-weight: 800; }

.exit-btn {
  display: inline-block;
  background: #13466D; /* Dark blue button from screenshot */
  color: #fff !important;
  font-size: 1.25rem; font-weight: 800;
  padding: 22px 30px; width: 100%; max-width: 650px;
  text-decoration: none; border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(19, 70, 109, 0.4);
}
.exit-btn:hover { background: #0B2B44; transform: translateY(-2px); }

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .exit-title { font-size: 2.2rem; }
  .exit-subtitle { font-size: 1.15rem; }
  .exit-body { flex-direction: column; gap: 15px; margin-bottom: 25px;}
  .exit-text { text-align: center; font-size: 1.1rem; }
  .exit-btn { font-size: 1.05rem; padding: 18px 15px; }
  .exit-popup-content { padding: 35px 20px 25px; }
  .exit-popup-close { top: -12px; right: -12px; width: 35px; height: 35px; font-size: 16px;}
}

/* ================= ADVANCED CONSENT BOTTOM BANNER STYLES ================= */
.consent-bottom-banner {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #ffffff;
  box-shadow: 0 -10px 25px rgba(0,0,0,0.15);
  border-top: 4px solid var(--brand-primary);
  z-index: 100000; /* Ensures it stays above the CTA bar */
  padding: 20px 25px;
  transform: translateY(110%);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: block; 
}
.consent-bottom-banner.show {
  transform: translateY(0);
}
.consent-banner-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.consent-text { flex: 1 1 100%; max-width: 450px; }
.consent-text h3 { color: var(--brand-primary); font-size: 1.1rem; margin-bottom: 5px; }
.consent-text p { font-size: 0.85rem; color: var(--text-muted); margin: 0; line-height: 1.4; }
.consent-text a { color: var(--brand-secondary); text-decoration: underline; }

.consent-options-inline { display: flex; gap: 20px; align-items: center; }
.consent-options-inline label { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; cursor: pointer; color: var(--text-main); font-weight: 600;}
.consent-options-inline input { width: 16px; height: 16px; cursor: pointer; accent-color: var(--brand-primary); }

.consent-buttons-inline { display: flex; gap: 10px; }
.consent-buttons-inline button { padding: 12px 18px; border: none; border-radius: 4px; font-weight: 800; font-size: 0.85rem; cursor: pointer; transition: 0.3s; white-space: nowrap; }
.btn-deny { background: #f0f0f0; color: #333; }
.btn-deny:hover { background: #e0e0e0; }
.btn-save { background: var(--brand-primary); color: #fff; }
.btn-save:hover { background: var(--brand-secondary); }
.btn-accept { background: var(--brand-accent); color: #fff; }
.btn-accept:hover { background: #218838; }

/* Mobile Responsiveness */
@media (max-width: 1024px) {
  .consent-banner-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .consent-text { max-width: 100%; }
  .consent-options-inline { justify-content: center; flex-wrap: wrap; gap: 15px; }
  .consent-buttons-inline { flex-direction: column; }
  .consent-bottom-banner { padding: 20px 15px; }
}