/* =========================================================================
   Siva Sai Solar Power Solutions
   ========================================================================= */

:root {
  --navy-900: #071a2c;
  --navy-800: #0d2b45;
  --navy-700: #143c5e;
  --navy-600: #1d5480;

  --brand:      #d32f3c;
  --brand-dark: #ac2530;
  --brand-tint: #fdeced;

  --sun:      #f5a524;
  --sun-dark: #d78a0f;
  --sun-tint: #fff4e0;

  --sky:      #1f7fc0;
  --wa:       #1faf54;

  --ink:      #16222e;
  --ink-soft: #4a5a68;
  --ink-mute: #6c7c8a;
  --line:     #e2e8ee;
  --line-soft:#eef2f6;
  --surface:  #ffffff;
  --tint:     #f5f8fb;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(9, 30, 52, .06), 0 2px 6px rgba(9, 30, 52, .05);
  --shadow:    0 4px 12px rgba(9, 30, 52, .07), 0 14px 34px rgba(9, 30, 52, .08);
  --shadow-lg: 0 10px 24px rgba(9, 30, 52, .10), 0 30px 60px rgba(9, 30, 52, .14);

  --wrap: 1180px;
  --gap: clamp(1.25rem, 3vw, 2.25rem);
  --section-y: clamp(3rem, 7vw, 5.5rem);

  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
          "Noto Sans Telugu", "Nirmala UI", "Gautami", "Noto Sans", sans-serif;

  --icon-size: 1.25rem;
}

/* ------------------------------------------------------------------ base */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

html[lang="te"] body { line-height: 1.8; }

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--navy-700); }

h1, h2, h3, h4 {
  margin: 0 0 .6em;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -.015em;
  color: var(--navy-800);
  text-wrap: balance;
}
html[lang="te"] h1, html[lang="te"] h2, html[lang="te"] h3 {
  letter-spacing: 0;
  line-height: 1.35;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-left: 1.2em; }

.h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); }
.h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
.h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

.muted { color: var(--ink-mute); font-size: .92rem; }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy-800); color: #fff; padding: .75rem 1.25rem;
}
.skip:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------- layout */

.wrap {
  width: min(100% - 2.5rem, var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.5rem, 800px); }

