/* Shared inner-page layout system. Homepage spacing remains independently scoped. */
.inner-page {
    --page-section-space: clamp(72px, 5vw, 105px);
    --page-compact-space: clamp(48px, 5vw, 72px);
    --page-header-space: clamp(32px, 4vw, 52px);
}

.inner-page:not(.not-found-page) main > section {
    margin-top: 0;
    margin-bottom: 0;
}

.inner-page:not(.not-found-page) main > section > .container {
    width: min(1180px, calc(100% - 48px));
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
}

.inner-page:not(.not-found-page) main > :is(
    .section,
    .about-section,
    .service-content-section,
    .location-section,
    .cs-section,
    .cta-banner-section
) {
    padding-top: var(--page-section-space);
    padding-bottom: var(--page-section-space);
}

.inner-page:not(.not-found-page) main > :is(
    .stats-row-section,
    .tools-belt-section
) {
    padding-top: var(--page-compact-space);
    padding-bottom: var(--page-compact-space);
}

.inner-page:not(.not-found-page) main > :is(
    .section-has-bg,
    .section-alt-bg,
    .section-muted,
    .section-panel
) {
    padding-top: var(--page-section-space);
    padding-bottom: var(--page-section-space);
}

/* Heroes keep their established visual treatment and offset below the fixed header. */
.inner-page:not(.not-found-page) main > .page-hero,
.inner-page:not(.not-found-page) main > .service-hero {
    padding-top: clamp(120px, 16vh, 168px);
    padding-bottom: clamp(70px, 10vh, 104px);
}

/* About uses dividers on one background, so each pair shares one spacing interval. */
.about-page #about-main > .stats-row-section + .about-section,
.about-page #about-main > .section-divider + .about-section,
.about-page #about-main > .section-divider + .tools-belt-section {
    padding-top: 0;
}

.about-page #about-main > section.about-section:not(.page-hero) {
    padding-bottom: var(--page-section-space);
}

.about-page #about-main > .tools-belt-section.about-section {
    padding-bottom: var(--page-compact-space);
}

/* Generic content and CTA sections share one background on these page families. */
.portfolio-page #portfolio-main > .section + .cta-banner-section,
.blog-page main > .section + .cta-banner-section,
.contact-page #contact-main > .section + .contact-faq-section,
.service-page #service-main > .service-content-section:nth-child(odd) + .cta-banner-section,
.case-study-page #case-study-main > .cs-section:nth-child(odd) + .cta-banner-section {
    padding-top: 0;
}

.contact-page .contact-faq-section {
    margin-bottom: 0;
}

.inner-page:not(.not-found-page) main .section-header-v2 {
    width: 100%;
    max-width: 850px;
    margin-right: auto;
    margin-bottom: var(--page-header-space);
    margin-left: auto;
    text-align: center;
}

.inner-page:not(.not-found-page) main .section-header-v2 > p {
    max-width: 720px;
    margin: 16px auto 0;
    line-height: 1.7;
}

.inner-page .location-section-heading,
.inner-page .included-section-header {
    width: 100%;
    max-width: 850px;
    margin-bottom: var(--page-header-space);
}

.inner-page .location-section-heading > p,
.inner-page .included-section-header > p {
    max-width: 720px;
    margin-top: 16px;
    line-height: 1.7;
}

.inner-page .service-prose,
.inner-page .cs-section p,
.inner-page .cs-implementation-list {
    max-width: 720px;
}

.inner-page .portfolio-grid-v2,
.inner-page .blog-grid,
.inner-page .team-grid,
.inner-page .diff-grid,
.inner-page .service-process-grid,
.inner-page .service-cards-4,
.inner-page .included-grid,
.inner-page .location-grid,
.inner-page .location-industry-grid,
.inner-page .contact-faq-grid,
.inner-page .cs-results-grid,
.inner-page .cs-related-grid {
    align-items: stretch;
}

.inner-page :is(
    .portfolio-card-v2,
    .blog-card,
    .team-card,
    .diff-card,
    .service-process-card,
    .service-info-card,
    .location-card,
    .contact-faq-card,
    .cs-result-card,
    .cs-metric-card
) {
    min-width: 0;
    height: 100%;
}

.inner-page :is(
    .portfolio-card-v2,
    .blog-card,
    .team-card,
    .diff-card,
    .service-process-card,
    .service-info-card,
    .location-card,
    .contact-faq-card,
    .cs-result-card,
    .cs-metric-card
) {
    display: flex;
    flex-direction: column;
}

.inner-page :is(
    .portfolio-card-v2,
    .location-card
) .portfolio-card-link,
.inner-page .blog-card .blog-card-link,
.inner-page .about-services-grid .service-card-v2-link {
    margin-top: auto;
}

.inner-page .portfolio-card-v2 .portfolio-card-summary,
.inner-page .location-card p,
.inner-page .blog-card .blog-card-excerpt,
.inner-page .team-card p,
.inner-page .diff-card p,
.inner-page .service-process-card p,
.inner-page .service-info-card p,
.inner-page .contact-faq-card p {
    flex: 1;
}

.inner-page .included-card {
    min-width: 0;
    height: 100%;
}

.case-study-page .cs-metrics-strip,
.case-study-page .cs-results-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-study-page :is(
    .cs-metric-card,
    .cs-result-card,
    .cs-metric-value,
    .cs-result-value
) {
    min-width: 0;
}

.inner-page .contact-layout > *,
.inner-page .contact-form-wrap,
.inner-page .form-group,
.inner-page .blog-post-layout > * {
    min-width: 0;
}

.inner-page .contact-info-card .value,
.inner-page .contact-info-card .note,
.inner-page .blog-post-layout {
    overflow-wrap: anywhere;
}

