/* =========================================================
   RICHARDS BAY BLS INSTITUTE
   CPR / BLS TRAINING WEBSITE
   ========================================================= */


/* =========================================================
   RESET / VARIABLES
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}


:root {
    --navy: #07366d;
    --navy-mid: #0b477f;
    --navy-dark: #04264e;
    --navy-deep: #031d3c;

    --red: #ef3429;
    --red-dark: #d72b22;

    --blue: #009de0;
    --blue-bright: #13b4f0;

    --white: #ffffff;
    --text-dark: #111111;

    --canvas-max-width: 1180px;
    --canvas-gutter: 90px;

    --floating-nav-height: 76px;
}


/* =========================================================
   DOCUMENT / OUTER BACKGROUND
   ========================================================= */

html {
    width: 100%;
    min-height: 100%;

    scroll-behavior: smooth;

    background-color: var(--navy-deep);

    background-image:
        linear-gradient(
            90deg,
            rgba(2, 18, 39, 0.20),
            rgba(2, 24, 50, 0.04) 35%,
            rgba(2, 24, 50, 0.04) 65%,
            rgba(2, 18, 39, 0.20)
        ),
        linear-gradient(
            rgba(2, 20, 42, 0.20),
            rgba(2, 20, 42, 0.38)
        ),
        url("../assets/page-background.png");

    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat;

    background-position:
        center center,
        center center,
        center center;

    background-size:
        cover,
        cover,
        cover;

    background-attachment:
        fixed,
        fixed,
        fixed;
}


body {
    width: 100%;
    min-height: 100vh;

    margin: 0;

    overflow-x: hidden;

    background: transparent;

    color: var(--text-dark);

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}


/* =========================================================
   TOP ANCHOR
   ========================================================= */

.top-anchor {
    position: absolute;

    top: 0;
    left: 0;

    width: 1px;
    height: 1px;

    pointer-events: none;
}


/* =========================================================
   CENTRAL CANVAS
   ========================================================= */

.site-canvas {
    position: relative;

    z-index: 10;

    width:
        min(
            calc(100% - (var(--canvas-gutter) * 2)),
            var(--canvas-max-width)
        );

    max-width: var(--canvas-max-width);

    margin: 0 auto;

    overflow: hidden;

    background: var(--navy-deep);

    box-shadow:
        0 0 55px rgba(0, 0, 0, 0.32),
        0 0 120px rgba(0, 32, 70, 0.14);
}


/* =========================================================
   MASTHEAD
   ========================================================= */

.masthead {
    position: relative;

    z-index: 2;

    width: 100%;

    height:
        clamp(
            320px,
            38vh,
            390px
        );

    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 70% 42%,
            rgba(0, 157, 224, 0.13) 0%,
            rgba(0, 157, 224, 0.055) 28%,
            transparent 56%
        ),
        radial-gradient(
            ellipse at 24% 62%,
            rgba(239, 52, 41, 0.032) 0%,
            transparent 42%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f9fcfd 28%,
            #edf5f9 59%,
            #e2edf3 78%,
            #d6e2e8 100%
        );
}


.masthead::before {
    content: "";

    position: absolute;

    z-index: 0;

    inset: 0;

    background-image:
        linear-gradient(
            rgba(7, 54, 109, 0.028) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(7, 54, 109, 0.028) 1px,
            transparent 1px
        );

    background-size: 38px 38px;

    pointer-events: none;
}


.masthead::after {
    content: "";

    position: absolute;

    z-index: 1;

    left: 7%;
    right: 7%;

    top: 62%;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(0, 157, 224, 0.05) 8%,
            rgba(0, 157, 224, 0.16) 23%,
            rgba(0, 157, 224, 0.08) 42%,
            rgba(239, 52, 41, 0.13) 50%,
            rgba(0, 157, 224, 0.08) 58%,
            rgba(0, 157, 224, 0.16) 77%,
            rgba(0, 157, 224, 0.05) 92%,
            transparent 100%
        );

    pointer-events: none;
}


.masthead-inner {
    position: relative;

    z-index: 3;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 8px 22px;
}


/*
   MAIN MASTHEAD LOGO

   Intentionally large so the branding almost fills
   the available white masthead area.
*/

.masthead-logo {
    display: block;

    width:
        min(
            98%,
            1080px
        );

    max-width: 100%;
    max-height: 96%;

    object-fit: contain;

    filter:
        drop-shadow(
            0 3px 4px
            rgba(3, 29, 60, 0.08)
        );
}


/* =========================================================
   FLOATING NAVIGATION
   ========================================================= */

