/*
Theme Name: Sandhu Solar Energy
Theme URI: https://sandhusolar.com
Author: Custom
Author URI: https://wordpress.org
Description: A conversion-focused, responsive solar energy theme for Sandhu Solar Energy.
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sandhu-solar
*/

:root {
  --sandhu-navy: #06283d;
  --sandhu-blue: #087ea4;
  --sandhu-teal: #11a6a0;
  --sandhu-gold: #f7bb45;
  --sandhu-cream: #f7faf8;
  --sandhu-ink: #14242b;
  --sandhu-muted: #5d7279;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--sandhu-ink);
  background: var(--sandhu-surface);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--sandhu-blue); text-decoration: none; }
a:hover { color: var(--sandhu-teal); }
button, input, select, textarea { font: inherit; }

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px;
  overflow: hidden; position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto; clip-path: none; color: var(--sandhu-navy);
  display: block; height: auto; left: 8px; padding: 12px 16px; top: 8px; width: auto; z-index: 100000;
}

.site-header { background: var(--sandhu-surface); position: sticky; top: 0; z-index: 50; box-shadow: 0 4px 20px rgba(6,40,61,.08); }
.topbar { background: var(--sandhu-navy); color: #d6eef2; font-size: .8rem; }
.topbar-inner, .nav-inner, .container { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; }
.topbar a { color: #fff; }
.nav-inner { align-items: center; display: flex; gap: 28px; min-height: 78px; }
.site-branding { align-items: center; display: inline-flex; gap: 11px; margin-right: auto; }
.site-branding img { max-height: 48px; width: auto; }
.header-widget { align-items: center; display: flex; }
.header-widget .widget { margin: 0; }
.brand-mark { align-items: center; background: var(--sandhu-gold); border-radius: 12px; color: var(--sandhu-navy); display: inline-flex; font-size: 1.3rem; font-weight: 800; height: 43px; justify-content: center; width: 43px; }
.brand-copy { color: var(--sandhu-navy); font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.02rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.brand-copy small { color: var(--sandhu-teal); display: block; font-size: .62rem; font-weight: 700; letter-spacing: .12em; margin-top: 5px; text-transform: uppercase; }
.primary-menu { align-items: center; display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.primary-menu a { color: var(--sandhu-ink); font-size: .9rem; font-weight: 700; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { color: var(--sandhu-teal); }
.menu-toggle { background: none; border: 0; color: var(--sandhu-navy); display: none; font-size: 1.5rem; padding: 5px; }

.button, .wp-block-button__link {
  align-items: center; border: 0; border-radius: 999px; cursor: pointer; display: inline-flex; font-weight: 800; gap: 9px;
  justify-content: center; padding: 14px 22px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { box-shadow: 0 10px 22px rgba(6,40,61,.16); transform: translateY(-2px); }
.button-primary { background: var(--sandhu-gold); color: var(--sandhu-navy); }
.button-primary:hover { color: var(--sandhu-navy); }
.button-outline { border: 1px solid rgba(255,255,255,.5); color: #fff; }
.button-outline:hover { background: #fff; color: var(--sandhu-navy); }
.button-teal { background: var(--sandhu-teal); color: #fff; }
.button-teal:hover { color: #fff; }

.hero { background: var(--sandhu-navy); color: #fff; overflow: hidden; position: relative; }
.hero::after { background: radial-gradient(circle, rgba(17,166,160,.28), transparent 65%); content: ""; height: 500px; position: absolute; right: -150px; top: -180px; width: 500px; }
.hero-grid { align-items: center; display: grid; gap: 60px; grid-template-columns: 1.05fr .95fr; min-height: 620px; padding-bottom: 70px; padding-top: 70px; position: relative; z-index: 1; }
.eyebrow { color: var(--sandhu-teal); font-size: .78rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { color: #fff; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(2.6rem, 5vw, 4.75rem); letter-spacing: -.07em; line-height: 1.04; margin: 18px 0 22px; max-width: 700px; }
.hero h1 em { color: var(--sandhu-gold); font-style: normal; }
.hero p { color: #b7d1d6; font-size: 1.08rem; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-art { background: linear-gradient(135deg, #0a4560, #0a293c 70%); border: 1px solid rgba(255,255,255,.12); border-radius: 26px; min-height: 400px; overflow: hidden; padding: 26px; position: relative; }
.sun { background: var(--sandhu-gold); border-radius: 50%; box-shadow: 0 0 70px rgba(247,187,69,.45); height: 100px; position: absolute; right: 44px; top: 38px; width: 100px; }
.hero-panel { background: rgba(255,255,255,.1); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.15); border-radius: 16px; bottom: 24px; left: 24px; padding: 20px; position: absolute; right: 24px; }
.hero-panel strong { display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 2rem; }
.hero-panel span { color: #b7d1d6; font-size: .78rem; }
.solar-grid { bottom: 0; height: 58%; left: 12%; opacity: .5; position: absolute; transform: perspective(400px) rotateX(48deg) rotateZ(-8deg); width: 80%; }
.solar-grid::before, .solar-grid::after { content: ""; inset: 0; position: absolute; }
.solar-grid::before { background: repeating-linear-gradient(90deg, transparent 0 32px, rgba(255,255,255,.3) 33px 34px); }
.solar-grid::after { background: repeating-linear-gradient(0deg, transparent 0 26px, rgba(255,255,255,.3) 27px 28px); }

.stats { background: var(--sandhu-cream); border-bottom: 1px solid #e2eded; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { border-right: 1px solid #e0eaea; padding: 27px 22px; }
.stat:last-child { border-right: 0; }
.stat strong { color: var(--sandhu-navy); display: block; font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.7rem; letter-spacing: -.06em; }
.stat span { color: var(--sandhu-muted); font-size: .82rem; }

.section { padding: 100px 0; }
.section-soft { background: var(--sandhu-cream); }
.section-heading { margin-bottom: 42px; max-width: 640px; }
.section-heading h2 { color: var(--sandhu-navy); font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -.06em; line-height: 1.1; margin: 12px 0 14px; }
.section-heading p { color: var(--sandhu-muted); margin: 0; }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading.center p { margin-left: auto; margin-right: auto; }

.services-grid, .projects-grid, .brands-grid { display: grid; gap: 18px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.service-card { background: var(--sandhu-surface); border: 1px solid #e3eded; border-radius: 16px; padding: 28px; transition: box-shadow .2s ease, transform .2s ease; }
.service-card:hover { box-shadow: 0 18px 38px rgba(6,40,61,.1); transform: translateY(-5px); }
.icon-badge { align-items: center; background: #e4f7f2; border-radius: 12px; color: var(--sandhu-teal); display: inline-flex; font-size: 1.4rem; height: 48px; justify-content: center; width: 48px; }
.service-card h3 { color: var(--sandhu-navy); font-family: "Plus Jakarta Sans", sans-serif; font-size: 1.15rem; margin: 20px 0 8px; }
.service-card p { color: var(--sandhu-muted); font-size: .9rem; margin: 0; }
.text-link { display: inline-flex; font-size: .85rem; font-weight: 800; gap: 7px; margin-top: 20px; }

.calculator-preview { background: var(--sandhu-navy); border-radius: 24px; color: #fff; display: grid; gap: 46px; grid-template-columns: .9fr 1.1fr; overflow: hidden; padding: 50px; }
.calculator-preview h2 { color: #fff; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(2rem, 3vw, 3.1rem); letter-spacing: -.06em; line-height: 1.05; margin: 14px 0; }
.calculator-preview p { color: #b7d1d6; }
.calculator-points { list-style: none; margin: 25px 0 0; padding: 0; }
.calculator-points li { color: #d3e5e7; margin: 12px 0; }
.calculator-points li::before { color: var(--sandhu-gold); content: "✓"; font-weight: 800; margin-right: 10px; }
.calculator-widget { background: var(--sandhu-surface); border-radius: 18px; color: var(--sandhu-ink); padding: 28px; }
.calculator-widget h3 { color: var(--sandhu-navy); margin-top: 0; }

.brands-grid { grid-template-columns: repeat(5, 1fr); }
.brand-tile { align-items: center; background: var(--sandhu-surface); border: 1px solid #e7eeee; border-radius: 12px; color: var(--sandhu-muted); display: flex; font-size: .9rem; font-weight: 800; justify-content: center; min-height: 82px; padding: 12px; text-align: center; }
.projects-grid { grid-template-columns: repeat(3, 1fr); }
.project-card { border-radius: 18px; min-height: 270px; overflow: hidden; padding: 24px; position: relative; }
.project-card::before { background: linear-gradient(0deg, rgba(6,40,61,.85), transparent); content: ""; inset: 0; position: absolute; }
.project-card:nth-child(1) { background: linear-gradient(135deg, #078a97, #15324e); }
.project-card:nth-child(2) { background: linear-gradient(135deg, #c88a35, #133b4c); }
.project-card:nth-child(3) { background: linear-gradient(135deg, #456d62, #102f46); }
.project-card-content { bottom: 23px; color: #fff; left: 24px; position: absolute; right: 24px; z-index: 1; }
.project-card h3 { color: #fff; font-size: 1.1rem; margin: 0 0 3px; }
.project-card p { color: #d5e6e6; font-size: .82rem; margin: 0; }

.split-callout { align-items: center; display: grid; gap: 50px; grid-template-columns: 1fr 1fr; }
.check-list { list-style: none; margin: 25px 0 0; padding: 0; }
.check-list li { border-bottom: 1px solid #e4eded; padding: 13px 0; }
.check-list li::before { color: var(--sandhu-teal); content: "●"; font-size: .8rem; margin-right: 12px; }
.callout-card { background: var(--sandhu-gold); border-radius: 24px; color: var(--sandhu-navy); padding: 44px; }
.callout-card h2 { font-family: "Plus Jakarta Sans", sans-serif; font-size: 2.4rem; letter-spacing: -.06em; line-height: 1.1; margin: 0 0 14px; }

.contact-grid { display: grid; gap: 22px; grid-template-columns: .85fr 1.15fr; }
.contact-info { background: var(--sandhu-navy); border-radius: 20px; color: #fff; padding: 38px; }
.contact-info h2 { color: #fff; font-family: "Plus Jakarta Sans", sans-serif; font-size: 2.2rem; letter-spacing: -.06em; line-height: 1.1; margin-top: 0; }
.contact-info p, .contact-info a { color: #b7d1d6; }
.contact-details { list-style: none; margin: 30px 0 0; padding: 0; }
.contact-details li { border-top: 1px solid rgba(255,255,255,.14); padding: 16px 0; }
.contact-details strong { display: block; font-size: .74rem; letter-spacing: .12em; margin-bottom: 3px; text-transform: uppercase; }
.form-card { border: 1px solid #e1ebeb; border-radius: 20px; padding: 38px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-field { margin-bottom: 17px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { color: var(--sandhu-navy); display: block; font-size: .78rem; font-weight: 800; margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea, .calculator-widget input, .calculator-widget select { background: var(--sandhu-surface); border: 1px solid #d9e5e4; border-radius: 9px; color: var(--sandhu-ink); min-height: 46px; padding: 10px 13px; width: 100%; }
.form-field textarea { min-height: 120px; resize: vertical; }
.helper-text { color: var(--sandhu-muted); display: block; font-size: .75rem; margin-top: 5px; }
.notice { background: #e5f7ef; border-left: 3px solid var(--sandhu-teal); color: #155c4d; margin-bottom: 20px; padding: 12px 15px; }
.widget-section { padding-bottom: 55px; padding-top: 55px; }
.widget-section > *:first-child { margin-top: 0; }
.widget-section > *:last-child { margin-bottom: 0; }

.page-hero { background: var(--sandhu-navy); color: #fff; padding: 76px 0; }
.page-hero h1 { color: #fff; font-family: "Plus Jakarta Sans", sans-serif; font-size: clamp(2.4rem, 4vw, 4rem); letter-spacing: -.07em; line-height: 1.05; margin: 14px 0 0; }
.page-content { padding: 85px 0; }
.calculator-shell { display: grid; gap: 24px; grid-template-columns: 1.15fr .85fr; }
.calculator-form, .calculator-results { border: 1px solid #e0ebeb; border-radius: 20px; padding: 30px; }
.calculator-form { background: var(--sandhu-surface); }
.calculator-results { background: var(--sandhu-navy); color: #fff; height: fit-content; position: sticky; top: 120px; }
.calculator-results h2 { color: #fff; font-size: 1.35rem; margin-top: 0; }
.appliance-row { align-items: center; border-bottom: 1px solid #e6eeee; display: grid; gap: 10px; grid-template-columns: 1fr 70px 100px 100px; padding: 13px 0; }
.appliance-row label { font-size: .9rem; font-weight: 700; }
.appliance-row input { min-height: 38px; }
.result-list { list-style: none; margin: 20px 0; padding: 0; }
.result-list li { align-items: baseline; border-bottom: 1px solid rgba(255,255,255,.14); display: flex; justify-content: space-between; padding: 14px 0; }
.result-list span { color: #b7d1d6; font-size: .82rem; }
.result-list strong { color: var(--sandhu-gold); font-size: 1.15rem; }
.calculator-disclaimer { color: #b7d1d6; display: block; font-size: .72rem; margin-top: 18px; }
.range-row { align-items: center; display: flex; gap: 14px; }
.range-row input { accent-color: var(--sandhu-teal); }
.range-value { color: var(--sandhu-teal); font-weight: 800; min-width: 52px; }
.quiz-card { background: #eaf8f5; border-radius: 20px; padding: 28px; }
.quiz-card h3 { color: var(--sandhu-navy); margin-top: 0; }

.site-footer { background: #041e2e; color: #b7d1d6; padding: 60px 0 24px; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.2fr .8fr .8fr 1fr; }
.site-footer h3 { color: #fff; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 9px 0; }
.site-footer a { color: #b7d1d6; }
.site-footer a:hover { color: var(--sandhu-gold); }
.footer-socials { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.footer-socials a { font-size: .78rem; font-weight: 700; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); display: flex; font-size: .78rem; justify-content: space-between; margin-top: 44px; padding-top: 20px; }
.whatsapp-float { align-items: center; background: #25d366; border-radius: 50%; bottom: 24px; box-shadow: 0 8px 25px rgba(0,0,0,.2); color: #fff; display: flex; font-size: 1.25rem; height: 52px; justify-content: center; position: fixed; right: 24px; width: 52px; z-index: 40; }
.whatsapp-float:hover { color: #fff; transform: scale(1.06); }

@media (max-width: 900px) {
  .primary-menu { background: var(--sandhu-surface); box-shadow: 0 16px 22px rgba(6,40,61,.1); display: none; flex-direction: column; left: 0; padding: 20px; position: absolute; right: 0; top: 78px; }
  .primary-menu.is-open { display: flex; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .hero-grid, .calculator-preview, .split-callout, .contact-grid, .calculator-shell { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; padding-bottom: 80px; padding-top: 70px; }
  .calculator-results { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .topbar-inner { align-items: flex-start; flex-direction: column; gap: 3px; }
  .topbar-inner, .nav-inner, .container { width: min(100% - 28px, 1180px); }
  .stats-grid, .services-grid, .projects-grid, .brands-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 13px; }
  .stat strong { font-size: 1.3rem; }
  .section { padding: 68px 0; }
  .calculator-preview, .form-card, .contact-info { padding: 26px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
  .appliance-row { grid-template-columns: 1fr 60px 80px; }
  .appliance-row strong:nth-child(4) { display: none; }
  .appliance-row input:nth-of-type(2), .appliance-row input:nth-of-type(3) { grid-row: 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}
.custom-logo img {
  max-width: 150px;
  height: auto;
}