/* ================================================================
   CHAPHUTS INTERIORS LTD — Premium Stylesheet v2.0
   Drop this file alongside all .php files in the same folder.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&family=Playfair+Display:wght@700;800;900&display=swap');

/* ── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  --g900: #042b15;
  --g800: #064422;
  --g700: #0a5c2e;
  --g600: #0e7a3e;
  --g500: #13a356;
  --g100: #e6f5ec;
  --g50:  #f0faf4;
  --o600: #c94b08;
  --o500: #e85c0d;
  --o400: #f47c3c;
  --o100: #fff0e6;
  --ink:  #0d1412;
  --ink2: #2a3530;
  --mute: #667b72;
  --bdr:  #dde8e2;
  --bg:   #ffffff;
  --bg2:  #f7faf8;

  --ff-display: 'Playfair Display', Georgia, serif;
  --ff-body:    'Plus Jakarta Sans', system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;

  --shadow-xs: 0 1px 4px rgba(6,68,34,.06);
  --shadow-sm: 0 2px 12px rgba(6,68,34,.08);
  --shadow-md: 0 6px 28px rgba(6,68,34,.12);
  --shadow-lg: 0 16px 56px rgba(6,68,34,.16);
  --shadow-xl: 0 32px 80px rgba(6,68,34,.2);

  --ease: cubic-bezier(.4,0,.2,1);
  --t: .25s var(--ease);
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  font-size: 16px;
  /* Base offset for sticky topbar (~38px) + sticky navbar (68px) + breathing room.
     Overridden dynamically by main.js updateScrollPadding() */
  scroll-padding-top: 122px;
}
body {
  font-family: var(--ff-body);
  color: var(--ink2);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--g600); text-decoration: none; transition: color var(--t); }
a:hover { color: var(--g800); }
h1,h2,h3,h4,h5,h6 { font-family: var(--ff-body); font-weight: 700; color: var(--ink); line-height: 1.15; }

/* ── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  background: var(--g900);
  padding: 9px 0;
  font-size: 12.5px;
  color: rgba(255,255,255,.7);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 1.25rem; }
.topbar a { color: rgba(255,255,255,.75); display: flex; align-items: center; gap: 5px; font-size: 12.5px; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--o400); font-size: 11px; }
.topbar span { display: flex; align-items: center; gap: 5px; }

/* ── NAVBAR ─────────────────────────────────────────────── */
.navbar-wrap {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bdr);
  transition: box-shadow var(--t);
}
.navbar-wrap.scrolled { box-shadow: var(--shadow-md); border-color: transparent; }
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

/* Brand */
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand-mark {
  position: relative;
  width: 40px; height: 44px; flex-shrink: 0;
}
.bm-bar {
  position: absolute;
  background: var(--g600);
  border-radius: 4px;
  width: 8px;
}
.bm-bar.b1 { height: 40px; left: 4px; top: 2px; }
.bm-bar.b2 { height: 30px; left: 17px; top: 12px; }
.bm-arc {
  position: absolute;
  bottom: 0; left: 19px;
  width: 22px; height: 22px;
  border: 7px solid var(--o500);
  border-top: 0; border-left: 0;
  border-radius: 0 0 20px 0;
}
.brand-words { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.brand-name {
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: .3px;
  color: var(--g800);
}
.brand-sub {
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--mute);
  text-transform: uppercase;
}

/* Nav links */
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink2);
  padding: 7px 13px;
  border-radius: var(--r-sm);
  display: flex; align-items: center; gap: 5px;
  transition: background var(--t), color var(--t);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--g100);
  color: var(--g700);
}
/* Dropdown */
.nav-drop { position: relative; }
.nav-drop > a::after { content: ''; display: inline-block; width: 0; height: 0; border: 4px solid transparent; border-top-color: currentColor; margin-left: 2px; margin-top: 3px; }
.drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 480px;
  background: #fff;
  border: 1px solid var(--bdr);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  padding-top: 16px;
  z-index: 999;
  margin-top: 0;
  /* 2-column grid */
  display: none;
}
.drop-menu ul, .nav-drop .drop-menu {
  /* reset any inherited ul styles */
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-drop:hover .drop-menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
/* Invisible bridge fills the gap between link and menu so hover doesn't break */
.nav-drop::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 16px;
}
.drop-menu li { display: contents; }
.drop-menu a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink2);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.drop-menu a:hover { background: var(--g50); color: var(--g700); }
.drop-menu a i { color: var(--g500); width: 18px; font-size: 14px; flex-shrink: 0; }

