/* =============================================
   NALINI GROUP - MAIN STYLESHEET
   ============================================= */

/* ---- CSS Variables ---- */
:root {
  /* ---- Colour roles ----
     Quiet luxury: deep near-black, warm ivory surfaces, restrained gold. */
  --ink:          #0d0b04;   /* dark background (header, footer, hero) */
  --ink-2:        #17130a;   /* raised dark surface (menus, panels on dark) */
  --ink-line:     rgba(201,165,32,0.22);  /* hairline on dark */
  --gold:         #c9a520;   /* gold accent: fills, accents on dark */
  --gold-light:   #e0bc35;   /* gold hover on dark / fills */
  --gold-strong:  #7d6208;   /* darker gold: small text on light (>= 4.5:1) */
  --ivory:        #fdf9ec;   /* paper / light surface */
  --paper:        #f3ece0;   /* recessed light surface */
  --line:         #ddd5b8;   /* border on light */
  --text:         #1a1200;   /* primary text on light */
  --text-muted:   #5a4a28;   /* secondary text on light */
  --text-subtle:  #76683f;   /* hints/labels on light (>= 4.5:1) */
  --on-dark:      rgba(255,255,255,0.92);  /* primary text on dark */
  --on-dark-mid:  rgba(255,255,255,0.72);  /* secondary text on dark */
  --on-dark-low:  rgba(255,255,255,0.60);  /* tertiary text on dark */
  --success:      #1e8449;
  --success-light:#2ecc71;
  --danger:       #c0392b;
  --white:        #ffffff;
  --focus-ring:   var(--gold-strong);      /* overridden on dark surfaces */

  /* ---- Legacy aliases (used by page-level components; keep until migrated) ---- */
  --navy:        var(--ink);
  --navy-light:  var(--ink-2);
  --off-white:   var(--ivory);
  --gray-light:  var(--paper);
  --gray:        var(--line);
  --text-dark:   var(--text);
  --text-mid:    var(--text-muted);
  --text-light:  var(--text-subtle);
  --green:       #27ae60;
  --green-light: #2ecc71;
  --red:         #e74c3c;

  /* ---- Typography ---- */
  --font-head: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  clamp(1.75rem, 3.5vw, 2.25rem);
  --fs-3xl:  clamp(2rem, 4.5vw, 3rem);
  --fs-hero: clamp(2.75rem, 7vw, 5.5rem);
  --track-caps: 0.14em;   /* letter-spacing for uppercase labels */

  /* ---- Spacing (4px base) ---- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;  --s-5: 24px;
  --s-6: 32px;  --s-7: 48px;  --s-8: 64px;  --s-9: 96px;

  /* ---- Layout ---- */
  --container:     1200px;
  --container-nav: 1280px;
  --gutter:        24px;
  --nav-h:         68px;   /* fixed navbar height; shop controls sticky offset depends on it */
  --tap:           44px;   /* minimum touch target */

  /* ---- Radius ---- */
  --radius-sm: 6px;
  --radius:    8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* ---- Shadows (restrained) ---- */
  --shadow-sm: 0 1px 3px rgba(40,20,0,0.08);
  --shadow-md: 0 6px 20px rgba(40,20,0,0.11);
  --shadow-lg: 0 12px 36px rgba(40,20,0,0.16);

  /* ---- Transitions ---- */
  --t-fast:   0.18s ease;
  --t-base:   0.28s ease;
  --t-colors: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
  --ease:     all 0.3s ease;   /* legacy: page-level components; replace per phase */
}

/* Dark surfaces get a gold focus ring (gold-strong is for light surfaces) */
.navbar, .footer, .hero, .shop-hero, .about-section, .stats-section,
.energy-highlight, .energy-cta, .cart-header { --focus-ring: var(--gold); }

/* ---- Reset ---- */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:calc(var(--nav-h) + 8px); -webkit-text-size-adjust:100%; }
body { font-family:var(--font-body); color:var(--text); background:var(--white); line-height:1.6; -webkit-font-smoothing:antialiased; }
a { text-decoration:none; color:inherit; }
img { max-width:100%; display:block; }
ul { list-style:none; }
button { cursor:pointer; border:none; background:none; font-family:var(--font-body); }
input { font-family:var(--font-body); }

/* ---- Accessibility foundations ---- */
:focus-visible { outline:2px solid var(--focus-ring); outline-offset:3px; }
.sr-only {
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;
}
.skip-link {
  position:fixed; top:8px; left:8px; z-index:6000;
  background:var(--gold); color:var(--ink);
  padding:12px 20px; border-radius:var(--radius);
  font-size:var(--fs-sm); font-weight:600;
  transform:translateY(-200%); transition:transform var(--t-fast);
}
.skip-link:focus { transform:translateY(0); }

@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;
  }
  .fade-up { opacity:1; transform:none; }
  .product-card:hover .product-img-wrap img, .product-card:focus-within .product-img-wrap img { transform:none; }
}

/* ---- Shared Utilities ---- */
.container { max-width:var(--container); margin:0 auto; padding:0 var(--gutter); }
.section    { padding:80px 0; }

.section-title {
  font-family:var(--font-head);
  font-size:clamp(2rem, 4vw, 2.8rem);
  color:var(--text-dark);
  text-align:center;
  margin-bottom:12px;
}
.section-title span { color:var(--gold); }
.section-subtitle { text-align:center; color:var(--text-light); font-size:1rem; margin-bottom:16px; }

.gold-divider { width:56px; height:3px; background:var(--gold); margin:0 auto 52px; border-radius:2px; }


