/* =======================================================
GLOBAL STYLES
======================================================= */

:root {
    /* Palette */
    --primary-color-terracotta: #A95432;
    --secondary-color-coral: #F0876C;
    --accent-color-golden-honey: #835021;
    --soft-accent-color-dusty-rose: #D98B7C;
    --text-color-warm-clay: #4A2E22;
    --bg-color-sand-cream: #FBF3E7;
    --alt-bg-color-warm-linen: #F3E4D3;

    /* Fonts */
    --font-display: 'Fraunces', serif;
    --font-body: 'Nunito Sans', sans-serif;
    --font-accent: 'Caveat', cursive;

    /* Type scale */
    --text-h1: 40px;
    --text-h2: 28px;
    --text-h3: 20px;
    --text-body: 16px;
    --text-small: 14px;

    /* Line height */
    --leading-body: 1.6;
    --leading-heading: 1.15;

    /* Spacing scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Layout */
    --content-max-width: 1100px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: #000000;
    color: #ffffff;
    padding: 10px;
    z-index: 99999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--alt-bg-color-warm-linen);
    color: var(--text-color-warm-clay);
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
}

h1,
h2,
h3 {
    font-family: var(--font-display);
    line-height: var(--leading-heading);
    margin: 0;
}

h1 {
    font-size: var(--text-h1);
}

h2 {
    font-size: var(--text-h2);
}

h3 {
    font-size: var(--text-h3);
}

/* =======================================================
MOBILE STYLES
======================================================= */
/* ----------------------------------------
   Hero Section
   ---------------------------------------- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 220px;
}

.hero-img {
    position: absolute;
    inset: 0;
    z-index: 1;
    background-color: #5c2714;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: center 30%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(193, 96, 58, 0.85), rgba(193, 96, 58, 0.25));
    z-index: 2;
}

.hero-copy {
    position: relative;
    z-index: 3;
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #e9e8e6;
    background-color: transparent;
}

.hero-copy h1 {
    font-family: var(--font-display);
}

.hero-subhead {
    padding: 5px;
    margin: 0;
    font-family: var(--font-body);
}

.cta-button {
    padding: var(--space-xs);
    color: var(--text-color-warm-clay);
    background-color: var(--bg-color-sand-cream);
    width: 50%;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    text-align: center;
    scroll-behavior: smooth;
}

.cta-button:hover {
    background-color: var(--primary-color-terracotta);
}

a {
    text-decoration: none;
}

/* ----------------------------------------
   About Brii Section
   ---------------------------------------- */
.about-briii {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: var(--bg-color-sand-cream);
}

.about-briii img {
    width: 200px;
    height: 200px;
    border-radius: 30%;
    object-fit: cover;
    object-position: center bottom;
    margin: 20px;
    justify-content: center;
    align-items: center;
}

.about-briii h2 {
    font-family: var(--font-accent);
    font-size: var(--text-h2);
    text-align: center;
}

.about-copy {
    font-family: var(--font-body);
    text-align: center;
    font-size: var(--text-body)
}

.about-cred {
    font-family: var(--font-body);
    font-size: var(--text-body);
    text-align: center;
    color: var(--accent-color-golden-honey)
}

.also-teaching {
    background-color: var(--bg-color-sand-cream);
    padding: var(--space-sm);

}

/* ----------------------------------------
  Wellness Pacakages Section
   ---------------------------------------- */
.wellness-packages {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--alt-bg-color-warm-linen);
}

.wellness-packages h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    line-height: var(--leading-heading);
}

.packages-subcopy {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
}

.card {
    margin: var(--space-md);
    background-color: white;
    border-radius: var(--radius-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(58, 38, 24, 0.15);
}

.card picture {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.mommy-card img {
    object-position: 75% 75%;
}

.group-card img {
    object-position: 50% 24%;
}

.badge {
    margin: 0;
    padding: 10px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-heading);
    text-align: center;
    width: 30%;
}

.mommy-card .badge {
    background-color: var(--soft-accent-color-dusty-rose);
    color: var(--text-color-warm-clay);
}

.athlete-card .badge {
    background-color: var(--primary-color-terracotta);
    color: #F5F2EE;
}

.group-card .badge {
    background-color: var(--accent-color-golden-honey);
    color: #F5F2EE;
    width: 50%;
}

.kid-card .badge {
    background-color: var(--secondary-color-coral);
    color: var(--text-color-warm-clay);
}

.card-title {
    font-family: var(--font-display);
    font-size: var(--text-h3);
    line-height: var(--leading-heading);
    margin: 5px 0;
}

.card-description {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
}

.card-price {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-heading);
    color: var(--accent-color-golden-honey);
}

.mommy-copy,
.athlete-copy,
.group-copy,
.kid-copy {
    padding: var(--space-sm);
}

.mommy-card {
    border-top: 10px solid var(--soft-accent-color-dusty-rose);
}

