@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@400;500;600&display=swap");
:root {
    --navy: #102745;
    --cream: #fbf9f4;
    --green: #173e30;
    --ink: #182b36;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.65;
}
a {
    color: inherit;
}
img {
    max-width: 100%;
    display: block;
}
h1,
h2,
h3 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 500;
    line-height: 1.17;
}
h1 {
    font-size: clamp(2.8rem, 5vw, 4.7rem);
}
h2 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
}
.wrap {
    width: min(1120px, 92%);
    margin: auto;
}
.topline {
    background: #233c34;
    color: #ffffff;
    text-align: center;
    font-size: 0.7rem;
    padding: 7px;
}
.header {
    background: #fffaf5;
    border-bottom: 1px solid #e6e1d9;
}
.nav {
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo {
    width: 90px;
    height: auto;
}
.links {
    display: flex;
    gap: 26px;
    align-items: center;
    flex-wrap: wrap;
}
.links a {
    text-decoration: none;
    font-size: 0.89rem;
}
.links a:hover {
    text-decoration: underline;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    padding: 13px 25px;
    background: var(--navy);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
}
.btn.cream {
    background: var(--cream);
    color: var(--green);
}
.intro {
    text-align: center;
    padding: 76px 0 50px;
}
.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: #287c7b;
    font-size: 0.69rem;
    font-weight: 700;
}
.intro h1 {
    margin: 12px auto 12px;
}
.intro p {
    max-width: 520px;
    margin: auto;
    color: #536475;
}
.cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 70px;
}
.office-card {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    isolation: isolate;
    cursor: pointer;
}
.office-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.office-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(12, 46, 36, 0.93),
        rgba(12, 46, 36, 0.32) 46%,
        transparent 80%
    );
}
.office-card .content {
    position: relative;
    z-index: 2;
    padding: 32px;
}
.office-card h2 {
    font-size: 3.3rem;
    margin: 7px 0;
}
.office-card p {
    max-width: 360px;
    font-size: 0.9rem;
}
.office-card .eyebrow {
    color: #ffffff;
}
.office-card .btn {
    margin-top: 12px;
}
.office-card img {
    filter: brightness(0.75);
    transform: scale(1);
    transition: filter 0.6s ease,
        transform 0.6s ease;
}
.office-card::after {
    transition: opacity 0.6s ease;
}
.office-card:hover img,
.office-card:focus-visible img {
    filter: brightness(1);
    transform: scale(1.04);
}
.office-card:hover::after,
.office-card:focus-visible::after {
    opacity: 0.75;
}
.office-card .btn {
    transition: transform 0.3s ease;
}
.office-card:hover .btn,
.office-card:focus-visible .btn {
    transform: translateY(-3px);
}
.office-card:focus-visible {
    outline: 3px solid #277b7b;
    outline-offset: 4px;
}
.hero {
    min-height: 510px;
    display: flex;
    align-items: flex-end;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        0deg,
        rgba(12, 34, 37, 0.85),
        transparent
    );
}
.hero .wrap {
    z-index: 1;
    position: relative;
    padding-bottom: 65px;
}
.hero h1 {
    max-width: 820px;
    margin: 12px 0;
}
.section {
    padding: 75px 0;
}
.section.alt {
    background: #ffffff;
}
.split {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 65px;
}
.prose {
    font-size: 1.09rem;
    max-width: 780px;
}
.quote {
    border-left: 4px solid #38847a;
    padding-left: 25px;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 1.45rem;
    color: var(--navy);
}
.team {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 30px;
}
.person {
    background: #ffffff;
    padding: 24px;
    border: 1px solid #e9e4dd;
}
.person h3 {
    font-size: 1.25rem;
    margin: 0 0 7px;
}
.person p {
    margin: 0;
    color: #697681;
    font-size: 0.85rem;
}
.details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.details div {
    border-top: 1px solid #dddddd;
    padding-top: 20px;
}
.footer {
    background: var(--navy);
    color: #ffffff;
    padding: 45px 0;
}
.footer a {
    color: #ffffff;
}
.footgrid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.note {
    font-size: 0.82rem;
    color: #6d737b;
}
.simple-list {
    padding-left: 20px;
    columns: 2;
}
.simple-list li {
    margin-bottom: 12px;
}
.forms-note {
    background: #f1eee7;
    padding: 20px;
    border-left: 3px solid #567e78;
}
body.rialto {
    --navy: #122c4f;
    --green: #122c4f;
}
body.rialto .eyebrow {
    color: #a47732;
}
body.rialto .hero::before {
    background: linear-gradient(
        0deg,
        rgba(9, 25, 52, 0.89),
        transparent
    );
}
.dental-footer {
    background: #233c34;
    color: #e4ebe6;
    padding: 65px 0 25px;
}
.dental-footer .footer-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 55px;
}
.dental-footer h3 {
    color: #ffffff;
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 22px;
}
.dental-footer address {
    font-style: normal;
    line-height: 1.8;
    margin-bottom: 18px;
}
.dental-footer p {
    line-height: 1.7;
    margin: 0 0 12px;
}
.dental-footer a {
    color: #e4ebe6;
    text-decoration: none;
    transition: color 0.3s ease;
}
.dental-footer a:hover {
    color: #d8c8a7;
}
.dental-footer .footer-hours {
    margin-top: 18px;
    opacity: 0.85;
}
.dental-footer .footer-directions {
    display: inline-block;
    margin-top: 12px;
    color: #e8d7b5;
    font-weight: 600;
}
.dental-footer .social-links {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    margin-top: 22px;
    padding: 0;
}
.dental-footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    font-size: 20px;
    color: #ffffff;
    transition: background-color 0.3s ease,
        transform 0.3s ease;
}
.dental-footer .social-links a:hover {
    background: #486c5c;
    color: #ffffff;
    transform: translateY(-4px);
}
.dental-footer .social-links a:focus-visible {
    outline: 2px solid #e8d7b5;
    outline-offset: 4px;
}
.dental-footer .footer-social-labels {
    margin-top: 14px;
    font-size: 12px;
    opacity: 0.7;
}
.dental-footer .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 55px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 13px;
    opacity: 0.8;
}
@media (max-width: 800px) {
    .dental-footer .footer-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .dental-footer {
        padding: 45px 0 25px;
    }
    .dental-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
        margin-top: 40px;
    }
}
@media (max-width: 720px) {
    .nav {
        padding: 14px 0;
        align-items: flex-start;
    }
    .links {
        gap: 12px;
        justify-content: flex-end;
    }
    .cards,
    .split,
    .details {
        grid-template-columns: 1fr;
    }
    .team {
        grid-template-columns: repeat(2, 1fr);
    }
    .office-card {
        min-height: 440px;
    }
    .intro {
        padding: 50px 0 35px;
    }
    .section {
        padding: 50px 0;
    }
    .simple-list {
        columns: 1;
    }
}
@media (max-width: 440px) {
    .team {
        grid-template-columns: 1fr;
    }
    .links {
        font-size: 0.8rem;
    }
    .logo {
        width: 70px;
    }
}
@media (prefers-reduced-motion: reduce) {
    .office-card img,
    .office-card::after,
    .office-card .btn {
        transition: none;
    }
    .office-card:hover img,
    .office-card:focus-visible img {
        transform: none;
    }
    .office-card:hover .btn,
    .office-card:focus-visible .btn {
        transform: none;
    }
}
body.yucaipa {
    --navy: #233c34;
    --green: #233c34;
}
.new-patients-section {
    background: #f1eee5;
    padding: 55px 0;
    border-bottom: 1px solid #e4dfd3;
}
.new-patients-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 45px;
}
.new-patients-text {
    max-width: 680px;
}
.new-patients-text .eyebrow {
    color: #497568;
    margin-bottom: 12px;
}
.new-patients-text h2 {
    color: #233c34;
    font-size: clamp(2rem, 3.5vw, 3.1rem);
    margin: 0 0 15px;
}
.new-patients-text p {
    color: #53635b;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}
.new-patients-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}
.new-patients-btn {
    background: #233c34;
    color: #ffffff;
    white-space: nowrap;
    transition: background-color 0.3s ease,
        transform 0.3s ease;
}
.new-patients-btn:hover {
    background: #3d6656;
    transform: translateY(-3px);
}
.new-patients-phone {
    color: #53635b;
    font-size: 0.85rem;
}
.new-patients-phone a {
    color: #233c34;
    font-weight: 700;
    text-decoration: none;
}
.new-patients-phone a:hover {
    text-decoration: underline;
}
@media (max-width: 800px) {
    .new-patients-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    .new-patients-action {
        align-items: flex-start;
    }
    .new-patients-section {
        padding: 45px 0;
    }
}
@media (prefers-reduced-motion: reduce) {
    .new-patients-btn {
        transition: none;
    }
    .new-patients-btn:hover {
        transform: none;
    }
}
body.yucaipa .hero {
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}
body.yucaipa .header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fbf9f4;
}
body.yucaipa #about,
body.yucaipa #team,
body.yucaipa #services {
    scroll-margin-top: 110px;
}
html {
    scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}
