/* =========================================================
   GLOBAL
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: #151b24;
    background-color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    height: 70px;
    display: flex;
    align-items: center;
    gap: 25px;
    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;
    letter-spacing: 0.5px;
    color: #777;
    margin-top: 2px;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 23px;
    flex: 1;
}

.nav a {
    font-size: 12px;
    text-decoration: none;
    color: #20242a;
    padding: 25px 0 21px;
    white-space: nowrap;
}

.nav a.active {
    font-weight: 700;
    border-bottom: 3px solid #f5c62d;
}

.btn {
    display: inline-block;
    background: #f7c934;
    color: #101010;
    text-decoration: none;
    padding: 13px 20px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 24px;
    cursor: pointer;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    min-height: 440px;
    background: #faf9f6;
}

.hero-copy {
    padding: 70px 8% 55px;
}

.eyebrow {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.8px;
    margin: 0;
}

.yellow-line {
    width: 38px;
    height: 4px;
    background: #f5c62d;
    margin: 12px 0 22px;
}

.hero h1 {
    font-size: 54px;
    line-height: 1.02;
    letter-spacing: -2px;
    margin: 0 0 20px;
}

.hero h2 {
    font-size: 24px;
    line-height: 1.15;
    font-weight: 400;
    margin: 0 0 18px;
}

.hero p:not(.eyebrow) {
    font-size: 17px;
    line-height: 1.5;
    max-width: 580px;
    color: #333;
}


/* =========================================================
   HERO IMAGE
   ========================================================= */

/*
   SINGLE BACKGROUND IMAGE

   Current image:
   assets/hero.jpg

   If your CSS file is inside a "css" folder and
   the assets folder is outside it, use:

   ../assets/hero.jpg
*/

.hero-image {
    min-height: 440px;

    background-image: url("clinic_photos_shortlist/rubber-dam_header.png");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    position: relative;
}


/* =========================================================
   HANDWRITTEN NOTE
   ========================================================= */

.hand-note {
    position: absolute;
    right: 7%;
    top: 16%;

    font-size: 25px;
    line-height: 1.2;

    font-style: italic;
    font-family: cursive;

    text-align: center;
}


/* =========================================================
   GENERAL SECTION
   ========================================================= */

.section {
    max-width: 1200px;
    margin: auto;
    padding: 48px 4.5%;
}


/* =========================================================
   INTRO SECTION
   ========================================================= */

.intro {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr 0.95fr 1.05fr;
    gap: 25px;
    align-items: center;
}


/* =========================================================
   PHOTO
   ========================================================= */

.photo {
    height: 215px;
}

.photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 15px;
    display: block;
}


/* =========================================================
   GENERAL HEADINGS
   ========================================================= */

.copy h2,
.why h2,
.how h2,
.useful h2,
.meaning h2 {
    font-size: 28px;
    line-height: 1.08;
    margin: 0;
}


/* =========================================================
   GENERAL PARAGRAPHS
   ========================================================= */

.copy p,
.why p,
.how p,
.useful p {
    font-size: 15px;
    line-height: 1.55;
    color: #42474e;
}


/* =========================================================
   ANALOGY
   ========================================================= */

.analogy {
    background: #fff4c9;
    border-radius: 15px;
    padding: 23px;
    min-height: 215px;
}

.analogy .icon {
    font-size: 38px;
    float: left;
    margin-right: 12px;
}

.analogy h3 {
    font-size: 18px;
    margin: 0 0 12px;
}

.analogy p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}


/* =========================================================
   WHY SECTION
   ========================================================= */

.why {
    display: grid;
    grid-template-columns: 0.8fr 1.4fr;
    gap: 30px;
    align-items: center;
    background: #fff;
}

.why-copy {
    max-width: 380px;
}

.benefits {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.benefits div {
    border: 1px solid #e7e4dd;
    border-radius: 12px;
    padding: 17px 8px;
    text-align: center;
    background: #fff;
    min-height: 125px;
}

.benefits span {
    font-size: 30px;
}

.benefits p {
    font-size: 11px !important;
    line-height: 1.25 !important;
    margin: 9px 0 0;
}


/* =========================================================
   HOW IT WORKS
   ========================================================= */

.how {
    display: grid;
    grid-template-columns: 0.75fr 1.7fr;
    gap: 35px;
    align-items: center;
    background: #faf9f6;
    max-width: none;
}

.how-copy {
    max-width: 350px;
    margin-left: auto;
}


/* =========================================================
   STEPS
   ========================================================= */

.steps {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 24px;
    width: 100%;
}

.step {
    width: 100%;
    text-align: center;
}

.step img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: 12px;
}

.step b {
    display: block;
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.4;
    color: #12213F;
}

.arrow {
    font-size: 38px;
    font-weight: 300;
    color: #C9A227;
    flex-shrink: 0;
}

/* =========================================================
   LOWER SECTION
   ========================================================= */

.lower {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 35px;
    padding-top: 45px;
}


