/* Basic Reset & Typography */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    color: #333;
    background-color: #f4f4f4;
    padding-top: 74px; /* Add space for fixed nav */
}

h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
}

a {
    color: #c00;
    text-decoration: none;
}

.container {
    max-width: 1260px;
    margin: auto;
    overflow: hidden;
    padding: 0 2rem;
}

/* Header */
/* Header is now just a container for the fixed nav */

#mobile-header { display: none; }
#mobile-nav-panel {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

body.mobile-nav-open #mobile-nav-panel {
    transform: translateX(0);
}

/* Hero Section */
.hero {
    background: #000 url('assets/background-hero.webp') no-repeat center center/cover;
    color: #fff;
    position: relative;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 74px); /* Full viewport height minus nav height */
    padding: 2rem 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
}

nav {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    padding: 0.5rem 0;
    transition: background-color 0.3s ease;
}

nav .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

nav .logo img {
    height: 50px;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin-left: 2rem;
    flex-direction: column;
    justify-content: center;
}

nav ul li a {
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #c00;
}

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

.hero-text {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text .logo img {
    height: 160px;
    margin-bottom: 0.65rem;
}

.hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 0.325rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.reviews-snippet {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.3rem;
}

.avatar-group {
    display: flex;
}

.avatar-group img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-left: -15px;
    transition: transform 0.2s ease;
}

.avatar-group img:first-child {
    margin-left: 0;
}

.avatar-group img:hover {
    transform: translateY(-5px);
}

.reviews-snippet p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.hero-form {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.hero-form h3 {
    text-align: center;
    margin-top: 0;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

#trial-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#trial-form input,
#trial-form select,
#trial-form button {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 5px;
    font-family: inherit;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    font-size: 1rem;
}

#trial-form select {
    color: #fff; /* Ensure text is white even when an option is selected */
}

#trial-form select option {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

#trial-form input::placeholder,
#trial-form select:invalid {
    color: #ccc;
}

#trial-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ccc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1em;
}

input[type="date"] {
    color-scheme: dark;
}

/* Fix for date picker placeholder color on dark backgrounds */
input[type="date"]:invalid {
    color: #ccc !important; /* Use !important to override iOS Safari styles */
}

/* Fix for selected date color on iOS */
#trial-form input[type="date"]:valid {
    color: #fff !important;
}

/* Force consistent vertical alignment for date input on iOS */
#trial-form input[type="date"] {
    line-height: initial; /* Reset to browser default to fix iOS alignment */
}

#trial-form button {
    background: #c00;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

#trial-form button:hover {
    background: #a00;
}

.cta-button {
    background: #c00;
    color: #fff;
    padding: 0.8rem 2.5rem;
    border-radius: 5px;
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #a00;
}

/* Sections */
main section {
    padding: 4rem 0;
    text-align: center;
}

main section:nth-child(even) {
    background: #fff;
}

main h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

main h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #c00;
    margin: 0.5rem auto 0;
}

/* Programs Section */
#programs {
    background: #f4f4f4;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 3rem;
}

.program-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Keeps the image corners rounded */
    border: 1px solid #e9e9e9;
}

.program-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.program-card-content {
    padding: 1.5rem 2rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.program-card h3 {
    color: #c00;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 1rem;
}

.program-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: #666;
    flex-grow: 1; /* Allows the description to take available space */
}

.program-card .cta-button {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    margin-top: 1.5rem;
    align-self: center; /* Center the button in the card */
    width: fit-content; /* Make button only as wide as its content */
}

/* About Section Override */
#about .container {
    max-width: 840px;
}

#about h2, #about p {
    text-align: left;
}

#about h2 {
    text-transform: none;
    display: block;
}

#about h2::after {
    display: none;
}

#about .cta-button {
    margin-top: 1.5rem;
    display: inline-block; /* Allow centering via text-align on parent */
}

/* Our Story Section */
#our-story {
    background: #f4f4f4;
}

#our-story h2 {
    text-align: left;
    display: block;
}

#our-story h2::after {
    display: none;
}

#our-story p {
    text-align: left;
    color: #666;
    margin-bottom: 1rem;
}

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

.story-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Schedule */
#schedule {
    background: url("assets/gb_west_palm.webp") no-repeat center center/cover;
    position: relative;
    color: #fff;
}

#schedule::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 50% black overlay */
    z-index: 1;
}

#schedule .container {
    position: relative;
    z-index: 2;
}

#schedule h2::after {
    background: #e61616; /* Make the underline white */
}

.schedule {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 2rem;
}