.floating-nav {
    position: fixed;

    z-index: 2000;

    top: 16px;
    left: 50%;

    width:
        min(
            calc(100% - 60px),
            820px
        );

    height: var(--floating-nav-height);

    transform:
        translate3d(-50%, -120px, 0)
        scale(0.97);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 220ms ease,
        visibility 0s linear 300ms;

    will-change:
        transform,
        opacity;
}


.floating-nav.is-visible {
    transform:
        translate3d(-50%, 0, 0)
        scale(1);

    opacity: 1;

    visibility: visible;

    pointer-events: auto;

    transition:
        transform 300ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 220ms ease,
        visibility 0s;
}


.floating-nav-inner {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    padding:
        8px
        10px
        8px
        22px;

    background: rgba(255, 255, 255, 0.97);

    border:
        1px solid
        rgba(255, 255, 255, 0.78);

    border-radius: 18px;

    box-shadow:
        0 12px 32px
        rgba(0, 0, 0, 0.22);
}


.floating-logo-link {
    display: flex;

    align-items: center;

    min-width: 0;
    height: 100%;

    text-decoration: none;
}


.floating-logo {
    display: block;

    width: auto;

    max-width: 330px;
    max-height: 54px;

    object-fit: contain;
}


.floating-nav-actions {
    display: flex;

    align-items: center;

    gap: 8px;

    flex-shrink: 0;
}


.floating-contact-link {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 20px;

    border-radius: 10px;

    color: var(--navy);

    font-size: 0.85rem;

    font-weight: 900;

    letter-spacing: 0.06em;

    text-decoration: none;

    text-transform: uppercase;

    transition:
        background 160ms ease,
        color 160ms ease;
}


.floating-contact-link:hover {
    background:
        rgba(0, 157, 224, 0.10);

    color: var(--blue);
}


.floating-book-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 48px;

    padding: 0 23px;

    border-radius: 10px;

    background: var(--red);

    color: var(--white);

    font-size: 0.85rem;

    font-weight: 900;

    letter-spacing: 0.06em;

    text-decoration: none;

    text-transform: uppercase;

    box-shadow:
        0 5px 14px
        rgba(239, 52, 41, 0.25);

    transition:
        transform 160ms ease,
        background 160ms ease;
}


.floating-book-button:hover {
    background: var(--red-dark);

    transform: translateY(-2px);
}


/* =========================================================
   MAIN CONTINUOUS GRADIENT
   ========================================================= */

main {
    position: relative;

    z-index: 1;

    width: 100%;

    margin: 0;
    padding: 0;

    background:
        linear-gradient(
            180deg,
            #d6e2e8 0%,
            #d4d9dc 20%,
            #c6ccd0 34%,
            #aebbc5 43%,
            #7f99ac 50%,
            #527897 56%,
            #2c628b 61%,
            #114d7d 66%,
            var(--navy) 72%,
            var(--navy-dark) 87%,
            var(--navy-deep) 100%
        );
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;

    min-height: 680px;

    overflow: hidden;

    background: #dce6eb;
}


/* =========================================================
   CPR BACKGROUND
   ========================================================= */

.hero-image {
    position: absolute;

    z-index: 0;

    inset: 0;

    background-image:
        linear-gradient(
            90deg,
            rgba(225, 235, 240, 0.50) 0%,
            rgba(238, 245, 248, 0.58) 43%,
            rgba(245, 249, 251, 0.68) 70%,
            rgba(239, 246, 249, 0.72) 100%
        ),
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.14),
            rgba(214, 226, 233, 0.25)
        ),
        url("../assets/cpr-background.jpg");

    background-repeat:
        no-repeat,
        no-repeat,
        no-repeat;

    background-size:
        cover,
        cover,
        cover;

    background-position:
        center center,
        center center,
        62% center;

    filter:
        saturate(0.72)
        contrast(0.92);

    transform: scale(1.01);

    transform-origin: center;

    pointer-events: none;
}


.hero-image::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            ellipse at 80% 42%,
            rgba(255, 255, 255, 0.05),
            rgba(235, 244, 248, 0.16) 42%,
            rgba(212, 225, 232, 0.22) 100%
        );

    pointer-events: none;
}


/* =========================================================
   HERO NAVY GRAPHIC
   ========================================================= */

.hero-content {
    position: relative;

    z-index: 2;

    width: 68%;

    min-height: 680px;

    display: flex;

    align-items: center;

    padding:
        clamp(
            45px,
            6vw,
            82px
        );

    background:
        linear-gradient(
            145deg,
            #10518b 0%,
            var(--navy) 35%,
            var(--navy-dark) 76%,
            #052d59 100%
        );

    border-radius:
        0
        46% 46%
        0;

    box-shadow:
        14px 0 34px
        rgba(3, 29, 60, 0.08),
        inset -35px -25px 70px
        rgba(0, 157, 224, 0.055);
}


