/* Final interaction and typography polish — loaded after legacy responsive CSS. */

html { overflow-x: hidden; }

/* Mid-size laptop/header fit: retain the roomy navigation padding on wider screens. */
@media (min-width: 1100px) and (max-width: 1400px) {
    .custom-navbar .navbar-nav {
        padding-right: 0;
    }
}

/* Bootstrap expands this navbar at 1200px; keep every collapsed breakpoint in the same mode. */
@media (max-width: 1199.98px) {
    .custom-navbar {
        min-height: 76px;
        max-width: 100%;
        padding: 12px 24px;
        overflow: visible;
    }

    .custom-navbar .navbar-brand img {
        width: auto;
        max-width: 210px;
        height: auto;
    }

    .custom-navbar .navbar-collapse {
        flex-basis: 100%;
        max-height: calc(100vh - 100px);
        margin-top: 12px;
        padding: 12px 18px 18px;
        overflow-x: hidden;
        overflow-y: auto;
        background: #171717;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 12px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .28);
    }

    .custom-navbar .navbar-nav {
        width: 100%;
        padding: 0;
        gap: 0 !important;
        align-items: stretch;
    }

    .custom-navbar .navbar-nav .nav-link {
        min-height: 48px;
        padding: 13px 6px !important;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 15px;
        line-height: 1.4;
    }

    .custom-navbar .mega-menu {
        max-width: 100%;
    }

    .custom-navbar .header-btn {
        width: 100%;
        margin: 14px 0 0;
    }

    .custom-navbar .quote-btn {
        width: 100%;
        height: 48px;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .custom-navbar .mega-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .custom-navbar {
        padding: 12px 15px;
    }

    .custom-navbar .navbar-brand img {
        max-width: 200px;
    }

    .custom-navbar .mega-grid {
        grid-template-columns: 1fr;
    }
}

/* Hidden fixed overlays must never intercept page clicks. */
.trusted-modal-overlay,
.trust-intro-overlay,
.first-offer-overlay {
    pointer-events: none;
}

.trusted-modal-overlay.active,
.trust-intro-overlay.active,
.first-offer-overlay.active {
    pointer-events: auto;
}

.trusted-modal-overlay { z-index: 1000002; }
.first-offer-overlay { z-index: 1000003; }
.trusted-modal-overlay.active .trusted-modal { transform: translateY(0) scale(1); }
.trusted-modal,
.first-offer-dialog { isolation: isolate; }
.trusted-modal-close,
.first-offer-close { pointer-events: auto; }

/* Stable homepage hero hierarchy: one keyword line, one supporting line. */
.content-01 .bestseller-line {
    display: grid;
    gap: 4px;
    max-width: 720px;
    margin-top: 10px;
    font-size: clamp(21px, 2.25vw, 30px);
    line-height: 1.14;
    text-wrap: balance;
}

.content-01 .bestseller-line strong,
.content-01 .bestseller-line .trusted-text {
    display: block;
    padding-left: 0;
}

.content-01 .bestseller-line .trusted-text {
    font-size: clamp(18px, 1.8vw, 24px);
}

.content-01 .publisher-line {
    margin-top: 7px;
    font-size: clamp(20px, 2vw, 27px);
    line-height: 1.15;
}

@keyframes heroPhraseMotion {
    0%, 12% { opacity: 0; transform: translateY(10px); }
    22%, 78% { opacity: 1; transform: translateY(0); }
    90%, 100% { opacity: 0; transform: translateY(-6px); }
}

.content-01 .hero-phrase-motion {
    will-change: opacity, transform;
    animation: heroPhraseMotion 6s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .content-01 .hero-phrase-motion { animation: none; }
}

/* Website-wide heading caps for a calmer, more professional reading scale. */
.section-title,
.section-title h2,
.story-section .cta-content h2,
.story-content h2,
.cta-content h2,
.book-content h2,
.workflow-heading h2,
.bp-heading h2,
.testimonial-heading h2,
.story-heading h2,
.promo-content h2,
.contact-title,
.contact-right h2 {
    font-size: clamp(30px, 3.15vw, 42px);
    line-height: 1.13;
    text-wrap: balance;
}

.contact-form-box h3 { font-size: clamp(27px, 2.7vw, 38px); }
.inner-banner-content h1,
.privacy-hero-content h1 { font-size: clamp(34px, 4vw, 50px); line-height: 1.08; text-wrap: balance; }

/* Location names can be long; keep them readable without cropping. */
.location-page .location-hero h1 {
    max-width: 820px;
    font-size: clamp(35px, 3.45vw, 50px);
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
}

.location-page .location-intro-section h2,
.location-page .location-section-heading h2,
.location-page .location-faq-section h2 {
    font-size: clamp(28px, 2.45vw, 36px);
    line-height: 1.16;
    text-wrap: balance;
}

/* FAQ cards: smaller questions, tighter rhythm and less empty space. */
.faq-sec { padding: 74px 0; }
.faq-sec > .container > .row.g-4 {
    display: block;
    column-count: 2;
    column-gap: 28px;
    margin: 0;
}
.faq-sec > .container > .row.g-4 > .col-md-12,
.faq-sec > .container > .row.g-4 > .col-lg-6 { display: contents; }
.faq-sec .faq-heading { column-span: all; width: 100%; }
.faq-item { display: inline-block; width: 100%; margin-bottom: 18px; break-inside: avoid; }
.faq-head { min-height: 108px; padding: 22px 24px; }
.headingfaq { font-size: 17px; line-height: 1.45; }
.faq-icon { width: 40px; height: 40px; font-size: 16px; }
.faq-heading h2 { font-size: clamp(28px, 3vw, 36px); }

@media (max-width: 991px) {
    .location-page .location-hero h1 { font-size: clamp(32px, 5.2vw, 42px); }
    .location-page .location-intro-section h2,
    .location-page .location-section-heading h2,
    .location-page .location-faq-section h2 { font-size: clamp(27px, 4vw, 32px); }
    .faq-head { min-height: 0; }
    .faq-sec > .container > .row.g-4 { column-count: 1; }
}

@media (max-width: 767px) {
    .Section-01 .content-01,
    .content-01 .hero-title,
    .content-01 .bestseller-line,
    .content-01 .bestseller-line strong,
    .content-01 .bestseller-line .trusted-text,
    .content-01 .publisher-line {
        width: 100%;
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: normal;
    }
    .content-01 p {
        width: 100%;
        word-spacing: normal;
        text-align: left;
        line-height: 1.65;
    }
    .content-01 .bestseller-line { font-size: clamp(20px, 6vw, 26px); }
    .content-01 .bestseller-line .trusted-text { font-size: clamp(17px, 5vw, 21px); }
    .content-01 .publisher-line { font-size: clamp(19px, 5.5vw, 23px); }
    .section-title,
    .section-title h2,
    .story-section .cta-content h2,
    .story-content h2,
    .cta-content h2,
    .book-content h2,
    .workflow-heading h2,
    .bp-heading h2,
    .testimonial-heading h2,
    .story-heading h2,
    .promo-content h2,
    .contact-title,
    .contact-right h2 { font-size: clamp(26px, 8vw, 34px); }
    .inner-banner-content h1,
    .privacy-hero-content h1 { font-size: clamp(30px, 9vw, 40px); }
    .location-page .location-hero h1 { font-size: clamp(29px, 8vw, 36px); }
    .location-page .location-intro-section h2,
    .location-page .location-section-heading h2,
    .location-page .location-faq-section h2 { font-size: clamp(25px, 7vw, 29px); }
    .faq-sec { padding: 50px 0 62px; }
    .faq-head { padding: 17px 18px; }
    .headingfaq { width: calc(100% - 52px); font-size: 15px; line-height: 1.4; }
    .faq-body p { padding: 0 18px 20px; font-size: 14px; line-height: 1.7; }
}