/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position:fixed; top:0; left:0; right:0; z-index:1000;
  background:var(--ink);
  box-shadow:0 1px 0 var(--ink-line);
  transition:box-shadow var(--t-base);
}
.navbar.scrolled { box-shadow:0 1px 0 var(--ink-line), 0 6px 24px rgba(0,0,0,0.35); }

.nav-container {
  max-width:var(--container-nav); margin:0 auto; padding:0 var(--gutter);
  height:var(--nav-h);
  display:flex; align-items:center; justify-content:space-between; gap:var(--s-5);
}

/* Brand: monogram + stacked wordmark */
.nav-logo {
  display:flex; align-items:center; gap:var(--s-3);
  flex-shrink:0; min-height:var(--tap);
}
.nav-logo-mark { width:30px; height:44px; flex-shrink:0; }
.nav-logo-text {
  display:flex; flex-direction:column; line-height:1;
  font-family:var(--font-head); font-size:1.3rem; font-weight:700;
  color:var(--white); letter-spacing:0.2em;
}
.logo-accent {
  display:block; margin-top:5px;
  font-family:var(--font-body); font-size:0.62rem; font-weight:500;
  color:var(--gold); letter-spacing:0.62em;
}

/* Desktop links */
.nav-links { display:flex; gap:2px; align-items:center; }
.nav-links a {
  position:relative;
  display:inline-flex; align-items:center; gap:6px;
  min-height:var(--tap); padding:0 12px;
  color:var(--on-dark-mid);
  font-size:0.78rem; font-weight:500;
  letter-spacing:0.08em; text-transform:uppercase; white-space:nowrap;
  transition:var(--t-colors);
}
.nav-links a::after {
  content:''; position:absolute; left:12px; right:12px; bottom:6px;
  height:1px; background:var(--gold);
  transform:scaleX(0); transform-origin:left; transition:transform 0.2s ease;
}
.nav-links a:hover { color:var(--white); }
.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after { transform:scaleX(1); }
.nav-links a.active { color:var(--gold); }
.nav-ext { font-size:0.62em; opacity:0.7; }

.nav-actions { display:flex; align-items:center; gap:var(--s-2); }

/* Cart button */
.cart-btn {
  position:relative;
  color:var(--white); font-size:1.05rem;
  width:var(--tap); height:var(--tap); border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  border:1px solid rgba(255,255,255,0.18);
  transition:var(--t-colors);
}
.cart-btn:hover { border-color:var(--gold); color:var(--gold); }

.cart-count {
  position:absolute; top:-4px; right:-4px;
  background:var(--gold); color:var(--ink);
  font-size:0.65rem; font-weight:700;
  min-width:18px; height:18px; padding:0 4px; border-radius:var(--radius-pill);
  display:none; align-items:center; justify-content:center;
}
.cart-count.visible { display:flex; }

/* Hamburger (shown below 900px) */
.hamburger {
  display:none; flex-direction:column; align-items:center; justify-content:center; gap:5px;
  width:var(--tap); height:var(--tap); border-radius:var(--radius);
}
.hamburger span { display:block; width:22px; height:2px; background:var(--white); border-radius:2px; transition:transform var(--t-base), opacity var(--t-fast); }
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }


/* =============================================
   HOME HERO
   ============================================= */
