/* ============================================
   Tutubarão - Estilos CSS
   Design: Aquático Minimalista Moderno
   ============================================ */

/* Variáveis de Cores */
:root {
    --primary: #0F4C75;
    --primary-dark: #0A3A5C;
    --primary-light: #3282B8;
    --accent: #A7D8DE;
    --background: #FFFFFF;
    --foreground: #1F2937;
    --card-bg: #F8FAFC;
    --border: #E5E7EB;
    --text-muted: #6B7280;
    --success: #10B981;
    --error: #EF4444;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* ============================================
   Header/Navigation
   ============================================ */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: transparent;
    transition: all 0.3s ease;
}

.header.scrolled {
    background-color: var(--background);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative; /* necessário para o menu mobile */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* =====================
   Menu Desktop
   ===================== */

.nav {
    display: flex;
    gap: 2rem;
}

/* =====================
   Botão Toggle (Hamburger)
   ===================== */

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

.menu-toggle span {
    width: 24px;
    height: 3px;
    background-color: var(--foreground);
    display: block;
    transition: 0.3s;
}

/* =====================
   Mobile
   ===================== */

@media (max-width: 767px) {

    .menu-toggle {
        display: flex;
        z-index: 200;
    }

    .nav {
        display: flex;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: var(--background);
        flex-direction: column;
        gap: 0;

        /* animação suave */
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;

        transition: transform 0.8s ease, opacity 0.3s ease;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        z-index: 150;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-link {
        padding: 1rem;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
}

/* =====================
   Links
   ===================== */

.nav-link {
    color: var(--foreground);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

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

/* ============================================
   Hero Section
   ============================================ */

.hero {
    padding-top: 6rem;
    padding-bottom: 0;
    background: linear-gradient(to bottom, #F0F9FF, #FFFFFF);
    position: relative;
    overflow: hidden;
}

.hero .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-text {
    animation: fadeInUp 0.6s ease-out;
}

.hero-title {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

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

.hero-description {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-buttons {
    flex: 1 1 220px; /* largura mínima */
    text-align: center;
}

@media (max-width: 576px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }
}

.hero-image {
    position: relative;
    height: 24rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(15, 76, 117, 0.2), transparent);
}

.waves-divider {
    position: relative;
    height: 6rem;
    color: var(--primary);
}

.waves-divider svg {
    width: 100%;
    height: 100%;
}

/* ============================================
   Botões
   ============================================ */

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(15, 76, 117, 0.2);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

.btn-float {
    animation: float 3s ease-in-out infinite;
}

.btn-float i {
    margin-right: 18px;
    font-size: 21px;
}

/* ============================================
   Animações
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =====================
   Animação Hamburger → X
   ===================== */

.menu-toggle span {
    transition: 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =====================
   Bloqueio de scroll
   ===================== */

body.menu-open {
    overflow: hidden;
}

/* ============================================
   Seção Sobre
   ============================================ */

.sobre {
    padding: 5rem 0;
    background-color: #F0F9FF;
}

.section-title {
    font-size: 2.25rem;
    text-align: center;
    color: var(--primary);
    margin-bottom: 3rem;
}

.sobre-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .sobre-content {
        grid-template-columns: 1fr 1fr;
    }
}

.sobre-text p {
    font-size: 1.125rem;
    color: var(--foreground);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.sobre-image {
    height: 24rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.sobre-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background-color: var(--background);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.card h3 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ============================================
   Galeria/Carousel
   ============================================ */

.galeria {
    padding: 5rem 0;
    background-color: var(--background);
}

.carousel {
    position: relative;
    background-color: #E5E7EB;
    border-radius: 0.5rem;
    overflow: hidden;
    height: 24rem;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary);
    border: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
}

.carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background-color: white;
}

.carousel-btn-prev {
    left: 1rem;
}

.carousel-btn-next {
    right: 1rem;
}

.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.indicator {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: white;
    width: 2rem;
}

/* ============================================
   Seção Horários
   ============================================ */

.horarios {
    padding: 5rem 0;
    background-color: #F0F9FF;
}

.schedule-wrapper {
    background-color: var(--background);
    /* padding: 2rem; */
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-table thead {
    background-color: var(--primary);
    color: white;
}

.schedule-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.schedule-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border);
}

.schedule-table tbody tr:hover {
    background-color: #F0F9FF;
    transition: background-color 0.3s ease;
}

.schedule-table tbody tr:nth-child(even) {
    background-color: #F8FAFC;
}

.schedule-table .day-cell {
    font-weight: 600;
    color: var(--primary);
}

.schedule-table .time-cell {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.schedule-table .class-cell {
    font-weight: 500;
    color: var(--foreground);
}

@media (max-width: 768px) {
    .schedule-table {
        font-size: 15px;
        padding: 0.5rem;
    }
}



/* ============================================
   Seção Contato
   ============================================ */

.contato {
    padding: 5rem 0;
    background-color: var(--background);
}

.contato-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1024px) {
    .contato-content {
        grid-template-columns: 1fr 1fr;
    }
}

.contato-form h3,
.contato-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Formulário */
.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--foreground);
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 8rem;
}

/* Informações de Contato */
.info-item {
    margin-bottom: 2rem;
}

.info-item strong {
    display: block;
    color: var(--foreground);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-item p {
    color: var(--text-muted);
    line-height: 1.8;
}

.social-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.social-links h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.social-icons a {
    text-decoration: none;
    transition: transform 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
}

/* ============================================
   Seção Localização
   ============================================ */

.localizacao {
    padding: 5rem 0;
    background-color: #F0F9FF;
}

.map-container {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.map-container iframe {
    border: none;
}

/* ============================================
   Footer
   ============================================ */

.footer {
    background-color: var(--primary);
    color: white;
    padding: 3rem 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   Botão WhatsApp Flutuante
   ============================================ */

.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #10B981;
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 1.75rem;
    cursor: pointer;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    z-index: 40;
    animation: float 3s ease-in-out infinite;
}

.whatsapp-btn:hover {
    background-color: #059669;
    transform: scale(1.1);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Responsividade
   ============================================ */

@media (max-width: 768px) {
    .section-title {
        font-size: 1.875rem;
    }

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

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

    .carousel {
        height: 16rem;
    }

    .whatsapp-btn {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
        bottom: 1.5rem;
        right: 1.5rem;
    }
}

/* ============================================
   Acessibilidade
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visível para navegação por teclado */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
