:root {
    /* Colors */
    --primary: #1D6571;
    --primary-light: #2a8b8f;
    --primary-dark: #013F4E;
    --accent: #ff6b35;
    --accent-hover: #e55a2b;
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --bg-light: #F8F9FA;
    --border-color: #ddd;

    /* Spacing & Layout */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

/* --- Utility Classes --- */
.container {
    max-width: var(--container-width);
    width: 90%;
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 40px;
}

.white-text {
    color: rgba(255, 255, 255, 0.9);
}

h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

h2 {
    color: var(--primary-light);
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-header {
    background: var(--white);
    color: var(--primary-light);
}

.btn-primary {
    background: var(--white);
    color: var(--primary-dark);
    font-size: 1.2rem;
}

.btn-full {
    background: var(--primary-light);
    color: var(--white);
    width: 100%;
    border-radius: 30px;
}

.btn-full:hover {
    background: var(--primary);
}

/* --- Header --- */
header {
    background: var(--primary);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    color: var(--white);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
}

.nav-links a:not(.btn) {
    color: var(--white);
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:not(.btn):hover {
    opacity: 0.8;
}

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 24px;
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    background: linear-gradient(0deg, #00B3C3 0%, var(--primary) 100%);
    color: var(--white);
    padding: 60px 0 40px; /* Padding bottom 0 because img overlaps */ 
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.8rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.1rem;
    opacity: 0.95;
    margin-bottom: 10px;
    max-width: 400px;
}

.hero-image {
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 600px;
    margin-bottom: -80px; /* Slight overlap effect */
    border-radius: 10px 10px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

/* --- Form Section --- */
.form-section {
    background: var(--bg-light);
}

.form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

.form-grid {
    display: flex;
    width: 100%;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group{
    width: 100%;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="tel"] {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
}

.checkbox-group {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}
.form-group.full-width {
    grid-column: 1 / -1;
    width: 100%;
}

.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    resize: vertical;
    height: 110px;
    margin-bottom: 12px;
    transition: border-color 0.3s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.form-group textarea::placeholder {
    color: #888;
    font-size: 0.9rem;
}

/* Responsividade para o formulário */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .form-wrapper {
        padding: 25px 20px;
    }

    .checkbox-group{
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .checkbox-group{
        grid-template-columns: 1fr;
    }
}

.btn {
    transition: all 0.3s ease;
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.form-group input:valid,
.form-group textarea:valid {
    border-color: #10B981;
}
/* --- Video Section --- */
.video-section {
    background: var(--white);
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background: #000;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 5;
}

.play-overlay:hover {
    background: rgba(0, 0, 0, 0.5);
}

.play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 70px;
    height: 70px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 20px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px;
}

.video-info {
    text-align: center;
    margin-top: 20px;
    color: var(--primary);
}

/* --- Results Grid --- */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.result-card {
    background: #F8F9FA;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 8px 8px 8px rgba(0,0,0,0.05);
}

.card-icon {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 20px;
}

.result-card h3 {
    color: var(--primary);
    font-size: 1.2rem;
}

.result-card ul {
    list-style: none;
    text-align: left;
    margin-top: 15px;
}

.result-card li {
    padding: 6px 0;
    padding-left: 25px;
    position: relative;
    font-size: 0.9rem;
}

.result-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #248720;
    font-weight: bold;
}

/* --- Benefits --- */
.benefits-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
}

.benefits-section h2{
    color: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1rem;
}

.benefit-item::before {
    content: '✓';
    font-size: 1.2rem;
    font-weight: bold;
    color: #4EF16C;
    
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Location --- */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.location-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.location-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.location-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.location-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.location-link:hover {
    color: var(--primary);
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    background: #eee;
}

/* --- Testimonials --- */
.testimonials-wrapper {
    display: flex;
    justify-content: center;
}

.testimonial-card {
    position: relative;
    width: 100%;
    max-width: 280px;
    aspect-ratio: 9 / 16;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.testimonial-card video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
}

/* Botão Central de Controle */
.video-center-control {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: rgba(255, 107, 53, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4);
    pointer-events: none; /* O clique vai para o card */
}

.testimonial-card:hover .video-center-control {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 107, 53, 1);
    box-shadow: 0 6px 25px rgba(255, 107, 53, 0.6);
}

.testimonial-card:active .video-center-control {
    transform: translate(-50%, -50%) scale(0.95);
}

/* Ícone Play */
.control-icon.play-icon::before {
    content: '';
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent white;
    margin-left: 3px;
    display: block;
}

/* Ícone Pause */
.control-icon.pause-icon::before {
    content: '';
    width: 18px;
    height: 22px;
    border-left: 5px solid white;
    border-right: 5px solid white;
    display: block;
}

/* Esconde o botão quando está tocando (com delay para suavidade) */
.testimonial-card.playing .video-center-control {
    opacity: 0;
    transition: opacity 0.4s ease 0.5s; /* Delay de 0.5s antes de sumir */
}

/* Mostra o botão ao dar hover mesmo durante playback */
.testimonial-card.playing:hover .video-center-control {
    opacity: 1;
    transition: opacity 0.2s ease; /* Aparece rápido no hover */
}

/* Loader enquanto o vídeo carrega */
.video-center-control.loading::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.video-center-control.loading .control-icon {
    opacity: 0;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Overlay escuro sutil quando pausado */
.testimonial-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.testimonial-card.playing::before {
    opacity: 0;
}

/* Responsividade */
@media (max-width: 768px) {
    .testimonial-card {
        max-width: 100%;
    }
    
    .video-center-control {
        width: 60px;
        height: 60px;
    }
    
    .control-icon.play-icon::before {
        border-width: 10px 0 10px 16px;
    }
    
    .control-icon.pause-icon::before {
        width: 14px;
        height: 18px;
        border-left: 4px solid white;
        border-right: 4px solid white;
    }
}

/* --- Footer --- */
footer {
    background: #333;
    color: #ccc;
    padding: 60px 0 20px;
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    color: var(--white);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-column h4 {
    color: #4dd0e1;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item i {
    width: 20px;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid #444;
    padding-top: 20px;
    text-align: center;
    font-size: 0.8rem;
}

/* --- WhatsApp Float --- */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: transform 0.3s;
    z-index: 999;
}

.whatsapp-button:hover {
    transform: scale(1.05);
}

/* ==================== MEDIA QUERIES ==================== */

/* Tablet & Mobile (Max 1024px) */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin: 0 auto 20px;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-image img {
        margin-bottom: -50px;
        max-height: 400px;
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile (Max 768px) */
@media (max-width: 768px) {
    /* Header */
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
    }

    .nav-links.active {
        right: 0;
    }

    .btn-header {
        color: var(--primary);
    }

    /* Grids to Single Column */
    .form-grid,
    .grid-3,
    .location-content,
    .footer-content,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    /* Typography Adjustments */
    .hero-text h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    /* Spacing */
    .section {
        padding: 50px 0;
    }
    
    .form-wrapper {
        padding: 25px;
    }

    .map-container {
        height: 300px;
    }

    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        padding: 10px 20px;
    }
}