/* ==========================================================================
   VIVALIS - ADVANCED STYLESHEET
   Theme: Vivalis Blue (#1E3F88), Clean White, and Trust Green
   ========================================================================== */

/* ===== GLOBAL RESETS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* === BRAND COLORS FOR VIVALIS === */
  --brand-primary:   #1E3F88; /* Deep Vivalis Blue */
  --brand-secondary: #2A5A9A; /* Lighter Blue for Hovers/Accents */
  --brand-accent:    #1E3F88; /* CTA Buttons (Dark Blue matching reference image) */
  --brand-yellow:    #FFCC00; /* Yellow accent for Stars */
  --brand-green:     #059669; /* Verification / Checkmark Green */
  --white:           #ffffff;
  --bg-light:        #F4F7FB; /* Very Soft Blue/Gray Background for contrast */
  --bg-dark:         #0A1931; /* Deep Dark Blue for Footer */
  --text-main:       #1A1A1A; /* Strong Dark Grey for readability */
  --text-muted:      #595959; /* Softer text for descriptions */
  --border-color:    #E0E6F0; /* Light blue-ish gray for borders */
  
  /* Shadows */
  --shadow-sm:       0 2px 8px rgba(30, 63, 136, 0.08);
  --shadow-md:       0 4px 20px rgba(30, 63, 136, 0.15);
  --shadow-lg:       0 12px 35px rgba(30, 63, 136, 0.22);

  /* === 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.2rem;
  --f-price: 3.6rem;
  --lh-body: 1.8;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  font-size: var(--f-body);
  line-height: var(--lh-body);
  color: var(--text-main);
  background: var(--white);
  overflow-x: hidden;
  padding-bottom: 100px; 
}

/* Typography Basics */
h1 { font-family: 'Oswald', sans-serif; font-size: var(--f-3xl); font-weight: 700; line-height: 1.2; text-transform: uppercase; }
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: 18px; text-align: justify; text-align-last: left; }
a { text-decoration: none; color: var(--brand-secondary); }

/* ===== UTILITIES ===== */
.section    { padding: 80px 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(--text-main); margin-bottom: 15px; }
.sec-sub    { text-align: center; font-size: var(--f-md); color: var(--text-muted); margin-bottom: 50px; max-width: 900px; margin-left: auto; margin-right: auto; }
.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: 800; 
  font-size: var(--f-lg);
  margin-top: 25px;
  box-shadow: 0 6px 20px rgba(30, 63, 136, 0.4);
  transition: all 0.3s ease;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-cta:hover { 
  background: var(--brand-secondary); 
  transform: translateY(-3px); 
  box-shadow: 0 8px 25px rgba(30, 63, 136, 0.6); 
}
.btn-cta-xl { 
  font-size: 1.4rem;  
  padding: 18px 50px;
}

/* ===== 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: 72px; padding: 0 24px;
}
.logo-text { font-size: 1.8rem; font-weight: 900; color: var(--brand-primary); font-family: 'Oswald', sans-serif;}
.nav-links { 
  display: flex; 
  gap: 35px; 
  list-style: none;
  margin-top: 15px; 
}
.nav-links a { color: var(--text-main); font-weight: 700; font-size: var(--f-sm); transition: color .2s; }
.nav-links a:hover { color: var(--brand-primary); }
.btn-nav {
  background: var(--brand-primary); color: var(--white) !important;
  padding: 12px 30px; border-radius: 6px;
  font-weight: 800; font-size: var(--f-sm);
  transition: all .2s;
}
.btn-nav:hover { background: var(--brand-secondary); }
.hamburger { display: none; flex-direction: column; gap: 6px; background: none; border: none; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 30px; height: 3px; background: var(--text-main); border-radius: 2px; }
.mob-menu { display: none; flex-direction: column; gap: 18px; padding: 20px 24px; background: var(--white); border-top: 1px solid var(--border-color); }
.mob-menu.open { display: flex; }
.mob-menu a { color: var(--text-main); font-weight: 700; font-size: var(--f-md); }

/* ===== HERO SECTION (MATCHING REFERENCE IMAGE) ===== */
.hero { 
  padding: 80px 24px; 
  background: repeating-linear-gradient(
    45deg,
    #ffffff,
    #ffffff 2px,
    #f8f9fc 2px,
    #f8f9fc 4px
  ); /* Creates a subtle pattern matching the reference */
  border-bottom: 1px solid var(--border-color);
}
.hero-grid {
  max-width: 1150px; margin: 0 auto;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 50px; align-items: center;
}
.hero-content h1 { color: #000; margin-bottom: 20px; letter-spacing: -1px;}
.hero-content h1 span { color: var(--brand-primary); }
.hero-content p { color: var(--text-muted); margin-bottom: 20px; font-size: var(--f-lg); text-align: left; font-weight: 500;}
.hero-img img { width: 100%; max-width: 450px; margin: 0 auto; display: block; filter: drop-shadow(0px 15px 25px rgba(0,0,0,0.1)); }
/* ===== ADDITIONAL HERO CSS (Pricing, Stars, Urgency) ===== */
.trust-stars { 
    font-size: 1.4rem; 
    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 solid 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: var(--brand-yellow); 
    color: #000; 
    padding: 8px 22px; 
    font-size: var(--f-sm); 
    font-weight: 800; 
    border-radius: 5px; 
    margin-top: 10px; 
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.3);
}
/* ===== BENEFITS BADGES ===== */
.badges-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px;
}
.badge-card { text-align: center; padding: 35px 20px; border: 2px solid var(--border-color); border-radius: 12px; background: var(--white); transition: all .3s; }
.badge-card:hover { border-color: var(--brand-secondary); box-shadow: var(--shadow-md); transform: translateY(-5px); }
.badge-card img { width: 85px; height: 85px; object-fit: contain; margin: 0 auto 15px; display: block; }
.badge-card h4 { color: var(--brand-primary); margin-bottom: 12px; }
.badge-card p { font-size: 1.05rem; text-align: center; text-align-last: center;}