.hero-copy {
    width:
        min(
            100%,
            680px
        );

    color: var(--white);
}


.hero-intro {
    margin: 0;

    font-size:
        clamp(
            2rem,
            4.5vw,
            4rem
        );

    font-weight: 900;

    line-height: 1;

    letter-spacing: -0.04em;

    text-transform: uppercase;

    text-shadow:
        0 2px 0
        rgba(0, 157, 224, 0.65);
}


/* =========================================================
   HERO HEADING
   ========================================================= */

.hero h1 {
    margin:
        10px
        0
        34px;

    padding: 0;

    color: var(--white);

    font-weight: 300;
}


.hero-primary-title {
    display: block;

    font-size:
        clamp(
            7rem,
            14vw,
            11.5rem
        );

    font-weight: 300;

    line-height: 0.82;

    letter-spacing: -0.07em;

    text-shadow:
        2px 0
        var(--blue);
}


.hero-location-title {
    display: block;

    max-width: 500px;

    margin-top: 20px;

    color:
        rgba(255, 255, 255, 0.82);

    font-size:
        clamp(
            0.8rem,
            1.4vw,
            1rem
        );

    font-weight: 700;

    line-height: 1.4;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


/* =========================================================
   BOOKING
   ========================================================= */

.booking-info {
    width:
        min(
            100%,
            520px
        );
}


.booking-info h2 {
    display: inline-block;

    margin:
        0
        0
        16px;

    color: var(--white);

    font-size:
        clamp(
            1.35rem,
            2.5vw,
            2rem
        );

    font-weight: 900;

    text-transform: uppercase;

    border-bottom:
        3px solid
        var(--white);
}


.booking-info ul {
    margin:
        0
        0
        28px;

    padding-left: 22px;

    font-size:
        clamp(
            0.95rem,
            1.6vw,
            1.15rem
        );

    line-height: 1.7;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.book-button,
.submit-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 6px;

    color: var(--white);

    background: var(--red);

    font-weight: 900;

    letter-spacing: 0.08em;

    text-decoration: none;

    text-transform: uppercase;

    cursor: pointer;

    box-shadow:
        0 8px 20px
        rgba(0, 0, 0, 0.18);

    transition:
        transform 160ms ease,
        background 160ms ease;
}


.book-button {
    position: relative;

    z-index: 10;

    min-width: 180px;

    padding:
        15px
        28px;
}


.book-button:hover,
.submit-button:hover {
    transform: translateY(-2px);

    background: var(--red-dark);
}


/* =========================================================
   MEDICAL CROSS
   ========================================================= */

.medical-cross {
    position: absolute;

    z-index: 4;

    width: 145px;
    height: 145px;

    pointer-events: none;
}


.medical-cross::before,
.medical-cross > span {
    position: absolute;

    display: block;

    background: var(--red);

    border-radius: 1px;
}


.medical-cross::before {
    content: "";

    width: 42%;
    height: 100%;

    left: 29%;
    top: 0;
}


.medical-cross > span {
    width: 100%;
    height: 42%;

    left: 0;
    top: 29%;
}


/* =========================================================
   LARGE HERO CROSS
   ========================================================= */

.medical-cross-large {
    right:
        clamp(
            28px,
            6vw,
            90px
        );

    top: 25%;

    filter:
        drop-shadow(
            0 5px 12px
            rgba(239, 52, 41, 0.15)
        );
}


/* =========================================================
   INSTRUCTOR SECTION
   ========================================================= */

.instructor-section {
    position: relative;

    min-height: 370px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        98px
        clamp(
            30px,
            6vw,
            80px
        )
        72px;

    background: transparent;

    text-align: center;
}


/* =========================================================
   SMALL INSTRUCTOR CROSS
   ========================================================= */

.medical-cross-small {
    width: 72px;
    height: 72px;

    top: 20px;
    left: 50%;

    transform: translateX(-50%);

    filter:
        drop-shadow(
            0 4px 8px
            rgba(239, 52, 41, 0.12)
        );
}


/* =========================================================
   INSTRUCTOR CARD
   ========================================================= */

.instructor-card {
    position: relative;

    z-index: 2;

    width:
        min(
            100%,
            900px
        );

    margin: 0 auto;

    text-align: center;
}


.instructor-label {
    margin:
        0
        0
        5px;

    color: var(--navy-deep);

    font-size:
        clamp(
            1.45rem,
            2.7vw,
            2rem
        );

    font-weight: 900;

    line-height: 1.15;

    letter-spacing: 0.055em;

    text-transform: uppercase;
}


/* =========================================================
   HEARTBEAT DIVIDER
   ========================================================= */

.heartbeat-divider {
    position: relative;

    width: 116px;
    height: 22px;

    margin:
        7px
        auto
        12px;
}


.heartbeat-divider::before,
.heartbeat-divider::after {
    content: "";

    position: absolute;

    top: 50%;

    width: 44px;
    height: 2px;

    background: var(--navy-deep);

    transform: translateY(-50%);
}


.heartbeat-divider::before {
    left: 0;
}


.heartbeat-divider::after {
    right: 0;
}


.heartbeat-divider span {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--red);

    transform:
        translate(-50%, -50%);
}


