:root {
    --primary-color: hsl(207, 76%, 35%);
    --white: white;
    --text-color: #121212;
    --header-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    --secondary-color: hsl(207, 70%, 18%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: var(--text-color);
}

.section-shell {
    padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.content-container {
    width: min(100%, 72rem);
    margin: 0 auto;
}

.section-heading {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin: 10px 0 40px;
    color: var(--primary-color);
}

.site-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem clamp(1rem, 4vw, 3rem);
    background-color: var(--white);
    box-shadow: var(--header-shadow);
    position: relative;
    z-index: 1000;
}

.logo,
.footer-logo {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.8rem 1.15rem;
    border-radius: 0.35rem 1.1rem 0.35rem 1.1rem;
    overflow: hidden;
}

.logo {
    background: linear-gradient(135deg, var(--primary-color), hsl(207, 70%, 24%));
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    box-shadow: 0 10px 22px rgba(11, 64, 108, 0.22);
}

.logo::after,
.footer-logo::after {
    content: "";
    position: absolute;
    inset: auto -12% -38% auto;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
}

.logo::after {
    background: rgba(255, 255, 255, 0.12);
}

.logo span,
.footer-logo span {
    position: relative;
    z-index: 1;
}

.logo span {
    color: #77c76d;
}

.logo::before,
.footer-logo::before {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.45rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    opacity: 0.9;
}

.ham-menu {
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 2.5rem;
    height: 2rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    position: relative;
    z-index: 1100;
}

.ham-menu span {
    display: block;
    width: 100%;
    height: 0.25rem;
    background-color: var(--primary-color);
    border-radius: 999px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    transform-origin: center;
}

.ham-menu.active span:nth-child(1) {
    transform: translateY(0.875rem) rotate(45deg);
    background-color: var(--white);
}

.ham-menu.active span:nth-child(2) {
    opacity: 0;
}

.ham-menu.active span:nth-child(3) {
    transform: translateY(-0.875rem) rotate(-45deg);
    background-color: var(--white);
}

.off-screen-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(85vw, 22rem);
    height: 100dvh;
    padding: 6rem 2rem 2rem;
    background-color: var(--secondary-color);
    transition: right 0.3s ease;
    z-index: 1050;
}

.off-screen-menu.active {
    right: 0;
}

.off-screen-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.off-screen-menu a {
    display: block;
    color: var(--white);
    text-decoration: none;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 700;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.off-screen-menu a:hover,
.off-screen-menu a:focus-visible {
    background-color: rgba(255, 255, 255, 0.12);
    outline: none;
}

@media (min-width: 768px) {
    .site-header {
        padding-block: 1.25rem;
    }

    .ham-menu {
        display: none;
    }

    .off-screen-menu {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        background-color: transparent;
        transition: none;
    }

    .off-screen-menu ul {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }

    .off-screen-menu a {
        color: var(--text-color);
        font-size: 1rem;
        padding: 0.65rem 1rem;
        border: 0;
        background-color: transparent;
    }

    .off-screen-menu a:hover,
    .off-screen-menu a:focus-visible {
        color: var(--primary-color);
    }

    .off-screen-menu a.current-page {
        color: var(--primary-color);
        font-weight: bold;
        text-decoration: underline;
        text-decoration-color: var(--primary-color);
        text-decoration-thickness: 2px;
        text-underline-offset: 0.18em;
    }
}


/* hero section */
.hero {
    min-height: calc(100dvh - 5rem);
    color: white;
    background: url('images/hero.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: clamp(2rem, 6vw, 5rem) clamp(1rem, 4vw, 3rem);
}

.hero-shadow {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.6));
}

.hero-container {
    position: relative;
    z-index: 1;
    width: min(100%, 70rem);
    display: flex;
    justify-content: center;
}

.text-box {
    width: min(100%, 44rem);
    background: rgba(245, 244, 244, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(241, 239, 239, 0.3);
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border-radius: clamp(1rem, 2vw, 1.5rem);
}

.text-box h1 {
    font-size: clamp(2rem, 4.8vw, 3.75rem);
    line-height: 1.05;
    margin-bottom: 1rem;
    text-wrap: balance;
}

.text-box p {
    max-width: 38rem;
    margin: 0 auto;
    font-size: clamp(1rem, 2.2vw, 1.25rem);
    line-height: 1.7;
}

.btn {
    display: inline-block;
    margin-top: 1.5rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    padding: 0.9rem 1.8rem;
    font-weight: bold;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
    background-color: var(--secondary-color);
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.18);
    outline: none;
}

