:root {
    --color-primary: #fd8549;
    --color-primary-hover: #e96f35;
}

.afacad-font {
    font-family: "Afacad", sans-serif;
}

.bg-primary {
    background: var(--color-primary);
}

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

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

.hover\:bg-primary-hover:hover {
    background: var(--color-primary-hover);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}

/* =========================================
   HEADER
========================================= */

.frontend-header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
}

.frontend-header-inner {
    width: 100%;

    /*
     * Only LEFT / RIGHT spacing is fluid.
     * TOP spacing never grows when zooming out.
     */
    padding-inline: clamp(25px, 5vw, 90px);

    margin-inline: auto;
}

.frontend-header-top {
    width: 100%;
    height: 117.52px;

    display: flex;
    align-items: center;

    /*
     * Prevent internal gaps from appearing.
     */
    gap: 0;
}

/* =========================================
   LOGO
========================================= */

.frontend-logo {
    display: flex;
    align-items: center;

    flex-shrink: 0;
}

.frontend-logo img {
    display: block;

    width: 82px;
    height: 74px;

    object-fit: contain;
}

/* =========================================
   DESKTOP NAV
========================================= */

.frontend-desktop-nav {
    display: flex;
    align-items: center;

    gap: 32px;
    margin-left: clamp(30px, 3vw, 45px);

    white-space: nowrap;
}

.frontend-desktop-nav a {
    font-family: "Darker Grotesque", sans-serif;

    font-size: 16px;
    font-weight: 500;

    color: #40516b;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.frontend-desktop-nav a:hover {
    color: #ff7848;
    transform: scale(1.125);
}

.frontend-desktop-nav a.active {
    color: #ff7848;
}

/* =========================================
   DESKTOP ENROLL
========================================= */

.frontend-desktop-action {
    margin-left: auto;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex-shrink: 0;
}

.frontend-desktop-action .enroll-btn {
    background: #fff;
    color: #17263d;

    text-decoration: none;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.frontend-desktop-action .enroll-btn:hover {
    background: #fd8549;
    color: #fff;
}

/* =========================================
   MOBILE MENU BUTTON
========================================= */

.frontend-mobile-menu-btn {
    display: none;

    width: 88px;
    height: 48px;

    align-items: center;
    justify-content: center;

    gap: 9px;

    border: none;
    outline: none;
    background: transparent;

    color: #fd8549;

    font-family: "Darker Grotesque", sans-serif;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
    padding: 0;
}

.frontend-mobile-menu-btn:focus,
.frontend-mobile-menu-btn:active {
    outline: none;
    border: none;
}

.mobile-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    line-height: 1;
}

/* =========================================
   MOBILE MENU
========================================= */

.frontend-mobile-menu {
    display: none;
}

/* =========================================
   LARGE DESKTOP / ZOOMED OUT
========================================= */

@media (min-width: 1600px) {
    .frontend-header-inner {
        /*
         * More space goes OUTSIDE the content.
         * Header height remains exactly the same.
         */
        padding-inline: clamp(80px, 7vw, 140px);
    }
}

/* =========================================
   LAPTOP
========================================= */

@media (max-width: 1200px) {
    .frontend-header-inner {
        padding-inline: 45px;
    }

    .frontend-desktop-nav {
        gap: 25px;
        margin-left: 32px;
    }

    .frontend-desktop-nav a {
        font-size: 15px;
    }
}

/* =========================================
   SMALL LAPTOP
========================================= */

