/* ============================================================
   VOLL Pilates - base compartilhada das paginas internas
   Cores da marca:
     Verde primário : #00958F / #00968C
     Verde escuro   : #013029
     Dourado        : #CDA256
     Branco         : #FFFFFF
   Fonte: Montserrat (Google Fonts)
   ============================================================ */


/* -----------------------------------------------------------
   RESET E BASE
   ----------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #333;
    background-color: #fff;
    line-height: 1.6;
    /* Sem padding-top: o header é transparente e sobrepõe o hero */
}

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

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}


/* -----------------------------------------------------------
   HEADER — Transparente no topo, branco ao rolar
   ----------------------------------------------------------- */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;

    /* Começa completamente transparente */
    background-color: transparent;
    border-bottom: none;
    box-shadow: none;

    /* Transição suave para fundo branco ao rolar */
    transition: background-color 0.35s ease, box-shadow 0.35s ease;
}

/* Estado ao rolar: fundo branco com sombra */
#main-header.scrolled {
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navegação desktop */
#top-menu-nav {
    display: flex;
    align-items: center;
}

#top-menu {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: nowrap;
}

#top-menu .menu-item {
    position: relative;
}

#top-menu .menu-item > a {
    display: flex;
    align-items: center;
    gap: 4px;
    /* Branco no topo (header transparente sobre o hero) */
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    padding: 8px 10px;
    white-space: nowrap;
    transition: color 0.2s;
}

#top-menu .menu-item > a:hover {
    color: #ffffff;
}

/* Item ativo (Cursos de Pilates em negrito) */
#top-menu .menu-item.current-menu-item > a {
    font-weight: 700;
    color: #ffffff;
}

/* Quando header rolou: links escuros */
#main-header.scrolled #top-menu .menu-item > a {
    color: #333333;
}

#main-header.scrolled #top-menu .menu-item > a:hover {
    color: #00958F;
}

#main-header.scrolled #top-menu .menu-item.current-menu-item > a {
    color: #1a1a1a;
    font-weight: 700;
}

/* Chevron do dropdown, com alinhamento óptico ao texto. */
.menu-chevron {
    display: block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transform: translateY(-1px);
}

/* Submenu dropdown */
#top-menu .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #00958F;
    min-width: 210px;
    z-index: 9999;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border-radius: 0 0 4px 4px;
}

#top-menu .has-submenu:hover > .sub-menu,
#top-menu .has-submenu:focus-within > .sub-menu {
    display: block;
}

#top-menu .sub-menu li a {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    transition: background-color 0.2s;
}

#top-menu .sub-menu li:last-child a {
    border-bottom: none;
}

#top-menu .sub-menu li a:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

/* Botão hamburguer — oculto no desktop */
#mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: auto;
}

/* Branco sobre o hero (header transparente) */
#mobile-toggle span {
    display: block;
    width: 26px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Escuro quando header está com fundo branco */
#main-header.scrolled #mobile-toggle span {
    background-color: #333333;
}

/* Menu mobile */
#mobile-menu {
    background-color: #fff;
    border-top: 2px solid #00958F;
    padding: 8px 0;
}

#mobile-menu li a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: color 0.2s;
}

#mobile-menu li.current a {
    font-weight: 700;
    color: #00958F;
}

#mobile-menu li a:hover {
    color: #00958F;
}


/* -----------------------------------------------------------
   SEÇÃO HERO
   Começa do topo da página (header transparente sobrepõe).
   Foto de fundo com overlay teal.
   ----------------------------------------------------------- */
#section-hero {
    position: relative;
    /* Ocupa da borda superior até o fim do hero, incluindo a área do header */
    min-height: 640px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;

    /* Imagem de fundo original */
    background-image: url('../images/section1-background-1.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

/* Overlay levíssimo no topo + gradiente sutil apenas na base */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 149, 143, 0.15) 0%,
        rgba(0, 149, 143, 0.15) 65%,
        rgba(0, 149, 143, 0.55) 85%,
        #00958F 100%
    );
}

/* Conteúdo centralizado sobre o overlay */
.hero-content {
    position: relative;
    z-index: 1;
    /* padding-top grande para empurrar conteúdo abaixo do header transparente */
    padding: 100px 24px 70px;
    max-width: 720px;
    width: 100%;
}