.section { padding-block: var(--section-y); }
.section--flush { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.section--flush-top { padding-top: 0; }
.section--tint { background: var(--tint); }
.section--center { text-align: center; }

.section--dark {
  background:
    radial-gradient(1000px 420px at 12% -10%, rgba(245, 165, 36, .16), transparent 60%),
    linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #dfe9f2;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .section__lead { color: #b6c8d8; }
.section--dark .eyebrow { color: var(--sun); }

.section__head { max-width: 46rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__lead { color: var(--ink-soft); font-size: 1.06rem; margin: 0; }
.section__foot { margin-top: 2rem; text-align: center; }

.eyebrow {
  margin: 0 0 .5rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
}
html[lang="te"] .eyebrow { letter-spacing: .04em; text-transform: none; }

.two-col {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.prose > * + h2, .prose > * + h3 { margin-top: 1.8em; }
.prose p { color: var(--ink-soft); }

/* ----------------------------------------------------------------- icons */

.icon {
  width: var(--icon-size);
  height: var(--icon-size);
  flex: none;
  display: inline-block;
  vertical-align: -.2em;
}
.icon--sm { --icon-size: 1.05rem; }

/* --------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: none; }

.btn--primary { box-shadow: 0 6px 18px rgba(211, 47, 60, .28); }
.btn--primary:hover { background: var(--brand-dark); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border-color: currentColor;
  opacity: .95;
}
.btn--ghost:hover { background: rgba(255, 255, 255, .1); box-shadow: none; }
.section:not(.section--dark) .btn--ghost { color: var(--navy-800); border-color: var(--line); background: #fff; }
.section:not(.section--dark) .btn--ghost:hover { border-color: var(--navy-600); background: #fff; }

.btn--wa { --btn-bg: var(--wa); }
.btn--wa:hover { background: #189347; }

.btn--sm { padding: .55rem 1rem; font-size: .9rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 650;
  color: var(--brand);
  text-decoration: none;
}
.link-arrow:hover { color: var(--brand-dark); text-decoration: underline; }
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------------------------------------------------------------- topbar */

.topbar {
  background: var(--navy-900);
  color: #a9c0d4;
  font-size: .82rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  min-height: 38px;
  flex-wrap: wrap;
}
.topbar__spacer { flex: 1 1 auto; }
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: inherit;
  text-decoration: none;
}
a.topbar__item:hover { color: var(--sun); }
.topbar__item .icon { color: var(--sun); }

/* The subsidy line is already the hero pill on the home page, so drop the
   topbar copy there and keep it only as a hook on interior pages. */
body[data-page=""] .topbar__subsidy { display: none; }

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 70px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 46px; height: 46px; }
.brand__text { display: grid; line-height: 1.1; }
.brand__l1 {
  font-weight: 800;
  font-size: 1.12rem;
  color: var(--brand);
  letter-spacing: -.01em;
}
.brand__l2 {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--navy-700);
}
html[lang="te"] .brand__l2 { text-transform: none; letter-spacing: 0; font-size: .76rem; }

.nav { display: contents; }
.nav__list {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  display: block;
  padding: .55rem .7rem;
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  font-size: .93rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav__link:hover { background: var(--tint); color: var(--brand); }
.nav__link.is-active { color: var(--brand); }
.nav__link.is-active::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.nav__actions { display: flex; align-items: center; gap: .6rem; }

.langswitch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.langswitch__opt {
  padding: .38rem .7rem;
  font-size: .82rem;
  font-weight: 650;
  color: var(--ink-soft);
  text-decoration: none;
}
.langswitch__opt:hover { background: var(--tint); }
.langswitch__opt.is-active { background: var(--navy-800); color: #fff; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy-800);
  cursor: pointer;
}
.nav-toggle .icon { --icon-size: 1.4rem; }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline-block; }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.25rem 1.5rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  /* Fill the rest of the viewport when open, so the dark hero no longer peeks
     through beneath a short dropdown. Body scroll is locked in site.js. */
  .nav.is-open { display: flex; min-height: 100dvh; max-height: 100dvh; overflow-y: auto; }
  .nav__list { flex-direction: column; align-items: stretch; gap: .1rem; }
  .nav__link { padding: .7rem .5rem; font-size: 1rem; }
  .nav__link.is-active::after { display: none; }
  /* Sit just below the links, with a small gap — not pinned to the bottom,
     where the fixed action bar would hide the language toggle and CTA. */
  .nav__actions { justify-content: space-between; margin-top: .5rem; }
}

