
/* ==========================================================
   DOSSANTOS DENTAL - RIALTO CONTACT PAGE
   ==========================================================

   STYLESHEET: rialto-contact.css

   All styles are scoped to body.rialto.

   SECTIONS:
   01. Contact Hero
   02. Contact Introduction
   03. Contact Information Cards
   04. Buttons
   05. Google Map
   06. Email Section
   07. Footer Refinements
   08. Sticky Navigation
   09. Back to Top Button
   10. Responsive - Tablet
   11. Responsive - Mobile
   12. Accessibility

========================================================== */


/* ==========================================================
   01. RIALTO CONTACT - HERO
========================================================== */

body.rialto .rialto-contact-hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;

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

    color: #ffffff;
    isolation: isolate;
}

/* Navy gradient overlay */

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

    background: linear-gradient(
        90deg,
        rgba(18, 44, 79, 0.97) 0%,
        rgba(18, 44, 79, 0.88) 35%,
        rgba(18, 44, 79, 0.30) 100%
    );
}

/* Hero content alignment */

body.rialto .rialto-contact-hero > .wrap {
    box-sizing: border-box;
    width: min(1120px, 92%);
    max-width: 1120px;
    margin-inline: auto;
    padding: 75px 0;
}

/* Hero eyebrow */

body.rialto .rialto-contact-kicker {
    color: #e5c999;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 19px;
}

/* Hero heading */

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

/* Hero description */

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


/* ==========================================================
   02. RIALTO CONTACT - INTRODUCTION
========================================================== */

body.rialto .rialto-contact-main {
    background: #ffffff;
    padding: 78px 0 90px;
}

body.rialto .rialto-contact-intro {
    text-align: center;
    max-width: 740px;
    margin: 0 auto 42px;
}

/* Intro eyebrow */

body.rialto .rialto-contact-intro .eyebrow {
    color: #a47732;
}

/* Intro heading */

body.rialto .rialto-contact-intro h2 {
    color: #122c4f;
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    margin: 12px 0 14px;
}

/* Intro paragraph */

body.rialto .rialto-contact-intro p {
    color: #536273;
    line-height: 1.8;
    margin: 0;
}


/* ==========================================================
   03. RIALTO CONTACT - INFORMATION CARDS
========================================================== */

/* Three-column grid */

body.rialto .rialto-contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 28px;
}

/* Individual cards */

body.rialto .rialto-contact-card {
    background: #f7f3ed;
    border: 1px solid #e8e1d8;
    border-radius: 13px;
    padding: 38px 24px;
    text-align: center;
}

/* Circular icons */

body.rialto .rialto-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 66px;
    height: 66px;
    margin: 0 auto 22px;

    border: 1px solid #b18747;
    border-radius: 50%;

    color: #a47732;
    font-size: 1.4rem;
}

/* Card headings */

body.rialto .rialto-contact-card h3 {
    font-size: 1.55rem;
    color: #122c4f;
    margin: 0 0 14px;
}

/* Card descriptions */

body.rialto .rialto-contact-card p {
    color: #536273;
    line-height: 1.85;
    margin: 0 0 18px;
}

/* Card links */

body.rialto .rialto-contact-card a:not(.rialto-contact-button) {
    color: #122c4f;
    text-decoration: none;
    font-weight: 600;
}

body.rialto .rialto-contact-card a:hover {
    color: #a47732;
}


/* ==========================================================
   04. RIALTO CONTACT - BUTTONS
========================================================== */

body.rialto .rialto-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    background: #122c4f;
    color: #ffffff;

    text-decoration: none;
    border-radius: 100px;

    padding: 13px 25px;

    font-weight: 700;
    font-size: 0.91rem;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}

/* Button hover */

body.rialto .rialto-contact-button:hover {
    background: #a47732;
    color: #ffffff;
    transform: translateY(-2px);
}


/* ==========================================================
   05. RIALTO CONTACT - GOOGLE MAP
========================================================== */

