/* ============================================================
   NAKUL PATHOLOGY LAB — style.css
   Global styles: variables, typography, header, hero,
   sections, footer. Component pieces live in components.css
   and breakpoint tweaks in responsive.css.
   ============================================================ */

/* -------------------- 1. Design Tokens -------------------- */
:root {
  /* Brand */
  --primary: #0B6BCB;
  --primary-dark: #084E96;
  --primary-light: #E7F1FB;
  --secondary: #12A79D;
  --secondary-dark: #0E857D;

  /* Text & surfaces */
  --heading: #0F2440;
  --text: #1F2E44;
  --text-light: #5B6B82;
  --background: #FFFFFF;
  --surface: #F5F8FC;
  --surface-2: #EDF3FA;
  --border: #E3EAF2;

  /* Feedback */
  --success: #16A34A;
  --success-light: #E7F6EC;
  --danger: #DC2626;
  --danger-light: #FDECEC;
  --warning: #D97706;

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 36, 64, .06);
  --shadow: 0 4px 16px rgba(15, 36, 64, .08);
  --shadow-md: 0 10px 30px rgba(15, 36, 64, .10);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  /* Layout */
  --container: 1200px;
  --header-h: 76px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* -------------------- 2. Reset & Base -------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  overflow-x: hidden;
}

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

a { color: var(--primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary-dark); }

ul { margin: 0; padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid rgba(11, 107, 203, .35); outline-offset: 2px; }

/* -------------------- 3. Typography -------------------- */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  color: var(--heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
p  { margin: 0 0 1rem; }

.text-muted { color: var(--text-light); }
.text-center { text-align: center; }

/* -------------------- 4. Layout helpers -------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}
.section--surface { background: var(--surface); }

.section-head {
  max-width: 720px;
  margin: 0 auto 2.75rem;
  text-align: center;
}
.section-head .eyebrow {
  display: inline-block;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--secondary-dark);
  background: var(--surface-2);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 1rem;
}
.section-head h2 { margin-bottom: .5rem; }
.section-head h2 span { color: var(--primary); }
.section-head p { color: var(--text-light); margin-bottom: 0; }

.section-head--left { margin-inline: 0; text-align: left; }

/* Grid utilities */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* -------------------- 5. Header / Navigation -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
/* The header carries more elements than a text column, so it gets a slightly
   wider container than page content — this gives the full nav room to breathe
   and is the root-cause fix for items overlapping the logo / call block. */
.site-header .container { max-width: 1280px; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--heading);
  flex-shrink: 0;
}
.brand:hover { color: var(--heading); }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 1.35rem;
  flex-shrink: 0;
}
/* Real logo emblem (images/logo/logo.png) */
.brand-logo {
  width: 46px; height: 46px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .name { font-weight: 800; font-size: 1.02rem; letter-spacing: -.02em; }
.brand-text .tag { font-size: .72rem; color: var(--text-light); font-weight: 600; }

/* Header "Call Now" quick action */
.nav-call {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .35rem .7rem; border-radius: 10px;
  color: var(--heading);
}
.nav-call:hover { color: var(--primary); background: var(--surface); }
.nav-call i {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--primary-light); color: var(--primary); font-size: 1rem;
}
.nav-call span { display: flex; flex-direction: column; line-height: 1.15; }
.nav-call small { font-size: .68rem; color: var(--text-light); font-weight: 600; }
.nav-call b { font-size: .9rem; font-weight: 700; color: var(--heading); }

.nav-menu {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: .1rem;
  min-width: 0;
}
.nav-menu a {
  display: block;
  padding: .5rem .55rem;
  border-radius: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  white-space: nowrap;
}
.nav-menu a:hover { background: var(--surface); color: var(--primary); }
.nav-menu a.active { color: var(--primary); background: var(--primary-light); }

/* Book / Call actions shown only inside the mobile drawer */
.nav-menu-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  font-size: 1.4rem;
  color: var(--heading);
  align-items: center;
  justify-content: center;
}

/* -------------------- 6. Hero -------------------- */
.hero {
  position: relative;
  padding: clamp(3rem, 6vw, 5.5rem) 0;
  background:
    radial-gradient(1200px 400px at 80% -10%, rgba(18, 167, 157, .10), transparent 60%),
    linear-gradient(180deg, var(--primary-light), #fff 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--secondary-dark);
  font-weight: 600;
  font-size: .82rem;
  padding: 6px 14px;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.25rem;
}
.hero-badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .18);
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 .hl { color: var(--primary); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 34rem;
  margin-bottom: 1.75rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
}
.hero-float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: .7rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: .7rem 1rem;
  box-shadow: var(--shadow-md);
}
.hero-float .ico {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary-light); color: var(--primary);
  font-size: 1.15rem;
}
.hero-float .num { font-weight: 800; color: var(--heading); font-size: 1rem; line-height: 1; }
.hero-float .lbl { font-size: .74rem; color: var(--text-light); }
.hero-float--tl { top: 12%; left: -12px; }
.hero-float--br { bottom: 10%; right: -12px; }

/* Trust strip */
.trust-strip { background: var(--heading); color: #fff; }
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  gap: 1.5rem 1rem;
  padding-block: 1.75rem;
}
.trust-item { display: flex; align-items: center; gap: .7rem; }
.trust-item i { font-size: 1.5rem; color: var(--secondary); }
.trust-item .num { font-weight: 800; font-size: 1.25rem; line-height: 1; }
.trust-item .lbl { font-size: .82rem; color: rgba(255, 255, 255, .7); }

