/* ==========================================================================
   Components — buttons, cards, tables, accordion, modal, badges, breadcrumb,
   hero, trust strip, sub-nav, floating CTAs, sticky mobile bar
   ========================================================================== */

/* ---------- Icons ---------- */
.ic { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.15em; }
.ic--solid { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2); justify-content: center;
  font-weight: var(--fw-semibold); font-size: var(--fs-400);
  padding: var(--sp-3) var(--sp-4); border-radius: var(--radius);
  border: 2px solid transparent; transition: transform .1s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
/* Compact header CTAs are pill-shaped; primary content buttons stay rounded-rect */
.header-cta .btn, .header-cta a { border-radius: var(--radius-pill); }
.btn:hover { transform: translateY(-1px); }
.btn-cta { background: var(--c-cta); color: var(--c-ink); }
.btn-cta:hover { background: var(--c-cta-hover); }
.btn-primary { background: var(--c-primary); color: #fff; }
.btn-primary:hover { background: var(--c-primary-600); }
.btn-outline { background: transparent; border-color: var(--c-primary); color: var(--c-primary); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn-wa { background: var(--c-whatsapp); color: var(--c-primary); }
.btn-block { width: 100%; }
.btn-sm { padding: var(--sp-2) var(--sp-3); font-size: var(--fs-300); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media img { width: 100%; aspect-ratio: 12/7; object-fit: cover; }
.card__body { padding: var(--sp-4); }
.card__title { font-size: var(--fs-600); margin-bottom: var(--sp-2); }

.card-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; }
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Tables (spec / price / highlights) ---------- */
/* ---------- Section titles (signature centered gold-underline accent) ---------- */
.main-h2 {
  display: table; margin: 0 auto var(--sp-5); position: relative; padding-bottom: var(--sp-3);
  text-align: center;
}
.main-h2::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 64px; height: 3px; background: var(--c-cta); border-radius: 2px;
}
.spec-table-wrap { overflow-x: auto; margin-block: var(--sp-4); border-radius: var(--radius); border: 1px solid var(--c-border); }
.spec-table { width: 100%; border-collapse: collapse; background: #fff; }
.spec-table caption { font-weight: var(--fw-bold); padding: var(--sp-3); text-align: center; color: var(--c-primary); background: var(--c-bg-alt); }
.spec-table th, .spec-table td { padding: var(--sp-3); border-bottom: 1px solid var(--c-border); text-align: left; }
.spec-table tr:nth-child(even) { background: var(--c-bg-alt); }
.btn-link-price { background: none; border: 0; padding: 0; color: var(--c-secondary); font-weight: var(--fw-semibold); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font: inherit; }
.btn-link-price:hover { color: var(--c-primary); }
.price-table-layout { display: grid; gap: var(--sp-4); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .price-table-layout { grid-template-columns: 2fr 1fr; } }
.costing-box { background: var(--c-bg-alt); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--sp-3); text-align: center; }
.costing-box img { border-radius: var(--radius); margin-bottom: var(--sp-3); }

/* ---------- Feature/advantage cards (bold-lead-in paragraph clusters) ---------- */
.feature-card .card__body { padding: var(--sp-4); }
.feature-card__icon {
  display: flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: var(--c-bg-alt); color: var(--c-cta); margin-bottom: var(--sp-3); font-size: 1.25rem;
}
.feature-card .card__title { font-size: var(--fs-500); margin-bottom: var(--sp-2); }
.feature-card p:last-child { margin-bottom: 0; }
.spec-table thead th { background: var(--c-primary); color: #fff; font-family: var(--font-body); }
.spec-table th { font-weight: var(--fw-semibold); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: var(--sp-1); padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-pill); font-size: var(--fs-300); font-weight: var(--fw-semibold); background: var(--c-bg-alt); color: var(--c-primary); border: 1px solid var(--c-border); }

/* ---------- Breadcrumb ---------- */
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: var(--sp-2); padding: 0; margin: 0; font-size: var(--fs-400); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); color: rgba(255,255,255,.5); }
.breadcrumb a { color: #F2D98C; }
.breadcrumb .active { color: #fff; }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(180deg, #0f2a1f, var(--c-primary));
  color: #fff; padding: var(--sp-6) 0 var(--sp-5); text-align: center;
}
.page-banner h1 { color: #fff; margin-bottom: var(--sp-3); }
.page-banner .breadcrumb { justify-content: flex-start; text-align: left; }

/* ---------- Hero (homepage) ---------- */
.hero { background: linear-gradient(180deg, #0f2a1f, var(--c-primary)); }
.hero-grid {
  display: grid; gap: var(--sp-5); align-items: center; padding-block: var(--sp-6);
  grid-template-columns: 1fr;
}
@media (min-width: 992px) { .hero-grid { grid-template-columns: 1.3fr 0.9fr; } }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2); color: #F2D98C; font-weight: var(--fw-semibold);
  font-size: var(--fs-300); margin-bottom: var(--sp-3); background: rgba(201,162,39,.18);
  border: 1px solid rgba(201,162,39,.4); padding: var(--sp-1) var(--sp-3); border-radius: var(--radius-pill);
  text-transform: uppercase; letter-spacing: .04em;
}
.hero-copy h1 { color: #fff; }
.hero-sub { color: #E7E2D6; font-size: var(--fs-600); }
.hero-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-block: var(--sp-4); }
.hero-chip { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: var(--sp-2) var(--sp-3); min-width: 120px; }
.hero-chip small { display: block; color: #C7BFA8; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .04em; }
.hero-chip span { display: block; color: #fff; font-weight: var(--fw-bold); font-size: var(--fs-600); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

.hero-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.lead-card { background: #fff; border-radius: var(--radius-lg); padding: var(--sp-4); box-shadow: var(--shadow-lg); }
.lead-card h2 { font-size: var(--fs-700); }
.lead-card__sub { font-size: var(--fs-400); color: var(--c-ink-500); }
.lead-field { margin-bottom: var(--sp-3); }
.lead-field input, .lead-field select, .lead-field textarea {
  width: 100%; padding: var(--sp-3); border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  font: inherit; background: #fff;
}
.lead-field textarea { min-height: 110px; resize: vertical; }
.lead-phone { display: flex; gap: var(--sp-2); }
.lead-phone select { flex: 0 0 112px; padding-inline: var(--sp-2); }
.lead-phone input { flex: 1 1 auto; min-width: 0; }
.lead-hp { position: absolute; left: -9999px; }
.lead-status { min-height: 1.2em; font-size: var(--fs-400); }
.lead-status--error { color: var(--c-error); }
.lead-status--success { color: var(--c-success); font-weight: var(--fw-semibold); }
.lead-card__trust { display: flex; align-items: center; gap: var(--sp-1); font-size: var(--fs-300); color: var(--c-ink-500); margin: var(--sp-2) 0 0; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--c-bg-alt); border-bottom: 1px solid var(--c-border); padding-block: var(--sp-3); }
.trust-strip .container { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: center; }
.trust-item { display: inline-flex; align-items: center; gap: var(--sp-2); font-size: var(--fs-400); font-weight: var(--fw-medium); color: var(--c-primary); }

/* ---------- Sticky in-page sub-nav ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: var(--z-subnav); background: var(--c-primary); border-bottom: 1px solid var(--c-primary-700); }
.subnav-inner { display: flex; gap: var(--sp-4); overflow-x: auto; padding-block: var(--sp-2); scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav-inner a { display: inline-flex; align-items: center; gap: var(--sp-1); white-space: nowrap; font-size: var(--fs-400); font-weight: var(--fw-medium); color: rgba(255,255,255,.8); padding-block: var(--sp-1); border-bottom: 2px solid transparent; }
.subnav-inner a.active, .subnav-inner a:hover { color: #fff; border-color: var(--c-cta); }

/* ---------- Explore-more silo cards ---------- */
.explore-more { padding-block: var(--sp-6); background: var(--c-bg-alt); }
.explore-card { display: flex; flex-direction: column; height: 100%; }
.explore-card .card__title { font-size: var(--fs-500); }
.explore-card a.card-link { position: absolute; inset: 0; }
.explore-card { position: relative; }

/* ---------- FAQ (native details) ---------- */
.faq-item {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: var(--sp-3); overflow: hidden;
}
.faq-item summary {
  list-style: none; cursor: pointer; padding: var(--sp-4); font-weight: var(--fw-semibold);
  color: var(--c-primary); display: flex; justify-content: space-between; align-items: center; gap: var(--sp-3);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .ic { transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] summary .ic { transform: rotate(180deg); }
.faq-item .faq-body { padding: 0 var(--sp-4) var(--sp-4); color: var(--c-ink-700); }

/* ---------- Modal (lead form) ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 30, 22, .6); z-index: var(--z-modal);
  display: none; align-items: center; justify-content: center; padding: var(--sp-3);
}
.modal-overlay.is-open { display: flex; }
.modal-box { background: #fff; border-radius: var(--radius-lg); max-width: 440px; width: 100%; padding: var(--sp-5); position: relative; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.modal-close { position: absolute; top: var(--sp-3); right: var(--sp-3); background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--c-ink-500); }
.modal-box h2 { font-size: var(--fs-700); text-align: center; }

/* ---------- Floating CTAs ---------- */
.floating-ctas { position: fixed; right: var(--sp-3); bottom: var(--sp-4); z-index: var(--z-float); display: grid; gap: var(--sp-2); }
.floating-ctas a {
  width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: var(--shadow-lg); font-size: 1.4rem;
}
.fab-wa { background: var(--c-whatsapp); color: var(--c-primary); }
.fab-call { background: var(--c-primary); }
/* Below 768px the .mobile-bar already surfaces Call/Enquire/WhatsApp, so hide
   the floating round buttons there to avoid duplicate, overlapping CTAs. */
@media (max-width: 767px) { .floating-ctas { display: none; } }

.back-to-top {
  position: fixed; right: var(--sp-3); bottom: calc(var(--sp-4) + 120px); z-index: var(--z-float);
  width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--c-border);
  box-shadow: var(--shadow); display: none; align-items: center; justify-content: center; color: var(--c-primary);
}
.back-to-top.is-visible { display: flex; }

/* ---------- Mobile sticky action bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-mobilebar);
  display: grid; grid-template-columns: repeat(3, 1fr); background: var(--c-primary-700);
  box-shadow: 0 -4px 16px rgba(0,0,0,.15);
}
.mobile-bar a, .mobile-bar button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #fff;
  padding: var(--sp-2) 0; font-size: var(--fs-300); background: none; border: none; font-family: inherit;
  cursor: pointer; width: 100%; min-width: 0; margin: 0; box-sizing: border-box; text-align: center;
  -webkit-appearance: none; appearance: none; text-decoration: none; line-height: 1.3;
}
.mobile-bar a:not(:last-child), .mobile-bar button:not(:last-child) { border-right: 1px solid rgba(255,255,255,.15); }
@media (min-width: 768px) { .mobile-bar { display: none; } }

/* ---------- Misc content helpers (ported legacy content) ---------- */
.services-grids-info img { border-radius: var(--radius); }
.alert-pills { display: inline-flex; align-items: center; gap: var(--sp-2); }

/* ---------- Glance-box grid (Project Highlights, at-a-glance stats) ---------- */
.glance-grid {
  display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: var(--sp-4) var(--sp-5);
}
@media (min-width: 768px) { .glance-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.glance-box {
  display: flex; align-items: center; gap: var(--sp-3); background: var(--c-bg-alt);
  border: 1px solid var(--c-border); border-radius: var(--radius); padding: var(--sp-3);
}
.glance-box .ic { flex-shrink: 0; width: 28px; height: 28px; color: var(--c-cta); }
.glance-box > div { min-width: 0; }
.glance-box small { display: block; color: var(--c-ink-500); font-size: var(--fs-300); text-transform: uppercase; letter-spacing: .04em; }
.glance-box span { display: block; color: var(--c-primary); font-weight: var(--fw-bold); font-size: var(--fs-500); overflow-wrap: break-word; word-break: break-word; }

/* ---------- EMI calculator ---------- */
.emi-calculator { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 900px) { .emi-calculator { grid-template-columns: 1fr 1fr; } }
.emi-form { background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: var(--sp-4); }
.emi-field { margin-bottom: var(--sp-4); }
.emi-field label { display: flex; justify-content: space-between; font-weight: var(--fw-semibold); color: var(--c-primary); margin-bottom: var(--sp-2); font-size: var(--fs-400); }
.emi-field input[type="range"] { width: 100%; accent-color: var(--c-cta); min-height: 44px; margin-top: var(--sp-2); box-sizing: border-box; }
.emi-field input[type="number"] {
  width: 100%; padding: var(--sp-2) var(--sp-3); border: 1px solid var(--c-border); border-radius: var(--radius-sm); font: inherit; min-height: 44px; box-sizing: border-box;
}
.emi-result { background: var(--c-primary); color: #fff; border-radius: var(--radius-lg); padding: var(--sp-4); text-align: center; }
.emi-result .emi-amount { font-family: var(--font-head); font-size: var(--fs-900); color: #F2D98C; margin: var(--sp-2) 0; }
/* Stacked rows (label left, value right) by default — long formatted rupee
   amounts get a full row's width so they never have to wrap or overflow.
   Switches to a centered 3-across layout once there's genuinely room. */
.emi-result .emi-breakdown {
  display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,.2); padding-top: var(--sp-4);
}
.emi-result .emi-breakdown div { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); text-align: left; }
.emi-result .emi-breakdown small { color: rgba(255,255,255,.7); font-size: var(--fs-300); text-transform: uppercase; letter-spacing: .04em; }
.emi-result .emi-breakdown span { font-weight: var(--fw-bold); font-size: var(--fs-500); overflow-wrap: break-word; word-break: break-word; text-align: right; }
@media (min-width: 560px) {
  .emi-result .emi-breakdown { flex-direction: row; flex-wrap: wrap; justify-content: space-around; gap: var(--sp-3); }
  .emi-result .emi-breakdown div { flex: 1 1 0; min-width: 110px; display: block; text-align: center; }
  .emi-result .emi-breakdown small { display: block; }
  .emi-result .emi-breakdown span { display: block; font-size: var(--fs-600); text-align: center; }
}

/* ---------- Long lists auto-reflow to 2 columns (pure visual, no content change) ---------- */
@supports selector(:has(*)) {
  section.content ul:has(li:nth-child(10)) {
    columns: 2; column-gap: var(--sp-5);
  }
  section.content ul:has(li:nth-child(10)) li { break-inside: avoid; }
}
