/* =========================================================
   PRESIDENCE PROPERTY — MODULAR CSS
   File: pp-components.css
   Scope: reusable shared components
========================================================= */

/* =========================================================
   CORE SERVICES CARDS
   Shared by Home and Services
========================================================= */

.pp-home-core-services {
    margin: 0;
    padding: 0;
    background-color: #F8F6F1;
    box-sizing: border-box;
}

.pp-home-core-services-inner {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 48px 0 60px;
    box-sizing: border-box;
}

.pp-home-core-services-title {
    margin: 0 0 36px !important;
    padding: 0;
    color: var(--pp-navy);
    font-family: "Cormorant Garamond", serif;
    font-size: 42px;
    line-height: 48px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: left;
    box-sizing: border-box;
}

.pp-home-core-services-grid {
    display: grid;
    grid-template-columns: 360px 360px 360px;
    column-gap: 60px;
    row-gap: 0;
    justify-content: center;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.pp-home-core-service-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 360px;
    max-width: 360px;
    min-height: 300px;
    margin: 0;
    padding: 24px;
    border: 1px solid var(--pp-gold);
    border-radius: 1px;
    background-color: #FFFFFF !important;
    box-shadow: none;
    box-sizing: border-box;
    text-align: left;
}

.pp-home-core-service-icon {
    display: block;
    width: 54px;
    height: 54px;
    max-width: 54px;
    max-height: 54px;
    margin: 0 0 18px;
    padding: 0;
    object-fit: contain;
    box-sizing: border-box;
}

.pp-home-core-service-title {
    min-height: 36px;
    margin: 0 0 12px !important;
    padding: 0;
    color: var(--pp-navy);
    font-family: "Cormorant Garamond", serif;
    font-size: 30px;
    line-height: 36px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: left;
    box-sizing: border-box;
}

.pp-home-core-services .pp-home-core-service-item .pp-home-core-service-text {
    min-height: 120px !important;
    margin: 0 !important;
    padding: 0 !important;
    color: var(--pp-body) !important;
    font-family: Inter, sans-serif !important;
    font-size: 16px !important;
    line-height: 24px !important;
    font-weight: 400 !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.pp-home-core-service-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 8px;
    margin-top: auto;
    color: var(--pp-gold);
    font-family: Inter, sans-serif;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color var(--pp-transition-fast);
}

.pp-home-core-service-link::after {
    content: "";
    display: block;
    flex: 0 0 7px;
    width: 7px;
    height: 11px;
    background-color: currentColor;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='11' viewBox='0 0 7 11'%3E%3Cpath d='M1.25 1L5.75 5.5L1.25 10' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='11' viewBox='0 0 7 11'%3E%3Cpath d='M1.25 1L5.75 5.5L1.25 10' fill='none' stroke='%23000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: 7px 11px;
    mask-size: 7px 11px;
    pointer-events: none;
}

.pp-home-core-service-link:hover,
.pp-home-core-service-link:focus {
    color: var(--pp-gold-hover);
    text-decoration: none;
}

/* =========================================================
   FRAMED PAGE CTA
   Shared by Home, Services, About, Insights and single articles
========================================================= */

body.pp-css-home-page .pp-home-cta,
.pp-services-cta,
.pp-insights-cta,
.pp-about-cta,
.pp-single-insights-cta {
    margin: 0;
    padding: 30px 24px;
    background-color: var(--pp-cta-bg);
    box-sizing: border-box;
}

body.pp-css-home-page .pp-home-cta-inner,
.pp-services-cta-inner,
.pp-insights-cta-inner,
.pp-about-cta-inner,
.pp-single-insights-cta-inner {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 30px 36px 34px;
    border: 1px solid var(--pp-gold);
    background-color: var(--pp-white);
    box-shadow: 0 8px 24px rgba(11, 31, 58, 0.055);
    box-sizing: border-box;
}

body.pp-css-home-page .pp-home-cta-content,
.pp-services-cta-content,
.pp-insights-cta-content,
.pp-about-cta-content,
.pp-single-insights-cta-content {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0;
    text-align: center;
    box-sizing: border-box;
}

body.pp-css-home-page .pp-home-cta-title,
.pp-services-cta-title,
.pp-insights-cta-title,
.pp-about-cta-title,
.pp-single-insights-cta-title {
    margin: 0 !important;
    padding: 0 0 24px !important;
    color: var(--pp-navy);
    font-family: "Cormorant Garamond", serif;
    font-size: 36px;
    line-height: 42px;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-align: center;
    box-sizing: border-box;
}

body.pp-css-home-page .pp-home-cta-divider,
.pp-services-cta-divider,
.pp-insights-cta-divider,
.pp-about-cta-divider,
.pp-single-insights-cta-divider {
    display: block;
    width: 72px;
    height: 2px;
    margin: 0 auto 18px;
    padding: 0;
    background-color: var(--pp-gold);
    box-sizing: border-box;
}

