/* ============================================================
   Abhieshwari Solar — Design tokens
   ============================================================ */
:root{
  --navy: #0B4C8C;
  --navy-2: #0E5FAD;
  --gold: #1565C0;
  --gold-dark: #0D4A94;
  --green: #1D8A56;
  --green-dark: #146640;
  --terracotta: #0B4C8C;
  --cream: #F5F9FC;
  --cream-2: #EAF2F8;
  --ink: #142430;
  --ink-soft: #4B6072;
  --line: rgba(11,76,140,0.14);
  --card: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(11,76,140,0.25);
  --max: 1180px;

  --bg: var(--cream);
  --bg-elev: var(--card);
  --text: var(--ink);
  --text-soft: var(--ink-soft);
  --border: var(--line);
  --accent: var(--gold);
  --accent-ink: #FFFFFF;
}

html[data-theme="dark"]{
  --bg: #081826;
  --bg-elev: #0F2438;
  --text: #EAF2F8;
  --text-soft: #9FB6C7;
  --border: rgba(234,242,248,0.14);
  --navy: #0B4C8C;
  --card: #0F2438;
  --shadow: 0 10px 34px -12px rgba(0,0,0,0.6);
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:'Work Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  background:var(--bg);
  color:var(--text);
  transition:background .25s ease, color .25s ease;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:'Fraunces', Georgia, serif;
  color:var(--text);
  line-height:1.15;
  margin:0 0 .5em;
  font-weight:600;
}
p{ color:var(--text-soft); line-height:1.65; margin:0 0 1em; }
a{ color:inherit; }
img{ max-width:100%; display:block; }
.wrap{ max-width:var(--max); margin:0 auto; padding:0 20px; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:.78rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--green); font-weight:600;
}
html[data-theme="dark"] .eyebrow{ color:#6FD9A5; }

/* Sun-ray divider — signature motif */
.ray-divider{
  position:relative; height:26px; margin:0 auto 8px; width:120px;
}
.ray-divider svg{ width:100%; height:100%; display:block; }

/* Buttons */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 26px; border-radius:999px; font-weight:600; font-size:.96rem;
  text-decoration:none; border:1px solid transparent; cursor:pointer;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--gold); color:#fff; box-shadow:0 8px 20px -8px rgba(21,101,192,0.5); }
