/* =============================================================
   CAREBOOK WEBSITE STYLES
   Table of Contents:
   1. CSS Variables / Root
   2. Base / Reset
   3. Utility Classes
   4. Header / Navbar
   5. Hero Section
   6. Why Carebook (3 Pillars)
   7. Process / How it works
   8. Stats / Trusted by Millions
   9. About General Diagnostics
   10. Science Behind Carebook
   11. Footer
   12. Back to top
   13. Responsive Overrides
============================================================= */

/* -------------------------------------------------------------
   1. CSS VARIABLES / ROOT
---------------------------------------------------------------*/
:root {
  /* Colors */
  --color-navy: #0e2a4d;
  --color-navy-dark: #0a1f3b;
  --color-green: #1e9e5a;
  --color-green-dark: #16803f;
  --color-green-light: #e6f5ec;
  --color-text-dark: #1c2b3a;
  --color-text-muted: #5c6b7a;
  --color-bg-light: #eef3f9;
  --color-bg-white: #ffffff;
  --color-border: #e2e8f0;

  /* Typography */
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing */
  --section-padding: 5rem 0;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;

  /* Shadow */
  --shadow-soft: 0 10px 30px rgba(14, 42, 77, 0.08);
  --shadow-card: 0 4px 20px rgba(14, 42, 77, 0.06);
}

.logo {
    width: 180px;
    height: auto;
    display: block;
}

/* -------------------------------------------------------------
   2. BASE / RESET
---------------------------------------------------------------*/
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0 0 1rem 0;
  color: var(--color-text-muted);
}

a {
  text-decoration: none;
  transition: all 0.25s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

section {
  padding: var(--section-padding);
}

/* -------------------------------------------------------------
   3. UTILITY CLASSES
---------------------------------------------------------------*/
.text-accent {
  color: var(--color-green);
}

.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  font-size: 2rem;
  font-weight: 700;
}

.heading-divider {
  width: 60px;
  height: 3px;
  background-color: var(--color-green);
  margin: 1rem auto 0;
  position: relative;
}

.heading-divider::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-green);
}

.heading-divider-start {
  margin: 1rem 0 1.25rem;
}

.heading-divider-start::before {
  left: 0;
  transform: translateY(-50%);
}

/* -------------------------------------------------------------
   4. HEADER / NAVBAR
---------------------------------------------------------------*/

.site-header {
    background: linear-gradient(180deg, #0f2a4a 0%, #2f5f8f 100%);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(15, 81, 50, 0.12);
}

/* Logo */
.logo-brand {
    display: flex;
    align-items: center;
}

.navbar-logo {
    width: 180px;
    height: auto;
    display: block;
}

/* Navigation Links */
.navbar-nav .nav-link {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #b9e6ff;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: -2px;
    height: 2px;
    background-color: var(--color-green);
    border-radius: 2px;
}

/* Mobile Toggle Button */
.navbar-toggler {
    border-color: rgba(15, 81, 50, 0.25);
}

.navbar-toggler-icon {
    filter: none;
}

/* Remove old text logo styles if using PNG logo */
.logo-text,
.logo-accent,
.logo-tagline {
    display: none;
}

/* -------------------------------------------------------------
   5. HERO SECTION
---------------------------------------------------------------*/
.hero-section {
  padding-top: 3.5rem;
  padding-bottom: 0;
  background: linear-gradient(180deg, #ffffff 0%, #e8f0f5 100%);
}

.hero-heading {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 1.25rem;
}

.hero-subtext {
  font-size: 1.15rem;
  color: var(--color-text-dark);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1.5rem;
}

.hero-divider {
  width: 70px;
  height: 3px;
  background-color: var(--color-green);
  border-radius: 2px;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-divider::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-green);
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.trust-icon {
  color: var(--color-green);
  font-size: 1.1rem;
}

.home-collection-text {
    text-align: center;
    font-size: 1.15rem;   /* Increased from 0.95rem */
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 1rem;
    position: relative;
    letter-spacing: 0.3px;
}

.home-collection-text::before,
.home-collection-text::after {
    content: "";
    display: inline-block;
    width: 50px;          /* Increased from 35px */
    height: 2px;          /* Slightly thicker */
    background-color: var(--color-green);
    vertical-align: middle;
    margin: 0 12px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  background-color: var(--color-green);
  color: #fff;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  box-shadow: var(--shadow-soft);
  line-height: 1.3;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* App Download Buttons */
.app-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: stretch;
}

.app-buttons .btn-cta {
  flex: 1;
  min-width: 260px;
  justify-content: center;
}

.app-buttons .btn-cta span {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.app-buttons .btn-cta i {
  font-size: 1.8rem;
}

.btn-cta i {
  font-size: 1.4rem;
}

.btn-cta sma  ll {
  font-weight: 400;
  font-size: 0.75rem;
  opacity: 0.9;
}

.btn-cta:hover {
  background-color: var(--color-green-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(30, 158, 90, 0.25);
}

.hero-image-wrap {
    padding: 0;
    margin: 0;
    width: 100%;  
    overflow: hidden;
    border-radius: 24px; /* Rounded container */
}

.hero-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px; /* Rounded image */
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.08));
    transition: transform 0.4s ease;
}

.hero-image:hover {
    transform: scale(1.02);
}

/* Feature strip below hero */
.feature-strip {
  background-color: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  padding: 1.75rem 1rem;
  transform: translateY(4.5rem);
}

.feature-strip-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;
  padding: 0 0.5rem;
}