/* =========================================================
   INSTRUCTOR NAME
   ========================================================= */

.instructor-card h2 {
    margin:
        0
        0
        24px;

    color: var(--navy-deep);

    font-size:
        clamp(
            2rem,
            4vw,
            3.1rem
        );

    font-weight: 900;

    line-height: 1;

    letter-spacing: -0.015em;

    text-transform: uppercase;
}


/* =========================================================
   INSTRUCTOR CONTACT ROW
   ========================================================= */

.instructor-contact-row {
    width: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap:
        20px
        42px;

    margin: 0 auto;
}


.instructor-contact-item {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 13px;

    min-width: 0;

    color: var(--navy-deep);

    text-decoration: none;

    transition:
        color 160ms ease,
        transform 160ms ease;
}


.instructor-contact-item:hover {
    color: var(--blue);

    transform: translateY(-2px);
}


.instructor-contact-text {
    font-size:
        clamp(
            1.1rem,
            2.25vw,
            1.5rem
        );

    font-weight: 800;

    line-height: 1.2;

    overflow-wrap: anywhere;
}


/* =========================================================
   INSTRUCTOR CONTACT ICONS
   ========================================================= */

.instructor-contact-icon {
    position: relative;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex:
        0
        0
        50px;

    width: 50px;
    height: 50px;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #ff463b,
            var(--red)
        );

    box-shadow:
        0 6px 15px
        rgba(239, 52, 41, 0.20);
}


/* =========================================================
   PHONE ICON
   ========================================================= */

.phone-icon svg {
    display: block;

    width: 27px;
    height: 27px;

    overflow: visible;

    fill: var(--white);

    transform: rotate(-5deg);

    transform-origin: center;

    pointer-events: none;
}


/* =========================================================
   EMAIL ICON
   ========================================================= */

.email-icon > span {
    position: relative;

    display: block;

    width: 25px;
    height: 18px;

    border:
        2px solid
        var(--white);

    border-radius: 2px;
}


.email-icon > span::before,
.email-icon > span::after {
    content: "";

    position: absolute;

    top: 2px;

    width: 15px;
    height: 2px;

    background: var(--white);
}


.email-icon > span::before {
    left: 0;

    transform: rotate(35deg);

    transform-origin: left center;
}


.email-icon > span::after {
    right: 0;

    transform: rotate(-35deg);

    transform-origin: right center;
}


/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact-section {
    position: relative;

    scroll-margin-top:
        calc(
            var(--floating-nav-height) + 35px
        );

    padding:
        clamp(
            85px,
            8vw,
            115px
        )
        30px
        clamp(
            85px,
            8vw,
            115px
        );

    background: transparent;

    color: var(--white);
}


.contact-section::before {
    content: "";

    position: absolute;

    z-index: 0;

    width: 600px;
    height: 600px;

    left: -300px;
    top: 10%;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 157, 224, 0.065),
            transparent 67%
        );

    pointer-events: none;
}


.contact-container {
    position: relative;

    z-index: 2;

    width:
        min(
            100%,
            1020px
        );

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        minmax(0, 0.8fr)
        minmax(0, 1.2fr);

    gap:
        clamp(
            42px,
            6vw,
            75px
        );

    align-items: center;
}


/* =========================================================
   CONTACT INTRODUCTION
   ========================================================= */

.section-kicker {
    display: block;

    margin-bottom: 8px;

    color: var(--blue-bright);

    font-size: 0.9rem;

    font-weight: 900;

    letter-spacing: 0.18em;

    line-height: 1.5;

    text-transform: uppercase;
}


