/* 
    DESIGN SYSTEM - EQUIPE SALMO 40 
    Estilo Náutico Premium, Clean e Moderno
*/

:root {
    /* Paleta de Cores */
    --primary-blue: #002147;       /* Azul Marinho Profundo */
    --secondary-blue: #0a192f;     /* Azul Noite */
    --accent-cyan: #00d4ff;        /* Ciano (CTA) */
    --accent-teal: #2dd4bf;        /* Verde Água */
    --ice-white: #f8fafc;          /* Branco Gelo */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    
    /* Tipografia */
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    
    /* Espaçamento */
    --section-padding: 100px 5%;
    --container-width: 1200px;
    
    /* Transições */
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--ice-white);
    color: var(--secondary-blue);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    font-weight: 700;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 5%;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(15px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 15px 5%;
}

.logo img {
    height: 50px;
    transition: var(--transition-smooth);
}

header.scrolled .logo img {
    height: 45px; /* Leve redução no scroll para elegância */
}

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

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    color: white; /* Default state on dark hero */
}

header.scrolled .nav-links a {
    color: var(--primary-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    transition: var(--transition-smooth);
}

.nav-links a:hover::after {
    width: 100%;
}

.cta-nav {
    background: var(--accent-cyan);
    color: var(--primary-blue) !important;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
}

.cta-nav:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 212, 255, 0.4);
    color: var(--primary-blue) !important; /* Força a cor do texto para não sumir no mobile */
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
    margin-right: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.lang-switcher a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-smooth);
}

header.scrolled .lang-switcher a {
    color: rgba(0, 33, 71, 0.5);
}

.lang-switcher a.active {
    color: var(--accent-cyan) !important;
}

header.scrolled .lang-switcher a.active {
    color: var(--primary-blue) !important;
}

.lang-switcher span {
    color: rgba(255, 255, 255, 0.2);
}

header.scrolled .lang-switcher span {
    color: rgba(0, 33, 71, 0.2);
}

.mobile-menu-logo {
    display: none;
}

/* Mobile Menu Button */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1100; /* Garante que fique acima de tudo */
    position: relative;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: white;
    transition: var(--transition-smooth);
    border-radius: 2px;
    transform-origin: center;
}

header.scrolled .menu-toggle span {
    background: var(--primary-blue);
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
    background: white !important;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(10px); /* Move a linha do meio para fora */
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
    background: white !important;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 33, 71, 0.6), rgba(0, 33, 71, 0.3)), 
                url('assets/hero.png') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 5%;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 20px;
    max-width: 900px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 700px;
    opacity: 0.95;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 18px 35px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-smooth);
    display: inline-block;
}

.btn-primary {
    background: var(--accent-cyan);
    color: var(--primary-blue);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Common Section Styling */
section {
    padding: var(--section-padding);
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 15px;
}

.section-header .sub {
    color: var(--accent-teal);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Fleet / About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: var(--container-width);
    margin: 0 auto;
}

.about-img {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    height: 400px;
}

.fleet-slider {
    width: 100%;
    height: 100%;
    position: relative;
}

.fleet-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.fleet-img.active {
    opacity: 1;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

/* Magia da Ilha Grande - Interactive Timeline/Cards */
#magia {
    background: var(--secondary-blue);
    color: white;
    text-align: center;
}

#magia .sub {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.3);
}

#magia h2 {
    color: var(--ice-white); /* Garantindo contraste máximo */
    font-size: 3rem;
    margin-bottom: 40px;
}

.magia-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.magia-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-smooth);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.magia-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: var(--accent-cyan);
}

