/* ==========================================================================
   Akshat Agni EV Motors — design system
   Re-theme by editing the :root tokens only.
   ========================================================================== */

/* Self-hosted Noto Sans (variable). Two files cover Latin + Devanagari.
   The Devanagari file is only downloaded when Devanagari text is on the page. */

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/noto-sans-latin.10f8972e3579.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Noto Sans';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/noto-sans-devanagari.e8074dc8ec2b.woff2") format('woff2');
  /* The currency block (U+20B8-20E7, which includes "₹") is deliberately
     left out: including it made every English page download the 99 KB
     Devanagari file just to draw a rupee sign. The system font covers it. */
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

:root {
  /* Brand */
  --brand-900: #06301F;
  --brand-700: #0A5C3C;
  --brand-600: #0B7A4F;
  --brand-500: #059669;
  --brand-300: #6FCFA6;
  --brand-100: #E6F6EE;
  --brand-050: #F3FBF7;

  /* Accent — CTAs */
  --accent-700: #8F3C06;
  --accent-600: #B04E08;
  --accent-500: #EA7317;
  --accent-300: #F6B47B;
  --accent-100: #FFF2E4;

  /* Neutrals */
  --ink: #12211A;
  --ink-2: #4A5B52;
  --ink-3: #5A6A62;
  --line: #DCE7E0;
  --line-strong: #8AA195;
  --surface: #FFFFFF;
  --page: #F6F9F7;
  --on-dark: #E8F5EE;

  /* Functional */
  --wa: #0E7C71;
  --wa-dark: #0A5F56;
  --focus: #0B7A4F;

  /* Spacing — 8px scale */
  --sp-0: 4px;
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-7: 64px;
  --sp-8: 80px;
  --sp-9: 96px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Soft shadows */
  --shadow-1: 0 1px 2px rgba(6, 48, 31, .06), 0 1px 3px rgba(6, 48, 31, .04);
  --shadow-2: 0 4px 12px rgba(6, 48, 31, .07), 0 2px 4px rgba(6, 48, 31, .04);
  --shadow-3: 0 12px 32px rgba(6, 48, 31, .10), 0 4px 8px rgba(6, 48, 31, .05);

  /* Type */
  --font: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --fs-xs: .875rem;  /* 14 — micro labels only */
  --fs-sm: 1rem;     /* 16 — smallest readable content text */
  --fs-base: 1rem;   /* 16 */
  --fs-md: 1.125rem; /* 18 */
  --fs-lg: 1.25rem;  /* 20 */
  --fs-xl: 1.5rem;   /* 24 */
  --fs-2xl: 1.875rem;/* 30 */
  --fs-3xl: 2.375rem;/* 38 */
  --fs-4xl: 3rem;    /* 48 */

  --wrap: 1180px;
  --header-h: 64px;
  /* Height of the sticky mobile call/WhatsApp bar. The compare tray stacks
     on top of it, so both need to agree on the number. */
  --action-bar-h: 64px;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--brand-050); }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--sp-2); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-xl); }
p { margin: 0 0 var(--sp-2); }
ul { margin: 0; padding-left: 1.25rem; }

button, input, select, textarea { font: inherit; color: inherit; }

/* Visible keyboard focus everywhere */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.on-dark :focus-visible, .footer :focus-visible { outline-color: var(--accent-300); }

.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: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--brand-700); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--r-md) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.section { padding-block: var(--sp-6); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.section-head h2 { margin: 0; }
.eyebrow {
  display: block; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: var(--sp-1);
}
.eyebrow.on-dark { color: var(--brand-300); }
.lead { font-size: var(--fs-md); color: var(--ink-2); }
.muted { color: var(--ink-2); }
.textlink { font-weight: 700; font-size: var(--fs-sm); color: var(--brand-600); }
.empty {
  padding: var(--sp-4); text-align: center; color: var(--ink-2);
  background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--r-lg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-1);
  min-height: 48px; padding: 0 var(--sp-3); border-radius: var(--r-md);
  font-size: var(--fs-base); font-weight: 700; line-height: 1.2; text-align: center;
  border: 2px solid transparent; cursor: pointer; transition: transform .12s ease, background-color .15s ease, border-color .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-500); color: var(--ink); border-color: var(--accent-500); }
