/* ============================================
   A2Z Solar Energy - Frontend Styles
   Theme: Sun-forward green/yellow, energetic
   ============================================ */

:root {
    --sun-yellow: #FFC93C;
    --sun-yellow-deep: #F5A623;
    --leaf-green: #1B8A3F;
    --leaf-green-dark: #0F5C2A;
    --sky-mint: #E8F7EE;
    --ink: #10241A;
    --ink-soft: #43594C;
    --white: #FFFFFF;
    --card-shadow: 0 10px 30px rgba(16, 36, 26, 0.08);
    --radius: 16px;
    --font-display: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; color: var(--ink); }

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-primary {
    background: linear-gradient(135deg, var(--sun-yellow), var(--sun-yellow-deep));
    color: var(--ink);
    box-shadow: 0 8px 20px rgba(245, 166, 35, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(245, 166, 35, 0.45); }
.btn-outline {
    background: transparent;
    border: 2px solid var(--leaf-green);
    color: var(--leaf-green);
}
.btn-outline:hover { background: var(--leaf-green); color: var(--white); }
.btn-light {
    background: var(--white);
    color: var(--leaf-green-dark);
}
.btn-light:hover { transform: translateY(-3px); }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(27,138,63,0.08);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 20px;
}
.logo-mark {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--sun-yellow), var(--leaf-green));
    display: flex; align-items: center; justify-content: center;
    color: var(--white);
    font-size: 20px;
}
.logo-sub { display:block; font-size: 11px; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.5px; }

.nav-links { display: flex; gap: 34px; font-weight: 500; font-size: 15px; }
.nav-links a { position: relative; padding: 6px 0; color: var(--ink); }
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--leaf-green); transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-phone { font-weight: 600; color: var(--leaf-green-dark); font-size: 14px; }

.menu-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 90px 0 70px;
    background: radial-gradient(circle at 85% 15%, rgba(255,201,60,0.35), transparent 55%), var(--sky-mint);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--white); padding: 8px 16px; border-radius: 999px;
    font-size: 13px; font-weight: 600; color: var(--leaf-green-dark);
    box-shadow: var(--card-shadow); margin-bottom: 20px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun-yellow-deep); }
.hero h1 { font-size: 52px; font-weight: 800; margin-bottom: 20px; }
.hero h1 span { color: var(--leaf-green); position: relative; }
.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 480px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; }
.hero-stats .stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: var(--leaf-green-dark); }
.hero-stats .stat-label { font-size: 13px; color: var(--ink-soft); }

.hero-visual {
    position: relative;
    background: linear-gradient(160deg, var(--leaf-green), var(--leaf-green-dark));
    border-radius: 28px;
    padding: 40px;
    color: var(--white);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.sun-orb {
    position: absolute; top: -60px; right: -60px;
    width: 200px; height: 200px; border-radius: 50%;
    background: radial-gradient(circle, var(--sun-yellow), transparent 70%);
    animation: pulse-glow 4s ease-in-out infinite;
}
@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.15); opacity: 1; }
}
.panel-illustration {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    margin-bottom: 24px;
}
.panel-cell {
    aspect-ratio: 1; background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3); border-radius: 6px;
    animation: shine 3s ease-in-out infinite;
}
.panel-cell:nth-child(odd) { animation-delay: 0.3s; }
.panel-cell:nth-child(3n) { animation-delay: 0.6s; }
@keyframes shine {
    0%, 100% { background: rgba(255,255,255,0.15); }
    50% { background: rgba(255,201,60,0.5); }
}
.hero-visual-caption { position: relative; z-index: 2; font-size: 14px; opacity: 0.9; }
.hero-visual-caption strong { font-size: 22px; display: block; margin-bottom: 4px; }

/* ---------- Trust bar ---------- */
.trust-bar {
    background: var(--leaf-green-dark);
    padding: 18px 0;
}
.trust-bar .container { display: flex; justify-content: space-around; flex-wrap: wrap; gap: 12px; }
.trust-item { color: var(--white); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* ---------- Section generic ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--sky-mint); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-tag { font-size: 13px; font-weight: 700; color: var(--sun-yellow-deep); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 10px; display: block; }
.section-head h2 { font-size: 36px; font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--ink-soft); font-size: 16px; }

