/* =========================================================
   Greenbushes Cricket Club
   Home Page
   ========================================================= */


/* =========================================================
   Page
   ========================================================= */

.home-page {
    background: #f5f7f8;
    flex: 1;
}


/* =========================================================
   General Container
   ========================================================= */

.home-container {
    width: min(1100px, 92%);
    margin: 0 auto;
}


/* =========================================================
   Hero
   ========================================================= */

.home-hero {
    min-height: 420px;

    background:
        linear-gradient(
            rgba(11, 61, 46, 0.68),
            rgba(11, 61, 46, 0.78)
        ),
        url("/assets/images/club-hero.jpg")
        center center / cover no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
}


.home-hero-overlay {
    width: 100%;
}


.home-hero-content {
    width: min(850px, 92%);
    margin: 0 auto;
    text-align: center;
    color: #ffffff;
    padding: 70px 0;
}


.home-hero-label {
    display: block;
    margin-bottom: 14px;

    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;

    color: #ffffff;
}


.home-hero h1 {
    margin: 0;

    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;

    color: #ffffff;
}


.home-hero p {
    max-width: 650px;
    margin: 20px auto 30px;

    font-size: 1.1rem;
    line-height: 1.6;

    color: #ffffff;
}


.home-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}


/* =========================================================
   Buttons
   ========================================================= */

.home-button {
    display: inline-block;

    min-height: 20px;
    padding: 10px 22px;

    border-radius: 8px;

    font-size: 0.95rem;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.2s ease,
        opacity 0.2s ease,
        transform 0.2s ease;
}


.home-button:hover {
    transform: translateY(-1px);
}


.home-button-primary {
    background: #1f3a5f;
    color: #ffffff;
}


.home-button-primary:hover {
    background: #162b46;
}


.home-button-secondary {
    background: #ffffff;
    color: #0b3d2e;
}


.home-button-secondary:hover {
    opacity: 0.9;
}


.home-button-dark {
    background: #0b3d2e;
    color: #ffffff;
}


.home-button-dark:hover {
    opacity: 0.85;
}


/* =========================================================
   Sections
   ========================================================= */

.home-section {
    padding: 60px 0;
}


.home-section-alt {
    background: #ffffff;
}


.home-section-header {
    margin-bottom: 28px;
}


.home-section-header h2 {
    margin: 4px 0 0;

    color: #0b3d2e;
    font-size: 1.8rem;
}


.home-section-header p {
    margin: 8px 0 0;

    color: #666666;
}


.home-section-label {
    display: block;

    color: #1f3a5f;

    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}


/* =========================================================
   Next Fixture
   ========================================================= */

.home-fixture-card {
    background: #ffffff;

    border-radius: 14px;
    padding: 30px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.06);

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items: center;

    column-gap: 30px;
}


.home-fixture-team {
    text-align: center;
}


.home-fixture-team-label {
    display: block;

    margin-bottom: 7px;

    color: #666666;

    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}


.home-fixture-team h3 {
    margin: 0;

    color: #0b3d2e;

    font-size: 1.3rem;
    line-height: 1.3;
}


.home-fixture-vs {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: #f5f7f8;
    border: 1px solid #e6e9eb;

    color: #555555;

    font-size: 0.8rem;
    font-weight: 700;
}


.home-fixture-details {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns: repeat(4, 1fr);

    gap: 12px;

    margin-top: 28px;
    padding-top: 24px;

    border-top: 1px solid #eeeeee;
}


.home-fixture-detail {
    text-align: center;
}


.home-fixture-detail span {
    display: block;

    margin-bottom: 6px;

    color: #666666;

    font-size: 0.78rem;
}


.home-fixture-detail strong {
    display: block;

    color: #222222;

    font-size: 0.92rem;
}


.home-fixture-action {
    grid-column: 1 / -1;

    text-align: center;

    margin-top: 24px;
}


.home-empty {
    background: #ffffff;

    border-radius: 14px;
    padding: 30px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.06);

    text-align: center;
}


.home-empty p {
    margin: 0 0 20px;

    color: #666666;
}


/* =========================================================
   Announcement
   ========================================================= */

.home-announcement {
    background: #ffffff;

    border-radius: 14px;
    padding: 28px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.06);

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.home-announcement-content {
    min-width: 0;
}


