/* Smart Rate Solar - Main Stylesheet */
/* ================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary-blue: #1e3a5f;
    --primary-blue-dark: #152a45;
    --secondary-orange: #f7931e;
    --secondary-orange-dark: #e07d0a;
    --accent-green: #4caf50;
    --accent-green-dark: #3d8b40;
    --light-bg: #f8f9fa;
    --dark-text: #2d3436;
    --gray-text: #636e72;
    --white: #ffffff;
    --border-color: #dee2e6;

    /* Gradients */
    --gradient-orange: linear-gradient(135deg, #f7931e 0%, #ff6b35 100%);
    --gradient-blue: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    --gradient-hero: linear-gradient(135deg, rgba(30, 58, 95, 0.9) 0%, rgba(30, 58, 95, 0.7) 100%);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --section-padding: 80px 0;
    --section-padding-mobile: 50px 0;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-full: 50px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-text);
}

a {
    color: var(--secondary-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-orange-dark);
}

img {
    max-width: 100%;
    height: auto;
}

/* Utility Classes */
.text-primary { color: var(--primary-blue) !important; }
.text-orange { color: var(--secondary-orange) !important; }
.text-green { color: var(--accent-green) !important; }
.text-white { color: var(--white) !important; }
.text-gray { color: var(--gray-text) !important; }

.bg-primary { background-color: var(--primary-blue) !important; }
.bg-light { background-color: var(--light-bg) !important; }
.bg-orange { background-color: var(--secondary-orange) !important; }

.section-padding {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-orange);
    border-radius: 2px;
}

.section-title p {
    max-width: 600px;
    margin: 1rem auto 0;
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 32px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-orange);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-white {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-white:hover {
    background: var(--light-bg);
    color: var(--primary-blue);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* Navigation */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-blue) !important;
}

.navbar-brand span {
    color: var(--secondary-orange);
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--dark-text) !important;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-orange) !important;
}

.navbar .btn-primary {
    padding: 10px 24px;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero), url('../images/hero-solar.jpg') center/cover no-repeat;
    color: var(--white);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

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

.hero-content {
    max-width: 700px;
}

.hero-badge {
    display: inline-block;
    background: var(--secondary-orange);
    color: var(--white);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    font-size: 1.1rem;
}

.hero-phone i {
    font-size: 1.5rem;
    color: var(--secondary-orange);
}

.hero-phone a {
    color: var(--white);
    font-weight: 600;
}

/* Benefits Section */
.benefits-section {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.benefit-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--white);
}

.benefit-card h4 {
    margin-bottom: 1rem;
}

.benefit-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* How It Works Section */
.how-it-works {
    padding: var(--section-padding);
}

.step-card {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h4 {
    margin-bottom: 1rem;
}

.step-card p {
    margin-bottom: 0;
}

/* Connect steps with lines on desktop */
@media (min-width: 768px) {
    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 45px;
        right: -15%;
        width: 30%;
        height: 3px;
        background: var(--border-color);
    }
}

/* Service Area Section */
.service-area {
    padding: var(--section-padding);
    background: var(--primary-blue);
    color: var(--white);
}

.service-area h2 {
    color: var(--white);
}

.service-area p {
    color: rgba(255, 255, 255, 0.85);
}

.area-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.area-tag {
    background: rgba(255, 255, 255, 0.15);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all 0.3s ease;
}

.area-tag:hover {
    background: var(--secondary-orange);
}

/* Testimonials Section */
.testimonials {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.testimonial-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    height: 100%;
}

.testimonial-stars {
    color: #ffc107;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--dark-text);
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-text);
}

.testimonial-name {
    font-weight: 600;
    color: var(--dark-text);
    margin-bottom: 0;
}

.testimonial-location {
    font-size: 0.9rem;
    color: var(--gray-text);
    margin-bottom: 0;
}

/* CTA Section */
.cta-section {
    padding: var(--section-padding);
    background: var(--gradient-orange);
    text-align: center;
    color: var(--white);
}

.cta-section h2 {
    color: var(--white);
    margin-bottom: 1rem;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
.footer {
    background: var(--primary-blue);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand span {
    color: var(--secondary-orange);
}

.footer-text {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

.footer h5 {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-orange);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact i {
    color: var(--secondary-orange);
    width: 20px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--secondary-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Services Page */
.page-header {
    background: var(--gradient-hero), url('../images/hero-solar.jpg') center/cover no-repeat;
    padding: 120px 0 80px;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

.service-detail {
    padding: var(--section-padding);
}

.service-detail:nth-child(even) {
    background: var(--light-bg);
}

.service-icon-lg {
    width: 100px;
    height: 100px;
    background: var(--gradient-orange);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-icon-lg i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-green);
}

/* About Page */
.about-intro {
    padding: var(--section-padding);
}

.about-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.values-section {
    padding: var(--section-padding);
    background: var(--light-bg);
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon i {
    font-size: 1.75rem;
    color: var(--white);
}

.team-section {
    padding: var(--section-padding);
}

.team-card {
    text-align: center;
    padding: 2rem;
}

.team-avatar {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--secondary-orange);
}

.team-avatar i {
    font-size: 4rem;
    color: var(--gray-text);
}

.team-name {
    margin-bottom: 0.25rem;
}

.team-role {
    color: var(--secondary-orange);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Contact Page */
.contact-section {
    padding: var(--section-padding);
}

.contact-info-card {
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    height: 100%;
}

.contact-info-card h3 {
    color: var(--white);
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-item i {
    font-size: 1.25rem;
    color: var(--secondary-orange);
    margin-top: 4px;
}

.contact-item h5 {
    color: var(--white);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.contact-item p,
.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.contact-form-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

/* Success Page */
.success-section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--section-padding);
}

.success-icon {
    width: 120px;
    height: 120px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
}

.success-icon i {
    font-size: 3.5rem;
    color: var(--white);
}

.success-section h1 {
    margin-bottom: 1rem;
}

.success-section p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2rem;
}

/* Legal Pages */
.legal-content {
    padding: var(--section-padding);
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    color: var(--gray-text);
}

.legal-content ul {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 991px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero {
        min-height: 70vh;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section-padding {
        padding: var(--section-padding-mobile);
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .benefit-card,
    .step-card {
        margin-bottom: 1.5rem;
    }

    .footer {
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }
}