.btn-primary:hover{ background:var(--gold-dark); }
.btn-outline{ background:transparent; border-color:var(--border); color:var(--text); }
.btn-outline:hover{ border-color:var(--green); color:var(--green); }
html[data-theme="dark"] .btn-outline:hover{ color:#6FD9A5; }
.btn-green{ background:var(--green); color:#fff; }
.btn-green:hover{ background:var(--green-dark); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:3px solid var(--gold); outline-offset:2px;
}

/* Header */
header.site{
  position:sticky; top:0; z-index:50;
  background:color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--border);
}
.nav{ display:flex; align-items:center; justify-content:space-between; padding:16px 20px; gap:24px; }
@media (min-width:881px){
  .nav{ padding:18px 20px; }
  .navlinks{ gap:34px; }
}
.brand{ display:flex; align-items:baseline; gap:10px; text-decoration:none; }
.brand .word{
  font-family:'Berkshire Swash', cursive;
  font-size:1.7rem;
  background:linear-gradient(100deg, var(--navy), var(--green));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.brand .sub{
  font-size:.66rem; letter-spacing:.12em; text-transform:uppercase;
  color:var(--green); font-weight:700;
}
html[data-theme="dark"] .brand .sub{ color:#6FD9A5; }
.navlinks{ display:flex; align-items:center; gap:26px; list-style:none; margin:0; padding:0; }
.navlinks a{ text-decoration:none; color:var(--text-soft); font-weight:600; font-size:.94rem; }
.navlinks a.active, .navlinks a:hover{ color:var(--text); }
.navactions{ display:flex; align-items:center; gap:10px; }
.icon-btn{
  width:40px; height:40px; border-radius:50%; border:1px solid var(--border);
  background:var(--bg-elev); display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--text);
}
.lang-toggle{ width:auto; padding:0 12px; font-weight:700; font-size:.82rem; }
.hamburger{ display:none; }
@media (max-width:880px){
  .navlinks{
    position:fixed; top:var(--header-h, 64px); left:0; right:0; bottom:0;
    background:var(--bg); flex-direction:column;
    padding:30px 24px; gap:22px; transform:translateX(100%); transition:transform .25s ease;
    border-top:1px solid var(--border); z-index:60; overflow-y:auto;
    box-shadow:0 20px 40px -10px rgba(0,0,0,0.3);
  }
  .navlinks.open{ transform:translateX(0); }
  .navlinks a{ font-size:1.15rem; display:block; padding:6px 0; }
  .hamburger{ display:flex; }
  .nav .btn-primary.desktop-only{ display:none; }
  body.nav-open{ overflow:hidden; }
}

/* Promo banner (running offer strip) */
.promo-banner{ background:linear-gradient(100deg, var(--gold), var(--terracotta)); overflow:hidden; white-space:nowrap; }
.promo-track{ display:inline-flex; animation:promoScroll 20s linear infinite; will-change:transform; }
.promo-item{ display:inline-block; color:#fff; font-weight:700; font-size:.88rem; letter-spacing:.01em; padding:10px 40px; }
@keyframes promoScroll{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* EMI highlight badge */
.emi-badge{
  display:inline-flex; align-items:center; gap:6px; margin-top:16px; padding:9px 18px;
  border-radius:999px; background:color-mix(in srgb, var(--gold) 16%, transparent);
  border:1.5px solid var(--gold); color:var(--gold-dark); font-weight:700; font-size:.85rem;
}
html[data-theme="dark"] .emi-badge{ color:#E8A33D; border-color:#E8A33D; background:rgba(232,163,61,0.12); }

/* Hero */
.hero{ position:relative; overflow:hidden; padding:64px 0 40px; }
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:44px; align-items:center; }
@media (max-width:900px){ .hero-grid{ grid-template-columns:1fr; } }
.hero h1{ font-size:clamp(2.1rem, 4.4vw, 3.4rem); }
.hero .accent{ color:var(--terracotta); }
html[data-theme="dark"] .hero .accent{ color:#E8A33D; }
.hero-cta{ display:flex; gap:12px; flex-wrap:wrap; margin-top:22px; }
.stat-row{ display:flex; gap:28px; margin-top:34px; flex-wrap:wrap; }
.stat b{ font-family:'Fraunces', serif; font-size:1.5rem; display:block; color:var(--text); }
.stat span{ font-size:.8rem; color:var(--text-soft); }
.hero-art{
  position:relative; border-radius:22px; overflow:hidden; aspect-ratio:4/3.2;
  background:linear-gradient(160deg, var(--navy), #06111f);
  box-shadow:var(--shadow);
}
.hero-art .sun{
  position:absolute; top:-40px; right:-40px; width:180px; height:180px; border-radius:50%;
  background:radial-gradient(circle, var(--gold) 0%, rgba(232,163,61,0) 70%);
  filter:blur(2px);
}
.hero-art svg{ position:absolute; inset:0; width:100%; height:100%; }

/* Sections */
section{ padding:64px 0; }
.section-head{ text-align:center; max-width:640px; margin:0 auto 40px; }
.section-head h2{ font-size:clamp(1.6rem, 3vw, 2.2rem); }

.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
@media (max-width:900px){ .grid-3{ grid-template-columns:1fr 1fr; } .grid-4{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .grid-3{ grid-template-columns:1fr; } .grid-4{ grid-template-columns:1fr; } }

.card{
  background:var(--bg-elev); border:1px solid var(--border); border-radius:var(--radius);
  padding:26px; transition:transform .18s ease, box-shadow .18s ease;
}
.card:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.card .ic{
  width:46px; height:46px; border-radius:12px; background:color-mix(in srgb, var(--green) 14%, transparent);
  display:flex; align-items:center; justify-content:center; color:var(--green); margin-bottom:14px;
}
html[data-theme="dark"] .card .ic{ color:#6FD9A5; }
.card h3{ font-size:1.08rem; margin-bottom:6px; }
.card p{ font-size:.92rem; margin:0; }

.venue-tile{ text-align:center; padding:22px 14px; }
.venue-tile .ic{ margin:0 auto 12px; }

.band{
  background:var(--navy); color:#fff; border-radius:20px; padding:34px;
  display:flex; gap:20px; flex-wrap:wrap; justify-content:space-between; align-items:center;
}
.band h3{ color:#fff; margin-bottom:4px; }
.band p{ color:#C9D6E3; margin:0; }
.band-items{ display:flex; gap:30px; flex-wrap:wrap; }
.band-item{ display:flex; align-items:center; gap:10px; }

footer.site{ border-top:1px solid var(--border); padding:44px 0 28px; margin-top:40px; }
.foot-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:30px; }
@media (max-width:760px){ .foot-grid{ grid-template-columns:1fr 1fr; } }
.foot-grid h4{ font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-soft); margin-bottom:14px; }
.foot-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.foot-grid a{ text-decoration:none; color:var(--text-soft); font-size:.92rem; }
.foot-grid a:hover{ color:var(--text); }
.foot-bottom{
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;
  border-top:1px solid var(--border); margin-top:32px; padding-top:20px; font-size:.8rem; color:var(--text-soft);
}

/* Forms */
.form-grid{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:640px){ .form-grid{ grid-template-columns:1fr; } }

.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:34px; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }
label{ display:block; font-size:.85rem; font-weight:600; margin-bottom:6px; color:var(--text); }
input, textarea, select{
  width:100%; padding:12px 14px; border-radius:10px; border:1px solid var(--border);
  background:var(--bg-elev); color:var(--text); font-family:inherit; font-size:.95rem;
}
textarea{ resize:vertical; min-height:110px; }

input[type="range"]{
  -webkit-appearance:none; appearance:none; width:100%; height:6px; border-radius:999px;
  background:linear-gradient(90deg, var(--gold), var(--green)); outline:none; margin:10px 0 2px; padding:0; border:none;
}
input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; appearance:none; width:22px; height:22px; border-radius:50%;
  background:#fff; border:3px solid var(--gold); box-shadow:0 2px 8px rgba(0,0,0,0.25); cursor:pointer;
}
input[type="range"]::-moz-range-thumb{
  width:22px; height:22px; border-radius:50%; background:#fff; border:3px solid var(--gold);
  box-shadow:0 2px 8px rgba(0,0,0,0.25); cursor:pointer;
}
.field{ margin-bottom:16px; }
.hp-field{ position:absolute; left:-9999px; top:-9999px; }

/* Calculator */
.calc-shell{ display:grid; grid-template-columns:1fr 1fr; gap:34px; align-items:start; }
@media (max-width:900px){ .calc-shell{ grid-template-columns:1fr; } }
.result-card{ position:sticky; top:96px; background:var(--navy); color:#fff; border-radius:20px; padding:30px; }
@media (max-width:900px){ .result-card{ position:static; } }
.result-card h3{ color:#fff; }
.result-row{ display:flex; justify-content:space-between; padding:10px 0; border-bottom:1px solid rgba(255,255,255,0.12); }
.result-row span:first-child{ color:#B9C7D6; font-size:.9rem; }
.result-row span:last-child{ font-weight:700; }
.result-big{ font-family:'Fraunces', serif; font-size:2.2rem; margin:10px 0 2px; color:var(--gold); }
.tiles{ display:grid; grid-template-columns:repeat(4,1fr); gap:10px; margin-top:6px; }
@media (max-width:520px){ .tiles{ grid-template-columns:1fr 1fr; } }
.tile{
  border:1.5px solid var(--border); border-radius:12px; padding:14px 8px; text-align:center; cursor:pointer;
  background:var(--bg-elev); font-size:.85rem; font-weight:600;
}
.tile.active{ border-color:var(--green); background:color-mix(in srgb, var(--green) 12%, transparent); color:var(--green); }
html[data-theme="dark"] .tile.active{ color:#6FD9A5; }
.range-row{ display:flex; justify-content:space-between; font-size:.82rem; color:var(--text-soft); margin-top:6px; }
.note-box{
  border:1px dashed var(--border); border-radius:12px; padding:14px 16px; font-size:.85rem; color:var(--text-soft); margin-top:18px;
}
.note-box a{ color:var(--green); font-weight:600; text-decoration:underline; }
html[data-theme="dark"] .note-box a{ color:#6FD9A5; }

/* Testimonials */
.testi-card{ break-inside:avoid; }
.testi-photo{ width:100%; aspect-ratio:4/3; object-fit:cover; border-radius:10px; margin-bottom:14px; background:var(--cream-2); }
.testi-meta{ display:flex; justify-content:space-between; align-items:center; margin-top:10px; }
.testi-name{ font-weight:700; font-size:.95rem; }
.testi-loc{ font-size:.78rem; color:var(--text-soft); }
.masonry{ columns:3; column-gap:20px; }
@media (max-width:900px){ .masonry{ columns:2; } }
@media (max-width:600px){ .masonry{ columns:1; } }
.masonry .card{ margin-bottom:20px; display:inline-block; width:100%; }

.status-pill{ display:inline-block; padding:4px 10px; border-radius:999px; font-size:.72rem; font-weight:700; }
.status-pending{ background:#FDECC8; color:#7A4E00; }
.status-approved{ background:#D8F0DF; color:#146C34; }
html[data-theme="dark"] .status-pending{ background:#4A3A0E; color:#F2C664; }
html[data-theme="dark"] .status-approved{ background:#0F3A22; color:#7FE0A2; }

.admin-row{ display:flex; justify-content:space-between; align-items:flex-start; gap:16px; flex-wrap:wrap; }
.admin-actions{ display:flex; gap:8px; flex-wrap:wrap; }
.admin-actions button{ font-size:.78rem; padding:8px 12px; }

.toast{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%);
  background:var(--navy); color:#fff; padding:14px 22px; border-radius:12px; font-size:.9rem;
  box-shadow:var(--shadow); z-index:200; opacity:0; pointer-events:none; transition:opacity .2s ease;
}
.toast.show{ opacity:1; }

/* Ad slots */
/* TEMPORARY: ads not live yet (AdSense pending approval). Remove this line once real ad units go in. */
.ad-slot{ display:none; }
.ad-slot{ width:100%; max-width:var(--max); margin:0 auto; padding:10px 20px; }
.ad-slot-inner{
  width:100%; min-height:90px; display:flex; align-items:center; justify-content:center;
  background:var(--bg-elev); border:1px dashed var(--border); border-radius:10px;
  font-size:.72rem; color:var(--text-soft); letter-spacing:.04em; text-transform:uppercase;
}
.ad-slot-header .ad-slot-inner{ min-height:60px; }
@media (max-width:600px){ .ad-slot-header .ad-slot-inner{ min-height:50px; font-size:.62rem; } }
.ad-slot-incontent{ padding:30px 20px; }
.ad-slot-incontent .ad-slot-inner{ min-height:250px; max-width:336px; margin:0 auto; }
.ad-slot-prefooter{ padding:20px; }
.ad-slot-prefooter .ad-slot-inner{ min-height:100px; }
@media (max-width:600px){ .ad-slot-incontent .ad-slot-inner{ min-height:200px; } }

/* Trust / "we handle the paperwork" section */
.hoops-card{
  background:var(--bg-elev); border:1px solid var(--border); border-radius:var(--radius);
  padding:20px 22px; display:flex; align-items:flex-start; gap:14px;
}
.hoops-card .num{
  flex-shrink:0; width:32px; height:32px; border-radius:50%; background:color-mix(in srgb, var(--green) 16%, transparent);
  color:var(--green); font-weight:700; font-family:'Fraunces', serif; display:flex; align-items:center; justify-content:center;
}
html[data-theme="dark"] .hoops-card .num{ color:#6FD9A5; }
.hoops-card h3{ font-size:.98rem; margin-bottom:4px; }
.hoops-card p{ font-size:.88rem; margin:0; }

/* FAQ accordion */
.faq-list{ display:flex; flex-direction:column; gap:12px; }
.faq-item{
  background:var(--bg-elev); border:1px solid var(--border); border-radius:var(--radius);
  overflow:hidden;
}
.faq-item summary{
  list-style:none; cursor:pointer; padding:18px 22px; font-weight:600; font-family:'Fraunces', Georgia, serif;
  display:flex; justify-content:space-between; align-items:center; gap:16px; color:var(--text);
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{
  content:'+'; font-size:1.3rem; line-height:1; color:var(--green); flex-shrink:0;
}
html[data-theme="dark"] .faq-item summary::after{ color:#6FD9A5; }
.faq-item[open] summary::after{ content:'\2212'; }
.faq-item .faq-answer{ padding:0 22px 20px; margin:0; }
.faq-group-label{ font-size:.8rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-soft); margin:28px 0 12px; }
.faq-group-label:first-of-type{ margin-top:6px; }

.skip-link{
  position:absolute; left:-9999px; top:0; background:var(--gold); color:#2B1A00; padding:10px 16px; z-index:999;
}
.skip-link:focus{ left:12px; top:12px; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:0.001ms !important; transition-duration:0.001ms !important; }
}
