/* ==========================================================================
   NDR Chemist — Brand stylesheet
   Palette (no gradients, solid colours only):
     Primary Blue   #074985
     Primary Green  #389137
     Hover Blue     #075292
     Light Green BG #EFF7EF
     Light Blue BG  #EEF5FA
     Text/Dark      #17324A
     White          #FFFFFF
   ========================================================================== */

:root {
  --blue: #074985;
  --blue-hover: #075292;
  --green: #389137;
  --green-hover: #2f7d31;
  --light-green: #6faf70;
  --light-green-bg: #eff7ef;
  --light-blue-bg: #eef5fa;
  --text: #17324a;
  --text-soft: #4a6178;
  --white: #ffffff;
  --border: #e2e8ee;
  --shadow-sm: 0 1px 2px rgba(23, 50, 74, 0.06), 0 1px 3px rgba(23, 50, 74, 0.08);
  --shadow-md: 0 4px 12px rgba(23, 50, 74, 0.08), 0 2px 4px rgba(23, 50, 74, 0.06);
  --shadow-lg: 0 12px 32px rgba(23, 50, 74, 0.12), 0 4px 8px rgba(23, 50, 74, 0.06);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --container: 1140px;
  --header-h: 72px;
  --font-head: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::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(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 0.5em; color: var(--text); font-weight: 600; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.45rem); }
p { margin: 0 0 1rem; }
a { color: var(--blue); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: var(--blue-hover); }
img, svg { max-width: 100%; display: block; }
/* Global default for inline .icon SVGs — prevents unsized icons from
   expanding to their container width. Context-specific rules below
   override this where a different size is needed. */
.icon { width: 1em; height: 1em; flex-shrink: 0; }
ul { margin: 0 0 1rem; padding-left: 1.1rem; }
li { margin-bottom: 0.35rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section--tight { padding: clamp(2.25rem, 5vw, 3.5rem) 0; }
.section--blue { background: var(--light-blue-bg); }
.section--green { background: var(--light-green-bg); }
.section--dark { background: var(--blue); color: var(--white); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section-head { max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}
.section--dark .section-head .eyebrow { color: var(--light-green); }
.section-head p { color: var(--text-soft); font-size: 1.05rem; margin-bottom: 0; }
.section--dark .section-head p { color: rgba(255, 255, 255, 0.85); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-hover); color: var(--white); }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-hover); color: var(--white); }
.btn--outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn--outline-light:hover { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn--white { background: var(--white); color: var(--blue); }
.btn--white:hover { background: var(--light-blue-bg); color: var(--blue-hover); }
.btn--lg { padding: 1rem 1.85rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn .icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
/* Group cart + hamburger so the logo gets its own flex slot and isn't
   squeezed between two separate controls on mobile. */
.header-controls {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.brand { display: flex; align-items: center; color: var(--text); }
.brand:hover { color: var(--text); }
/* Logo fills the full navigation bar height; width is free (auto) so the
   wide logo is never squished. Scales down proportionally on small screens. */
.brand-logo {
  height: var(--header-h);
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.nav { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-link:hover { color: var(--blue); background: var(--light-blue-bg); }
.nav-link[aria-current="page"] { color: var(--blue); }
.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.3rem;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.nav-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--blue);
}
.nav-toggle svg { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--light-blue-bg);
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 4.5rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--green);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
}
.hero-eyebrow .icon { width: 1em; height: 1em; color: var(--green); }
.hero h1 { margin-bottom: 1.1rem; }
.hero h1 .accent { color: var(--green); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-soft); max-width: 36rem; margin-bottom: 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.hero-trust-item { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; color: var(--text-soft); }
.hero-trust-item .icon { width: 20px; height: 20px; color: var(--green); flex-shrink: 0; }

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem;
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--border);
}
.hero-card-illo { width: 100%; height: auto; margin-bottom: 1.25rem; }
/* Photo-based hero visual */
.hero-photo {
  width: 100%;
  height: auto;
  max-height: 420px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  display: block;
  object-fit: cover;
}
.hero-card-title { font-family: var(--font-head); font-weight: 600; color: var(--blue); margin-bottom: 0.35rem; }
.hero-card-text { font-size: 0.9rem; color: var(--text-soft); margin: 0; }
.hero-badge {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.6rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-head);
  color: var(--text);
}
.hero-badge .icon { width: 18px; height: 18px; }
.hero-badge--tl { top: 0; left: -0.5rem; color: var(--green); }
.hero-badge--br { bottom: 0.75rem; right: -0.5rem; color: var(--blue); }

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

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d4e0ea; }
.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--light-green-bg);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}
.card-icon svg { width: 28px; height: 28px; }
.card-icon--blue { background: var(--light-blue-bg); color: var(--blue); }
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-soft); margin-bottom: 1rem; }
.card-link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.card-link:hover { color: var(--green); }
.card-link .icon { width: 1em; height: 1em; transition: transform 0.18s ease; }
.card-link:hover .icon { transform: translateX(3px); }

