/* ==========================================================================
   VITALFLOW - CUSTOM STYLESHEET
   Theme: Clinical Royal Blue, Clean White & High-Contrast Yellow CTA
   Font: Poppins / Oswald
   ========================================================================== */

/* ===== GLOBAL RESETS ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* === BRAND COLORS FOR VITALFLOW (MEDICAL BLUE & YELLOW THEME) === */
  --brand-primary:   #1E5296; /* Clinical Royal Blue matching pricing tabs */
  --brand-secondary: #2B72CE; /* Bright Accent Blue for hovers & highlights */
  --brand-accent:    #FFD800; /* High-converting Yellow matching Buy Now buttons */
  --brand-accent-hv: #F2C900; /* Slightly deeper gold-yellow on hover */
  --brand-green:     #28A745; /* Verification Green */

  /* Backgrounds & Text */
  --bg-main:         #FFFFFF; /* Crisp White Background */
  --bg-light:        #F3F7FC; /* Soft Ice-Blue Gray for alternating sections */
  --bg-dark:         #0F1E36; /* Deep Navy Blue for Footer */
  --card-bg:         #FFFFFF; /* White for cards */
  --text-main:       #111827; /* Deep Charcoal-Black for crisp readability */
  --text-muted:      #4B5563; /* Balanced Slate Gray for subtext */
  --text-dark:       #FFFFFF; /* White text */
  --border-color:    #D8E2EF; /* Light Blue-Gray border */

  /* Shadows */
  --shadow-sm:       0 2px 8px rgba(30, 82, 150, 0.06);
  --shadow-md:       0 6px 22px rgba(30, 82, 150, 0.10);
  --shadow-lg:       0 14px 35px rgba(30, 82, 150, 0.16);

  /* === OPTIMIZED TYPOGRAPHY SCALES === */
  --f-xs:    0.95rem;
  --f-sm:    1.1rem;
  --f-body:  1.15rem;
  --f-md:    1.35rem;
  --f-lg:    1.55rem;
  --f-xl:    2.0rem;
  --f-2xl:   2.5rem;
  --f-3xl:   3.0rem;
  --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(--bg-main);
  overflow-x: hidden;
}