.hero {
  min-height:100vh;
  background:linear-gradient(140deg, #0a0800 0%, #110e00 45%, #1e1900 100%);
  display:flex; align-items:center;
  position:relative; overflow:hidden;
  padding:80px 24px 48px;
}

/* Decorative circles */
.hero::before {
  content:'';
  position:absolute; top:-15%; right:-8%;
  width:600px; height:600px; border-radius:50%;
  border:1px solid rgba(201,165,32,0.22);
  animation:spin 25s linear infinite;
}
.hero::after {
  content:'';
  position:absolute; top:10%; right:8%;
  width:300px; height:300px; border-radius:50%;
  border:1px solid rgba(201,165,32,0.12);
}
@keyframes spin { to { transform:rotate(360deg); } }

.hero-content { max-width:1200px; margin:0 auto; width:100%; position:relative; z-index:1; animation:heroIn 0.56s cubic-bezier(0.22,0.61,0.36,1) both; }
@keyframes heroIn { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.hero-subtitle { color:var(--gold); font-size:0.82rem; font-weight:600; letter-spacing:4px; text-transform:uppercase; margin-bottom:20px; }
.hero-title {
  font-family:var(--font-head);
  font-size:clamp(3rem, 8vw, 6rem);
  color:var(--white); line-height:1.05; margin-bottom:28px;
}
.hero-title .gold-line { color:var(--gold); display:block; }
.hero-description { color:rgba(255,255,255,0.68); font-size:1.05rem; max-width:520px; line-height:1.85; margin-bottom:44px; }

.hero-btn {
  display:inline-flex; align-items:center; gap:10px;
  background:var(--gold); color:var(--navy);
  padding:16px 34px; border-radius:var(--radius);
  font-weight:600; font-size:0.88rem; letter-spacing:1px; text-transform:uppercase;
  transition:background-color 0.2s ease, box-shadow 0.2s ease;
}
.hero-btn i { transition:transform 0.2s ease; }
.hero-btn:hover { background:var(--gold-light); box-shadow:0 8px 22px rgba(201,165,32,0.4); }
.hero-btn:hover i { transform:translateY(2px); }

/* Scroll indicator */
.scroll-hint {
  position:absolute; bottom:36px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:6px;
  color:rgba(255,255,255,0.4); font-size:0.72rem; letter-spacing:2px; text-transform:uppercase;
  animation:bounce 2s infinite;
}
.scroll-hint i { font-size:1rem; }
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }


/* =============================================
   BUSINESS CARDS (Home)
   Editorial treatment: flat columns divided by hairlines, no boxes.
   ============================================= */
.business-grid {
  display:grid;
  grid-template-columns:repeat(5, 1fr);
  gap:0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.business-card {
  position:relative;
  display:flex; flex-direction:column; align-items:flex-start;
  padding:var(--s-7) var(--s-5) var(--s-6);
  text-align:left;
}
.business-card + .business-card { border-left:1px solid var(--line); }
.business-card::before {
  content:''; position:absolute; top:-1px; left:0; right:0; height:2px;
  background:var(--gold); transform:scaleX(0); transform-origin:left;
  transition:transform var(--t-base);
}
.business-card:hover::before { transform:scaleX(1); }

.business-icon {
  margin-bottom:var(--s-5);
  color:var(--gold-strong); font-size:1.6rem; line-height:1;
  transition:color var(--t-base);
}
.business-card:hover .business-icon { color:var(--gold); }

.business-card h3 {
  font-family:var(--font-head); font-size:1.35rem; font-weight:500; line-height:1.25;
  color:var(--text); margin-bottom:var(--s-3);
}
.business-card p {
  font-size:var(--fs-sm); color:var(--text-muted); line-height:1.75;
  margin-bottom:var(--s-5);
}

.card-link {
  display:inline-flex; align-items:center; gap:var(--s-2);
  margin-top:auto; padding-bottom:3px;
  color:var(--gold-strong); font-size:var(--fs-xs); font-weight:600;
  letter-spacing:var(--track-caps); text-transform:uppercase;
  border-bottom:1px solid transparent;
  transition:var(--t-colors);
}
.card-link:hover { color:var(--text); border-bottom-color:var(--gold); }
.card-link i { font-size:0.85em; transition:transform 0.2s ease; }
.card-link:hover i { transform:translateX(3px); }

/* Below desktop: compact editorial rows instead of columns */
@media (max-width:1100px) {
  .business-grid { grid-template-columns:1fr; }
  .business-card {
    display:grid; grid-template-columns:40px 1fr; column-gap:var(--s-4);
    align-items:start; justify-items:start;
    padding:var(--s-5) 0;
  }
  .business-card + .business-card { border-left:0; border-top:1px solid var(--line); }
  .business-card::before { display:none; }
  .business-icon { grid-row:1 / span 3; margin:2px 0 0; font-size:1.4rem; }
  .business-card p { margin-bottom:var(--s-3); max-width:60ch; }
  .business-card h3 { font-size:1.25rem; margin-bottom:var(--s-2); }
  .card-link { margin-top:0; min-height:var(--tap); align-items:center; padding-bottom:0; }
}


/* =============================================
   ABOUT SECTION (Home)
   ============================================= */
.about-section { background:linear-gradient(140deg, #0f0c00 0%, #1e1900 100%); padding:80px 0; }

.about-inner { display:grid; grid-template-columns:1fr 1fr; gap:64px; align-items:center; }

.about-text h2 { font-family:var(--font-head); font-size:clamp(1.8rem,4vw,2.6rem); color:var(--white); margin-bottom:22px; }
.about-text h2 span { color:var(--gold); }
.about-text p { color:rgba(255,255,255,0.68); line-height:1.82; margin-bottom:16px; font-size:0.95rem; }

.about-values { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-top:28px; }
.value-item { display:flex; align-items:center; gap:10px; color:rgba(255,255,255,0.78); font-size:0.88rem; }
.value-item i { color:var(--gold); }

.about-visual { display:grid; grid-template-columns:1fr 1fr; gap:16px; }
.visual-box { border-radius:var(--radius-lg); padding:28px 20px; text-align:center; }
.visual-box:nth-child(odd)  { background:rgba(201,165,32,0.14); border:1px solid rgba(201,165,32,0.2); }
.visual-box:nth-child(even) { background:rgba(201,165,32,0.07); border:1px solid rgba(201,165,32,0.12); margin-top:24px; }
.visual-box .num  { font-family:var(--font-head); font-size:2rem; color:var(--gold); font-weight:700; }
.visual-box .lbl  { font-size:0.78rem; color:rgba(255,255,255,0.55); margin-top:4px; }


/* =============================================
   SHOP HERO
   ============================================= */
.shop-hero {
  min-height:280px;
  background:linear-gradient(140deg, #0f0c00 0%, #1e1900 100%);
  display:flex; align-items:center;
  padding-top:var(--nav-h);
  position:relative; overflow:hidden;
}
.shop-hero::after {
  content:''; position:absolute;
  right:-80px; top:50%; transform:translateY(-50%);
  width:380px; height:380px; border-radius:50%;
  border:1px solid rgba(201,165,32,0.25);
}

.shop-hero-content { position:relative; z-index:1; }
.shop-hero .tag { color:var(--gold); font-size:0.78rem; font-weight:600; letter-spacing:4px; text-transform:uppercase; margin-bottom:12px; }
.shop-hero h1   { font-family:var(--font-head); font-size:clamp(2rem,5vw,3.2rem); color:var(--white); margin-bottom:10px; }
.shop-hero .sub { color:rgba(255,255,255,0.65); font-size:0.95rem; }


/* =============================================
   SHOP CONTROLS (Sticky bar)
   ============================================= */
.shop-controls {
  background:var(--white);
  border-bottom:1px solid var(--gray);
  padding:18px 0;
  position:sticky; top:var(--nav-h); z-index:200;
  box-shadow:var(--shadow-sm);
}
.controls-inner { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; }

.search-bar {
  display:flex; align-items:center; gap:10px;
  background:var(--gray-light); border:1.5px solid var(--gray);
  border-radius:var(--radius); padding:10px 16px; width:280px;
  transition:var(--ease);
}
.search-bar:focus-within { border-color:var(--gold); box-shadow:0 0 0 3px rgba(201,165,32,0.18); }
.search-bar i     { color:var(--text-light); font-size:0.88rem; }
.search-bar input { border:none; background:none; outline:none; font-size:0.9rem; color:var(--text-dark); width:100%; }
.search-bar input::placeholder { color:var(--text-light); }

.filters { display:flex; gap:8px; flex-wrap:wrap; }
.filter-btn {
  padding:7px 18px; border-radius:50px;
  font-size:0.82rem; font-weight:500;
  color:var(--text-mid); border:1.5px solid var(--gray);
  transition:var(--t-colors);
}
.filter-btn:hover  { border-color:var(--gold); color:var(--gold-strong); }
.filter-btn.active { background:var(--gold); color:var(--navy); border-color:var(--gold); font-weight:600; }

.results-count { font-size:0.83rem; color:var(--text-light); margin-left:auto; white-space:nowrap; }

/* Shop controls below desktop: search, one swipeable category rail, count; not sticky */
@media (max-width:1024px) {
  .shop-controls { position:static; padding:var(--s-4) 0 var(--s-3); box-shadow:none; }
  .controls-inner { flex-direction:column; align-items:stretch; flex-wrap:nowrap; gap:var(--s-3); }
  .search-bar { width:100%; }

  .filters {
    flex-wrap:nowrap; gap:var(--s-2);
    overflow-x:auto; overscroll-behavior-x:contain; -webkit-overflow-scrolling:touch;
    scrollbar-width:none; -ms-overflow-style:none;
    margin:0 calc(var(--gutter) * -1); padding:2px var(--gutter);
  }
  .filters::-webkit-scrollbar { display:none; }
  .filter-btn {
    flex:0 0 auto; white-space:nowrap;
    min-height:40px; padding:0 var(--s-4);
    border-radius:var(--radius-sm); font-size:0.8rem;
  }
  .results-count { margin-left:0; }
  .shop-section { padding-top:var(--s-4); }
}


/* =============================================
   PRODUCT GRID
   ============================================= */
.shop-section { padding:40px 0 80px; background:var(--gray-light); min-height:480px; }

.product-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(240px, 1fr)); gap:24px; }

/* Product Card */
.product-card {
  background:var(--white);
  border-radius:var(--radius-lg); overflow:hidden;
  box-shadow:var(--shadow-sm); transition:box-shadow 0.3s ease; cursor:pointer;
  animation:fadeUp 0.4s ease both;
}
@media (hover:hover) { .product-card:hover { box-shadow:var(--shadow-md); } }

@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* Stagger animation for first 8 cards */
.product-card:nth-child(1){animation-delay:.05s}
.product-card:nth-child(2){animation-delay:.10s}
.product-card:nth-child(3){animation-delay:.15s}
.product-card:nth-child(4){animation-delay:.20s}
.product-card:nth-child(5){animation-delay:.25s}
.product-card:nth-child(6){animation-delay:.30s}
.product-card:nth-child(7){animation-delay:.35s}
.product-card:nth-child(8){animation-delay:.40s}

.product-img-wrap { position:relative; padding-top:72%; overflow:hidden; background:var(--gray-light); }
.product-img-wrap img {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; transition:transform 0.4s ease;
}
@media (hover:hover) {
  .product-card:hover .product-img-wrap img,
  .product-card:focus-within .product-img-wrap img { transform:scale(1.03); }
}

.product-badge {
  position:absolute; top:10px; left:10px;
  background:var(--gold); color:var(--navy);
  font-size:0.68rem; font-weight:700;
  padding:4px 10px; border-radius:50px; letter-spacing:0.5px; text-transform:uppercase;
}

.product-overlay {
  position:absolute; inset:0;
  background:rgba(13,27,42,0.48);
  display:flex; align-items:center; justify-content:center;
  opacity:0; transition:opacity 0.25s ease;
}
.product-card:hover .product-overlay { opacity:1; }
.quick-view-btn {
  background:var(--white); color:var(--navy);
  padding:9px 22px; border-radius:var(--radius);
  font-size:0.82rem; font-weight:600; transition:background-color 0.2s ease;
}
.quick-view-btn:hover { background:var(--gold); }

.product-info { padding:16px; }
.product-cat  { font-size:0.7rem; color:var(--gold); font-weight:600; letter-spacing:1px; text-transform:uppercase; margin-bottom:5px; }
.product-name { font-family:var(--font-head); font-size:0.98rem; color:var(--text-dark); margin-bottom:6px; line-height:1.35; }

.product-rating { display:flex; align-items:center; gap:5px; margin-bottom:12px; }
.product-rating .stars { color:var(--gold); font-size:0.78rem; letter-spacing:1px; }
.product-rating .count { font-size:0.74rem; color:var(--text-light); }

.product-footer { display:flex; align-items:center; justify-content:space-between; padding-top:12px; border-top:1px solid var(--gray-light); }
.product-price  { font-size:1.05rem; font-weight:700; color:var(--navy); }
.product-price .cur { font-size:0.78rem; color:var(--text-light); }

.add-btn {
  width:34px; height:34px; border-radius:50%;
  background:var(--gold); color:var(--navy);
  display:flex; align-items:center; justify-content:center;
  font-size:0.82rem; font-weight:700; transition:background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.add-btn:hover         { background:var(--gold-light); color:var(--navy); box-shadow:0 4px 16px rgba(201,165,32,0.45); }
.add-btn.added         { background:var(--green); color:var(--white); }

/* No results */
.no-results { grid-column:1/-1; text-align:center; padding:80px 0; color:var(--text-light); }
.no-results i { font-size:2.8rem; color:var(--gray); margin-bottom:14px; display:block; }
.no-results p { margin-bottom:6px; }

/* Loading state (API fetch) */
.shop-loading { grid-column:1/-1; text-align:center; padding:80px 0; color:var(--text-light); }
.shop-loading i { font-size:2rem; color:var(--gold); margin-bottom:14px; display:block; }
.shop-loading p { font-size:0.9rem; }


/* =============================================
   PRODUCT MODAL
   ============================================= */
.modal-overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,0.72); z-index:3000;
  display:flex; align-items:center; justify-content:center; padding:24px;
  opacity:0; visibility:hidden; transition:var(--ease);
}
.modal-overlay.open { opacity:1; visibility:visible; }

.product-modal {
  background:var(--white); border-radius:var(--radius-lg);
  width:100%; max-width:680px; max-height:90vh; overflow-y:auto;
  display:grid; grid-template-columns:1fr 1fr;
  box-shadow:var(--shadow-lg);
}

.modal-img { position:relative; min-height:300px; }
.modal-img img {
  width:100%; height:100%; object-fit:cover;
  border-radius:var(--radius-lg) 0 0 var(--radius-lg);
}
.modal-close {
  position:absolute; top:14px; right:14px;
  background:rgba(0,0,0,0.45); color:var(--white);
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  font-size:0.95rem; transition:var(--ease);
}
.modal-close:hover { background:rgba(0,0,0,0.72); }

.modal-content { padding:36px 30px; display:flex; flex-direction:column; }
.modal-cat   { font-size:0.7rem; color:var(--gold); font-weight:600; letter-spacing:2px; text-transform:uppercase; margin-bottom:10px; }
.modal-name  { font-family:var(--font-head); font-size:1.55rem; color:var(--text-dark); margin-bottom:10px; }
.modal-rating { display:flex; align-items:center; gap:6px; margin-bottom:16px; color:var(--gold); font-size:0.9rem; }
.modal-rating .r-count { color:var(--text-light); font-size:0.82rem; }
.modal-price { font-size:1.9rem; font-weight:700; color:var(--gold); margin-bottom:18px; }
.modal-desc  { font-size:0.88rem; color:var(--text-mid); line-height:1.75; flex:1; margin-bottom:24px; }

.modal-add-btn {
  width:100%; padding:14px;
  background:var(--gold); color:var(--navy); border-radius:var(--radius);
  font-size:0.88rem; font-weight:700; letter-spacing:1px; text-transform:uppercase;
  transition:var(--ease); display:flex; align-items:center; justify-content:center; gap:8px;
  box-shadow:0 4px 16px rgba(201,165,32,0.35);
}
.modal-add-btn:hover { background:var(--gold-light); color:var(--navy); box-shadow:0 6px 24px rgba(201,165,32,0.5); }


/* =============================================
   CART SIDEBAR
   ============================================= */
.cart-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,0.52);
  z-index:2000; opacity:0; visibility:hidden; transition:opacity 0.25s ease, visibility 0s linear 0.25s;
}
.cart-overlay.open { opacity:1; visibility:visible; transition-delay:0s; }