/* Cart pill */
.cart-pill {
  display: flex; align-items: center; gap: 7px;
  background: var(--g100);
  color: var(--g700) !important;
  border-radius: 50px !important;
  padding: 7px 16px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  transition: background var(--t), transform var(--t) !important;
}
.cart-pill:hover { background: var(--g600) !important; color: #fff !important; transform: translateY(-1px); }
.cart-pill i { font-size: 16px; }
.cart-count {
  background: var(--o500);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* Hamburger */
.ham-btn { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
.ham-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--ink); border-radius: 2px;
  margin: 5px 0;
  transition: transform var(--t), opacity var(--t);
}

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  min-height: 92vh;
  background: var(--g800);
  position: relative;
  display: flex; align-items: center;
  overflow: hidden;
}

/* Layered background */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 30%, rgba(232,92,13,.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 10% 80%, rgba(19,163,86,.15) 0%, transparent 55%),
    linear-gradient(135deg, #042b15 0%, #064422 35%, #0a5c2e 65%, #064422 100%);
}

/* Geometric grid overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-content {
  position: relative; z-index: 2;
  padding: 4rem 0;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  color: rgba(255,255,255,.9);
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  width: fit-content;
}
.hero-eyebrow i { color: var(--o400); }

.hero-h1 {
  font-family: var(--ff-display);
  font-size: clamp(2.6rem, 5.5vw, 4.4rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -.5px;
}
.hero-h1 em {
  font-style: normal;
  color: var(--o400);
  display: block;
}

.hero-p {
  font-size: 1.05rem;
  color: rgba(255,255,255,.72);
  max-width: 500px;
  line-height: 1.8;
  margin-bottom: 2.25rem;
}

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 3rem; }

/* Primary CTA */
.btn-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--o500);
  color: #fff;
  padding: 15px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14.5px;
  border: none;
  cursor: pointer;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(232,92,13,.35);
}
.btn-cta:hover {
  background: var(--o600);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(232,92,13,.45);
}

/* Ghost CTA */
.btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14.5px;
  border: 1.5px solid rgba(255,255,255,.3);
  cursor: pointer;
  transition: background var(--t), border-color var(--t), transform var(--t);
  text-decoration: none;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.6);
  color: #fff;
  transform: translateY(-2px);
}

/* Stats bar */
.hero-stats {
  display: flex; gap: 2.5rem; flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--ff-display);
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.stat-lbl {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 3px;
}
.stat-sep {
  width: 1px;
  background: rgba(255,255,255,.15);
  align-self: stretch;
}

/* Hero image panel */
.hero-visual {
  position: relative; z-index: 2;
  padding: 3rem 0;
}
.hero-img-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.hero-img-frame::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(135deg, rgba(6,68,34,.15) 0%, transparent 60%);
}
.hero-img-frame img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
}

/* Floating badge */
.hero-badge-float {
  position: absolute;
  bottom: 24px; left: -24px;
  z-index: 2;
  background: #fff;
  border-radius: var(--r-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 12px;
  min-width: 210px;
}
.hbf-icon {
  width: 44px; height: 44px;
  background: var(--g100);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--g600);
  flex-shrink: 0;
}
.hbf-text { display: flex; flex-direction: column; }
.hbf-label { font-size: 10.5px; color: var(--mute); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.hbf-value { font-size: 14px; font-weight: 700; color: var(--ink); margin-top: 1px; }

/* ── SECTION SHELL ──────────────────────────────────────── */
.section { padding: 90px 0; }
.section-dark { background: var(--g800); }
.section-tint { background: var(--bg2); }

/* ── Anchor scroll offset ─────────────────────────────────────────
   Topbar ~38px + Navbar 68px + 16px breathing room = 122px.
   Apply to anything that can be a scroll target.                  */
[id] {
  scroll-margin-top: 122px;
}
/* The sticky services pill nav adds another ~46px when present */
.services-pill-nav ~ section [id],
.services-pill-nav ~ div[id] {
  scroll-margin-top: 168px;
}

/* Section header */
.sec-tag {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--g100);
  color: var(--g700);
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: .9rem;
}
.sec-tag-dark { background: rgba(255,255,255,.12); color: rgba(255,255,255,.85); }
.sec-title {
  font-family: var(--ff-display);
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: .75rem;
  letter-spacing: -.3px;
}
.sec-title-white { color: #fff; }
.sec-title span { color: var(--g600); }
.sec-title span.o { color: var(--o500); }
.sec-rule {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--g500), var(--o500));
  border-radius: 2px;
  margin: .9rem 0 1rem;
}
.sec-sub { font-size: .97rem; color: var(--mute); max-width: 520px; line-height: 1.75; }
.sec-sub-white { color: rgba(255,255,255,.65); }

