
/* ========================================
   FONTS & COLOR PALETTE
======================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

:root {
    --sage: #BBCFBA;
    --light-sage: #DDE7DD;
    --pale-sage: #D3E1DF;
    --deep-sage: #607464;
    --dark-green: #344A3D;
    --text: #29382F;
    --turquoise: #75BDB5;
    --cream: #FAF8F0;
    --white: #FFFFFF;
    --line: #C7D5C5;

    --heading-font: "Fraunces", Georgia, serif;
    --body-font: "DM Sans", "Segoe UI", sans-serif;
}

/* ========================================
   GLOBAL STYLES
======================================== */

* {
    box-sizing: border-box;
    font-weight: normal;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 25px;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: var(--body-font);
    line-height: 1.7;
    background: linear-gradient(
        180deg,
        var(--pale-sage) 0%,
        var(--white) 30%,
        var(--light-sage) 70%,
        var(--sage) 100%
    );
}

h1, h2, h3, h4, h5 {
    font-family: var(--heading-font);
    font-weight: 600;
    color: var(--dark-green);
    line-height: 1.2;
}

p {
    margin-top: 0;
}

img {
    max-width: 100%;
}

/* ========================================
   OPENING IMAGE
======================================== */

#title2 {
    width: 100%;
    height: 100svh;
    min-height: 0;
    margin: 0;
    padding: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at center,
            rgba(255,255,255,.85) 0%,
            rgba(221,231,221,.35) 65%,
            transparent 100%
        );
}

#hero {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ========================================
   PIANO & ART SECTION
======================================== */

#creative {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(30px, 5vw, 70px);
    min-height: 75vh;
    padding: 85px 6%;
    background: rgba(234, 242, 231, .85);
}

#video,
#artslideshow {
    min-width: 0;
    width: 100%;
}

/* Piano video */

#video iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    border: none;
    border-radius: 5px;
    box-shadow: 0 12px 30px rgba(41, 56, 47, .15);
}

#videotext {
    text-align: center;
    margin-top: 25px;
}

#videotext h1 {
    font-size: clamp(2.3rem, 4vw, 3.3rem);
    letter-spacing: -.03em;
    margin: 0 0 8px;
}

#videotext h3 {
    font-family: var(--body-font);
    font-size: .95rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--deep-sage);
    margin: 0;
}

/* Art heading */

#artslideshow {
    padding: clamp(18px, 3vw, 35px);
    background: var(--cream);
    border: 1px solid rgba(86, 112, 91, .15);
    border-radius: 5px;
    box-shadow: 0 12px 30px rgba(41, 56, 47, .07);
}

.section-heading {
    font-family: var(--heading-font);
    font-size: clamp(2.5rem, 4vw, 3.3rem);
    font-weight: 600;
    letter-spacing: -.03em;
    text-align: center;
    color: var(--dark-green);
    margin: 0 0 5px;
}

#piccaption {
    min-height: 1.6em;
    margin: 0 0 16px;
    color: var(--deep-sage);
    font-size: .9rem;
    font-style: italic;
    text-align: center;
}

/* ========================================
   PHOTO CAROUSELS
======================================== */

.photo-carousel {
    position: relative;
    width: 100%;
    max-width: 750px;
    margin: 15px auto;
    overflow: hidden;
    background: var(--cream);
    border-radius: 5px;
    box-shadow: 0 8px 22px rgba(41, 56, 47, .12);
}

.carousel-pics {
    display: flex;
    width: 100%;
    transition: transform .45s ease-in-out;
}

.carousel-slide {
    flex: 0 0 100%;
    min-width: 0;
}

.carousel-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

/* ========================================
   CAROUSEL CAPTIONS
======================================== */

#piccaption,
#golfpiccaption,
#dancepiccaption,
#cheerpiccaption {
    min-height: 1.6em;
    margin: 10px 0 14px;
    color: var(--deep-sage);
    font-family: var(--body-font);
    font-size: .88rem;
    font-style: italic;
    text-align: center;
}

/* ========================================
   CAROUSEL BUTTONS
======================================== */

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;

    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 1px solid rgba(255,255,255,.7);
    border-radius: 50%;

    background: rgba(41, 56, 47, .72);
    color: white;

    font-family: var(--body-font);
    font-size: 19px;
    cursor: pointer;

    transition: background .2s ease, transform .2s ease;
}

