/* =========================================================
   PITANGA WEALTH
   SERVICE + LOCATION SEO PAGES
   ========================================================= */


/* ---------- HERO ---------- */

.service-location-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 7vw, 96px) 0 clamp(60px, 8vw, 110px);
    background:
        radial-gradient(circle at 88% 12%, rgba(196, 221, 200, .48), transparent 32%),
        linear-gradient(135deg, #f7faf6 0%, #edf5ee 100%);
}

.service-location-hero::after {
    content: "";
    position: absolute;
    width: 440px;
    height: 440px;
    right: -170px;
    bottom: -230px;
    border-radius: 50%;
    border: 1px solid rgba(8, 61, 45, .10);
    pointer-events: none;
}


/* ---------- BREADCRUMBS ---------- */

.service-location-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: clamp(34px, 5vw, 62px);
    font-size: 13px;
    line-height: 1.5;
    color: rgba(8, 61, 45, .64);
}

.service-location-breadcrumbs a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.service-location-breadcrumbs a:hover {
    color: #083d2d;
}

.service-location-breadcrumbs span[aria-hidden="true"] {
    opacity: .45;
}


/* ---------- HERO GRID ---------- */

.service-location-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: clamp(40px, 7vw, 96px);
    align-items: center;
}

.service-location-hero-copy {
    max-width: 780px;
}

.service-location-hero-copy h1 {
    margin: 14px 0 22px;
    max-width: 850px;
    font-size: clamp(42px, 5.6vw, 78px);
    line-height: .99;
    letter-spacing: -.045em;
}

.service-location-lead {
    max-width: 720px;
    margin: 0;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.75;
    color: rgba(20, 38, 31, .76);
}

.service-location-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}


/* ---------- HERO INFORMATION CARD ---------- */

.service-location-hero-card {
    position: relative;
    padding: clamp(28px, 4vw, 44px);
    border: 1px solid rgba(8, 61, 45, .10);
    border-radius: 30px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 24px 70px rgba(8, 61, 45, .08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.service-location-card-label {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #667d6f;
}

.service-location-hero-card h2 {
    margin: 0 0 16px;
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -.025em;
}

.service-location-hero-card > p {
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    color: rgba(20, 38, 31, .70);
}

.service-location-card-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid rgba(8, 61, 45, .10);
}

.service-location-card-meta div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.service-location-card-meta span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #728379;
}

.service-location-card-meta strong {
    font-size: 14px;
    line-height: 1.4;
    color: #14382d;
}


/* =========================================================
   MAIN CONTENT
   ========================================================= */

.service-location-content {
    padding: clamp(70px, 9vw, 125px) 0;
    background: #fff;
}

.service-location-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: clamp(48px, 7vw, 90px);
    align-items: start;
}


/* ---------- ARTICLE ---------- */

.service-location-article {
    min-width: 0;
    max-width: 820px;
}

.service-location-article > *:first-child {
    margin-top: 0;
}

.service-location-article h2 {
    margin: 52px 0 18px;
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1.08;
    letter-spacing: -.03em;
}

.service-location-article h3 {
    margin: 38px 0 14px;
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.18;
}

.service-location-article h4 {
    margin: 30px 0 12px;
    font-size: 20px;
}

.service-location-article p {
    margin: 0 0 22px;
    font-size: 17px;
    line-height: 1.82;
    color: rgba(20, 38, 31, .78);
}

.service-location-article ul,
.service-location-article ol {
    margin: 0 0 28px;
    padding-left: 24px;
}

.service-location-article li {
    margin-bottom: 10px;
    padding-left: 4px;
    font-size: 16px;
    line-height: 1.72;
    color: rgba(20, 38, 31, .78);
}

.service-location-article a:not(.btn) {
    color: #0b5a42;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.service-location-article blockquote {
    margin: 38px 0;
    padding: 26px 30px;
    border-left: 3px solid #0b5a42;
    border-radius: 0 18px 18px 0;
    background: #f4f8f4;
}

.service-location-article blockquote p {
    margin: 0;
}


/* ---------- SIDEBAR ---------- */

.service-location-sidebar {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
}

.service-location-sidebar-card {
    padding: 28px;
    border: 1px solid rgba(8, 61, 45, .10);
    border-radius: 24px;
    background: #f8faf7;
}

.service-location-sidebar-card:nth-child(2) {
    background: #0d3f30;
    color: #fff;
}

.service-location-sidebar-card h2 {
    margin: 10px 0 12px;
    font-size: 24px;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.service-location-sidebar-card p {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(20, 38, 31, .70);
}

.service-location-sidebar-card:nth-child(2) .page-kicker {
    color: rgba(255, 255, 255, .65);
}

.service-location-sidebar-card:nth-child(2) p {
    color: rgba(255, 255, 255, .76);
}

.service-location-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #0b5a42;
    text-decoration: none;
}


/* =========================================================
   BOTTOM CTA
   ========================================================= */

.service-location-cta-section {
    padding: 0 0 clamp(70px, 9vw, 120px);
    background: #fff;
}

.service-location-cta {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 50px;
    align-items: center;
    padding: clamp(38px, 6vw, 68px);
    border-radius: 32px;
    background:
        radial-gradient(circle at 100% 0%, rgba(184, 214, 190, .18), transparent 34%),
        #0b3d2e;
    color: #fff;
}