.contact-introduction h2 {
    margin:
        0
        0
        20px;

    color: var(--white);

    font-size:
        clamp(
            2.8rem,
            5vw,
            5rem
        );

    line-height: 0.95;

    text-transform: uppercase;
}


.contact-introduction > p {
    max-width: 440px;

    margin:
        0
        0
        40px;

    color:
        rgba(255, 255, 255, 0.82);

    font-size: 1.05rem;

    line-height: 1.7;
}


.direct-contact {
    display: grid;

    gap: 25px;
}


.direct-contact-item {
    padding-left: 18px;

    border-left:
        4px solid
        var(--red);
}


.contact-title {
    display: block;

    margin-bottom: 5px;

    color: var(--blue-bright);

    font-size: 0.78rem;

    font-weight: 900;

    letter-spacing: 0.14em;

    text-transform: uppercase;
}


.direct-contact a {
    color: var(--white);

    font-size:
        clamp(
            1rem,
            2vw,
            1.25rem
        );

    text-decoration: none;

    overflow-wrap: anywhere;
}


/* =========================================================
   FORM
   ========================================================= */

.form-wrapper {
    width: 100%;

    min-width: 0;

    padding:
        clamp(
            25px,
            4vw,
            42px
        );

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.055)
        );

    border:
        1px solid
        rgba(255, 255, 255, 0.15);

    border-radius: 18px;

    box-shadow:
        0 18px 42px
        rgba(0, 0, 0, 0.19);
}


.contact-form {
    width: 100%;

    min-width: 0;
}


.form-row {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px;
}


.form-group {
    min-width: 0;

    margin-bottom: 20px;
}


.form-group label {
    display: block;

    margin-bottom: 8px;

    color: var(--white);

    font-size: 0.9rem;

    font-weight: 700;
}


.form-group label span {
    color: var(--red);
}


.form-group input,
.form-group select,
.form-group textarea {
    display: block;

    width: 100%;
    max-width: 100%;

    padding:
        14px
        15px;

    border:
        1px solid
        rgba(255, 255, 255, 0.25);

    border-radius: 6px;

    outline: none;

    background:
        rgba(255, 255, 255, 0.97);

    color: #111;

    font: inherit;
}


.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--blue-bright);

    box-shadow:
        0 0 0 3px
        rgba(19, 180, 240, 0.20);
}


.form-group textarea {
    resize: vertical;

    min-height: 150px;
}


/* =========================================================
   TURNSTILE
   ========================================================= */

.bot-check-container {
    width: 100%;

    min-height: 70px;

    margin:
        5px
        0
        22px;

    padding:
        10px
        0;

    display: flex;

    align-items: center;

    overflow: hidden;
}


/* =========================================================
   HONEYPOT
   ========================================================= */

.website-field {
    position: absolute;

    left: -10000px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


/* =========================================================
   FORM STATUS
   ========================================================= */

.submit-button {
    width: 100%;

    padding:
        16px
        25px;

    font-size: 0.95rem;
}


.submit-button:disabled {
    opacity: 0.6;

    cursor: wait;

    transform: none;
}


.required-note {
    margin:
        12px
        0
        0;

    color:
        rgba(255, 255, 255, 0.55);

    font-size: 0.75rem;
}


.form-status {
    display: none;

    margin-bottom: 20px;

    padding:
        13px
        15px;

    border-radius: 6px;

    font-size: 0.9rem;

    line-height: 1.5;
}


.form-status.success {
    display: block;

    background:
        rgba(31, 175, 90, 0.18);

    border:
        1px solid
        rgba(80, 220, 130, 0.40);
}


.form-status.error {
    display: block;

    background:
        rgba(239, 52, 41, 0.16);

    border:
        1px solid
        rgba(239, 52, 41, 0.55);
}


/* =========================================================
   CLOSING BANNER
   ========================================================= */

.closing-banner {
    position: relative;

    width: 100%;

    padding:
        50px
        30px
        42px;

    background:
        linear-gradient(
            180deg,
            var(--navy-deep) 0%,
            #153e61 8%,
            #496b84 19%,
            #8099ab 31%,
            #b5c6d1 45%,
            #dde7ed 61%,
            #f4f8fa 79%,
            #ffffff 100%
        );

    text-align: center;
}


.closing-banner p {
    margin:
        34px
        0
        0;

    color: #000;

    font-size:
        clamp(
            1.25rem,
            3.4vw,
            2.4rem
        );

    font-weight: 900;

    line-height: 1.1;

    text-transform: uppercase;
}


.closing-banner strong {
    color: var(--blue);

    white-space: nowrap;
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    position: relative;

    width: 100%;

    margin: 0;

    padding:
        52px
        25px
        38px;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #e6eef3 9%,
            #b3c5d0 21%,
            #728da1 34%,
            #315f82 47%,
            #0c4475 60%,
            var(--navy-dark) 77%,
            var(--navy-deep) 100%
        );

    color: var(--white);

    text-align: center;
}