body.yucaipa .nature-section {
    background: #f7f5ef;
}
body.yucaipa .nature-intro {
    max-width: 780px;
    margin-bottom: 35px;
}
body.yucaipa .nature-intro h2 {
    color: #233c34;
    margin-bottom: 20px;
}
body.yucaipa .nature-intro p {
    color: #607168;
    line-height: 1.9;
    font-size: 1.05rem;
}
body.yucaipa .nature-image {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}
body.yucaipa .nature-image img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s ease;
}
body.yucaipa .nature-image:hover img {
    transform: scale(1.025);
}
body.yucaipa .nature-caption {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #78867d;
    text-align: right;
    letter-spacing: 0.3px;
}
@media (max-width: 600px) {
    body.yucaipa .nature-intro {
        margin-bottom: 25px;
    }
    body.yucaipa .nature-image {
        border-radius: 8px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.yucaipa .nature-image img {
        transition: none;
    }
    body.yucaipa .nature-image:hover img {
        transform: none;
    }
}
body.yucaipa .back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #233c34;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.18);
    transition: background-color 0.3s ease,
        transform 0.3s ease;
}
body.yucaipa .back-to-top[hidden] {
    display: none;
}
body.yucaipa .back-to-top:hover {
    background: #3d6656;
    transform: translateY(-4px);
}
body.yucaipa .back-to-top:focus-visible {
    outline: 3px solid #88b49c;
    outline-offset: 4px;
}
@media (max-width: 600px) {
    body.yucaipa .back-to-top {
        width: 46px;
        height: 46px;
        bottom: 20px;
        right: 20px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.yucaipa .back-to-top {
        transition: none;
    }
    body.yucaipa .back-to-top:hover {
        transform: none;
    }
}
body.yucaipa .dental-services-section {
    background: #ffffff;
}
body.yucaipa .services-intro {
    max-width: 760px;
    margin: 0 auto 50px;
    text-align: center;
}
body.yucaipa .services-intro h2 {
    color: #233c34;
    margin-bottom: 18px;
}
body.yucaipa .services-intro p {
    color: #617168;
    line-height: 1.8;
    font-size: 1.05rem;
}
body.yucaipa .dental-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
body.yucaipa .dental-service-card {
    position: relative;
    background: #f7f5ef;
    border: 1px solid #e5e8df;
    border-radius: 16px;
    padding: 32px 28px;
    transition: transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}
body.yucaipa .dental-service-card:hover {
    transform: translateY(-5px);
    border-color: #a8b9aa;
    box-shadow: 0 12px 30px rgba(35, 60, 52, 0.10);
}
body.yucaipa .featured-service {
    background: #eaf0e8;
    border-color: #cdddcf;
}
body.yucaipa .service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dce7dc;
    color: #233c34;
    border-radius: 14px;
    font-size: 1.5rem;
    margin-bottom: 24px;
}
body.yucaipa .dental-service-card h3 {
    color: #233c34;
    font-size: 1.35rem;
    margin-bottom: 14px;
}
body.yucaipa .dental-service-card p {
    color: #617168;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}
body.yucaipa .service-highlight {
    display: inline-block;
    margin-top: 22px;
    padding: 7px 13px;
    background: #233c34;
    color: #ffffff;
    border-radius: 30px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}
body.yucaipa .services-cta {
    text-align: center;
    margin-top: 65px;
    padding: 55px 25px;
    background: #f1eee5;
    border-radius: 18px;
}
body.yucaipa .services-cta h3 {
    color: #233c34;
    font-size: 2rem;
    margin-bottom: 12px;
}
body.yucaipa .services-cta p {
    color: #617168;
    margin-bottom: 25px;
}
body.yucaipa .services-cta-btn {
    background: #233c34;
    color: #ffffff;
}
body.yucaipa .services-cta-btn:hover {
    background: #3d6656;
}
@media (max-width: 1000px) {
    body.yucaipa .dental-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 650px) {
    body.yucaipa .dental-services-grid {
        grid-template-columns: 1fr;
    }
    body.yucaipa .dental-service-card {
        padding: 28px 24px;
    }
    body.yucaipa .services-cta {
        margin-top: 40px;
        padding: 40px 20px;
    }
    body.yucaipa .services-cta h3 {
        font-size: 1.65rem;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.yucaipa .dental-service-card {
        transition: none;
    }
    body.yucaipa .dental-service-card:hover {
        transform: none;
    }
}
body.yucaipa .redwood-divider {
    position: relative;
    width: 100%;
    height: 600px;
    overflow: hidden;
    background: #233c34;
}
body.yucaipa .redwood-divider-image {
    position: absolute;
    inset: 0;
    background-image: url("../images/redwood-forest.webp");
    background-size: 100% auto;
    background-position: center top;
    background-repeat: no-repeat;
    will-change: background-position;
}
body.yucaipa .redwood-divider::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(35, 60, 52, 0.03),
        rgba(35, 60, 52, 0.12)
    );
}
body.yucaipa .welcome-office-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 28px;
    margin: 22px 0 28px;
    max-width: 680px;
}
body.yucaipa .welcome-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
body.yucaipa .welcome-detail i {
    color: #497568;
    font-size: 1.1rem;
    margin-top: 4px;
    width: 22px;
    flex-shrink: 0;
}
body.yucaipa .welcome-detail strong {
    display: block;
    color: #233c34;
    font-size: 0.85rem;
    margin-bottom: 5px;
}
body.yucaipa .welcome-detail span,
body.yucaipa .welcome-detail a {
    color: #53635b;
    font-size: 0.88rem;
    line-height: 1.6;
    text-decoration: none;
    overflow-wrap: anywhere;
}
body.yucaipa .welcome-detail a:hover {
    color: #233c34;
    text-decoration: underline;
}
@media (max-width: 650px) {
    body.yucaipa .welcome-office-details {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}
body.yucaipa .new-patients-section {
    background: #f1eee5;
    padding: 50px 0 55px;
}
body.yucaipa .new-patients-content {
    display: block;
}
body.yucaipa .welcome-heading {
    margin-bottom: 25px;
    color: #497568;
}
body.yucaipa .welcome-office-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;
    max-width: none;
    margin: 0;
}
body.yucaipa .welcome-detail {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
}
body.yucaipa .welcome-detail i {
    color: #497568;
    font-size: 1.1rem;
    width: 22px;
    margin-top: 4px;
    flex-shrink: 0;
}
body.yucaipa .welcome-detail > div {
    min-width: 0;
}
body.yucaipa .welcome-detail strong {
    display: block;
    color: #233c34;
    font-size: .9rem;
    margin-bottom: 7px;
}
body.yucaipa .welcome-detail a,
body.yucaipa .welcome-detail span {
    color: #53635b;
    font-size: .9rem;
    line-height: 1.7;
    text-decoration: none;
    overflow-wrap: anywhere;
}
body.yucaipa .welcome-detail a:hover {
    text-decoration: underline;
}
body.yucaipa .welcome-divider {
    border: 0;
    border-top: 1px solid #d6dcd2;
    margin: 35px 0;
}
body.yucaipa .new-patients-announcement {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
}
body.yucaipa .new-patients-announcement .new-patients-text {
    max-width: 740px;
    min-width: 0;
}
body.yucaipa .new-patients-announcement .new-patients-text h2 {
    margin: 0 0 14px;
}
body.yucaipa .new-patients-announcement .new-patients-text p {
    margin: 0;
}
body.yucaipa .new-patients-announcement .new-patients-action {
    flex-shrink: 0;
}
@media (max-width: 1050px) {
    body.yucaipa .welcome-office-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 700px) {
    body.yucaipa .welcome-office-details {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    body.yucaipa .new-patients-announcement {
        flex-direction: column;
        align-items: flex-start;
        gap: 25px;
    }
    body.yucaipa .new-patients-announcement .new-patients-action {
        align-items: flex-start;
    }
}
body.yucaipa .yucaipa-footer {
    background: #233c34;
    color: #e4ebe6;
    padding: 65px 0 25px;
}
body.yucaipa .yucaipa-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr;
    gap: 60px;
}
body.yucaipa .yucaipa-footer-column h3 {
    color: #ffffff;
    font-size: 1.35rem;
    margin: 0 0 20px;
}
body.yucaipa .yucaipa-footer-column p {
    color: #d2ded6;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}
body.yucaipa .footer-location {
    color: #a9c4b2;
    font-weight: 600;
}
body.yucaipa .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-style: normal;
}
body.yucaipa .footer-contact a {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #e4ebe6;
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}
body.yucaipa .footer-contact i {
    color: #b4d3bd;
    width: 20px;
    margin-top: 4px;
    flex-shrink: 0;
}
body.yucaipa .footer-contact a:hover {
    color: #ffffff;
    text-decoration: underline;
}
body.yucaipa .yucaipa-footer-links {
    display: flex;
    flex-direction: column;
    gap: 13px;
}
body.yucaipa .yucaipa-footer-links a {
    color: #d2ded6;
    text-decoration: none;
    font-size: 0.95rem;
}
body.yucaipa .yucaipa-footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}
body.yucaipa .yucaipa-footer-hours {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}
body.yucaipa .yucaipa-footer-hours div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
body.yucaipa .yucaipa-footer-hours span {
    color: #d2ded6;
    font-size: 0.9rem;
}
body.yucaipa .yucaipa-footer-hours strong {
    color: #ffffff;
    font-size: 0.95rem;
}
body.yucaipa .footer-social-heading {
    margin-bottom: 15px;
}
body.yucaipa .yucaipa-footer-social {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}
body.yucaipa .yucaipa-footer-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background 0.3s ease,
        transform 0.3s ease;
}
body.yucaipa .yucaipa-footer-social a:hover {
    background: #3d6656;
    transform: translateY(-3px);
}
body.yucaipa .yucaipa-footer-rialto {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #dcebdd;
    font-size: 0.9rem;
    text-decoration: none;
}
body.yucaipa .yucaipa-footer-rialto:hover {
    color: #ffffff;
    text-decoration: underline;
}
body.yucaipa .yucaipa-footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 55px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: #b7c9bd;
    font-size: 0.82rem;
}
@media (max-width: 950px) {
    body.yucaipa .yucaipa-footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    body.yucaipa .yucaipa-footer-grid
    .yucaipa-footer-column:first-child {
        grid-column: 1 / -1;
    }
}
@media (max-width: 600px) {
    body.yucaipa .yucaipa-footer {
        padding: 45px 0 25px;
    }
    body.yucaipa .yucaipa-footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }
    body.yucaipa .yucaipa-footer-grid
    .yucaipa-footer-column:first-child {
        grid-column: auto;
    }
    body.yucaipa .yucaipa-footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 40px;
    }
}
@media (prefers-reduced-motion: reduce) {
    body.yucaipa .yucaipa-footer-social a {
        transition: none;
    }
    body.yucaipa .yucaipa-footer-social a:hover {
        transform: none;
    }
}
body.yucaipa .yucaipa-contact-page {
    background: #fbf9f4;
}
body.yucaipa .contact-page-intro {
    max-width: 760px;
    margin-bottom: 45px;
}
body.yucaipa .contact-page-intro h1 {
    color: #233c34;
    margin-bottom: 18px;
}
body.yucaipa .contact-page-intro p {
    color: #617168;
    font-size: 1.05rem;
    line-height: 1.8;
}
body.yucaipa .contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}
body.yucaipa .contact-info-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f1eee5;
    border: 1px solid #e5e8df;
    border-radius: 16px;
    padding: 35px 25px;
    min-width: 0;
}
body.yucaipa .contact-info-icon {
    margin-left: auto;
    margin-right: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    margin-bottom: 22px;
    border-radius: 12px;
    background: #dce7dc;
    color: #233c34;
    font-size: 1.3rem;
}
body.yucaipa .contact-info-card h2 {
    color: #233c34;
    font-size: 1.2rem;
    margin-bottom: 15px;
}
body.yucaipa .contact-info-card p {
    color: #53635b;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 14px;
    overflow-wrap: anywhere;
}
body.yucaipa .contact-info-card a {
    color: #233c34;
    text-decoration: none;
    font-weight: 600;
    overflow-wrap: anywhere;
}
body.yucaipa .contact-info-card a:hover {
    text-decoration: underline;
}
body.yucaipa .contact-info-card .contact-closed {
    font-size: 0.82rem;
    margin-bottom: 0;
}
body.yucaipa .yucaipa-map-section {
    background: #f7f5ef;
}
body.yucaipa .map-section-intro {
    max-width: 720px;
    margin-bottom: 30px;
}
body.yucaipa .map-section-intro h2 {
    color: #233c34;
    margin-bottom: 15px;
}
body.yucaipa .map-section-intro p {
    color: #617168;
    line-height: 1.8;
}
body.yucaipa .yucaipa-map-frame {
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid #dce4dc;
    box-shadow: 0 12px 35px rgba(35, 60, 52, 0.10);
}
body.yucaipa .yucaipa-map-frame iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}
body.yucaipa .map-directions-action {
    text-align: center;
    margin-top: 28px;
}
body.yucaipa .map-directions-btn {
    background: #233c34;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
body.yucaipa .map-directions-btn:hover {
    background: #3d6656;
}
body.yucaipa .contact-new-patients {
    background: #f1eee5;
}
body.yucaipa .contact-new-patients-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}
body.yucaipa .contact-new-patients-inner h2 {
    color: #233c34;
    margin: 12px 0 15px;
}
body.yucaipa .contact-new-patients-inner p {
    color: #617168;
    line-height: 1.8;
    max-width: 650px;
}
body.yucaipa .contact-call-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #233c34;
    color: #ffffff;
    flex-shrink: 0;
}
body.yucaipa .contact-call-btn:hover {
    background: #3d6656;
}
@media (max-width: 1000px) {
    body.yucaipa .contact-info-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 650px) {
    body.yucaipa .contact-info-grid {
        grid-template-columns: 1fr;
    }
    body.yucaipa .contact-info-card {
        padding: 30px 20px;
    }
    body.yucaipa .yucaipa-map-frame iframe {
        height: 340px;
    }
    body.yucaipa .contact-new-patients-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    body.yucaipa .contact-call-btn {
        flex-shrink: 1;
    }
}
body.yucaipa .contact-email-center {
    text-align: center;
    margin-top: 40px;
    padding: 38px 20px 10px;
    border-top: 1px solid #d8ded6;
}
body.yucaipa .contact-email-icon {
    color: #497568;
    font-size: 2rem;
    margin-bottom: 15px;
}
body.yucaipa .contact-email-center h2 {
    color: #233c34;
    font-size: clamp(2rem, 3vw, 2.6rem);
    margin: 0 0 12px;
}
body.yucaipa .contact-email-center a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #497568;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 500;
    text-decoration: none;
    overflow-wrap: anywhere;
}
body.yucaipa .contact-email-center a:hover {
    color: #233c34;
    text-decoration: underline;
}
body.yucaipa .contact-email-center a i {
    font-size: 0.8rem;
}
body.yucaipa .contact-email-center a:focus-visible {
    outline: 3px solid #497568;
    outline-offset: 5px;
}
@media (max-width: 650px) {
    body.yucaipa .contact-email-center {
        padding: 30px 5px 5px;
    }
    body.yucaipa .contact-email-center a {
        font-size: 1rem;
    }
}
body.yucaipa .forms-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 510px;
    color: #fff;
    background: linear-gradient(0deg, rgba(16, 42, 35, .83), rgba(16, 42, 35, .08) 75%),
        url("../images/grand-canyon-et-sunrise.webp") center 52% / cover no-repeat;
}
body.yucaipa .forms-hero-content {
    position: relative;
    padding: 80px 0 66px;
}
body.yucaipa .forms-hero .eyebrow {
    color: #e2f0e7;
}
body.yucaipa .forms-hero h1 {
    color: #fff;
    margin: 12px 0 16px;
}
body.yucaipa .forms-hero p {
    font-size: 1.08rem;
    max-width: 640px;
    margin: 0;
    color: #f2f6f1;
}
body.yucaipa .yucaipa-forms-main {
    background: #fbf9f4;
}
body.yucaipa .forms-intro {
    max-width: 770px;
    margin-bottom: 42px;
}
body.yucaipa .forms-intro h2,
body.yucaipa .forms-visit-copy h2 {
    color: #233c34;
    margin: 12px 0 18px;
}
body.yucaipa .forms-intro p,
body.yucaipa .forms-visit-copy > p {
    color: #617168;
    line-height: 1.85;
    font-size: 1.02rem;
}
body.yucaipa .forms-download-panel {
    display: flex;
    align-items: flex-start;
    gap: 26px;
    padding: 40px;
    border: 1px solid #e0e5da;
    border-radius: 18px;
    background: #f1eee5;
}
body.yucaipa .forms-panel-icon,
body.yucaipa .forms-help-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: #dce7dc;
    color: #233c34;
    font-size: 1.5rem;
}
body.yucaipa .forms-panel-content h3 {
    color: #233c34;
    font-size: 1.65rem;
    margin: 0 0 12px;
}
body.yucaipa .forms-panel-content p {
    color: #617168;
    line-height: 1.8;
    margin: 0 0 23px;
}
body.yucaipa .forms-contact-btn {
    background: #233c34;
    color: #fff;
}
body.yucaipa .forms-contact-btn:hover {
    background: #3d6656;
}
body.yucaipa .forms-visit-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 65px;
    align-items: start;
    margin-top: 80px;
}
body.yucaipa .forms-checklist {
    list-style: none;
    padding: 0;
    margin: 28px 0;
}
body.yucaipa .forms-checklist li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    color: #53635b;
    margin: 0 0 18px;
}
body.yucaipa .forms-checklist i {
    color: #497568;
    margin-top: 6px;
}
body.yucaipa .forms-privacy-note {
    font-size: .9rem !important;
    border-top: 1px solid #d8ded6;
    padding-top: 22px;
}
body.yucaipa .forms-privacy-note i {
    color: #497568;
    margin-right: 7px;
}
body.yucaipa .forms-help-card {
    background: #eaf0e8;
    padding: 38px;
    border-radius: 18px;
}
body.yucaipa .forms-help-card h3 {
    color: #233c34;
    font-size: 1.75rem;
    margin: 23px 0 14px;
}
body.yucaipa .forms-help-card p {
    color: #53635b;
    line-height: 1.8;
}
body.yucaipa .forms-phone-link {
    display: block;
    color: #233c34;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    margin: 23px 0 14px;
}
body.yucaipa .forms-phone-link i {
    font-size: 1rem;
    margin-right: 7px;
}
body.yucaipa .forms-contact-link {
    color: #233c34;
    text-decoration: underline;
    text-underline-offset: 4px;
}
@media (max-width: 800px) {
    body.yucaipa .forms-hero {
        min-height: 390px;
    }
    body.yucaipa .forms-visit-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        margin-top: 55px;
    }
}
@media (max-width: 600px) {
    body.yucaipa .forms-hero {
        min-height: 340px;
    }
    body.yucaipa .forms-hero-content {
        padding: 65px 0 50px;
    }
    body.yucaipa .forms-download-panel {
        flex-direction: column;
        padding: 28px 24px;
    }
    body.yucaipa .forms-help-card {
        padding: 28px 24px;
    }
}
body.yucaipa .forms-documents {
    margin: 38px 0 62px;
}
body.yucaipa .forms-documents>h2 {
    color: #233c34;
    margin: 8px 0 12px;
}
body.yucaipa .forms-documents-lead {
    max-width: 740px;
    color: #53635b;
    line-height: 1.75;
    margin-bottom: 28px;
}
body.yucaipa .forms-documents-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 24px;
}
body.yucaipa .forms-document-card {
    background: #f1eee5;
    border: 1px solid #e2e5dd;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
body.yucaipa .forms-document-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: #dce7dc;
    color: #233c34;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}
body.yucaipa .forms-document-meta {
    color: #497568;
    letter-spacing: .12em;
    font-weight: 700;
    font-size: .72rem;
    margin-bottom: 12px;
}
body.yucaipa .forms-document-card h3 {
    color: #233c34;
    font-size: clamp(1.35rem,2vw,1.8rem);
    line-height: 1.25;
    margin: 0 0 14px;
}
body.yucaipa .forms-document-card p {
    color: #53635b;
    line-height: 1.75;
    margin: 0 0 28px;
}
body.yucaipa .forms-document-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
}
body.yucaipa .forms-document-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    text-decoration: none;
    padding: 12px 18px;
    border: 1px solid #233c34;
    border-radius: 8px;
    color: #233c34;
    font-size: .93rem;
    font-weight: 650;
}
body.yucaipa .forms-document-actions a.forms-document-download {
    background: #233c34;
    color: #fff;
}
body.yucaipa .forms-document-actions a:hover {
    background: #3d6656;
    color: #fff;
}
body.yucaipa .forms-document-actions a:focus-visible {
    outline: 3px solid #497568;
    outline-offset: 3px;
}
body.yucaipa .forms-documents-note {
    color: #53635b;
    font-size: .9rem;
    line-height: 1.7;
    margin: 24px 0 0;
}
body.yucaipa .forms-documents-note i {
    color: #497568;
    margin-right: 8px;
}
@media (max-width:700px) {
    body.yucaipa .forms-documents-grid {
        grid-template-columns: 1fr;
    }
    body.yucaipa .forms-document-card {
        padding: 25px;
    }
}