/* Logo circular no centro do hero */
.hero-logo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 40px;
    object-fit: cover;
}

/* Título principal — igual ao original: 32px, peso 700, 2 linhas */
#section-hero h1 {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2em;
    margin-bottom: 20px;
    text-transform: uppercase;
    text-align: center;
    max-width: 915px;
    margin-left: auto;
    margin-right: auto;
}

/* Subtítulo — original: 18px, peso 300 (fino) */
.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    color: #ffffff;
    line-height: 1.4em;
    max-width: 690px;
    margin: 0 auto;
    text-align: center;
}


/* -----------------------------------------------------------
   SEÇÃO CURSOS
   Fundo teal (#00958F), cards brancos com bordas arredondadas
   ----------------------------------------------------------- */
#section-courses {
    background-color: #00958F;
    padding: 50px 24px 70px;
}

/* Card de curso — flex row, fundo branco, cantos arredondados */
.course-card {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    max-width: 1060px;
    margin: 0 auto 24px;
}

/* Imagem à esquerda ocupa ~40% do card */
.course-card .card-image {
    flex: 0 0 42%;
    max-width: 42%;
    align-self: stretch;
}

.course-card .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

/* Texto do card */
.course-card .card-text {
    flex: 1;
    padding: 40px 50px;
    text-align: left;
}

/* Card invertido: texto esquerda, imagem direita */
.course-card.reverse {
    flex-direction: row-reverse;
}

/* Título do curso */
.course-card .card-text h2 {
    font-size: clamp(17px, 2vw, 22px);
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
    line-height: 1.35;
}

/* Parágrafo do curso */
.course-card .card-text p {
    font-size: 14px;
    font-weight: 400;
    color: #444;
    line-height: 1.75;
    margin-bottom: 28px;
}

/* Destacar links dentro do texto (ex.: "raízes do Pilates") */
.course-card .card-text p a {
    color: #00968C;
    text-decoration: underline;
}

/* Botão CONHEÇA — dourado, texto branco */
.btn-conheca {
    display: inline-block;
    background-color: #CDA256;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 14px 36px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
    transition: background-color 0.25s, transform 0.2s;
}

.btn-conheca:hover {
    background-color: #b7904d;
    transform: scale(1.03);
}


/* -----------------------------------------------------------
   SEÇÃO NEWSLETTER
   Fundo teal, card escuro centralizado
   ----------------------------------------------------------- */
#section-newsletter {
    background-color: #00958F;
    padding: 0 24px 70px;
}

/* Card escuro arredondado */
.newsletter-card {
    background-color: #1a1a1a;
    border-radius: 20px;
    max-width: 1060px;
    margin: 0 auto;
    padding: 60px 80px;
    text-align: center;
}

/* Título da newsletter */
.newsletter-title {
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 600;
    color: #ffffff;
    line-height: 1.5;
    margin-bottom: 36px;
}

/* Texto em destaque teal */
.newsletter-highlight {
    color: #00D4C8;
    font-weight: 700;
}

/* Formulário — campos empilhados */
.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 580px;
    margin: 0 auto;
}

.newsletter-form input {
    width: 100%;
    padding: 16px 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: #333;
    background-color: #fff;
    border: none;
    border-radius: 4px;
    outline: none;
    transition: box-shadow 0.2s;
}

.newsletter-form input:focus {
    box-shadow: 0 0 0 3px rgba(0, 149, 143, 0.4);
}

.newsletter-form input::placeholder {
    color: #999;
}

/* Botão de envio — dourado */
.newsletter-form button {
    width: 100%;
    padding: 17px 20px;
    background-color: #CDA256;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.25s, transform 0.2s;
}

.newsletter-form button:hover {
    background-color: #b7904d;
    transform: scale(1.02);
}


/* -----------------------------------------------------------
   FOOTER — Fundo branco, texto verde escuro
   ----------------------------------------------------------- */
#main-footer {
    background-color: #ffffff;
    padding-top: 60px;
}

/* Grid de 4 colunas */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

/* Títulos das colunas */
.footer-col h3 {
    font-size: 17px;
    font-weight: 700;
    color: #013029;
    margin-bottom: 24px;
}

