/* ====== Factor Solar – styles.css ====== */

/* ---- Root Variables ---- */
:root {
    --primary: #49a2dd;
    --primary-dark: #49a2dd;
    --secondary: #0f172a;
    --dark: #0b1120;
    --card-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --section-bg: #0f172a;
    --section-alt: #111827;
    --radius: 16px;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    --font: 'Inter', sans-serif;
    --transition: all 0.35s ease;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.container-flex {
    display: flex;
    align-items: center;
    gap: 64px;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* ---- Headings ---- */
h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 16px;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
}

h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 2px;
}

/* ---- Divider ---- */
.divider {
    width: 56px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 4px;
    margin-bottom: 32px;
}

/* ====== NAVBAR ====== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    background: rgba(11, 17, 32, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--glass-border);
    transition: var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
}

.logo img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid rgba(245, 158, 11, .3);
}

.nav-links {
    display: flex;
    gap: 36px;
    align-items: center;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary);
}

.btn-nav {
    background: var(--primary);
    color: var(--dark) !important;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700 !important;
    transition: var(--transition) !important;
}

.btn-nav:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, .4);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    border-radius: 4px;
    transition: var(--transition);
}

/* ====== HERO ====== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('assets/solar_installed.png') center/cover no-repeat;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(11, 17, 32, 0.85) 0%, rgba(11, 17, 32, 0.5) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
    padding: 0 24px;
}

.hero-content h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, .6);
}

.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 580px;
    margin: 0 auto 36px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    font-weight: 700;
    font-size: 1rem;
    padding: 16px 40px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(245, 158, 11, .45);
    transition: var(--transition);
    letter-spacing: 0.4px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(245, 158, 11, .6);
}

/* ====== QUEM SOMOS ====== */
.quem-somos {
    padding: 120px 0;
    background: var(--section-bg);
}

.quem-somos .text-content {
    flex: 1;
}

.quem-somos .image-content {
    flex: 1;
}

.quem-somos .image-content img {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    object-fit: cover;
    width: 100%;
    max-height: 440px;
    border: 1px solid var(--glass-border);
}

.quem-somos p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.benefits {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text);
}

.icon-check {
    color: var(--primary);
    font-size: 1rem;
}

/* ====== DEPOIMENTOS ====== */
.depoimentos {
    padding: 120px 0;
    background: var(--section-alt);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 32px;
    backdrop-filter: blur(8px);
    transition: var(--transition);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 50px rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
}

.testimonial-card .customer-img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 2px solid var(--primary);
}

.testimonial-card .stars {
    font-size: 1rem;
    margin-bottom: 14px;
}

.testimonial-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 20px;
}

.testimonial-card span {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.avatar-initials {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ====== ORÇAMENTO ====== */
.orcamento {
    padding: 120px 0;
    background: var(--section-bg);
}

.glass-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(16px);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.form-wrapper {
    padding: 64px;
}

.form-wrapper h2 {
    margin-bottom: 12px;
}

.form-wrapper>p {
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 560px;
}

/* Form */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

input,
select,
textarea {
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font);
    font-size: 0.95rem;
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    background: rgba(245, 158, 11, 0.06);
    box-shadow: 0 0 0 3px rgba(245, 158, 11, .15);
}

select option {
    background: var(--secondary);
    color: #fff;
}

.btn-submit {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--dark);
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.4px;
    box-shadow: 0 8px 30px rgba(245, 158, 11, .3);
    margin-top: 8px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(245, 158, 11, .5);
}

.form-message {
    margin-top: 20px;
    padding: 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    display: none;
}

.form-message.success {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    display: block;
}

.form-message.error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    display: block;
}

/* ====== CONTATO ====== */
.contato {
    padding: 120px 0;
    background: var(--section-alt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-top: 48px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 32px;
}

.info-item .icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.info-text strong {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    display: block;
    margin-bottom: 4px;
}

.info-text p {
    color: var(--text-muted);
    margin: 0;
}

.social-links {
    border-left: 1px solid var(--glass-border);
    padding-left: 48px;
}

.social-links p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.icons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.social-icon:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

/* ====== FOOTER ====== */
footer {
    background: #050b18;
    padding: 48px 24px;
    border-top: 1px solid var(--glass-border);
}

footer .footer-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

footer .footer-logo img {
    width: 48px;
    border-radius: 8px;
}

footer p {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin-bottom: 6px;
}

/* ====== ANIMATIONS ====== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.delay-1 {
    transition-delay: 0.15s !important;
}

.delay-2 {
    transition-delay: 0.3s !important;
}

.visible {
    opacity: 1 !important;
    transform: none !important;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 940px) {
    .container-flex {
        flex-direction: column;
        gap: 48px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .social-links {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--glass-border);
        padding-top: 32px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-wrapper {
        padding: 40px 28px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 16px 24px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(7, 12, 25, 0.98);
        justify-content: center;
        align-items: center;
        gap: 36px;
        z-index: 999;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }
}

@media (max-width: 480px) {

    .quem-somos,
    .depoimentos,
    .orcamento,
    .contato {
        padding: 80px 0;
    }

    .form-wrapper {
        padding: 32px 20px;
    }
}