/* ---------- Feature / split ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.split-media {
  border-radius: var(--radius-lg);
  background: var(--light-green-bg);
  padding: 2rem;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}
.split-media svg { width: 100%; max-width: 320px; height: auto; }
/* Photo-based split media (real images instead of SVG illustrations) */
.split-media--photo { padding: 0; background: none; border: none; min-height: auto; box-shadow: none; }
.split-media--photo img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: block;
}
.check-list { list-style: none; padding: 0; margin: 1.25rem 0 0; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  color: var(--text);
}
.check-list .icon { width: 22px; height: 22px; color: var(--green); flex-shrink: 0; margin-top: 0.1rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.stat { text-align: center; }
.stat-num { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--white); line-height: 1; margin-bottom: 0.4rem; }
.stat-num .accent { color: var(--light-green); }
.stat-label { font-size: 0.85rem; color: rgba(255, 255, 255, 0.8); letter-spacing: 0.03em; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: var(--white); margin: 0; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 0.4rem 0 0; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-item {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.info-item:last-child { border-bottom: none; }
.info-item .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--light-blue-bg);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-item .icon-wrap svg { width: 22px; height: 22px; }
.info-label { font-family: var(--font-head); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-soft); margin-bottom: 0.15rem; }
.info-value { color: var(--text); font-size: 1.02rem; }
.info-value a { color: var(--text); }
.info-value a:hover { color: var(--blue); }

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-family: var(--font-head); font-weight: 500; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--text); }
.field label .req { color: var(--green); }
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(7, 73, 133, 0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-hint { font-size: 0.8rem; color: var(--text-soft); margin-top: 0.3rem; }

/* ---------- Flash message ---------- */
.flash {
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border: 1px solid transparent;
}
.flash .icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 0.1rem; }
.flash--success { background: var(--light-green-bg); color: #1f5a20; border-color: #c7e3c7; }
.flash--success .icon { color: var(--green); }
.flash--error { background: #fdecec; color: #8a1f1f; border-color: #f5c9c9; }
.flash--error .icon { color: #c0392b; }

/* ---------- Map ---------- */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--light-blue-bg);
}
.map-wrap iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- Floating actions ---------- */
.floating-actions {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  color: var(--white);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  position: relative;
}
.fab:hover { color: var(--white); transform: scale(1.07); }
.fab svg { width: 28px; height: 28px; }
.fab--whatsapp { background: #25d366; }
.fab--whatsapp:hover { background: #1fb855; }
.fab--call { background: var(--blue); }
.fab--call:hover { background: var(--blue-hover); }
.fab-label {
  position: absolute;
  right: calc(100% + 0.6rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}
.fab:hover .fab-label { opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: rgba(255, 255, 255, 0.85); padding: clamp(2.5rem, 5vw, 3.5rem) 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; margin-bottom: 2rem; }
.footer-brand { display: flex; align-items: center; margin-bottom: 1rem; }
/* Footer logo sits on a white card so it stays legible on the blue footer
   regardless of the logo's own background. */
.footer-logo {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
  height: auto;
  width: auto;
  max-width: 220px;
  max-height: 56px;
  display: block;
  object-fit: contain;
}
.footer-about { font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); max-width: 22rem; }
.footer h4 { color: var(--white); font-size: 1rem; margin-bottom: 1rem; font-family: var(--font-head); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: rgba(255, 255, 255, 0.8); font-size: 0.92rem; }
.footer-links a:hover { color: var(--white); }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.7rem; font-size: 0.92rem; color: rgba(255, 255, 255, 0.85); }
.footer-contact .icon { width: 18px; height: 18px; color: var(--light-green); flex-shrink: 0; margin-top: 0.15rem; }
.footer-contact a { color: rgba(255, 255, 255, 0.85); }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-bottom a:hover { color: var(--white); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--light-blue-bg);
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-bottom: 1px solid var(--border);
}
.page-hero .container { max-width: 760px; }
.breadcrumb { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 0.75rem; }
.breadcrumb a { color: var(--text-soft); }
.breadcrumb a:hover { color: var(--blue); }
.page-hero h1 { margin-bottom: 0.6rem; }
.page-hero p { font-size: 1.08rem; color: var(--text-soft); margin: 0; }

/* ---------- Service detail list ---------- */
.service-detail { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.service-detail li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.93rem;
  color: var(--text-soft);
  margin-bottom: 0.5rem;
}
.service-detail .icon { width: 18px; height: 18px; color: var(--green); flex-shrink: 0; margin-top: 0.15rem; }

/* ---------- Values ---------- */
.value-card { text-align: center; padding: 1.75rem 1.25rem; }
.value-card .card-icon { margin: 0 auto 1.1rem; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--blue);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 300;
}
.skip-link:focus { left: 0; color: var(--white); }

