/* STOMADENT VITAL — SERVICES */

.service-page {
    background: #ffffff;
}

.service-page__title {
    padding: 52px 0 42px;
    text-align: center;
}

.service-page__title h1 {
    margin: 0 0 12px;
    color: var(--color-text);
    font-size: clamp(1.9rem, 3vw, 2.0rem);
    font-weight: 600;
    line-height: 1.2;
}

.service-page__title-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.service-layout {
    padding: 0 0 96px;
}

.service-layout__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 34px;
    align-items: start;
}

.service-content {
    min-width: 0;
}

.service-content__hero {
    width: 100%;
    aspect-ratio: 16 / 8.5;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.12);
}

.service-content__heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0 12px;
}

.service-content__heading img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.service-content__heading h2 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(1.8rem, 3vw, 2.0rem);
    font-weight: 600;
}

.service-content h3 {
    margin: 28px 0 10px;
    color: var(--color-text);
    font-size: 1.25rem;
}

.service-content p,
.service-content li {
    color: var(--color-muted);
    font-size: 15px;
    line-height: 1.50;
}

.service-content p {
    margin: 0 0 18px;
}

.service-content ul,
.service-content ol {
    margin: 0 0 22px;
    padding-left: 24px;
}

.service-content li + li {
    margin-top: 0px;
}

.service-comparison {
    margin: 30px auto;
    text-align: center;
}

.service-comparison img {
    display: inline-block;
    width: min(100%, 560px);
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
}

.service-content__recommendation {
    margin-top: 8px;
    font-weight: 600;
}

.service-sidebar {
    position: sticky;
    top: 132px;
}

.service-sidebar__menu {
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    border-radius: 0 0 12px 12px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.service-sidebar__menu a {
    display: block;
    padding: 14px 16px;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
}

.service-sidebar__menu a:last-child {
    border-bottom: 0;
}

.service-sidebar__menu a:hover,
.service-sidebar__menu a:focus-visible {
    background: rgba(0, 181, 249, 0.08);
    color: var(--color-primary-dark);
}

.service-sidebar__menu a.is-active {
    background: var(--color-accent);
    color: #ffffff;
}

.service-sidebar__contact {
    margin-top: 24px;
    padding: 24px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
    color: #ffffff;
}

.service-sidebar__contact .eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.service-sidebar__contact h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 1.25rem;
}

.service-sidebar__contact p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    line-height: 1.6;
}

.service-sidebar__contact a {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 12px;
    color: #ffffff;
    font-size: 14px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.service-accordion {
    margin-top: 34px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.service-accordion__toggle {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 18px;
    border: 0;
    background: var(--color-primary);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
}

.service-accordion__toggle i {
    transition: transform 0.25s ease;
}

.service-accordion.is-open .service-accordion__toggle i {
    transform: rotate(180deg);
}

.service-accordion__panel {
    padding: 24px;
    background: #ffffff;
}

.service-accordion__panel[hidden] {
    display: none;
}

.service-principles {
    padding-left: 0 !important;
    list-style: none;
}

.service-results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 26px;
}

.service-results-grid img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.1);
}

/* MAIN MENU SERVICES DROPDOWN */

.navigation__services-dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.navigation__services-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 15px 0;
    border: 0;
    background: transparent;
    color: #1d2430;
    font: inherit;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.3px;
    cursor: pointer;
}

.navigation__services-toggle:hover,
.navigation__services-dropdown.is-open .navigation__services-toggle {
    color: var(--color-primary);
}

.navigation__services-toggle i {
    font-size: 11px;
    transition: transform 0.2s ease;
}

.navigation__services-dropdown.is-open .navigation__services-toggle i {
    transform: rotate(180deg);
}

.navigation__services-dropdown::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 14px;
}

.navigation__services-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 1300;
    display: none;
    min-width: 250px;
    padding: 8px;
    border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-primary);
    border-radius: 0 0 10px 10px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.14);
}

.navigation__services-dropdown:hover .navigation__services-menu,
.navigation__services-dropdown:focus-within .navigation__services-menu,
.navigation__services-dropdown.is-open .navigation__services-menu {
    display: block;
}

.navigation__services-menu a {
    display: block;
    padding: 11px 13px;
    border-radius: 7px;
    color: #2f3033;
    font-size: 14px;
    font-weight: 600;
}

.navigation__services-menu a::after {
    display: none;
}


.navigation__services-menu a:hover,
.navigation__services-menu a:focus-visible {
    background: rgba(0, 181, 249, 0.1);
    color: var(--color-primary-dark);
}

@media (max-width: 991px) {
    .service-layout__grid {
        grid-template-columns: 1fr;
    }

    .service-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 22px;
    }

    .service-sidebar__contact {
        margin-top: 0;
    }

    .navigation__services-dropdown {
        display: block;
        width: 100%;
    }

    .navigation__services-dropdown::after {
        display: none;
    }

    .navigation__services-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px;
    }

    .navigation__services-menu {
        position: static;
        display: none;
        min-width: 0;
        margin: 0 8px 8px;
        border: 0;
        border-left: 3px solid var(--color-primary);
        border-radius: 0 8px 8px 0;
        background: rgba(0, 181, 249, 0.06);
        box-shadow: none;
    }

    .navigation__services-dropdown:hover .navigation__services-menu,
    .navigation__services-dropdown:focus-within .navigation__services-menu {
        display: none;
    }

    .navigation__services-dropdown.is-open .navigation__services-menu {
        display: block;
    }
}

