/* Curadh Jiu-Jitsu Website Styles */
/* Apply consistent sizing to every element. */
* {
    box-sizing: border-box;
}

/* Smoothly scroll to sections when navigation links are clicked. */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

/* Basic page styling. */
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: #ffffff;
    background-color: #111111;
    max-width: 100%;
    overflow-x: hidden;
}

h1,
h2,
h3,
.club-name {
                font-family: "Oswald", sans-serif;
            }


/* Navigation area. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1200px, 90%);
    margin: 0 auto;
    padding: 0px 0;
}

.club-name {
    color: #000000;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0px;
}

.nav-links {
    display: flex;
    gap: 24px;
    margin-left: 40px;
    position: relative;
    top: 2px;
}

.nav-links a {
    color: #000000;
    font-weight: 700;
    text-decoration: none;
}

.nav-links a:hover {
    color: #c71f2d;
}

/* Hero section. */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 120px 5%;
    background-image: url("../images/hero/Jiujitsubnw\ \(11\ of\ 18\).jpg");
    background-position: center;
    background-size: cover;
}

/* Dark layer over the photo so the text is easier to read. */
.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.65);
}

/* Hero text sits above the dark overlay. */
.hero-content {
    position: relative;
    z-index: 1;
    width: min(700px, 100%);
    margin-left: max(0px, calc((100% - 1200px) / 2));
}

.hero-label {
    margin-bottom: 12px;
    color: #d92b38;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 700px;
    margin: 0;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.95;
    text-transform: uppercase;
}

.hero-text {
    max-width: 600px;
    margin: 24px 0;
    color: #dddddd;
    font-size: 1.2rem;
    line-height: 1.6;
}

.hero-button {
    display: inline-block;
    padding: 16px 24px;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    background-color: #b5121b;
    border-radius: 4px;
}

.hero-button:hover {
    background-color: #d2202b;
}

/* Why Curadh section. */
.club-section {
    padding: 100px 0;
    background-color: #f2f2f2;
    color: #151515;
}

.club-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: center;
}

.club-content h2 {
    max-width: 650px;
    margin: 0 0 28px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    text-transform: uppercase;
}

.club-content p:not(.section-label) {
    max-width: 650px;
    color: #4a4a4a;
    font-size: 1.05rem;
    line-height: 1.8;
}

.secondary-button {
    display: inline-block;
    margin-top: 18px;
    padding: 15px 22px;
    color: #ffffff;
    font-weight: bold;
    text-decoration: none;
    background-color: #b5121b;
    border-radius: 4px;
}

.secondary-button:hover {
    background-color: #d2202b;
}

.club-highlights {
    border-top: 1px solid #c8c8c8;
}

.highlight-item {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid #c8c8c8;
}

.highlight-item > span {
    color: #b5121b;
    font-size: 1.1rem;
    font-weight: bold;
}

.highlight-item h3 {
    margin: 0 0 8px;
    font-size: 1.4rem;
}

.highlight-item p {
    margin: 0;
    color: #555555;
    line-height: 1.6;
}

/* Timetable section. */
.timetable-section {
    padding: 100px 0;
    background-color: #111111;
}

.timetable-section h2 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
    text-transform: uppercase;
}

.timetable-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 48px;
}

.class-card {
    padding: 32px;
    background-color: #1b1b1b;
    border: 1px solid #303030;
}