/* Logo VOLL no footer — imagem circular teal */
.footer-logo-link img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
}

/* Parceiros — logos empilhados */
.footer-partners {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: flex-start;
}

.partner-img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.partner-pratyque {
    height: 28px;
}

/* Instagram row */
.footer-instagram {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #013029;
}

.footer-instagram svg {
    color: #013029;
    flex-shrink: 0;
}

.footer-instagram a {
    font-size: 14px;
    font-weight: 500;
    color: #013029;
    transition: color 0.2s;
}

.footer-instagram a:hover {
    color: #00958F;
}

/* Ícones sociais */
.social-icons {
    display: flex;
    align-items: center;
    gap: 16px;
}

.social-icons a {
    display: inline-flex;
    color: #1a1a1a;
    transition: color 0.2s, transform 0.2s;
}

.social-icons a:hover {
    color: #00958F;
    transform: scale(1.15);
}

/* Links de ajuda */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-links a {
    font-size: 15px;
    color: #013029;
    text-decoration: underline;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #00958F;
}

/* Barra inferior — verde escuro */
.footer-bottom {
    background-color: #013029;
    padding: 22px 24px;
}

.footer-bottom-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.footer-bottom p strong {
    color: rgba(255, 255, 255, 0.9);
    display: block;
}


/* -----------------------------------------------------------
   BOTÃO FLUTUANTE WHATSAPP
   ----------------------------------------------------------- */
@keyframes whatsapp-pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.whatsapp-float {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 58px;
    height: 58px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 9990;
    text-decoration: none;
    animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
    animation: none;
    transform: scale(1.12);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
    fill: #ffffff;
}


/* -----------------------------------------------------------
   RESPONSIVO — TABLET (≤ 980px)
   ----------------------------------------------------------- */
@media (max-width: 980px) {

    /* Esconde nav desktop, mostra hamburguer */
    #top-menu-nav {
        display: none;
    }

    #mobile-toggle {
        display: flex;
    }

    /* Header sempre tem fundo no mobile (legibilidade) */
    #main-header {
        background-color: rgba(0, 0, 0, 0.35);
    }

    #main-header.scrolled {
        background-color: #ffffff;
    }

    .header-inner {
        justify-content: space-between;
    }

    /* Cards empilham: imagem em cima, texto embaixo */
    .course-card,
    .course-card.reverse {
        flex-direction: column;
    }

    .course-card .card-image {
        flex: none;
        max-width: 100%;
        width: 100%;
        height: 260px;
    }

    .course-card .card-image img {
        height: 100%;
        object-fit: cover;
    }

    /* Texto centralizado no tablet */
    .course-card .card-text {
        padding: 32px 36px;
        text-align: center;
    }

    /* Botão centralizado */
    .course-card .card-text .btn-conheca {
        display: inline-block;
    }

    /* Newsletter card menos padding */
    .newsletter-card {
        padding: 48px 40px;
    }

    /* Footer 2 colunas */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* -----------------------------------------------------------
   RESPONSIVO — MOBILE (≤ 640px)
   ----------------------------------------------------------- */
@media (max-width: 640px) {

    /* Hero */
    #section-hero {
        min-height: 460px;
    }

    .hero-logo {
        width: 100px;
        height: 100px;
    }

    #section-hero h1 {
        font-size: 26px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    /* Cards: imagem em cima, texto centralizado embaixo */
    .course-card {
        flex-direction: column;
    }

    .course-card .card-image {
        height: 220px;
    }

    .course-card .card-text {
        padding: 24px 20px;
        text-align: center;
    }

    .course-card .card-text h2 {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .course-card .card-text p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .btn-conheca {
        padding: 12px 28px;
        font-size: 13px;
    }

    /* Newsletter */
    .newsletter-card {
        padding: 36px 20px;
        border-radius: 14px;
    }

    .newsletter-title {
        font-size: 18px;
    }

    /* Footer 1 coluna */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .footer-logo-link {
        display: flex;
        justify-content: center;
    }

    .footer-partners {
        align-items: center;
    }

    .footer-instagram {
        justify-content: center;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-links {
        align-items: center;
    }

    /* Barra inferior empilha */
    .footer-bottom-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