.btn-primary:hover { background: var(--accent-600); border-color: var(--accent-600); color: #fff; }
.btn-brand { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.btn-brand:hover { background: var(--brand-700); border-color: var(--brand-700); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn-wa:hover { background: var(--wa-dark); border-color: var(--wa-dark); color: #fff; }
.btn-outline { background: var(--surface); color: var(--brand-700); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--brand-600); color: var(--brand-700); background: var(--brand-050); }
.btn-ghost-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.btn-sm { min-height: 44px; padding: 0 var(--sp-2); font-size: var(--fs-sm); }
/* An author `display` rule beats the UA stylesheet's `[hidden] { display:none }`,
   so buttons toggled with the `hidden` attribute would stay on screen. */
.btn[hidden] { display: none !important; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-3); box-shadow: var(--shadow-2); display: grid; gap: var(--sp-2);
}
.form-card label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: var(--sp-0); }
.form-card p { margin: 0; }
.form-card input:not([type=checkbox]):not([type=radio]),
.form-card select,
.form-card textarea {
  width: 100%; min-height: 48px; padding: 10px var(--sp-2);
  border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink);
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: var(--brand-600); }
.form-card textarea { min-height: 110px; resize: vertical; }
.form-card .helptext, .form-card .help { display: block; font-size: var(--fs-xs); color: var(--ink-2); margin-top: var(--sp-0); }
.form-card ul.errorlist { color: var(--accent-600); font-size: var(--fs-sm); margin: var(--sp-0) 0; padding-left: 1.1rem; }
.form-card label:has(input[type=checkbox]) { display: flex; align-items: center; gap: var(--sp-1); }
.form-card input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--brand-600); }
.form-intro { max-width: 680px; margin-bottom: var(--sp-4); }
.form-intro h1 { margin-bottom: var(--sp-1); }
.form-page { padding-block: var(--sp-5) var(--sp-8); }
.form-grid { display: grid; gap: var(--sp-2); }

/* Below-the-fold sections skip layout and paint until they are scrolled
   near the viewport. `contain-intrinsic-size: auto` lets the browser reuse
   the last measured height, so the scrollbar does not jump. */