@media (max-width: 680px) {
    .service-page__title {
        padding: 40px 0 30px;
    }

    .service-layout {
        padding-bottom: 72px;
    }

    .service-content__hero {
        aspect-ratio: 4 / 3;
    }

    .service-content p,
    .service-content li {
        font-size: 15px;
    }

    .service-sidebar {
        grid-template-columns: 1fr;
    }

    .service-results-grid {
        grid-template-columns: 1fr;
    }

    .service-accordion__panel {
        padding: 20px;
    }
}

/* ==================================================
   Before / After labels
================================================== */

.service-comparison-labels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: min(100%, 480px);
    margin: 0 auto 8px;
    color: #2f3033;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.service-comparison {
    width: min(100%, 480px);
    margin: 0 auto 30px;
    text-align: center;
}

.service-comparison img {
    display: block;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    border-radius: 0;
}

/* ==================================================
   Endodontics Images
================================================== */

.service-content__image {
    display: block;
    margin: 35px auto;
    text-align: center;
}

.service-content__image img {
    display: block;
    margin: 0 auto;
    height: auto;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
}

/* Diagram */
.service-content__image--diagram img {
    max-width: 500px;
}

/* X-ray */
.service-content__image--xray {
    text-align: center;
}

.service-content__image--xray img {
    display: inline-block;
    max-width: 380px;
    width: 200px;
    height: auto;
}

@media (max-width: 768px) {
    .service-content__image--diagram img,
    .service-content__image--xray img {
        max-width: 100%;
    }
}

/* ==================================================
   Oral Surgery page images and second section
================================================== */

.oral-surgery-images {
    display: grid;
    justify-items: center;
    gap: 24px;
    margin: 30px auto 34px;
}

.oral-surgery-images__item {
    margin: 0;
    text-align: center;
}

.oral-surgery-images__item figcaption {
    margin-bottom: 8px;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 600;
}

.oral-surgery-images__item img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}

.oral-surgery-images__item--small img {
    max-width: 300px;
}

.oral-surgery-images__item--wide img {
    max-width: 420px;
}

.oral-surgery-implantology {
    margin-top: 22px;
    padding: 22px 24px;
    border-left: 4px solid var(--color-primary);
    background: #f3f4f5;
}

.oral-surgery-implantology p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .oral-surgery-images__item--small img,
    .oral-surgery-images__item--wide img {
        max-width: 100%;
    }

    .oral-surgery-implantology {
        padding: 18px;
    }
}
/* ==================================================
   Pediatric and Preventive Dentistry
================================================== */

.pediatric-text-image {
    display: flow-root;
    margin: 24px 0;
}

.pediatric-text-image img {
    display: block;
    width: auto;
    max-width: 250px;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.pediatric-text-image--right img {
    float: right;
    margin: 0 0 18px 24px;
}

.pediatric-text-image--left img {
    float: left;
    margin: 0 24px 18px 0;
}

.pediatric-children-banner {
    margin: 34px auto 0;
    text-align: center;
}

.pediatric-children-banner img {
    display: inline-block;
    width: min(100%, 560px);
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 700px) {
    .pediatric-text-image img,
    .pediatric-text-image--right img,
    .pediatric-text-image--left img {
        float: none;
        width: min(100%, 300px);
        max-width: 100%;
        margin: 0 auto 20px;
    }

    .pediatric-children-banner img {
        width: 100%;
    }
}

/* ==================================================
   Periodontology page
================================================== */

.periodontology-image {
    margin: 28px auto;
    text-align: center;
}

.periodontology-image img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.periodontology-image--small img {
    width: min(100%, 320px);
}

.periodontology-list {
    margin-bottom: 34px !important;
}

.periodontology-list li {
    margin-bottom: 12px;
}

.periodontology-gallery {
    display: grid;
    justify-items: center;
    gap: 24px;
    margin: 34px auto;
}

.periodontology-gallery figure {
    margin: 0;
}

.periodontology-gallery img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}

.periodontology-gallery figure:nth-child(1) img {
    max-width: 500px;
}

.periodontology-gallery figure:nth-child(2) img {
    max-width: 520px;
}

.periodontology-gallery figure:nth-child(3) img {
    max-width: 500px;
}

.periodontology-gallery figure:nth-child(4) img {
    max-width: 360px;
}

.periodontology-comparison-labels {
    width: min(100%, 320px);
    margin-top: 30px;
}

.periodontology-before-after {
    width: min(100%, 320px);
    margin: 0 auto 30px;
    text-align: center;
}

.periodontology-before-after img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 700px) {
    .periodontology-gallery img,
    .periodontology-gallery figure:nth-child(1) img,
    .periodontology-gallery figure:nth-child(2) img,
    .periodontology-gallery figure:nth-child(3) img,
    .periodontology-gallery figure:nth-child(4) img {
        max-width: 100%;
    }
}
/* ==================================================
   Prosthetics page links
================================================== */

