/* =========================================================
   GLOBAL RESET
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #151b24;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   HEADER
========================================================= */

.site-header {
    height: 70px;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 4.5%;
    border-bottom: 1px solid #eee;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #222;
    min-width: 270px;
}

.brand-tooth {
    font-size: 38px;
    color: #f5c62d;
}

.brand strong {
    display: block;
    letter-spacing: 2px;
    font-size: 17px;
}

.brand small {
    display: block;
    font-size: 8px;
    color: #777;
    letter-spacing: 0.5px;
}


/* =========================================================
   NAVIGATION
========================================================= */

.nav {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex: 1;
}

.nav a {
    font-size: 12px;
    text-decoration: none;
    color: #20242a;
    padding: 25px 0 21px;
    white-space: nowrap;
}

.nav .active {
    font-weight: 700;
    border-bottom: 3px solid #f5c62d;
}


/* =========================================================
   BUTTON
========================================================= */

.btn {
    display: inline-block;
    background: #f7c934;
    color: #111;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}


/* =========================================================
   MOBILE MENU BUTTON
========================================================= */

.menu-toggle {
    display: none;
}


/* =========================================================
   HERO SECTION
========================================================= */

.hero {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    min-height: 440px;
    background: #faf9f6;
}

.hero-copy {
    padding: 68px 8% 55px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
}

.yellow-line {
    width: 38px;
    height: 4px;
    background: #f5c62d;
    margin: 12px 0 22px;
}

.hero h1 {
    font-size: 50px;
    line-height: 1.02;
    letter-spacing: -1.8px;
    margin: 0 0 18px;
}

.hero h2 {
    font-size: 24px;
    font-weight: 400;
    margin: 0 0 16px;
}

.hero p:not(.eyebrow) {
    font-size: 17px;
    line-height: 1.5;
    max-width: 590px;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-image {
    min-height: 440px;
    background: url("clinic_photos_shortlist/sterilisation_page_header.png") center / cover;
    position: relative;
}

.hero-image span {
    position: absolute;
    right: 7%;
    top: 18%;
    font: italic 24px / 1.15 cursive;
    text-align: center;
}


/* =========================================================
   GENERAL SECTION
========================================================= */

.section {
    max-width: 1200px;
    margin: auto;
    padding: 45px 4.5%;
}


/* =========================================================
   INTRO SECTION
========================================================= */

.intro {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr 0.95fr;
    gap: 25px;
    align-items: center;
}

.intro > img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 15px;
}


/* =========================================================
   SECTION TYPOGRAPHY
========================================================= */

.section h2 {
    font-size: 28px;
    line-height: 1.08;
    margin: 0;
}

.section p {
    font-size: 14px;
    line-height: 1.55;
    color: #444;
}


/* =========================================================
   INTRO / AUTOCLAVE ASIDE
========================================================= */

.intro aside,
.autoclave aside {
    background: #fff4c9;
    border-radius: 15px;
    padding: 23px;
    min-height: 180px;
}

.intro h3,
.autoclave h3 {
    font-size: 18px;
    margin: 0 0 12px;
}


/* =========================================================
   AUTOCLAVE SECTION
========================================================= */

.autoclave {
    display: grid;
    grid-template-columns: 0.85fr 1.1fr 0.8fr;
    gap: 25px;
    align-items: center;
}

.autoclave figure {
    margin: 0;
}

.autoclave figure img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    border-radius: 15px;
}

.autoclave figcaption {
    text-align: center;
    background: #fff;
    padding: 7px;
    border-radius: 0 0 12px 12px;
    margin-top: -30px;
    position: relative;
}


/* =========================================================
   WORKFLOW SECTION
========================================================= */

.workflow {
    max-width: none;
    background: #faf9f6;
}

.workflow > h2,
.workflow > .yellow-line {
    margin-left: 4.5%;
}


/* =========================================================
   STEPS / WORKFLOW IMAGES
========================================================= */