.cart-sidebar {
  position:fixed; top:0; right:0; width:380px; height:100vh;
  background:var(--white); z-index:2001;
  transform:translateX(110%); visibility:hidden;
  transition:transform 0.3s cubic-bezier(0.4,0,0.2,1), visibility 0s linear 0.3s;
  display:flex; flex-direction:column;
  box-shadow:var(--shadow-lg);
}
.cart-sidebar.open { transform:translateX(0); visibility:visible; transition-delay:0s; }

.cart-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:22px 24px; border-bottom:1px solid var(--gray);
  background:linear-gradient(135deg, #0f0c00 0%, #1e1900 100%); color:var(--white); flex-shrink:0;
}
.cart-header h3 { font-family:var(--font-head); font-size:1.2rem; }
.cart-header .hcount { font-size:0.78rem; color:var(--gold); margin-top:2px; }

.close-cart {
  color:var(--white); font-size:1.1rem;
  width:34px; height:34px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  transition:var(--ease);
}
.close-cart:hover { background:rgba(255,255,255,0.15); }

.cart-items { flex:1; overflow-y:auto; padding:12px 16px; }

.cart-empty {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  height:100%; text-align:center; color:var(--text-light); gap:10px;
}
.cart-empty i { font-size:2.8rem; color:var(--gray); }