.class-type {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    flex-basis: 30%;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.class-type h3 {
    color: #cc2020;
    margin-top: 0;
}

/* Location Map Section */
.full-width-map {
    position: relative;
    height: 450px;
    padding: 0;
    overflow: hidden;
}

.map-iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.map-overlay h2 {
    text-transform: none;
    font-size: 2.5rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.map-overlay .cta-button {
    margin-top: 1.5rem;
    position: relative;
    top: 60px;
}

/* Contact */
.contact-info {
    margin-top: 2rem;
    font-size: 1.2rem;
    line-height: 1.8;
}

.contact-info p {
    margin: 0.5rem 0;
}

/* Footer */
footer {
    background: #222;
    color: #ccc;
    padding: 4rem 0 2rem;
    text-align: left;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #444;
}

.footer-col h4 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col a:hover {
    color: #fff;
}

.footer-logo-img {
    height: 80px;
    margin-bottom: 1rem;
}

#footer-info p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

#footer-follow .social-icons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
}

#footer-follow .social-icons a {
    color: #222;
    background: #fff;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

#footer-follow .social-icons a:hover {
    background: #c00;
    color: #fff;
}

#footer-follow .social-icons svg {
    width: 20px;
    height: 20px;
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    color: #888;
}

/* Thank You Page Layout */
.thank-you-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.thank-you-page {
    padding-top: 0; /* Remove o padding-top APENAS na página de obrigado */
}

.thank-you-page main {
    flex-grow: 1;
}

/* Thank You Page Section*/
#thank-you-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh; /* Ocupa a altura toda */
    padding: 2rem; /* Adiciona um respiro à volta do conteúdo */
    text-align: center;
    color: #fff;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url("assets/gb_west_palm.webp") no-repeat center center/cover;
}

.thank-you-logo {
    max-width: 150px;
    margin-bottom: 2rem;
}

#thank-you-section h1 {
    font-size: 2.5rem;
    margin: 0 auto 2rem;
    text-align: center;
}

.thank-you-content {
    background: rgba(0, 0, 0, 0.3);
    padding: 2rem;
    border-radius: 8px;
    max-width: 1260px;
    margin: 0 auto 2rem;
    text-align: center;
}

.thank-you-content h2 {
    /* Esta regra já não é necessária com a alteração acima */
}

.thank-you-content ul {
    list-style: none;
    padding: 0;
    display: inline-block; /* Garante que o bloco da lista se comporte bem no centro */
    text-align: left; /* Mantém o texto da lista alinhado à esquerda para desktop */
}

.thank-you-content ul li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Botão específico da página de agradecimento */
#thank-you-section .cta-button {
    margin-bottom: 100px;
}

/* Responsive */
@media(max-width: 992px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media(max-width: 576px) {
    footer {
        text-align: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media(max-width: 768px) {
    nav {
        padding: 0.5rem 1rem;
    }
    #thank-you-section h1 {
        font-size: 2rem;
    }
    .thank-you-content h2 {
        font-size: 1.5rem;
    }
    .thank-you-content ul {
        padding-left: 1rem; /* Adjust padding for mobile */
    }


    nav ul {
        display: none; /* Hide desktop nav links */
    }

    nav ul li {
        margin-left: 1rem;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .class-type {
        grid-template-columns: 1fr;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        align-items: center; /* Center logo and text */
        text-align: center;
    }
    .story-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .story-image {
        margin-bottom: 2rem;
        order: -1; /* Move image above text */
    }

    #desktop-header {
        display: none; /* Hide desktop header */
    }

    #mobile-header {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #111;
        z-index: 1001;
        padding: 1rem 1rem;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }

    #mobile-header .container {
        display: flex;
        justify-content: flex-end; /* Align hamburger to the right */
        align-items: center;
        padding: 0;
    }

    .mobile-logo img {
        height: 40px;
    }

    #hamburger-btn {
        background: none;
        border: none;
        cursor: pointer;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

    #hamburger-btn span {
        display: block;
        width: 25px;
        height: 3px;
        background: #fff;
    }

    #close-btn {
        position: absolute;
        top: 1rem;
        right: 1.5rem;
        font-size: 3rem;
        color: #fff;
        background: none;
        border: none;
        cursor: pointer;
    }

    #mobile-nav-panel ul {
        display: block !important;
        list-style: none;
        padding: 0;
        text-align: center;
    }

    #mobile-nav-panel li {
        margin-bottom: 1.5rem;
    }

    #mobile-nav-panel a {
        color: #fff;
        font-size: 1.5rem;
        text-transform: uppercase;
        font-weight: bold;
        text-decoration: none;
    }

    body {
        padding-top: 51px; /* Adjust for fixed mobile header */
    }

    .hero {
        min-height: calc(100vh - 51px); /* Adjust for new body padding */
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }


    .thank-you-content ul {
        columns: 1; /* Single column on mobile */
    }
} 