/*
Theme Name: 7Sports Theme
Theme URI: https://7sports.com
Author: Your Name
Author URI: https://7sports.com
Description: Custom sports business theme with ACF and Tailwind CSS
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sevensports
*/

body {
    font-family:
        system-ui,
        -apple-system,
        sans-serif;
}

.hero-section {
    /* Below 100vh so the next section peeks above the fold and invites scrolling */
    min-height: 83vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 80px 20px;
    gap: 40px;
    box-sizing: border-box;
}

.hero-has-bg {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section > div {
    display: contents;
}

/* Logo */
.hero-logo-wrap {
    text-align: center;
}

.hero-logo-img {
    max-height: 160px;
    width: auto;
}

/* Title + Age block */
.hero-main-content {
    text-align: center;
}

.hero-title,
.hero-age {
    font-family: "More Sugar", cursive;
    font-size: clamp(2.8rem, 11vw, 8rem);
    font-weight: 900;
    color: #fff;
    -webkit-text-stroke: 20px #000;
    paint-order: stroke fill;
    line-height: 1;
    margin-bottom: 0.2em;
    letter-spacing: -0.05em;
    text-shadow: none;
}

.hero-image-overlay {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 400px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-overlay .container {
    position: relative;
    z-index: 1;
}

/* Buttons row — white pill style matching registration */
.hero-buttons-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    width: 100%;
}

.hero-btn {
    display: inline-block;
    min-width: 280px;
    padding: 15px 50px;
    background-color: #fff;
    color: #000;
    font-size: 1.05rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.hero-btn:hover {
    /* Match the other pages' hover: black on brand red */
    background-color: #d62829;
    color: #000;
    text-decoration: none;
}

/* Tagline at bottom */
.hero-tagline-wrap {
    text-align: center;
    width: 100%;
}

.hero-tagline {
    font-size: 1.4rem;
    font-weight: 700;
    font-style: italic;
    color: #fff;
    margin-bottom: 0;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* Highlight Cards */
.highlight-card {
    background-color: #e8e8e8;
    border-radius: 16px;
    padding: 30px 20px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    height: 100%;
    box-sizing: border-box;
}

.highlight-card-img-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-card-img {
    max-height: 280px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.highlight-card-title {
    font-family: "More Sugar", cursive;
    font-size: 1.6rem;
    font-weight: 900;
    color: #000;
    text-align: center;
    margin: 0;
    -webkit-text-stroke: 0;
}

/* Programs Section */
.programs-section {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: #e8e8e8;
}

.programs-section-title {
    font-family: "More Sugar", cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #000;
    text-align: center;
    margin-bottom: 60px;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.program-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.program-card-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center;
    display: block;
    flex-shrink: 0;
}

.program-card-body {
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.program-card-name {
    font-family: "More Sugar", cursive;
    font-size: 1.8rem;
    font-weight: 900;
    color: #000;
    margin-bottom: 6px;
    -webkit-text-stroke: 0;
}

.program-card-age {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #d62829;
    margin-bottom: 12px;
}

.program-card-desc {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    font-size: 0.95rem;
    color: #333;
    flex: 1;
    margin-bottom: 20px;
}

.program-card-link {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #000;
    text-decoration: underline;
    align-self: flex-start;
}

.program-card-link:hover {
    color: #d62829;
}

/* Inscription Button */
.programs-inscription-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    background-color: #d62829;
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    padding: 24px 40px;
    margin-top: 20px;
}

.programs-inscription-btn span:first-child {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    flex: 1;
    text-align: center;
}

.programs-inscription-arrow {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    flex-shrink: 0;
}

.programs-inscription-btn:hover {
    background-color: #b71c1c;
    color: #fff;
    text-decoration: none;
}

/* Testimonials Section */
.testimonials-section {
    padding-top: 200px;
    padding-bottom: 200px;
    background-color: #f5f5f5;
    min-height: 110vh;
}

.testimonials-section-title {
    font-family: "More Sugar", cursive;
    font-size: clamp(3.5rem, 7vw, 6rem);
    font-weight: 900;
    color: #fff;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 80px;
    -webkit-text-stroke: 0;
    text-shadow: none;
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px 22px;
    height: 100%;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.testimonial-stars {
    font-size: 1.4rem;
    color: #f5a623;
    margin-bottom: 16px;
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
}

.testimonial-text {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    font-size: 1rem;
    font-style: italic;
    color: #333;
    flex: 1;
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 0;
}

/* Messages Importants Section */
.messages-section {
    padding-top: 120px;
    padding-bottom: 100px;
    background: #fff;
    margin-top: 40px;
}

.messages-section-title {
    font-family: "More Sugar", cursive;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #000;
    text-align: center;
    margin-bottom: 60px;
    -webkit-text-stroke: 0;
    text-shadow: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.messages-carousel-wrap {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
}

.messages-slide {
    text-align: center;
    padding: 20px 80px 80px;
}

.messages-location {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif !important;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: #000;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.messages-text {
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 32px;
}

.messages-btn {
    display: inline-block;
    background-color: #d62829;
    color: #fff;
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    padding: 14px 60px;
    border-radius: 8px;
    text-decoration: none;
}

.messages-btn:hover {
    background-color: #b71c1c;
    color: #fff;
    text-decoration: none;
}

.messages-arrow-btn {
    position: absolute;
    right: -90px;
    top: 50%;
    transform: translateY(-60%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
}

.messages-arrow-btn:hover svg line,
.messages-arrow-btn:hover svg polyline {
    stroke: #444;
}

.messages-indicators {
    bottom: 20px;
    position: absolute;
}

.messages-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
}

.messages-indicators button,
.messages-indicators [data-bs-slide-to] {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    max-width: 14px !important;
    border-radius: 50% !important;
    background-color: #000 !important;
    border: none !important;
    opacity: 0.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
    box-sizing: border-box !important;
}

.messages-indicators button.active,
.messages-indicators [data-bs-slide-to].active {
    background-color: #f5a623 !important;
    opacity: 1 !important;
}

/* Front Page CTA Section */
.cta-section-dark {
    margin-top: 48px;
    padding-top: 120px;
    padding-bottom: 140px;
    position: relative;
}

.cta-section-dark .cta-wave {
    position: absolute;
    top: -60px;
    left: 0;
    width: 100%;
    line-height: 0;
    overflow: visible;
    z-index: 1;
    background: #fafafa;
}

.cta-section-dark .cta-wave svg {
    width: 100%;
    height: 60px;
    display: block;
    vertical-align: top;
}

.cta-section-dark .cta-wave path {
    fill: #000;
}

/* CTA Buttons */
.cta-buttons-wrap {
    gap: 40px;
    font-family: "Gill Sans", "Gill Sans MT", Calibri, sans-serif;
    font-size: 1.3rem;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.cta-btn-white {
    background: #fff !important;
    color: #000 !important;
    border: none !important;
}

.cta-btn-white:hover {
    background: #e6e6e6 !important;
    color: #000 !important;
}

@media (max-width: 768px) {
    .hero-section {
        padding: 24px 16px 32px;
    }

    .hero-logo-img {
        max-height: 100px;
    }

    .hero-btn {
        min-width: 0;
        width: calc(50% - 8px);
        padding: 12px 16px;
        font-size: 0.95rem;
    }

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

    .hero-title,
    .hero-age {
        -webkit-text-stroke: 10px #000;
    }

    .hero-image-overlay {
        min-height: 300px;
    }

    .cta-buttons-wrap {
        gap: 16px;
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons-wrap .btn {
        padding: 14px 32px !important;
        font-size: 1.1rem !important;
        width: 100%;
        max-width: 320px;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    /* Messages section */
    .messages-carousel-wrap {
        max-width: 100%;
        overflow: hidden;
    }

    .messages-slide {
        padding: 20px 20px 90px;
    }

    .messages-arrow-btn {
        display: none;
    }

    .messages-location {
        font-size: clamp(1.6rem, 6vw, 2.5rem);
    }

    .messages-text {
        font-size: 1rem;
    }

    /* Inscription button */
    .programs-inscription-btn {
        width: 95%;
        padding: 18px 20px;
    }

    .programs-inscription-btn span:first-child {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    .programs-inscription-arrow {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-btn {
        width: 100%;
    }

    .hero-buttons-wrap {
        gap: 10px;
    }

    .hero-title,
    .hero-age {
        -webkit-text-stroke: 6px #000;
    }

    .messages-slide {
        padding: 16px 16px 90px;
    }
}