@media (max-width: 767px) {
    .hero {
        min-height: calc(100dvh - 4.5rem);
    }

    .text-box {
        text-align: left;
    }

    .text-box p {
        margin-inline: 0;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 900px) {
    .hero {
        min-height: calc(100dvh - 6rem);
    }

    .text-box {
        padding-inline: clamp(2.5rem, 4vw, 4rem);
    }
}
/*end of hero section.*/

/* classes section */
.classes {
    background: #f1f5fc;
}

.classes-container h2 {
    margin-bottom: 1.5rem;
}

.classes-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.class-box {
    min-height: 14rem;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
    isolation: isolate;
}

.class-box-1 {
    --class-image: url('images/strength-training.jpg');
}

.class-box-2 {
    --class-image: url('images/HIIT-conditioning.jpg');
}

.class-box-3 {
    --class-image: url('images/boxing-basics.jpg');
}

.class-box-4 {
    --class-image: url('images/core-power.jpg');
}

.class-box-5 {
    --class-image: url('images/mobility-flow.jpg');
}

.class-box-6 {
    --class-image: url('images/recovery-zone.jpg');
}

.class-box::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--class-image);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    transform: scale(1.12);
    transition: transform 0.35s ease;
    z-index: -2;
}

.class-box::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 45%;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    z-index: -1;
}

.class-box span {
    position: relative;
    color: var(--white);
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: 0.03em;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.class-box:hover::before,
.class-box:focus-within::before {
    transform: scale(1);
}

.class-box:hover::after,
.class-box:focus-within::after {
    opacity: 1;
    transform: translateY(0);
}

.class-box:hover span,
.class-box:focus-within span {
    opacity: 1;
    transform: translateY(0);
}

@media (hover: none) {
    .class-box::before {
        transform: scale(1);
    }

    .class-box::after {
        opacity: 1;
        transform: translateY(0);
    }

    .class-box span {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 900px) {
    .classes-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        height: clamp(34rem, 62vh, 46rem);
        max-height: 88vh;
        grid-template-rows: repeat(3, minmax(0, 1fr));
        grid-template-areas:
            "box-1 box-2 box-2"
            "box-1 box-3 box-4"
            "box-5 box-5 box-6"
            "box-7 box-8 box-8"; /*this last one is only for the classes page.*/
        gap: 1.25rem;
    }

    .class-box {
        min-height: 0;
    }

    .class-box-1 {
        grid-area: box-1;
    }

    .class-box-2 {
        grid-area: box-2;
    }

    .class-box-3 {
        grid-area: box-3;
    }

    .class-box-4 {
        grid-area: box-4;
    }

    .class-box-5 {
        grid-area: box-5;
    }

    .class-box-6 {
        grid-area: box-6;
    }
}

/* memberships section */
.memberships {
    background: var(--white);
}

.memberships-container h2 {
    margin-bottom: 1.75rem;
}

.membership-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 2rem 1.5rem;
    border-radius: 1.5rem;
    background: #f7f9fc;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.plan-icon {
    font-size: 2.2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.card h3 {
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.card ul {
    list-style: none;
    margin-bottom: 1.5rem;
    width: fit-content;
    max-width: min(100%, 18ch);
    margin-inline: auto;
    text-align: left;
}

.card li {
    position: relative;
    padding-left: 1.6rem;
}

.card li + li {
    margin-top: 0.8rem;
}

.card li::before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 0.05rem;
}

.price {
    margin-top: auto;
    margin-bottom: 1.5rem;
    font-size: clamp(2rem, 5vw, 2.8rem);
    font-weight: 800;
    color: var(--text-color);
}

.plan-btn {
    display: inline-block;
    min-width: 10rem;
    padding: 0.9rem 1.5rem;
    border: 2px solid var(--secondary-color);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    color: var(--secondary-color);
    background: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.card:not(.recommended):hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.card:not(.recommended) .plan-btn:hover,
.card:not(.recommended) .plan-btn:focus-visible {
    background-color: var(--secondary-color);
    color: var(--white);
    outline: none;
}

.card.recommended {
    border: 2px solid var(--secondary-color);
}

.card:not(.recommended) {
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
}

.card.recommended .plan-btn {
    background: var(--secondary-color);
    color: var(--white);
}

.card.recommended .plan-btn:hover,
.card.recommended .plan-btn:focus-visible {
    background-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.18);
    outline: none;
}

@media (min-width: 900px) {
    .membership-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: stretch;
    }
}

/* footer */
.site-footer {
    padding: clamp(2.5rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);
    background:
        radial-gradient(circle at top right, rgba(119, 199, 109, 0.18), transparent 28%),
        linear-gradient(135deg, hsl(207, 76%, 20%), hsl(207, 70%, 12%));
    color: var(--white);
}

.footer-container {
    display: grid;
    gap: 1.5rem;
}