.footer-inner {
    width:
        min(
            100%,
            1000px
        );

    margin:
        34px
        auto
        0;
}


.footer-brand {
    margin:
        0
        0
        8px;

    font-size: 1rem;

    font-weight: 800;

    text-transform: uppercase;
}


.footer-contact {
    margin: 0;

    font-size: 0.85rem;
}


.footer-contact span {
    margin:
        0
        10px;

    color:
        rgba(255, 255, 255, 0.35);
}


.footer-contact a {
    color:
        rgba(255, 255, 255, 0.78);

    text-decoration: none;
}


.footer-contact a:hover {
    color: var(--blue-bright);
}


.footer-divider {
    width: 70px;
    height: 2px;

    margin:
        22px
        auto;

    background: var(--red);
}


.developer-credit {
    margin: 0;

    color:
        rgba(255, 255, 255, 0.58);

    font-size: 0.75rem;

    line-height: 1.6;
}


.developer-credit strong {
    color:
        rgba(255, 255, 255, 0.88);

    font-size: 0.8rem;
}


/* =========================================================
   LAPTOP
   ========================================================= */

@media (max-width: 1350px) {

    :root {
        --canvas-max-width: 1080px;
        --canvas-gutter: 45px;
    }


    .masthead {
        height:
            clamp(
                300px,
                37vh,
                360px
            );
    }


    .masthead-inner {
        padding: 8px 18px;
    }


    .masthead-logo {
        width:
            min(
                98%,
                1000px
            );

        max-height: 95%;
    }


    .hero-image {
        background-position:
            center center,
            center center,
            66% center;
    }


    .instructor-contact-row {
        gap:
            18px
            32px;
    }

}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    :root {
        --canvas-max-width: 100%;
        --canvas-gutter: 20px;
    }


    .masthead {
        height: 300px;
    }


    .masthead-inner {
        padding: 8px 14px;
    }


    .masthead-logo {
        width: 98%;
        max-height: 94%;
    }


    .floating-nav {
        width:
            min(
                calc(100% - 40px),
                720px
            );
    }


    .floating-logo {
        max-width: 280px;
    }


    .hero-content {
        width: 76%;

        border-radius:
            0
            42% 42%
            0;
    }


    .hero-image {
        background-position:
            center center,
            center center,
            70% center;
    }


    .instructor-section {
        min-height: 360px;

        padding:
            100px
            25px
            68px;
    }


    .instructor-card {
        width:
            min(
                100%,
                760px
            );
    }


    .instructor-contact-row {
        gap:
            18px
            28px;
    }


    .instructor-contact-icon {
        flex-basis: 46px;

        width: 46px;
        height: 46px;
    }


    .phone-icon svg {
        width: 25px;
        height: 25px;
    }


    .contact-container {
        grid-template-columns: 1fr;

        max-width: 700px;
    }


    .contact-introduction {
        text-align: center;
    }


    .contact-introduction > p {
        margin-left: auto;
        margin-right: auto;
    }


    .direct-contact {
        max-width: 450px;

        margin:
            0
            auto;

        text-align: left;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    :root {
        --canvas-max-width: 100%;
        --canvas-gutter: 0px;

        --floating-nav-height: 62px;
    }


    html {
        background-attachment:
            scroll,
            scroll,
            scroll;

        background-position:
            center top,
            center top,
            center top;
    }


    .site-canvas {
        width: 100%;

        box-shadow: none;
    }


    /* MOBILE MASTHEAD */

    .masthead {
        height: 220px;
    }


    .masthead::before {
        background-size: 28px 28px;
    }


    .masthead::after {
        left: 4%;
        right: 4%;

        top: 66%;
    }


    .masthead-inner {
        padding: 6px 10px;
    }


    .masthead-logo {
        width: 98%;
        max-height: 94%;
    }


    /* MOBILE FLOATING NAV */

    .floating-nav {
        top: 10px;

        width:
            calc(100% - 20px);

        height:
            var(--floating-nav-height);
    }


    .floating-nav-inner {
        gap: 10px;

        padding:
            6px
            7px
            6px
            14px;

        border-radius: 15px;
    }


    .floating-logo-link {
        flex:
            1
            1
            auto;

        overflow: hidden;
    }


    .floating-logo {
        width: 100%;

        max-width: 220px;
        max-height: 43px;

        object-fit: contain;

        object-position: left center;
    }


    .floating-nav-actions {
        flex:
            0
            0
            auto;
    }


    .floating-contact-link {
        display: none;
    }


    .floating-book-button {
        min-height: 46px;

        padding:
            0
            17px;

        font-size: 0.75rem;

        white-space: nowrap;
    }


    /* MOBILE MAIN */

    main {
        background:
            linear-gradient(
                180deg,
                #d6e2e8 0%,
                #d0d6da 22%,
                #bac4cb 35%,
                #849cad 45%,
                #557a97 51%,
                #35698f 57%,
                var(--navy) 66%,
                var(--navy-dark) 83%,
                var(--navy-deep) 100%
            );
    }


    /* MOBILE HERO */

    .hero {
        display: grid;

        grid-template-columns: 1fr;

        grid-template-areas:
            "content"
            "visual";

        min-height: auto;

        overflow: hidden;
    }


    .hero-content {
        grid-area: content;

        position: relative;

        z-index: 5;

        width: 100%;
        min-height: auto;

        padding:
            48px
            25px
            70px;

        border-radius:
            0
            0
            42% 0;
    }


    .hero-copy {
        position: relative;

        z-index: 6;

        width: 100%;
    }


    .hero-image {
        grid-area: visual;

        position: relative;

        z-index: 1;

        inset: auto;

        width: 100%;
        height: 300px;

        background-image:
            linear-gradient(
                180deg,
                rgba(236, 244, 248, 0.52) 0%,
                rgba(229, 239, 244, 0.58) 55%,
                rgba(209, 224, 232, 0.68) 100%
            ),
            url("../assets/cpr-background.jpg");

        background-repeat:
            no-repeat,
            no-repeat;

        background-size:
            cover,
            cover;

        background-position:
            center center,
            72% center;

        filter:
            saturate(0.70)
            contrast(0.92);

        transform: none;
    }


    .hero-image::after {
        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.08),
                rgba(213, 226, 233, 0.16)
            );
    }


    .hero-intro {
        font-size:
            clamp(
                2rem,
                10vw,
                3.5rem
            );
    }


    .hero h1 {
        margin-bottom: 30px;
    }


    .hero-primary-title {
        font-size:
            clamp(
                6rem,
                30vw,
                9rem
            );
    }


    .hero-location-title {
        max-width: 330px;

        margin-top: 17px;

        font-size: 0.78rem;

        line-height: 1.5;

        letter-spacing: 0.10em;
    }


    .booking-info {
        position: relative;

        z-index: 8;

        width: 100%;
    }


    .book-button {
        position: relative;

        z-index: 10;
    }


    .medical-cross-large {
        z-index: 3;

        width: 88px;
        height: 88px;

        top: auto;
        bottom: 105px;

        right: 9%;
    }


    /* MOBILE INSTRUCTOR */

    .instructor-section {
        min-height: 400px;

        padding:
            105px
            18px
            68px;

        text-align: center;
    }


    .medical-cross-small {
        width: 66px;
        height: 66px;

        top: 24px;
        left: 50%;

        transform: translateX(-50%);
    }


    .instructor-card {
        width: 100%;

        max-width: 560px;
    }


    .instructor-label {
        font-size:
            clamp(
                1.25rem,
                6vw,
                1.65rem
            );
    }


    .instructor-card h2 {
        margin-bottom: 26px;

        font-size:
            clamp(
                1.75rem,
                8vw,
                2.35rem
            );

        line-height: 1.05;
    }


    .instructor-contact-row {
        flex-direction: column;

        align-items: center;

        gap: 15px;
    }


    .instructor-contact-item {
        width: auto;
        max-width: 100%;

        justify-content: flex-start;
    }


    .instructor-contact-icon {
        flex:
            0
            0
            44px;

        width: 44px;
        height: 44px;
    }


    .instructor-contact-text {
        font-size:
            clamp(
                1rem,
                4.7vw,
                1.25rem
            );
    }


    .phone-icon svg {
        width: 23px;
        height: 23px;

        transform: rotate(-5deg);
    }


    .email-icon > span {
        transform: scale(0.88);
    }


    /* MOBILE CONTACT */

    .contact-section {
        scroll-margin-top:
            calc(
                var(--floating-nav-height) + 25px
            );

        padding:
            82px
            18px
            88px;
    }


    .contact-section::before {
        width: 420px;
        height: 420px;

        left: -260px;
    }


    .contact-introduction h2 {
        font-size:
            clamp(
                2.6rem,
                13vw,
                4rem
            );
    }


    .form-row {
        grid-template-columns: 1fr;

        gap: 0;
    }


    .form-wrapper {
        width: 100%;

        padding:
            25px
            18px;

        overflow: hidden;
    }


    .bot-check-container {
        justify-content: flex-start;

        overflow-x: auto;
        overflow-y: hidden;
    }


    /* MOBILE CLOSING */

    .closing-banner {
        padding:
            46px
            22px
            38px;
    }


    .closing-banner p {
        margin-top: 28px;
    }


    /* MOBILE FOOTER */

    .site-footer {
        padding:
            48px
            22px
            35px;
    }


    .footer-inner {
        margin-top: 27px;
    }


    .footer-contact span {
        display: none;
    }


    .footer-contact a {
        display: block;

        margin:
            7px
            0;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 400px) {

    .masthead {
        height: 185px;
    }


    .masthead-inner {
        padding: 5px 8px;
    }


    .masthead-logo {
        width: 98%;
        max-height: 94%;
    }


    .floating-nav-inner {
        padding-left: 10px;
    }


    .floating-logo {
        max-width: 175px;
        max-height: 40px;
    }


    .floating-book-button {
        min-height: 43px;

        padding:
            0
            12px;

        font-size: 0.68rem;
    }


    .hero-content {
        padding:
            40px
            18px
            62px;
    }


    .hero-intro {
        font-size: 1.9rem;
    }


    .hero-primary-title {
        font-size: 6rem;
    }


    .hero-location-title {
        max-width: 280px;

        font-size: 0.7rem;
    }


    .booking-info h2 {
        font-size: 1.25rem;
    }


    .book-button {
        width: 100%;

        min-width: 0;
    }


    .hero-image {
        height: 250px;

        background-position:
            center center,
            72% center;
    }


    .medical-cross-large {
        width: 72px;
        height: 72px;

        bottom: 88px;

        right: 8%;
    }


    .instructor-section {
        min-height: 380px;

        padding:
            98px
            12px
            60px;
    }


    .medical-cross-small {
        width: 58px;
        height: 58px;

        top: 24px;
    }


    .instructor-label {
        font-size: 1.2rem;
    }


    .instructor-card h2 {
        font-size: 1.7rem;
    }


    .instructor-contact-item {
        gap: 10px;
    }


    .instructor-contact-icon {
        flex-basis: 40px;

        width: 40px;
        height: 40px;
    }


    .instructor-contact-text {
        font-size: 1rem;
    }


    .phone-icon svg {
        width: 21px;
        height: 21px;

        transform: rotate(-5deg);
    }


    .email-icon > span {
        transform: scale(0.78);
    }


    .contact-section {
        padding-left: 12px;
        padding-right: 12px;
    }


    .form-wrapper {
        padding:
            22px
            12px;
    }


    .direct-contact-item {
        padding-left: 13px;
    }


    .closing-banner strong {
        white-space: normal;
    }

}