@media (max-width: 1024px) {
    .frontend-header-inner {
        padding-inline: 35px;
    }

    .frontend-desktop-nav {
        gap: 20px;
        margin-left: 25px;
    }

    .frontend-desktop-nav a {
        font-size: 14px;
    }

    .frontend-logo img {
        width: 75px;
        height: 68px;
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {
    .frontend-header {
        position: absolute;
    }

    .frontend-header-inner {
        padding-inline: 0;
    }

    /*
     * EXACT FIXED HEIGHT.
     * Zooming out does NOT increase this.
     */
    .frontend-header-top {
        height: 129px;

        padding-inline: 28px;

        background: #c9f1f4;

        justify-content: space-between;
    }

    /* LOGO */

    .frontend-logo img {
        width: 82px;
        height: 74px;
    }

    /* Hide desktop elements */

    .frontend-desktop-nav,
    .frontend-desktop-action {
        display: none;
    }

    /* Show mobile menu button */

    .frontend-mobile-menu-btn {
        display: flex;
    }

    /* =====================================
       MOBILE NAVIGATION
    ===================================== */

    .frontend-mobile-menu {
        display: block;

        background: #fff;

        max-height: 0;
        overflow: hidden;

        transition: max-height 0.35s ease;
    }

    .frontend-mobile-menu.open {
        max-height: 520px;
    }

    .frontend-mobile-nav {
        display: flex;
        flex-direction: column;
        align-items: center;

        padding: 7px 20px 8px;
    }

    .frontend-mobile-nav a {
        width: 100%;

        height: 55px;

        display: flex;
        align-items: center;
        justify-content: center;

        font-family: "Darker Grotesque", sans-serif;

        font-size: 16px;
        font-weight: 500;

        color: #40516b;

        text-decoration: none;

        transition:
            color 0.2s ease,
            transform 0.2s ease;
    }

    .frontend-mobile-nav a.active,
    .frontend-mobile-nav a:hover {
        color: #ff7848;
    }

    /* =====================================
       SOCIAL ROW
    ===================================== */

    .frontend-mobile-social {
        min-height: 94px;

        display: flex;
        align-items: center;
        justify-content: center;

        gap: 14px;

        background: #f3f3f3;
    }

    .frontend-mobile-social a {
        width: 44px;
        height: 44px;

        display: flex;
        align-items: center;
        justify-content: center;

        border-radius: 50%;

        background: #fff;

        color: #fd8549;

        font-size: 16px;

        text-decoration: none;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {
    .frontend-header-top {
        height: 129px;
        padding-inline: 27px;
    }

    .frontend-logo img {
        width: 82px;
        height: 74px;
    }

    .frontend-mobile-menu-btn {
        width: 88px;
        height: 48px;
    }

    .frontend-mobile-nav a {
        height: 55px;
    }
}

.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background: #f8ffff;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: #c9f1f4;
    overflow: hidden;
}

.hero-bg::before {
    content: "";
    position: absolute;
    width: 75%;
    height: 150%;
    left: -18%;
    top: -25%;
    background: #f8ffff;
    border-radius: 50% 45% 50% 45%;
    transform: rotate(-25deg);
}

.hero-content {
    position: relative;
    z-index: 2;

    padding-inline: clamp(25px, 5vw, 90px);
    padding-top: clamp(130px, 11vw, 200px);
    padding-bottom: 60px;
}

.hero-inner {
    width: 100%;
    max-width: 1800px;
    margin-inline: auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(500px, 0.95fr);
    align-items: center;
    min-height: calc(100vh - 200px);
}

.hero-left {
    min-width: 0;
    padding-right: clamp(20px, 3vw, 70px);
}

.hero-eyebrow {
    font-size: 14px;
    letter-spacing: 3px;
    color: #40516b;
    margin-bottom: 32px;
}

.hero-heading {
    margin: 0;
    max-width: 700px;

    color: #fd8549;
    font-family: "Boogaloo", display;
    font-size: clamp(42px, 3.25vw, 50px);
    font-weight: 400;
    line-height: 1.05;
}

.hero-description {
    max-width: 760px;
    margin-top: 32px;
    margin-bottom: 0;

    font-family: "Darker Grotesque", sans-serif;
    font-size: clamp(18px, 1.35vw, 20px);
    line-height: 1.75;
    color: #17263d;
}

.hero-description strong {
    font-weight: 700;
}

/* ACTIONS */

.hero-action-row {
    display: flex;
    align-items: center;
    gap: clamp(35px, 4vw, 65px);
    margin-top: 38px;
}

.hero-enroll {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 180px;
    height: 50px;
    padding-inline: 15px;

    border-radius: 999px;
    flex-shrink: 0;

    background: #2f4055;
    color: #fff;

    font-family: "Nunito Sans", sans-serif;
    font-size: 18px;
    font-weight: 700;

    transition: background-color 0.3s ease;
}

.hero-enroll:hover {
    background: #fd8549;
}

.hero-rating {
    width: 300.73px;
    min-width: 0;
    height: 38px;
    padding-right: 15px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;

    flex-shrink: 1;

    font-family: "Darker Grotesque", sans-serif;
    color: #17263d;
}

.hero-stars {
    color: #fd8549;
    font-size: 30px;
    letter-spacing: 2px;
    line-height: 1;
    white-space: nowrap;
}

.hero-rating-text {
    font-size: 14px;
    line-height: 1;
    margin-top: 8px;
    white-space: nowrap;
}

/* CONTACT */

.hero-contact-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    column-gap: clamp(40px, 5vw, 75px);
    row-gap: 20px;

    margin-top: 42px;
}

.hero-contact-item {
    display: flex;
    align-items: center;
    gap: 22px;
}

.hero-contact {
    font-family: "Boogaloo", display;
    color: #111;
    font-size: 16px;
    font-weight: 400;
    text-decoration: underline;
}

.hero-contact-icon {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    border-radius: 50%;
    background: #fd8549;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 21px;
}

/* =========================================
   RIGHT SIDE IMAGES
========================================= */

.hero-visual {
    position: relative;
    width: 100%;
    height: 580px;
    min-width: 0;
}

.hero-main-image {
    position: absolute;

    /*
     * Relative positioning instead of fixed right:
     * prevents huge empty space when viewport changes.
     */
    top: 0;
    right: clamp(100px, 10vw, 180px);

    width: clamp(340px, 27vw, 400px);
    height: clamp(420px, 32vw, 480px);
}

.hero-small-image {
    position: absolute;

    top: 135px;
    right: clamp(-30px, -1vw, -10px);

    width: clamp(270px, 21vw, 310px);
    height: clamp(350px, 27vw, 400px);

    z-index: 10;
}

.hero-main-image img,
.hero-small-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    border-radius: 32px;
}

/* =========================================
   LARGE LAPTOP / ZOOMED-OUT
========================================= */

@media (min-width: 1600px) {
    .hero-content {
        padding-inline: clamp(80px, 7vw, 140px);
    }

    .hero-inner {
        max-width: 1850px;
    }

    .hero-left {
        padding-right: 50px;
    }
}

/* =========================================
   LAPTOP
========================================= */

@media (max-width: 1200px) {
    .hero-content {
        padding-inline: 45px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(430px, 0.9fr);
    }

    .hero-main-image {
        right: 90px;
        width: 350px;
        height: 440px;
    }

    .hero-small-image {
        right: -20px;
        width: 280px;
        height: 360px;
        top: 125px;
    }

    .hero-action-row {
        gap: 35px;
    }

    .hero-contact-row {
        column-gap: 40px;
    }
}

/* =========================================
   SMALL LAPTOP / TABLET
========================================= */

@media (max-width: 1024px) {
    .hero-content {
        padding-inline: 35px;
        padding-top: 130px;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr) 420px;
    }

    .hero-heading {
        font-size: 43px;
    }

    .hero-description {
        font-size: 18px;
    }

    .hero-visual {
        height: 530px;
    }

    .hero-main-image {
        right: 70px;
        width: 330px;
        height: 410px;
    }

    .hero-small-image {
        right: -15px;
        top: 120px;
        width: 260px;
        height: 340px;
    }

    .hero-contact-row {
        column-gap: 30px;
    }
}