.defer-render {
  content-visibility: auto;
  contain-intrinsic-size: auto 520px;
}

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  /* Deliberately no backdrop-filter: blurring the page behind a sticky
     header repaints on every scroll and was the single biggest main-thread
     cost on a throttled phone. */
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: var(--sp-2);
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: var(--r-md); object-fit: cover; flex: none; }
.brandmark {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: var(--r-md); background: var(--brand-700); color: var(--brand-100); font-weight: 800; font-size: var(--fs-sm);
}
.brand b { display: block; font-size: var(--fs-sm); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand small { display: block; font-size: 10px; letter-spacing: .1em; color: var(--brand-600); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: var(--sp-1); flex: none; }
.lang-toggle { display: flex; border: 1px solid var(--line-strong); border-radius: var(--r-pill); overflow: hidden; }
.lang-toggle a {
  display: grid; place-items: center; min-width: 40px; min-height: 40px;
  padding: 0 10px; font-size: var(--fs-xs); font-weight: 700; color: var(--ink-2);
}
.lang-toggle a[aria-current="true"] { background: var(--brand-600); color: #fff; }
/* The Hindi label uses a system font so English-only visitors do not
   download the 99 KB Devanagari webfont just to read "हि". */
.lang-toggle a.lang-hi { font-family: system-ui, 'Segoe UI', Tahoma, sans-serif; }
.call-pill {
  display: none; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border-radius: var(--r-pill); background: var(--brand-600); color: #fff; font-weight: 700; font-size: var(--fs-sm);
}
.call-pill:hover { background: var(--brand-700); color: #fff; }

.burger {
  display: grid; place-items: center; width: 48px; height: 48px; flex: none;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }

.drawer {
  position: fixed; inset: 0; z-index: 60; visibility: hidden;
}
.drawer[data-open="true"] { visibility: visible; }
.drawer-backdrop {
  position: absolute; inset: 0; background: rgba(6, 48, 31, .5); opacity: 0; transition: opacity .2s ease;
}
.drawer[data-open="true"] .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: var(--surface); box-shadow: var(--shadow-3);
  transform: translateX(100%); transition: transform .22s ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer[data-open="true"] .drawer-panel { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); border-bottom: 1px solid var(--line); }
.drawer-head strong { font-size: var(--fs-sm); }
.drawer-close { width: 48px; height: 48px; border: 1px solid var(--line-strong); background: var(--surface); border-radius: var(--r-md); font-size: var(--fs-lg); cursor: pointer; }
.drawer nav { display: flex; flex-direction: column; padding: var(--sp-2) var(--sp-3); gap: var(--sp-0); }
.drawer nav a {
  display: flex; align-items: center; min-height: 52px; padding: 0 var(--sp-2);
  border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; font-size: var(--fs-md);
}
.drawer nav a:last-child { border-bottom: 0; }
.drawer nav a:hover { color: var(--brand-600); background: var(--brand-050); }
.drawer-foot { margin-top: auto; padding: var(--sp-3); display: grid; gap: var(--sp-2); border-top: 1px solid var(--line); }

/* ---------- Offer banner ---------- */
.offer-banner {
  background: var(--brand-900); color: var(--on-dark);
  font-size: var(--fs-sm); font-weight: 600;
}
.offer-banner .wrap { display: flex; align-items: center; gap: var(--sp-2); padding-block: 10px; }
.offer-banner img { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: cover; flex: none; }
.offer-banner p { margin: 0; flex: 1; min-width: 0; }
.offer-banner a { color: var(--accent-300); font-weight: 700; white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--brand-900); color: #fff; isolation: isolate; }
.offer-banner + .hero { margin-top: 0; }
@media (min-width: 960px) {
  .offer-banner + .hero .hero-inner { padding-top: calc(var(--sp-8) + 20px); }
}
.hero-bg, .hero-media { position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center; overflow: hidden; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; }
.hero-bg::after, .hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 48, 31, .82) 0%, rgba(6, 48, 31, .55) 45%, rgba(6, 48, 31, .92) 100%); }
.hero-inner { padding-block: var(--sp-7) var(--sp-6); display: grid; gap: var(--sp-3); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px; align-self: start;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.hero h1 { font-size: var(--fs-3xl); max-width: 18ch; margin-bottom: var(--sp-2); }
.hero-sub { font-size: var(--fs-md); color: rgba(255, 255, 255, .88); max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.hero-photo-slot {
  border-radius: var(--r-lg); border: 1px dashed rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
  display: grid; place-items: center; gap: var(--sp-1);
  min-height: 200px; padding: var(--sp-3); text-align: center;
  color: rgba(255, 255, 255, .8); font-size: var(--fs-sm);
}
.hero-photo-slot svg { width: 150px; color: rgba(255, 255, 255, .55); }

/* ---------- Product cards ---------- */
.product-grid { display: grid; gap: var(--sp-3); grid-template-columns: 1fr; }
.product-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-2);
  display: flex; flex-direction: column;
}
.product-image { position: relative; aspect-ratio: 4 / 3; background: var(--brand-050); display: grid; place-items: center; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: contain; padding: var(--sp-2); }
.product-image .coming-flag {
  position: absolute; top: var(--sp-2); left: var(--sp-2);
  background: var(--brand-900); color: #fff; padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 11px; font-weight: 700;
}
.image-fallback { display: grid; place-items: center; gap: var(--sp-1); padding: var(--sp-2); text-align: center; }
.image-fallback svg { width: 60%; max-width: 190px; color: var(--brand-300); }
.image-fallback span { font-size: var(--fs-xs); color: var(--ink-2); }
.product-body { padding: var(--sp-2); display: flex; flex-direction: column; gap: var(--sp-1); flex: 1; }
.product-tag { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-600); }
.product-body h2 { font-size: var(--fs-lg); margin: 0; }
.product-body h2 a { color: var(--ink); }
.product-body h2 a:hover { color: var(--brand-600); }
.product-desc { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: var(--sp-1); }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--brand-050); border: 1px solid var(--line); color: var(--ink-2);
  border-radius: var(--r-pill); padding: 4px 10px; font-size: var(--fs-sm); font-weight: 600;
}
.chip b { color: var(--brand-700); font-weight: 700; }
.chip-placeholder { background: var(--page); color: var(--ink-3); font-style: italic; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-1); margin-top: var(--sp-1); }
.price-row .price-label { font-size: var(--fs-xs); color: var(--ink-2); }
.price-row strong { font-size: var(--fs-xl); color: var(--ink); }
.price-row .call-price { font-size: var(--fs-md); font-weight: 700; color: var(--brand-700); }
.price-row .mrp { text-decoration: line-through; color: var(--ink-3); font-size: var(--fs-sm); }
.price-row .discount { background: var(--accent-100); color: var(--accent-700); border-radius: var(--r-pill); padding: 2px 8px; font-size: var(--fs-xs); font-weight: 700; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-1); margin-top: var(--sp-2); }
.compare-check { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); min-height: 44px; cursor: pointer; }
.compare-check input { width: 20px; height: 20px; accent-color: var(--brand-600); }
.product-cta { min-height: 44px; padding: 0 var(--sp-2); border-radius: var(--r-md); border: 1px solid var(--line-strong); display: inline-flex; align-items: center; font-size: var(--fs-sm); font-weight: 700; color: var(--brand-700); background: var(--surface); }
.product-cta:hover { border-color: var(--brand-600); background: var(--brand-050); color: var(--brand-700); }