/* ---------- Services ---------- */
.services-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.service-card {
    background: var(--white); border-radius: var(--radius); padding: 34px 28px;
    box-shadow: var(--card-shadow); border: 1px solid rgba(27,138,63,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 18px 36px rgba(16,36,26,0.12); }
.service-icon {
    width: 56px; height: 56px; border-radius: 14px;
    background: linear-gradient(135deg, var(--sun-yellow), var(--sun-yellow-deep));
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    margin-bottom: 20px;
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Process ---------- */
.process-track {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; position: relative;
}
.process-track::before {
    content: ''; position: absolute; top: 32px; left: 10%; right: 10%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--sun-yellow-deep) 0 10px, transparent 10px 20px);
    z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.step-num {
    width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
    background: var(--white); border: 3px solid var(--leaf-green);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--leaf-green);
}
.process-step h4 { font-size: 16px; margin-bottom: 8px; }
.process-step p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Why us / benefits ---------- */
.benefits-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.benefit-item {
    display: flex; gap: 16px; background: var(--white); padding: 22px;
    border-radius: 14px; box-shadow: var(--card-shadow);
}
.benefit-item .check {
    flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
    background: var(--sky-mint); color: var(--leaf-green);
    display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.benefit-item h4 { font-size: 15.5px; margin-bottom: 4px; }
.benefit-item p { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Calculator ---------- */
.calc-box {
    background: linear-gradient(135deg, var(--leaf-green), var(--leaf-green-dark));
    border-radius: 24px; padding: 50px; color: var(--white);
    display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.calc-box h2 { color: var(--white); font-size: 30px; margin-bottom: 12px; }
.calc-box p { opacity: 0.9; margin-bottom: 24px; font-size: 15px; }
.calc-form label { display: block; font-size: 13px; margin-bottom: 6px; opacity: 0.9; }
.calc-form input, .calc-form select {
    width: 100%; padding: 12px 14px; border-radius: 10px; border: none;
    margin-bottom: 16px; font-size: 14px; font-family: var(--font-body);
}
.calc-result {
    background: rgba(255,255,255,0.12); border-radius: 16px; padding: 24px;
    text-align: center;
}
.calc-result .big { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--sun-yellow); }
.calc-result .lbl { font-size: 13px; opacity: 0.85; margin-top: 6px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testi-card {
    background: var(--white); border-radius: var(--radius); padding: 30px;
    box-shadow: var(--card-shadow); border-top: 4px solid var(--sun-yellow-deep);
}
.testi-stars { color: var(--sun-yellow-deep); margin-bottom: 14px; font-size: 15px; }
.testi-card p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 18px; }
.testi-person { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
    width: 42px; height: 42px; border-radius: 50%;
    background: linear-gradient(135deg, var(--sun-yellow), var(--leaf-green));
    display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700;
}
.testi-person strong { display: block; font-size: 14px; }
.testi-person span { font-size: 12px; color: var(--ink-soft); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-info-card {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow);
    padding: 34px; margin-bottom: 16px; display: flex; gap: 16px; align-items: flex-start;
}
.contact-info-card .ic {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    background: var(--sky-mint); color: var(--leaf-green);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.contact-form {
    background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow);
    padding: 36px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 13px 14px; border-radius: 10px;
    border: 1.5px solid #e2e8e4; font-family: var(--font-body); font-size: 14px;
    transition: border-color 0.2s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--leaf-green);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-success {
    background: var(--sky-mint); color: var(--leaf-green-dark); padding: 16px;
    border-radius: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 600;
}
.form-error {
    background: #FFEBEE; color: #C62828; padding: 16px;
    border-radius: 10px; margin-bottom: 18px; font-size: 14px; font-weight: 600;
}

/* ---------- CTA Band ---------- */
.cta-band {
    background: linear-gradient(120deg, var(--sun-yellow), var(--sun-yellow-deep));
    border-radius: 24px; padding: 50px; text-align: center; margin: 0 24px;
}
.cta-band h2 { font-size: 30px; margin-bottom: 12px; }
.cta-band p { color: var(--ink-soft); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.75); padding: 60px 0 24px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 20px; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.footer-col h5 { color: var(--white); font-size: 14px; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; font-size: 13.5px; }
.footer-col ul li a:hover { color: var(--sun-yellow); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 13px; }

/* ---------- Floating WhatsApp ---------- */
.float-whatsapp {
    position: fixed; bottom: 24px; right: 24px; z-index: 200;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25D366; color: white; display: flex; align-items: center; justify-content: center;
    font-size: 28px; box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    animation: bounce-in 0.6s ease;
}
@keyframes bounce-in { 0% { transform: scale(0); } 70% { transform: scale(1.15); } 100% { transform: scale(1); } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 38px; }
    .services-grid, .process-track, .benefits-grid, .testi-grid { grid-template-columns: 1fr 1fr; }
    .process-track::before { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .calc-box { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .nav-links { display: none; }
    .menu-toggle { display: block; }
    .nav-phone { display: none; }
    .services-grid, .process-track, .benefits-grid, .testi-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 30px; }
    .hero-stats { flex-wrap: wrap; gap: 24px; }
    .form-row { grid-template-columns: 1fr; }
}
