/* =========================================================
   Custom Styles para Empresa de Energia Solar
   Autor: [Seu Nome]
   Data: [Data Atual]
   ========================================================= */

/* =========================================================
   1. Variáveis CSS para Paleta de Cores e Outros Valores
   ========================================================= */
   :root {
    /* Cores Primárias */
    --primary-color: #ffcc00; /* Amarelo Mais Vivo */
    --secondary-color: #ff9800; /* Laranja Vibrante */

    /* Cores de Destaque */
    --highlight-color: #ffee58; /* Amarelo Claro */

    /* Cores de Texto */
    --text-color: #e0e0e0;
    --text-dark: #121212;
    --text-primary: #ffffff;
    --text-secondary: #cfcfcf;

    /* Cores de Background */
    --bg-color: #121212;
    --bg-secondary: linear-gradient(135deg, #1e1e1e 0%, #2c2c2c 100%);
    --bg-tertiary: #2c2c2c;

    /* Cores de Hover */
    --hover-primary: #ffb300; /* Amarelo Mais Escuro */
    --hover-secondary: #ffa726; /* Laranja Mais Claro */

    /* Outros */
    --border-color: #ffcc00;
    --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    --transition-speed: 0.3s;
}

/* =========================================================
   2. Reset e Configurações Básicas
   ========================================================= */

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

/* Fonte Global */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    scroll-behavior: smooth;
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

/* menu: não sublinhar as nav-links ao passar o mouse */
header nav .nav-link,
header nav .nav-link:hover {
  text-decoration: none;
}

/* =========================================================
   3. Header
   ========================================================= */

header {
    background-color: var(--bg-secondary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    height: 60px;
    transition: transform var(--transition-speed);
}

header .logo:hover {
    transform: scale(1.05);
}

header nav ul {
    display: flex;
    gap: 20px;
}

header .nav-link {
  position: relative;
  padding: 5px;
  transition: color .3s;
}

header .nav-link.active {
  color: #ffcc00; /* texto amarelo */
}

header .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffcc00;
}

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

/* =========================================================
   4. Seção Hero (Banner)
   ========================================================= */

/* Ajustes na seção Hero */
.hero {
    background: var(--bg-secondary); /* Aplicação do gradiente */
    padding: 100px 0;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-primary);
}

/* Estrutura do container na seção Hero */
.hero .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

/* Ajustes no conteúdo de texto */
.hero .col-md-6:first-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3em;
    font-weight: 800;
    color: var(--primary-color); /* Amarelo Mais Vivo */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero p {
    color: var(--text-secondary);
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 600px;
}

/* Ajustes no botão */
.hero .btn-primary {
    display: inline-block;
    margin: 0 auto;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 50px;
    transition: background-color var(--transition-speed), 
                color var(--transition-speed), 
                transform var(--transition-speed);
}

.hero .btn-primary:hover {
    background-color: var(--hover-primary);
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* Ajustes na imagem */
.hero .col-md-6:last-child img {
    width: 100%;
    max-width: 500px;
    height: auto;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    transition: transform var(--transition-speed);
}

.hero .col-md-6:last-child img:hover {
    transform: scale(1.02);
}

/* Responsividade */
@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }

    .hero .col-md-6:last-child img {
        max-width: 400px;
        margin-top: 2rem;
    }
}

/* =========================================================
   5. Seção Sobre
   ========================================================= */

.about-home {
    background-color: var(--bg-tertiary);
    padding: 80px 0;
    text-align: center;
}

.about-home h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color); /* Amarelo */
    text-align: center; /* Centralizado */
}

.about-home p {
    color: #cfcfcf;
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center; /* Centralizado */
}

.about-home .btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}

.about-home .btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--text-dark);
    transform: translateY(-3px);
}

/* =========================================================
   6. Seção Serviços
   ========================================================= */

.services {
    background-color: #121212;
    padding: 80px 0;
}

.services h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color); /* Amarelo */
    text-align: center; /* Centralizado */
}

