/* =========================================================
   Water Test Kit Leads – Global Stylesheet
   ========================================================= */

/* =========================
   Reset / Base
   ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Inter', sans-serif;
  background: #ffffff;
  color: #1f2937;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
}

/* Respect motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================
   Theme Variables
   ========================= */
:root {
  --bg: #ffffff;
  --surface: #f8fafc;
  --border: #e5e7eb;
  --text: #1f2937;
  --muted: #6b7280;

  --primary: #1e88e5;
  --title: #276295;
  --primary-soft: #e3f2fd;

  --radius: 14px;
  --nav-h: 100px; /* doubled header height */
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.15);
}

/* =========================
   Layout Helpers
   ========================= */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
  text-align: center;
}

main {
  padding: 32px 0 64px;
}

/* =========================
   Top Navigation Bar
   ========================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Left cluster (menu + brand) */
.left-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* =========================
   Menu Button
   ========================= */
.menu-btn {
  min-width: 48px; /* increase touch target */
  min-height: 48px;
  width: 48px; /* doubled from 44px */
  height: 48px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.05s ease;
}

.menu-btn:hover {
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
  background: #f9fafb;
}

.menu-btn:active {
  transform: scale(0.97);
}

.menu-btn:focus-visible {
  outline: 3px solid rgba(30, 136, 229, 0.5);
  outline-offset: 2px;
}

/* Hamburger icon */
.menu-icon {
  width: 18px;
  height: 12px;
  position: relative;
}

.menu-icon span {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.menu-icon span:nth-child(1) { top: 0; }
.menu-icon span:nth-child(2) { top: 5px; }
.menu-icon span:nth-child(3) { top: 10px; }

/* =========================
   Brand (Logo + Title)
   ========================= */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 100px; /* doubled from 64px */
  height: 100px;
  object-fit: contain;
}

.brand-title {
  font-size: 1.6rem; /* doubled from 1.05rem */
  font-weight: 750;
  color: var(--title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* =========================
   Topbar Actions (CTA)
   ========================= */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =========================
   Buttons
   ========================= */
.btn {
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  background: #f9fafb;
}

.btn:focus-visible {
  outline: 3px solid rgba(30, 136, 229, 0.35);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  border-color: rgba(30, 136, 229, 0.4);
}

.btn-primary:hover {
  background: #1976d2;
}

.btn-primary:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

/* =========================
   Drawer Overlay
   ========================= */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 999;
}

/* =========================
   Drawer (Left Menu)
   ========================= */
.drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(320px, 86vw);
  height: 100%;
  background: #ffffff;
  border-right: 1px solid var(--border);
  box-shadow: var(--shadow);
  transform: translateX(-103%);
  transition: transform 0.25s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

/* Drawer Header */
.drawer-header {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
}

.drawer-title {
  font-size: 1rem;
  font-weight: 800;
}

.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  cursor: pointer;
}

.drawer-close:focus-visible {
  outline: 3px solid rgba(30, 136, 229, 0.35);
  outline-offset: 2px;
}

/* Drawer Body */
.drawer-body {
  padding: 14px;
  overflow-y: auto;
}

/* Navigation Links */
.drawer-nav {
  display: grid;
  gap: 8px;
}

.drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #ffffff;
  font-weight: 650;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.drawer-link:hover {
  background: #f4f9ff;
  border-color: rgba(30, 136, 229, 0.4);
}

.drawer-link:focus-visible {
  outline: 3px solid rgba(30, 136, 229, 0.35);
  outline-offset: 2px;
}

.drawer-link.active {
  background: var(--primary-soft);
  border-color: rgba(30, 136, 229, 0.6);
}

/* Drawer CTA */
.drawer-cta {
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

.drawer-cta p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

/* =========================
   Open State
   ========================= */
body.drawer-open {
  overflow: hidden;
}

body.drawer-open .drawer-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.drawer-open .drawer {
  transform: translateX(0);
}

/* =========================
   Announcement Bar
   ========================= */
.announcement {
  background-color:#209144; /* brand blue */
  color: #ffffff;
  text-align: center;
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
}

.announcement p {
  margin: 0;
}

.announcement a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
}

.announcement a:hover {
  opacity: 0.9;
}

/* =========================
   Responsive Adjustments
   ========================= */
@media (min-width: 768px) {
  .brand-logo {
    width: 200px; /* doubled from 120px */
    height: 200px;
  }

  .brand-title {
    font-size: 1.65rem; /* doubled from 1.15rem */
  }

  .announcement {
    font-size: 0.95rem;
  }

  main {
    padding: 48px 0 80px;
  }
}

@media (max-width: 768px) {
  .announcement {
    font-size: 0.80rem;
    padding: 0.75rem 1rem;
  }

  .brand-title {
    font-size: 1.0rem; /* doubled from 1.15rem */
  }
}


/* =========================
   Page Sections
   ========================= */

/* Base section */
.section {
  padding: 64px 0;
}

/* Compact section (used for small areas) */
.section-sm {
  padding: 40px 0;
}

/* Large / hero-style section */
.section-lg {
  padding: 96px 0;
}

/* Section background variations */
.section-light {
  background: #ffffff;
}

.section-video {
  background: #f8fafc;
}

.section-soft {
  background: var(--primary-soft);
}

.section-muted {
  background: var(--surface);
}

/* Section inner container */
.section-inner {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* Mobile spacing adjustments */
@media (max-width: 767px) {
  .section {
    padding: 48px 0;
  }

  .section-lg {
    padding: 72px 0;
  }
}

/* =========================
   Headings & Typography
   ========================= */

/* Base heading reset */
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.75em;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

/* Primary page headline */
h1 {
  font-size: clamp(3rem, 4vw, 3rem);
  letter-spacing: -0.02em;
  font-weight: 680;
}

/* Section headlines */
h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
}

/* Subsection titles */
h3 {
  font-size: 1.4rem;
}

/* Card / feature titles */
h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* Centered labels / captions */
h5 {
  font-size: 2.0rem;
  text-align: center;
  font-weight: 600;
  color: var(--text);
}

/* Optional heading modifiers */
.heading-center {
  text-align: left;
}

.heading-primary {
  color: var(--primary);
}

/* =========================
   Mobile Header CTA sizing
   ========================= */
@media (max-width: 767px) {
  .topbar-actions .btn {
    min-height: 28px;
    padding: 0.3rem 0.6rem;
    font-size: 0.8rem;
    border-radius: 10px;    
    max-width: 80px; 
    max-height: 50px; 
  }

  h1 {
    font-size: clamp(1.9rem, 4vw, 2.25rem);
  }

  h2 {
    font-size: clamp(1.9rem, 4vw, 2.25rem);
  }

  h3 {
    font-size: clamp(1.0rem, 4vw, 2.25rem);
  }

}