/* =========================================
   APEXCARE MEDICAL CENTRE
   ========================================= */

:root {
    --red: #b43135;
    --red-dark: #96292d;

    --navy: #294d7c;
    --navy-dark: #203d63;

    --text: #303942;
    --muted: #68727c;

    --white: #ffffff;
    --header-white: #fdfdfc;
    --light: #f6f8fa;

    --border: #e1e5e8;

    --max-width: 1180px;
}


/* =========================================
   RESET / GENERAL
   ========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    font-family:
        "Manrope",
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--white);

    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container {
    width: min(
        var(--max-width),
        calc(100% - 48px)
    );

    margin: 0 auto;
}


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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: var(--header-white);

    border-top: 4px solid var(--red);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    min-height: 100px;

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

    gap: 40px;

    background: var(--header-white);
}


/* Logo */

.logo {
    display: block;
}

.logo img {
    width: 310px;
    height: auto;
}


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

.site-nav {
    display: flex;
    align-items: center;

    gap: 30px;
}

.site-nav a {
    color: var(--navy-dark);

    font-size: 14px;
    font-weight: 700;

    text-decoration: none;

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

.site-nav a:hover {
    color: var(--red);
}


/* Phone */

.site-nav .nav-phone {
    padding: 11px 18px;

    color: var(--white);
    background: var(--navy);
}

.site-nav .nav-phone:hover {
    color: var(--white);
    background: var(--red);
}


/* Mobile Menu */

.menu-toggle {
    display: none;

    padding: 8px 13px;

    color: var(--navy);
    background: transparent;

    border: 1px solid var(--navy);

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}


/* =========================================
   HERO
   ========================================= */

.hero {
    position: relative;

    min-height: 570px;

    display: flex;
    align-items: center;

    background-image:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.99) 0%,
            rgba(255, 255, 255, 0.97) 32%,
            rgba(255, 255, 255, 0.90) 55%,
            rgba(255, 255, 255, 0.76) 78%,
            rgba(255, 255, 255, 0.65) 100%
        ),
        url("images/jet-stouten-_XCItnznKV8-unsplash.jpg");

    background-size: cover;
    background-position: center;

    border-bottom: 1px solid var(--border);
}


/* Hero content */

.hero-content {
    width: min(
        var(--max-width),
        calc(100% - 48px)
    );

    margin: 0 auto;

    padding-left: 45px;

    text-align: left;
}


/* Red accent line */

.hero-content::before {
    content: "";

    display: block;

    width: 45px;
    height: 4px;

    margin-bottom: 20px;

    background: var(--red);
}


/* Welcome text */

.hero-label {
    margin: 0 0 12px;

    color: var(--red);

    font-size: 13px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 2px;
}


/* Clinic name */

.hero h1 {
    max-width: 650px;

    margin: 0;

    color: var(--navy-dark);

    font-size: clamp(
        42px,
        5vw,
        64px
    );

    font-weight: 800;

    line-height: 1.06;

    letter-spacing: -2.5px;
}


/* Location */

.hero-location {
    margin: 18px 0 30px;

    color: #495562;

    font-size: 18px;
    font-weight: 500;
}


/* =========================================
   HERO CONTACT CARDS
   ========================================= */

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}