body.nav-open { overflow: hidden; }

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  isolation: isolate;
  color: #e6eef6;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(760px 380px at 88% 6%, rgba(245, 165, 36, .28), transparent 62%),
    radial-gradient(620px 420px at 6% 96%, rgba(31, 127, 192, .30), transparent 60%),
    linear-gradient(155deg, #0e2f4c 0%, var(--navy-900) 62%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image:
    linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 46px 30px;
  transform: perspective(520px) rotateX(56deg) scale(1.9);
  transform-origin: bottom;
  mask-image: linear-gradient(to top, #000 8%, transparent 62%);
}

.hero__inner {
  display: grid;
  gap: clamp(1.75rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: start;
}
@media (max-width: 940px) {
  .hero__inner { grid-template-columns: 1fr; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 1rem;
  padding: .38rem .85rem;
  border: 1px solid rgba(245, 165, 36, .45);
  border-radius: 999px;
  background: rgba(245, 165, 36, .12);
  color: var(--sun);
  font-size: .82rem;
  font-weight: 650;
}
.hero__title {
  margin: 0 0 .8rem;
  font-size: clamp(2rem, 4.6vw, 3.15rem);
  color: #fff;
}
.hero__lead {
  max-width: 34rem;
  margin: 0 0 1.5rem;
  color: #b9cdde;
  font-size: 1.06rem;
}
.hero__points {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .55rem;
}
.hero__points li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  color: #d7e5f0;
  font-weight: 550;
}
.hero__points .icon { color: var(--sun); margin-top: .25em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero__form { position: relative; }

/* ------------------------------------------------------------------ form */

.quote {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 1.9rem);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.quote--panel { box-shadow: var(--shadow); border: 1px solid var(--line); }

.quote__head { margin-bottom: 1.1rem; }
.quote__title { margin: 0 0 .25rem; font-size: 1.3rem; }
.quote__sub { margin: 0; color: var(--ink-mute); font-size: .92rem; }

.quote__grid {
  display: grid;
  gap: .9rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1.1rem;
}
@media (max-width: 480px) { .quote__grid { grid-template-columns: 1fr; } }
.field--wide { grid-column: 1 / -1; }

.field { display: grid; gap: .3rem; min-width: 0; }
.field__label {
  font-size: .82rem;
  font-weight: 650;
  color: var(--ink-soft);
}
.field__input {
  width: 100%;
  padding: .68rem .8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field__input:focus {
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(31, 127, 192, .15);
  outline: none;
}
.field__input.is-invalid { border-color: var(--brand); }
.field__error { margin: 0; color: var(--brand); font-size: .82rem; }
textarea.field__input { resize: vertical; min-height: 5rem; }
select.field__input { appearance: none; background-image: linear-gradient(45deg, transparent 49%, var(--ink-mute) 50%), linear-gradient(-45deg, transparent 49%, var(--ink-mute) 50%); background-size: 6px 6px; background-position: right 1rem center, right .65rem center; background-repeat: no-repeat; padding-right: 2.2rem; }

.field--radios { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block;
  padding: .45rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.chip input:checked + span { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }

.quote__consent { margin: .75rem 0 0; font-size: .78rem; color: var(--ink-mute); text-align: center; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
  margin: 0 0 1rem;
  padding: .7rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
}
.alert--error { background: var(--brand-tint); color: var(--brand-dark); border: 1px solid #f4c7cb; }

/* ------------------------------------------------------------ credential */

.creds { background: var(--navy-900); color: #b9cdde; }
.creds__inner {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  justify-content: center;
  padding-block: .9rem;
  font-size: .85rem;
}
.creds__item { display: inline-flex; align-items: center; gap: .45rem; }
.creds__item .icon { color: var(--sun); }

/* ----------------------------------------------------------------- stats */

.stats__grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  text-align: center;
}
.stat { display: grid; gap: .2rem; }
.stat__value {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--brand);
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label { color: var(--ink-mute); font-size: .9rem; }

/* ----------------------------------------------------------------- intro */

.intro {
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: start;
}
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; } }

.intro__figure { margin: 0; }
.intro__figure img { width: 100%; border-radius: var(--radius); }
.intro__figure figcaption {
  margin-top: .75rem;
  color: var(--ink-mute);
  font-size: .88rem;
}

.factcard {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}
.factcard__title { margin: 0 0 1rem; font-size: 1.1rem; }
.factcard__list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: .9rem;
  font-size: .93rem;
}
.factcard__list li { display: flex; gap: .65rem; align-items: flex-start; }
.factcard__list .icon { color: var(--brand); margin-top: .25em; }
.factcard__list a { color: var(--navy-700); }

/* ----------------------------------------------------------------- cards */

.cards {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
}
.cards--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }

.card {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .22s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow);
  color: inherit;
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: .35rem;
  border-radius: 12px;
  background: var(--sun-tint);
  color: var(--sun-dark);
  --icon-size: 1.4rem;
}
.card__title { margin: 0; font-size: 1.08rem; }
.card__body { margin: 0; color: var(--ink-soft); font-size: .93rem; flex: 1; }
.card__more {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .35rem;
  color: var(--brand);
  font-size: .88rem;
  font-weight: 650;
}
.card:hover .card__more .icon { transform: translateX(3px); }
.card__more .icon { transition: transform .2s ease; }

/* ----------------------------------------------------------------- steps */

.steps {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps--compact { grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }

.step { position: relative; padding-top: .5rem; }
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: .75rem;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
}
.step__title { margin: 0 0 .35rem; font-size: 1.05rem; }
.step__body { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* ------------------------------------------------------------------- why */

.why {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.why__item {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.why__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: .8rem;
  border-radius: 12px;
  background: var(--brand-tint);
  color: var(--brand);
  --icon-size: 1.35rem;
}
.why__title { margin: 0 0 .35rem; font-size: 1.05rem; }
.why__body { margin: 0; color: var(--ink-soft); font-size: .93rem; }

/* ---------------------------------------------------------------- tables */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.section--dark .table-scroll { border-color: rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .04); }

table { border-collapse: collapse; width: 100%; font-size: .93rem; }
caption { text-align: left; }

.ratecard th, .ratecard td, .spectable th, .spectable td, .leadtable th, .leadtable td {
  padding: .75rem .9rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}
.ratecard thead th, .spectable thead th, .leadtable thead th {
  background: var(--tint);
  color: var(--navy-800);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
html[lang="te"] .ratecard thead th,
html[lang="te"] .spectable thead th { text-transform: none; letter-spacing: 0; }

.ratecard tbody tr:last-child th, .ratecard tbody tr:last-child td,
.spectable tbody tr:last-child th, .spectable tbody tr:last-child td { border-bottom: 0; }
.ratecard tbody tr:hover { background: var(--tint); }
.ratecard tbody th { font-weight: 700; color: var(--navy-800); }
.ratecard__credit { color: var(--wa); }
.ratecard__net { background: var(--sun-tint); }
.ratecard__net strong { color: var(--navy-800); }

/* On phones the six-column rate card would scroll sideways and hide the net
   cost, so each row becomes a self-contained card: capacity as the header, the
   net price promoted, and the rest as labelled lines. The `data-label`s come
   from pricing-table.php. */
@media (max-width: 600px) {
  .ratecard thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .ratecard, .ratecard tbody, .ratecard th, .ratecard td { display: block; }
  .ratecard tr {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: .35rem 1rem .85rem;
    margin-bottom: 1rem;
    background: #fff;
  }
  .ratecard tr:last-child { margin-bottom: 0; }
  .ratecard tbody tr:hover { background: #fff; }
  .ratecard tbody th {
    order: -2;
    font-size: 1.15rem;
    padding: .75rem 0 .5rem;
    border-bottom: 2px solid var(--sun);
    margin-bottom: .35rem;
  }
  .ratecard td {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .5rem 0;
    border-bottom: 1px solid var(--line-soft);
    white-space: normal;
    text-align: right;
  }
  .ratecard td::before {
    content: attr(data-label);
    color: var(--ink-mute);
    font-size: .82rem;
    font-weight: 600;
    text-align: left;
  }
  .ratecard td:last-child { border-bottom: 0; }
  /* Promote the net cost: full-width amber band, larger, leads the eye. */
  .ratecard td.ratecard__net {
    order: -1;
    margin: .1rem -1rem .4rem;
    padding: .6rem 1rem;
    border-bottom: 0;
    border-radius: var(--radius-sm);
    font-size: 1.05rem;
  }
  .ratecard td.ratecard__net::before { align-self: center; }
  .ratecard td.ratecard__net strong { font-size: 1.35rem; }
}

.spectable tbody th { font-weight: 600; color: var(--ink-soft); }

.notes { margin-top: 2rem; }

.panelcard {
  padding: 1.75rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}
.panelcard__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: .8rem;
  border-radius: 12px;
  background: var(--sun-tint);
  color: var(--sun-dark);
  --icon-size: 1.35rem;
}
.panelcard p { color: var(--ink-soft); margin: 0; }

.prodgroup { margin-bottom: clamp(2rem, 5vw, 3rem); }
.prodgroup:last-child { margin-bottom: 0; }
.prodgroup__head { max-width: 44rem; margin-bottom: 1.1rem; }
.prodgroup__head p { color: var(--ink-soft); margin: 0; }

.brands {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.brands__item {
  padding: .55rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy-700);
  font-size: .9rem;
  font-weight: 650;
}

.ticks { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.ticks--two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.ticks li { display: flex; gap: .6rem; align-items: flex-start; color: var(--ink-soft); }
.ticks .icon { color: var(--wa); margin-top: .3em; }

/* ------------------------------------------------------------ calculator */

.calc {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

.section:not(.section--dark) .calc {
  background: #fff;
  border-color: var(--line);
  box-shadow: var(--shadow);
}

.calc .field__label { color: #cbdcea; }
.section:not(.section--dark) .calc .field__label { color: var(--ink-soft); }

.switch {
  display: inline-flex;
  padding: 3px;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
}
.section:not(.section--dark) .switch { background: var(--tint); }
.switch__opt {
  padding: .45rem 1rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .87rem;
  font-weight: 650;
  cursor: pointer;
}
.switch__opt.is-active { background: var(--sun); color: var(--navy-900); }

.calc__pane.is-hidden { display: none; }

.calc__money { display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem; }
.calc__money span { font-size: 1.3rem; font-weight: 700; color: var(--sun); }
.calc__money .field__input { font-size: 1.2rem; font-weight: 700; padding-block: .55rem; }

.calc__bigvalue {
  display: block;
  margin: .25rem 0 .9rem;
  font-size: 2rem;
  font-weight: 800;
  color: var(--sun);
  line-height: 1;
}
.section:not(.section--dark) .calc__bigvalue { color: var(--brand); }

.calc__range {
  width: 100%;
  height: 1.75rem; /* taller hit strip than the native default */
  margin: 0;
  accent-color: var(--sun);
  cursor: pointer;
}
.calc__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: .35rem;
  font-size: .72rem;
  opacity: .7;
}
.calc__help { margin: .6rem 0 0; font-size: .82rem; opacity: .75; }

.calc__results {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .07);
}
.section:not(.section--dark) .calc__results { background: var(--tint); }

.calc__headline {
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 1rem;
}
@media (max-width: 420px) { .calc__headline { grid-template-columns: 1fr; } }

.calc__metric--hero {
  display: grid;
  gap: .1rem;
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .18);
}
.section:not(.section--dark) .calc__metric--hero { background: #fff; border: 1px solid var(--line); }
.calc__label { font-size: .78rem; opacity: .8; }
.calc__value { font-size: 1.5rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.calc__metric--accent .calc__value { color: var(--sun); }
.section:not(.section--dark) .calc__metric--accent .calc__value { color: var(--wa); }

.calc__list { margin: 0 0 1.1rem; display: grid; gap: 0; }
.calc__list > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .55rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, .16);
}
.section:not(.section--dark) .calc__list > div { border-bottom-color: var(--line); }
.calc__list > div:last-child { border-bottom: 0; }
.calc__list dt { margin: 0; opacity: .85; font-size: .9rem; }
.calc__list dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.calc__row--credit dd { color: var(--wa); }
.calc__row--total dd { font-size: 1.05rem; color: var(--sun); }
.section:not(.section--dark) .calc__row--total dd { color: var(--brand); }

.calc__note {
  grid-column: 1 / -1;
  margin: 0;
  font-size: .8rem;
  opacity: .7;
}

/* --------------------------------------------------------------- gallery */

.gallery {
  display: grid;
  gap: var(--gap);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.shot { margin: 0; }
.shot__media {
  position: relative;
  aspect-ratio: 4 / 2.6;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tint);
  color: var(--navy-600);
}
.shot__media[data-tone="1"] { color: var(--sun-dark); background: var(--sun-tint); }
.shot__media[data-tone="2"] { color: var(--sky); background: #eaf3fa; }
.shot__media[data-tone="3"] { color: var(--wa); background: #eaf7ee; }
.shot__media[data-tone="4"] { color: var(--brand); background: var(--brand-tint); }
.shot__media[data-tone="5"] { color: var(--navy-700); background: #eef2f6; }
.shot__media picture { display: block; width: 100%; height: 100%; }
.shot__media img, .shot__placeholder { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot__tag {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(7, 26, 44, .85);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
}
.shot__caption { padding-top: .85rem; }
.shot__title { margin: 0 0 .25rem; font-size: 1.02rem; }
.shot__body { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.shot__credit {
  margin: .5rem 0 0;
  font-size: .74rem;
  line-height: 1.5;
  color: var(--ink-mute);
}
.shot__credit a { color: inherit; }
.shot__stand-in {
  display: inline-block;
  margin-right: .35rem;
  padding: .05rem .4rem;
  border-radius: 4px;
  background: var(--line-soft);
  color: var(--ink-soft);
  font-weight: 650;
}

/* ------------------------------------------------------------------- faq */

.faq { display: grid; gap: .65rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.faq__item[open] { border-color: var(--navy-600); box-shadow: var(--shadow-sm); }
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  font-weight: 650;
  color: var(--navy-800);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { background: var(--tint); }
.faq__chevron { transition: transform .2s ease; color: var(--brand); }
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__a { padding: 0 1.15rem 1.15rem; }
.faq__a p { margin: 0; color: var(--ink-soft); }

/* --------------------------------------------------------------- pagehead */

.pagehead {
  padding-block: clamp(2rem, 4.5vw, 3.25rem);
  background:
    radial-gradient(700px 300px at 90% -20%, rgba(245, 165, 36, .18), transparent 60%),
    linear-gradient(150deg, #0e2f4c, var(--navy-900));
  color: #cddced;
}
.pagehead__title { margin: 0 0 .5rem; color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pagehead__lead { margin: 0; max-width: 44rem; color: #b6c8d8; font-size: 1.03rem; }

.crumbs {
  margin-bottom: .75rem;
  font-size: .82rem;
  color: #8fa9c0;
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}
.crumbs a { color: #a9c0d4; text-decoration: none; }
.crumbs a:hover { color: var(--sun); }

/* ---------------------------------------------------------------- detail */

.detail {
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: start;
}
.detail--reverse { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
@media (max-width: 900px) {
  .detail, .detail--reverse { grid-template-columns: 1fr; }
  /* On the contact page the aside holds phone / WhatsApp / address, so let it
     lead on mobile instead of making people scroll past the whole form. */
  .detail--reverse .detail__aside { order: -1; }
}

.detail__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  border-radius: 14px;
  background: var(--sun-tint);
  color: var(--sun-dark);
  --icon-size: 1.7rem;
}
.detail__body { font-size: 1.05rem; color: var(--ink-soft); }
.detail__main > .ticks { margin: 1.5rem 0; }
.detail__aside { display: grid; gap: var(--gap); position: sticky; top: 96px; }
@media (max-width: 900px) { .detail__aside { position: static; } }

.sidenav {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--tint);
}
.sidenav__head { margin: 0 0 .6rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); }
html[lang="te"] .sidenav__head { text-transform: none; letter-spacing: 0; }
.sidenav ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .1rem; }
.sidenav a {
  display: block;
  padding: .45rem .55rem;
  border-radius: var(--radius-sm);
  color: var(--navy-800);
  font-size: .92rem;
  text-decoration: none;
}
.sidenav a:hover { background: #fff; color: var(--brand); }
.sidenav a.is-active { background: #fff; color: var(--brand); font-weight: 650; }

/* ------------------------------------------------------------------ band */

.band {
  padding-block: clamp(2.25rem, 5vw, 3.5rem);
  background: linear-gradient(120deg, var(--brand), #b4212d);
  color: #fff;
}
.band__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
}
.band__title { margin: 0 0 .35rem; color: #fff; font-size: clamp(1.35rem, 2.8vw, 1.9rem); }
.band__body { margin: 0; max-width: 42rem; color: rgba(255, 255, 255, .9); }
.band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.band .btn--primary { background: #fff; color: var(--brand); box-shadow: none; }
.band .btn--primary:hover { background: #fff5f5; }
.band .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .6); background: transparent; }
.band .btn--ghost:hover { background: rgba(255, 255, 255, .14); }

/* ---------------------------------------------------------------- thanks */

.thanks { padding-block: clamp(1rem, 4vw, 2.5rem); }
.thanks__tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: #eaf7ee;
  color: var(--wa);
  --icon-size: 2rem;
}
.thanks__body { color: var(--ink-soft); margin-bottom: .75rem; }
.thanks__actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

.mapframe {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--navy-900);
  color: #a9c0d4;
  font-size: .93rem;
}
.footer__grid {
  display: grid;
  gap: var(--gap);
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  padding-bottom: 2.5rem;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); } }

.brand--footer { margin-bottom: 1rem; }
.brand--footer .brand__l1 { color: #fff; }
.brand--footer .brand__l2 { color: #8fa9c0; }
.footer__about { margin: 0 0 .75rem; }
.footer__gst { margin: 0; font-size: .82rem; color: #7f97ad; }

.footer__head {
  margin: 0 0 .9rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
}
html[lang="te"] .footer__head { text-transform: none; letter-spacing: 0; font-size: .95rem; }

.footer__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .45rem; }
.footer__list a { color: #a9c0d4; text-decoration: none; }
.footer__list a:hover { color: var(--sun); }
.footer__list--contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer__list--contact .icon { color: var(--sun); margin-top: .3em; }

.footer__bar {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
  padding-block: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem;
  color: #7f97ad;
}
.footer__bar p { margin: 0; }
.footer__scheme a { color: #a9c0d4; }

/* Build credit. Explicitly inert on hover: the global `a:hover` recolours every
   link, so each property it touches has to be pinned back here or the link
   shifts colour on pointer-over. Focus styling is deliberately left intact —
   removing that would strand keyboard users. */
.footer__built { color: #7f97ad; }
.footer__builder,
.footer__builder:link,
.footer__builder:visited,
.footer__builder:hover,
.footer__builder:active {
  color: #a9c0d4;
  text-decoration: none;
  background: none;
  transition: none;
}

/* -------------------------------------------------------------- floating */

.fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(31, 175, 84, .38);
  --icon-size: 1.5rem;
  transition: transform .18s ease;
}
.fab:hover { transform: translateY(-2px); color: #fff; }
.fab__label { display: none; font-weight: 650; padding-right: .4rem; }
@media (min-width: 761px) { .fab:hover .fab__label { display: inline; } }

.callbar { display: none; }

@media (max-width: 760px) {
  /* The dark topbar duplicates the sticky action bar and the hero, and eats
     ~130px above the logo — drop it on phones. */
  .topbar { display: none; }

  /* The action bar already carries WhatsApp, Call and Quote, so the floating
     button here is pure redundancy and was overlapping page content. */
  .fab { display: none; }

  /* Inputs must be at least 16px or iOS Safari zooms in on focus and does not
     zoom back out. */
  .field__input,
  select.field__input,
  textarea.field__input { font-size: 16px; }

  /* Comfortable touch targets (>=44px). */
  .chip span { padding: .7rem 1.15rem; }
  .switch__opt { padding: .7rem 1.1rem; }
  .calc__range { height: 2.75rem; }

  .callbar {
    position: fixed;
    inset: auto 0 0;
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 20px rgba(9, 30, 52, .1);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .callbar__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .85rem .3rem;
    font-size: .82rem;
    font-weight: 650;
    line-height: 1.35;
    white-space: nowrap;
    text-decoration: none;
    color: var(--navy-800);
  }
  .callbar__btn + .callbar__btn { border-left: 1px solid var(--line-soft); }
  .callbar__btn--call { color: var(--brand); }
  .callbar__btn--wa { color: var(--wa); }
  body { padding-bottom: 56px; }

  /* Scrolled fully to the bottom, the floating WhatsApp button sits over the
     last line of the footer bar and clips it. Clear its height so the final
     credit stays readable. */
  .footer__bar { padding-bottom: 4.5rem; }
}

/* ----------------------------------------------------------------- admin */

body.bare { background: var(--tint); }

.adminlogin {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.adminlogin__card {
  width: min(100%, 22rem);
  padding: 2rem;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}
.adminlogin__card h1 { margin: 0; }

.adminpage { width: min(100% - 2rem, 1400px); margin: 2rem auto; }
.adminbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.adminbar h1 { margin: 0; }
.adminbar__count {
  display: inline-block;
  margin-left: .4rem;
  padding: .1rem .55rem;
  border-radius: 999px;
  background: var(--navy-800);
  color: #fff;
  font-size: .8rem;
}
.adminbar__actions { display: flex; gap: .5rem; }
.leadtable__msg { white-space: normal; min-width: 18rem; color: var(--ink-soft); }
.pill {
  display: inline-block;
  padding: 0 .4rem;
  border-radius: 4px;
  background: var(--sun-tint);
  color: var(--sun-dark);
  font-size: .72rem;
  font-weight: 700;
}

/* --------------------------------------------------------------- motion */

[data-count-to] { display: inline-block; }

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

@media print {
  .topbar, .site-header, .fab, .callbar, .band, .site-footer { display: none !important; }
  body { padding-bottom: 0; }
}