/* ===== TWO COLUMNS (ABOUT) ===== */
.two-col { max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: center; }
.two-col img { width: 100%; border-radius: 15px; box-shadow: var(--shadow-md); border: 2px solid var(--border-color); }
.two-col h2 { color: var(--brand-primary); margin-bottom: 25px; }

/* ===== INGREDIENTS ===== */
.ing-list { max-width: 950px; margin: 0 auto; list-style: none; }
.ing-item { padding: 35px 35px 35px 100px; margin-bottom: 25px; background: var(--white); border-radius: 15px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-color); position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 35px; align-items: center; transition: all 0.3s ease; }
.ing-item:hover { box-shadow: var(--shadow-md); border-color: var(--brand-secondary); }
.ing-num { width: 55px; height: 55px; 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: -15px; top: -15px; box-shadow: var(--shadow-sm); }
.ing-img { width: 180px; height: 180px; object-fit: cover; border-radius: 12px; border: 3px solid var(--bg-light); }
.ing-content h4 { color: var(--brand-secondary); margin-bottom: 12px; font-size: var(--f-xl); }

/* ===== COMPARISON TABLE ===== */
.comparison-table-wrapper { width: 100%; overflow-x: auto; margin-top: 25px; }
.ranking-table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); min-width: 700px; }
.ranking-table th { background: var(--brand-primary); color: var(--white); padding: 22px; text-align: left; font-size: var(--f-lg); border-right: 1px solid rgba(255,255,255,0.1); }
.ranking-table th:last-child { border-right: none; }
.ranking-table td { padding: 20px; border-bottom: 1px solid var(--border-color); font-size: var(--f-body); color: var(--text-main); }
.ranking-table tr:last-child td { border-bottom: none; }
.ranking-table tr:hover { background-color: var(--bg-light); transition: background 0.3s ease; }
.text-green { color: var(--brand-green); font-weight: 700; }
.text-red { color: #E31821; font-weight: 700; }

/* ===== TESTIMONIALS ===== */
.testi-grid { max-width: 1000px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.testi-card { background: var(--white); border-radius: 15px; padding: 35px 35px; text-align: center; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.testi-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin: 0 auto 15px; border: 4px solid var(--brand-secondary); }
.stars { font-size: 1.8rem; color: var(--brand-yellow); margin-bottom: 10px; }
.verified { color: var(--brand-green); font-weight: 800; font-size: var(--f-sm); margin-bottom: 15px; }
.testi-text { font-style: italic; color: var(--text-muted); margin-bottom: 20px; text-align: center; text-align-last: center; }
.testi-name { font-weight: 900; color: var(--brand-primary); font-size: 1.1rem; }

/* ===== PRICING TABLES (CENTER ALIGNED) ===== */
.pricing-grid { 
    max-width: 1100px; 
    margin: 0 auto; 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
    align-items: end; 
    text-align: center; /* Centers all content inside grid */
}
.p-card { 
    background: var(--white); 
    border-radius: 15px; 
    padding: 40px 25px; 
    border: 2px solid var(--border-color); 
    position: relative; 
    transition: all .3s; 
    display: flex; 
    flex-direction: column; 
    align-items: center; /* Perfect center alignment */
    text-align: center; 
}
.p-card:hover { 
    transform: translateY(-8px); 
    box-shadow: var(--shadow-lg); 
}
.p-card.pop { 
    border-color: var(--brand-secondary); 
    border-width: 3px; 
    box-shadow: var(--shadow-md); 
    padding-top: 50px; 
    background: #F8F9FC; 
}
.pop-badge { 
    position: absolute; 
    top: -18px; 
    left: 50%; 
    transform: translateX(-50%); 
    background: var(--brand-secondary); 
    color: var(--white); 
    font-weight: 900; 
    font-size: 1rem; 
    padding: 8px 25px; 
    border-radius: 25px; 
    white-space: nowrap; 
    box-shadow: 0 4px 10px rgba(42, 90, 154, 0.4); 
}
.p-card img { 
    width: 100%; 
    max-width: 250px; 
    margin: 0 auto 20px; 
    display: block; 
    transition: transform .3s; 
}
.p-card img:hover { 
    transform: scale(1.05); 
}
.supply { 
    font-size: var(--f-lg); 
    font-weight: 900; 
    margin-bottom: 10px; 
    color: var(--text-main); 
}
.price-big { 
    font-size: var(--f-price); 
    font-weight: 900; 
    color: var(--brand-primary); 
    line-height: 1; 
}
.per-btl { 
    color: var(--text-muted); 
    margin-bottom: 15px; 
    font-weight: 600; 
}
.savings { 
    font-size: var(--f-md); 
    font-weight: 700; 
    color: var(--text-main); 
    margin-bottom: 10px; 
}
/* ===== GUARANTEE ===== */
.mb-inner { max-width: 1050px; margin: 0 auto; display: grid; grid-template-columns: 280px 1fr; gap: 50px; align-items: center; }
.mb-inner img { width: 100%; max-width: 280px; }
.mb-inner h3 { color: var(--brand-primary); margin-bottom: 20px; font-size: var(--f-xl);}

/* ===== FAQ ===== */
.faq-list { max-width: 950px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: 12px; margin-bottom: 15px; border: 1px solid var(--border-color); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; background: none; border: none; padding: 25px 30px; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: var(--f-lg); font-weight: 800; color: var(--brand-primary); font-family: inherit; }
.faq-arrow { color: var(--brand-secondary); transition: transform .3s; font-size: 1.2rem; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-ans { max-height: 0; overflow: hidden; transition: all .4s ease; padding: 0 30px; }
.faq-item.open .faq-ans { max-height: 800px; padding: 0 30px 25px; }


/* ===== FOOTER ===== */
footer { background: var(--bg-dark); color: #E0E6F0; padding: 70px 24px 40px; text-align: center; }
.foot-disc { max-width: 1100px; margin: 0 auto; font-size: 0.95rem; line-height: 1.7; text-align: justify; text-align-last: center; }
.foot-disc p { margin-bottom: 12px; }
.foot-links { display: flex; justify-content: center; gap: 30px; margin: 40px 0 25px; flex-wrap: wrap; }
.foot-links a { color: var(--brand-secondary); font-weight: 700; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; }
.foot-links a:hover { color: var(--white); }
.foot-copy { font-size: 0.9rem; opacity: 0.7; margin-top: 15px;}

/* ===== 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 { grid-template-columns: 1fr; text-align: center;}
  .hero-content p { text-align: center; }
  .hero-grid, .two-col, .mb-inner, .testi-grid { grid-template-columns: 1fr; text-align: center; }
  .pricing-grid, .badges-grid { grid-template-columns: 1fr; max-width: 550px; margin: 0 auto; }
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .p-card.pop { padding-top: 40px; }
  .ing-item { grid-template-columns: 1fr; text-align: center; padding: 50px 25px 30px; }
  .ing-num { left: 50%; transform: translateX(-50%); top: -25px; }
  .ing-img { margin: 0 auto; }
  .cta-bar-content { flex-direction: column; text-align: center; gap: 12px; }
  .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.5rem;
  }
  .badges-grid { grid-template-columns: 1fr; }
  .btn-cta, .btn-cta-xl { padding: 18px 20px; font-size: var(--f-md); width: 100%; }
  .section { padding: 50px 20px; }
  .foot-disc { text-align: left; text-align-last: left; }
}
