/* =========================================================
   PRESIDENCE PROPERTY — MODULAR CSS
   File: pp-inner-page-shell.css
   Scope: shared shell for About, Services, Insights, Contact and Privacy Policy

   Purpose:
   - WordPress / Kadence inner-page canvas normalisation
   - Shared inner-page Hero structure
   - Shared tablet and mobile Hero behaviour

   Page-specific Hero background images remain in the corresponding page CSS files.
========================================================= */

/* =========================================================
   INNER PAGE CANVAS
========================================================= */

body.page.pp-css-about-page .entry-hero,
body.page.pp-css-services-page .entry-hero,
body.page.pp-css-insights-page .entry-hero,
body.page.pp-css-contact-page .entry-hero,
body.page.pp-css-privacy-policy-page .entry-hero {
    display: none;
}

body.page.pp-css-about-page .content-area,
body.page.pp-css-services-page .content-area,
body.page.pp-css-insights-page .content-area,
body.page.pp-css-contact-page .content-area,
body.page.pp-css-privacy-policy-page .content-area {
    margin-top: 0;
    margin-bottom: 0;
}

body.page.pp-css-about-page .content-container.site-container,
body.page.pp-css-services-page .content-container.site-container,
body.page.pp-css-insights-page .content-container.site-container,
body.page.pp-css-contact-page .content-container.site-container,
body.page.pp-css-privacy-policy-page .content-container.site-container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body.page.pp-css-about-page .site-main,
body.page.pp-css-services-page .site-main,
body.page.pp-css-insights-page .site-main,
body.page.pp-css-contact-page .site-main,
body.page.pp-css-privacy-policy-page .site-main {
    width: 100%;
}

body.page.pp-css-about-page .entry.single-entry,
body.page.pp-css-services-page .entry.single-entry,
body.page.pp-css-insights-page .entry.single-entry,
body.page.pp-css-contact-page .entry.single-entry,
body.page.pp-css-privacy-policy-page .entry.single-entry {
    box-shadow: none;
    border-radius: 0;
}

body.page.pp-css-about-page .content-bg,
body.page.pp-css-services-page .content-bg,
body.page.pp-css-insights-page .content-bg,
body.page.pp-css-contact-page .content-bg,
body.page.pp-css-privacy-policy-page .content-bg {
    background: transparent;
}

body.page.pp-css-about-page .entry-content-wrap,
body.page.pp-css-services-page .entry-content-wrap,
body.page.pp-css-insights-page .entry-content-wrap,
body.page.pp-css-contact-page .entry-content-wrap,
body.page.pp-css-privacy-policy-page .entry-content-wrap {
    padding: 0;
}

body.page.pp-css-about-page .entry-content,
body.page.pp-css-services-page .entry-content,
body.page.pp-css-insights-page .entry-content,
body.page.pp-css-contact-page .entry-content,
body.page.pp-css-privacy-policy-page .entry-content {
    margin: 0;
}

/* Shared inner-page section base: normalized across all modular inner pages. */
body.pp-css-about-page .pp-page-section,
body.pp-css-services-page .pp-page-section,
body.pp-css-insights-page .pp-page-section,
body.pp-css-contact-page .pp-page-section,
body.pp-css-privacy-policy-page .pp-page-section {
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

/* =========================================================
   INNER PAGE HERO
========================================================= */

body.pp-css-about-page .pp-page-hero,
body.pp-css-services-page .pp-page-hero,
body.pp-css-insights-page .pp-page-hero,
body.pp-css-contact-page .pp-page-hero,
body.pp-css-privacy-policy-page .pp-page-hero {
    position: relative;
    min-height: 360px;
    background-color: var(--pp-ivory);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow: hidden;
}

body.pp-css-about-page .pp-page-hero::before,
body.pp-css-services-page .pp-page-hero::before,
body.pp-css-insights-page .pp-page-hero::before,
body.pp-css-contact-page .pp-page-hero::before,
body.pp-css-privacy-policy-page .pp-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(248, 246, 241, 0.96) 0%,
            rgba(248, 246, 241, 0.90) 36%,
            rgba(248, 246, 241, 0.42) 72%,
            rgba(248, 246, 241, 0.12) 100%
        );
    pointer-events: none;
}

body.pp-css-about-page .pp-page-hero-inner,
body.pp-css-services-page .pp-page-hero-inner,
body.pp-css-insights-page .pp-page-hero-inner,
body.pp-css-contact-page .pp-page-hero-inner,
body.pp-css-privacy-policy-page .pp-page-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: calc(
        var(--pp-wide-width)
        - var(--pp-edge-padding)
        - var(--pp-edge-padding)
    );
    min-height: 360px;
    margin: 0 auto;
    padding: 72px 0;
    box-sizing: border-box;
}

body.pp-css-about-page .pp-page-hero-content,
body.pp-css-services-page .pp-page-hero-content,
body.pp-css-insights-page .pp-page-hero-content,
body.pp-css-contact-page .pp-page-hero-content,
body.pp-css-privacy-policy-page .pp-page-hero-content {
    width: 100%;
    max-width: 620px;
}

