/* Raio Solar - CSS Principal */

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

:root {
    /* Cores da Logo Raio Solar */
    --primary-green: #2E8B57;     /* Verde principal */
    --dark-blue: #1B365D;        /* Azul escuro */
    --solar-yellow: #FFB400;     /* Amarelo solar */
    --light-green: #90EE90;      /* Verde claro */
    --dark-green: #1F5F3F;       /* Verde escuro */
    
    /* Cores complementares */
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --gray: #6C757D;
    --dark-gray: #343A40;
    --black: #000000;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-blue) 100%);
    --gradient-solar: linear-gradient(135deg, var(--solar-yellow) 0%, #FF8C00 100%);
    --gradient-hero: linear-gradient(135deg, var(--dark-blue) 0%, var(--primary-green) 50%, var(--solar-yellow) 100%);
    
    /* Tipografia */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    
    /* Espaçamentos */
    --container-max-width: 1200px;
    --section-padding: 64px 0;
    --border-radius: 12px;
    --border-radius-large: 20px;
    
    /* Sombras */
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-large: 0 8px 30px rgba(0, 0, 0, 0.2);
    
    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Base */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-regular);
    line-height: 1.6;
    color: var(--white);
    background: rgb(21, 24, 28);
    min-height: auto;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.3;
    color: var(--white);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--font-weight-extrabold);
}

h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
}

p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

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

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

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

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

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

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgb(21, 24, 28);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(46, 139, 87, 0.1);
    z-index: 1000;
    transition: var(--transition-medium);
}

.navbar {
    padding: 0.5rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand .logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 1.6rem;
}

.nav-link {
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    position: relative;
    transition: var(--transition-medium);
}

.nav-link:hover {
    color: var(--primary-green);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-solar);
    transition: var(--transition-medium);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: rgb(21, 24, 28);
    margin: 3px 0;
    transition: var(--transition-medium);
}

/* Hero Section */
.hero {
    background: rgb(21, 24, 28);
    color: var(--white);
    padding: 60px 0 40px;
    min-height: auto;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.2rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

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

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.solar-animation {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.solar-animation i {
    font-size: 100px;
    color: var(--solar-yellow);
    animation: pulse 2s ease-in-out infinite;
}

.solar-rays {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid var(--solar-yellow);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotate 10s linear infinite;
}

.solar-rays::before,
.solar-rays::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid var(--solar-yellow);
    border-radius: 50%;
    opacity: 0.2;
    animation: rotate 15s linear infinite reverse;
}

.solar-rays::after {
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    animation-duration: 20s;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3.2rem;
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

/* Services Section */
.services {
    padding: 40px 0;
    background: rgb(21, 24, 28);
    backdrop-filter: blur(10px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.4rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
    transition: var(--transition-medium);
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
    border-color: var(--solar-yellow);
    background: rgba(255, 255, 255, 0.15);
}

.service-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gradient-solar);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: var(--font-weight-semibold);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

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

.service-title {
    margin-bottom: 1rem;
    color: var(--white);
}

.service-description {
    margin-bottom: 1.2rem;
}

.service-features {
    list-style: none;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: var(--font-weight-medium);
}

.service-features i {
    color: var(--primary-green);
    font-size: 0.9rem;
}

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

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.6rem;
}

.benefit-item {
    text-align: center;
    padding: 2rem;
}

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

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

.benefit-item h3 {
    margin-bottom: 1rem;
    color: var(--dark-blue);
}

/* About Section */
.about {
    padding: var(--section-padding);
    background: rgb(21, 24, 28);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.2rem;
    align-items: center;
}

.about-text h2 {
    margin-bottom: 1.2rem;
}

.about-description {
    margin-bottom: 1.2rem;
    font-size: 1.1rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.6rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-green);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: var(--font-weight-medium);
    color: var(--gray);
}

.about-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-large);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--white);
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.image-placeholder p {
    font-size: 1.2rem;
    font-weight: var(--font-weight-semibold);
    color: var(--white);
}

/* Contact Section */
.contact {
    padding: var(--section-padding);
    background: rgb(21, 24, 28);
}

.contact-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.contact-info {
    width: 100%;
    max-width: 600px; /* Limita a largura para melhor leitura */
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    justify-content: center;
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.contact-details h3 {
    margin-bottom: 0.5rem;
    color: var(--white);
}

.contact-details p {
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-regular);
    color: rgba(255, 255, 255, 0.9);
}

.contact-link {
    color: var(--solar-yellow);
    text-decoration: none;
    font-weight: var(--font-weight-medium);
    transition: var(--transition-medium);
}

.contact-link:hover {
    color: var(--primary-green);
}

/* Form */
.form {
    background: rgb(21, 24, 28);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: var(--font-weight-semibold);
    color: var(--dark-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E9ECEF;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-medium);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

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

/* Footer */
.footer {
    background: rgb(21, 24, 28);
    color: var(--white);
    padding: 2.4rem 0 0.8rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.4rem;
    margin-bottom: 2rem;
}

.footer-brand .footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    max-width: 300px;
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition-medium);
}

.footer-links a:hover {
    color: var(--solar-yellow);
}

.footer-contact h4 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.5rem;
}

.footer-contact i {
    color: var(--solar-yellow);
    margin-right: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* Header com fundo verde escuro degradê */
.header {
    background: rgb(21, 24, 28);
    border-bottom: none;
    position: relative;
}

.navbar .container {
    position: relative;
}

/* Logo no canto superior direito em destaque */
.header-logo {
    position: absolute;
    top: -10px;
    right: 20px;
    height: 120px; /* Tamanho grande para destaque */
    width: auto;
    z-index: 1001;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.nav-brand {
    display: none; /* Remove a logo original do nav-brand */
}

.nav-menu {
    margin-left: 0;
}

.nav-link {
    color: var(--white); /* Links brancos no header verde */
}

.nav-link:hover {
    color: var(--solar-yellow);
}

/* Ajustes para o hero section */
.hero {
    padding-top: 140px;
    background: linear-gradient(135deg, #1a4d3a 0%, #0d2818 50%, #2E8B57 100%); /* Degradê verde escuro */
}



/* Estilo para a logomarca na seção hero */
.hero-logo-image {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3));
    animation: pulse 2s ease-in-out infinite;
}

/* Ajuste na animação solar para acomodar a imagem */
.solar-animation {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Remove o ícone do sol original */
.solar-animation i {
    display: none;
}


/* Gallery Section */
.gallery {
    padding: 40px 0;
    background: rgb(21, 24, 28);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-large);
    cursor: pointer;
    aspect-ratio: 4/3;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-medium);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: var(--transition-medium);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-content h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.gallery-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin: 0;
}
