/* ==================================================
   VARIÁVEIS DE COR (BRANDING)
================================================== */
:root {
    --color-amper: #f28c28;
    --color-tech: #0b3c5d;

    --color-primary: #ff860d;
    --color-secondary: #e7c49f;
    --color-accent: #2ECC71;

    --color-dark: #0b3c5d;
    --color-light: #ffffff;
    --color-gray: #f5f5f5;

    --text-title: #1c1c1c;
    --text-body: #444;
    --text-muted: #777;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, .08);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, .12);
}

/* ==================================================
   RESET BÁSICO
================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    background: var(--color-light);
    line-height: 1.6;
}

/* ==================================================
   LOGO AMPERTECH
================================================== */
.logo {
    font-family: "Arial Black", Arial, sans-serif;
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    text-decoration: none;
}

.logo .amper {
    color: var(--color-amper);
}

.logo .tech {
    color: var(--color-tech);
}

/* ==================================================
   HEADER
================================================== */
.header {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.header.sticky {
    position: sticky;
    top: 0;
    z-index: 999;
}

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

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

.nav a {
    text-decoration: none;
    color: var(--text-title);
    font-weight: 500;
}

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

/* ==================================================
   BOTÕES
================================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

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

.btn.secondary {
    border: 2px solid var(--color-secondary);
    color: var(--color-light);
}

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

/* ==================================================
   BOTÃO WHATSAPP (HEADER)
================================================== */
.btn.whatsapp {
    background: var(--color-amper);
    /* laranja sólido */
    color: var(--color-light);
    font-weight: 600;
    padding: 12px 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.btn.whatsapp:hover {
    background: var(--color-tech);
    /* laranja mais claro */
    color: var(--color-light);
    /* TEXTO PRETO */
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, .18);
}

/* mobile: mostra só whatsapp */
@media (max-width: 768px) {
    .nav a:not(.whatsapp) {
        display: none;
    }
}

/* ==================================================
   HERO
================================================== */
.hero {
    background: linear-gradient(rgba(11, 60, 93, .9), rgba(11, 60, 93, .9)),
        url('../img/usina_solo.jpg') center/cover;
    color: #fff;
    padding: 100px 0;
}

.hero h1 {
    font-size: 2.8rem;
    margin: 20px 0;
}

.hero h1 span {
    color: var(--color-primary);
}

.hero p {
    max-width: 600px;
}

.hero-actions {
    margin-top: 30px;
    display: flex;
    gap: 20px;
}

/* ==================================================
   SEÇÕES GENÉRICAS
================================================== */
.section-desc {
    margin: 15px 0 40px;
}

.trust {
    background: var(--color-gray);
    padding: 20px 0;
}

.trust ul {
    display: flex;
    gap: 20px;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================================================
   SERVIÇOS
================================================== */
.services {
    padding: 80px 0;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ==========================
   CARDS – INTERAÇÃO PREMIUM
========================== */
.card {
    background: #fff;
    border-radius: 14px;
    padding: 35px 30px;
    box-shadow: var(--shadow-sm);
    border: 2px solid transparent;
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease;

    /* animação de entrada */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpCard .8s ease forwards;
}

.card:nth-child(1) {
    animation-delay: .1s;
}

.card:nth-child(2) {
    animation-delay: .25s;
}

.card:nth-child(3) {
    animation-delay: .4s;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 22px 50px rgba(0, 0, 0, .12);
    border-color: rgba(242, 140, 40, 0.45);
}

/* Ícone */
.card-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
    transition: transform .35s ease;
}

.card:hover .card-icon {
    transform: scale(1.15);
}

/* Título */
.card h3 {
    margin-bottom: 10px;
    transition: color .25s ease;
}

.card:hover h3 {
    color: var(--color-primary);
}

/* Link */
.card a {
    display: inline-block;
    margin-top: 14px;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: color .25s ease;
}

.card:hover a {
    color: var(--color-tech);
}

/* Animação */
@keyframes fadeUpCard {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================
   ÍCONES SVG – MINIMALISTAS
========================== */
.card-icon {
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon .icon {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .35s ease, stroke .35s ease;
}

/* Hover no card afeta o ícone */
.card:hover .icon {
    transform: scale(1.15);
    stroke: var(--color-tech);
}

/* Card destacado */
.card .icon {
    stroke: var(--color-primary);
}


/* ==================================================
   PROCESSO (FLUXO)
================================================== */
.process {
    background: #f8f9fb;
    padding: 80px 0;
}

.section-subtitle {
    max-width: 600px;
    margin: 15px auto 50px;
    text-align: center;
    color: var(--text-muted);
}

.process-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.process-flow::before {
    content: "";
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--color-primary), transparent);
}

.process-card {
    background: #fff;
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp .8s ease forwards;
}

.process-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
}

.step {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    padding: 10px 18px;
    border-radius: 30px;
    margin-bottom: 15px;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================================================
   FOOTER
================================================== */
.footer {
    background: var(--color-dark);
    color: #fff;
    padding: 35px 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer p {
    color: #ccc;
}

.footer-copy {
    text-align: center;
    margin-top: 20px;
    font-size: .8rem;
    color: #aaa;
}

/* Corrige contraste da logo no footer */
.footer .logo .tech {
    color: var(--color-light);
}


/* ==================================================
   RESPONSIVO
================================================== */
@media (max-width: 992px) {
    .process-flow {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-flow::before {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

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

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .process-flow {
        grid-template-columns: 1fr;
    }
}

.hero-subtitle {
    display: inline-block;
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 10px;
}

.hero-subsubtitle {
    display: inline-block;
    color: var(--color-light);
    margin-bottom: 10px;
}

.hero-orcamento {
    padding: 80px 0;
    background: linear-gradient(rgba(11, 60, 93, 0.9),
            rgba(11, 60, 93, 0.9));
    text-align: center;
}

/* ==========================
   ORÇAMENTO - LAYOUT
========================== */
.orcamento {
    padding: 80px 0;
    background: #f8f9fb;
}

.orcamento-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* ==========================
   TEXTO LATERAL
========================== */
.orcamento-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.orcamento-info p {
    margin-bottom: 25px;
    color: var(--text-muted);
    line-height: 1.7;
}

.orcamento-info ul {
    list-style: none;
    padding: 0;
}

.orcamento-info li {
    margin-bottom: 12px;
    font-weight: 500;
    color: var(--text-body);
}

/* ==========================
   FORMULÁRIO
========================== */
.orcamento-form {
    background: #fff;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
}

.orcamento-form h3 {
    margin-bottom: 25px;
    font-size: 1.4rem;
    color: var(--color-dark);
}

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: .9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: border .2s, box-shadow .2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(242, 140, 40, .15);
}

/* ==========================
   BOTÃO FULL
========================== */
.btn-full {
    width: 100%;
    text-align: center;
    font-size: 1.05rem;
    padding: 16px;
}

/* ==========================
   RESPONSIVO
========================== */
@media (max-width: 900px) {
    .orcamento-grid {
        grid-template-columns: 1fr;
    }

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

/* ==========================
   ATENDIMENTO REGIONAL
========================== */
.region {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9fafc, #ffffff);
    text-align: center;
}

.region h2 {
    font-size: 2.1rem;
    margin-bottom: 15px;
    color: var(--color-dark);
}

.region p {
    max-width: 720px;
    margin: auto;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.region::after {
    content: "📍 Espírito Santo • Sul da Bahia";
    display: block;
    margin-top: 20px;
    font-weight: 600;
    color: var(--color-primary);
}

/* ==========================
   CTA FINAL (SUAVE / INSTITUCIONAL)
========================== */
.cta {
    background: linear-gradient(135deg,
            #f6f7f9,
            #eef1f4);
    padding: 90px 0;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--color-dark);
}

.cta p {
    max-width: 620px;
    margin: 0 auto 35px;
    font-size: 1.05rem;
    color: var(--text-muted);
}

.cta .btn.primary {
    background: var(--color-primary);
    color: #fff;
    font-size: 1.05rem;
    padding: 16px 34px;
    border-radius: 8px;
}

.cta .btn.primary:hover {
    background: var(--color-tech);
    color: #fff;
}

/* ==========================
   POR QUE ESCOLHER
========================== */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.why-choose {
    margin-top: 50px;
}

.why-choose h2 {
    margin-bottom: 30px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.why-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .04);
    transition: transform .25s ease, box-shadow .25s ease;
}

.why-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
}

.why-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 140, 0, 0.12);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.why-item p {
    margin: 0;
    font-size: 0.95rem;
}

/* ==========================
           SEÇÃO GALERIA
        ========================== */
.gallery-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f9fafc 0%, #ffffff 100%);
}

.gallery-section h2 {
    font-size: 2.1rem;
    margin-bottom: 10px;
    color: var(--color-dark);
    text-align: center;
}

.gallery-section>.container>p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================
           CARROSSEL
        ========================== */
.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, .15);
    margin-bottom: 40px;
    background: var(--color-light);
}