/* =========================================================
   VERY SMALL MOBILE
   ========================================================= */

@media (max-width: 350px) {

    .floating-logo {
        max-width: 145px;
    }


    .floating-book-button {
        padding:
            0
            9px;

        font-size: 0.63rem;
    }


    .hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }


    .hero-intro {
        font-size: 1.7rem;
    }


    .hero-primary-title {
        font-size: 5.3rem;
    }


    .hero-image {
        height: 225px;
    }


    .medical-cross-large {
        width: 64px;
        height: 64px;

        bottom: 80px;
    }


    .instructor-card h2 {
        font-size: 1.55rem;
    }


    .instructor-contact-text {
        font-size: 0.92rem;
    }


    .phone-icon svg {
        width: 20px;
        height: 20px;
    }


    .contact-section {
        padding-left: 8px;
        padding-right: 8px;
    }


    .form-wrapper {
        padding-left: 8px;
        padding-right: 8px;
    }

}


/* =========================================================
   LARGE / ULTRAWIDE
   ========================================================= */

@media (min-width: 1800px) {

    :root {
        --canvas-max-width: 1240px;
        --canvas-gutter: 170px;
    }


    .masthead {
        height: 400px;
    }


    .masthead-inner {
        padding: 8px 24px;
    }


    .masthead-logo {
        width:
            min(
                98%,
                1140px
            );

        max-height: 96%;
    }


    .hero-image {
        background-position:
            center center,
            center center,
            60% center;
    }


    .instructor-card {
        width:
            min(
                100%,
                940px
            );
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {
        transition-duration:
            0.01ms !important;

        animation-duration:
            0.01ms !important;
    }

}