/* ==================================================
   STOMADENT VITAL — ABOUT PAGE
================================================== */

/* ==================================================
   Page title
================================================== */

.about-title {
    padding: 40px 0 30px;
    background: #ffffff;
    text-align: center;
}

.about-title .eyebrow {
    margin-bottom: 8px;
    font-size: 12px;
    letter-spacing: 0.14em;
}

.about-title h1 {
    margin: 0 0 10px;
    color: #2f3033;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 600;
    line-height: 1.2;
}

.about-title > .container > i {
    color: var(--color-primary);
    font-size: 18px;
}


/* ==================================================
   Who we are / What we do
================================================== */

.about-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-column {
    min-height: 520px;
    padding: 72px clamp(32px, 7vw, 110px);
    color: #ffffff;
}

.about-column--red {
    background: linear-gradient(
        135deg,
        #f42f50 0%,
        #ee3955 100%
    );
}

.about-column--blue {
    background: linear-gradient(
        135deg,
        #009fdc 0%,
        #00b5f9 100%
    );
}

.about-column__inner {
    width: min(100%, 620px);
}

.about-column--red .about-column__inner {
    margin-left: auto;
}

.about-column h2 {
    margin: 0 0 26px;
    color: #ffffff;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
}

.about-column p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    line-height: 1.75;
}

.about-column p:last-child {
    margin-bottom: 0;
}


/* ==================================================
   Services list
================================================== */

.about-services {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.about-services li {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.about-services i {
    width: 20px;
    flex: 0 0 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    text-align: center;
}


/* ==================================================
   Section heading
================================================== */

.about-section-heading {
    width: min(100%, 760px);
    margin: 0 auto 38px;
    text-align: center;
}

.about-section-heading .eyebrow {
    margin-bottom: 8px;
}

.about-section-heading h2 {
    margin: 0 0 12px;
    color: #2f3033;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 600;
    line-height: 1.2;
}

.about-section-heading p:not(.eyebrow) {
    margin: 0;
    color: var(--color-muted);
    font-size: 16px;
}


/* ==================================================
   Dental office gallery
================================================== */

.office-section {
    padding: 82px 0 92px;
    background: #f7f7f7;
}

.office-gallery-cover {
    position: relative;
    display: block;
    width: min(100%, 900px);
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.14);
    cursor: pointer;
}

.office-gallery-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.office-gallery-cover span {
    position: absolute;
    inset: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 10px;
    padding: 24px;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.02) 0%,
        rgba(0, 0, 0, 0.12) 45%,
        rgba(0, 0, 0, 0.62) 100%
    );
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.office-gallery-cover span i {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    background: rgba(0, 181, 249, 0.82);
    font-size: 23px;
}

.office-gallery-cover:hover img,
.office-gallery-cover:focus-visible img {
    transform: scale(1.035);
}

.office-gallery-cover:hover span,
.office-gallery-cover:focus-visible span {
    opacity: 1;
}


/* ==================================================
   Testimonials
================================================== */

.testimonials {
    position: relative;
    padding: 80px 0 90px;
    overflow: hidden;
    color: #ffffff;

    background:
        url("../img/content-prlx.jpg") center center / cover no-repeat;
}

.about-section-heading--light h2,
.about-section-heading--light p {
    color: #ffffff;
}

.about-section-heading--light .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.testimonial-slider {
    position: relative;
    width: min(100%, 840px);
    margin: 0 auto;
    text-align: center;
}

.testimonial {
    display: none;
}

.testimonial.is-active {
    display: block;
    animation: testimonialFade 0.45s ease both;
}

.testimonial > img {
    display: block;
    width: 90px;
    height: 90px;
    margin: 0 auto 26px;
    border: 4px solid rgba(255, 255, 255, 0.85);
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.16);
}

.testimonial blockquote {
    position: relative;
    margin: 0 auto;
    padding: 0 15px;
    max-width: 760px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1.70;
}

.testimonial blockquote::before {
    content: "“";
    position: absolute;
    top: -30px;
    left: 0;
    color: rgba(255, 255, 255, 0.3);
    font-family: Georgia, serif;
    font-size: 70px;
    line-height: 1;
}

.testimonial blockquote::after {
    content: "”";
    position: absolute;
    right: 0;
    bottom: -55px;
    color: rgba(255, 255, 255, 0.3);
    font-family: Georgia, serif;
    font-size: 70px;
    line-height: 1;
}

