/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --color-green: #48c464;
    /* Verde Eaton CTA */
    --color-green-hover: #3ba352;
    --color-blue-dark: #002d5b;
    /* Azul escuro fundo */
    --color-blue-brand: #005eb8;
    --color-light-blue: #6cd1f3;
    --color-text-main: #333333;
    --color-text-light: #f5f5f5;
    --color-white: #ffffff;

    /* Seção de produtos - cores amostradas do layout original */
    --color-product-blue: #005EB8;
    --color-title-on-blue: #48CFF4;
    --color-title-on-white: #00C3D0;
    --color-desc-on-blue: #F3F3F3;
    --color-desc-on-white: #8F8F8F;
    --color-banner-navy: #001230;

    --font-main: 'Inter', sans-serif;

    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.15);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: #fafafa;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Typography Helpers */
.text-green {
    color: var(--color-green);
}

.text-white {
    color: var(--color-white);
}

.text-black {
    color: #000;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--color-blue-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
}

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

.btn-green:hover {
    background-color: var(--color-green-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-text-main);
}

.btn-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-block {
    display: block;
    width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */
.header {
    background-color: var(--color-blue-dark);
    padding: 25px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.logo-victor img {
    height: 65px;
}

.logo-eaton img {
    height: 60px;
}

.nav ul {
    display: flex;
    gap: 30px;
}

.nav a {
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-white);
    transition: var(--transition);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 100px 0;
    color: var(--color-white);
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

/* Darker overlay on the hero to ensure text readability */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(1, 23, 49, 0.9) 0%, rgba(1, 23, 49, 0.4) 100%);
    z-index: 0;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-subtitle {
    color: var(--color-green);
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-description {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 35px;
    font-weight: 500;
    color: var(--color-white);
}

.hero-cta {
    display: flex;
    gap: 15px;
}

.hero-form-wrapper {
    flex: 0 0 380px;
}

.lead-form {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    color: var(--color-text-main);
}

.lead-form h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--color-blue-dark);
}