/* Map container */

body.rialto .rialto-contact-map {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8e1d8;
    background: #f7f3ed;
}

/* Embedded Google Map */

body.rialto .rialto-contact-map iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

/* Map information footer */

body.rialto .rialto-contact-map-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;

    padding: 16px 22px;
    color: #536273;
}

/* Directions link */

body.rialto .rialto-contact-map-footer a {
    color: #122c4f;
    font-weight: 700;
    text-decoration: none;
}


/* ==========================================================
   06. RIALTO CONTACT - EMAIL SECTION
========================================================== */

/* Email container */

body.rialto .rialto-contact-email {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin-top: 32px;
    padding: 34px 38px;

    background: #f7f3ed;
    border: 1px solid #e8e1d8;
    border-radius: 13px;
}

/* Email content */

body.rialto .rialto-contact-email-copy {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* Email icon */

body.rialto .rialto-contact-email-copy .rialto-contact-icon {
    margin: 0;
    flex-shrink: 0;
}

/* Email heading */

body.rialto .rialto-contact-email h2 {
    font-size: 1.8rem;
    color: #122c4f;
    margin: 0 0 6px;
}

/* Email description */

body.rialto .rialto-contact-email p {
    color: #536273;
    margin: 0;
    line-height: 1.7;
}

/* Email button */

body.rialto .rialto-contact-email .rialto-contact-button {
    flex-shrink: 0;
}

/* Privacy message */

body.rialto .rialto-contact-privacy {
    margin: 18px 0 0;
    text-align: center;
    font-size: 0.88rem;
    color: #536273;
    line-height: 1.6;
}


/* ==========================================================
   07. RIALTO CONTACT - FOOTER REFINEMENTS
========================================================== */

/* Footer brand description */

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

/* Prevent long email addresses from overflowing */

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

/* Champagne 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;
}


/* ==========================================================
   08. RIALTO CONTACT - STICKY NAVIGATION
========================================================== */

body.rialto .rialto-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}


/* ==========================================================
   09. RIALTO CONTACT - 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,
        visibility 0.3s,
        transform 0.3s,
        background 0.3s;
}

/* Show button after scrolling */

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

/* Hover effect */

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

/* Keyboard focus */

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


/* ==========================================================
   10. RESPONSIVE - TABLET
   Screens 800px and smaller
========================================================== */

@media (max-width: 800px) {

    /* Stack contact cards */

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

    /* Stack email section */

    body.rialto .rialto-contact-email {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Adjust map height */

    body.rialto .rialto-contact-map iframe {
        height: 340px;
    }

}


/* ==========================================================
   11. RESPONSIVE - MOBILE
   Screens 600px and smaller
========================================================== */

@media (max-width: 600px) {

    /* Hero */

    body.rialto .rialto-contact-hero {
        min-height: 360px;
    }

    /* Stronger overlay for readability */

    body.rialto .rialto-contact-hero::before {
        background: rgba(18, 44, 79, 0.78);
    }

    /* Hero content alignment */

    body.rialto .rialto-contact-hero > .wrap {
        width: 90%;
        padding-top: 65px;
        padding-bottom: 65px;
    }

    /* Main section spacing */

    body.rialto .rialto-contact-main {
        padding: 56px 0 65px;
    }

    /* Email section */

    body.rialto .rialto-contact-email {
        padding: 26px 20px;
    }

    body.rialto .rialto-contact-email-copy {
        align-items: flex-start;
        gap: 14px;
    }

    body.rialto .rialto-contact-email h2 {
        font-size: 1.45rem;
    }

    /* Back to top button */

    body.rialto .rialto-back-to-top {
        width: 46px;
        height: 46px;
        bottom: 20px;
        right: 20px;
    }

}


/* ==========================================================
   12. ACCESSIBILITY - REDUCED MOTION
========================================================== */

@media (prefers-reduced-motion: reduce) {

    body.rialto .rialto-back-to-top {
        transition: none;
    }

}