/* Sticky compare tray */
.compare-tray {
  /* How far the tray sits above the bottom edge. On phones the sticky
     call/WhatsApp bar owns the bottom, so the tray stacks above it. */
  --tray-offset: 0px;
  position: fixed; left: 0; right: 0; bottom: var(--tray-offset); z-index: 46;
  background: var(--brand-900); color: #fff; box-shadow: var(--shadow-3);
  transform: translateY(calc(100% + var(--tray-offset) + 24px));
  transition: transform .2s ease;
}
.compare-tray[data-visible="true"] { transform: translateY(0); }
.compare-tray .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); padding-block: var(--sp-1); }
.compare-tray p { margin: 0; font-size: var(--fs-sm); flex: 0 0 auto; }
.compare-slots { display: flex; gap: 6px; flex: 1 1 auto; min-width: 0; overflow-x: auto; }
.compare-slot { background: rgba(255, 255, 255, .14); border-radius: var(--r-sm); padding: 4px 8px; font-size: var(--fs-xs); font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-actions { display: flex; gap: var(--sp-1); flex: 0 0 auto; margin-left: auto; }

/* ---------- Compare page ---------- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.compare-table th, .compare-table td { padding: var(--sp-2); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; font-size: var(--fs-sm); }
.compare-table th { background: var(--brand-050); font-weight: 700; white-space: nowrap; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: 0; }
.compare-head-img { aspect-ratio: 4/3; background: var(--brand-050); border-radius: var(--r-md); margin-bottom: var(--sp-1); display: grid; place-items: center; overflow: hidden; }
.compare-head-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; gap: var(--sp-4); padding-block: var(--sp-4); }
.detail-gallery { display: grid; gap: var(--sp-1); }
.detail-main { aspect-ratio: 4/3; background: var(--brand-050); border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow-2); }
.detail-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: var(--sp-1); overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.thumb-btn { flex: none; width: 72px; aspect-ratio: 1; border: 2px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--brand-050); padding: 0; cursor: pointer; scroll-snap-align: start; }
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; }
.thumb-btn[aria-current="true"] { border-color: var(--brand-600); }
.detail-copy h1 { margin-bottom: var(--sp-1); }
.spec-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.spec-table th, .spec-table td { padding: 12px var(--sp-2); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); text-align: left; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { color: var(--ink-2); font-weight: 600; width: 44%; }
.who-card { background: var(--brand-050); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3); }
.who-card h2 { font-size: var(--fs-md); margin-bottom: var(--sp-1); }
.emi-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3); box-shadow: var(--shadow-1); }
.emi-grid { display: grid; gap: var(--sp-1); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.emi-card { background: var(--brand-050); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--sp-2); display: grid; gap: 2px; }
.emi-card strong { font-size: var(--fs-lg); }
.emi-card small { color: var(--ink-2); font-size: var(--fs-xs); }
.note { font-size: var(--fs-sm); color: var(--ink-2); }

/* ---------- Service tiles ---------- */
.tile-grid { display: grid; gap: var(--sp-2); grid-template-columns: 1fr; }
.tile {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-3); box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: var(--sp-1);
}
.tile-icon {
  width: 48px; height: 48px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--brand-100); color: var(--brand-700); font-size: var(--fs-xl);
}
.tile h2 { font-size: var(--fs-lg); margin: 0; }
.tile p { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }
.tile .btn { margin-top: auto; align-self: start; }

