/* TCC V33 — mobile polish for compact proof, assurance and service sections.
   Desktop/tablet layouts remain unchanged; these refinements target phones only. */

@media (max-width: 600px) {
    /* Keep the opening section airy without letting it dominate the first screen. */
    .hero {
        padding: 34px 0 40px !important;
    }

    .hero h1 {
        font-size: clamp(2.45rem, 11.4vw, 3.35rem) !important;
        line-height: .99 !important;
        letter-spacing: -.04em !important;
        margin-bottom: 16px !important;
    }

    .hero h1 .hero-title-accent {
        font-size: .9em !important;
        line-height: 1.03 !important;
    }

    .hero-lead {
        max-width: 42rem;
        font-size: .94rem !important;
        line-height: 1.65 !important;
    }

    .hero-actions {
        margin-top: 24px !important;
        gap: 10px !important;
    }

    /* Three proof points stay on one horizontal row instead of stacking vertically. */
    .trust-row {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 8px !important;
        max-width: none !important;
        margin: 24px 0 0 !important;
        padding: 0 !important;
        border-top: 0 !important;
    }

    .trust-item {
        min-width: 0 !important;
        min-height: 62px;
        margin: 0 !important;
        padding: 8px 7px !important;
        gap: 7px !important;
        align-items: center !important;
        border: 1px solid rgba(75, 38, 91, .11) !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, .82) !important;
        box-shadow: 0 6px 18px rgba(55, 11, 76, .035);
    }

    .trust-icon {
        width: 32px !important;
        height: 32px !important;
        flex: 0 0 32px !important;
        border-radius: 10px !important;
    }

    .trust-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .trust-item > span:last-child {
        min-width: 0;
        gap: 1px !important;
    }

    .trust-item strong,
    .trust-item:first-child strong {
        display: block;
        white-space: normal !important;
        overflow-wrap: anywhere;
        font-size: .67rem !important;
        line-height: 1.16 !important;
        font-weight: 800 !important;
    }

    .trust-item small {
        display: block;
        font-size: .59rem !important;
        line-height: 1.25 !important;
    }

    /* Four experience benefits become a compact horizontal strip. */
    .assurance-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .assurance-item,
    .assurance-item:nth-child(-n+2) {
        min-width: 0;
        min-height: 112px;
        padding: 13px 5px 12px !important;
        gap: 6px !important;
        flex-direction: column;
        justify-content: flex-start;
        text-align: center;
        border-bottom: 0 !important;
        border-right: 1px solid rgba(255, 255, 255, .13) !important;
    }

    .assurance-item:last-child {
        border-right: 0 !important;
    }

    .assurance-icon {
        width: 30px !important;
        height: 30px !important;
    }

    .assurance-icon svg {
        width: 23px !important;
        height: 23px !important;
    }

    .assurance-item > span:last-child {
        min-width: 0;
        gap: 2px !important;
    }

    .assurance-item strong {
        font: 600 .92rem/1.05 var(--serif) !important;
    }

    .assurance-item small {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: .58rem !important;
        line-height: 1.25 !important;
    }

    /* Tighten the services intro and make the CTA feel intentional on mobile. */
    .services-section {
        padding-top: 48px !important;
        padding-bottom: 54px !important;
    }

    .section-heading-row {
        gap: 18px !important;
        margin-bottom: 22px !important;
    }

    .section-heading-row .eyebrow {
        font-size: .68rem;
    }

    .services-section .section-heading-row h2 {
        margin-top: 9px !important;
        margin-bottom: 9px !important;
        font-size: clamp(1.9rem, 8.4vw, 2.35rem) !important;
        line-height: 1.05 !important;
    }

    .services-section .section-heading-row p {
        font-size: .9rem !important;
        line-height: 1.58 !important;
    }

    .services-section .text-link {
        width: max-content;
        padding: 9px 13px !important;
        border: 1px solid rgba(122, 4, 180, .16) !important;
        border-radius: 999px;
        background: #fbf7fd;
        font-size: .76rem !important;
        line-height: 1 !important;
    }

    /* Two compact service tiles per row dramatically reduce page height. */
    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .service-card {
        display: grid !important;
        grid-template-columns: 38px minmax(0, 1fr) !important;
        grid-template-rows: auto 1fr;
        align-content: start;
        column-gap: 9px;
        row-gap: 8px;
        min-width: 0;
        min-height: 138px !important;
        padding: 14px !important;
        border-radius: 17px !important;
        box-shadow: 0 7px 22px rgba(55, 11, 76, .045) !important;
    }

    .service-card:hover {
        transform: none !important;
    }

    .service-icon {
        width: 38px !important;
        height: 38px !important;
        border-radius: 12px !important;
    }

    .service-icon svg {
        width: 20px !important;
        height: 20px !important;
    }

    .service-card h3 {
        min-width: 0;
        margin: 1px 0 0 !important;
        align-self: center;
        font-size: .91rem !important;
        line-height: 1.18 !important;
        letter-spacing: -.01em;
        overflow-wrap: anywhere;
    }

    .service-card p {
        grid-column: 1 / -1;
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        margin: 0 !important;
        font-size: .7rem !important;
        line-height: 1.42 !important;
    }
}