/* ---------- Responsive ---------- */

/* Tablet and down: nav collapses to hamburger, splits go single-column,
   but card grids stay 2-per-row to preserve vertical space. */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
}

@media (max-width: 860px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  /* Shrink the wide logo so it shares the header with the hamburger button
     without overflowing on small screens. Keeps aspect ratio. */
  .brand-logo {
    height: auto;
    width: auto;
    max-width: 58vw;
    max-height: 48px;
  }
  .nav.open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1.25rem 1.25rem;
    gap: 0.25rem;
  }
  .nav.open .nav-link { padding: 0.8rem 0.9rem; border-radius: var(--radius-sm); }
  .nav.open .nav-link[aria-current="page"]::after { display: none; }
  .nav.open .nav-link[aria-current="page"] { background: var(--light-blue-bg); }
  .nav.open .nav-cta {
    display: inline-flex;
    margin: 0.5rem 0 0;
    width: 100%;
  }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; margin-bottom: 0.5rem; }
  .hero-card { max-width: 100%; }
  .hero-badge--tl { left: 0.5rem; }
  .hero-badge--br { right: 0.5rem; }
  .split { grid-template-columns: 1fr; }
  .split-media { order: -1; min-height: 220px; }
  .contact-grid { grid-template-columns: 1fr; }
  /* Keep card grids at 2-per-row on phones to reduce scrolling.
     Only large content cards (services detail) go 1-per-row. */
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  /* Services detail cards are text-heavy; keep them 1-per-row. */
  .services-grid { grid-template-columns: 1fr !important; }
  /* Tighter section padding on mobile. */
  .section { padding: clamp(2rem, 5vw, 3rem) 0; }
}

/* Small phones: tighter spacing, compact layouts, but still 2-col for
   product/value/gallery cards. Only truly wide content goes 1-col. */