/* ==========================================================
   RIALTO - SMILING PATIENTS HERO
========================================================== */

body.rialto .rialto-hero {
    position: relative;
    display: flex;
    align-items: center;

    min-height: 650px;

    background-image:
        linear-gradient(
            90deg,
            rgba(20, 35, 43, 0.78) 0%,
            rgba(20, 35, 43, 0.52) 43%,
            rgba(20, 35, 43, 0.08) 100%
        ),
        url("../images/rialto-smiling-patients.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    color: #ffffff;
}

body.rialto .rialto-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

body.rialto .rialto-hero .eyebrow {
    color: #f0e6d6;
    margin-bottom: 22px;
}

body.rialto .rialto-hero h1 {
    color: #ffffff;
    max-width: 650px;
    margin-bottom: 25px;
}

body.rialto .rialto-hero p {
    color: #f2eee7;
    max-width: 530px;
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 32px;
}

body.rialto .rialto-hero .btn {
    background: #fbf9f4;
    color: #233c34;
}

body.rialto .rialto-hero .btn:hover {
    background: #e7e0d2;
}

/* Tablet */

@media (max-width: 900px) {

    body.rialto .rialto-hero {
        min-height: 550px;
        background-position: 60% center;
    }

}

/* Mobile */

@media (max-width: 600px) {

    body.rialto .rialto-hero {
        min-height: 580px;
        background-position: 65% center;

        background-image:
            linear-gradient(
                90deg,
                rgba(20, 35, 43, 0.82),
                rgba(20, 35, 43, 0.45)
            ),
            url("../images/rialto-smiling-patients.jpg");
    }

    body.rialto .rialto-hero p {
        font-size: 1rem;
    }

}



/* ==========================================================
   RIALTO - TOP BANNER & HERO ALIGNMENT
========================================================== */

/* Rialto Top Information Bar */

body.rialto .topline {
    background: #122c4f;
    color: #ffffff;
}

/* Rialto Hero Section */

body.rialto .rialto-hero {
    background-position: center center;
}

/* Align Hero Text with Website Navigation */

body.rialto .rialto-hero .rialto-hero-content {
    width: min(1120px, 92%);
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
    padding-right: 0;
}

/* Hero Heading */

body.rialto .rialto-hero h1 {
    max-width: 650px;
}

/* Hero Description */

body.rialto .rialto-hero p {
    max-width: 530px;
}

/* Mobile Adjustments */

@media (max-width: 600px) {

    body.rialto .rialto-hero .rialto-hero-content {
        width: 90%;
    }

    body.rialto .rialto-hero h1 {
        max-width: 100%;
    }

    body.rialto .rialto-hero p {
        max-width: 100%;
    }

}

/* ==========================================================
   RIALTO ONLY — ELEGANT HEADER AND SMILING PATIENTS HERO
   Append once to the END of assets/css/style.css.
   All rules are scoped to body.rialto.
========================================================== */

body.rialto .topline {
    background: #122c4f;
    color: #ffffff;
}

body.rialto .rialto-header {
    background: #f7f3ed;
    border-bottom: 1px solid #e5dfd5;
}

body.rialto .rialto-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    min-height: 105px;
}