.feature-strip-item i {
  font-size: 1.6rem;
  color: var(--color-green);
  background-color: var(--color-green-light);
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.feature-strip-item span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-navy);
}

/* Spacer so next section doesn't collide with the overlapping strip */
.pillars-section {
  margin-top: 5rem;
}

/* -------------------------------------------------------------
   6. WHY CAREBOOK (3 PILLARS)
---------------------------------------------------------------*/
.pillars-section {
  background-color: var(--color-bg-white);
}

.pillar-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: var(--color-green-light);
  color: var(--color-green);
  font-size: 1.9rem;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.pillar-text {
  font-size: 0.95rem;
  max-width: 280px;
  margin: 0 auto;
}

/* -------------------------------------------------------------
   7. PROCESS / HOW IT WORKS
---------------------------------------------------------------*/
.process-section {
  background-color: #f4fcf7;
}

.process-flow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.process-step {
  position: relative;
  text-align: center;
  width: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.process-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--color-green);
  box-shadow: var(--shadow-card);
  margin-bottom: 0.75rem;
}

.process-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}

.process-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.process-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}

.process-arrow {
  color: var(--color-green);
  font-size: 1.4rem;
  padding-top: 1.75rem;
}

/* -------------------------------------------------------------
   8. STATS / TRUSTED BY MILLIONS
---------------------------------------------------------------*/
.stats-section {
  background-color: var(--color-bg-white);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.stat-icon {
  font-size: 2.5rem; /* Increased icon size */
  color: var(--color-green);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  max-width: 140px;
}

/* -------------------------------------------------------------
   9. ABOUT GENERAL DIAGNOSTICS
---------------------------------------------------------------*/
.about-gd-section {
  background: linear-gradient(180deg, #f8fffa 0%, #f2fbf5 100%);
  padding: 5rem 0;
}

.about-gd-image-wrap {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.about-gd-image-wrap img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.about-gd-image-wrap:hover img {
  transform: scale(1.04);
}

.about-gd-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 1rem;
}

.about-gd-content p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-dark);
  margin-bottom: 1.75rem;
}

.btn-outline-know-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid var(--color-green);
  color: var(--color-green);
  background: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.6rem;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline-know-more:hover {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(30, 158, 90, 0.25);
}

/* -------------------------------------------------------------
   10. SCIENCE BEHIND CAREBOOK
---------------------------------------------------------------*/
.science-section {
  background-color: var(--color-bg-white);
}

.science-icon-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: var(--color-green-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.science-body-icon {
  font-size: 5rem;
  color: var(--color-green);
}

.science-badge {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--color-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: var(--shadow-card);
}

.science-badge-left {
  left: -10px;
  top: 20px;
}

.science-badge-right {
  right: -10px;
  bottom: 20px;
}

.science-content h2 {
  font-size: 1.9rem;
}

.science-subtitle {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.science-content p {
  font-size: 0.98rem;
}

/* -------------------------------------------------------------
   11. FOOTER
---------------------------------------------------------------*/
.site-footer {
  background-color: var(--color-navy-dark);
  padding-top: 4rem;
  color: #cbd5e1;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-logo-tagline {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8fa2b8;
  margin-bottom: 1.25rem;
}

.footer-mission {
  font-size: 0.9rem;
  color: #cbd5e1;
  font-weight: 500;
}

.footer-heading {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--color-green);
  padding-left: 4px;
}

.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.footer-contact i {
  color: var(--color-green);
  font-size: 1rem;
  margin-top: 3px;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.footer-social a:hover {
  background-color: var(--color-green);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 3rem;
  padding: 1.25rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #8fa2b8;
}

.footer-policy-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

.footer-policy-links a {
  color: #8fa2b8;
  font-size: 0.85rem;
}

.footer-policy-links a:hover {
  color: var(--color-green);
}

/* -------------------------------------------------------------
   12. BACK TO TOP
---------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--color-green);
  color: #fff;
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: var(--shadow-soft);
  z-index: 999;
  cursor: pointer;
  transition: all 0.25s ease;
}

.back-to-top.show {
  display: flex;
}

.back-to-top:hover {
  background-color: var(--color-green-dark);
  transform: translateY(-3px);
}

/* -------------------------------------------------------------
   13. RESPONSIVE OVERRIDES
---------------------------------------------------------------*/
@media (max-width: 991.98px) {
  .hero-heading {
    font-size: 2.4rem;
  }

  .navbar-collapse {
    background-color: #ffffff;
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 0.75rem;
    box-shadow: var(--shadow-card);
  }

  .navbar-nav .nav-link.active::after {
    display: none;
  }

  .feature-strip {
    transform: translateY(2.5rem);
  }

  .pillars-section {
    margin-top: 3.5rem;
  }

  .process-flow {
    flex-direction: column;
  }

  .process-arrow {
    transform: rotate(90deg);
    padding-top: 0;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-padding: 3.5rem 0;
  }

  .hero-heading {
    font-size: 2rem;
  }

  .hero-subtext {
    font-size: 1rem;
  }

  .feature-strip {
    transform: translateY(1.5rem);
    margin-top: -1.5rem;
  }

  .pillars-section {
    margin-top: 2.5rem;
  }

  .section-heading h2 {
    font-size: 1.6rem;
  }

  .about-gd-content h2,
  .science-content h2 {
    font-size: 1.5rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .hero-heading {
    font-size: 1.75rem;
  }

  .btn-cta {
    width: 100%;
    justify-content: center;
  }

  .feature-strip {
    padding: 1.25rem 0.5rem;
  }
}