.class-day {
    margin: 0 0 18px;
    color: #d92b38;
    font-size: 0.95rem;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.class-card h3 {
    margin: 0 0 20px;
    font-size: 1.6rem;
}

.class-time {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
}

.class-level {
    margin: 0;
    color: #bdbdbd;
}

.timetable-note {
    margin: 28px 0 0;
    color: #bdbdbd;
    font-size: 0.95rem;
}

/* Coach section. */
.coach-section {
    padding: 100px 0;
    background-color: #f2f2f2;
    color: #151515;
}

.coach-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.coach-image img {
    display: block;
    width: 100%;
    min-height: 520px;
    object-fit: cover;
    border-radius: 4px;
}

.coach-content h2 {
    margin: 0 0 28px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    text-transform: uppercase;
}

.coach-content > p:not(.section-label) {
    color: #4a4a4a;
    font-size: 1.05rem;
    line-height: 1.8;
}

.coach-details {
    margin: 30px 0 10px;
    padding: 24px;
    background-color: #ffffff;
    border-left: 4px solid #b5121b;
}

.coach-details p {
    margin: 8px 0;
    color: #333333;
}

/* Gallery section. */
.gallery-section {
    padding: 100px 0;
    background-color: #111111;
}

.gallery-heading {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: end;
    margin-bottom: 48px;
}

.gallery-heading h2 {
    margin: 0;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1;
    text-transform: uppercase;
}

.gallery-heading p {
    max-width: 480px;
    margin: 0;
    color: #bdbdbd;
    line-height: 1.7;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.gallery-grid img {
    display: block;
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

/* Contact section. */
.contact-section {
    padding: 100px 0;
    background-color: #f2f2f2;
    color: #151515;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.contact-content h2 {
    margin: 0 0 28px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    text-transform: uppercase;
}

.contact-content > p:not(.section-label) {
    color: #4a4a4a;
    font-size: 1.05rem;
    line-height: 1.8;
}

.contact-details {
    margin-top: 32px;
}

.contact-details p {
    margin-bottom: 22px;
    color: #404040;
    line-height: 1.6;
}

.contact-form {
    padding: 36px;
    background-color: #ffffff;
    border-top: 5px solid #b5121b;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    color: #151515;
    font: inherit;
    background-color: #f7f7f7;
    border: 1px solid #cccccc;
    border-radius: 3px;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid #b5121b;
    border-color: transparent;
}

.form-button {
    width: 100%;
    padding: 16px 24px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    background-color: #b5121b;
    border: 0;
    border-radius: 4px;
}

.form-button:hover {
    background-color: #d2202b;
}

.form-status {
    min-height: 24px;
    margin: 16px 0 0;
    color: #555555;
}

/* FAQ section. */
.faq-section {
    padding: 100px 0;
    background-color: #111111;
}

.faq-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.faq-intro {
    position: sticky;
    top: 40px;
}

.faq-intro h2 {
    margin: 0 0 28px;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1;
    text-transform: uppercase;
}

.faq-intro > p:not(.section-label) {
    color: #bdbdbd;
    font-size: 1.05rem;
    line-height: 1.8;
}

.faq-list {
    border-top: 1px solid #363636;
}

.faq-item {
    border-bottom: 1px solid #363636;
}

.faq-item summary {
    position: relative;
    padding: 26px 45px 26px 0;
    font-size: 1.15rem;
    font-weight: bold;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "+";
    position: absolute;
    top: 20px;
    right: 4px;
    color: #d92b38;
    font-size: 1.8rem;
    font-weight: normal;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-item p {
    max-width: 700px;
    margin: 0;
    padding: 0 45px 26px 0;
    color: #bdbdbd;
    line-height: 1.7;
}

/* Footer. */
.site-footer {
    padding: 80px 0 30px;
    background-color: #080808;
    border-top: 1px solid #242424;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.75fr 0.75fr;
    gap: 70px;
}

.footer-club-name {
    display: inline-block;
    margin-bottom: 18px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
}

.logo {
    width: 45px;
    height: 45px;
    object-fit: contain;
    flex-shrink: 0;
}

.footer-brand p {
    max-width: 420px;
    margin: 0;
    color: #a9a9a9;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.footer-links h3 {
    margin: 0 0 8px;
    font-size: 1rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.footer-links a {
    color: #bdbdbd;
    text-decoration: none;
}

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

.footer-links p {
    margin: 0;
    color: #bdbdbd;
    line-height: 1.5;
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid #242424;
}

.footer-bottom p {
    margin: 0;
    color: #777777;
    font-size: 0.9rem;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    cursor: pointer;
    background: transparent;
    border: 0;
    top: 5px;
}

.menu-button span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 6px 0;
    background-color: #020202;
    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.club-banner {
    height: 40px;
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Shared content width used throughout the website. */
.section-container {
    width: min(1100px, 90%);
    margin: 0 auto;
}

/* Benefits section. */
.benefits-section {
    padding: 140px 0;
    background-color: #111111;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.benefit-card {
    min-height: 260px;
    padding: 32px;

    background-color: #1b1b1b;
    border-top: 4px solid #b5121b;
}

.benefit-card h3 {
    margin-top: 0;
    margin-bottom: 18px;

    color: #d92b38;
    font-size: 1.4rem;
}

.benefit-card p {
    margin-bottom: 0;

    color: #cfcfcf;
    line-height: 1.7;
}


@media (max-width: 1000px) and (min-width: 701px) {

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .benefit-card {
        min-height: 240px;
    }

}

/* Mobile adjustments. */
@media (max-width: 700px) {
    .navbar {
        align-items: flex-start;
    }

    .club-banner {
        display: block;
        width: 100%;
        max-width: 170px;
        height:auto;
    }

    .logo {
        width: 60px;
        height: 60px;
    }

    .nav-links {
        display: flex;
        align-items: center;
        gap: 35px;
        font-size: 0.85rem;
    }

    .hero {
        padding-top: 140px;
    }

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

   .benefits-section {
    padding: 90px 0;
    }

    .benefits-grid {
        display: flex;
        flex-wrap: nowrap;
        gap: 16px;

        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;

        padding: 6px 0 20px;

        scroll-snap-type: x mandatory;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
    }



    .benefit-card {
        flex: 0 0 85%;
        width: 85%;
        min-width: 85%;
        min-height: 320px;

        padding: 32px 28px;

        background-color: #1b1b1b;
        border-top: 4px solid #b5121b;

        scroll-snap-align: start;
    }

    .benefit-card h3 {
        margin-top: 0;
        margin-bottom: 18px;

        color: #d92b38;
        font-size: 1.5rem;
    }

    .benefit-card p {
        margin-bottom: 0;

        color: #cfcfcf;
        font-size: 1rem;
        line-height: 1.75;
    }
    
    .club-layout {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .club-section {
        padding: 72px 0;
    }

    .highlight-item {
        gap: 18px;
    }

    .timetable-section {
    padding: 72px 0;
    }

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

    .class-card {
        padding: 26px;
    }

    .coach-section {
        padding: 72px 0;
    }

    .coach-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .coach-image img {
        min-height: 380px;
    }

    .location-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
    }

    .location-arrow {
        display: inline-block;
        margin-left: 5px;
        color: #b5121b;
        font-size: 0.9em;
        transition: transform 0.2s ease;
    }

    .location-link:hover {
        color: #b5121b;
    }

    .location-link:hover .location-arrow {
        transform: translate(2px, -2px);
    }

    .gallery-section {
        padding: 72px 0;
    }

    .gallery-heading {
        display: block;
        margin-bottom: 36px;
    }

    .gallery-heading p {
        margin-top: 20px;
    }

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

    .gallery-grid img {
        height: 280px;
    }

    .contact-section {
        padding: 72px 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .contact-form {
        padding: 26px 20px;
    }

    .faq-section {
        padding: 72px 0;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .faq-intro {
        position: static;
    }

    .faq-item summary {
        padding-right: 40px;
    }

    .site-footer {
        padding-top: 60px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-bottom {
        margin-top: 45px;
    }

    .menu-button {
        display: block;
        position: relative;
        z-index: 1001;
        flex-shrink: 0;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        padding: 24px;
        background-color: #0b0b0b;
        border-top: 1px solid #292929;
    }

    .nav-links.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    .nav-links a {
        color: #ffffff;
        padding: 16px 0;
        border-bottom: 1px solid #ffffff;
    }

    .nav-links a:last-child {
        border-bottom: 0;

    }

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

    .menu-button.is-open span:nth-child(2) {
        opacity: 0;
    }

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

    .fade-in {
        opacity: 0;
        transform: translateY(40px);
        transition:
            opacity 0.7s ease,
            transform 0.7s ease;
    }

    .fade-in.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