.service-location-cta::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -110px;
    bottom: -160px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 50%;
    pointer-events: none;
}

.service-location-cta .page-kicker {
    color: rgba(255, 255, 255, .62);
}

.service-location-cta h2 {
    margin: 12px 0 14px;
    max-width: 720px;
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.05;
    letter-spacing: -.03em;
    color: #fff;
}

.service-location-cta p {
    max-width: 760px;
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: rgba(255, 255, 255, .76);
}

.service-location-cta-action {
    position: relative;
    z-index: 1;
}


/* =========================================================
   WORDPRESS CONTENT
   ========================================================= */

.service-location-article img {
    max-width: 100%;
    height: auto;
    border-radius: 22px;
}

.service-location-article figure {
    margin: 34px 0;
}

.service-location-article .wp-block-table {
    overflow-x: auto;
    margin: 32px 0;
}

.service-location-article table {
    width: 100%;
    border-collapse: collapse;
}

.service-location-article th,
.service-location-article td {
    padding: 14px 16px;
    border: 1px solid rgba(8, 61, 45, .12);
    text-align: left;
}

.service-location-article th {
    background: #f3f7f3;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {

    .service-location-hero-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .service-location-hero-card {
        max-width: 680px;
    }

    .service-location-content-grid {
        grid-template-columns: minmax(0, 1fr) 280px;
        gap: 45px;
    }

}


@media (max-width: 820px) {

    .service-location-content-grid {
        grid-template-columns: 1fr;
    }

    .service-location-article {
        max-width: none;
    }

    .service-location-sidebar {
        position: static;
        grid-template-columns: 1fr 1fr;
    }

    .service-location-cta {
        grid-template-columns: 1fr;
        gap: 28px;
    }

}


@media (max-width: 600px) {

    .service-location-hero {
        padding-top: 34px;
    }

    .service-location-breadcrumbs {
        margin-bottom: 30px;
        font-size: 12px;
    }

    .service-location-hero-copy h1 {
        font-size: clamp(38px, 12vw, 54px);
    }

    .service-location-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .service-location-hero-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .service-location-hero-card {
        padding: 25px;
        border-radius: 22px;
    }

    .service-location-card-meta {
        grid-template-columns: 1fr;
    }

    .service-location-content {
        padding: 60px 0;
    }

    .service-location-article p {
        font-size: 16px;
    }

    .service-location-sidebar {
        grid-template-columns: 1fr;
    }

    .service-location-sidebar-card {
        padding: 24px;
        border-radius: 20px;
    }

    .service-location-cta {
        padding: 30px 24px;
        border-radius: 24px;
    }

    .service-location-cta-action .btn {
        width: 100%;
        justify-content: center;
    }

}
/* =========================================================
   SERVICE LOCATION FAQ
   ========================================================= */

.service-location-article .wp-block-details {
    margin: 0 0 14px;
    overflow: hidden;
    border: 1px solid rgba(8, 61, 45, 0.12);
    border-radius: 16px;
    background: #f8faf7;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-location-article .wp-block-details:hover {
    border-color: rgba(8, 61, 45, 0.22);
    box-shadow: 0 8px 26px rgba(8, 61, 45, 0.05);
}

.service-location-article .wp-block-details summary {
    position: relative;
    display: block;
    padding: 20px 60px 20px 22px;
    cursor: pointer;
    list-style: none;
    color: #083d2d;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.service-location-article .wp-block-details summary::-webkit-details-marker {
    display: none;
}

.service-location-article .wp-block-details summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 20px;
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #e7f2e9;
    color: #0b5a42;
    font-size: 20px;
    font-weight: 500;
}

.service-location-article .wp-block-details[open] {
    background: #ffffff;
    border-color: rgba(8, 61, 45, 0.20);
}

.service-location-article .wp-block-details[open] summary::after {
    content: "−";
}

.service-location-article .wp-block-details > p {
    margin: 0;
    padding: 0 22px 22px;
    color: rgba(20, 38, 31, 0.72);
    font-size: 15px;
    line-height: 1.75;
}

@media (max-width: 600px) {
    .service-location-article .wp-block-details summary {
        padding: 18px 55px 18px 18px;
        font-size: 15px;
    }

    .service-location-article .wp-block-details > p {
        padding: 0 18px 20px;
    }
}
/* =========================================================
   SERVICE LOCATION SPACING REFINEMENT
   ========================================================= */

/* Reduce excess space after the article / FAQ */
.service-location-content {
    padding-bottom: 45px;
}

/* Keep the final FAQ from creating unnecessary bottom space */
.service-location-article .wp-block-details:last-child {
    margin-bottom: 0;
}

/* Bring bottom CTA closer to the content */
.service-location-cta-section {
    padding-top: 0;
    padding-bottom: clamp(60px, 7vw, 90px);
}

/* Slightly improve FAQ heading spacing */
.service-location-article .wp-block-separator + h2 {
    margin-top: 42px;
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .service-location-content {
        padding-bottom: 35px;
    }

    .service-location-cta-section {
        padding-bottom: 55px;
    }
}