
/* DR. DEAN MARTIN
   Consistent headings and page spacing
   Desktop + Tablet + Mobile
*/

/* 1. Home page section headings */
.dm-section-heading,
.home-surgeries-heading,
.dm-why-home-section .section-heading {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center !important;
}

.dm-section-heading h2,
.home-surgeries-heading h2,
.dm-why-home-section .section-heading h2 {
    text-align: center !important;
    overflow-wrap: break-word;
}

/* 2. Urgent Care and Surgical Center headings */
.urgent-care-home-section .abt-gmdr,
.urgent-care-home-section .urgent-care-title,
.surgical-center-home-section .abt-gmdr,
.surgical-center-home-section .surgical-center-title {
    text-align: center !important;
    width: 100%;
    max-width: 100%;
    overflow-wrap: break-word;
}

/* 3. Inner-page section headings */
.sc-page .sc-section-heading,
.template-nine-page .dm3-heading,
.uc9-section-heading,
.dm-contact-page .dm-contact-intro,
.dm-contact-page .dm-contact-location-heading {
    text-align: center !important;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.sc-page .sc-section-heading h2,
.template-nine-page .dm3-heading h2,
.uc9-section-heading h2,
.dm-contact-page .dm-contact-intro h1,
.dm-contact-page .dm-contact-intro h2,
.dm-contact-page .dm-contact-location-heading h2 {
    text-align: center !important;
    overflow-wrap: break-word;
}

/* 4. Page banner titles */
.banner-caption-inside h1 {
    text-align: center !important;
    overflow-wrap: break-word;
}

/* 5. Specialization page hero heading */
.dm-spec-hero-content h1 {
    text-align: center !important;
    overflow-wrap: break-word;
}

/* 6. Consistent section heading spacing */
.dm-section-heading,
.home-surgeries-heading,
.sc-page .sc-section-heading,
.template-nine-page .dm3-heading,
.uc9-section-heading,
.dm-contact-page .dm-contact-intro {
    margin-bottom: 30px;
}

/* 7. Keep contact information readable */
.dm-contact-page .dm-contact-info-item,
.dm-contact-page .dm-contact-info-text,
.dm-contact-page .dm-contact-info-text h3,
.dm-contact-page .dm-contact-info-text p {
    text-align: left !important;
}

/* 8. Tablet and mobile adjustments */
@media (max-width: 991px) {
    .dm-section-heading h2,
    .home-surgeries-heading h2,
    .urgent-care-title,
    .surgical-center-title,
    .sc-page .sc-section-heading h2,
    .template-nine-page .dm3-heading h2,
    .uc9-section-heading h2 {
        font-size: clamp(24px, 5vw, 34px) !important;
        line-height: 1.3 !important;
    }
}

/* 9. Mobile spacing */
@media (max-width: 767px) {
    .dm-section-heading,
    .home-surgeries-heading,
    .sc-page .sc-section-heading,
    .template-nine-page .dm3-heading,
    .uc9-section-heading,
    .dm-contact-page .dm-contact-intro {
        margin-bottom: 22px !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    .dm-section-heading h2,
    .home-surgeries-heading h2,
    .urgent-care-title,
    .surgical-center-title {
        font-size: 26px !important;
        line-height: 1.3 !important;
    }

    .dm-section-heading p,
    .home-surgeries-heading p {
        max-width: 100%;
        overflow-wrap: break-word;
    }
}