.athlete-card {
    border-top: 10px solid var(--primary-color-terracotta);
}

.group-card {
    border-top: 10px solid var(--accent-color-golden-honey);
}

.kid-card {
    border-top: 15px solid var(--secondary-color-coral);
}

/* ----------------------------------------
Booking Section
   ---------------------------------------- */
.booking {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--bg-color-sand-cream);
}

.booking h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    line-height: var(--leading-heading);
}

.booking-copy {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    margin: 0;
}

.calendly-inline-widget {
    border-top: 10px solid var(--primary-color-terracotta);
    border-radius: var(--radius-md);
}

/* ----------------------------------------
Contact Section
   ---------------------------------------- */
.contact {
    padding: var(--space-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
    background-color: var(--alt-bg-color-warm-linen);
}

.contact h2 {
    font-family: var(--font-display);
    font-size: var(--text-h2);
    line-height: var(--leading-heading);
}

.contact-copy {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    margin: 0;
}

form {
    display: flex;
    flex-direction: column;
}

label {
    margin: 1rem 0 0.4rem;
    font-family: var(--font-body);
    font-size: var(--text-body);
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--text-color-warm-clay);
}

input,
textarea {
    width: 100%;
    padding: var(--space-sm);
    border: 1px solid var(--primary-color-terracotta);
    border-radius: 4px;
    font-family: var(--font-body);
    background-color: white;
    color: var(--text-color-warm-clay);
    outline: none;
    box-sizing: border-box;
}

button {
    margin-top: 1.25rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--primary-color-terracotta);
    border-radius: 4px;
    cursor: pointer;
    font-family: var(--font-body);
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: var(--text-color-warm-clay);
    background-color: transparent;
    max-width: fit-content;
    transition: background-color 0.2s ease, color 0.2s ease;
}

button:hover {
    background-color: var(--primary-color-terracotta);
    color: white;
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--primary-color-terracotta);
    outline-offset: 2px;
}

#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background-color: var(--accent-color-golden-honey);
    color: black;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.toast.show {
    opacity: 1;
}

/* ----------------------------------------
Footer Section
   ---------------------------------------- */

footer {
    background-color: var(--text-color-warm-clay);
}

.social {
    padding-bottom: 20px;
}

.social ul {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.25rem;
    padding: 0;
    margin: 1rem 0 0;
    list-style: none;
}

.social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4.5rem;
    height: 4.5rem;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.social a:hover {
    opacity: 0.7;
}

.social a:focus {
    outline: 2px solid var(--accent-color-golden-honey);
    outline-offset: 4px;
}

.social i {
    color: white;
    font-size: var(--space-lg);
}

.footer-credit {
    font-family: var(--font-body);
    font-size: var(--text-body);
    line-height: var(--leading-body);
    color: white;
    text-align: center;
}

/* =======================================================
TABLET STYLES
========================================================*/
@media (min-width: 600px) {
    .hero img {
        object-position: top 25%;
    }

    .hero-copy .cta-button {
        width: 40%;
    }

    .about-briii {
        display: grid;
        grid-template-columns: fit-content(300px) 1fr;
        gap: 30px;
        align-items: center;
        padding: 26px 28px;
    }

    .about-briii img {
        width: 300px;
        height: 300px;
        border-radius: 10%;
        object-fit: cover;
        object-position: center bottom;
        margin: 20px;
    }

    .about-container {
        display: flex;
        justify-content: flex-start;
        align-items: flex-start;
        flex-direction: column;
    }

    .about-container .about-copy {
        text-align: start;
    }

    .wellness-packages {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: minmax(auto, 1fr);
        gap: var(--space-md);
        padding: var(--space-md);
    }

    .wellness-packages .wellness-copy {
        grid-column: 1/-1;
    }

    .wellness-packages .mommy-card,
    .wellness-packages .athlete-card,
    .wellness-packages .group-card,
    .wellness-packages .kid-card {
        margin: 0;
        height: 100%;
    }

    .wellness-packages .mommy-card img {
        object-position: 25% 85%;
    }

    .wellness-packages .group-card img {
        object-position: 15% 30%;
    }
}

/* =======================================================
DESKTOP STYLES
========================================================*/
@media (min-width: 1024px) {

    #desktop-hero {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    #desktop-hero .hero-img {
        grid-column: 1/-1;
    }

    #desktop-hero .hero-img img {
        display: block;
        width: 100%;
    }

    #desktop-hero .hero-copy {
        grid-column: 1;
        grid-row: 1;
        z-index: 3;
        padding: var(--space-sm);
    }

    .group-copy .badge {
        width: 10%;
        text-align: left;
    }

    .kid-copy .badge {
        width: 10%;
        text-align: center;
    }

    .mommy-copy .badge {
        width: 15%;
        text-align: center;
    }

    .athlete-copy .badge {
        width: 15%;
        text-align: center;
    }
}