/* =========================================================
   USEFUL SECTION
   ========================================================= */

.useful {
    background: #fff4c9;
    border-radius: 18px;
    padding: 25px;
}

.useful p {
    margin-top: 0;
}


/* =========================================================
   USEFUL GRID
   ========================================================= */

.use-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.use-grid div {
    background: #fff;
    border-radius: 12px;
    text-align: center;
    padding: 18px 8px;
    min-height: 130px;
}

.use-grid span {
    display: block;
    font-size: 30px;
    margin-bottom: 12px;
}

.use-grid b {
    font-size: 11px;
    line-height: 1.25;
}


/* =========================================================
   MEANING SECTION
   ========================================================= */

.meaning {
    position: relative;
    padding: 10px 0;
}

.meaning ul {
    list-style: none;
    padding: 0;
    margin: 5px 0;
}

.meaning li {
    font-size: 15px;
    margin: 14px 0;
    padding-left: 30px;
    position: relative;
}

.meaning li:before {
    content: "✓";

    position: absolute;
    left: 0;
    top: -3px;

    width: 23px;
    height: 23px;

    border-radius: 50%;

    background: #f7c934;

    text-align: center;
    line-height: 23px;

    font-weight: 800;
}

.bottom-note {
    position: absolute;
    right: 0;
    bottom: 5px;

    transform: rotate(-2deg);

    font-size: 20px;
}





/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

    .nav {
        display: none;
    }

    .site-header {
        justify-content: space-between;
    }

    .menu-toggle {
        display: block;
    }

    .desktop-btn {
        display: none;
    }


    /* HERO */

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        padding: 55px 7%;
    }

    .hero-image {
        min-height: 320px;
    }


    /* INTRO / WHY / HOW / LOWER */

    .intro,
    .why,
    .how,
    .lower {
        grid-template-columns: 1fr;
    }

    .intro {
        gap: 30px;
    }

    .why-copy,
    .how-copy {
        max-width: none;
        margin: 0;
    }


    /* BENEFITS */

    .benefits {
        grid-template-columns: repeat(3, 1fr);
    }


    /* HOW */

    .how {
        padding-left: 7%;
        padding-right: 7%;
    }

    .steps {
        margin: 0;
    }


    /* LOWER */

    .lower {
        padding-left: 7%;
        padding-right: 7%;
    }


    /* FOOTER */

    footer {
        display: block;
    }

    footer .btn {
        margin-top: 25px;
    }

    .footer-note {
        margin-top: 25px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    /* HERO */

    .hero h1 {
        font-size: 42px;
    }


    /* BENEFITS */

    .benefits {
        grid-template-columns: 1fr 1fr;
    }


    /* STEPS */

    .steps {
        grid-template-columns: 1fr;
    }

    .arrow {
        transform: rotate(90deg);
        height: 25px;
    }


    /* USEFUL GRID */

    .use-grid {
        grid-template-columns: 1fr 1fr;
    }


    /* BOTTOM NOTE */

    .bottom-note {
        position: static;
        margin-top: 30px;
    }


    /* BRAND */

    .brand {
        min-width: 0;
    }

    .brand strong {
        font-size: 14px;
    }
}

.why {
    background-color: #fff;
}

.topic-summary {
    align-self: stretch;
    padding: 17px 15px;
    border-left: 3px solid #d2b257;
    border-radius: 0 10px 10px 0;
    background: #f4f6f2;
}

.topic-summary-title {
    margin: 0;
    color: #92772f;
    font-size: 11px;
    line-height: 1.3;
}

.intro {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 7px;
    padding: 10px 0;
    border-top: 1px solid #dfe4dc;
}

.topic-summary-item:first-child {
    padding-top: 0;
    border-top: 0;
}

.topic-summary-number {
    color: #a48638;
    font-size: 10px;
    font-weight: 700;
}

.topic-summary-item h2 {
    margin: 7px 0 5px;
    color: #182c32;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 19px;
    line-height: 1.05;
}

.topic-summary-item p {
    margin: 0;
    color: #555b57;
    font-size: 11px;
    line-height: 1.3;
}

.why {
    background-color: #fff;
}

.intro {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 900px) and (min-width: 521px) {
    .intro {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px;
    }

    .topic-summary {
        grid-column: 2;
        grid-row: 2;
    }

    .analogy {
        grid-column: 1;
        grid-row: 2;
    }
}

@media (max-width: 520px) {
    .intro {
        grid-template-columns: 1fr;
    }

    .topic-summary {
        padding: 13px;
    }

    .topic-summary-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 12px;
    }

    .topic-summary-item:nth-child(2) {
        padding-top: 0;
        border-top: 0;
    }

    .topic-summary-item:nth-child(even) {
        padding-left: 9px;
        border-left: 1px solid #dfe4dc;
    }

    .topic-summary-item h2 {
        font-size: 14px;
    }

    .topic-summary-item p {
        font-size: 10px;
    }
}