body.rialto .rialto-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

body.rialto .rialto-nav-links a {
    color: #122c4f;
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color 0.3s ease;
}

body.rialto .rialto-nav-links a:hover,
body.rialto .rialto-nav-links a[aria-current="page"] {
    color: #a47732;
}

body.rialto .rialto-nav-links a:focus-visible,
body.rialto .rialto-logo-link:focus-visible {
    outline: 2px solid #a47732;
    outline-offset: 5px;
}

body.rialto .rialto-logo-link {
    display: block;
    flex-shrink: 0;
}

body.rialto .rialto-logo-link .logo {
    width: 110px;
    height: auto;
}

/* Hero — image file lives in assets/images/ */
body.rialto .rialto-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 650px;
    background-image:
        linear-gradient(90deg, rgba(20,35,43,.78) 0%, rgba(20,35,43,.52) 43%, rgba(20,35,43,.08) 100%),
        url('../images/rialto-smiling-patients.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
}

/* Remove generic bottom-up overlay, already included in hero background */
body.rialto .rialto-hero::before {
    display: none;
}

body.rialto .rialto-hero .rialto-hero-content {
    position: relative;
    z-index: 1;
    width: min(1120px, 92%);
    max-width: 1120px;
    margin-inline: auto;
    padding: 70px 0;
}