/* 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); }
strong { font-weight: 800; color: var(--brand-primary); }

/* ===== 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; }

/* ===== GENERAL CTA BUTTONS ===== */
.btn-cta {
  display: inline-block;
  background: linear-gradient(180deg, #ffea00 0%, #ffd000 100%);
  color: #000000 !important;
  padding: 18px 42px;
  border-radius: 50px;
  border: 2px solid #e0b800;
  font-weight: 800;
  font-size: var(--f-lg);
  margin-top: 22px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.btn-cta:hover {
  background: linear-gradient(180deg, #ffd000 0%, #f0be00 100%);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}
.btn-cta-xl {
  font-size: 1.35rem;
  padding: 18px 48px;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--bg-main);
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  border-bottom: 1px solid var(--border-color);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; padding: 0 24px;
}
.nav-logo {
  font-size: 2rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: 1px;
}
.nav-logo span { color: var(--brand-secondary); }
.nav-links {
  display: flex;
  gap: 32px;
  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(--text-dark) !important;
  padding: 11px 28px;
  border-radius: 50px;
  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(--brand-primary); border-radius: 2px; }
.mob-menu { display: none; flex-direction: column; gap: 16px; padding: 20px 24px; background: var(--bg-main); 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 ===== */
.hero {
  padding: 80px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #e8f1fc 100%);
  border-bottom: 1px solid var(--border-color);
}
.hero-grid {
  max-width: 1150px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.25fr;
  gap: 50px; align-items: center;
}
.hero-content h1 { color: var(--text-main); margin-bottom: 20px; letter-spacing: -0.5px; }
.hero-content h1 span { color: var(--brand-primary); }
.hero-content p { color: var(--text-muted); margin-bottom: 20px; font-size: 1.25rem; text-align: left; font-weight: 500; }
.hero-img img { width: 100%; max-width: 420px; margin: 0 auto; display: block; filter: drop-shadow(0px 15px 30px rgba(30, 82, 150, 0.18)); }

.trust-stars { margin-bottom: 15px; }
.hero-divider { border: none; border-top: 2px solid var(--border-color); margin: 22px 0; }
.sale-price { font-size: var(--f-xl); font-weight: 900; color: var(--brand-primary); margin: 8px 0; }
.hurry-badge {
  display: inline-block;
  background: #EBF4FF;
  color: #1E5296;
  padding: 8px 20px;
  font-size: var(--f-sm);
  font-weight: 800;
  border-radius: 6px;
  margin-top: 8px;
  margin-bottom: 10px;
  border: 1px solid #B8D4F8;
}

/* ===== 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: 14px;
  background: var(--card-bg);
  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; color: var(--text-muted); margin-bottom: 0; }

/* ===== TWO COLUMNS (ABOUT & MADE IN USA) ===== */
.two-col { max-width: 1150px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.35fr; 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: 22px; }

/* ===== INGREDIENTS ===== */
.ing-list { max-width: 950px; margin: 0 auto; list-style: none; }
.ing-item {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 22px;
  align-items: center;
  position: relative;
  padding: 24px 30px 24px 80px;
  margin-bottom: 22px;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 14px;
  transition: all .3s;
}
.ing-item:hover { box-shadow: var(--shadow-md); border-color: var(--brand-secondary); }
.ing-num {
  width: 52px; height: 52px;
  background: var(--brand-primary);
  color: var(--text-dark);
  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: 110px; height: 110px; object-fit: cover; border-radius: 12px; border: 2px solid var(--border-color); }
.ing-content h4 { color: var(--brand-primary); margin-bottom: 8px; font-size: 1.45rem; }
.ing-content p { margin-bottom: 0; }

/* ===== SUPPLEMENT FACTS LABEL BOX ===== */
.label-box {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 16px;
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-md);
  margin-top: 25px;
}
.label-box img {
  width: 100%;
  max-width: 650px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ==========================================================================
   CUSTOM PRICING CARDS (EXACT MATCH TO PROVIDED VITALFLOW SCREENSHOT)
   ========================================================================== */
.vf-pricing-grid {
  max-width: 1120px;
  margin: 45px auto 25px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: stretch;
}

/* Outer wrapper creates the top & bottom protruding rounded tabs */
.vf-card-wrapper {
  position: relative;
  padding: 18px 0;
  z-index: 1;
}
.vf-card-wrapper::before,
.vf-card-wrapper::after {
  content: "";
  position: absolute;
  left: 11%;
  right: 11%;
  height: 36px;
  border-radius: 18px;
  z-index: -1;
}
.vf-card-wrapper::before { top: 0; }
.vf-card-wrapper::after  { bottom: 0; }

/* Grey top/bottom tab theme (1 Bottle) */
.vf-theme-grey::before,
.vf-theme-grey::after {
  background: #E2E4E8;
}
.vf-theme-grey .vf-card {
  border: 1.5px solid #D5D8DC;
  background: linear-gradient(180deg, #FFFFFF 70%, #F4F5F7 100%);
}

/* Royal Blue top/bottom tab theme (6 Bottles & 3 Bottles) */
.vf-theme-blue::before,
.vf-theme-blue::after {
  background: #23559C;
}
.vf-theme-blue .vf-card {
  border: 1.5px solid #3A6DB8;
  background: linear-gradient(180deg, #FFFFFF 68%, #EBF2FC 100%);
}

/* Main White Card Body */
.vf-card {
  border-radius: 20px;
  padding: 32px 22px 28px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vf-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(30, 82, 150, 0.16);
}

.vf-title {
  font-family: 'Poppins', sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.vf-supply {
  font-size: 1.15rem;
  font-weight: 400;
  color: #333333;
  margin-bottom: 22px;
}

.vf-img-wrap {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  width: 100%;
}
.vf-img-wrap img {
  max-height: 210px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.vf-img-wrap img:hover {
  transform: scale(1.04);
}

/* $69 /bottle row */
.vf-price-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  color: #000000;
  margin-bottom: 8px;
}
.vf-price-amount {
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}
.vf-price-unit {
  font-size: 1.25rem;
  font-weight: 500;
  margin-left: 3px;
}

/* Horizontal line under price */
.vf-divider {
  width: 78%;
  border: none;
  border-top: 1.5px solid #222222;
  margin: 6px auto 12px;
}

/* Total: $99 $69 */
.vf-total-row {
  font-size: 1.35rem;
  color: #000000;
  margin-bottom: 22px;
  font-weight: 500;
}
.vf-strike {
  text-decoration: line-through;
  color: #333333;
  margin: 0 4px;
}
.vf-total-row strong {
  color: #000000;
  font-weight: 800;
}

/* Yellow Pill Buy Now Button with Dark Circle Cart Icon */
.vf-buy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  background: linear-gradient(180deg, #FFEA00 0%, #FFD200 100%);
  border: 2px solid #D9B300;
  border-radius: 50px;
  padding: 7px 32px 7px 9px;
  width: 86%;
  max-width: 260px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
  transition: all 0.2s ease;
  margin-bottom: 18px;
}
.vf-buy-btn:hover {
  background: linear-gradient(180deg, #FFD200 0%, #F0C000 100%);
  transform: scale(1.03);
}
.vf-cart-circle {
  width: 42px;
  height: 42px;
  background: #111111;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.vf-btn-text {
  flex-grow: 1;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: #000000;
  padding-right: 10px;
}

.vf-ship-note {
  font-size: 0.95rem;
  color: #222222;
  margin-bottom: 16px;
  font-weight: 500;
}

.vf-cards-img img {
  max-width: 190px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ===== GUARANTEE ===== */
.mb-inner { max-width: 1050px; margin: 0 auto; display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: center; }
.mb-inner img { width: 100%; max-width: 260px; margin: 0 auto; display: block; filter: drop-shadow(0 6px 18px rgba(30,82,150,0.15)); }
.mb-inner h3 { color: var(--brand-primary); margin-bottom: 18px; font-size: var(--f-xl); }

/* ===== FAQ ===== */
.faq-list { max-width: 950px; margin: 0 auto; }
.faq-item { background: var(--card-bg); 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: 22px 28px; text-align: left; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1.25rem; font-weight: 800; color: var(--text-main); font-family: inherit; }
.faq-arrow { color: var(--brand-primary); transition: transform .3s; font-size: 1.1rem; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-ans { max-height: 0; overflow: hidden; transition: all .35s ease; padding: 0 28px; color: var(--text-muted); }
.faq-item.open .faq-ans { max-height: 800px; padding: 0 28px 24px; }

/* ===== SCIENTIFIC REFERENCES ===== */
.ref-list {
  margin-top: 25px;
  padding-left: 22px;
  color: var(--text-muted);
}
.ref-list li {
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 12px;
  text-align: left;
  word-break: break-word;
}
.ref-list a {
  color: var(--brand-primary);
  text-decoration: underline;
}

/* ===== FOOTER ===== */
footer {
  background: var(--bg-dark);
  color: #CBD5E1;
  padding: 55px 24px 40px;
  text-align: center;
  border-top: 1px solid var(--border-color);
}
.foot-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 35px;
  flex-wrap: wrap;
}
.foot-links a {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
}
.foot-links a:hover { color: var(--brand-accent); }
.foot-disc {
  max-width: 1080px;
  margin: 0 auto;
  font-size: 0.88rem;
  line-height: 1.7;
}
.foot-disc p {
  font-size: 0.88rem;
  margin-bottom: 14px;
  text-align: justify;
  text-align-last: center;
  color: #94A3B8;
}
.foot-copy {
  font-size: 0.95rem;
  color: #E2E8F0;
  font-weight: 600;
  margin-top: 28px;
}

/* ===== RESPONSIVE DESIGN (MOBILE & TABLET) ===== */
@media (max-width: 1024px) {
  :root {
    --f-body: 1.1rem; --f-md: 1.25rem; --f-lg: 1.4rem;
    --f-xl: 1.75rem; --f-2xl: 2.1rem; --f-3xl: 2.5rem;
  }
  .hero-grid, .two-col, .mb-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-content p { text-align: center; }
  .vf-pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 35px auto; gap: 35px; }
  .badges-grid { grid-template-columns: repeat(2, 1fr); max-width: 650px; }
  .nav-links, .btn-nav { display: none; }
  .hamburger { display: flex; }
  .ing-item { grid-template-columns: 1fr; text-align: center; padding: 48px 24px 28px; }
  .ing-num { left: 50%; transform: translateX(-50%); top: -24px; }
  .ing-img { margin: 0 auto; }
  p, li { text-align: left; }
}

@media (max-width: 600px) {
  :root {
    --f-body: 1.02rem; --f-md: 1.12rem; --f-lg: 1.25rem;
    --f-xl: 1.5rem; --f-2xl: 1.8rem; --f-3xl: 2.1rem;
  }
  .badges-grid { grid-template-columns: 1fr; }
  .btn-cta, .btn-cta-xl { padding: 16px 20px; font-size: 1.15rem; width: 100%; }
  .section { padding: 50px 18px; }
  .foot-disc p { text-align: left; text-align-last: left; }
}

/* ==========================================================================
   LEGAL & POLICY PAGES STYLING (Terms, Privacy, Disclaimer, Shipping, Refund)
   ========================================================================== */
.simple-header {
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-color);
  padding: 18px 24px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.simple-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.simple-header .nav-logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--text-main);
}
.simple-header .nav-logo span { color: var(--brand-secondary); }
.simple-header .back-home {
  font-weight: 700;
  font-size: 1rem;
  color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
  padding: 8px 18px;
  border-radius: 50px;
  transition: all 0.2s;
}
.simple-header .back-home:hover {
  background: var(--brand-primary);
  color: #FFFFFF;
}

.legal-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 55px 24px 80px;
}
.legal-wrap h1 {
  font-size: var(--f-2xl);
  color: var(--brand-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
}
.legal-updated {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 30px;
  font-style: italic;
}
.legal-wrap h2 {
  font-size: 1.45rem;
  color: var(--brand-primary);
  margin-top: 36px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.legal-wrap h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-top: 24px;
  margin-bottom: 10px;
}
.legal-wrap p, .legal-wrap li {
  text-align: left;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-main);
  margin-bottom: 15px;
}
.legal-wrap ul, .legal-wrap ol {
  margin: 0 0 20px 24px;
}
.legal-wrap a {
  color: var(--brand-primary);
  text-decoration: underline;
  font-weight: 600;
}

/* Tables for Shipping & Privacy Data */
.policy-table-wrap {
  overflow-x: auto;
  margin: 25px 0 35px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}
.policy-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  text-align: left;
}
.policy-table th {
  background: var(--brand-primary);
  color: #FFFFFF;
  font-weight: 700;
  padding: 14px 18px;
  font-size: 1rem;
}
.policy-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.98rem;
  color: var(--text-main);
  vertical-align: top;
}
.policy-table tr:last-child td { border-bottom: none; }
.policy-table tr:nth-child(even) { background: var(--bg-light); }

.contact-card {
  background: var(--bg-light);
  border: 2px solid var(--border-color);
  border-radius: 14px;
  padding: 30px;
  margin-top: 25px;
}

@media (max-width: 600px) {
  .legal-wrap { padding: 35px 18px 55px; }
  .policy-table th, .policy-table td { padding: 10px 12px; font-size: 0.9rem; }
}