.carousel {
    display: flex;
    animation: scroll 28s linear infinite;
    width: fit-content;
    background: var(--color-light);
}

.carousel:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 20px));
    }
}

/* ==========================
           CARDS COM IMAGEM
        ========================== */
.project-card {
    flex-shrink: 0;
    width: 340px;
    height: 320px;
    margin: 0 10px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .1);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}

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

.project-card:hover img {
    transform: scale(1.08);
}

/* Overlay com informações */
.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(11, 60, 93, 0.95), rgba(11, 60, 93, 0.6) 60%, transparent);
    padding: 25px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    color: white;
}

.project-card:hover .project-overlay {
    transform: translateY(0);
}

.project-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
    margin-bottom: 6px;
}

.project-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.project-info {
    font-size: 0.9rem;
    opacity: 0.95;
    margin-bottom: 10px;
}

.project-stats {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.project-stat {
    flex: 1;
}

.project-stat-value {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-primary);
}

/* Badge de destaque */
.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-primary);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(255, 140, 13, 0.3);
}

/* ==========================
           INDICADORES
        ========================== */
.carousel-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.carousel-info strong {
    color: var(--color-primary);
}

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

.btn {
    display: inline-block;
    padding: 14px 34px;
    background: var(--color-primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
    background: var(--color-tech);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .15);
}

/* ==========================
           RESPONSIVO
        ========================== */
@media (max-width: 768px) {
    .gallery-section {
        padding: 60px 0;
    }

    .gallery-section h2 {
        font-size: 1.8rem;
    }

    .project-card {
        width: 300px;
        height: 280px;
    }

    .project-overlay {
        padding: 20px;
    }

    .project-title {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .project-card {
        width: 260px;
        height: 240px;
        margin: 0 8px;
    }

    .project-title {
        font-size: 1rem;
    }

    .project-info {
        font-size: 0.8rem;
    }

    .project-stats {
        font-size: 0.75rem;
    }
}