body.pp-css-home-page .pp-home-cta-text,
.pp-services-cta-text,
.pp-insights-cta-text,
.pp-about-cta-text,
.pp-single-insights-cta-text {
    width: 100%;
    max-width: 720px;
    margin: 0 auto !important;
    padding: 0 !important;
    color: var(--pp-body);
    font-family: Inter, sans-serif;
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
    text-align: center;
    box-sizing: border-box;
}

/* Non-HOME standard CTA copy: balanced two-line desktop/tablet measure.
   HOME remains on its existing 720px measure. */
.pp-services-cta-text,
.pp-insights-cta-text,
.pp-about-cta-text,
.pp-single-insights-cta-text {
    max-width: 500px;
}

body.pp-css-home-page .pp-home-cta-link,
.pp-services-cta-link,
.pp-insights-cta-link,
.pp-about-cta-link,
.pp-single-insights-cta-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 240px;
    height: 42px;
    margin: 24px auto 0;
    padding: 0 24px;
    border: 1px solid var(--pp-navy);
    border-radius: 0;
    background-color: var(--pp-navy);
    color: var(--pp-gold);
    font-family: Inter, sans-serif;
    font-size: 12px;
    line-height: 18px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    box-sizing: border-box;
    transition:
        color var(--pp-transition-fast),
        background-color var(--pp-transition-fast),
        border-color var(--pp-transition-fast);
}

body.pp-css-home-page .pp-home-cta-link:hover,
body.pp-css-home-page .pp-home-cta-link:focus,
.pp-services-cta-link:hover,
.pp-services-cta-link:focus,
.pp-insights-cta-link:hover,
.pp-insights-cta-link:focus,
.pp-about-cta-link:hover,
.pp-about-cta-link:focus,
.pp-single-insights-cta-link:hover,
.pp-single-insights-cta-link:focus {
    border-color: var(--pp-gold);
    background-color: var(--pp-gold);
    color: #3A4A5F;
    text-decoration: none;
    outline: none;
}

body.pp-css-home-page .pp-home-cta-link:focus-visible,
.pp-services-cta-link:focus-visible,
.pp-insights-cta-link:focus-visible,
.pp-about-cta-link:focus-visible,
.pp-single-insights-cta-link:focus-visible {
    outline: 2px solid var(--pp-navy);
    outline-offset: 3px;
}

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

    body.pp-css-home-page .pp-home-cta,
    .pp-services-cta,
    .pp-insights-cta,
    .pp-about-cta,
    .pp-single-insights-cta {
        padding: 28px 24px;
    }

    body.pp-css-home-page .pp-home-cta-inner,
    .pp-services-cta-inner,
    .pp-insights-cta-inner,
    .pp-about-cta-inner,
    .pp-single-insights-cta-inner {
        width: 100%;
        max-width: 960px;
        margin: 0 auto;
        padding: 30px 32px 34px;
    }
}

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

    body.pp-css-home-page .pp-home-cta,
    .pp-services-cta,
    .pp-insights-cta,
    .pp-about-cta,
    .pp-single-insights-cta {
        padding: 24px 16px;
    }

    body.pp-css-home-page .pp-home-cta-inner,
    .pp-services-cta-inner,
    .pp-insights-cta-inner,
    .pp-about-cta-inner,
    .pp-single-insights-cta-inner {
        width: 100%;
        max-width: none;
        margin: 0 auto;
        padding: 28px 20px 30px;
    }

    body.pp-css-home-page .pp-home-cta-title,
    .pp-services-cta-title,
    .pp-insights-cta-title,
    .pp-about-cta-title,
    .pp-single-insights-cta-title {
        padding-bottom: 18px !important;
        font-size: 30px;
        line-height: 36px;
    }

    body.pp-css-home-page .pp-home-cta-divider,
    .pp-services-cta-divider,
    .pp-insights-cta-divider,
    .pp-about-cta-divider,
    .pp-single-insights-cta-divider {
        margin-bottom: 18px;
    }

    body.pp-css-home-page .pp-home-cta-text,
    .pp-services-cta-text,
    .pp-insights-cta-text,
    .pp-about-cta-text,
    .pp-single-insights-cta-text {
        max-width: none;
        font-size: 16px;
        line-height: 24px;
    }

    body.pp-css-home-page .pp-home-cta-link,
    .pp-services-cta-link,
    .pp-insights-cta-link,
    .pp-about-cta-link,
    .pp-single-insights-cta-link {
        width: 100%;
        max-width: 300px;
        min-width: 0;
        height: 48px;
        margin-top: 24px;
    }
}