/* ---------- Why choose us ---------- */
.why-grid { display: grid; gap: var(--sp-2); grid-template-columns: 1fr; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3); box-shadow: var(--shadow-1); }
.why-card h3 { font-size: var(--fs-md); margin-bottom: var(--sp-1); display: flex; align-items: center; gap: var(--sp-1); }
.why-card p { margin: 0; color: var(--ink-2); font-size: var(--fs-sm); }
.placeholder-text { color: var(--accent-600); font-weight: 600; font-style: normal; }
.placeholder-chip {
  display: inline-block; background: var(--accent-100); color: var(--accent-700);
  border: 1px dashed var(--accent-300); border-radius: var(--r-sm);
  padding: 2px 8px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .02em;
}

/* ---------- Calculators ---------- */
.calc-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
.calc-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3); box-shadow: var(--shadow-2); }
.calc-field { display: grid; gap: 4px; margin-bottom: var(--sp-2); }
.calc-field label { font-size: var(--fs-sm); font-weight: 600; }
.calc-field input {
  width: 100%; min-height: 48px; padding: 10px var(--sp-2);
  border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface);
}
.calc-result { background: var(--brand-050); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3); display: grid; gap: var(--sp-1); }
.calc-row { display: flex; justify-content: space-between; gap: var(--sp-2); align-items: baseline; }
.calc-row span { color: var(--ink-2); font-size: var(--fs-sm); }
.calc-row strong { font-size: var(--fs-lg); }
.calc-saving { border-top: 1px solid var(--line); padding-top: var(--sp-2); margin-top: var(--sp-1); }
.calc-saving strong { font-size: var(--fs-2xl); color: var(--brand-700); }
.approx-tag { display: inline-block; background: var(--accent-100); color: var(--accent-700); border-radius: var(--r-pill); padding: 2px 10px; font-size: var(--fs-xs); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: var(--sp-1); }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.faq-q {
  width: 100%; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-2); background: none; border: 0; text-align: left; cursor: pointer;
  font-size: var(--fs-base); font-weight: 600; color: var(--ink);
}
.faq-q::after { content: '+'; font-size: var(--fs-xl); color: var(--brand-600); line-height: 1; flex: none; }
.faq-item[data-open="true"] .faq-q::after { content: '\2212'; }
.faq-a { padding: 0 var(--sp-2) var(--sp-2); color: var(--ink-2); font-size: var(--fs-sm); }
.faq-a[hidden] { display: none; }
.faq-confirm { display: inline-block; margin-top: var(--sp-1); background: var(--accent-100); color: var(--accent-700); border-radius: var(--r-sm); padding: 2px 8px; font-size: var(--fs-xs); font-weight: 700; }