.prosthetics-links {
    display: grid;
    gap: 10px;
    margin-top: 34px;
}

.prosthetics-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 15px 18px;

    border: 1px solid var(--color-border);
    border-radius: 4px;

    background: #f8f8f8;
    color: var(--color-text);

    font-size: 15px;
    font-weight: 600;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.prosthetics-link:hover,
.prosthetics-link:focus-visible {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
}

.prosthetics-link i {
    font-size: 14px;
}
/* ==================================================
   Mobile Prosthetics detail page
================================================== */

.prosthetics-detail__back {
    margin-bottom: 24px;
}

.prosthetics-detail__back a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--color-primary-dark);
    font-size: 14px;
    font-weight: 700;
}

.prosthetics-detail__back a:hover,
.prosthetics-detail__back a:focus-visible {
    color: var(--color-primary);
}

.mobile-prosthetics-result {
    width: min(100%, 430px);
    margin: 34px auto;
    text-align: center;
}

.mobile-prosthetics-result img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}

.mobile-prosthetics-result figcaption {
    margin-top: 14px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.5;
}

.prosthetics-links--detail {
    margin-top: 42px;
}

.prosthetics-link.is-active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: #ffffff;
}
/* ==================================================
   Fixed Prosthetics detail page
================================================== */

.fixed-prosthetics-result {
    width: min(100%, 620px);
    margin: 34px auto;
    text-align: center;
}

.fixed-prosthetics-result img {
    display: block;
    width: 80%;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}
/* ==================================================
   Dental Bridges — two cases
================================================== */

.dental-bridges-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
    margin: 34px auto 42px;
}

.dental-bridges-result {
    margin: 0;
    text-align: center;
}

.dental-bridges-result img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}

.dental-bridges-result figcaption {
    margin-top: 14px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 700px) {
    .dental-bridges-results {
        grid-template-columns: 1fr;
    }
}
/* ==================================================
   Crowns detail page
================================================== */

.crowns-result {
    width: min(100%, 430px);
    margin: 34px auto;
    text-align: center;
}

.crowns-result img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}
/* ==================================================
   Zirconia crowns and bridges detail page
================================================== */

.zirconia-result {
    width: min(100%, 430px);
    margin: 34px auto;
    text-align: center;
}

.zirconia-result img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}
/* ==================================================
   Porcelain Veneers detail page
================================================== */

.porcelain-veneers-result {
    width: min(100%, 430px);
    margin: 34px auto;
    text-align: center;
}

.porcelain-veneers-result img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}

.porcelain-veneers-result figcaption {
    max-width: 430px;
    margin: 14px auto 0 12px;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.prosthetics-links--detail {
    margin-top: 42px;
}
/* ==================================================
   Aesthetic Dentistry page
================================================== */

.aesthetic-dentistry-content h3 {
    margin: 34px 0 14px;
    color: var(--color-text);
    font-size: 18px;
    line-height: 1.35;
}

.aesthetic-intro::after,
.aesthetic-office-whitening::after {
    display: table;
    clear: both;
    content: "";
}

.aesthetic-intro__image {
    float: right;
    width: min(42%, 310px);
    height: auto;
    margin: 0 0 18px 28px;
    border-radius: 8px;
}

.aesthetic-before-after {
    width: min(100%, 430px);
    margin: 32px auto;
    text-align: center;
}

.aesthetic-before-after img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}

.aesthetic-office-whitening__image {
    float: left;
    width: min(45%, 360px);
    height: auto;
    margin: 2px 28px 18px 0;
    border-radius: 8px;
}

@media (max-width: 700px) {
    .aesthetic-intro__image,
    .aesthetic-office-whitening__image {
        float: none;
        display: block;
        width: min(100%, 420px);
        margin: 0 auto 24px;
    }

    .aesthetic-before-after {
        width: min(100%, 390px);
    }
}
/* ==================================================
   Laser Dentistry page
================================================== */

.laser-dentistry-content h3 {
    margin: 22px 0 10px;
    color: var(--color-text);
    font-size: 17px;
    line-height: 1.35;
}

.laser-dentistry-content ul {
    margin: 0 0 18px;
    padding-left: 24px;
}

.laser-dentistry-content li {
    margin-bottom: 6px;
    line-height: 1.55;
}

.laser-dentistry-final-image {
    width: min(100%, 300px);
    margin: 30px auto 0;
    text-align: center;
}

.laser-dentistry-final-image img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 600px) {
    .laser-dentistry-final-image {
        width: min(100%, 280px);
    }
}
/* ==================================================
   Dental Implants page
================================================== */

.dental-implants-content p {
    text-align: justify;
    text-justify: inter-word;
}

.dental-implants-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 30px;
}

.dental-implants-gallery figure {
    margin: 0;
}

.dental-implants-gallery img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

@media (max-width: 700px) {
    .dental-implants-content p {
        text-align: left;
    }

    .dental-implants-gallery {
        grid-template-columns: 1fr;
    }
}