body.rialto .rialto-hero .eyebrow {
    color: #f0e6d6;
    margin-bottom: 22px;
}

body.rialto .rialto-hero h1 {
    color: #ffffff;
    max-width: 650px;
    margin: 0 0 25px;
}

body.rialto .rialto-hero p {
    color: #f2eee7;
    max-width: 530px;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 0 32px;
}

body.rialto .rialto-hero .btn {
    background: #fbf9f4;
    color: #122c4f;
}

body.rialto .rialto-hero .btn:hover {
    background: #e7e0d2;
}

@media (max-width: 850px) {
    body.rialto .rialto-navigation {
        flex-direction: column-reverse;
        justify-content: center;
        gap: 20px;
        padding: 25px 0;
    }

    body.rialto .rialto-nav-links {
        justify-content: center;
        gap: 14px 22px;
    }

    body.rialto .rialto-logo-link .logo {
        width: 95px;
    }
}

@media (max-width: 600px) {
    body.rialto .rialto-hero {
        min-height: 580px;
        background-position: 65% center;
        background-image:
            linear-gradient(90deg, rgba(20,35,43,.82), rgba(20,35,43,.45)),
            url('../images/rialto-smiling-patients.webp');
    }

    body.rialto .rialto-hero .rialto-hero-content {
        width: 90%;
    }

    body.rialto .rialto-hero h1,
    body.rialto .rialto-hero p {
        max-width: 100%;
    }

    body.rialto .rialto-hero p {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.rialto .rialto-nav-links a {
        transition: none;
    }
}


/* ==========================================================
   RIALTO - OFFICE INFORMATION
========================================================== */

body.rialto .rialto-office-info {
    background: #f7f3ed;
    padding: 55px 0 65px;
    border-bottom: 1px solid #e5dfd5;
}

/* Section Heading */

body.rialto .rialto-office-heading {
    color: #a47732;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 35px;
}

/* Four Column Layout */

body.rialto .rialto-office-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 30px;
}

/* Individual Office Information */

body.rialto .rialto-office-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Icons */

body.rialto .rialto-office-icon {
    color: #a47732;
    font-size: 1.25rem;
    flex-shrink: 0;
    padding-top: 3px;
}

/* Headings */

body.rialto .rialto-office-details h3 {
    color: #122c4f;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 12px;
}

/* Descriptions */

body.rialto .rialto-office-details p {
    color: #536273;
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

/* Tablet */

@media (max-width: 900px) {

    body.rialto .rialto-office-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 35px;
    }

}

/* Mobile */

@media (max-width: 600px) {

    body.rialto .rialto-office-info {
        padding: 45px 0;
    }

    body.rialto .rialto-office-heading {
        font-size: 0.68rem;
        line-height: 1.8;
    }

    body.rialto .rialto-office-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

}


/* ==========================================================
   RIALTO - STICKY NAVIGATION
========================================================== */

body.rialto .rialto-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #f7f3ed;
    box-shadow: 0 4px 20px rgba(18, 44, 79, 0.08);
}

/* Keep anchor targets visible below the menu */

body.rialto #about,
body.rialto #services {
    scroll-margin-top: 125px;
}

/* ==========================================================
   RIALTO - ELEGANT WELCOME SECTION
========================================================== */

body.rialto .rialto-welcome {
    background: #ffffff;
    padding: 110px 0 120px;
    text-align: center;
}

body.rialto .rialto-welcome-inner {
    max-width: 900px;
    margin: 0 auto;
}

body.rialto .rialto-welcome-eyebrow {
    color: #a47732;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1.8;
    margin-bottom: 25px;
}

body.rialto .rialto-welcome-line {
    width: 65px;
    height: 2px;
    background: #c5a46d;
    margin: 0 auto 35px;
}

body.rialto .rialto-welcome h2 {
    color: #122c4f;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: -0.025em;
    margin: 0 auto 35px;
    max-width: 850px;
}

body.rialto .rialto-welcome h2 span {
    display: block;
    color: #a47732;
}

body.rialto .rialto-welcome-intro {
    color: #122c4f;
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 720px;
    margin: 0 auto 22px;
}

body.rialto .rialto-welcome-description {
    color: #536273;
    font-size: 1.05rem;
    line-height: 1.95;
    max-width: 760px;
    margin: 0 auto 40px;
}

body.rialto .rialto-welcome-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 30px;
    border: 1px solid #122c4f;
    border-radius: 40px;
    color: #122c4f;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.25s ease,
                color 0.25s ease;
}

body.rialto .rialto-welcome-button:hover {
    background: #122c4f;
    color: #ffffff;
}

/* Tablet */

@media (max-width: 850px) {

    body.rialto .rialto-welcome {
        padding: 80px 0;
    }

    body.rialto #about,
    body.rialto #services {
        scroll-margin-top: 190px;
    }

}

/* Mobile */

@media (max-width: 600px) {

    body.rialto .rialto-welcome {
        padding: 65px 0 75px;
    }

    body.rialto .rialto-welcome h2 {
        font-size: clamp(2.1rem, 9vw, 3rem);
    }

    body.rialto .rialto-welcome-intro {
        font-size: 1.1rem;
    }

    body.rialto .rialto-welcome-description {
        font-size: 1rem;
    }

}

/* RIALTO - WELCOME SPACING REFINEMENT */

body.rialto .rialto-welcome {
    padding-top: 85px;
}

@media (max-width: 600px) {
    body.rialto .rialto-welcome {
        padding-top: 60px;
    }
}


/* ==========================================================
   RIALTO - ELEGANT DENTAL SERVICES
========================================================== */

body.rialto .rialto-services {
    background: #f7f3ed;
    padding: 105px 0 115px;
}

/* Section Heading */

body.rialto .rialto-services-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 65px;
}

body.rialto .rialto-services-eyebrow {
    color: #a47732;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    margin-bottom: 22px;
}

body.rialto .rialto-services-heading h2 {
    color: #122c4f;
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    font-weight: 500;
    line-height: 1.2;
    margin: 0 0 22px;
}

body.rialto .rialto-services-heading p {
    color: #536273;
    font-size: 1.05rem;
    line-height: 1.85;
    margin: 0;
}

/* Three Column Grid */

body.rialto .rialto-services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* Individual Service Cards */

body.rialto .rialto-service-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e6dfd4;
    border-radius: 8px;
    padding: 38px 32px 65px;
    min-height: 280px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

body.rialto .rialto-service-card:hover {
    transform: translateY(-5px);
    border-color: #c5a46d;
    box-shadow: 0 14px 35px rgba(18, 44, 79, 0.08);
}

/* Icons */

body.rialto .rialto-service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    margin-bottom: 28px;
    background: #f7f3ed;
    border: 1px solid #e6dfd4;
    border-radius: 50%;
    color: #a47732;
    font-size: 1.35rem;
}