.magia-card i {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
    display: block;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.service-img {
    height: 200px;
    overflow: hidden;
}

.service-img img,
.service-img video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-card:hover .service-img img,
.service-card:hover .service-img video {
    transform: scale(1.1);
}

.service-info {
    padding: 30px;
}

.service-info h3 {
    margin-bottom: 10px;
    color: var(--primary-blue);
}

/* Featured Cards (Highlighted Services) */
.featured-card {
    grid-column: span 2;
    display: flex;
    background: var(--primary-blue);
    color: white;
}

.featured-card .service-img {
    flex: 1;
    height: auto;
}

.featured-card .service-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cta-exp {
    margin-top: 20px;
    color: var(--accent-cyan);
    font-weight: 700;
    display: inline-block;
    border-radius: 5px;
    transition: var(--transition-smooth);
}

.cta-exp:hover {
    letter-spacing: 1px;
}

/* Why Choose Us Icons */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: var(--container-width);
    margin: 0 auto;
    text-align: center;
}

.why-item i {
    font-size: 3rem;
    color: var(--accent-cyan);
    margin-bottom: 15px;
}

/* Contact Section */
#contato {
    background: var(--ice-white);
}

.contact-container {
    display: flex;
    gap: 50px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.contact-info {
    flex: 1;
}

.contact-form {
    flex: 1;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

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

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

.form-group input, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group textarea:focus {
    border-color: var(--accent-cyan);
}

.btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
}

/* WhatsApp Floating */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    z-index: 1001;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Footer */
footer {
    background: var(--secondary-blue);
    color: white;
    padding: 60px 5% 30px;
    text-align: center;
}

/* Instagram Preview Card */
.insta-preview {
    margin-top: 30px;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 350px;
    transition: var(--transition-smooth);
}

.insta-preview:hover {
    transform: scale(1.02);
}

.insta-header {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.insta-profile-pic {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 1.2rem;
}

.insta-username {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--secondary-blue);
}

.insta-img {
    aspect-ratio: 1/1;
    background: url('assets/hero.png') center/cover;
    width: 100%;
}

.insta-footer {
    padding: 15px;
}

.insta-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 1.2rem;
    color: #262626;
}

.insta-caption {
    font-size: 0.85rem;
    line-height: 1.4;
}

.insta-caption b {
    margin-right: 5px;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 30px;
}

.social-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-links a {
    font-size: 1.5rem;
}

.social-links a:hover {
    color: var(--accent-cyan);
}

.copyright {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

/* Feedback Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 33, 71, 0.8);
    backdrop-filter: blur(10px);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 4rem;
    color: var(--accent-cyan);
    margin-bottom: 20px;
}

.modal-icon.error {
    color: #ef4444;
}

.modal-content h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-blue);
}

.modal-content p {
    margin-bottom: 30px;
    color: var(--secondary-blue);
}

/* Scroll Animations - Apple Style */
.reveal {
    opacity: 0;
    transform: scale(0.9) translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0, 0.2, 1), 
                transform 1s cubic-bezier(0.2, 0, 0.2, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .featured-card {
        grid-column: span 1;
        flex-direction: column;
    }
    
    .contact-container {
        flex-direction: column-reverse; /* Form primeiro no mobile */
    }

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

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 25, 47, 0.98);
        backdrop-filter: blur(25px);
        flex-direction: column;
        justify-content: flex-start; /* Mudado de center para subir o conteúdo */
        align-items: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 50px 20px; /* Reduzi o padding lateral e controlei o topo */
        z-index: 999;
        gap: 5px; /* Reduz o espaçamento entre itens */
    }

    .mobile-menu-logo {
        display: block;
        margin-bottom: 20px;
    }

    .mobile-menu-logo img {
        height: 70px;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.6rem; /* Reduzido para caber melhor */
        color: white !important;
        margin: 8px 0; /* Menos margem vertical */
        opacity: 0.8;
    }

    .nav-links a:hover {
        opacity: 1;
        color: var(--accent-cyan) !important;
    }

    .nav-links li:last-child {
        margin-top: 40px; /* Reduzido de 80px para 40px conforme solicitado */
    }

    .nav-links .cta-nav {
        font-size: 1.2rem !important;
        white-space: nowrap;
        padding: 15px 30px;
        width: fit-content;
        margin: 0; /* Limpa margens anteriores */
    }

    .nav-links .cta-nav:hover {
        color: var(--primary-blue) !important;
        background: white;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        width: 100%;
    }
}