.cart-item {
  display:flex; gap:12px; padding:14px 0;
  border-bottom:1px solid var(--gray-light); align-items:flex-start;
}
.cart-item-img { width:68px; height:68px; object-fit:cover; border-radius:var(--radius); flex-shrink:0; }
.cart-item-info { flex:1; }
.ci-name  { font-size:0.88rem; font-weight:500; margin-bottom:4px; line-height:1.3; }
.ci-price { font-size:0.88rem; color:var(--gold); font-weight:700; margin-bottom:8px; }

.qty-row { display:flex; align-items:center; gap:10px; }
.qty-btn {
  width:26px; height:26px; border-radius:50%;
  border:1.5px solid var(--gray); font-size:0.88rem; color:var(--text-mid);
  display:flex; align-items:center; justify-content:center;
  transition:var(--ease);
}
.qty-btn:hover { border-color:var(--gold); color:var(--gold); }
.qty-num { font-size:0.9rem; font-weight:600; min-width:20px; text-align:center; }

.rm-btn { color:var(--red); font-size:0.82rem; padding:4px; border-radius:4px; transition:var(--ease); margin-left:auto; align-self:center; }
.rm-btn:hover { background:rgba(231,76,60,0.1); }

.cart-footer { padding:18px 22px; border-top:1px solid var(--gray); background:var(--gray-light); flex-shrink:0; }
.cart-total { display:flex; justify-content:space-between; align-items:center; margin-bottom:14px; }
.cart-total .lbl  { font-size:0.88rem; color:var(--text-mid); }
.cart-total .amt  { font-size:1.3rem; font-weight:700; color:var(--gold); }