/* Service Titles */

body.rialto .rialto-service-card h3 {
    color: #122c4f;
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.35;
    margin: 0 0 16px;
}

/* Service Descriptions */

body.rialto .rialto-service-card p {
    color: #536273;
    font-size: 0.95rem;
    line-height: 1.85;
    margin: 0;
}

/* Service Number */

body.rialto .rialto-service-number {
    position: absolute;
    bottom: 25px;
    right: 30px;
    color: #c5a46d;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

/* Contact Area */

body.rialto .rialto-services-cta {
    text-align: center;
    margin-top: 65px;
}

body.rialto .rialto-services-cta p {
    color: #536273;
    font-size: 1.05rem;
    margin-bottom: 25px;
}

body.rialto .rialto-services-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 16px 32px;
    background: #122c4f;
    color: #ffffff;
    border-radius: 40px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.25s ease;
}

body.rialto .rialto-services-button:hover {
    background: #a47732;
    color: #ffffff;
}

/* Tablet */

@media (max-width: 900px) {

    body.rialto .rialto-services {
        padding: 80px 0;
    }

    body.rialto .rialto-services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* Mobile */

@media (max-width: 600px) {

    body.rialto .rialto-services {
        padding: 65px 0;
    }

    body.rialto .rialto-services-heading {
        margin-bottom: 40px;
    }

    body.rialto .rialto-services-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    body.rialto .rialto-service-card {
        min-height: auto;
        padding: 30px 26px 60px;
    }

    body.rialto .rialto-service-card h3 {
        font-size: 1.3rem;
    }

}


/* ==========================================================
   RIALTO - CARE FOR EVERY SMILE BANNER
========================================================== */

body.rialto .rialto-smiles-banner {
    display: grid;
    grid-template-columns: 60% 40%;
    background: #f7f3ed;
    min-height: 480px;
    overflow: hidden;
}

body.rialto .rialto-smiles-image {
    position: relative;
    min-height: 480px;
    overflow: hidden;
}

body.rialto .rialto-smiles-image img {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    object-fit: cover;
    object-position: center;
}

body.rialto .rialto-smiles-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 65px clamp(30px, 5vw, 90px);
}

body.rialto .rialto-smiles-eyebrow {
    color: #a47732;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    margin-bottom: 28px;
}

body.rialto .rialto-smiles-content h2 {
    color: #122c4f;
    font-size: clamp(2.6rem, 4vw, 4.5rem);
    font-weight: 500;
    line-height: 1.15;
    margin: 0;
}

body.rialto .rialto-smiles-line {
    width: 65px;
    height: 2px;
    background: #a47732;
    margin: 30px 0;
}

body.rialto .rialto-smiles-content p {
    color: #536273;
    font-size: 1.1rem;
    line-height: 1.9;
    max-width: 410px;
    margin: 0;
}

/* Tablet */

@media (max-width: 900px) {

    body.rialto .rialto-smiles-banner {
        grid-template-columns: 55% 45%;
    }

    body.rialto .rialto-smiles-content {
        padding: 40px 30px;
    }

    body.rialto .rialto-smiles-content h2 {
        font-size: 2.6rem;
    }

}

/* Mobile */

@media (max-width: 650px) {

    body.rialto .rialto-smiles-banner {
        grid-template-columns: 1fr;
    }

    body.rialto .rialto-smiles-image {
        min-height: 300px;
    }

    body.rialto .rialto-smiles-content {
        padding: 55px 7%;
    }

    body.rialto .rialto-smiles-content h2 {
        font-size: 2.8rem;
    }

}


/* ==========================================================
   RIALTO - ELEGANT FOOTER
========================================================== */

body.rialto .rialto-footer {
    background: #f7f3ed;
    color: #122c4f;
    border-top: 1px solid #e6dfd4;
}

body.rialto .rialto-footer-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.3fr 1.3fr 0.8fr;
    gap: 35px;
    padding-top: 65px;
    padding-bottom: 65px;
    align-items: start;
}

/* Logo */

body.rialto .rialto-footer-logo {
    width: 140px;
    max-width: 100%;
    height: auto;
}

/* Office Information */

body.rialto .rialto-footer-office h3,
body.rialto .rialto-footer-links h3 {
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: #122c4f;
    margin: 0 0 20px;
}

body.rialto .rialto-footer-office h3 i {
    color: #a47732;
    margin-right: 8px;
}

body.rialto .rialto-footer-office p {
    color: #536273;
    line-height: 1.8;
    font-size: 0.95rem;
    margin: 0 0 15px;
}

body.rialto .rialto-footer-office > a {
    display: block;
    color: #536273;
    font-size: 0.9rem;
    text-decoration: none;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

body.rialto .rialto-footer-office > a i {
    color: #a47732;
    margin-right: 8px;
}

body.rialto .rialto-footer-office > a:hover {
    color: #a47732;
}

/* Navigation */

body.rialto .rialto-footer-links nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

body.rialto .rialto-footer-links a {
    color: #536273;
    text-decoration: none;
    font-size: 0.95rem;
}

body.rialto .rialto-footer-links a:hover {
    color: #a47732;
}

/* Copyright Bar */

body.rialto .rialto-footer-bottom {
    background: #122c4f;
    color: #ffffff;
}

body.rialto .rialto-footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 23px;
    padding-bottom: 23px;
    font-size: 0.85rem;
}

body.rialto .rialto-footer-bottom a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
}

body.rialto .rialto-footer-bottom a:hover {
    color: #c5a46d;
}

/* Tablet */

@media (max-width: 950px) {

    body.rialto .rialto-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }

}

/* Mobile */

@media (max-width: 600px) {

    body.rialto .rialto-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-top: 45px;
        padding-bottom: 45px;
    }

    body.rialto .rialto-footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

}


/* ==========================================================
   RIALTO - SMOOTH IMAGE FADE & SECTION SEPARATION
========================================================== */

/* Keep the image section cream */

body.rialto .rialto-smiles-banner {
    background: #f7f3ed;
}

/* Fade photograph into the cream background */

body.rialto .rialto-smiles-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background: linear-gradient(
        to right,
        rgba(247, 243, 237, 0) 58%,
        rgba(247, 243, 237, 0.25) 73%,
        rgba(247, 243, 237, 0.70) 89%,
        #f7f3ed 100%
    );
}

/* Give Dental Services a distinct white background */

body.rialto .rialto-services {
    background: #ffffff;
}

/* Keep the cards slightly differentiated from white */

body.rialto .rialto-service-card {
    background: #faf8f5;
    border-color: #e6dfd4;
}

/* Make the image fill its area without blank space */

body.rialto .rialto-smiles-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================
   RESPONSIVE ADJUSTMENTS
========================================================== */

@media (max-width: 650px) {

    /* Mobile stacks the photograph above the text.
       Fade downward instead of to the right. */

    body.rialto .rialto-smiles-image::after {
        background: linear-gradient(
            to bottom,
            rgba(247, 243, 237, 0) 55%,
            rgba(247, 243, 237, 0.45) 80%,
            #f7f3ed 100%
        );
    }

}


/* ==========================================
   RIALTO - ABOUT & TEAM
=========================================== */

body.rialto .rialto-about-team {
    background: #f7f3ed;
    padding: 95px 0 105px;
}

body.rialto .rialto-section-label {
    color: #a47732;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 22px;
}

body.rialto .rialto-about-intro {
    max-width: 850px;
    margin: 0 auto 85px;
    text-align: center;
}

body.rialto .rialto-about-intro h2,
body.rialto .rialto-team-heading h2 {
    color: #122c4f;
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    line-height: 1.2;
    font-weight: 500;
    margin: 0 0 30px;
}

body.rialto .rialto-about-intro h2 span {
    display: block;
    color: #a47732;
}

body.rialto .rialto-about-intro p {
    color: #536273;
    font-size: 1.05rem;
    line-height: 1.9;
    margin: 0 0 20px;
}

body.rialto .rialto-team-heading {
    text-align: center;
    margin-bottom: 40px;
}

body.rialto .rialto-team-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

body.rialto .rialto-team-panel {
    background: #ffffff;
    border: 1px solid #e6dfd4;
    border-top: 3px solid #c5a46d;
    border-radius: 8px;
    padding: 38px;
}

body.rialto .rialto-team-panel-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