/* ── SERVICE CARDS ──────────────────────────────────────── */
.service-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
@media(max-width:1100px){ .service-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:900px){  .service-grid { grid-template-columns: 1fr !important; gap: 14px; } }

.scard {
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  cursor: default;
}
.scard::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--g500), var(--o500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.scard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(14,122,62,.2); }
.scard:hover::before { transform: scaleX(1); }

.scard-icon {
  width: 56px; height: 56px;
  background: var(--g100);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  color: var(--g600);
  margin-bottom: 1.25rem;
  transition: background var(--t), color var(--t), transform var(--t);
}
.scard:hover .scard-icon { background: var(--g600); color: #fff; transform: scale(1.08) rotate(-3deg); }

.scard h4 { font-size: 1rem; font-weight: 700; margin-bottom: .5rem; color: var(--ink); }
.scard p { font-size: 13.5px; color: var(--mute); line-height: 1.65; flex: 1; margin-bottom: 1.1rem; }
.scard-link {
  font-size: 13px; font-weight: 700;
  color: var(--g600);
  display: inline-flex; align-items: center; gap: 5px;
  transition: gap var(--t), color var(--t);
}
.scard:hover .scard-link { gap: 9px; color: var(--g700); }

/* ── PRODUCT CARDS ──────────────────────────────────────── */
.prod-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
@media(max-width:900px){ .prod-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:540px){ .prod-grid { grid-template-columns: 1fr; } }

.pcard {
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--t), box-shadow var(--t);
}
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.pcard-img {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: var(--bg2);
}
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.pcard:hover .pcard-img img { transform: scale(1.07); }

.pcard-badges {
  position: absolute; top: 12px; left: 12px; right: 12px;
  display: flex; gap: 6px; justify-content: space-between;
}
.pbadge {
  font-size: 10.5px; font-weight: 800;
  padding: 4px 10px; border-radius: 50px;
  letter-spacing: .5px; text-transform: uppercase;
}
.pbadge-feat { background: var(--o500); color: #fff; }
.pbadge-sale { background: var(--g600); color: #fff; }

.pcard-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.pcard-cat {
  font-size: 10.5px; font-weight: 700;
  color: var(--g500); text-transform: uppercase;
  letter-spacing: 1.2px; margin-bottom: .35rem;
}
.pcard-name { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .5rem; line-height: 1.3; }
.pcard-desc { font-size: 13px; color: var(--mute); line-height: 1.6; flex: 1; margin-bottom: 1.1rem; }

.pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; }
.pcard-price-wrap { display: flex; flex-direction: column; }
.pcard-price { font-family: var(--ff-display); font-size: 1.25rem; font-weight: 700; color: var(--g800); }
.pcard-strike { font-size: 12px; color: var(--mute); text-decoration: line-through; }
.pcard-unit { font-size: 11px; color: var(--mute); margin-top: 1px; }

.btn-cart {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--g600);
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  font-size: 12.5px; font-weight: 700;
  cursor: pointer;
  transition: background var(--t), transform var(--t);
  white-space: nowrap;
  text-decoration: none;
  font-family: var(--ff-body);
}
.btn-cart:hover { background: var(--g800); color: #fff; transform: scale(1.03); }

/* ── WHY SECTION ────────────────────────────────────────── */
.why-wrap {
  position: relative;
  background: var(--g800);
  overflow: hidden;
}
.why-wrap::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 85% 50%, rgba(232,92,13,.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 70% at 5% 80%, rgba(19,163,86,.1) 0%, transparent 55%);
}
.why-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; position: relative; z-index: 1; }
@media(max-width:900px){ .why-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:540px){ .why-grid { grid-template-columns: 1fr; } }

