/* ==========================================================================
   AdityaOn — Global Stylesheet
   Design direction: bold gradient energy, dark hero sections, glassy cards,
   confident type scale, subtle motion. Built to feel more dynamic than
   typical solar-industry sites while staying fast on shared hosting
   (no heavy JS frameworks, no external font/icon CDN dependency beyond
   system fonts + inline SVG icons).
   ========================================================================== */

:root {
    /* --- Brand palette (matches official AdityaOn logo spec) --- */
    --color-sun: #FF8200;         /* Aditya orange — official brand color */
    --color-sun-dark: #E67400;
    --color-brand-blue: #0045A5;  /* ON blue — official brand color, used for headings/accents */
    --color-sky: #0B1F3A;         /* deep navy — used for hero/dark section backgrounds only */
    --color-sky-light: #142B4D;
    --color-leaf: #17A673;        /* accent green — clean energy / savings */
    --color-leaf-dark: #128F62;
    --color-text: #1A1F2B;
    --color-muted: #667085;
    --color-bg: #FFFFFF;
    --color-bg-alt: #F7F8FB;
    --color-border: #E6E8EE;

    --gradient-hero: linear-gradient(135deg, #0B1F3A 0%, #142B4D 45%, #1B3A63 100%);
    --gradient-sun: linear-gradient(120deg, #FF8200 0%, #FF9F33 50%, #FFC066 100%);
    --gradient-leaf: linear-gradient(120deg, #17A673 0%, #1DBE84 100%);

    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --fs-xs: 0.8rem;
    --fs-sm: 0.9rem;
    --fs-base: 1rem;
    --fs-lg: 1.25rem;
    --fs-xl: 1.75rem;
    --fs-2xl: 2.75rem;
    --fs-3xl: 3.5rem;

    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 40px;
    --space-5: 64px;
    --space-6: 96px;

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --container-width: 1180px;
    --shadow-soft: 0 4px 24px rgba(11, 31, 58, 0.08);
    --shadow-lift: 0 12px 40px rgba(11, 31, 58, 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-base);
    font-size: var(--fs-base);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--color-sun-dark); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--color-sun); }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-3);
}

h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; margin: 0 0 var(--space-2); }
p { margin: 0 0 var(--space-2); color: var(--color-text); }

/* --- Header / Nav --- */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 200;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    padding-bottom: 14px;
}

.logo {
    display: flex;
    align-items: center;
}
.logo img {
    display: block;
    height: 40px;
    width: auto;
}

.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

.main-nav ul li {
    margin-left: 18px;
}
.main-nav ul li:first-child {
    margin-left: 0;
}

.main-nav a {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}
.main-nav a.active { color: var(--color-sun-dark); }

