/* Reset e Variáveis */
:root {
    --primary-color: #427912; /* Verde principal */
    --secondary-color: #69d704; /* Verde destaque */
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #fff;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a { text-decoration: none; }
ul { list-style: none; }

/* Header */
header {
    background: #000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.25);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 52px;
    width: auto;
}

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

.nav-links li { margin-left: 30px; }

.nav-links a {
    color: var(--white);
    font-weight: 500;
    transition: 0.3s;
}

.nav-links .btn-nav {
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 20px;
    border-radius: 5px;
}

.nav-links .btn-nav:hover { background: var(--secondary-color); color: #000; }

.translate-item { position: relative; }

.translate-dropdown {
    position: relative;
    display: inline-block;
}

.translate-toggle {
    border: 1px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.1);
    color: #fff;
    padding: 8px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.translate-toggle:hover {
    background: var(--secondary-color);
    color: #0a0a0a;
    transform: translateY(-2px);
}

.translate-toggle .caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid currentColor;
    transition: transform 0.2s ease;
}

.translate-dropdown.open .translate-toggle .caret {
    transform: rotate(180deg);
}

.translate-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    background: rgba(0,0,0,0.9);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    min-width: 120px;
    z-index: 1200;
}

.translate-dropdown.open .translate-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.translate-btn {
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.08);
    color: #fff;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.translate-btn:hover {
    background: var(--secondary-color);
    color: #0a0a0a;
    transform: translateY(-1px);
}

.translate-btn.active {
    background: var(--secondary-color);
    color: #0a0a0a;
    border-color: var(--secondary-color);
}

.translate-btn.flag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.flag-emoji {
    display: inline-block;
    line-height: 1;
}

.translate-widget-hidden {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 180px;
    height: auto;
    opacity: 0;
}

/* Oculta a barra padrão do Google Translate */
.goog-te-banner-frame {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2) !important;
}
.goog-te-banner-frame.skiptranslate {
    position: fixed !important;
    bottom: 0 !important;
    top: auto !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 9999 !important;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.2) !important;
}
body {
    top: 0 !important;
    margin-top: 0 !important;
    position: relative;
}
#google_translate_element {
    display: none;
}
.goog-logo-link, .goog-te-gadget {
    display: none !important;
}
.goog-te-balloon-frame {
    display: none !important;
}
html {
    margin-top: 0 !important;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 120px 0 80px;
    background: url('https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); /* Overlay preto */
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 30px;
}

.hero-text {
    text-align: left;
}

.hero h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.text-highlight { color: var(--secondary-color); }

.hero p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 0 30px;
}

.hero-btns a {
    display: inline-block;
    padding: 15px 30px;
    margin: 10px 12px 0 0;
    border-radius: 5px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-primary {
    background: var(--secondary-color);
    color: #000;
}

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

.btn-primary:hover { transform: translateY(-3px); opacity: 0.9; }
.btn-secondary:hover { background: var(--white); color: var(--primary-color); }

.hero-form {
    background: rgba(0, 0, 0, 0.7);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.35);
}

.hero-form h3 {
    margin-bottom: 10px;
}

.hero-form p {
    font-size: 0.95rem;
    margin-bottom: 16px;
    color: #e6e6e6;
}

.hero-form form .form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
}

.hero-form form .form-group {
    margin-bottom: 0;
}

.hero-form form .form-group.full {
    grid-column: 1 / -1;
}

.hero-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.hero-form input,
.hero-form select,
.hero-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 6px;
    background: rgba(255,255,255,0.08);
    color: var(--white);
}

.hero-form textarea { resize: vertical; }

.hero-form .btn-submit {
    width: 100%;
    margin-top: 5px;
}

/* Padronização de Seções */
.section-padding { padding: 80px 0; }

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: #0f0f0f;
    margin-bottom: 10px;
}

/* About */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-img img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.about-list li {
    margin: 15px 0;
    display: flex;
    align-items: center;
}

.about-list i {
    color: var(--secondary-color);
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Services */
.services { background: var(--light-bg); }

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

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.service-card h4 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

/* CTA Banner */
.cta-banner {
    background: linear-gradient(rgba(0,0,0,0.68), rgba(0,0,0,0.75)), url('img/porto.jpg') no-repeat center center/cover;
    color: var(--secondary-color);
    padding: 60px 0;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 30px;
    align-items: stretch;
}

.cta-text h3 {
    color: #f2f2f2;
    margin-bottom: 12px;
}

.cta-text p {
    color: #d5e9cc;
    margin-bottom: 16px;
}

.cta-bullets {
    list-style: disc;
    margin-left: 18px;
    color: #c7ddbf;
    line-height: 1.5;
}

.cta-form-box {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 20px;
    color: #f2f2f2;
    box-shadow: 0 10px 22px rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
}

.cta-form-box h4 {
    margin-bottom: 12px;
}

.cta-form-box label {
    color: #e6e6e6;
}

.cta-form-box input,
.cta-form-box select {
    background: rgba(255,255,255,0.08);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 12px;
    border-radius: 6px;
    width: 100%;
}

.cta-form-box select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, #fff 50%),
        linear-gradient(135deg, #fff 50%, transparent 50%);
    background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
    background-size: 8px 8px;
    background-repeat: no-repeat;
}

.cta-form-box .btn-submit {
    margin-top: 6px;
}

.sim-result {
    margin-top: 16px;
    padding: 14px;
    border-radius: 10px;
    background: rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.12);
}

.sim-total {
    margin-bottom: 10px;
    color: #fff;
}

.sim-breakdown {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
}