/* ---------- Gallery ---------- */
.photo-grid { display: grid; gap: var(--sp-1); grid-template-columns: repeat(2, 1fr); }
.photo {
  position: relative; margin: 0; border-radius: var(--r-md); overflow: hidden;
  background: var(--brand-050); aspect-ratio: 1; border: 0; padding: 0; cursor: zoom-in; width: 100%;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 10px 8px; color: #fff;
  background: linear-gradient(transparent, rgba(6, 48, 31, .88)); font-size: var(--fs-xs); text-align: left;
}
.lightbox {
  position: fixed; inset: 0; z-index: 80; background: rgba(6, 48, 31, .94);
  display: none; align-items: center; justify-content: center; padding: var(--sp-2);
}
.lightbox[data-open="true"] { display: flex; }
.lightbox img { max-height: 80vh; width: auto; object-fit: contain; border-radius: var(--r-md); }
.lightbox-cap { color: #fff; text-align: center; margin-top: var(--sp-2); font-size: var(--fs-sm); max-width: 60ch; }
.lightbox-close {
  position: absolute; top: var(--sp-2); right: var(--sp-2); width: 48px; height: 48px;
  border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, .5); background: rgba(0, 0, 0, .35); color: #fff; font-size: var(--fs-xl); cursor: pointer;
}

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; gap: var(--sp-2); grid-template-columns: 1fr; }
.testi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--sp-3); box-shadow: var(--shadow-2); }
.testi-card blockquote { margin: 0 0 var(--sp-2); font-size: var(--fs-base); color: var(--ink); }
.testi-card figcaption { display: flex; align-items: center; gap: var(--sp-1); }
.testi-card img { width: 48px; height: 48px; border-radius: var(--r-pill); object-fit: cover; flex: none; }
.testi-name { font-weight: 700; font-size: var(--fs-sm); }
.testi-meta { font-size: var(--fs-xs); color: var(--ink-2); }
.stars { color: var(--accent-600); letter-spacing: .1em; font-size: var(--fs-sm); }

/* ---------- Category grid ---------- */
.category-grid { display: grid; gap: var(--sp-2); grid-template-columns: repeat(2, 1fr); }
.category-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-2); box-shadow: var(--shadow-1); display: grid; gap: var(--sp-0); color: var(--ink);
}
.category-card .icon { font-size: var(--fs-xl); }
.category-card b { font-size: var(--fs-base); }
.category-card small { color: var(--ink-2); font-size: var(--fs-xs); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: var(--sp-1); overflow-x: auto; padding-bottom: var(--sp-1); margin-bottom: var(--sp-3); -webkit-overflow-scrolling: touch; }
.filter {
  flex: none; min-height: 44px; display: inline-flex; align-items: center; padding: 0 var(--sp-2);
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2);
}
.filter.active { background: var(--brand-600); border-color: var(--brand-600); color: #fff; }

/* ---------- Page hero ---------- */
.page-hero { background: linear-gradient(180deg, var(--brand-050), var(--page)); padding-block: var(--sp-5) var(--sp-4); }
.page-hero h1 { margin-bottom: var(--sp-1); }
.page-hero p { color: var(--ink-2); max-width: 60ch; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--brand-900); color: #fff; border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-3); display: grid; gap: var(--sp-3);
}
.cta h2 { color: #fff; margin-bottom: var(--sp-1); }
.cta p { color: rgba(255, 255, 255, .85); margin: 0; }

/* ---------- Success ---------- */
.success { text-align: center; padding-block: var(--sp-7); display: grid; gap: var(--sp-2); justify-items: center; }
.success-icon { width: 64px; height: 64px; border-radius: var(--r-pill); background: var(--brand-100); color: var(--brand-700); display: grid; place-items: center; font-size: var(--fs-2xl); }
.success .ref { font-size: var(--fs-xl); font-weight: 700; color: var(--brand-700); letter-spacing: .04em; }

/* ---------- Footer ---------- */
.footer { background: var(--brand-900); color: var(--on-dark); margin-top: var(--sp-7); padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.foot-grid { display: grid; gap: var(--sp-4); padding-block: var(--sp-5) var(--sp-3); grid-template-columns: 1fr; }
.footer h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .1em; color: var(--brand-300); margin-bottom: var(--sp-2); }
.footer p { color: rgba(232, 245, 238, .82); font-size: var(--fs-sm); margin-bottom: var(--sp-1); }
.footer a { color: #fff; }
.footer a:hover { color: var(--accent-300); }
.foot-tel { display: inline-flex; align-items: center; gap: var(--sp-1); min-height: 48px; font-weight: 700; }
.foot-links { list-style: none; padding: 0; display: grid; gap: var(--sp-1); }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: var(--fs-sm); }
.map-embed { margin-top: var(--sp-2); border-radius: var(--r-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .18); }
.map-embed iframe { width: 100%; height: 260px; border: 0; display: block; }
.map-button {
  display: flex; align-items: center; justify-content: center; gap: var(--sp-1);
  width: 100%; min-height: 48px; border-radius: var(--r-md);
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .3); color: #fff;
  font-weight: 700; font-size: var(--fs-sm); cursor: pointer;
}
.copyright { border-top: 1px solid rgba(255, 255, 255, .14); padding-block: var(--sp-2); font-size: var(--fs-xs); color: rgba(232, 245, 238, .65); text-align: center; }