.testimonial p {
    display: grid;
    gap: 3px;
    margin: 24px 0 0;
    color: #ffffff;
}

.testimonial p strong {
    font-size: 16px;
}

.testimonial p span {
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.testimonial-controls button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.testimonial-controls button:hover,
.testimonial-controls button:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-2px);
}


/* ==================================================
   Gallery lightbox
================================================== */

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
}

.gallery-lightbox__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(10, 17, 24, 0.93);
    backdrop-filter: blur(5px);
    cursor: pointer;
}

.gallery-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(calc(100% - 40px), 1240px);
    min-height: min(82vh, 820px);
    place-items: center;
}

.gallery-lightbox figure {
    display: grid;
    max-width: 100%;
    max-height: 82vh;
    margin: 0;
    justify-items: center;
}

.gallery-lightbox figure img {
    display: block;
    max-width: 100%;
    max-height: 76vh;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
}

.gallery-lightbox figcaption {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
}

.gallery-lightbox__close,
.gallery-lightbox__prev,
.gallery-lightbox__next {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(0, 0, 0, 0.36);
    color: #ffffff;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

.gallery-lightbox__close:hover,
.gallery-lightbox__prev:hover,
.gallery-lightbox__next:hover {
    background: rgba(0, 181, 249, 0.78);
}

.gallery-lightbox__close {
    top: 0;
    right: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 21px;
}

.gallery-lightbox__prev,
.gallery-lightbox__next {
    top: 50%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 19px;
    transform: translateY(-50%);
}

.gallery-lightbox__prev {
    left: 0;
}

.gallery-lightbox__next {
    right: 0;
}

.gallery-lightbox__counter {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    font-size: 14px;
}

body.gallery-is-open {
    overflow: hidden;
}


/* ==================================================
   Animations
================================================== */

@keyframes testimonialFade {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ==================================================
   Tablet
================================================== */

@media (max-width: 991px) {
    .about-columns {
        grid-template-columns: 1fr;
    }

    .about-column {
        min-height: auto;
        padding: 58px 30px;
    }

    .about-column__inner,
    .about-column--red .about-column__inner {
        width: min(100%, 760px);
        margin: 0 auto;
    }

    .office-gallery-cover span {
        align-content: end;
        padding-bottom: 24px;
        opacity: 1;
    }

    .gallery-lightbox__prev {
        left: 8px;
    }

    .gallery-lightbox__next {
        right: 8px;
    }
}


/* ==================================================
   Mobile
================================================== */

@media (max-width: 600px) {
    .about-title {
        padding: 34px 0 26px;
    }

    .about-title h1 {
        font-size: 1.9rem;
    }

    .about-column {
        padding: 46px 22px;
    }

    .about-column h2 {
        margin-bottom: 22px;
        font-size: 1.85rem;
    }

    .about-column p {
        font-size: 15px;
        line-height: 1.7;
    }

    .about-services li {
        align-items: flex-start;
        font-size: 15px;
    }

    .office-section {
        padding: 64px 0 72px;
    }

    .about-section-heading {
        margin-bottom: 30px;
    }

    .about-section-heading h2 {
        font-size: 2rem;
    }

    .office-gallery-cover {
        border-radius: 13px;
    }

    .office-gallery-cover img {
        aspect-ratio: 4 / 3;
    }

    .office-gallery-cover span {
        font-size: 16px;
    }

    .office-gallery-cover span i {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .testimonials {
        padding: 62px 0 70px;
    }

    .testimonial > img {
        width: 82px;
        height: 82px;
    }

    .testimonial blockquote {
        padding: 0 24px;
        font-size: 1rem;
        line-height: 1.7;
    }

    .testimonial blockquote::before,
    .testimonial blockquote::after {
        font-size: 54px;
    }

    .gallery-lightbox__dialog {
        width: calc(100% - 18px);
        min-height: 88vh;
    }

    .gallery-lightbox figure img {
        max-height: 72vh;
    }

    .gallery-lightbox__close {
        top: 8px;
        right: 8px;
    }

    .gallery-lightbox__prev,
    .gallery-lightbox__next {
        width: 44px;
        height: 44px;
    }

    .gallery-lightbox__prev {
        left: 6px;
    }

    .gallery-lightbox__next {
        right: 6px;
    }
}