.hero-contact-card {
    min-width: 230px;

    padding: 16px 20px;

    background:
        rgba(
            255,
            255,
            255,
            0.92
        );

    border:
        1px solid
        rgba(
            41,
            77,
            124,
            0.18
        );

    text-align: left;
    text-decoration: none;

    box-shadow:
        0 8px 25px
        rgba(
            32,
            61,
            99,
            0.06
        );

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.hero-contact-card:hover {
    transform: translateY(-3px);

    border-color: var(--red);

    box-shadow:
        0 12px 28px
        rgba(
            32,
            61,
            99,
            0.11
        );
}

.hero-contact-label {
    display: block;

    margin-bottom: 4px;

    color: var(--red);

    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.5px;
}

.hero-contact-value {
    display: block;

    color: var(--navy-dark);

    font-size: 15px;
    font-weight: 700;
}


/* =========================================
   GENERAL SECTIONS
   ========================================= */

.section {
    padding: 85px 0;

    scroll-margin-top: 105px;
}

.small-heading {
    margin: 0 0 10px;

    color: var(--red);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.8px;
}


/* =========================================
   PHYSICIAN
   ========================================= */

.physician {
    background: var(--white);

    text-align: center;
}

.physician-content {
    max-width: 800px;

    margin: 0 auto;
}

.physician h2 {
    margin: 0 0 12px;

    color: var(--navy-dark);

    font-size: clamp(
        32px,
        4vw,
        46px
    );

    font-weight: 700;

    line-height: 1.15;

    letter-spacing: -1.5px;
}

.credentials {
    margin: 0;

    color: var(--muted);

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

    letter-spacing: 0.3px;
}


/* =========================================
   LOCATION / CONTACT
   ========================================= */

.contact {
    background: var(--light);

    border-top: 1px solid var(--border);
}

.contact-heading {
    margin-bottom: 35px;
}

.contact-heading h2 {
    margin: 0;

    color: var(--navy-dark);

    font-size: clamp(
        32px,
        4vw,
        44px
    );

    font-weight: 700;

    line-height: 1.15;

    letter-spacing: -1.3px;
}


/* Location layout */

.location-grid {
    display: grid;

    grid-template-columns:
        0.75fr
        1.4fr;

    gap: 50px;

    align-items: stretch;
}


/* =========================================
   LOCATION INFORMATION
   ========================================= */

.location-info {
    border-top: 1px solid #d5dadd;
}

.location-item {
    padding: 22px 0;

    border-bottom: 1px solid #d5dadd;
}

.location-item h3 {
    margin: 0 0 6px;

    color: var(--navy);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.3px;
}

.location-item p {
    margin: 0;

    color: var(--muted);

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

    line-height: 1.7;
}

.location-item a {
    color: var(--navy-dark);

    font-weight: 700;
}


/* =========================================
   MAP
   ========================================= */

.map-container {
    min-height: 420px;

    overflow: hidden;

    background: #e8ebed;

    border: 1px solid var(--border);

    box-shadow:
        0 10px 30px
        rgba(
            32,
            61,
            99,
            0.08
        );
}

.map-container iframe {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 420px;

    border: 0;
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
    color: #dfe5eb;

    background: var(--navy-dark);
}


/* Footer layout */

.footer-main {
    display: grid;

    grid-template-columns:
        1.4fr
        1fr
        0.7fr;

    gap: 70px;

    align-items: start;

    padding-top: 55px;
    padding-bottom: 55px;
}


/* Clinic name */

.footer-name h3 {
    margin: 0 0 8px;

    color: var(--white);

    font-size: 21px;
    font-weight: 700;

    letter-spacing: -0.5px;
}

.footer-name p {
    margin: 0;

    color: #bfcbd7;

    font-size: 12px;
    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 1.4px;
}

.footer-name span {
    color: #d25a5e;
}


/* Footer location */

.footer-info h4 {
    margin: 0 0 8px;

    color: var(--white);

    font-size: 12px;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.2px;
}

.footer-info p,
.footer-contact p {
    margin: 0 0 14px;

    color: #c9d2dc;

    font-size: 13px;

    line-height: 1.7;
}


/* Footer contact */

.footer-contact strong {
    color: var(--white);

    font-size: 13px;
    font-weight: 700;
}

.footer-contact a {
    color: var(--white);

    font-weight: 700;
}


/* Copyright */

.footer-bottom {
    border-top:
        1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );
}

.footer-bottom p {
    margin: 0;

    padding: 18px 0;

    color: #aebbc8;

    font-size: 12px;
}


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

@media (max-width: 850px) {

    .container {
        width: min(
            100% - 36px,
            var(--max-width)
        );
    }


    /* Header */

    .header-inner {
        min-height: 82px;

        flex-wrap: wrap;

        padding: 10px 0;
    }

    .logo img {
        width: min(
            270px,
            68vw
        );
    }


    /* Mobile menu */

    .menu-toggle {
        display: block;
    }

    .site-nav {
        display: none;

        width: 100%;

        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding-bottom: 10px;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 11px 0;

        border-top: 1px solid var(--border);
    }

    .site-nav .nav-phone {
        margin-top: 8px;

        padding: 11px 15px;

        text-align: center;

        border: none;
    }


    /* Hero */

    .hero {
        min-height: 520px;

        background-image:
            linear-gradient(
                90deg,
                rgba(255, 255, 255, 0.98) 0%,
                rgba(255, 255, 255, 0.94) 55%,
                rgba(255, 255, 255, 0.78) 100%
            ),
            url("images/jet-stouten-_XCItnznKV8-unsplash.jpg");

        background-position: center;
    }

    .hero-content {
        width: min(
            100% - 36px,
            var(--max-width)
        );

        padding-left: 0;
    }

    .hero h1 {
        max-width: 600px;
    }


    /* Location */

    .location-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    /* Map */

    .map-container,
    .map-container iframe {
        min-height: 350px;
    }


    /* Footer */

    .footer-main {
        grid-template-columns: 1fr;

        gap: 28px;

        padding-top: 45px;
        padding-bottom: 45px;
    }
}


/* =========================================
   SMALL PHONES
   ========================================= */

@media (max-width: 520px) {

    .section {
        padding: 60px 0;
    }


    /* Hero */

    .hero {
        min-height: 520px;

        background-image:
            linear-gradient(
                rgba(255, 255, 255, 0.91),
                rgba(255, 255, 255, 0.91)
            ),
            url("images/jet-stouten-_XCItnznKV8-unsplash.jpg");

        background-position: center;
    }

    .hero h1 {
        font-size: 39px;

        letter-spacing: -1.7px;
    }

    .hero-location {
        font-size: 16px;
    }


    /* Hero cards */

    .hero-buttons {
        flex-direction: column;

        max-width: 320px;
    }

    .hero-contact-card {
        width: 100%;

        min-width: 0;
    }


    /* Physician */

    .physician h2 {
        font-size: 32px;
    }


    /* Map */

    .map-container,
    .map-container iframe {
        min-height: 300px;
    }


    /* Footer */

    .footer-main {
        gap: 25px;
    }
}