/* ---------- Sticky mobile action bar ---------- */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-1) calc(var(--sp-1) + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(6, 48, 31, .08);
}
.action-bar .btn { min-height: 48px; }

/* ---------- Messages ---------- */
.messages { padding-top: var(--sp-2); }
.msg { background: var(--brand-100); color: var(--brand-700); border: 1px solid var(--brand-300); border-radius: var(--r-md); padding: var(--sp-2); margin-bottom: var(--sp-1); font-size: var(--fs-sm); }

/* ---------- Search ---------- */
.searchbar { padding-block: var(--sp-3); }
.searchbar form { display: flex; gap: var(--sp-1); }
.searchbar input { flex: 1; min-height: 48px; padding: 0 var(--sp-2); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface); }
.searchbar button { min-height: 48px; padding: 0 var(--sp-3); border: 0; border-radius: var(--r-md); background: var(--brand-600); color: #fff; font-weight: 700; }

/* ---------- Gallery preview ---------- */
.gallery-preview { padding-block: var(--sp-6); }

/* ==========================================================================
   Tablet and up
   ========================================================================== */
@media (min-width: 600px) {
  .wrap { width: min(var(--wrap), 100% - 48px); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); }
  .calc-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .full { grid-column: 1 / -1; }
  h1 { font-size: var(--fs-4xl); }
  .hero h1 { font-size: var(--fs-4xl); }
}

/* ==========================================================================
   Desktop
   ========================================================================== */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .call-pill { display: inline-flex; }
  .burger { display: none; }
  .desktop-nav { display: flex; align-items: center; gap: var(--sp-3); }
  .desktop-nav a { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); padding: 6px 0; }
  .desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--brand-600); }
  .drawer { display: none !important; }
  .action-bar { display: none; }
  .footer { padding-bottom: 0; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .tile-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(6, 1fr); }
  .photo-grid { grid-template-columns: repeat(4, 1fr); }
  .hero-inner { grid-template-columns: 1.15fr .85fr; align-items: center; padding-block: var(--sp-8) var(--sp-7); }
  .hero h1 { font-size: 3.25rem; max-width: 16ch; }
  .hero-photo-slot { min-height: 340px; }
  .cta { grid-template-columns: 1fr auto; align-items: center; }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .compare-tray { left: auto; right: var(--sp-3); bottom: var(--sp-3); border-radius: var(--r-lg); max-width: 560px; }
  .compare-tray .wrap { padding: var(--sp-1) var(--sp-2); }
  .product-detail { grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: start; }
  .detail-main { aspect-ratio: 1; }
  .section { padding-block: var(--sp-7); }
}