.nav-cta {
    background: var(--gradient-sun);
    color: #fff !important;
    padding: 10px 18px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(255, 149, 0, 0.35);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255, 149, 0, 0.45); }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-size: var(--fs-base);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
    background: var(--gradient-sun);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255, 149, 0, 0.35);
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(255, 149, 0, 0.45); color: #fff; }

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-sky);
    color: var(--color-sky);
}
.btn-outline:hover { background: var(--color-sky); color: #fff; }

.btn-light {
    background: #fff;
    color: var(--color-sky);
    box-shadow: var(--shadow-soft);
}

/* --- Hero --- */
.hero {
    background: var(--gradient-hero);
    color: #fff;
    padding: var(--space-6) 0 var(--space-5);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: -20%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 149, 0, 0.35) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(23, 166, 115, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

.hero h1 {
    font-size: var(--fs-3xl);
    line-height: 1.1;
    margin-bottom: var(--space-2);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero .highlight {
    background: var(--gradient-sun);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p.lead {
    font-size: var(--fs-lg);
    color: rgba(255, 255, 255, 0.8);
    max-width: 620px;
    margin: 0 auto var(--space-4);
}

.hero-cta-row {
    display: flex;
    gap: var(--space-2);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-4);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-5);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

.hero-stat-number {
    font-size: var(--fs-2xl);
    font-weight: 900;
    background: var(--gradient-sun);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}

.hero-stat-label {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.65);
    margin-top: 4px;
}

/* --- Sections --- */
section { padding: var(--space-5) 0; }
section.alt { background: var(--color-bg-alt); }
section.dark { background: var(--color-sky); color: #fff; }
section.dark p, section.dark h2, section.dark h3 { color: #fff; }

.section-eyebrow {
    display: inline-block;
    color: var(--color-sun-dark);
    font-weight: 700;
    font-size: var(--fs-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: var(--space-1);
}

.section-title {
    font-size: var(--fs-2xl);
    color: var(--color-sky);
    text-align: center;
    margin-bottom: var(--space-1);
}

.section-sub {
    text-align: center;
    color: var(--color-muted);
    max-width: 560px;
    margin: 0 auto var(--space-4);
    font-size: var(--fs-lg);
}

.section-header { text-align: center; margin-bottom: var(--space-4); }

/* --- Cards --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: var(--space-3);
}

.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--gradient-sun);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-2);
    font-size: 1.5rem;
}

.card h3 { color: var(--color-sky); margin-top: 0; font-size: var(--fs-lg); }
.card p { color: var(--color-muted); margin-bottom: 0; }

/* Offering cards (Homes / Commercial / Housing Society) */
.offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-3);
}

.offer-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--gradient-hero);
    color: #fff;
    padding: var(--space-4);
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.2s ease;
}
.offer-card:hover { transform: translateY(-4px); }
.offer-card h3 { color: #fff; font-size: var(--fs-xl); margin-bottom: 6px; }
.offer-card p { color: rgba(255,255,255,0.75); margin-bottom: var(--space-2); }
.offer-card a { color: var(--color-sun); font-weight: 700; }

/* --- Process steps --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--space-3);
    counter-reset: step;
}

.process-step {
    text-align: center;
    padding: var(--space-3);
}

.process-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-sun);
    color: #fff;
    font-weight: 800;
    font-size: var(--fs-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-2);
}

/* --- Forms --- */
.form-group { margin-bottom: var(--space-2); }

.form-group label {
    display: block;
    font-weight: 700;
    margin-bottom: 6px;
    font-size: var(--fs-sm);
    color: var(--color-sky);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: var(--fs-base);
    transition: border-color 0.15s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-sun);
}

.form-group textarea { resize: vertical; min-height: 110px; }

.field-error {
    color: #D64545;
    font-size: var(--fs-xs);
    margin-top: 4px;
    display: none;
}
.field-error.visible { display: block; }

.form-status {
    margin-top: var(--space-2);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    display: none;
    font-weight: 600;
}
.form-status.visible { display: block; }
.form-status.success { background: #E5F7EF; color: #128F62; }
.form-status.error { background: #FDECEA; color: #C0392B; }

.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* --- Lead / consultation form card --- */
.lead-form-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    padding: var(--space-4);
    max-width: 620px;
    margin: 0 auto;
}

/* --- Calculator --- */
.calculator-card {
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    padding: var(--space-4);
}

.calc-result {
    margin-top: var(--space-3);
    padding: var(--space-3);
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    text-align: center;
    display: none;
}
.calc-result.visible { display: block; }

.calc-result .big-number {
    font-size: var(--fs-2xl);
    background: var(--gradient-leaf);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 900;
    display: block;
}

.calc-result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: var(--space-2);
    margin-top: var(--space-3);
    text-align: left;
}
.calc-result-item { background: #fff; border-radius: var(--radius-sm); padding: 14px; border: 1px solid var(--color-border); }
.calc-result-item span { display: block; color: var(--color-muted); font-size: var(--fs-xs); margin-bottom: 4px; }
.calc-result-item strong { font-size: var(--fs-lg); color: var(--color-sky); }

/* --- Testimonials --- */
.testimonial-card {
    background: #fff;
    border-radius: var(--radius-md);
    padding: var(--space-3);
    border: 1px solid var(--color-border);
}
.testimonial-quote { font-size: var(--fs-base); color: var(--color-text); margin-bottom: var(--space-2); }
.testimonial-author { font-weight: 700; color: var(--color-sky); }

/* --- Stats band --- */
.stats-band {
    background: var(--color-sky);
    color: #fff;
    padding: var(--space-4) 0;
}
.stats-band .card-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stats-band .stat-item { text-align: center; }
.stats-band .stat-item .num {
    font-size: var(--fs-2xl);
    font-weight: 900;
    background: var(--gradient-sun);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.stats-band .stat-item .label { color: rgba(255,255,255,0.7); font-size: var(--fs-sm); }

/* --- FAQ --- */
.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-2) 0;
}
.faq-question {
    font-weight: 700;
    color: var(--color-sky);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-answer {
    color: var(--color-muted);
    margin-top: var(--space-1);
    display: none;
}
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-toggle { transition: transform 0.15s ease; font-size: 1.3rem; color: var(--color-sun); }

/* --- Gallery --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-2);
}
.gallery-grid figure {
    margin: 0;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid figcaption {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(11,31,58,0.85), transparent);
    color: #fff;
    padding: 16px;
    font-size: var(--fs-sm);
    font-weight: 600;
}
.gallery-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    font-size: var(--fs-sm);
    text-align: center;
    padding: var(--space-2);
    border: 1.5px dashed var(--color-border);
}

/* --- Notification banner --- */
.notif-banner {
    background: var(--color-leaf);
    color: #fff;
    padding: 10px 0;
    font-size: var(--fs-sm);
    font-weight: 600;
    text-align: center;
}
.notif-banner a { color: #fff; text-decoration: underline; }

/* --- Footer --- */
.site-footer {
    background: var(--color-sky);
    color: #cfd8dc;
    padding: var(--space-5) 0 var(--space-2);
}
.site-footer a { color: #fff; }
.site-footer h4 { color: #fff; font-size: var(--fs-base); }

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-bottom {
    text-align: center;
    font-size: var(--fs-xs);
    color: #8b98a0;
    border-top: 1px solid #22406a;
    padding-top: var(--space-2);
}

/* --- WhatsApp floating button --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    z-index: 999;
    transition: transform 0.2s ease;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

/* --- Auth pages (login/register) --- */
.auth-page {
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-alt);
    padding: var(--space-5) var(--space-2);
}
.auth-card {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift);
    padding: var(--space-4);
    max-width: 440px;
    width: 100%;
}
.auth-card h1 { font-size: var(--fs-xl); color: var(--color-sky); text-align: center; }
.auth-card .auth-sub { text-align: center; color: var(--color-muted); margin-bottom: var(--space-3); }
.auth-switch { text-align: center; margin-top: var(--space-2); font-size: var(--fs-sm); color: var(--color-muted); }

/* --- Responsive --- */
@media (max-width: 1080px) {
    .main-nav { display: none; }
    .hero h1 { font-size: var(--fs-2xl); }
    .hero-stats { gap: var(--space-3); }
}