.checkout-btn {
  width:100%; padding:14px;
  background:var(--gold); color:var(--navy); border-radius:var(--radius);
  font-size:0.9rem; font-weight:700; letter-spacing:1px; text-transform:uppercase;
  transition:var(--ease); margin-bottom:8px;
  box-shadow:0 4px 16px rgba(201,165,32,0.35);
}
.checkout-btn:hover { background:var(--gold-light); color:var(--navy); box-shadow:0 6px 24px rgba(201,165,32,0.5); }

.clear-btn { width:100%; padding:8px; color:var(--text-light); font-size:0.8rem; transition:var(--ease); }
.clear-btn:hover { color:var(--red); }

/* Cart bump animation */
@keyframes bump { 0%,100%{transform:scale(1)} 50%{transform:scale(1.4)} }
.cart-count.bump { animation:bump 0.3s ease; }


/* =============================================
   TOAST NOTIFICATION
   ============================================= */
.toast {
  position:fixed; bottom:24px; left:50%;
  transform:translateX(-50%) translateY(100px);
  background:linear-gradient(135deg, #1a1500, #0f0c00); color:var(--white);
  padding:12px 22px; border-radius:var(--radius);
  font-size:0.88rem; font-weight:500;
  display:flex; align-items:center; gap:10px;
  z-index:5000; box-shadow:0 8px 32px rgba(201,165,32,0.25), var(--shadow-lg);
  border:1px solid rgba(201,165,32,0.2);
  transition:transform 0.35s cubic-bezier(0.4,0,0.2,1);
  white-space:nowrap;
}
.toast.show { transform:translateX(-50%) translateY(0); }
.toast i { color:var(--gold); }


/* =============================================
   ENERGY SOLUTIONS PAGE
   ============================================= */
.energy-hero { background:linear-gradient(140deg, #0a1f0e 0%, #163a1f 100%); }
.energy-hero h1 { color:#6de09e; }
.energy-hero .tag { color:#6de09e; }

.benefits-section { padding:80px 0; background:var(--white); }

.benefits-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px, 1fr)); gap:28px; }

.benefit-card {
  padding:34px 26px; border-radius:var(--radius-lg);
  border:1px solid var(--gray); transition:var(--ease); position:relative; overflow:hidden;
}
.benefit-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg, var(--green), var(--green-light));
}
.benefit-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); }

.benefit-icon {
  width:52px; height:52px; border-radius:var(--radius);
  background:linear-gradient(135deg, var(--green), var(--green-light));
  display:flex; align-items:center; justify-content:center;
  color:var(--white); font-size:1.3rem; margin-bottom:18px;
}
.benefit-card h3 { font-family:var(--font-head); font-size:1.15rem; margin-bottom:10px; }
.benefit-card p  { font-size:0.86rem; color:var(--text-mid); line-height:1.7; }

/* Stats Bar */
.stats-section { background:linear-gradient(135deg, #0f0c00 0%, #1e1900 100%); padding:56px 0; }
.stats-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:28px; text-align:center; }
.stat-num  { font-family:var(--font-head); font-size:2.4rem; color:var(--gold); font-weight:700; }
.stat-lbl  { color:rgba(255,255,255,0.65); font-size:0.82rem; margin-top:4px; }

/* Process Steps */
.process-section { padding:80px 0; background:var(--gray-light); }
.process-steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:24px; }
.process-step { text-align:center; padding:24px 16px; }
.step-num {
  width:48px; height:48px; border-radius:50%;
  background:var(--gold); color:var(--text-dark);
  font-weight:700; font-size:1.2rem;
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 16px;
}
.process-step h4 { font-family:var(--font-head); margin-bottom:8px; }
.process-step p  { font-size:0.84rem; color:var(--text-mid); }