@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .brand-logo { max-width: 52vw; max-height: 42px; }
  .footer-logo { max-width: 180px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
  .cta-band { flex-direction: column; text-align: center; align-items: center; }
  .cta-band-actions { width: 100%; flex-direction: column; }
  .cta-band-actions .btn { width: 100%; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .fab-label { display: none; }
  .floating-actions { right: 0.85rem; bottom: 0.85rem; }
  /* Footer: 2-col for link lists, full-width for brand/about. */
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.4rem; }
  /* Hero badges: smaller, closer to edges. */
  .hero-badge { font-size: 0.72rem; padding: 0.45rem 0.65rem; }
  .hero-badge--tl { top: 0.5rem; left: 0.5rem; }
  .hero-badge--br { bottom: 0.5rem; right: 0.5rem; }
  /* Hero trust items wrap tightly. */
  .hero-trust { gap: 0.75rem 1.25rem; }
  /* Product card actions: keep side-by-side (compact), not stacked. */
  .product-actions { flex-direction: row; }
  .product-actions .btn { padding: 0.6rem 0.5rem; font-size: 0.8rem; }
  /* Tighter product cards on phones. */
  .product-body { padding: 0.9rem; }
  .product-visual--photo img { height: 150px; }
  .product-visual--photo { min-height: 150px; }
  .product-desc { display: none; }
  .product-name { font-size: 0.95rem; }
  .product-price { font-size: 1.1rem; margin-bottom: 0.75rem; }
  /* Gallery stays 2-col on phones to save scroll space. */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  /* Filter bar: horizontal scroll instead of wrapping. */
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .filter-btn { flex-shrink: 0; }
  /* Radio group stays side-by-side (compact). */
  .radio-group { flex-direction: row; }
  /* Tighter container padding on small phones. */
  .container { padding: 0 1rem; }
  /* Section heads: tighter margins. */
  .section-head { margin-bottom: 1.75rem; }
  /* Cards: tighter padding on phones. */
  .card { padding: 1.25rem; }
  .value-card { padding: 1.25rem 0.85rem; }
  /* Info items: tighter. */
  .info-item { padding: 0.85rem 0; }
  /* Form card: tighter. */
  .form-card { padding: 1.25rem; }
  /* Photo banner: shorter on phones. */
  .photo-banner { height: clamp(160px, 35vw, 220px); }
}

/* Very small phones (≤400px): product cards go 1-per-row. */
@media (max-width: 400px) {
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover, .fab:hover { transform: none; }
}

/* ---------- Focus visibility ---------- */
:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 3px; }

/* ==========================================================================
   Image gallery & photo cards
   ========================================================================== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  background: var(--light-blue-bg);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.04); }

/* Full-width photo banner */
.photo-banner {
  width: 100%;
  height: clamp(220px, 30vw, 360px);
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: block;
}

/* ==========================================================================
   Shop & Cart
   ========================================================================== */

/* ---------- Cart badge (header) ---------- */
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  color: var(--blue);
  transition: background 0.18s ease, color 0.18s ease;
}
.cart-link:hover { background: var(--light-blue-bg); color: var(--blue-hover); }
.cart-link svg { width: 24px; height: 24px; }
.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  display: none;
  border: 2px solid var(--white);
}