.lead-form p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-green);
    box-shadow: 0 0 0 3px rgba(72, 196, 100, 0.1);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats {
    padding: 80px 0;
    background-color: var(--color-white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background-color: var(--color-blue-brand);
    color: var(--color-white);
    padding: 40px 20px;
    border-radius: 16px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.icon-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-circle img {
    max-height: 50px;
    object-fit: contain;
}

.stat-card p {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* ==========================================================================
   Sectors Section
   ========================================================================== */
.sectors {
    background-color: transparent;
}

.full-width-banner {
    width: 100%;
    display: block;
    object-fit: cover;
}

/* Faixas de título de seção — texto real sobre a arte de fundo.
   Antes eram PNGs de 1440px com o texto achatado no pixel. */
.section-banner {
    background-color: var(--color-banner-navy);
    background-image: url('./images/banner_CTA_1.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 48px 0;
    text-align: center;
}

.section-banner-title {
    color: var(--color-white);
    font-size: clamp(1.25rem, 1rem + 1.6vw, 2.375rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.sectors-container {
    padding: 60px 20px;
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Center the last row if it has 3 items (total 7 items) */
.sectors-grid .sector-card:nth-child(5) {
    grid-column: 1 / 2;
}

.sectors-grid .sector-card:nth-child(6) {
    grid-column: 2 / 3;
}

.sectors-grid .sector-card:nth-child(7) {
    grid-column: 3 / 4;
}

@media (min-width: 992px) {
    .sectors-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .sectors-grid .sector-card:nth-child(5) {
        grid-column: 2 / 3;
    }

    .sectors-grid .sector-card:nth-child(6) {
        grid-column: 3 / 4;
    }

    .sectors-grid .sector-card:nth-child(7) {
        grid-column: 4 / 5;
    }

    /* Let's adjust to make it look like the image: 4 on top, 3 centered on bottom */
    .sectors-grid {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sector-card {
        width: calc(25% - 20px);
    }
}

.sector-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
}

.sector-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sector-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.1) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

.sector-overlay h3 {
    color: var(--color-white);
    font-size: 1.1rem;
    font-weight: 600;
}

.sector-card:hover img {
    transform: scale(1.1);
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */
.benefits {
    background-color: transparent;
}

.benefits-container {
    padding: 60px 20px;
}

.benefits-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.benefit-card {
    background: var(--color-white);
    border: 1px solid var(--color-green);
    border-radius: 16px;
    padding: 40px 20px;
    text-align: center;
    width: calc(33.333% - 20px);
    transition: var(--transition);
}

.benefit-card:hover {
    border-color: var(--color-green-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.benefit-icon {
    height: 60px;
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.benefit-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Adjust for 5 cards: 3 top, 2 bottom */
@media (min-width: 992px) {

    .benefits-grid .benefit-card:nth-child(4),
    .benefits-grid .benefit-card:nth-child(5) {
        width: calc(40% - 20px);
    }
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.products-list {
    display: flex;
    flex-direction: column;
}

/* Zebra automática: ímpares em azul, pares em branco.
   Vale para qualquer quantidade de produtos — some/adicione um <article>
   e a alternância se reorganiza sozinha. */
.product {
    background-color: var(--color-white);
}

.product:nth-child(odd) {
    background-color: var(--color-product-blue);
}

.product-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px 60px;
    padding-top: 56px;
    padding-bottom: 56px;
}

/* A foto fica à esquerda nas linhas pares. O texto vem sempre antes no HTML
   (bom para SEO e leitor de tela); só a ordem visual muda. */
.product:nth-child(even) .product-media {
    order: -1;
}

.product-title {
    font-size: clamp(1.5rem, 1.05rem + 1.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
    text-wrap: balance;
}

.product:nth-child(odd) .product-title {
    color: var(--color-title-on-blue);
}

.product:nth-child(even) .product-title {
    color: var(--color-title-on-white);
}

.product-desc {
    font-size: clamp(1rem, 0.95rem + 0.25vw, 1.2rem);
    line-height: 1.5;
    max-width: 44ch;
    margin-bottom: 28px;
}

.product:nth-child(odd) .product-desc {
    color: var(--color-desc-on-blue);
}

.product:nth-child(even) .product-desc {
    color: var(--color-desc-on-white);
}

.product-btn {
    padding: 16px 34px;
    font-size: 1.0625rem;
    font-weight: 500;
}

.product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* Nas linhas azuis a foto vive dentro do cartão branco arredondado */
.product:nth-child(odd) .product-media {
    background-color: var(--color-white);
    border-radius: 20px;
    padding: 24px;
}

.product-media img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

@media (max-width: 991px) {
    .product-inner {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 48px;
        padding-bottom: 48px;
    }

    /* Empilhado: a foto vem primeiro em todas as linhas */
    .product-media,
    .product:nth-child(even) .product-media {
        order: -1;
        min-height: 0;
        width: 100%;
        max-width: 480px;
        margin-inline: auto;
    }

    .product:nth-child(odd) .product-media {
        padding: 18px;
    }

    .product-media img {
        max-height: 300px;
    }

    /* linha de leitura confortavel mesmo com a coluna larga do tablet */
    .product-desc {
        max-width: 56ch;
    }
}

@media (max-width: 575px) {
    .product-inner {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .product-media img {
        max-height: 220px;
    }

    .product-btn {
        display: block;
        width: 100%;
        max-width: 340px;
    }

    .section-banner {
        padding: 32px 0;
    }
}

/* ==========================================================================
   Clients Section
   ========================================================================== */
.clients {
    background-color: transparent;
}

.clients-container {
    padding: 60px 20px;
}

.clients-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 60px;
}

.clients-logos img {
    max-height: 60px;
    filter: grayscale(100%) opacity(0.7);
    transition: var(--transition);
}

.clients-logos img:hover {
    filter: grayscale(0%) opacity(1);
}

/* ==========================================================================
   Pre-footer Section
   ========================================================================== */
.pre-footer {
    background-color: var(--color-light-blue);
    padding: 60px 0;
    overflow: hidden;
}

.pre-footer-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.pre-footer-images {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.main-rack-img {
    max-height: 400px;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.2));
}

.pre-footer-content {
    flex: 1;
}

.pre-footer-content h2 {
    font-size: 2.2rem;
    color: var(--color-blue-dark);
    margin-bottom: 30px;
    line-height: 1.2;
}

.check-list {
    display: grid;
    gap: 15px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: var(--color-blue-dark);
}

.check-list svg {
    color: var(--color-blue-dark);
}

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

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.brand-col .footer-logo {
    max-height: 60px;
    margin-bottom: 15px;
}

.brand-col p {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    opacity: 0.9;
}

.footer-link:hover {
    opacity: 1;
    color: var(--color-green);
}

.footer-nav li {
    margin-bottom: 10px;
}

.footer-nav a {
    opacity: 0.9;
    font-size: 0.95rem;
}

.footer-nav a:hover {
    opacity: 1;
    color: var(--color-green);
    padding-left: 5px;
}

.address-col p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 5px;
}

.logo-col-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.footer-eaton-logo {
    max-height: 60px;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--color-white);
    font-weight: 600;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }

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

    .hero-cta {
        justify-content: center;
    }

    .hero-form-wrapper {
        width: 100%;
        max-width: 450px;
        margin-top: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .sectors-grid .sector-card {
        width: 100%;
        grid-column: auto;
    }

    .sectors-grid .sector-card:nth-child(5),
    .sectors-grid .sector-card:nth-child(6) {
        grid-column: auto;
    }

    .sectors-grid .sector-card:nth-child(7) {
        grid-column: span 2;
        width: 100%;
    }

    .benefit-card {
        width: calc(50% - 15px);
    }

    .pre-footer-container {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        /* simple mobile menu hidden for now, needs JS to toggle */
    }

    .nav.active {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-blue-dark);
        padding: 20px;
        flex-direction: column;
        align-items: center;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .logo-eaton {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .sectors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .sectors-grid .sector-card {
        width: 100%;
        grid-column: auto;
    }

    .sectors-grid .sector-card:nth-child(5),
    .sectors-grid .sector-card:nth-child(6) {
        grid-column: auto;
    }

    .sectors-grid .sector-card:nth-child(7) {
        grid-column: span 2;
        width: 100%;
    }

    .benefit-card {
        width: 100%;
    }

    .clients-logos {
        gap: 30px;
    }
}