body.pp-css-about-page .pp-page-hero-title,
body.pp-css-services-page .pp-page-hero-title,
body.pp-css-insights-page .pp-page-hero-title,
body.pp-css-contact-page .pp-page-hero-title,
body.pp-css-privacy-policy-page .pp-page-hero-title {
    margin: 0;
    color: var(--pp-navy);
    font-family: "Cormorant Garamond", serif;
    font-size: 54px;
    line-height: 54px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

body.pp-css-about-page .pp-page-hero-divider,
body.pp-css-services-page .pp-page-hero-divider,
body.pp-css-insights-page .pp-page-hero-divider,
body.pp-css-contact-page .pp-page-hero-divider,
body.pp-css-privacy-policy-page .pp-page-hero-divider {
    width: 72px;
    height: 2px;
    margin: 24px 0;
    background-color: var(--pp-gold);
}

body.pp-css-about-page .pp-page-hero-text,
body.pp-css-services-page .pp-page-hero-text,
body.pp-css-insights-page .pp-page-hero-text,
body.pp-css-contact-page .pp-page-hero-text,
body.pp-css-privacy-policy-page .pp-page-hero-text {
    max-width: 480px;
    margin: 0;
    color: var(--pp-body);
    font-family: Inter, sans-serif;
    font-size: 18px;
    line-height: 30px;
    font-weight: 400;
}

/* =========================================================
   INNER PAGE HERO — TABLET
========================================================= */

@media screen and (min-width: 768px) and (max-width: 1024px) {

    body.pp-css-about-page .pp-page-hero-inner,
    body.pp-css-services-page .pp-page-hero-inner,
    body.pp-css-insights-page .pp-page-hero-inner,
    body.pp-css-contact-page .pp-page-hero-inner,
    body.pp-css-privacy-policy-page .pp-page-hero-inner {
        padding-left: var(--pp-edge-padding);
        padding-right: var(--pp-edge-padding);
    }
}

/* =========================================================
   INNER PAGE CANVAS AND HERO — MOBILE
========================================================= */

@media screen and (max-width: 767px) {

    body.page.pp-css-about-page .content-container.site-container,
    body.page.pp-css-about-page .entry-content-wrap,
    body.page.pp-css-about-page .entry-content,
    body.page.pp-css-services-page .content-container.site-container,
    body.page.pp-css-services-page .entry-content-wrap,
    body.page.pp-css-services-page .entry-content,
    body.page.pp-css-insights-page .content-container.site-container,
    body.page.pp-css-insights-page .entry-content-wrap,
    body.page.pp-css-insights-page .entry-content,
    body.page.pp-css-contact-page .content-container.site-container,
    body.page.pp-css-contact-page .entry-content-wrap,
    body.page.pp-css-contact-page .entry-content,
    body.page.pp-css-privacy-policy-page .content-container.site-container,
    body.page.pp-css-privacy-policy-page .entry-content-wrap,
    body.page.pp-css-privacy-policy-page .entry-content {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body.pp-css-about-page .pp-page-hero,
    body.pp-css-services-page .pp-page-hero,
    body.pp-css-insights-page .pp-page-hero,
    body.pp-css-contact-page .pp-page-hero,
    body.pp-css-privacy-policy-page .pp-page-hero {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        min-height: 360px;
        box-sizing: border-box;
    }

    body.pp-css-about-page .pp-page-hero-inner,
    body.pp-css-services-page .pp-page-hero-inner,
    body.pp-css-insights-page .pp-page-hero-inner,
    body.pp-css-contact-page .pp-page-hero-inner,
    body.pp-css-privacy-policy-page .pp-page-hero-inner {
        width: 100%;
        max-width: none;
        min-width: 0;
        min-height: 360px;
        margin: 0;
        padding: 48px 24px;
        box-sizing: border-box;
    }

    body.pp-css-about-page .pp-page-hero-content,
    body.pp-css-services-page .pp-page-hero-content,
    body.pp-css-insights-page .pp-page-hero-content,
    body.pp-css-contact-page .pp-page-hero-content,
    body.pp-css-privacy-policy-page .pp-page-hero-content {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    body.pp-css-about-page .pp-page-hero-title,
    body.pp-css-services-page .pp-page-hero-title,
    body.pp-css-insights-page .pp-page-hero-title,
    body.pp-css-contact-page .pp-page-hero-title,
    body.pp-css-privacy-policy-page .pp-page-hero-title {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        font-size: 42px;
        line-height: 48px;
        letter-spacing: 0.01em;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        box-sizing: border-box;
    }

    body.pp-css-about-page .pp-page-hero-divider,
    body.pp-css-services-page .pp-page-hero-divider,
    body.pp-css-insights-page .pp-page-hero-divider,
    body.pp-css-contact-page .pp-page-hero-divider,
    body.pp-css-privacy-policy-page .pp-page-hero-divider {
        width: 72px;
        height: 2px;
        margin: 24px 0;
    }

    body.pp-css-about-page .pp-page-hero-text,
    body.pp-css-services-page .pp-page-hero-text,
    body.pp-css-insights-page .pp-page-hero-text,
    body.pp-css-contact-page .pp-page-hero-text,
    body.pp-css-privacy-policy-page .pp-page-hero-text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        margin: 0;
        font-size: 16px;
        line-height: 24px;
        white-space: normal;
        overflow-wrap: break-word;
        word-break: normal;
        box-sizing: border-box;
    }
}