.sim-breakdown li {
    display: flex;
    justify-content: space-between;
    color: #dfeee0;
    margin-bottom: 6px;
}

.sim-note {
    color: #c3d6bf;
    font-size: 0.85rem;
    margin-top: 6px;
}

.cta-text .btn-secondary {
    display: inline-block;
    margin-top: 8px;
}

.sim-cta-btn {
    background: #25d366;
    color: #0a0a0a;
    border-color: #25d366;
    padding: 14px 24px;
    font-weight: 700;
}

/* Timeline */
.timeline { background: var(--white); }

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.timeline-step {
    perspective: 1000px;
}

.timeline-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 190px;
    transform-style: preserve-3d;
    transition: transform 0.55s ease;
}

.timeline-step:hover .timeline-inner,
.timeline-step:focus-within .timeline-inner {
    transform: rotateY(180deg);
}

.timeline-face {
    position: absolute;
    inset: 0;
    background: var(--white);
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.timeline-face.front::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    border-radius: 12px 12px 0 0;
    background: linear-gradient(90deg, #000, var(--primary-color));
}

.timeline-face.back {
    background: linear-gradient(135deg, #0a0a0a, #0f1a0a);
    color: #e2f0dc;
    transform: rotateY(180deg);
    border-color: rgba(105,215,4,0.25);
}

.step-marker {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #000;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 10px 18px rgba(66, 121, 18, 0.25);
}

.step-content h4 {
    margin-bottom: 8px;
    color: #000;
    font-size: 1.05rem;
}

.timeline-face.back h4 {
    color: #fff;
    margin-bottom: 6px;
}

.timeline-face.back p {
    color: #e6e6e6;
    font-size: 0.97rem;
    margin: 0;
}

/* Contact */
.contact {
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.78)), url('img/port.jpg') no-repeat center center/cover;
    color: #f2f2f2;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-wrapper.single {
    max-width: 720px;
    grid-template-columns: 1fr;
}

.info-item {
    display: flex;
    align-items: center;
    margin: 20px 0;
    font-size: 1.1rem;
}

.info-item i {
    width: 40px;
    height: 40px;
    background: var(--light-bg);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
}

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

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.contact-form {
    background: #fff;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    color: #222;
}

.contact-form h3 { color: #0f0f0f; }
.contact-form p { color: #444; margin-bottom: 16px; }

.faq {
    background: linear-gradient(rgba(255,255,255,0.9), rgba(255,255,255,0.9)), url('img/porto.jpg') no-repeat center center/cover;
    padding: 24px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    color: #222;
}

.faq h3 { color: #0f0f0f; margin-bottom: 8px; }
.faq p { color: #444; margin-bottom: 16px; }

.faq details {
    border: 1px solid #e1e1e1;
    border-radius: 8px;
    padding: 12px 14px;
    margin-bottom: 10px;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq details[open] {
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.faq summary {
    cursor: pointer;
    font-weight: 700;
    color: #0f0f0f;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq summary::marker { color: var(--primary-color); }
.faq details p { margin: 10px 0 0; color: #444; }

.btn-submit {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
}

.btn-submit:hover { background: #2f5c0d; }

.form-feedback {
    margin-top: 12px;
    font-weight: 600;
    min-height: 18px;
}

.whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    background: #25d366;
    color: #0a0a0a;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.2);
    font-weight: 700;
    z-index: 1500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.whatsapp-float i {
    font-size: 1.4rem;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.24);
}

/* Footer */
footer {
    background: #000;
    color: #ddd;
    padding: 30px 0 20px;
    font-size: 0.9rem;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-brand { max-width: 360px; }

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 10px;
}

.footer-partner {
    display: inline-block;
    margin-top: 8px;
}

.footer-partner-logo {
    height: 37px;
    width: auto;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-partner-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.footer-contact h4 {
    margin-bottom: 12px;
    color: var(--secondary-color);
}

.footer-contact .info-item {
    margin: 12px 0;
    color: #eee;
}

.footer-contact .info-item i {
    background: rgba(255,255,255,0.08);
    color: var(--secondary-color);
}

/* Mobile Responsivo */
@media (max-width: 768px) {
    header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 2000;
        padding: 10px 16px;
        background: rgba(0,0,0,0.9);
    }
    nav { width: 100%; }
    .nav-container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
    .logo { order: 0; margin-left: 0; }
    .logo img { height: 46px; }
    .nav-links {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        width: auto;
        margin-top: 0;
    }
    .nav-links li { margin: 0; display: none; }
    .nav-links .translate-item { display: block; }
    .nav-links .btn-nav { padding: 8px 12px; font-size: 0.95rem; }
    .translate-dropdown {
        position: fixed;
        top: 14px;
        right: 14px;
        margin-left: 0;
        bottom: auto;
        z-index: 4000;
        display: block;
    }
    .translate-menu {
        right: 0;
        left: auto;
    }
    .translate-toggle {
        background: #111827;
        color: #fff;
        border: 2px solid #fff;
        padding: 12px 14px;
        box-shadow: 0 6px 14px rgba(0,0,0,0.35);
        border-radius: 10px;
        font-size: 0.95rem;
    }
    .translate-toggle .flag-emoji { font-size: 20px; }
    .hero { padding-top: 140px; }
    .hero h2 { font-size: 2rem; }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-form { margin-top: 10px; }
    .hero-form form .form-grid { grid-template-columns: 1fr; gap: 12px; }
    .about-grid, .contact-wrapper { grid-template-columns: 1fr; }
    .timeline-grid { grid-template-columns: 1fr; }
    .footer-grid { flex-direction: column; }
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .cta-text { order: 1; }
    .cta-form-box { order: 2; }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .timeline-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