/* -------------------- 7. Home sample collection band -------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.split-visual {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: var(--shadow-md);
}
.split-visual i { font-size: 6rem; opacity: .9; }

/* Photo variant of the split visual (uses a real image) */
.split-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.split-photo img { width: 100%; height: 100%; object-fit: cover; }

.feature-row { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.feature-row .ico {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--primary-light); color: var(--primary);
  font-size: 1.3rem;
}
.feature-row h6 { margin: 0 0 .2rem; font-size: 1rem; }
.feature-row p { margin: 0; color: var(--text-light); font-size: .92rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { text-align: center; position: relative; }
.step .step-num {
  width: 54px; height: 54px; margin: 0 auto .9rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--primary-light); color: var(--primary);
  font-weight: 800; font-size: 1.2rem;
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
}
.step h6 { margin-bottom: .25rem; }
.step p { color: var(--text-light); font-size: .9rem; margin: 0; }

/* -------------------- 8. FAQ -------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: .8rem; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: none; border: none; text-align: left;
  font-weight: 700; color: var(--heading); font-size: 1rem;
}
.faq-q i { transition: transform .25s ease; color: var(--primary); flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 1.25rem 1.2rem; margin: 0; color: var(--text-light); }

/* -------------------- 9. CTA band -------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-lg);
  color: #fff;
  padding: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 40rem; margin: 0 auto 1.75rem; }

/* -------------------- 10. Page hero (inner pages) -------------------- */
.page-hero {
  background: linear-gradient(180deg, var(--primary-light), #fff);
  border-bottom: 1px solid var(--border);
  padding: clamp(2.5rem, 5vw, 3.75rem) 0;
}
.page-hero .breadcrumb { font-size: .85rem; color: var(--text-light); margin-bottom: .5rem; }
.page-hero .breadcrumb a { color: var(--text-light); }
.page-hero .breadcrumb a:hover { color: var(--primary); }
.page-hero h1 { margin-bottom: .4rem; }
.page-hero p { color: var(--text-light); margin: 0; max-width: 40rem; }

/* Premium image hero (About, Home Collection) with dark/blue overlay */
.media-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(320px, 34vw, 450px);
  padding: clamp(2.5rem, 6vw, 3.75rem) 0;
  background-color: var(--heading);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.media-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg,
    rgba(8, 30, 58, .88) 0%,
    rgba(11, 61, 120, .78) 45%,
    rgba(11, 107, 203, .55) 100%);
}
.media-hero .container { position: relative; z-index: 1; }
.media-hero-content { max-width: 640px; color: #fff; }
.media-hero .breadcrumb { font-size: .85rem; color: rgba(255, 255, 255, .8); margin-bottom: .9rem; }
.media-hero .breadcrumb a { color: rgba(255, 255, 255, .8); }
.media-hero .breadcrumb a:hover { color: #fff; }
.media-hero .hero-badge {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(255, 255, 255, .28);
  color: #fff;
  backdrop-filter: blur(4px);
  margin-bottom: 1.1rem;
}
.media-hero h1 { color: #fff; margin-bottom: .75rem; }
.media-hero p { color: rgba(255, 255, 255, .9); font-size: 1.08rem; max-width: 42rem; margin-bottom: 1.6rem; }
.media-hero .hero-cta { gap: .8rem; }

/* -------------------- 11. Footer -------------------- */
.site-footer { background: var(--heading); color: rgba(255, 255, 255, .72); }
.footer-main {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: clamp(3rem, 5vw, 4rem) 0 2.5rem;
}
.site-footer .brand-logo { width: 54px; height: 54px; background: #fff; padding: 4px; border-radius: 12px; }
.site-footer .brand-text .name { color: #fff; }
.site-footer .brand-text .tag { color: var(--secondary); }
.footer-about p { margin: 1rem 0; font-size: .92rem; }
.footer-col h6 {
  color: #fff; font-size: .8rem; letter-spacing: .06em;
  text-transform: uppercase; margin-bottom: 1.1rem;
}
.footer-col ul li { margin-bottom: .6rem; }
.footer-col a { color: rgba(255, 255, 255, .72); font-size: .92rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: .6rem; margin-bottom: .8rem; font-size: .92rem; }
.footer-contact i { color: var(--secondary); margin-top: .2rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.05rem;
}
.footer-social a:hover { background: var(--primary); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.25rem 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  font-size: .85rem;
}
.footer-credit { color: rgba(255, 255, 255, .55); font-size: .82rem; }
.footer-credit a {
  color: rgba(255, 255, 255, .8);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
  transition: color .2s ease, border-color .2s ease;
}
.footer-credit a:hover { color: var(--secondary); border-color: var(--secondary); }

/* -------------------- 12. Floating action buttons -------------------- */
.fab-stack {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 900;
  display: flex; flex-direction: column; gap: .7rem;
}
.fab {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  color: #fff; font-size: 1.4rem;
  box-shadow: var(--shadow-md);
  border: none;
}
.fab-whatsapp { background: #25D366; }
.fab-call { background: var(--primary); }
.fab-top { background: var(--heading); opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.fab-top.show { opacity: 1; pointer-events: auto; }

/* -------------------- 13. Utilities -------------------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; }
.hidden { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); border: 0;
}