.inner-page .cta-banner {
    width: 100%;
    max-width: 1180px;
}

@media (max-width: 900px) {
    .inner-page .portfolio-grid-v2,
    .inner-page .blog-grid,
    .inner-page .team-grid,
    .inner-page .diff-grid,
    .inner-page .service-process-grid,
    .inner-page .location-grid,
    .inner-page .location-industry-grid,
    .inner-page .contact-faq-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .inner-page .contact-layout,
    .inner-page .blog-post-layout {
        grid-template-columns: 1fr;
    }

    .case-study-page .cs-metrics-strip,
    .case-study-page .cs-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .inner-page {
        --page-section-space: 56px;
        --page-compact-space: 36px;
        --page-header-space: 32px;
    }

    .inner-page:not(.not-found-page) main > section > .container {
        width: calc(100% - 32px);
    }

    .inner-page:not(.not-found-page) main > .page-hero,
    .inner-page:not(.not-found-page) main > .service-hero {
        padding-top: clamp(112px, 15vh, 136px);
        padding-bottom: clamp(56px, 8vh, 76px);
    }

    .inner-page:not(.not-found-page) main .section-header-v2 > p,
    .inner-page .location-section-heading > p,
    .inner-page .included-section-header > p {
        font-size: 15px;
    }
}

@media (max-width: 640px) {
    .inner-page:not(.not-found-page) .page-hero h1,
    .inner-page:not(.not-found-page) .service-hero h1 {
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .inner-page .portfolio-grid-v2,
    .inner-page .blog-grid,
    .inner-page .team-grid,
    .inner-page .diff-grid,
    .inner-page .service-process-grid,
    .inner-page .service-cards-4,
    .inner-page .included-grid,
    .inner-page .location-grid,
    .inner-page .location-industry-grid,
    .inner-page .contact-faq-grid,
    .inner-page .cs-related-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .inner-page :is(
        .portfolio-card-v2,
        .blog-card,
        .blog-featured,
        .team-card,
        .diff-card,
        .service-process-card,
        .service-info-card,
        .included-card,
        .location-card,
        .contact-faq-card,
        .cs-result-card,
        .cs-metric-card,
        .contact-form-wrap
    ) {
        padding: 20px;
    }

    .inner-page .location-service-links,
    .inner-page .service-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .inner-page .location-service-links :is(
        .btn-primary-green,
        .btn-outline-green,
        .portfolio-card-link
    ),
    .inner-page .service-hero-actions :is(
        .btn-primary-green,
        .btn-outline-green
    ) {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .inner-page .cta-banner {
        padding: 44px 20px;
    }

.case-study-page :is(
    .cs-metric-value,
    .cs-result-value
) {
    font-size: clamp(24px, 9vw, 32px);
    overflow-wrap: anywhere;
}
}

.furqan-location-map {
    width: 100%;
    margin: 0;
    padding: 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(110, 226, 104, 0.18);
    background:
        radial-gradient(circle at 50% 0%, rgba(110, 226, 104, 0.10), transparent 48%),
        #080a08;
}

.furqan-location-map__frame {
    width: 100%;
    height: 460px;
    position: relative;
    overflow: hidden;
    background: #101510;
    box-shadow:
        inset 0 18px 42px rgba(0, 0, 0, 0.22),
        0 -12px 42px rgba(110, 226, 104, 0.06);
}

.furqan-location-map__iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
}

.furqan-location-map__overlay {
    position: absolute !important;
    left: clamp(24px, 5vw, 72px) !important;
    bottom: clamp(22px, 4vw, 38px) !important;
    z-index: 20 !important;

    display: flex !important;
    align-items: center !important;
    gap: 13px !important;

    width: auto !important;
    max-width: min(560px, calc(100% - 48px)) !important;
    margin: 0 !important;
    padding: 16px 20px !important;

    color: #ffffff !important;
    border: 1px solid rgba(110, 226, 104, 0.24) !important;
    border-radius: 20px !important;

    background:
        linear-gradient(135deg, rgba(28, 34, 28, 0.97), rgba(18, 21, 18, 0.98)) !important;

    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.42),
        0 0 34px rgba(110, 226, 104, 0.12) !important;

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.furqan-location-map__icon {
    width: 28px !important;
    min-width: 28px !important;
    height: 28px !important;

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

    color: #6ee268;
    font-size: 23px !important;
    line-height: 1;
}

.furqan-location-map__label {
    display: block;
    margin: 0 0 4px !important;

    color: #6ee268;
    font-size: 11px !important;
    font-weight: 800;
    letter-spacing: 0.07em !important;
    line-height: 1.15 !important;
    text-transform: uppercase;
}

.furqan-location-map__address {
    margin: 0 !important;
    color: #ffffff;
    font-size: clamp(15px, 1.25vw, 18px) !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
}

@media (max-width: 768px) {
    .furqan-location-map__frame {
        height: 360px;
    }

    .furqan-location-map__overlay {
        left: 16px !important;
        right: 16px !important;
        bottom: 16px !important;

        width: auto !important;
        max-width: none !important;
        padding: 13px 15px !important;
        gap: 10px !important;
        border-radius: 16px !important;
    }

    .furqan-location-map__icon {
        width: 24px !important;
        min-width: 24px !important;
        height: 24px !important;
        font-size: 20px !important;
    }

    .furqan-location-map__label {
        font-size: 10px !important;
        margin-bottom: 3px !important;
    }

    .furqan-location-map__address {
        font-size: 14px !important;
        line-height: 1.35 !important;
    }
}

@media (max-width: 480px) {
    .furqan-location-map__frame {
        height: 320px;
    }
}