.services p {
    color: #cfcfcf;
    font-size: 1.1em;
    margin-bottom: 40px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services .card-title {
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.3em;
    margin-bottom: 15px;
    text-align: center; /* Centralizado */
}

.services .card-text {
    color: #cfcfcf;
    font-size: 1em;
    line-height: 1.5;
}

.services .card {
    background-color: #1e1e1e;
    border: none;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.services .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(255, 193, 7, 0.7);
}

.services .card-img-top {
    padding: 15px;
    background-color: #1e1e1e;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.services .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}

.services .card img:hover {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

/* =========================================================
   7. Seção Testemunhos
   ========================================================= */

.testimonials {
    background-color: #1e1e1e;
    padding: 80px 0;
}

.testimonials h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color); /* Amarelo */
    text-align: center; /* Centralizado */
}

.testimonials .testimonial {
    background-color: #121212;
    border: 1px solid #ffc107;
    padding: 30px;
    border-radius: 10px;
    transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

.testimonials .testimonial:hover {
    background-color: #ffc107;
    border-color: #e0a800;
    color: #1e1e1e;
}

.testimonials .testimonial h5 {
    color: var(--primary-color); /* Amarelo */
    font-weight: bold;
    margin-top: 15px;
    text-align: center; /* Centralizado */
}

.testimonials .testimonial p {
    color: #cfcfcf;
    font-style: italic;
    font-size: 1em;
    text-align: center; /* Centralizado */
    transition: color 0.3s;
}

.testimonials .testimonial:hover p {
    color: #1e1e1e;
}

/* =========================================================
   8. Seção Chamada para Ação
   ========================================================= */

.cta {
    background-color: #1e1e1e;
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-align: center; /* Centralizado */
}

.cta p {
    color: #cfcfcf;
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: center; /* Centralizado */
}

.cta .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--text-dark);
    font-weight: bold;
    padding: 12px 30px;
    border-radius: 50px;
    transition: background-color var(--transition-speed), color var(--transition-speed), transform var(--transition-speed);
}

.cta .btn-primary:hover {
    background-color: var(--hover-primary);
    color: #fff;
    transform: translateY(-3px);
}

/* =========================================================
   9. Footer
   ========================================================= */

footer {
    background-color: #121212;
    color: #e0e0e0;
    padding: 20px 0;
    text-align: center;
}

footer p {
    margin-bottom: 10px;
    font-size: 1em;
}

footer .social-media a {
    color: #e0e0e0;
    transition: color 0.3s;
    margin: 0 10px;
}

footer .social-media a:hover {
    color: #ffc107;
}

/* =========================================================
   10. Swiper Customization
   ========================================================= */

.swiper-button-next,
.swiper-button-prev {
    color: #ffc107;
    transition: color 0.3s;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    color: #e0a800;
}

.swiper-pagination-bullet {
    background-color: #ffc107;
    opacity: 0.7;
    transition: background-color 0.3s, opacity 0.3s;
}

.swiper-pagination-bullet-active {
    background-color: #fff;
    opacity: 1;
}

/* =========================================================
   11. Responsividade Personalizada
   ========================================================= */

@media (max-width: 1200px) {
    /* Ajustes para Laptops */
    .hero {
        padding: 180px 0;
    }

    .hero h1 {
        font-size: 2.8em;
    }

    .services .card img {
        height: 180px;
    }
}

@media (max-width: 992px) {
    /* Ajustes para Tablets */
    .hero {
        padding: 150px 0;
    }

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

    .services .card img {
        height: 160px;
    }
}

@media (max-width: 768px) {
    /* Ajustes para Dispositivos Móveis */
    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        height: 50px;
    }

    .hero {
        padding: 100px 0;
    }

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

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

    .services {
        padding: 60px 0;
    }

    .services .card-img-top {
        padding: 10px;
    }

    .services .card img {
        height: 150px;
    }

    .testimonials .testimonial {
        padding: 20px;
    }

    .services h2,
    .testimonials h2,
    .cta h2 {
        font-size: 2em;
    }

    .cta h2 {
        color: var(--primary-color);
    }

    .cta p {
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    /* Ajustes para Smartphones */
    .hero {
        padding: 80px 0;
    }

    .hero h1 {
        font-size: 1.8em;
    }

    .hero p {
        font-size: 0.9em;
    }

    .services .card img {
        height: 130px;
    }

    .cta h2 {
        font-size: 1.8em;
    }

    .cta p {
        font-size: 1em;
    }
}

/* =========================================================
   12. Formulários e Feedback Visual
   ========================================================= */

/* Mensagens de Erro */
.error-message {
    font-size: 0.9em;
    color: #e74c3c;
    margin-top: 5px;
}

/* Feedback Visual para Formulários */
input:invalid, textarea:invalid {
    border-color: #e74c3c;
}

input:valid, textarea:valid {
    border-color: #2ecc71;
}

input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(255, 193, 7, 0.5);
}

/* =========================================================
   13. Outras Melhorias Visuais
   ========================================================= */

/* Botões com Ícones */
.btn i {
    transition: transform 0.3s;
}

.btn:hover i {
    transform: translateX(5px);
}

/* Sombreamento de Elementos */
.shadow-lg {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* Bordas Arredondadas */
.rounded {
    border-radius: 10px !important;
}

/* Imagens Responsivas com Sombreamento */
.img-fluid {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s;
}

.img-fluid:hover {
    transform: scale(1.02);
}

/* Cards com Overflow Hidden */
.card {
    overflow: hidden;
}

/* Testemunhos com Transições */
.testimonials .testimonial p {
    transition: color 0.3s;
}

.testimonials .testimonial:hover p {
    color: #1e1e1e;
}