.footer-brand {
    display: grid;
    gap: 0.85rem;
}

.footer-logo {
    width: fit-content;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 247, 255, 0.88));
    color: var(--primary-color);
    text-decoration: none;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    box-shadow: 0 10px 22px rgba(7, 28, 48, 0.22);
}

.footer-logo::after {
    background: rgba(16, 84, 139, 0.1);
}

.footer-logo span {
    color: var(--secondary-color);
}

.footer-brand p {
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.85rem;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 999px;
    text-decoration: none;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.footer-links a:hover,
.footer-links a:focus-visible {
    transform: translateY(-3px);
    background: rgba(119, 199, 109, 0.16);
    border-color: rgba(119, 199, 109, 0.5);
    outline: none;
}

.footer-links i {
    font-size: 1.1rem;
}

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding-top: 1rem;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    text-align: center;
}

@media (min-width: 900px) {
    .footer-container {
        grid-template-columns: 1.2fr 1fr;
        align-items: center;
    }

    .footer-copy {
        grid-column: 1 / -1;
    }
}

/*classes page*/

.class-box-7 {
    --class-image: url('images/cardio-performence.jpg');
}

.class-box-8 {
    --class-image: url('images/athletic-conditioning.jpg');
}

.selection {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 3vh;
    margin-top: 6vh;
}

.selection .selected-btn, .selection-btn:hover {
    transition: .4s ease;
    background-color: var(--secondary-color);
    color: var(--white);
}

.selection-btn {
    display: inline-block;
    min-width: 10rem;
    padding: 0.9rem 1.5rem;
    border: 2px solid var(--secondary-color);
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    color: var(--secondary-color);
    background: var(--white);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

@media (min-width: 900px) {
    .classes-page-grid {
        height: clamp(46rem, 91vh, 62rem);
        max-height: 92vh;
        grid-template-rows: repeat(4, minmax(0, 1fr));
        grid-template-areas:
            "box-1 box-2 box-2"
            "box-1 box-3 box-4"
            "box-5 box-5 box-6"
            "box-7 box-8 box-8"; /*this last one is only for the classes page.*/
    }

    .class-box-7 {
        grid-area: box-7;
    }
    .class-box-8 {
        grid-area: box-8;
    }
}

/*about page*/

.about-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.about-item {
    min-width: 0;
}

.about-copy {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 0;
}

.about-item h3 {
    font-size: clamp(1.55rem, 2vw, 2.05rem);
    line-height: 1.15;
}

.about-item p {
    margin-top: 1rem;
    font-size: clamp(1rem, 1.8vw, 1.1rem);
    line-height: 1.8;
    color: #6b6a6a;
}

.about-highlights {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.highlight {
    padding: 0.85rem 1rem 0.85rem 1rem;
    border-left: 4px solid var(--primary-color);
    background-color: #f5f7fa;
    border-radius: 0 0.9rem 0.9rem 0;
}

.highlight strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.highlight span {
    color: #555;
    line-height: 1.6;
}

.about-visual {
    width: 100%;
    max-width: 30rem;
    margin: 0 auto;
}

.about-visual img {
    display: block;
    border-radius: 1.5rem;
    width: 100%;
    min-height: 20rem;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transform: none;
}

@media (min-width: 768px) {
    .about-content {
        grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 1fr);
        align-items: start;
    }

    .about-visual {
        align-self: center;
    }
}

.coaches {
    background: #dde3ec;
}

.coaches-container h2 {
    margin-bottom: 1.75rem;
}

.coach-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    justify-content: center;
}

.coach-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    width: min(100%, 25rem);
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
    border-radius: 1.5rem;
    background: #f7f9fc;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.coach-card img {
    width: 10rem;
    height: 10rem;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 0.75rem;
}

.coach-card h3 {
    font-size: 1.45rem;
    margin-bottom: 1rem;
}

.specialty {
    margin-top: auto;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-color);
}

@media (min-width: 768px) {
    .coach-cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/*contact us page*/
.contact-main {
    background: var(--white);
}
.contact-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}
.contact-form {
  min-width: 0;
}
.contact-info {
  min-width: 0;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}
input,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(46, 60, 125, 0.1);
}
.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}
.info-item i {
  font-size: 1.5rem;
}

.contact-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 0.8rem 1.6rem;
    border: none;
    border-radius: 999px;
    font-weight: bold;
}

.contact-btn:hover {
    background-color: var(--secondary-color);
    transition: .6s ease;
    transform: translateY(-2px);
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.18);
}

.fas {
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .contact-container {
        grid-template-columns: minmax(0, 1.65fr) minmax(18rem, 1fr);
        align-items: stretch;
    }
}