body.rialto .rialto-team-panel-heading i {
    color: #a47732;
    font-size: 1.5rem;
}

body.rialto .rialto-team-panel h3 {
    color: #122c4f;
    font-size: 1.5rem;
    margin: 0;
}

body.rialto .rialto-team-panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

body.rialto .rialto-team-panel li {
    padding: 14px 0;
    color: #122c4f;
    border-bottom: 1px solid #eee9e1;
    font-size: 1rem;
}

body.rialto .rialto-team-panel li:last-child {
    border-bottom: 0;
}

body.rialto .rialto-team-panel li span {
    display: block;
    color: #536273;
    font-size: 0.85rem;
    margin-top: 5px;
}

@media (max-width: 700px) {
    body.rialto .rialto-about-team {
        padding: 65px 0;
    }

    body.rialto .rialto-team-grid {
        grid-template-columns: 1fr;
    }

    body.rialto .rialto-team-panel {
        padding: 28px;
    }
}


/* RIALTO - FOOTER REFINEMENTS */

body.rialto .rialto-footer-brand p {
    color: #536273;
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 240px;
    margin: 20px 0 0;
}

body.rialto .rialto-footer-office a {
    overflow-wrap: anywhere;
}

body.rialto .rialto-footer-links a,
body.rialto .rialto-footer-office a {
    transition: color 0.25s ease;
}


/* ==========================================================
   RIALTO - BACK TO TOP BUTTON
========================================================== */

body.rialto .rialto-back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1100;

    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #122c4f;
    color: #ffffff;
    border: 1px solid #c5a46d;
    border-radius: 50%;

    font-size: 1.1rem;
    cursor: pointer;

    box-shadow: 0 8px 25px rgba(18, 44, 79, 0.2);

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease,
        background 0.3s ease;
}

/* Visible after scrolling */

body.rialto .rialto-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Hover */

body.rialto .rialto-back-to-top:hover {
    background: #a47732;
    transform: translateY(-4px);
}

/* Keyboard accessibility */

body.rialto .rialto-back-to-top:focus-visible {
    outline: 3px solid #c5a46d;
    outline-offset: 4px;
}

/* Mobile */

@media (max-width: 600px) {
    body.rialto .rialto-back-to-top {
        width: 46px;
        height: 46px;
        bottom: 20px;
        right: 20px;
    }
}

/* Reduced motion preference */

@media (prefers-reduced-motion: reduce) {
    body.rialto .rialto-back-to-top {
        transition: none;
    }
}


/* ==========================================================
   RIALTO - PHOTOGRAPHIC FOOTER BANNER
========================================================== */

body.rialto .rialto-footer-feature {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 440px;
    padding: 85px 0;

    background-image:
        linear-gradient(
            90deg,
            rgba(18, 44, 79, 0.94) 0%,
            rgba(18, 44, 79, 0.85) 45%,
            rgba(18, 44, 79, 0.35) 100%
        ),
        url("../images/rialto-diverse-smiles.webp");

    background-size: cover;
    background-position: center 42%;
    background-repeat: no-repeat;
}

body.rialto .rialto-footer-feature-content {
    position: relative;
    z-index: 1;
    color: #ffffff;
}

body.rialto .rialto-footer-feature-eyebrow {
    color: #c5a46d;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    margin-bottom: 25px;
}

body.rialto .rialto-footer-feature h2 {
    color: #ffffff;
    font-size: clamp(2.7rem, 5vw, 4.8rem);
    font-weight: 500;
    line-height: 1.15;
    max-width: 750px;
    margin: 0 0 25px;
}

body.rialto .rialto-footer-feature h2 span {
    display: block;
    color: #e5c999;
}

body.rialto .rialto-footer-feature p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 550px;
    margin: 0 0 30px;
}

body.rialto .rialto-footer-feature-button {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: #f7f3ed;
    color: #122c4f;
    padding: 15px 30px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.25s ease,
                transform 0.25s ease;
}

body.rialto .rialto-footer-feature-button:hover {
    background: #e5c999;
    transform: translateY(-3px);
}

/* Subtle footer separation */

body.rialto .rialto-footer {
    border-top: 4px solid #c5a46d;
}

/* Mobile */

@media (max-width: 650px) {

    body.rialto .rialto-footer-feature {
        min-height: 390px;
        padding: 65px 0;

        background-image:
            linear-gradient(
                rgba(18, 44, 79, 0.88),
                rgba(18, 44, 79, 0.68)
            ),
            url("../images/rialto-diverse-smiles.webp");

        background-position: center;
    }

    body.rialto .rialto-footer-feature h2 {
        font-size: 2.6rem;
    }

}


/* RIALTO - FOOTER HEADING ACCENTS */

body.rialto .rialto-footer-office h3::after,
body.rialto .rialto-footer-links h3::after {
    content: "";
    display: block;
    width: 35px;
    height: 2px;
    background: #c5a46d;
    margin-top: 12px;
}

body.rialto .rialto-footer-links a:hover,
body.rialto .rialto-footer-office a:hover {
    color: #a47732;
}


/* ==========================================================
   RIALTO - CENTER DOCTORS & TEAM CARDS
========================================================== */

/* Center all content inside each card */

body.rialto .rialto-team-panel {
    text-align: center;
}

/* Center the icons and headings */

body.rialto .rialto-team-panel-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    margin-bottom: 30px;
}

/* Center the heading */

body.rialto .rialto-team-panel-heading h3 {
    text-align: center;
    margin: 0;
}

/* Center the icons */

body.rialto .rialto-team-panel-heading i {
    font-size: 1.8rem;
    color: #a47732;
    margin: 0;
}

/* Center the names */

body.rialto .rialto-team-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

/* Center each individual name */

body.rialto .rialto-team-panel li {
    text-align: center;
    padding: 16px 0;
}

/* Center job titles */

body.rialto .rialto-team-panel li span {
    display: block;
    text-align: center;
    margin-top: 5px;
    color: #536273;
    font-size: 0.85rem;
}


/* ==========================================================
   RIALTO CONTACT - FOOTER PHOTO BANNER
========================================================== */

/* Contact page uses its own footer photograph */

body.rialto .rialto-contact-footer-feature {
    background-image:
        linear-gradient(
            90deg,
            rgba(18, 44, 79, 0.94) 0%,
            rgba(18, 44, 79, 0.80) 35%,
            rgba(18, 44, 79, 0.15) 75%,
            rgba(18, 44, 79, 0.05) 100%
        ),
        url("../images/contact-footer.webp");

    background-size: cover;
    background-position: center 45%;
    background-repeat: no-repeat;
}

/* Mobile adjustments */

@media (max-width: 650px) {

    body.rialto .rialto-contact-footer-feature {
        background-image:
            linear-gradient(
                rgba(18, 44, 79, 0.88),
                rgba(18, 44, 79, 0.65)
            ),
            url("../images/contact-footer.webp");

        background-position: 65% center;
    }

}


/* ==========================================================
   01. RIALTO CONTACT - HERO
   Matches the Rialto homepage hero layout
========================================================== */

/* Contact page hero background */

body.rialto .hero.rialto-hero.rialto-contact-hero {
    position: relative;
    min-height: 570px;

    display: flex;
    align-items: center;

    background-image: url("../images/contact-us-hero.webp");
    background-position: center 44%;
    background-size: cover;
    background-repeat: no-repeat;

    color: #ffffff;
    isolation: isolate;
}

/* Soft navy fade from left to right */

body.rialto .hero.rialto-hero.rialto-contact-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        90deg,
        rgba(18, 44, 79, 0.88) 0%,
        rgba(18, 44, 79, 0.72) 30%,
        rgba(18, 44, 79, 0.25) 65%,
        rgba(18, 44, 79, 0.03) 100%
    );
}

/* Match homepage content positioning */

body.rialto .rialto-contact-hero .rialto-hero-content {
    box-sizing: border-box;

    width: min(1120px, 92%);
    max-width: 1120px;

    margin-inline: auto;
    padding: 85px 0;

    position: relative;
    z-index: 1;
}

/* Small heading above title */