.steps {
    display: grid;
    grid-template-columns:
        1fr 28px
        1fr 28px
        1fr 28px
        1fr 28px
        1fr;

    gap: 7px;
    align-items: start;
}

.steps img {
    width: 100%;
    height: 105px;
    object-fit: contain;
    border-radius: 11px;
}

.steps b {
    display: inline-flex;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #f7c934;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
}

.steps h3 {
    font-size: 14px;
    margin: 5px 0 2px;
}

.steps p {
    font-size: 11px;
    margin: 0;
}

.steps i {
    font-size: 28px;
    color: #eeb800;
    margin-top: 45px;
    text-align: center;
}


/* =========================================================
   BEYOND SECTION
========================================================= */

.beyond {
    display: grid;
    grid-template-columns: 1.15fr 0.9fr;
    gap: 35px;
}


/* =========================================================
   CARDS
========================================================= */

.cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
}

.cards div {
    border: 1px solid #e7e4dd;
    border-radius: 12px;
    padding: 15px 7px;
    text-align: center;
    min-height: 135px;
    font-size: 28px;
}

.cards b {
    display: block;
    font-size: 11px;
    margin-top: 8px;
}

.cards small {
    display: block;
    font-size: 10px;
    color: #666;
    margin-top: 8px;
}


/* =========================================================
   MEANING SECTION
========================================================= */

.meaning {
    border-left: 1px solid #ddd;
    padding-left: 25px;
    position: relative;
}

.meaning ul {
    list-style: none;
    padding: 0;
}

.meaning li {
    font-size: 14px;
    margin: 12px 0;
    padding-left: 29px;
}

.meaning li:before {
    content: '✓';
    position: absolute;
    margin-left: -29px;
    background: #f7c934;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    text-align: center;
    line-height: 22px;
    font-weight: 800;
}

.meaning > span {
    display: block;
    text-align: right;
    font: italic 21px / 1.1 cursive;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    background: #303238;
    color: #fff;
    padding: 52px 8%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}


/* =========================================================
   FOOTER HEADING
========================================================= */

footer h2 {
    margin: 0;
    font-size: 28px;
}

footer p {
    color: #ddd;
    margin: 10px 0 0;
}


/* =========================================================
   TABLET / SMALL DESKTOP
========================================================= */

@media (max-width: 950px) {

    /* Hide desktop navigation */
    .nav {
        display: none;
    }

    /* Header */
    .site-header {
        justify-content: space-between;
    }

    /* Mobile menu button */
    .menu-toggle {
        display: block;
        background: none;
        border: 0;
        font-size: 24px;
    }

    /* Hide desktop appointment button */
    .desktop-btn {
        display: none;
    }

    /* Hero */
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 320px;
    }

    /* Main sections */
    .intro,
    .autoclave,
    .beyond {
        grid-template-columns: 1fr;
    }

    /* Cards */
    .cards {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Meaning */
    .meaning {
        border-left: 0;
        border-top: 1px solid #ddd;
        padding: 30px 0 0;
    }

    /* Workflow */
    .steps {
        grid-template-columns:
            1fr 28px
            1fr;
    }

    .steps > div:nth-of-type(n + 4),
    .steps > i:nth-of-type(n + 4) {
        display: none;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    /* Hero heading */
    .hero h1 {
        font-size: 40px;
    }

    /* Cards */
    .cards {
        grid-template-columns: 1fr 1fr;
    }

    /* Workflow */
    .steps {
        grid-template-columns: 1fr;
    }

    .steps i {
        transform: rotate(90deg);
        margin: 5px auto;
        height: 20px;
    }

    .steps > div:nth-of-type(n + 4),
    .steps > i:nth-of-type(n + 4) {
        display: block;
    }

    /* Brand */
    .brand {
        min-width: 0;
    }

    .brand strong {
        font-size: 14px;
    }

    /* Footer */
    footer {
        display: block;
    }

    footer .btn {
        margin-top: 22px;
    }
}