/* ---------- Category filter ---------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.25rem;
}
.filter-btn {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 0.88rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* ---------- Product card ---------- */
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d4e0ea; }
.product-visual {
  background: var(--light-blue-bg);
  padding: 1.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 150px;
}
.product-visual svg { width: 72px; height: 72px; color: var(--blue); }
/* Product photo */
.product-visual--photo { padding: 0; background: none; min-height: 200px; }
.product-visual--photo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.product-visual--photo .product-badge { z-index: 2; }
.product-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}
.product-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.product-category {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.4rem;
}
.product-name { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--text); margin: 0 0 0.3rem; }
.product-pack { font-size: 0.85rem; color: var(--text-soft); margin-bottom: 0.6rem; }
.product-desc { font-size: 0.88rem; color: var(--text-soft); margin-bottom: 1rem; flex: 1; }
.product-price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.price-original { text-decoration: line-through; color: var(--text-muted); font-size: 0.9rem; font-weight: 400; margin-right: 0.4rem; }
.price-sale { color: var(--green); }
.product-stock { margin-bottom: 0.85rem; }
.stock-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}
.stock-badge--in { background: var(--light-green-bg); color: var(--green); }
.stock-badge--low { background: #fef9e7; color: #b7791f; }
.stock-badge--out { background: #fdecec; color: #c0392b; }
.stock-badge--unavailable { background: #eef2f6; color: var(--text-soft); }
.product-card-link { display: block; color: inherit; }
.product-card-link:hover { color: inherit; }
.product-name a { color: var(--text); text-decoration: none; }
.product-name a:hover { color: var(--blue); }
.search-input {
  padding: 0.5rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-family: var(--font-body);
  background: var(--white);
}
.search-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7,73,133,0.1); }
.product-actions { display: flex; gap: 0.5rem; }
.product-actions .btn { flex: 1; padding: 0.65rem 0.75rem; font-size: 0.85rem; }
.btn--added { background: var(--green) !important; color: var(--white) !important; }

/* ---------- Cart page ---------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(1.5rem, 4vw, 2.5rem); align-items: start; }
.cart-items {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.cart-header {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--light-blue-bg);
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.cart-header .cart-cell--action { text-align: right; }
.cart-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto auto;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  align-items: center;
}
.cart-cell--product { display: flex; align-items: center; gap: 0.85rem; min-width: 0; }
.cart-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--light-green-bg);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cart-icon svg { width: 24px; height: 24px; }
.cart-thumb {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border);
}
.cart-name { font-family: var(--font-head); font-weight: 600; font-size: 0.95rem; color: var(--text); }
.cart-pack { font-size: 0.82rem; color: var(--text-soft); }
.cart-cell--price, .cart-cell--total { font-size: 0.92rem; color: var(--text); white-space: nowrap; }
.cart-cell--total { font-family: var(--font-head); font-weight: 600; color: var(--blue); }
.cart-cell--action { text-align: right; }

.qty-control { display: inline-flex; align-items: center; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.qty-btn {
  width: 32px; height: 36px;
  border: none;
  background: var(--white);
  color: var(--blue);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.qty-btn:hover { background: var(--light-blue-bg); }
.qty-input {
  width: 44px; height: 36px;
  border: none;
  border-left: 1.5px solid var(--border);
  border-right: 1.5px solid var(--border);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button, .qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.cart-remove {
  width: 32px; height: 32px;
  border: none;
  background: transparent;
  color: #c0392b;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease;
}
.cart-remove:hover { background: #fdecec; }

/* ---------- Cart summary / checkout ---------- */
.cart-summary {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1rem);
}
.cart-summary h3 { margin-bottom: 1rem; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.summary-row--total {
  border-bottom: none;
  padding-top: 1rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--blue);
}
.summary-row--total .value { color: var(--blue); }
.summary-note { font-size: 0.82rem; color: var(--text-soft); margin: 0.75rem 0 1.25rem; }

/* ---------- Empty cart ---------- */
.cart-empty-state {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.cart-empty-state svg { width: 64px; height: 64px; color: var(--light-green); margin: 0 auto 1.25rem; }
.cart-empty-state h3 { margin-bottom: 0.5rem; }
.cart-empty-state p { color: var(--text-soft); margin-bottom: 1.5rem; }

/* ---------- Checkout form (inline on cart) ---------- */
.checkout-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0 1.25rem;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.checkout-divider::before, .checkout-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.radio-group { display: flex; gap: 0.75rem; margin-bottom: 1.1rem; }
.radio-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.92rem;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.radio-card input { margin: 0; accent-color: var(--green); }
.radio-card:has(input:checked) { border-color: var(--green); background: var(--light-green-bg); }
.radio-card .icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--green); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-header { display: none; }
  .cart-row {
    grid-template-columns: 1fr auto;
    gap: 0.75rem;
    grid-template-areas:
      "product total"
      "qty action";
  }
  .cart-cell--product { grid-area: product; }
  .cart-cell--total { grid-area: total; text-align: right; }
  .cart-cell--qty { grid-area: qty; }
  .cart-cell--action { grid-area: action; text-align: right; }
  .cart-cell--price { display: none; }
}
@media (max-width: 560px) {
  .radio-group { flex-direction: row; }
  .cart-thumb { width: 48px; height: 48px; }
  .cart-row { padding: 0.85rem 1rem; }
}