/* =========================================
   MOBILE / TABLET
========================================= */

@media (max-width: 767px) {
    .hero-section {
        min-height: auto;
    }

    .hero-content {
        padding-inline: 22px;
        padding-top: 120px;
        padding-bottom: 50px;
    }

    .hero-inner {
        display: flex;
        flex-direction: column;

        min-height: auto;
        gap: 55px;
    }

    .hero-left {
        width: 100%;
        padding-right: 0;
    }

    .hero-eyebrow {
        margin-bottom: 22px;
        font-size: 12px;
        letter-spacing: 2.5px;
    }

    .hero-heading {
        max-width: 100%;
        font-size: clamp(38px, 10vw, 48px);
        line-height: 1.05;
    }

    .hero-description {
        max-width: 100%;
        margin-top: 24px;

        font-size: 18px;
        line-height: 1.6;
    }

    .hero-action-row {
        align-items: flex-start;
        flex-direction: column;

        gap: 25px;
        margin-top: 30px;
    }

    .hero-rating {
        width: auto;
        height: auto;
    }

    .hero-contact-row {
        flex-direction: column;
        align-items: flex-start;

        gap: 20px;
        margin-top: 32px;
    }

    .hero-contact-item {
        gap: 16px;
    }

    .hero-visual {
        width: 100%;
        height: 520px;
    }

    .hero-main-image {
        top: 0;
        right: auto;
        left: 5%;

        width: 70%;
        height: 400px;
    }

    .hero-small-image {
        top: 100px;
        right: 0;

        width: 55%;
        height: 350px;
    }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 480px) {
    .hero-content {
        padding-inline: 18px;
        padding-top: 105px;
    }

    .hero-inner {
        gap: 45px;
    }

    .hero-heading {
        font-size: 38px;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-enroll {
        width: 170px;
        height: 48px;
        font-size: 17px;
    }

    .hero-stars {
        font-size: 27px;
    }

    .hero-rating-text {
        font-size: 13px;
    }

    .hero-contact {
        font-size: 15px;
    }

    .hero-visual {
        height: 440px;
    }

    .hero-main-image {
        left: 2%;
        width: 75%;
        height: 340px;
    }

    .hero-small-image {
        top: 90px;
        width: 55%;
        height: 290px;
    }
}
