:root {
    --blue: #006fb9;
    --blue-dark: #005f9e;
    --body: #666;
    --heading: #006fb9;
    --light: #f5f5f5;
    --line: #d8dde2;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    color: var(--body);
    font-family: Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    margin: 0;
}

img {
    height: auto;
    max-width: 100%;
}

.visually-hidden {
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    height: 1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

a {
    color: var(--blue);
}

.site-width {
    margin: 0 auto;
    max-width: 1217px;
    padding-left: 28px;
    padding-right: 28px;
    width: 100%;
}

.skip-link {
    background: #fff;
    color: #111;
    left: 12px;
    padding: 10px 14px;
    position: fixed;
    top: -100px;
    z-index: 100000;
}

.skip-link:focus {
    top: 12px;
}

.topbar {
    background: #0072ce;
    color: #fff;
    font-family: Tahoma, Geneva, sans-serif;
    font-size: 15px;
    line-height: 44px;
    min-height: 45px;
}

.site-header .site-width {
    max-width: none;
}

.topbar .site-width {
    display: flex;
    padding-left: 4%;
    padding-right: 4%;
}

.topbar a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.topbar span {
    padding: 0 6px;
}

.masthead {
    align-items: center;
    display: flex;
    min-height: 150px;
    padding: 27px 4%;
    position: relative;
}

.brand {
    display: block;
    width: 360px;
}

.brand img {
    display: block;
    width: 360px;
}

.main-navigation {
    margin-left: auto;
}

.main-navigation ul {
    align-items: center;
    display: flex;
    gap: clamp(20px, 1.75vw, 25px);
    height: 94px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    align-items: center;
    color: #424242;
    display: flex;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    height: 94px;
    line-height: 1.2;
    text-decoration: none;
    text-transform: uppercase;
}

.main-navigation a:hover,
.main-navigation a[aria-current="page"] {
    color: var(--blue);
}

.main-navigation a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 8px;
}

.main-navigation .nav-contact {
    background: #666;
    color: #fff;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    height: 43px;
    justify-content: center;
    min-width: 158px;
    padding: 13px 29px;
    text-align: center;
}

.main-navigation .nav-contact:hover,
.main-navigation .nav-contact[aria-current="page"] {
    background: #555;
    color: #fff;
}

.menu-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #333;
    cursor: pointer;
    display: none;
    gap: 8px;
    padding: 10px;
}

.menu-toggle svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
}

main {
    border-top: 20px solid #fafafa;
}

@media (min-width: 1281px) {
    html {
        scroll-padding-top: 196px;
    }

    .site-header {
        background: #fff;
        position: sticky;
        top: 0;
        z-index: 10000;
    }

    .site-header.is-stuck {
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.117647);
    }
}

h1,
h2,
h3 {
    color: var(--heading);
    font-weight: 400;
    line-height: 1.25;
}

.button {
    background: #666;
    border: 0;
    color: #fff;
    display: inline-block;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    padding: 14px 24px;
    text-decoration: none;
    text-transform: uppercase;
}

.button:hover {
    background: #555;
    color: #fff;
}

.home-hero {
    align-items: center;
    background: url("../media/istockphoto-1064908376-2048x2048-3-scaled.jpg") center 43% / cover no-repeat;
    color: #fff;
    display: flex;
    min-height: 635px;
    position: relative;
}

.home-hero::before {
    background: rgb(0 0 0 / 50%);
    content: "";
    inset: 0;
    position: absolute;
}

.home-hero .site-width {
    position: relative;
}

.home-hero h1 {
    color: #fff;
    font-size: clamp(46px, 5.8vw, 83px);
    line-height: 1.16;
    margin: 0 auto;
    max-width: 980px;
    text-align: center;
}

.home-intro {
    padding: 190px 0 105px;
}

.intro-grid {
    display: grid;
    gap: 24px 70px;
    grid-template-columns: 0.8fr 1.2fr;
    max-width: 940px;
}

.intro-heading h2 {
    font-size: 48px;
    line-height: 1.45;
    margin: 5px 0 0;
}

.intro-grid > img {
    justify-self: center;
    width: 500px;
}

.intro-copy {
    grid-column: 1 / -1;
    max-width: 760px;
}

.intro-copy p {
    margin: 0 0 24px;
}

.service-panels {
    background: var(--light);
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding-left: 0;
    padding-right: 0;
}

.service-grid article {
    min-height: 720px;
    padding: 110px 90px 80px;
    text-align: center;
}

.service-grid article:first-child {
    background: #f7f7f7;
}

.service-grid article:last-child {
    background: #eee;
}

.service-grid h2 {
    font-size: 37px;
    margin: 0 0 28px;
}