.carousel-btn:hover {
    background: var(--dark-green);
    transform: translateY(-50%) scale(1.08);
}

.carousel-btn:focus-visible {
    outline: 3px solid var(--turquoise);
    outline-offset: 3px;
}

.prev-btn {
    left: 12px;
}

.next-btn {
    right: 12px;
}

/* ========================================
   SPORTS SECTION
======================================== */

#reviews {
    padding: 80px 5% 90px;
    background: rgba(221, 231, 221, .8);
}

#reviews > h1 {
    font-family: var(--heading-font);
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 600;
    letter-spacing: -.035em;
    text-align: center;
    margin: 0 0 45px;
}

/* Three-column gallery */

#threereviews {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 2.5vw, 32px);
    align-items: start;
    max-width: 1500px;
    margin: 0 auto;
}

/* Individual sport galleries */

#threereviews > * {
    min-width: 0;
    margin: 0;
    padding: clamp(16px, 2vw, 25px);
    background: var(--cream);
    border: 1px solid rgba(86, 112, 91, .18);
    border-radius: 5px;
    box-shadow: 0 9px 25px rgba(41, 56, 47, .07);
}

#threereviews h4 {
    font-family: var(--heading-font);
    font-size: clamp(1.7rem, 2.5vw, 2.2rem);
    font-weight: 600;
    text-align: center;
    margin: 0 0 8px;
    color: var(--dark-green);
}

#threereviews .photo-carousel {
    margin: 12px auto 0;
}

#threereviews .carousel-slide img {
    aspect-ratio: 5 / 4;
}

/* ========================================
   FOOTER
======================================== */

#bottombar {
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    align-items: start;
    gap: 35px;

    padding: 40px 6%;

    background: var(--dark-green);
    color: var(--light-sage);
}

#bottombar > div {
    min-width: 0;
}

#bottombar h4 {
    margin: 0 0 12px;
    color: var(--cream);
    font-family: var(--heading-font);
    font-size: 1.45rem;
    font-weight: 500;
}

#bottombar p {
    margin: 5px 0;
    font-size: .9rem;
    overflow-wrap: anywhere;
}

#bottombar a {
    color: var(--light-sage);
    text-decoration-color: var(--turquoise);
    text-underline-offset: 4px;
}

#bottombar a:hover {
    color: white;
}

#bottombar > div:last-child {
    align-self: end;
    text-align: right;
    font-family: var(--heading-font);
    font-size: 1.1rem;
    font-style: italic;
    color: #B8DED5;
}

/* ========================================
   TABLET
======================================== */

@media (max-width: 900px) {
    #creative {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 65px 7%;
    }

    #video {
        max-width: 750px;
        margin: 0 auto;
    }

    #artslideshow {
        max-width: 750px;
        width: 100%;
        margin: 0 auto;
    }

    #threereviews {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #threereviews > *:last-child {
        grid-column: 1 / -1;
        width: calc(50% - 12px);
        justify-self: center;
    }

    #bottombar {
        grid-template-columns: 1fr 1fr;
    }

    #bottombar > div:last-child {
        grid-column: 1 / -1;
        text-align: left;
    }
}

/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {
    #title2 {
        height: 75svh;
        min-height: 300px;
        padding: 12px;
    }

    #creative {
        padding: 48px 5%;
        gap: 35px;
    }

    #artslideshow {
        padding: 17px;
    }

    #videotext h1 {
        font-size: 2.5rem;
    }

    #reviews {
        padding: 55px 5%;
    }

    #reviews > h1 {
        margin-bottom: 30px;
    }

    #threereviews {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    #threereviews > *:last-child {
        grid-column: auto;
        width: 100%;
    }

    #threereviews > * {
        padding: 18px;
    }

    #bottombar {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 32px 7%;
    }

    #bottombar > div:last-child {
        grid-column: auto;
        text-align: left;
    }

    .carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 17px;
    }
}

/* ========================================
   ACCESSIBILITY
======================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .carousel-pics {
        transition: none;
    }

    .carousel-btn {
        transition: none;
    }
}