/* Very small phones switch services to compact horizontal rows rather than cramped columns. */
@media (max-width: 380px) {
    .container {
        width: min(100% - 22px, 1180px) !important;
    }

    .trust-row {
        gap: 5px !important;
    }

    .trust-item {
        min-height: 58px;
        padding: 7px 5px !important;
        gap: 5px !important;
    }

    .trust-icon {
        width: 28px !important;
        height: 28px !important;
        flex-basis: 28px !important;
    }

    .trust-item strong {
        font-size: .61rem !important;
    }

    .trust-item small {
        font-size: .55rem !important;
    }

    .assurance-item,
    .assurance-item:nth-child(-n+2) {
        min-height: 106px;
        padding-inline: 3px !important;
    }

    .assurance-item strong {
        font-size: .84rem !important;
    }

    .assurance-item small {
        font-size: .54rem !important;
    }

    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 9px !important;
    }

    .service-card {
        grid-template-columns: 38px minmax(0, 1fr) !important;
        grid-template-rows: auto auto;
        min-height: 0 !important;
        padding: 13px 14px !important;
    }

    .service-card p {
        grid-column: 2;
        -webkit-line-clamp: 2;
        margin-top: -3px !important;
    }
}

/* V34 — compact hero typography and a cleaner, centered mobile footer. */
@media (max-width: 600px) {
    /* Keep the hero headline to three intentional lines:
       1) Compassionate care.  2) Care that feels like  3) family. */
    .hero h1 {
        font-size: clamp(2.08rem, 9.1vw, 2.75rem) !important;
        line-height: 1.01 !important;
        letter-spacing: -.038em !important;
    }

    .hero-title-primary {
        white-space: nowrap !important;
    }

    .hero h1 .hero-title-accent {
        margin-top: 3px;
        font-size: 1em !important;
        line-height: 1.01 !important;
    }

    .hero-accent-main,
    .hero-accent-family {
        display: block;
        white-space: nowrap;
    }

    .hero-lead {
        max-width: 450px !important;
        font-size: .91rem !important;
        line-height: 1.62 !important;
    }

    /* Footer: center the brand story, keep navigation compact, and reduce scroll. */
    .site-footer {
        padding: 34px 0 18px !important;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 24px 20px !important;
    }

    .footer-brand {
        grid-column: 1 / -1 !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo-new {
        display: flex !important;
        width: 100%;
        justify-content: center;
        margin: 0 auto 13px !important;
    }

    .footer-logo-new img {
        width: min(220px, 62vw) !important;
        max-width: 220px !important;
        height: auto !important;
        object-fit: contain;
        object-position: center;
    }

    .footer-brand p {
        max-width: 390px !important;
        margin: 0 auto !important;
        text-align: center;
        font-size: .78rem !important;
        line-height: 1.62 !important;
    }

    .footer-grid > div:not(.footer-brand) {
        min-width: 0;
    }

    .footer-grid h4 {
        margin: 0 0 11px !important;
        font-size: .69rem !important;
        letter-spacing: .13em !important;
    }

    .footer-grid a {
        margin-bottom: 7px !important;
        font-size: .76rem !important;
        line-height: 1.35 !important;
    }

    .footer-start {
        grid-column: 1 / -1 !important;
        align-items: center !important;
        padding-top: 2px;
        text-align: center;
    }

    .footer-start h4 {
        width: 100%;
        text-align: center;
    }

    .footer-start p {
        margin: 0 0 10px !important;
        text-align: center;
        font-size: .77rem !important;
        line-height: 1.45 !important;
    }

    .footer-book-button {
        width: min(100%, 360px) !important;
        min-height: 44px !important;
        margin: 0 auto !important;
        border-radius: 12px !important;
        font-size: .76rem !important;
    }

    .footer-bottom {
        align-items: center;
        gap: 5px !important;
        margin-top: 25px !important;
        padding-top: 15px !important;
        text-align: center;
        font-size: .64rem !important;
        line-height: 1.45;
    }
}

@media (max-width: 380px) {
    .hero h1 {
        font-size: clamp(1.92rem, 9vw, 2.2rem) !important;
    }

    .footer-grid {
        gap: 22px 14px !important;
    }

    .footer-logo-new img {
        width: min(205px, 66vw) !important;
    }
}