/* Energy Business Highlight */
.energy-highlight {
  background:linear-gradient(160deg, #071a0b 0%, #0e2d14 55%, #122e19 100%);
  padding:88px 0;
  text-align:center;
}
.energy-hl-tag {
  color:#6de09e; font-size:0.78rem; font-weight:600;
  letter-spacing:4px; text-transform:uppercase; margin-bottom:18px;
}
.energy-hl-title {
  font-family:var(--font-head);
  font-size:clamp(2rem,4.5vw,3.2rem);
  color:var(--white); line-height:1.18; margin-bottom:22px;
}
.energy-hl-title span { color:#6de09e; }
.energy-hl-sub {
  color:rgba(255,255,255,0.65); font-size:1rem;
  max-width:640px; margin:0 auto 60px; line-height:1.85;
}
.energy-feature-row {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:24px; text-align:left;
}
.energy-feature-card {
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(109,224,158,0.18);
  border-radius:var(--radius-lg); padding:40px 32px;
  transition:var(--ease); position:relative; overflow:hidden;
}
.energy-feature-card::before {
  content:''; position:absolute; top:0; left:0; right:0; height:3px;
  background:linear-gradient(90deg,#27ae60,#6de09e);
}
.energy-feature-card:hover {
  background:rgba(255,255,255,0.09);
  transform:translateY(-6px);
  box-shadow:0 20px 52px rgba(0,0,0,0.35);
}
.energy-feature-card--accent {
  background:rgba(109,224,158,0.1);
  border-color:rgba(109,224,158,0.38);
}
.efc-icon {
  width:56px; height:56px; border-radius:var(--radius);
  background:rgba(109,224,158,0.14);
  display:flex; align-items:center; justify-content:center;
  color:#6de09e; font-size:1.4rem; margin-bottom:22px;
}
.efc-stat {
  font-family:var(--font-head);
  font-size:2.8rem; font-weight:700;
  color:#6de09e; line-height:1; margin-bottom:10px;
}
.efc-title {
  font-family:var(--font-head);
  font-size:1.18rem; color:var(--white); margin-bottom:12px;
}
.efc-desc {
  font-size:0.86rem; color:rgba(255,255,255,0.62); line-height:1.78;
}

/* Energy CTA */
.energy-cta { padding:80px 0; background:linear-gradient(140deg,#0a1f0e,#163a1f); text-align:center; color:var(--white); }
.energy-cta h2 { font-family:var(--font-head); font-size:2.4rem; margin-bottom:14px; }
.energy-cta p  { color:rgba(255,255,255,0.68); margin-bottom:34px; }
.green-btn {
  display:inline-block; padding:16px 40px;
  background:var(--green); color:var(--white); border-radius:var(--radius);
  font-weight:600; letter-spacing:1px; text-transform:uppercase; transition:var(--ease);
}
.green-btn:hover { background:var(--green-light); transform:translateY(-2px); box-shadow:0 10px 28px rgba(39,174,96,0.38); }


/* =============================================
   FOOTER
   ============================================= */
.footer {
  background:var(--ink);
  border-top:1px solid var(--ink-line);
  padding:var(--s-8) 0 var(--s-5);
  color:var(--on-dark-mid);
}

.footer-grid {
  display:grid; grid-template-columns:1.6fr 1fr 1fr 1.3fr;
  gap:var(--s-7); margin-bottom:var(--s-7);
}

.footer-logo {
  display:inline-flex; align-items:center; gap:var(--s-3);
  margin-bottom:var(--s-4);
  font-family:var(--font-head); font-size:1.2rem; font-weight:700;
  color:var(--white); letter-spacing:0.2em; line-height:1;
}
.footer-logo-mark { width:34px; height:50px; flex-shrink:0; }
.footer-logo-text { display:flex; flex-direction:column; }
.footer-logo-text span {
  display:block; margin-top:6px;
  font-family:var(--font-body); font-size:0.62rem; font-weight:500;
  color:var(--gold); letter-spacing:0.62em;
}

.footer-brand p { max-width:340px; font-size:var(--fs-sm); color:var(--on-dark-low); line-height:1.8; }

.footer-col h3 {
  font-family:var(--font-body); font-size:var(--fs-xs); font-weight:600;
  color:var(--gold); letter-spacing:var(--track-caps); text-transform:uppercase;
  margin-bottom:var(--s-4);
}
.footer-col li { margin-bottom:var(--s-1); }
.footer-col a,
.footer-col li > span { font-size:var(--fs-sm); color:var(--on-dark-mid); }
.footer-col li > span { display:inline-block; padding:4px 0; }
.footer-col a { display:inline-block; padding:4px 0; transition:var(--t-colors); }
.footer-col a:hover { color:var(--gold); }

.footer-contact li { display:flex; align-items:baseline; gap:var(--s-3); }
.footer-contact i { width:14px; flex-shrink:0; text-align:center; font-size:0.8rem; color:var(--gold); }

.footer-bottom {
  border-top:1px solid rgba(255,255,255,0.1); padding-top:var(--s-5);
  display:flex; justify-content:space-between; align-items:center; gap:var(--s-4);
  font-size:var(--fs-xs); color:var(--on-dark-low);
}
.footer-bottom a { color:var(--gold); }

/* Social icons: markup removed until real account URLs are supplied; styles kept for restoration */
.socials { display:flex; gap:10px; }
.soc-link {
  width:var(--tap); height:var(--tap); border-radius:50%;
  border:1px solid rgba(255,255,255,0.2);
  display:flex; align-items:center; justify-content:center;
  color:var(--on-dark-mid); font-size:0.82rem; transition:var(--t-colors);
}
.soc-link:hover { background:var(--gold); border-color:var(--gold); color:var(--ink); }

/* Fade-up animation for home page cards */
/* Hidden only when scripting is available, so content stays visible if JS is off or fails */
@media (scripting:enabled) {
  .fade-up { opacity:0; transform:translateY(16px); transition:opacity 0.45s ease, transform 0.45s ease; }
  .fade-up.visible { opacity:1; transform:translateY(0); }
  .fade-up:nth-child(2){transition-delay:.06s}
  .fade-up:nth-child(3){transition-delay:.12s}
  .fade-up:nth-child(4){transition-delay:.18s}
  .fade-up:nth-child(5){transition-delay:.24s}
}


/* =============================================
   CHECKOUT FORM PANEL (inside cart sidebar)
   ============================================= */
.cf-panel {
  display:none; flex:1; overflow-y:auto; flex-direction:column;
}
.cf-panel.active { display:flex; }

.cf-panel-inner { padding:18px 22px 28px; }

.cf-back {
  display:inline-flex; align-items:center; gap:8px;
  color:var(--text-mid); font-size:0.82rem; font-weight:500;
  padding:6px 0; margin-bottom:16px; transition:var(--ease);
}
.cf-back:hover { color:var(--gold); }
.cf-back i { font-size:0.75rem; transition:transform 0.2s ease; }
.cf-back:hover i { transform:translateX(-3px); }

.cf-title {
  font-family:var(--font-head); font-size:1.12rem;
  color:var(--text-dark); margin-bottom:16px;
}

.cf-field { margin-bottom:13px; }
.cf-field label {
  display:block; font-size:0.72rem; font-weight:600;
  color:var(--text-mid); margin-bottom:5px;
  letter-spacing:0.4px; text-transform:uppercase;
}
.cf-req { color:var(--red); }
.cf-field label small { font-weight:400; text-transform:none; color:var(--text-light); }

.cf-field input,
.cf-field textarea {
  width:100%; padding:9px 12px;
  border:1.5px solid var(--gray); border-radius:var(--radius);
  font-size:0.88rem; color:var(--text-dark); background:var(--white);
  outline:none; transition:var(--ease); resize:none;
  font-family:var(--font-body);
}
.cf-field input:focus,
.cf-field textarea:focus {
  border-color:var(--gold);
  box-shadow:0 0 0 3px rgba(201,165,32,0.15);
}
.cf-field input.cf-invalid,
.cf-field textarea.cf-invalid { border-color:var(--red); }

.cf-error {
  color:var(--red); font-size:0.8rem;
  min-height:18px; margin-bottom:10px; line-height:1.4;
}

.cf-submit {
  display:flex; align-items:center; justify-content:center; gap:8px;
  margin-top:4px;
}
.cf-submit:disabled { opacity:0.65; cursor:not-allowed; }


/* =============================================
   ORDER SUCCESS PANEL (inside cart sidebar)
   ============================================= */
.cs-panel {
  display:none; flex:1;
  align-items:center; justify-content:center;
}
.cs-panel.active { display:flex; }

.cs-inner { text-align:center; padding:32px 24px; }

.cs-icon {
  font-size:3.4rem; color:var(--green); margin-bottom:14px;
  animation:csPopIn 0.35s ease-out both;
}
@keyframes csPopIn { from{opacity:0;transform:scale(0.9)} to{opacity:1;transform:scale(1)} }

.cs-heading {
  font-family:var(--font-head); font-size:1.5rem;
  color:var(--text-dark); margin-bottom:16px;
}

.cs-ref {
  display:inline-block;
  font-size:0.9rem; font-weight:700; letter-spacing:1px; color:var(--gold);
  background:rgba(201,165,32,0.1); border:1px solid rgba(201,165,32,0.3);
  border-radius:var(--radius); padding:8px 18px; margin-bottom:10px;
}

.cs-total-confirmed {
  font-size:1.05rem; font-weight:700; color:var(--text-dark); margin-bottom:12px;
}

.cs-note {
  font-size:0.82rem; color:var(--text-light);
  line-height:1.65; margin-bottom:26px;
}


/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width:1024px) {
  .footer-grid { grid-template-columns:1fr 1fr; gap:var(--s-6) var(--s-7); }
  .about-inner { grid-template-columns:1fr; gap:40px; }
  .about-visual { display:none; }
  .stats-grid { grid-template-columns:repeat(2,1fr); gap:24px; }
}

/* Navigation collapses to the hamburger menu below 900px (six links + logo + cart need the room) */
@media (max-width:900px) {
  .nav-links {
    display:flex; position:absolute; top:var(--nav-h); left:0; right:0;
    visibility:hidden; opacity:0; transform:translateY(-8px); pointer-events:none;
    transition:opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
    flex-direction:column; align-items:stretch; gap:0;
    background:var(--ink-2);
    padding:var(--s-2) var(--gutter) var(--s-5);
    border-bottom:1px solid var(--ink-line);
    box-shadow:0 16px 32px rgba(0,0,0,0.35);
  }
  .nav-links.open { visibility:visible; opacity:1; transform:translateY(0); pointer-events:auto; transition-delay:0s; }
  .nav-links li + li { border-top:1px solid rgba(255,255,255,0.07); }
  .nav-links a {
    min-height:52px; padding:0 var(--s-2);
    font-size:0.9rem; letter-spacing:0.1em;
  }
  .nav-links a::after { left:0; right:auto; top:12px; bottom:12px; width:2px; height:auto; transform:scaleY(0); transform-origin:center; }
  .nav-links a:hover::after,
  .nav-links a.active::after { transform:scaleY(1); }
  .nav-links a.active { padding-left:var(--s-4); }
  .hamburger { display:flex; }
}

@media (max-width:768px) {
  .energy-feature-row { grid-template-columns:1fr; }

  .product-modal  { grid-template-columns:1fr; }
  .modal-img img  { border-radius:var(--radius-lg) var(--radius-lg) 0 0; max-height:240px; }
  .modal-content  { padding:24px; }
  .modal-img { min-height:0; }

  .cart-sidebar   { width:100%; max-width:380px; }
  .footer-grid    { grid-template-columns:1fr; gap:var(--s-6); }
  .footer-bottom  { flex-direction:column; align-items:flex-start; }
}

@media (max-width:480px) {
  :root { --gutter:20px; }
  .business-grid  { grid-template-columns:1fr; }
  .product-grid   { grid-template-columns:repeat(auto-fill, minmax(155px,1fr)); gap:14px; }
  .stats-grid     { grid-template-columns:repeat(2,1fr); }
}
