/* Perfect Solutions Group - public site styles */
:root {
  --amber: #f59e0b; --amber-dark: #d97706; --amber-soft: #fef3c7;
  --navy: #0f172a; --navy-2: #172238; --navy-3: #1d2c46;
  --bg: #fafaf9; --bg-2: #f1f0ec; --white: #fff;
  --text: #0f172a; --muted: #64748b; --muted-2: #94a3b8;
  --border: rgba(15, 23, 42, .1); --emerald: #059669;
  --font-head: 'Outfit', system-ui, sans-serif; --font-body: 'IBM Plex Sans', system-ui, sans-serif; --font-mono: 'JetBrains Mono', monospace;
  --radius: 1rem; --radius-lg: 2rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-head); letter-spacing: -.03em; margin: 0; line-height: 1.1; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 600; margin-top: 1rem; max-width: 36rem; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0; }
.container { width: 100%; max-width: 1380px; margin: 0 auto; padding: 0 20px; }
.mono { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.mono.tiny { font-size: 9px; color: var(--muted-2); }
.amber { color: var(--amber-dark); }
.amber-light { color: #fcd34d !important; }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--amber-dark); }
.hide-mobile { display: none; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--emerald); }
.dot.pulse { animation: pulse 1.6s ease-in-out infinite; background: #34d399; }
@keyframes pulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 14px 22px; font-size: 14px; font-weight: 700; border: 1px solid transparent; transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: 12px; white-space: nowrap; }
.btn-amber { background: var(--amber); color: var(--navy); box-shadow: 0 12px 25px rgba(245, 158, 11, .22); }
.btn-navy { background: var(--navy); color: #fff; box-shadow: 0 10px 25px rgba(15, 23, 42, .12); }
.btn-outline { background: #fff; border-color: #cbd5e1; color: var(--text); }
.btn-outline:hover { border-color: var(--navy); }
.btn-wa:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-wa-solid { background: #25d366; color: #052e16; margin-top: 28px; }
.btn-block { width: 100%; border-radius: 14px; margin-top: 22px; }

/* header */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; background: rgba(250, 250, 249, .9); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom: 1px solid rgba(226, 232, 240, .8); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: var(--amber); color: var(--navy); box-shadow: 0 6px 20px rgba(245, 158, 11, .25); }
.brand-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; }
.brand-text { line-height: 1; }
.brand-text strong { display: block; font-family: var(--font-head); font-size: 15px; letter-spacing: -.02em; }
.brand-text small { display: block; margin-top: 5px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.desktop-nav, .header-actions { display: none; }
.desktop-nav a { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #475569; margin: 0 10px; white-space: nowrap; transition: color .2s; }
.desktop-nav a:hover { color: var(--navy); }
.pill { border-radius: 999px; padding: 2px 8px; font-size: 9px; font-weight: 700; text-transform: uppercase; }
.pill-amber { background: var(--amber-soft); color: #b45309; }
.header-call { display: inline-flex; white-space: nowrap; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #475569; padding: 8px 12px; border-radius: 999px; transition: background-color .2s, color .2s; }
.header-call:hover { background: #fff; color: var(--navy); }
.menu-toggle { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid #e2e8f0; background: #fff; }
.mobile-nav { display: none; flex-direction: column; gap: 14px; padding: 16px 20px 20px; border-top: 1px solid #e2e8f0; font-size: 14px; font-weight: 600; }
.mobile-nav.open { display: flex; }

/* hero */
main { padding-top: 74px; }
.hero { display: grid; gap: 40px; padding-top: 56px; padding-bottom: 80px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #fde68a; background: #fffbeb; color: #b45309; border-radius: 999px; padding: 6px 12px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; margin-bottom: 20px; }
.hero .eyebrow { margin-bottom: 16px; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); font-weight: 700; line-height: 1.03; letter-spacing: -.045em; max-width: 14ch; }
.lead { margin-top: 28px; font-size: 18px; color: #475569; max-width: 36rem; }
.offer-banner { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; padding: 10px 14px; border-radius: 12px; background: var(--navy); color: #fcd34d; font-size: 13px; font-weight: 600; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid #e2e8f0; max-width: 36rem; }
.hero-metrics p { font-family: var(--font-head); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.hero-metrics small { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); max-width: 100px; line-height: 1.3; }
.hero-visual { position: relative; min-height: 460px; }
.hero-glow { position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(252, 211, 77, .28); filter: blur(60px); }
.hero-card { position: relative; height: 100%; min-height: 460px; overflow: hidden; border-radius: var(--radius-lg); background: var(--navy); box-shadow: 0 25px 70px rgba(15, 23, 42, .18); }
.hero-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero-card-shade { position: absolute; inset: 0; background: linear-gradient(to top, #07111f 0%, transparent 55%); }
.hero-live { position: absolute; left: 20px; top: 20px; padding: 12px 16px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(2, 6, 23, .45); color: #fff; backdrop-filter: blur(10px); }
.hero-live .mono { color: #fcd34d; display: flex; align-items: center; gap: 8px; }
.hero-live p { margin-top: 8px; font-family: var(--font-head); font-size: 24px; font-weight: 600; }
.hero-card-foot { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; color: #fff; }
.hero-card-foot .mono { color: #fcd34d; }
.hero-card-foot h3 { margin-top: 8px; font-size: clamp(1.4rem, 3vw, 1.9rem); max-width: 18ch; }
.hero-sun { display: none; padding: 12px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .1); backdrop-filter: blur(10px); color: #fcd34d; }
.hero-sun small { display: block; margin-top: 8px; font-family: var(--font-mono); font-size: 9px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255, 255, 255, .65); }

/* sections */
.section { padding: 80px 0; }
.section.dark { background: var(--navy); color: #fff; }
.section.dark h2 { color: #fff; }
.section.soft { background: var(--bg-2); border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.split { display: grid; gap: 40px; }
.section-lead { margin-top: 20px; font-size: 16px; color: #475569; max-width: 32rem; }
.section-lead.light { color: #cbd5e1; font-size: 18px; }
.section-lead.small { font-size: 14px; max-width: 24rem; }
.check-line { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 14px; font-weight: 600; color: #334155; }
.check-line svg { color: var(--emerald); }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 28px; font-weight: 700; color: #b45309; }

.feature-grid { display: grid; gap: 1px; margin-top: 56px; overflow: hidden; border-radius: 24px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .1); }
.feature { background: var(--navy-2); padding: 24px; transition: background-color .2s; }
.feature:hover { background: var(--navy-3); }
.feature-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fbbf24; color: var(--navy); margin-bottom: 48px; }
.feature h3 { font-size: 20px; }
.feature p { margin-top: 12px; font-size: 14px; color: #94a3b8; }

/* calculator */
.calc-card { border-radius: var(--radius-lg); border: 1px solid #e2e8f0; background: #fff; padding: 24px; box-shadow: 0 20px 60px rgba(15, 23, 42, .06); }
.calc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.calc-head h3 { margin-top: 8px; font-size: 24px; }
.calc-icon { display: grid; place-items: center; padding: 12px; border-radius: 16px; background: var(--amber-soft); color: #b45309; }
.calc-row { display: flex; align-items: center; justify-content: space-between; margin-top: 36px; }
.calc-row label { font-size: 14px; font-weight: 600; color: #334155; }
.calc-row strong { font-family: var(--font-head); font-size: 24px; }
input[type=range] { width: 100%; margin-top: 20px; accent-color: var(--amber); }
.range-marks { display: flex; justify-content: space-between; margin-top: 8px; color: #94a3b8; font-weight: 500; }
.field-label { display: block; margin-top: 32px; font-size: 14px; font-weight: 600; color: #334155; }
.input { width: 100%; margin-top: 8px; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; padding: 12px 14px; font: inherit; font-size: 14px; color: var(--text); outline: none; transition: border-color .2s; }
.input:focus { border-color: var(--amber); }
.results { display: grid; gap: 12px; margin-top: 32px; }
.results div { border-radius: 12px; background: #f8fafc; padding: 12px; }
.results small { font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #94a3b8; }
.results p { margin-top: 8px; font-family: var(--font-head); font-size: 18px; font-weight: 600; }
.roof-note { margin-top: 20px; border-radius: 12px; background: #f8fafc; padding: 12px; font-size: 12px; color: var(--muted); }
.roof-note strong { color: #1e293b; }

/* gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.chip { border-radius: 999px; padding: 8px 16px; font-size: 12px; font-weight: 700; border: 1px solid #cbd5e1; background: #fff; color: #475569; transition: background-color .2s, color .2s, border-color .2s; }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery { display: grid; gap: 20px; margin-top: 32px; }
.gallery-card { position: relative; overflow: hidden; border-radius: 24px; border: 0; padding: 0; text-align: left; background: #0f172a; }
.gallery-card.hidden { display: none; }
.gallery-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .5s ease; }
.gallery-card:hover img { transform: scale(1.05); }
.gallery-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(2, 6, 23, .85) 0%, transparent 60%); }
.gallery-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; color: #fff; }
.gallery-top { display: flex; align-items: center; justify-content: space-between; }
.kw { border-radius: 999px; background: #fbbf24; color: var(--navy); padding: 4px 10px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; }
.gallery-info h3 { margin-top: 12px; font-size: 20px; }
.gallery-info p { display: flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 12px; color: rgba(255, 255, 255, .7); }

/* services */
.service-grid { display: grid; gap: 12px; }
.service { border-radius: 16px; border: 1px solid #e2e8f0; background: #fff; padding: 20px; transition: transform .2s; }
.service:hover { transform: translateY(-4px); }
.service.solar { border-color: #fde68a; background: #fffbeb; }
.service-top { display: flex; align-items: center; justify-content: space-between; }
.service-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f1f5f9; color: #334155; }
.service.solar .service-icon { background: #fbbf24; color: var(--navy); }
.service h3 { margin-top: 28px; font-size: 20px; }
.service p { margin-top: 8px; font-size: 14px; color: #475569; }

/* projects */
.project-grid { display: grid; gap: 20px; margin-top: 40px; }
.project { display: grid; overflow: hidden; border-radius: 24px; border: 1px solid #e2e8f0; background: #fff; }
.project img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; }
.project-body { padding: 24px; }
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { border-radius: 999px; background: #f1f5f9; padding: 4px 12px; font-size: 12px; font-weight: 600; color: #475569; }
.project h3 { margin-top: 40px; font-size: 24px; }
.project p { margin-top: 12px; font-size: 14px; color: #475569; }
.capacity { display: flex; align-items: center; gap: 8px; margin-top: 28px; font-size: 14px; font-weight: 700; }
.capacity svg { color: var(--amber); }

/* team */
.team-grid { display: grid; gap: 20px; margin-top: 40px; }
.member { overflow: hidden; border-radius: 24px; border: 1px solid #e2e8f0; background: #fff; }
.member-photo { position: relative; overflow: hidden; background: #f1f5f9; }
.member-photo img { width: 100%; aspect-ratio: 4 / 4.3; object-fit: cover; filter: grayscale(.15); transition: transform .5s ease; }
.member:hover .member-photo img { transform: scale(1.05); }
.status { position: absolute; left: 16px; top: 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(2, 6, 23, .6); padding: 6px 12px; font-family: var(--font-mono); font-size: 9px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; backdrop-filter: blur(8px); }
.member-body { padding: 20px; }
.member-body h3 { margin-top: 8px; font-size: 24px; }
.bio { margin-top: 12px; font-size: 14px; color: #475569; }
.member-phone { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-size: 14px; font-weight: 700; color: #1e293b; }

/* contact */
.contact-list { display: grid; gap: 20px; margin-top: 40px; font-size: 14px; color: #cbd5e1; }
.contact-list a, .contact-list p { display: flex; align-items: flex-start; gap: 12px; }
.contact-list svg { flex-shrink: 0; margin-top: 2px; color: #fcd34d; }
.areas { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.areas span { border-radius: 999px; border: 1px solid rgba(255, 255, 255, .15); padding: 6px 12px; font-size: 12px; color: #cbd5e1; }
.lead-form { border-radius: var(--radius-lg); background: #fff; color: var(--text); padding: 24px; }
.form-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.form-head h3 { margin-top: 8px; font-size: 24px; }
.form-head svg { color: #cbd5e1; }
.form-grid { display: grid; gap: 16px; margin-top: 32px; }
.lead-form label { display: block; margin-top: 16px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.form-grid label { margin-top: 0; }
.lead-form .input { margin-top: 8px; }
.lead-form textarea.input { resize: vertical; }
.opt { font-weight: 400; text-transform: none; letter-spacing: 0; }
.form-note { margin-top: 12px; text-align: center; font-size: 12px; color: #94a3b8; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.alert { margin-top: 20px; border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; }
.alert-ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* footer */
.site-footer { background: var(--navy); color: #94a3b8; padding: 0 0 32px; }
.footer-inner { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; font-size: 12px; }

/* whatsapp float + lightbox */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 12px 30px rgba(37, 211, 102, .4); transition: transform .2s; }
.wa-float:hover { transform: scale(1.08); }
.lightbox { position: fixed; inset: 0; z-index: 60; display: none; place-items: center; background: rgba(2, 6, 23, .85); padding: 20px; backdrop-filter: blur(4px); }
.lightbox.open { display: grid; }
.lightbox img { max-height: 85vh; max-width: 100%; border-radius: 16px; object-fit: contain; }
.lightbox-close { position: absolute; right: 20px; top: 20px; border: 0; border-radius: 50%; padding: 12px; background: rgba(255, 255, 255, .12); color: #fff; }

/* responsive */
@media (min-width: 640px) {
  .hero-metrics { grid-template-columns: repeat(4, 1fr); }
  .results { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid, .service-grid { grid-template-columns: 1fr 1fr; }
  .project { grid-template-columns: .85fr 1.15fr; }
  .hero-sun { display: block; }
  .footer-inner { flex-direction: row; }
  .hide-mobile { display: block; }
  .calc-card, .lead-form { padding: 36px; }
}
@media (min-width: 768px) {
  .gallery, .team-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-card.offset { margin-top: 48px; }
  .split-end { grid-template-columns: 1fr auto; align-items: end; }
}
@media (min-width: 1024px) {
  .container { padding: 0 32px; }
  .desktop-nav, .header-actions { display: flex; align-items: center; gap: 8px; }
  .menu-toggle, .mobile-nav { display: none !important; }
  .hero { grid-template-columns: .92fr 1.08fr; align-items: center; padding-top: 80px; padding-bottom: 112px; }
  .hero-visual, .hero-card { min-height: 650px; }
  .section { padding: 112px 0; }
  .split-calc { grid-template-columns: .8fr 1.2fr; }
  .split-services { grid-template-columns: .75fr 1.25fr; }
  .split-contact { grid-template-columns: .8fr 1.2fr; }
  .split-end { grid-template-columns: .7fr 1.3fr; }
  .feature-grid { grid-template-columns: repeat(4, 1fr); }
  .project-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1280px) { .header-call { display: inline-flex; white-space: nowrap; } }
@media (max-width: 1279px) { .header-call { display: none; } }

/* ===== Mobile overflow fixes ===== */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video { max-width: 100%; }

/* glow ko screen ke andar rakhein (page ko chaudaa kar raha tha) */
.hero-glow { right: 0; top: -40px; }
@media (min-width: 1024px) { .hero-glow { right: -80px; top: -80px; } }

/* header: lamba naam/tagline menu button ko bahar na dhakele */
.brand { min-width: 0; }
.brand-text { min-width: 0; }
.brand-text strong, .brand-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-toggle { flex-shrink: 0; margin-left: 12px; }

/* lamba text / email / phone toot sake */
.contact-list span, .tag, .member-phone, .lead, .section-lead { overflow-wrap: anywhere; }

/* grid children ko shrink hone dein */
.hero > *, .split > *, .feature, .service, .project, .project-body, .member, .calc-card, .lead-form, .gallery-card { min-width: 0; }
.gallery-card { width: 100%; }

@media (max-width: 1023px) {
  .hero, .split-calc, .split-services, .split-contact, .project-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .split, .gallery, .team-grid { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.8rem); }
  h2 { font-size: clamp(1.7rem, 7vw, 2rem); }
}
@media (max-width: 639px) {
  .feature-grid, .service-grid, .form-grid, .results, .project { grid-template-columns: minmax(0, 1fr); }
  .hero-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-ctas .btn { width: 100%; }
  .hero-card-foot { left: 16px; right: 16px; bottom: 16px; }
  .hero-live { left: 14px; top: 14px; }
  .calc-card, .lead-form { padding: 20px; }
  .section { padding: 64px 0; }
}

/* mobile menu landscape me scroll ho sake */
.mobile-nav { max-height: calc(100vh - 74px); overflow-y: auto; }