.service-grid p {
    margin: 0 auto 32px;
    max-width: 410px;
}

.service-grid img {
    display: block;
    margin: 0 auto 20px;
    max-height: 290px;
    object-fit: cover;
    width: 420px;
}

.home-cta {
    background: url("../media/bg2-1-scaled.jpg") center / cover no-repeat;
    color: #fff;
    padding: 145px 0 120px;
}

.home-cta-grid {
    align-items: center;
    display: grid;
    gap: 80px;
    grid-template-columns: 1fr 1fr;
    max-width: 960px;
}

.home-cta h2 {
    color: #fff;
    font-size: 46px;
    line-height: 1.45;
    margin: 0 0 18px;
}

.home-cta p {
    font-size: 18px;
    margin: 0;
}

.cta-button-wrap {
    display: flex;
    flex-direction: column;
}

.cta-button-wrap::before,
.cta-button-wrap::after {
    border-top: 5px solid var(--blue);
    content: "";
    width: 225px;
}

.cta-button {
    font-size: 16px;
    margin: 9px 0;
    max-width: 470px;
    padding: 18px 28px;
}

.map-section {
    padding: 145px 0 185px;
    text-align: center;
}

.map-section h2 {
    color: #797979;
    font-size: 76px;
    margin: 0 0 90px;
}

.map-frame {
    border: 8px solid var(--blue);
    border-radius: 8px;
    margin: 0 auto;
    max-width: 960px;
    overflow: hidden;
}

.map-frame iframe {
    display: block;
}

.site-footer {
    background: var(--blue);
    border-top: 20px solid #f3f3f3;
    color: #fff;
    font-size: 13px;
    padding: 70px 0 60px;
}

.footer-grid {
    align-items: center;
    display: grid;
    gap: 60px;
    grid-template-columns: 1fr 1fr 1fr;
    text-align: center;
}

.site-footer a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-footer p {
    margin: 0 0 28px;
}

.footer-center img {
    margin-bottom: 28px;
    width: 330px;
}

.footer-navigation {
    border-top: 1px solid rgb(255 255 255 / 50%);
    margin-top: 28px;
    padding-top: 28px;
}