/* Mobile-only helpers */
@media (max-width: 959px) {
  .desktop-nav { display: none; }
  .hide-mobile { display: none !important; }
  /* The compare tray stacks on top of the sticky call/WhatsApp bar so
     neither one hides the other. */
  .compare-tray { --tray-offset: calc(var(--action-bar-h) + var(--sp-2)); }
  .compare-slots { flex: 1 1 100%; }
  .compare-actions { flex: 1 1 auto; }
  .compare-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Modern enhancements — visual polish, mobile UX, performance
   ========================================================================== */

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Skeleton loaders ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--brand-050) 25%, var(--brand-100) 50%, var(--brand-050) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--r-md);
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.img-fade {
  opacity: 0;
  transition: opacity .3s ease;
}
.img-fade.loaded { opacity: 1; }

/* ---------- Card hover lift ---------- */
.product-card, .tile, .why-card, .testi-card, .category-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
  .product-card:hover, .tile:hover, .why-card:hover, .testi-card:hover, .category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3);
  }
}

/* ---------- Back to top ---------- */
.back-to-top {
  position: fixed; right: var(--sp-2); bottom: calc(var(--action-bar-h) + var(--sp-2) + 8px);
  width: 48px; height: 48px; border-radius: var(--r-pill);
  background: var(--brand-600); color: #fff; border: 0; cursor: pointer;
  box-shadow: var(--shadow-3); z-index: 44;
  display: grid; place-items: center; font-size: var(--fs-lg);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (min-width: 960px) {
  .back-to-top { bottom: var(--sp-3); }
}

/* ---------- Mobile bottom navigation ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 47;
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(6, 48, 31, .08);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; min-height: 56px; padding: 6px 4px;
  font-size: 10px; font-weight: 600; color: var(--ink-2);
  text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.bottom-nav a .bn-icon { font-size: var(--fs-lg); line-height: 1; }
.bottom-nav a.active { color: var(--brand-600); }
.bottom-nav a.active .bn-icon { transform: scale(1.1); }
.bottom-nav a:active { background: var(--brand-050); }
@media (min-width: 960px) {
  .bottom-nav { display: none; }
}

/* ---------- Improved sticky action bar ---------- */
.action-bar {
  background: linear-gradient(180deg, var(--surface) 0%, var(--page) 100%);
  backdrop-filter: blur(8px);
}

/* ---------- Form input improvements ---------- */
.form-card input:not([type=checkbox]):not([type=radio]),
.form-card select,
.form-card textarea {
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px var(--brand-100);
  outline: none;
}
.form-card label { transition: color .15s ease; }
.form-card .field-focused label { color: var(--brand-600); }

/* ---------- Improved button press feedback ---------- */
.btn {
  transition: transform .12s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary, .btn-brand, .btn-wa {
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
}
.btn-primary:hover, .btn-brand:hover, .btn-wa:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  transform: translateY(-1px);
}

/* ---------- Section rhythm improvements ---------- */
.section { padding-block: var(--sp-5); }
@media (min-width: 600px) { .section { padding-block: var(--sp-6); } }
@media (min-width: 960px) { .section { padding-block: var(--sp-7); } }

/* ---------- Better empty states ---------- */
.empty {
  padding: var(--sp-5); text-align: center;
  color: var(--ink-2); background: var(--surface);
  border: 2px dashed var(--line); border-radius: var(--r-xl);
  font-size: var(--fs-sm);
}

/* ---------- Improved hero badge ---------- */
.hero-badge {
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .3);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}

/* ---------- Better product image loading ---------- */
.product-image img {
  transition: opacity .3s ease, transform .3s ease;
}
.product-image:hover img { transform: scale(1.03); }

/* ---------- Improved footer ---------- */
.footer { position: relative; }
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand-300), transparent);
}

/* ---------- Mobile tap target improvements ---------- */
@media (max-width: 959px) {
  .btn, .filter, .thumb-btn, .photo { min-height: 48px; }
  .faq-q { min-height: 56px; }
  .category-card { min-height: 80px; }
}

/* ---------- Smooth scrolling improvements ---------- */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

/* ---------- Print ---------- */

@media print {
  .top, .action-bar, .compare-tray, .footer, .offer-banner { display: none !important; }
}