.home-announcement-date {
    display: block;

    margin-bottom: 8px;

    color: #666666;

    font-size: 0.8rem;
}


.home-announcement h3 {
    margin: 0 0 10px;

    color: #0b3d2e;

    font-size: 1.3rem;
}


.home-announcement p {
    margin: 0;

    color: #555555;

    line-height: 1.6;
}


.home-announcement-action {
    flex: 0 0 auto;
}


/* =========================================================
   About
   ========================================================= */

.home-about {
    background: #ffffff;

    border-radius: 14px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.06);

    overflow: hidden;

    display: grid;
    grid-template-columns: 1fr 1fr;
}


.home-about-content {
    padding: 40px;
}


.home-about-content h2 {
    margin: 6px 0 18px;

    color: #0b3d2e;

    font-size: 1.8rem;
}


.home-about-content p {
    margin: 0 0 16px;

    color: #555555;

    line-height: 1.7;
}


.home-about-content .home-button {
    margin-top: 8px;
}


.home-about-image {
    min-height: 350px;
}


.home-about-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================================
   Gallery
   ========================================================= */

.home-gallery {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 14px;
}


.home-gallery-item {
    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 10px;

    background: #e6e9eb;
}


.home-gallery-item img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.25s ease;
}


.home-gallery-item:hover img {
    transform: scale(1.03);
}


.home-centered-action {
    text-align: center;

    margin-top: 24px;
}


/* =========================================================
   Registration
   ========================================================= */

.home-registration {
    background: #ffffff;

    border-radius: 14px;

    padding: 32px;

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.06);

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.home-registration h2 {
    margin: 6px 0 8px;

    color: #0b3d2e;

    font-size: 1.7rem;
}


.home-registration p {
    margin: 0;

    max-width: 650px;

    color: #666666;

    line-height: 1.6;
}


/* =========================================================
   Sponsors
   ========================================================= */

.home-sponsors {
    padding: 45px 0;

    background: #ffffff;

    border-top: 1px solid #e6e9eb;
}


.home-sponsors-label {
    margin: 0 0 22px;

    text-align: center;

    color: #666666;

    font-size: 0.85rem;
    font-weight: 600;
}


.home-sponsor-logos {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 45px;

    flex-wrap: wrap;
}


.home-sponsor-logos a {
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 60px;
}


.home-sponsor-logos img {
    max-width: 180px;
    max-height: 70px;

    width: auto;
    height: auto;

    object-fit: contain;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 900px) {

    .home-fixture-details {
        grid-template-columns: repeat(2, 1fr);
    }


    .home-about {
        grid-template-columns: 1fr;
    }


    .home-about-image {
        min-height: 280px;
        order: -1;
    }


    .home-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .home-container {
        width: 94%;
    }


    .home-hero {
        min-height: 460px;
    }


    .home-hero-content {
        padding: 55px 0;
    }


    .home-hero h1 {
        font-size: 2.2rem;
    }


    .home-hero p {
        font-size: 1rem;
    }


    .home-section {
        padding: 40px 0;
    }


    .home-section-header h2 {
        font-size: 1.55rem;
    }


    .home-fixture-card {
        grid-template-columns: 1fr;

        gap: 18px;

        padding: 24px 18px;
    }


    .home-fixture-vs {
        margin: 0 auto;
    }


    .home-fixture-details {
        grid-template-columns: 1fr 1fr;

        margin-top: 12px;
    }


    .home-fixture-action {
        margin-top: 12px;
    }


    .home-announcement {
        flex-direction: column;

        align-items: stretch;

        padding: 24px;
    }


    .home-announcement-action {
        text-align: left;
    }


    .home-about-content {
        padding: 26px 22px;
    }


    .home-about-content h2 {
        font-size: 1.55rem;
    }


    .home-about-image {
        min-height: 230px;
    }


    .home-gallery {
        grid-template-columns: 1fr 1fr;

        gap: 10px;
    }


    .home-registration {
        flex-direction: column;

        align-items: stretch;

        padding: 26px 22px;
    }


    .home-registration .home-button {
        width: 100%;

        box-sizing: border-box;

        text-align: center;
    }


    .home-sponsor-logos {
        gap: 25px;
    }


    .home-sponsor-logos img {
        max-width: 145px;
    }

}