.wcard {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  transition: background var(--t), transform var(--t);
}
.wcard:hover { background: rgba(255,255,255,.13); transform: translateY(-4px); }
.wcard-icon { font-size: 2.2rem; color: var(--o400); margin-bottom: 1rem; }
.wcard h5 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .45rem; }
.wcard p { font-size: 13.5px; color: rgba(255,255,255,.62); line-height: 1.65; }

/* ── CTA BAND ───────────────────────────────────────────── */
.cta-band {
  background: var(--bg2);
  border-top: 1px solid var(--bdr);
}
.cta-inner {
  background: linear-gradient(135deg, var(--g800) 0%, var(--g700) 100%);
  border-radius: var(--r-xl);
  padding: 3.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.cta-inner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 90% 50%, rgba(232,92,13,.18) 0%, transparent 60%);
}
.cta-inner > * { position: relative; z-index: 1; }
.cta-text h2 { color: #fff; font-family: var(--ff-display); font-size: clamp(1.5rem,2.5vw,2rem); margin-bottom: .5rem; }
.cta-text p { color: rgba(255,255,255,.7); max-width: 480px; }
.cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* Solid green button (used outside hero) */
.btn-green {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--g600);
  color: #fff; border: none;
  padding: 13px 28px; border-radius: 50px;
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  text-decoration: none;
  font-family: var(--ff-body);
}
.btn-green:hover { background: var(--g700); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-green-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.45);
  padding: 12px 26px; border-radius: 50px;
  font-weight: 700; font-size: 14px;
  cursor: pointer;
  transition: background var(--t), border-color var(--t), transform var(--t);
  text-decoration: none;
}
.btn-green-outline:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.8); color: #fff; transform: translateY(-2px); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer { background: #020f07; }
.footer-main { padding: 64px 0 48px; border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 3rem; }
@media(max-width:900px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
@media(max-width:540px){ .footer-grid { grid-template-columns: 1fr; } }

.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,.5); line-height: 1.75; margin-top: 1rem; max-width: 280px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 1.25rem; }
.fbadge {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.65);
  padding: 5px 12px; border-radius: 50px;
  font-size: 11.5px; font-weight: 600;
}
.fbadge i { color: var(--o400); font-size: 13px; }

.footer-col h6 {
  font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,.4); margin-bottom: 1.1rem;
  padding-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: .5rem; }
.footer-col ul a { color: rgba(255,255,255,.58); font-size: 13.5px; transition: color var(--t), padding-left var(--t); }
.footer-col ul a:hover { color: var(--o400); padding-left: 5px; }

.footer-contact-list { list-style: none; }
.footer-contact-list li { display: flex; gap: 11px; align-items: flex-start; margin-bottom: 1rem; }
.footer-contact-list i { color: var(--o400); font-size: 15px; margin-top: 2px; flex-shrink: 0; }
.footer-contact-list span { font-size: 13.5px; color: rgba(255,255,255,.58); line-height: 1.55; }
.footer-contact-list a { color: rgba(255,255,255,.58); }
.footer-contact-list a:hover { color: var(--o400); }

.footer-social { display: flex; gap: 9px; margin-top: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: 14px;
  transition: background var(--t), color var(--t), border-color var(--t);
}
.footer-social a:hover { background: var(--g600); color: #fff; border-color: transparent; }

.footer-bottom {
  padding: 18px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: rgba(255,255,255,.35);
  flex-wrap: wrap; gap: .5rem;
}

/* ── PAGE HERO ──────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--g900) 0%, var(--g700) 100%);
  padding: 3.5rem 0;
  position: relative; overflow: hidden;
}
.page-hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 95% 50%, rgba(232,92,13,.15) 0%, transparent 55%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-family: var(--ff-display); font-size: clamp(1.8rem,3.5vw,2.8rem); }
.page-hero p { color: rgba(255,255,255,.65); margin-top: .5rem; }
.breadcrumb { display: flex; align-items: center; gap: 6px; list-style: none; margin-bottom: .9rem; }
.breadcrumb li { font-size: 12.5px; color: rgba(255,255,255,.5); }
.breadcrumb li a { color: rgba(255,255,255,.65); }
.breadcrumb li a:hover { color: var(--o400); }
.breadcrumb-sep { color: rgba(255,255,255,.3); font-size: 10px; }

/* ── FORMS ──────────────────────────────────────────────── */
.form-card {
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; gap: 1rem; }
.form-row.col-2 { grid-template-columns: 1fr 1fr; }
@media(max-width:640px){ .form-row.col-2 { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-label { font-size: 12.5px; font-weight: 700; color: var(--ink2); letter-spacing: .3px; }
.form-control {
  padding: 11px 14px;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-sm);
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  transition: border-color var(--t), box-shadow var(--t);
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--g500);
  box-shadow: 0 0 0 3px rgba(19,163,86,.12);
}
.form-control::placeholder { color: #aab8b2; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 110px; }

/* ── CART ───────────────────────────────────────────────── */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
  text-align: left; padding: 12px 16px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--mute);
  border-bottom: 2px solid var(--bdr);
  background: var(--bg2);
}
.cart-table td { padding: 14px 16px; border-bottom: 1px solid var(--bdr); vertical-align: middle; }
.cart-table tbody tr:hover td { background: var(--g50); }
.cart-thumb { width: 68px; height: 60px; object-fit: cover; border-radius: var(--r-sm); }
.cart-name { font-weight: 600; font-size: 14px; color: var(--ink); }
.cart-unit-label { font-size: 12px; color: var(--mute); margin-top: 2px; }