.footer-navigation ul {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    justify-content: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-navigation a[aria-current="page"] {
    font-weight: 700;
    text-decoration-thickness: 3px;
}

.page-section {
    background: #f7f7f7;
    padding: 110px 0 130px;
}

.section-title {
    font-size: 52px;
    margin: 0 0 90px;
    text-align: center;
}

.section-title::after,
.underlined-title::after {
    border-top: 2px solid var(--blue);
    content: "";
    display: block;
    margin-top: 28px;
    width: 96px;
}

.section-title::after {
    margin-left: auto;
    margin-right: auto;
}

.doctor-grid {
    display: grid;
    gap: 100px 85px;
    grid-template-columns: 1fr 1fr;
    max-width: 1030px;
}

.doctor-card {
    align-self: start;
    margin: 0 auto;
    max-width: 470px;
}

.doctor-card > img {
    display: block;
    margin: 0 auto;
    max-height: 420px;
    object-fit: cover;
    width: 380px;
}

.doctor-card > div {
    background: #fff;
    margin-top: 0;
    padding: 42px 40px 36px;
}

.doctor-card h2 {
    font-size: 20px;
    margin: 0 0 28px;
}

.doctor-card h2 span {
    font-size: 18px;
}

.doctor-card p {
    font-size: 14px;
    margin: 0 0 20px;
}

.inner-cta {
    background: url("../media/right-pic.jpg") center / cover no-repeat;
    color: #fff;
    padding: 170px 0;
    position: relative;
    text-align: center;
}

.inner-cta::before {
    background: rgb(0 0 0 / 58%);
    content: "";
    inset: 0;
    position: absolute;
}

.inner-cta .site-width {
    position: relative;
}

.inner-cta-blue {
    background-image: url("../media/bg3.jpg");
}

.inner-cta h2 {
    color: #fff;
    font-size: 52px;
    margin: 0 0 28px;
}

.inner-cta p {
    font-size: 18px;
    margin: 0 0 30px;
}

.button-outline {
    background: transparent;
    border: 1px solid #fff;
    padding: 16px 34px;
}

.treatment-lead,
.orthodontics-lead {
    align-items: flex-start;
    display: grid;
    gap: 90px;
    grid-template-columns: 1.1fr 0.9fr;
}

.treatment-lead > img {
    justify-self: end;
    max-height: 570px;
    object-fit: contain;
}

.orthodontics-lead > img {
    justify-self: end;
    max-height: 370px;
    object-fit: contain;
}

.underlined-title {
    font-size: 41px;
    margin: 0 0 42px;
}

.treatment-section p {
    margin: 0 0 22px;
}

.blue-list {
    color: var(--blue);
    font-weight: 700;
    list-style: none;
    margin: 25px 0 0;
    padding: 0;
}

.blue-list li {
    margin: 10px 0;
}

.treatment-copy {
    margin-top: 65px;
}

.treatment-copy h2 {
    font-size: 27px;
    margin: 35px 0 20px;
}

.cherry-page {
    min-height: 400px;
}

.contact-grid {
    align-items: start;
    display: grid;
    gap: 120px;
    grid-template-columns: 0.8fr 1.2fr;
    max-width: 1050px;
}

.contact-grid > img {
    margin-top: 70px;
    width: 630px;
}

.contact-lead {
    font-size: 23px;
    line-height: 1.55;
}

.contact-cta {
    margin-top: 18px;
}

.appointment-section {
    background: #f6f6f6;
    padding: 80px 0;
}

.appointment-header {
    margin: 0 auto 32px;
    max-width: 760px;
    text-align: center;
}

.appointment-header h2 {
    font-size: 43px;
    font-weight: 700;
    margin: 0 0 14px;
}

.appointment-header p {
    font-size: 18px;
    margin: 0;
}

.appointment-form {
    background: #fff;
    border-radius: 8px;
    border-top: 6px solid var(--blue);
    box-shadow: 0 14px 38px rgb(24 39 55 / 12%);
    margin: 0 auto;
    max-width: 1100px;
    padding: 40px;
}

.appointment-grid {
    display: grid;
    gap: 24px 28px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.appointment-field {
    border: 0;
    margin: 0;
    min-width: 0;
    padding: 0;
}

.appointment-field-full {
    grid-column: 1 / -1;
}

.appointment-field > label,
.appointment-field > legend {
    color: #303840;
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 8px;
    padding: 0;
}

.appointment-field input[type="text"],
.appointment-field input[type="email"],
.appointment-field input[type="tel"],
.appointment-field select,
.appointment-field textarea {
    appearance: none;
    background: #fff;
    border: 1px solid #686f76;
    border-radius: 5px;
    color: #252b31;
    font: inherit;
    line-height: 1.4;
    margin: 0;
    min-height: 48px;
    padding: 11px 12px;
    width: 100%;
}

.appointment-field select {
    background-image:
        linear-gradient(45deg, transparent 50%, #4d545b 50%),
        linear-gradient(135deg, #4d545b 50%, transparent 50%);
    background-position:
        calc(100% - 18px) 21px,
        calc(100% - 13px) 21px;
    background-repeat: no-repeat;
    background-size: 5px 5px;
    padding-right: 38px;
}

.appointment-field textarea {
    min-height: 130px;
    resize: vertical;
}

.appointment-field input:focus-visible,
.appointment-field select:focus-visible,
.appointment-field textarea:focus-visible,
.appointment-submit:focus-visible {
    outline: 3px solid #111;
    outline-offset: 2px;
}

.appointment-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 26px;
    min-height: 48px;
    padding: 11px 0 0;
}

.appointment-choices label,
.appointment-acknowledgement {
    align-items: flex-start;
    color: #303840;
    cursor: pointer;
    display: inline-flex;
    font-weight: 400;
    gap: 9px;
    line-height: 1.5;
    margin: 0;
}

.appointment-field input[type="radio"],
.appointment-field input[type="checkbox"] {
    accent-color: var(--blue);
    flex: 0 0 auto;
    height: 18px;
    margin: 2px 0 0;
    width: 18px;
}

.appointment-hint,
.appointment-consent {
    color: #686f76;
    font-size: 14px;
    line-height: 1.45;
    margin: 7px 0 0;
}

.appointment-turnstile {
    min-height: 65px;
}

.appointment-submit {
    background: var(--blue);
    border: 0;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 17px;
    font-weight: 700;
    min-height: 50px;
    padding: 14px 24px;
}

.appointment-submit:hover {
    background: var(--blue-dark);
}

.appointment-submit:disabled {
    cursor: wait;
    opacity: 0.55;
}

.appointment-status {
    font-weight: 700;
    margin: 22px 0 0;
    min-height: 1.5em;
}

.appointment-status:empty {
    margin-top: 0;
    min-height: 0;
}

.appointment-status-success {
    color: #166534;
}

.appointment-status-error {
    color: #b42318;
}

.privacy-content {
    background: #fff;
}

.privacy-content .site-width {
    max-width: 1150px;
}

.privacy-content h1,
.privacy-content h2 {
    font-size: 42px;
    margin: 0 0 24px;
}

.privacy-content h2 {
    margin-top: 42px;
}

.not-found {
    background: #fff;
    min-height: 500px;
    text-align: center;
}

.not-found h1 {
    font-size: 52px;
}

@media (max-width: 1280px) {
    .topbar {
        line-height: 22.5px;
        min-height: 42.5px;
    }

    .topbar .site-width {
        justify-content: center;
        padding: 9px 30px;
    }

    .site-header .masthead {
        align-items: center;
        min-height: 107px;
        padding: 20px 30px;
    }

    .brand,
    .brand img {
        width: 250px;
    }

    .menu-toggle {
        display: inline-flex;
        margin-left: auto;
        padding: 10px 0 10px 20px;
    }

    .main-navigation {
        background: #fff;
        box-shadow: 0 8px 18px rgb(0 0 0 / 12%);
        display: none;
        left: 0;
        margin: 0;
        padding: 12px 30px 22px;
        position: absolute;
        right: 0;
        top: 100%;
        z-index: 1000;
    }

    .main-navigation.is-open {
        display: block;
    }

    .main-navigation ul {
        display: block;
        height: auto;
    }

    .main-navigation a {
        display: block;
        font-size: 13px;
        height: auto;
        line-height: 1.2;
        padding: 13px 4px;
    }

    .main-navigation .nav-contact {
        height: auto;
        margin-top: 8px;
    }
}

@media (max-width: 1050px) {
    .service-grid article {
        padding-left: 50px;
        padding-right: 50px;
    }
}

@media (max-width: 820px) {
    .site-width {
        padding-left: 22px;
        padding-right: 22px;
    }

    .home-hero {
        min-height: 455px;
    }

    .home-hero h1 {
        font-size: 48px;
    }

    .home-intro {
        padding: 90px 0 70px;
    }

    .intro-grid,
    .service-grid,
    .home-cta-grid,
    .doctor-grid,
    .treatment-lead,
    .orthodontics-lead,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .intro-grid {
        max-width: 650px;
    }

    .intro-heading {
        order: 2;
    }

    .intro-grid > img {
        grid-row: auto;
        order: 1;
        width: 100%;
    }

    .intro-copy {
        order: 3;
    }

    .intro-heading h2 {
        font-size: 41px;
        line-height: 1.25;
    }

    .service-grid article {
        min-height: 0;
        padding: 70px 32px;
    }

    .service-grid h2 {
        font-size: 32px;
    }

    .home-cta {
        padding: 90px 0;
    }

    .home-cta-grid {
        gap: 45px;
    }

    .home-cta h2 {
        font-size: 39px;
    }

    .map-section {
        padding: 90px 0 110px;
    }

    .map-section h2 {
        font-size: 58px;
        margin-bottom: 55px;
    }

    .map-frame iframe {
        height: 390px;
    }

    .site-footer {
        padding: 55px 0 35px;
    }

    .footer-grid {
        gap: 12px;
    }

    .doctor-grid {
        gap: 70px;
    }

    .page-section {
        padding: 80px 0 90px;
    }

    .inner-cta {
        padding: 105px 0;
    }

    .inner-cta h2 {
        font-size: 42px;
    }

    .contact-grid {
        gap: 35px;
    }

    .contact-grid > img {
        margin-top: 0;
    }

    .appointment-grid {
        grid-template-columns: 1fr;
    }

    .appointment-field-full {
        grid-column: auto;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 15px;
    }

    .home-hero {
        min-height: 390px;
    }

    .home-hero h1 {
        font-size: 42px;
    }

    .intro-heading h2,
    .home-cta h2,
    .underlined-title {
        font-size: 34px;
    }

    .section-title {
        font-size: 40px;
    }

    .doctor-card > div {
        padding: 30px 24px;
    }

    .inner-cta h2 {
        font-size: 35px;
    }

    .map-section h2 {
        font-size: 48px;
    }

    .map-frame {
        border-width: 5px;
    }

    .map-frame iframe {
        height: 320px;
    }

    .privacy-content h1,
    .privacy-content h2 {
        font-size: 34px;
    }

    .appointment-section {
        padding: 55px 0;
    }

    .appointment-header h2 {
        font-size: 34px;
    }

    .appointment-form {
        padding: 28px 20px;
    }

    .appointment-submit {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .cherry-page [role="button"][aria-expanded] {
        height: auto !important;
        min-height: 88px !important;
        overflow: visible !important;
    }

    .cherry-page [role="button"][aria-expanded] > div {
        flex-wrap: wrap !important;
        height: auto !important;
    }
}

@media (max-width: 360px) {
    .topbar {
        font-size: 12px;
    }

    .topbar .site-width,
    .site-header .masthead {
        padding-left: 20px;
        padding-right: 20px;
    }

    .brand,
    .brand img {
        width: 205px;
    }

    .main-navigation {
        padding-left: 20px;
        padding-right: 20px;
    }
}