body.rialto .rialto-contact-hero .eyebrow {
    color: #f0d5a5;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

/* Main title */

body.rialto .rialto-contact-hero h1 {
    color: #ffffff;
    font-size: clamp(3.5rem, 6vw, 5.7rem);
    line-height: 1.08;
    margin: 0 0 24px;
}

/* Description */

body.rialto .rialto-contact-hero p {
    color: #ffffff;
    font-size: 1.17rem;
    line-height: 1.8;
    max-width: 570px;
    margin: 0 0 28px;
}

/* Button spacing */

body.rialto .rialto-contact-hero .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================
   MOBILE HERO ADJUSTMENTS
========================================================== */

@media (max-width: 600px) {

    body.rialto .hero.rialto-hero.rialto-contact-hero {
        min-height: 460px;
        background-position: 60% center;
    }

    body.rialto .hero.rialto-hero.rialto-contact-hero::before {
        background: linear-gradient(
            90deg,
            rgba(18, 44, 79, 0.90),
            rgba(18, 44, 79, 0.55)
        );
    }

    body.rialto .rialto-contact-hero .rialto-hero-content {
        width: 90%;
        padding: 65px 0;
    }

    body.rialto .rialto-contact-hero h1 {
        font-size: clamp(3rem, 10vw, 4.2rem);
    }

}


/* RIALTO - SINGLE TEAM PANEL */

.rialto-team-grid {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 850px;
    margin: 0 auto;
}

.rialto-team-panel {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 35px 50px;
}

.rialto-team-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rialto-team-panel li {
    text-align: center;
    padding: 18px 10px;
    border-bottom: 1px solid #eee8df;
}

.rialto-team-panel li:last-child {
    border-bottom: none;
}

.rialto-team-panel li span {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #697487;
}

@media (max-width: 768px) {
    .rialto-team-panel {
        padding: 25px 20px;
    }
}


/* RIALTO TEAM - CENTER SINGLE PANEL */

.rialto-team-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.rialto-team-grid .rialto-team-panel {
    width: 100%;
    max-width: 650px;
    min-height: 0;
    height: auto;
    margin: 0 auto;
    flex: 0 1 650px;
}

@media (max-width: 768px) {
    .rialto-team-grid {
        padding: 0 16px;
    }

    .rialto-team-grid .rialto-team-panel {
        max-width: 100%;
        padding: 28px 20px;
    }
}


/* ==========================================
   RIALTO - SINGLE CENTERED TEAM PANEL
   FINAL OVERRIDE
========================================== */

body.rialto .rialto-about-team .rialto-team-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    gap: 0;
}

body.rialto .rialto-about-team .rialto-team-panel {
    flex: 0 1 650px;
    width: 100%;
    max-width: 650px;
    min-width: 0;
    height: auto;
    margin: 0 auto;
    padding: 38px 45px;
    text-align: center;
}

body.rialto .rialto-about-team .rialto-team-panel-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 14px;
}

body.rialto .rialto-about-team .rialto-team-panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}

body.rialto .rialto-about-team .rialto-team-panel li {
    text-align: center;
}

@media (max-width: 700px) {
    body.rialto .rialto-about-team .rialto-team-panel {
        flex: 1 1 100%;
        max-width: 100%;
        padding: 28px 22px;
    }
}


/* ==========================================
   RIALTO - FEATURED DOCTOR + TWO COLUMN TEAM
========================================== */

body.rialto .rialto-about-team .rialto-team-grid {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

body.rialto .rialto-about-team .rialto-team-unified {
    width: 100%;
    max-width: 800px;
    flex: 0 1 800px;
    margin: 0 auto;
    padding: 45px 55px;
    text-align: center;
    height: auto;
}

/* Featured Doctor */

body.rialto .rialto-featured-doctor {
    text-align: center;
    padding: 10px 0 30px;
}

body.rialto .rialto-featured-doctor i {
    display: block;
    color: #a47732;
    font-size: 2rem;
    margin-bottom: 20px;
}

body.rialto .rialto-featured-doctor h3 {
    color: #122c4f;
    font-size: 1.75rem;
    margin: 0 0 10px;
}

body.rialto .rialto-featured-doctor span {
    color: #536273;
    font-size: 0.9rem;
}

/* Champagne Divider */

body.rialto .rialto-team-divider {
    width: 75%;
    height: 1px;
    background: #e6dfd4;
    margin: 0 auto 35px;
}

/* Team Heading */

body.rialto .rialto-team-unified
.rialto-team-panel-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

/* Two-column Team Members */

body.rialto .rialto-team-unified
.rialto-team-members {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 35px;
    list-style: none;
    padding: 0;
    margin: 0;
}

body.rialto .rialto-team-unified
.rialto-team-members li {
    padding: 18px 8px;
    text-align: center;
    border-bottom: 1px solid #eee9e1;
}

/* Mobile */

@media (max-width: 600px) {
    body.rialto .rialto-about-team
    .rialto-team-unified {
        padding: 32px 20px;
    }

    body.rialto .rialto-team-unified
    .rialto-team-members {
        grid-template-columns: 1fr;
        gap: 0;
    }

    body.rialto .rialto-featured-doctor h3 {
        font-size: 1.5rem;
    }
}


/* RIALTO - THREE STAFF + TWO STAFF LAYOUT */

body.rialto .rialto-team-unified
.rialto-team-members {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: 15px;
    row-gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

/* First three staff across one row */
body.rialto .rialto-team-unified
.rialto-team-members li:nth-child(-n+3) {
    grid-column: span 2;
}

/* Last two staff across second row */
body.rialto .rialto-team-unified
.rialto-team-members li:nth-child(n+4) {
    grid-column: span 3;
}

/* Individual members */
body.rialto .rialto-team-unified
.rialto-team-members li {
    text-align: center;
    padding: 22px 8px;
    border-bottom: 1px solid #eee9e1;
}

/* Mobile: stack all names */
@media (max-width: 600px) {
    body.rialto .rialto-team-unified
    .rialto-team-members {
        grid-template-columns: 1fr;
    }

    body.rialto .rialto-team-unified
    .rialto-team-members li {
        grid-column: 1 / -1;
    }
}


/* ==========================================
   RIALTO TEAM - MOBILE OPTIMIZATION
========================================== */

/* Tablets */
@media (max-width: 850px) {

    body.rialto .rialto-about-team {
        padding: 70px 0;
    }

    body.rialto .rialto-team-heading {
        margin-bottom: 30px;
    }

    body.rialto .rialto-about-team
    .rialto-team-unified {
        width: 100%;
        max-width: 100%;
        padding: 35px 30px;
    }

    body.rialto .rialto-team-unified
    .rialto-team-members {
        column-gap: 10px;
    }
}

/* Mobile phones */
@media (max-width: 600px) {

    body.rialto .rialto-about-team {
        padding: 55px 0 65px;
    }

    body.rialto .rialto-about-intro {
        margin-bottom: 55px;
    }

    body.rialto .rialto-team-heading {
        margin-bottom: 28px;
    }

    body.rialto .rialto-team-heading h2 {
        font-size: clamp(2rem, 8vw, 2.7rem);
        margin-bottom: 0;
    }

    /* Single centered panel */
    body.rialto .rialto-about-team
    .rialto-team-grid {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 0;
    }

    body.rialto .rialto-about-team
    .rialto-team-unified {
        flex: 1 1 100%;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 30px 20px;
    }

    /* Doctor */
    body.rialto .rialto-featured-doctor {
        padding: 5px 0 25px;
    }

    body.rialto .rialto-featured-doctor i {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    body.rialto .rialto-featured-doctor h3 {
        font-size: 1.45rem;
        line-height: 1.35;
    }

    /* Divider */
    body.rialto .rialto-team-divider {
        width: 90%;
        margin-bottom: 28px;
    }

    /* Team heading */
    body.rialto .rialto-team-unified
    .rialto-team-panel-heading {
        margin-bottom: 12px;
    }

    /* Stack team members vertically */
    body.rialto .rialto-team-unified
    .rialto-team-members {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        width: 100%;
    }

    body.rialto .rialto-team-unified
    .rialto-team-members li,
    body.rialto .rialto-team-unified
    .rialto-team-members li:nth-child(-n+3),
    body.rialto .rialto-team-unified
    .rialto-team-members li:nth-child(n+4) {
        grid-column: 1 / -1;
        padding: 17px 8px;
        font-size: 0.95rem;
        line-height: 1.5;
        text-align: center;
    }

    body.rialto .rialto-team-unified
    .rialto-team-members li:last-child {
        border-bottom: none;
    }

    body.rialto .rialto-team-unified
    .rialto-team-members li span {
        display: block;
        margin-top: 5px;
        font-size: 0.82rem;
    }
}