.qty-wrap { display: flex; align-items: center; border: 1.5px solid var(--bdr); border-radius: var(--r-sm); overflow: hidden; width: fit-content; }
.qty-btn { background: var(--bg2); border: none; width: 30px; height: 32px; cursor: pointer; font-size: 15px; font-weight: 700; color: var(--ink2); transition: background var(--t); }
.qty-btn:hover { background: var(--g600); color: #fff; }
.qty-num { width: 44px; border: none; border-left: 1.5px solid var(--bdr); border-right: 1.5px solid var(--bdr); text-align: center; font-size: 13.5px; font-weight: 700; background: #fff; padding: 3px 0; font-family: var(--ff-body); }
.qty-num:focus { outline: none; }

.btn-remove { background: none; border: none; color: #cc2222; font-size: 18px; cursor: pointer; transition: transform var(--t), color var(--t); padding: 4px; }
.btn-remove:hover { transform: scale(1.15); color: #990000; }

.summary-card {
  background: var(--bg2);
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-lg);
  padding: 2rem;
}
.summary-card h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: 1.5rem; }
.summary-line { display: flex; justify-content: space-between; padding: .65rem 0; border-bottom: 1px solid var(--bdr); font-size: 14px; }
.summary-line.total { font-weight: 800; font-size: 1.1rem; color: var(--ink); border-bottom: none; padding-top: 1rem; }
.mpesa-note { background: var(--g100); border-radius: var(--r-sm); padding: 12px 14px; font-size: 13px; color: var(--g700); margin-top: 1rem; display: flex; gap: 8px; }
.mpesa-note i { flex-shrink: 0; color: var(--g600); margin-top: 1px; }

/* ── STATUS BADGES ──────────────────────────────────────── */
.badge {
  display: inline-block; padding: 3px 10px;
  border-radius: 50px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
}
.badge-pending   { background: #fff3cd; color: #7d5a00; }
.badge-confirmed { background: #d1fae5; color: #065f46; }
.badge-delivered { background: #dcfce7; color: #14532d; }
.badge-cancelled { background: #fee2e2; color: #7f1d1d; }
.badge-completed { background: #dcfce7; color: #14532d; }
.badge-failed    { background: #fee2e2; color: #7f1d1d; }

/* ── ADMIN ──────────────────────────────────────────────── */
.admin-layout { display: flex; min-height: 100vh; background: #f1f5f3; }
.admin-sidebar {
  width: 256px; flex-shrink: 0;
  background: var(--g900);
  position: fixed; top: 0; left: 0; bottom: 0;
  z-index: 800;
  display: flex; flex-direction: column;
  transition: transform var(--t);
}
.sidebar-top {
  padding: 1.4rem 1.25rem;
  background: rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.sidebar-nav { padding: .75rem 0; flex: 1; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  color: rgba(255,255,255,.65);
  font-size: 13.5px; font-weight: 600;
  transition: background var(--t), color var(--t), padding-left var(--t);
  text-decoration: none;
}
.sidebar-nav a i { font-size: 17px; width: 20px; flex-shrink: 0; }
.sidebar-nav a:hover, .sidebar-nav a.active {
  background: rgba(255,255,255,.1);
  color: #fff;
  padding-left: 26px;
}
.sidebar-nav a.active { border-left: 3px solid var(--o500); }
.sidebar-nav .nav-section {
  font-size: 9.5px; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,.25);
  padding: 1.25rem 20px .4rem;
}

.admin-body { margin-left: 256px; flex: 1; display: flex; flex-direction: column; }
.admin-topbar {
  background: #fff;
  border-bottom: 1px solid var(--bdr);
  padding: 0 1.5rem;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 700;
  box-shadow: var(--shadow-xs);
}
.admin-topbar h4 { font-size: 1rem; font-weight: 700; color: var(--ink); }
.admin-content { padding: 2rem; flex: 1; }

/* Admin stat cards */
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 2rem; }
@media(max-width:900px){ .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stat-card {
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-md);
  padding: 1.4rem;
  display: flex; align-items: center; gap: 1rem;
  transition: box-shadow var(--t);
}
.stat-card:hover { box-shadow: var(--shadow-md); }
.stat-card-icon {
  width: 50px; height: 50px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.sci-green { background: var(--g100); color: var(--g600); }
.sci-orange { background: var(--o100); color: var(--o500); }
.sci-blue { background: #dbeafe; color: #2563eb; }
.sci-purple { background: #ede9fe; color: #7c3aed; }
.stat-card-val { font-family: var(--ff-display); font-size: 1.7rem; font-weight: 900; color: var(--ink); line-height: 1; }
.stat-card-lbl { font-size: 12px; color: var(--mute); margin-top: 3px; }

/* Data table */
.data-card {
  background: #fff;
  border: 1.5px solid var(--bdr);
  border-radius: var(--r-md);
  overflow: hidden;
}
.data-card-head {
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--bdr);
  display: flex; align-items: center; justify-content: space-between;
}
.data-card-head h5 { font-size: .97rem; font-weight: 700; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
  text-align: left; padding: 11px 14px;
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--mute); background: var(--bg2);
  border-bottom: 1px solid var(--bdr);
  white-space: nowrap;
}
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--bdr); font-size: 13.5px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--g50); }

/* ── UTILITIES ──────────────────────────────────────────── */
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; flex-wrap: wrap; }
.col-half { flex: 0 0 50%; max-width: 50%; padding: 0 14px; }
@media(max-width:860px){ .col-half { flex: 0 0 100%; max-width: 100%; } }
.col-7 { flex: 0 0 58.33%; max-width: 58.33%; padding: 0 14px; }
.col-5 { flex: 0 0 41.66%; max-width: 41.66%; padding: 0 14px; }
@media(max-width:860px){ .col-7,.col-5 { flex: 0 0 100%; max-width: 100%; } }
.text-center { text-align: center; }
.text-white { color: #fff !important; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.w-full { width: 100%; }
.hidden { display: none; }
.alert { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 1rem; font-size: 14px; }
.alert-danger { background: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }
.alert-success { background: #dcfce7; color: #14532d; border: 1px solid #86efac; }

/* ── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .65s var(--ease) both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }
.delay-4 { animation-delay: .4s; }
.delay-5 { animation-delay: .5s; }

/* ── MOBILE NAV ─────────────────────────────────────────── */
@media(max-width:900px) {

  /* ── Hamburger button ── */
  .ham-btn {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px; height: 44px;
    background: var(--g100);
    border-radius: var(--r-sm);
    border: 1.5px solid var(--bdr);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 10000;
  }
  .ham-btn span {
    display: block;
    width: 22px; height: 2.5px;
    background: var(--g700);
    border-radius: 2px;
    margin: 3px 0;
    transition: transform .3s ease, opacity .3s ease;
  }

  /* ── Full-screen mobile nav drawer ──
     z-index must be ABOVE navbar-wrap (900) and ABOVE the hero (z-index 2).
     We use 9999 to guarantee it's on top of everything. */
  .nav-links {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #ffffff !important;
    flex-direction: column !important;
    align-items: stretch !important;
    padding-top: 80px !important; /* space for the navbar above */
    padding-bottom: 2rem !important;
    z-index: 9999 !important;
    gap: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open {
    display: flex !important;
  }

  /* ── Top-level nav links ── */
  .nav-links > li {
    width: 100%;
    border-bottom: 1px solid var(--bdr);
  }
  .nav-links > li > a {
    font-size: 16px !important;
    font-weight: 700 !important;
    padding: 15px 22px !important;
    width: 100% !important;
    border-radius: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: var(--ink) !important;
    background: #fff !important;
    text-decoration: none !important;
  }
  .nav-links > li > a:active {
    background: var(--g50) !important;
    color: var(--g700) !important;
  }

  /* ── Services dropdown caret ── */
  .nav-drop > a::after {
    content: '›' !important;
    font-size: 20px !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    color: var(--g500) !important;
    transition: transform .25s ease !important;
    display: inline-block !important;
    line-height: 1 !important;
  }
  .nav-drop.open > a::after {
    transform: rotate(90deg) !important;
  }
  .nav-drop.open > a {
    background: var(--g50) !important;
    color: var(--g700) !important;
  }

  /* ── Dropdown submenu — single stacked column ── */
  .drop-menu {
    position: static !important;
    display: none !important;
    grid-template-columns: 1fr !important;
    box-shadow: none !important;
    border: none !important;
    border-top: 1px solid var(--bdr) !important;
    border-radius: 0 !important;
    background: var(--bg2) !important;
    padding: 4px 0 !important;
    margin: 0 !important;
    min-width: unset !important;
    width: 100% !important;
  }
  .nav-drop.open .drop-menu {
    display: grid !important;
  }
  .drop-menu li {
    display: block !important;
    width: 100% !important;
    border-bottom: 1px solid rgba(0,0,0,.04) !important;
  }
  .drop-menu a {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 13px 22px 13px 40px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border-radius: 0 !important;
    color: var(--ink2) !important;
    background: transparent !important;
    text-decoration: none !important;
    width: 100% !important;
  }
  .drop-menu a i {
    color: var(--g500) !important;
    font-size: 15px !important;
    flex-shrink: 0 !important;
    width: 20px !important;
  }
  .drop-menu a:active {
    background: var(--g100) !important;
    color: var(--g700) !important;
  }

  /* ── Cart pill in mobile nav ── */
  .nav-links > li:last-child {
    border-bottom: none;
    padding: 16px 22px;
  }
  .nav-links .cart-pill {
    width: 100% !important;
    justify-content: center !important;
    border-radius: var(--r-md) !important;
    padding: 14px 20px !important;
    font-size: 15px !important;
  }

  /* ── Navbar must sit above the drawer trigger ── */
  .navbar-wrap {
    z-index: 10000 !important;
    position: sticky !important;
  }

  /* Hero */
  .hero-img-frame { display: none; }
  .hero { min-height: 70vh; }

  /* Admin */
  .admin-sidebar { transform: translateX(-256px); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-body { margin-left: 0; }

  /* Products page */
  .products-layout { flex-direction: column !important; }
  .products-sidebar { flex: none !important; max-width: 100% !important; width: 100% !important; }

  /* Checkout */
  .checkout-layout { flex-direction: column !important; }
  .checkout-sidebar { flex: none !important; max-width: 100% !important; width: 100% !important; }

  /* Quote page */
  .quote-outer-grid { grid-template-columns: 1fr !important; }
  .quote-sidebar-sticky { position: static !important; }
}

@media(max-width:600px) {
  .section { padding: 50px 0; }
  .topbar { display: none; }

  .cta-inner {
    padding: 2rem 1.25rem;
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  .cta-btns { justify-content: center; }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Products: single column at very small screens */
  .prod-grid { grid-template-columns: 1fr 1fr !important; }

  /* Hero stats compact */
  .hero-stats { gap: 1.25rem; }
  .stat-sep { display: none; }
  .stat-num { font-size: 1.5rem; }

  /* Service cards — single column on mobile so each card breathes */
  .service-grid { grid-template-columns: 1fr !important; }

  /* Page hero */
  .page-hero { padding: 2.25rem 0; }
  .page-hero h1 { font-size: 1.65rem; }

  /* Form card padding */
  .form-card { padding: 1.5rem; }

  /* Quote service card grid: 2 col */
  #serviceCards { grid-template-columns: 1fr 1fr !important; }

  /* Trust bar: 2 per row */
  .trust-bar-inner { gap: 1rem !important; }
  .trust-bar-inner > div { flex: 0 0 calc(50% - .5rem); }

  /* Footer */
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
}

@media(max-width:400px) {
  .prod-grid { grid-template-columns: 1fr !important; }
  #serviceCards { grid-template-columns: 1fr !important; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn-cta, .hero-ctas .btn-ghost { width: 100%; justify-content: center; }
}
