/* ==========================================================================
   PBMX Section Overrides
   ==========================================================================
   Brand-aligned overrides on top of sections.css. Loaded last so it wins
   the cascade. Donor language: /club-reset/ (terracota + verde profundo +
   Cormorant Garamond editorial). Per pillar: every section has visible
   bg complexity (gradient / grain / radial accent). Type tops out at 7rem
   per brand-guidelines hero scale.
   ========================================================================== */


/* --------------------------------------------------------------------------
   Hero (PBMX) - editorial editorial split with verde gradient over imagery
   -------------------------------------------------------------------------- */

.hero {
    position: relative;
    min-height: clamp(620px, 88vh, 880px);
    background-color: var(--pbmx-verde-profundo);
    background-size: cover;
    background-position: center 40%;
    overflow: hidden;
    isolation: isolate;
}

/* Verde-to-terracota gradient overlay - replaces the solid black scrim */
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            120deg,
            rgba(var(--pbmx-verde-rgb), 0.78) 0%,
            rgba(var(--pbmx-verde-rgb), 0.55) 45%,
            rgba(var(--pbmx-terracota-rgb), 0.32) 100%
        ),
        linear-gradient(
            180deg,
            transparent 0%,
            rgba(var(--pbmx-black-rgb), 0.18) 100%
        );
    z-index: 1;
}

/* Subtle warm-grain noise over the hero for editorial texture */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.95   0 0 0 0 0.85   0 0 0 0 0.55   0 0 0 0.45 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero__content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    color: var(--pbmx-cream);
}

.hero__heading {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 1.5rem + 4vw, 6rem);
    font-weight: var(--font-semibold);
    line-height: 1.02;
    letter-spacing: var(--tracking-tighter);
    color: var(--pbmx-cream);
    margin-bottom: var(--space-lg);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.hero__heading em {
    font-style: italic;
    color: rgba(var(--pbmx-cream-rgb), 0.92);
}

.hero__eyebrow {
    display: inline-block;
    font-family: var(--font-eyebrow);
    font-size: var(--text-sm);
    font-weight: var(--font-light);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: rgba(var(--pbmx-cream-rgb), 0.85);
    padding: 0.55rem 1.25rem;
    border: 1px solid rgba(var(--pbmx-cream-rgb), 0.4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(8px);
}

.hero__subheading {
    font-family: var(--font-body);
    font-size: clamp(1.0625rem, 1.4vw, 1.25rem);
    font-weight: var(--font-regular);
    line-height: 1.6;
    color: rgba(var(--pbmx-cream-rgb), 0.92);
    max-width: 620px;
    margin: 0 auto var(--space-2xl);
}

.hero__actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-cta-above);
}

.hero__actions .btn--primary {
    background-color: var(--pbmx-terracota);
    color: var(--pbmx-cream);
    border-color: var(--pbmx-terracota);
    box-shadow: 0 16px 32px rgba(var(--pbmx-terracota-rgb), 0.32);
}

.hero__actions .btn--primary:hover {
    background-color: var(--pbmx-terracota-dark);
    border-color: var(--pbmx-terracota-dark);
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(var(--pbmx-terracota-rgb), 0.42);
}

.hero__actions .btn--outline {
    color: var(--pbmx-cream);
    border-color: rgba(var(--pbmx-cream-rgb), 0.6);
    background: transparent;
    backdrop-filter: blur(8px);
}

.hero__actions .btn--outline:hover {
    background-color: var(--pbmx-cream);
    color: var(--pbmx-verde-profundo);
    border-color: var(--pbmx-cream);
}

/* Architectural corner mark - editorial detail */
.hero__corner-mark {
    position: absolute;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 3;
    color: rgba(var(--pbmx-cream-rgb), 0.65);
    font-family: var(--font-eyebrow);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.hero__corner-mark::before {
    content: "";
    width: 32px;
    height: 1px;
    background-color: rgba(var(--pbmx-cream-rgb), 0.5);
}

@media (max-width: 768px) {
    .hero {
        min-height: 600px;
        background-position: center 35%;
    }

    .hero__heading { font-size: clamp(2.5rem, 11vw, 4rem); }
    .hero__corner-mark { display: none; }
}


/* --------------------------------------------------------------------------
   Features (PBMX "What We Offer") - image-led editorial cards
   -------------------------------------------------------------------------- */

.features {
    background:
        radial-gradient(
            ellipse 60% 80% at 0% 0%,
            rgba(var(--pbmx-mint-rgb), 0.5) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 50% 70% at 100% 100%,
            rgba(var(--pbmx-urban-rgb), 0.08) 0%,
            transparent 55%
        ),
        var(--pbmx-cream);
}

.features__card {
    padding: 0;
    background-color: var(--pbmx-cream);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(var(--pbmx-verde-rgb), 0.1);
    text-align: left;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(var(--pbmx-verde-rgb), 0.04);
    transition: transform 500ms var(--ease-spring),
                box-shadow 500ms var(--ease-spring);
    display: flex;
    flex-direction: column;
}

.features__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 32px 60px rgba(var(--pbmx-verde-rgb), 0.16);
}

.features__card-image {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: var(--pbmx-pale-mint);
    position: relative;
}

.features__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease-spring);
}

.features__card:hover .features__card-image img {
    transform: scale(1.06);
}

.features__card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 60%,
        rgba(var(--pbmx-verde-rgb), 0.18) 100%
    );
    pointer-events: none;
}

.features__card-body {
    padding: var(--space-xl) var(--space-xl) var(--space-2xl);
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: var(--space-md);
}

.features__icon {
    display: none; /* PBMX features lead with image, not icon */
}

.features__title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2.2vw, 1.875rem);
    font-weight: var(--font-medium);
    color: var(--pbmx-verde-profundo);
    line-height: 1.2;
    margin-bottom: 0;
}

.features__description {
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--gray-600);
    line-height: 1.65;
    flex: 1;
}

.features__card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--pbmx-terracota);
    margin-top: var(--space-sm);
    transition: gap 300ms var(--ease-spring),
                color 300ms var(--ease-spring);
}

.features__card-link::after {
    content: "→";
    font-size: 1.1em;
    transition: transform 300ms var(--ease-spring);
}

.features__card-link:hover {
    color: var(--pbmx-terracota-dark);
    gap: 0.75rem;
}

.features__card-link:hover::after {
    transform: translateX(4px);
}

.features__more {
    text-align: center;
    margin-top: var(--space-3xl);
}


/* --------------------------------------------------------------------------
   Text with Image (PBMX "About PBMX") - editorial split with eyebrow
   -------------------------------------------------------------------------- */

.text-image {
    background:
        radial-gradient(
            ellipse 70% 50% at 50% 0%,
            rgba(var(--pbmx-mint-rgb), 0.35) 0%,
            transparent 55%
        ),
        var(--pbmx-cream);
}

.text-image__grid {
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.text-image__eyebrow {
    display: inline-block;
    font-family: var(--font-eyebrow);
    font-size: var(--text-sm);
    font-weight: var(--font-light);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--pbmx-urban-grove);
    margin-bottom: var(--space-md);
}

.text-image__heading {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--font-medium);
    color: var(--pbmx-verde-profundo);
    line-height: 1.1;
    letter-spacing: var(--tracking-tight);
    text-wrap: balance;
    margin-bottom: var(--space-lg);
}

.text-image__heading em {
    font-style: italic;
    color: var(--pbmx-terracota);
}

.text-image__text {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
}

.text-image__text p {
    margin-bottom: var(--space-md);
}

.text-image__actions {
    margin-top: var(--space-cta-above);
}

.text-image__media {
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: 0 32px 60px rgba(var(--pbmx-verde-rgb), 0.18);
    position: relative;
}

.text-image__media::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius-2xl);
    box-shadow: inset 0 0 0 1px rgba(var(--pbmx-cream-rgb), 0.12);
    pointer-events: none;
}

.text-image__img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .text-image__grid {
        grid-template-columns: 1fr;
    }
}


/* --------------------------------------------------------------------------
   Testimonials (PBMX) - verde profundo editorial quote
   -------------------------------------------------------------------------- */

.testimonials {
    background-color: var(--pbmx-verde-profundo);
    background-image:
        radial-gradient(
            ellipse 60% 50% at 0% 0%,
            rgba(var(--pbmx-urban-rgb), 0.28) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 50% 60% at 100% 100%,
            rgba(var(--pbmx-terracota-rgb), 0.16) 0%,
            transparent 55%
        );
    color: var(--pbmx-cream);
    position: relative;
}

.testimonials .section__title {
    color: var(--pbmx-cream);
}

.testimonials .section__subtitle {
    color: rgba(var(--pbmx-cream-rgb), 0.75);
}

.testimonials__slider {
    max-width: 1080px;
}

.testimonials__card {
    padding: clamp(2rem, 4vw, 3rem);
    background-color: rgba(var(--pbmx-cream-rgb), 0.06);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(var(--pbmx-cream-rgb), 0.14);
    border-radius: var(--radius-xl);
}

.testimonials__quote-icon {
    color: var(--pbmx-terracota);
}

.testimonials__quote {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    font-style: italic;
    font-weight: var(--font-light);
    line-height: 1.45;
    letter-spacing: -0.005em;
    color: var(--pbmx-cream);
    margin-bottom: var(--space-2xl);
    text-wrap: balance;
}

.testimonials__author-name {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    font-style: normal;
    color: var(--pbmx-cream);
}

.testimonials__author-role {
    color: rgba(var(--pbmx-cream-rgb), 0.65);
    font-size: var(--text-sm);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
}

.testimonials__avatar {
    border: 2px solid rgba(var(--pbmx-cream-rgb), 0.22);
    background-color: var(--pbmx-pale-mint);
}

/* Center-fade non-active cards on testimonial slider */
.testimonials__slider .swiper-pagination-bullet {
    background-color: rgba(var(--pbmx-cream-rgb), 0.3);
}

.testimonials__slider .swiper-pagination-bullet-active {
    background-color: var(--pbmx-terracota);
}

.testimonials__nav-btn {
    color: rgba(var(--pbmx-cream-rgb), 0.85);
    border-color: rgba(var(--pbmx-cream-rgb), 0.3);
    background-color: transparent;
}

.testimonials__nav-btn:hover {
    color: var(--pbmx-cream);
    border-color: var(--pbmx-terracota);
    background-color: var(--pbmx-terracota);
}


/* --------------------------------------------------------------------------
   Blog Preview (PBMX) - editorial card with mint surface
   -------------------------------------------------------------------------- */

.blog-preview {
    background:
        linear-gradient(
            180deg,
            var(--pbmx-cream) 0%,
            var(--pbmx-pale-mint) 100%
        );
}

.blog-preview__card,
.post-card {
    background-color: var(--pbmx-cream);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(var(--pbmx-verde-rgb), 0.1);
    box-shadow: 0 2px 12px rgba(var(--pbmx-verde-rgb), 0.04);
    transition: transform 500ms var(--ease-spring),
                box-shadow 500ms var(--ease-spring);
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(var(--pbmx-verde-rgb), 0.16);
}

.post-card__image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.post-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease-spring);
}

.post-card:hover .post-card__img {
    transform: scale(1.05);
}

.post-card__content {
    padding: var(--space-xl);
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-family: var(--font-eyebrow);
    font-size: var(--text-xs);
    font-weight: var(--font-light);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--pbmx-urban-grove);
    margin-bottom: var(--space-sm);
}

.post-card__meta > * + *::before {
    content: "·";
    margin-right: var(--space-md);
    color: rgba(var(--pbmx-verde-rgb), 0.4);
}

.post-card__title {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    font-weight: var(--font-medium);
    line-height: 1.25;
    color: var(--pbmx-verde-profundo);
    margin-bottom: var(--space-sm);
}

.post-card__title a {
    color: inherit;
    transition: color 300ms;
}

.post-card__title a:hover {
    color: var(--pbmx-terracota);
}

.post-card__excerpt {
    font-size: var(--text-base);
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.post-card__link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--font-bold);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--pbmx-terracota);
}

.post-card__link:hover { color: var(--pbmx-terracota-dark); }

.blog-preview__more {
    text-align: center;
    margin-top: var(--space-3xl);
}

.blog-preview__more .btn--outline {
    color: var(--pbmx-verde-profundo);
    border-color: var(--pbmx-verde-profundo);
}

.blog-preview__more .btn--outline:hover {
    background-color: var(--pbmx-verde-profundo);
    color: var(--pbmx-cream);
}


/* --------------------------------------------------------------------------
   CTA Section (PBMX) - terracota or verde finishing band
   -------------------------------------------------------------------------- */

.cta-section {
    text-align: center;
}

.cta-section--primary,
.cta-section--terracota {
    background-color: var(--pbmx-terracota);
    color: var(--pbmx-cream);
    background-image:
        radial-gradient(
            ellipse 80% 60% at 50% 100%,
            rgba(var(--pbmx-cream-rgb), 0.16) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 50% 60% at 0% 0%,
            rgba(var(--pbmx-black-rgb), 0.14) 0%,
            transparent 55%
        );
}

.cta-section--secondary,
.cta-section--verde {
    background-color: var(--pbmx-verde-profundo);
    color: var(--pbmx-cream);
    background-image:
        radial-gradient(
            ellipse 70% 60% at 100% 0%,
            rgba(var(--pbmx-terracota-rgb), 0.24) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 50% 60% at 0% 100%,
            rgba(var(--pbmx-urban-rgb), 0.24) 0%,
            transparent 55%
        );
}

.cta-section__heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: var(--font-medium);
    line-height: 1.1;
    letter-spacing: var(--tracking-tight);
    color: inherit;
    text-wrap: balance;
    margin-bottom: var(--space-lg);
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section__heading em {
    font-style: italic;
    color: rgba(var(--pbmx-cream-rgb), 0.92);
}

.cta-section__subheading {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.3vw, 1.1875rem);
    line-height: 1.6;
    color: rgba(var(--pbmx-cream-rgb), 0.92);
    max-width: 560px;
    margin: 0 auto var(--space-xl);
}

.cta-section__actions {
    margin-top: var(--space-cta-above);
}

.cta-section--primary .btn--primary,
.cta-section--terracota .btn--primary {
    background-color: var(--pbmx-cream);
    color: var(--pbmx-terracota);
    border-color: var(--pbmx-cream);
}

.cta-section--primary .btn--primary:hover,
.cta-section--terracota .btn--primary:hover {
    background-color: var(--pbmx-cream-dim);
    color: var(--pbmx-terracota-dark);
    border-color: var(--pbmx-cream-dim);
}

.cta-section--secondary .btn--primary,
.cta-section--verde .btn--primary {
    background-color: var(--pbmx-terracota);
    color: var(--pbmx-cream);
    border-color: var(--pbmx-terracota);
}


/* --------------------------------------------------------------------------
   WhatsApp CTA (PBMX) - centered editorial moment with WA icon
   -------------------------------------------------------------------------- */

.section-whatsapp {
    text-align: center;
    color: var(--pbmx-cream);
    background-color: var(--pbmx-verde-profundo);
    background-image:
        radial-gradient(
            ellipse 80% 70% at 50% 0%,
            rgba(var(--pbmx-urban-rgb), 0.28) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 60% 60% at 50% 100%,
            rgba(var(--pbmx-terracota-rgb), 0.16) 0%,
            transparent 55%
        );
    position: relative;
    overflow: hidden;
}

.section-whatsapp--has-image {
    background-color: var(--pbmx-verde-profundo);
}

.section-whatsapp__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-whatsapp__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border-radius: var(--radius-full);
    background-color: rgba(var(--pbmx-cream-rgb), 0.08);
    border: 1px solid rgba(var(--pbmx-cream-rgb), 0.18);
    color: var(--pbmx-cream);
    margin-bottom: var(--space-xl);
    backdrop-filter: blur(8px);
}

.section-whatsapp__icon svg {
    width: 44px;
    height: 44px;
}

.section-whatsapp__eyebrow {
    color: rgba(var(--pbmx-cream-rgb), 0.78);
    margin-bottom: var(--space-md);
}

.section-whatsapp__heading {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: var(--font-medium);
    line-height: 1.1;
    color: var(--pbmx-cream);
    text-wrap: balance;
    margin-bottom: var(--space-md);
    max-width: 640px;
}

.section-whatsapp__subheading {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    color: rgba(var(--pbmx-cream-rgb), 0.85);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: var(--space-xl);
}

.section-whatsapp__cta {
    margin-top: var(--space-cta-above);
}


/* --------------------------------------------------------------------------
   Section Header (PBMX) - editorial title with optional eyebrow
   -------------------------------------------------------------------------- */

.section__eyebrow {
    display: inline-block;
    font-family: var(--font-eyebrow);
    font-size: var(--text-sm);
    font-weight: var(--font-light);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--pbmx-urban-grove);
    margin-bottom: var(--space-md);
}

.section--verde .section__eyebrow,
.testimonials .section__eyebrow,
.cta-section--primary .section__eyebrow,
.cta-section--terracota .section__eyebrow,
.cta-section--secondary .section__eyebrow,
.cta-section--verde .section__eyebrow {
    color: rgba(var(--pbmx-cream-rgb), 0.92);
}


/* --------------------------------------------------------------------------
   Page Intro (PBMX) - editorial top band for interior pages
   -------------------------------------------------------------------------- */

.section-page-intro {
    padding-top: clamp(7rem, 14vw, 10rem);
    padding-bottom: clamp(4rem, 8vw, 6rem);
    text-align: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.section-page-intro--has-image {
    color: var(--pbmx-cream);
    background-size: cover;
    background-position: center 40%;
}

.section-page-intro:not(.section-page-intro--has-image) {
    background:
        radial-gradient(
            ellipse 60% 70% at 0% 0%,
            rgba(var(--pbmx-mint-rgb), 0.45) 0%,
            transparent 55%
        ),
        radial-gradient(
            ellipse 50% 60% at 100% 100%,
            rgba(var(--pbmx-urban-rgb), 0.08) 0%,
            transparent 55%
        ),
        var(--pbmx-cream);
}

.section-page-intro__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.section-page-intro__eyebrow {
    color: var(--pbmx-urban-grove);
    margin-bottom: var(--space-md);
}

.section-page-intro--has-image .section-page-intro__eyebrow {
    color: rgba(var(--pbmx-cream-rgb), 0.85);
}

.section-page-intro__heading {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: var(--font-semibold);
    line-height: 1.05;
    letter-spacing: var(--tracking-tighter);
    color: var(--pbmx-verde-profundo);
    text-wrap: balance;
    margin-bottom: var(--space-md);
}

.section-page-intro--has-image .section-page-intro__heading {
    color: var(--pbmx-cream);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.18);
}

.section-page-intro__heading em {
    font-style: italic;
    color: var(--pbmx-terracota);
}

/* --------------------------------------------------------------------------
   Button hover override (the global a:hover { color: terracota } in
   design-system.css can win the cascade against .btn--primary:hover
   when LiteSpeed combines stylesheets, so force cream on btn hovers).
   -------------------------------------------------------------------------- */

.btn.btn--primary,
a.btn.btn--primary {
    color: var(--pbmx-cream) !important;
}

.btn.btn--primary:hover,
a.btn.btn--primary:hover {
    color: var(--pbmx-cream) !important;
    background-color: var(--pbmx-terracota-dark) !important;
    border-color: var(--pbmx-terracota-dark) !important;
}

/* CTA bands invert btn--primary to cream bg + terracota text */
.cta-section--primary .btn.btn--primary,
.cta-section--terracota .btn.btn--primary {
    color: var(--pbmx-terracota) !important;
    background-color: var(--pbmx-cream) !important;
    border-color: var(--pbmx-cream) !important;
}

.cta-section--primary .btn.btn--primary:hover,
.cta-section--terracota .btn.btn--primary:hover {
    color: var(--pbmx-terracota-dark) !important;
    background-color: var(--pbmx-cream-dim) !important;
    border-color: var(--pbmx-cream-dim) !important;
}

/* Single service body */
.single-service__body {
    background:
        radial-gradient(
            ellipse 60% 60% at 50% 0%,
            rgba(var(--pbmx-mint-rgb), 0.35) 0%,
            transparent 55%
        ),
        var(--pbmx-cream);
}

.single-service__content {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: var(--space-3xl);
}

.single-service__content p { margin-bottom: var(--space-lg); }

.single-service__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(var(--pbmx-verde-rgb), 0.12);
}

.section-page-intro--has-image .section-page-intro__heading em {
    color: rgba(var(--pbmx-cream-rgb), 0.92);
}

.section-page-intro__subheading {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.1875rem);
    line-height: 1.65;
    color: var(--gray-600);
    max-width: 560px;
}

.section-page-intro--has-image .section-page-intro__subheading {
    color: rgba(var(--pbmx-cream-rgb), 0.92);
}


/* --------------------------------------------------------------------------
   Location Cards (PBMX)
   -------------------------------------------------------------------------- */

.section-locations__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: var(--space-3xl);
}

.location-card {
    background-color: var(--pbmx-cream);
    border: 1px solid rgba(var(--pbmx-verde-rgb), 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(var(--pbmx-verde-rgb), 0.04);
    transition: transform 500ms var(--ease-spring),
                box-shadow 500ms var(--ease-spring);
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 56px rgba(var(--pbmx-verde-rgb), 0.16);
}

.location-card__media {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background-color: var(--pbmx-pale-mint);
}

.location-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.location-card__body {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.location-card__neighborhood {
    margin-bottom: 0;
}

.location-card__name {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 2vw, 1.875rem);
    font-weight: var(--font-medium);
    color: var(--pbmx-verde-profundo);
    line-height: 1.2;
    margin-bottom: 0;
}

.location-card__address {
    font-family: var(--font-body);
    font-style: normal;
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--gray-600);
}


/* --------------------------------------------------------------------------
   Team (PBMX)
   -------------------------------------------------------------------------- */

.team {
    background:
        radial-gradient(
            ellipse 60% 70% at 0% 0%,
            rgba(var(--pbmx-mint-rgb), 0.4) 0%,
            transparent 55%
        ),
        var(--pbmx-cream);
}

.team__card {
    background-color: var(--pbmx-cream);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(var(--pbmx-verde-rgb), 0.1);
    box-shadow: 0 2px 12px rgba(var(--pbmx-verde-rgb), 0.04);
    overflow: hidden;
    transition: transform 500ms var(--ease-spring),
                box-shadow 500ms var(--ease-spring);
}

.team__card:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 56px rgba(var(--pbmx-verde-rgb), 0.16);
}

.team__photo-wrap {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background-color: var(--pbmx-pale-mint);
}

.team__info {
    padding: var(--space-xl);
    text-align: center;
}

.team__name {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 1.7vw, 1.5rem);
    font-weight: var(--font-medium);
    color: var(--pbmx-verde-profundo);
    margin-bottom: var(--space-xs);
}

.team__role {
    font-family: var(--font-eyebrow);
    font-size: var(--text-xs);
    font-weight: var(--font-light);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--pbmx-urban-grove);
    margin-bottom: var(--space-md);
}

.team__bio {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--gray-600);
}


/* --------------------------------------------------------------------------
   Single Post (Blog) - editorial article layout
   -------------------------------------------------------------------------- */

.single-post {
    background-color: var(--pbmx-cream);
}

/* Verde profundo gradient band header for blog single posts */
.single-post__header {
    background-color: var(--pbmx-verde-profundo);
    background-image:
        radial-gradient(
            ellipse 60% 70% at 100% 0%,
            rgba(var(--pbmx-terracota-rgb), 0.22) 0%,
            transparent 60%
        ),
        radial-gradient(
            ellipse 50% 60% at 0% 100%,
            rgba(var(--pbmx-urban-rgb), 0.28) 0%,
            transparent 55%
        );
    color: var(--pbmx-cream);
    padding: clamp(7rem, 12vw, 9rem) 0 clamp(3rem, 5vw, 4rem);
    margin-bottom: clamp(2rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
}

.single-post__header-inner {
    position: relative;
    z-index: 1;
}

.single-post__hero {
    aspect-ratio: 21 / 9;
    overflow: hidden;
    margin-top: clamp(2rem, 4vw, 3rem);
    border-radius: var(--radius-2xl);
    margin-left: auto;
    margin-right: auto;
    max-width: 1200px;
    box-shadow: 0 24px 48px rgba(var(--pbmx-black-rgb), 0.32);
}

.single-post__hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post__meta {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    font-family: var(--font-eyebrow);
    font-size: var(--text-xs);
    font-weight: var(--font-light);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: rgba(var(--pbmx-cream-rgb), 0.78);
    margin-bottom: var(--space-md);
}

.single-post__categories a {
    color: var(--pbmx-cream);
}

.single-post__meta > * + *::before {
    content: "·";
    margin-right: var(--space-md);
    color: rgba(var(--pbmx-verde-rgb), 0.4);
}

.single-post__categories a {
    color: inherit;
    text-decoration: none;
}

.single-post__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: var(--font-medium);
    line-height: 1.1;
    letter-spacing: var(--tracking-tighter);
    color: var(--pbmx-cream);
    text-wrap: balance;
    max-width: 920px;
    margin: 0;
}

.single-post__author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(var(--pbmx-verde-rgb), 0.1);
    max-width: 460px;
}

.single-post__avatar {
    border-radius: 999px;
    background-color: var(--pbmx-pale-mint);
}

.single-post__author-name {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--pbmx-verde-profundo);
}

.single-post__author-bio {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--gray-500);
}

.single-post__content {
    padding-top: clamp(1rem, 3vw, 2rem);
    padding-bottom: clamp(2rem, 5vw, 4rem);
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.2vw, 1.125rem);
    line-height: 1.8;
    color: var(--gray-700);
}

.single-post__content p { margin-bottom: var(--space-lg); }
.single-post__content h2,
.single-post__content h3 {
    font-family: var(--font-heading);
    color: var(--pbmx-verde-profundo);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
}
.single-post__content h2 { font-size: clamp(1.625rem, 2.5vw, 2.25rem); }
.single-post__content h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); }

.single-post__content blockquote {
    border-left: 3px solid var(--pbmx-terracota);
    padding-left: var(--space-lg);
    margin: var(--space-xl) 0;
    font-family: var(--font-heading);
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    font-style: italic;
    color: var(--pbmx-verde-profundo);
}

.single-post__content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: var(--space-xl) 0;
}

.single-post__content a {
    color: var(--pbmx-terracota);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.single-post__footer {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(var(--pbmx-verde-rgb), 0.1);
    margin-top: var(--space-xl);
}

.single-post__tags-label {
    font-family: var(--font-eyebrow);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--pbmx-urban-grove);
    margin-right: var(--space-sm);
}

.single-post__tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background-color: var(--pbmx-pale-mint);
    color: var(--pbmx-verde-profundo);
    border-radius: 999px;
    font-size: var(--text-xs);
    margin-right: var(--space-xs);
    text-decoration: none;
}

.single-post__nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    padding-top: var(--space-2xl);
    margin-top: var(--space-2xl);
    border-top: 1px solid rgba(var(--pbmx-verde-rgb), 0.1);
}

.single-post__nav-link {
    padding: var(--space-lg);
    border: 1px solid rgba(var(--pbmx-verde-rgb), 0.12);
    border-radius: var(--radius-lg);
    background-color: var(--pbmx-cream);
    transition: border-color 300ms, background-color 300ms;
}

.single-post__nav-link:hover {
    border-color: var(--pbmx-terracota);
    background-color: rgba(var(--pbmx-terracota-rgb), 0.04);
}

.single-post__nav-link--next { text-align: right; }

.single-post__nav-label {
    display: block;
    font-family: var(--font-eyebrow);
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--pbmx-urban-grove);
    margin-bottom: var(--space-xs);
}

.single-post__nav-title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--pbmx-verde-profundo);
    line-height: 1.3;
}

@media (max-width: 768px) {
    .single-post__nav { grid-template-columns: 1fr; }
    .single-post__nav-link--next { text-align: left; }
}


/* --------------------------------------------------------------------------
   Value Blocks (PBMX)
   -------------------------------------------------------------------------- */

.section-value-blocks {
    background:
        radial-gradient(
            ellipse 70% 60% at 50% 0%,
            rgba(var(--pbmx-mint-rgb), 0.35) 0%,
            transparent 60%
        ),
        var(--pbmx-cream);
}

.section-value-blocks__grid {
    display: grid;
    gap: clamp(1.5rem, 3vw, 2.5rem);
    margin-top: var(--space-3xl);
}

.section-value-blocks__grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.section-value-blocks__grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.section-value-blocks__grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.value-block {
    background-color: var(--pbmx-cream);
    border: 1px solid rgba(var(--pbmx-verde-rgb), 0.12);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 3vw, 2.75rem);
    position: relative;
    transition: transform 400ms var(--ease-spring),
                box-shadow 400ms var(--ease-spring);
}

.value-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 24px 48px rgba(var(--pbmx-verde-rgb), 0.12);
}

.value-block__num {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 4vw, 3.25rem);
    font-weight: var(--font-light);
    line-height: 1;
    color: var(--pbmx-terracota);
    margin-bottom: var(--space-lg);
    font-style: italic;
}

.value-block__title {
    font-family: var(--font-heading);
    font-size: clamp(1.375rem, 2vw, 1.625rem);
    font-weight: var(--font-medium);
    color: var(--pbmx-verde-profundo);
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

.value-block__body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.65;
    color: var(--gray-600);
}


/* --------------------------------------------------------------------------
   PBMX Custom Contact Form (rendered inline by contact-form.php section partial)
   -------------------------------------------------------------------------- */

.contact-form {
    background:
        radial-gradient(
            ellipse 70% 60% at 0% 0%,
            rgba(var(--pbmx-mint-rgb), 0.4) 0%,
            transparent 55%
        ),
        var(--pbmx-cream);
}

.contact-form__form-wrap {
    background-color: var(--pbmx-pale-mint);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 3vw, 2.75rem);
    border: 1px solid rgba(var(--pbmx-verde-rgb), 0.12);
}

.contact-form__info {
    background-color: var(--pbmx-verde-profundo);
    color: var(--pbmx-cream);
    border-radius: var(--radius-xl);
    padding: clamp(2rem, 3vw, 2.75rem);
}

.contact-form__info-title {
    color: var(--pbmx-cream);
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 1.7vw, 1.5rem);
    margin-bottom: var(--space-xl);
}

.contact-form__info-icon {
    color: var(--pbmx-terracota);
}

.pbmx-contact-form .form-row { margin-bottom: var(--space-md); }
.pbmx-contact-form label {
    display: block;
    font-family: var(--font-eyebrow);
    font-size: var(--text-xs);
    font-weight: var(--font-light);
    letter-spacing: var(--tracking-widest);
    text-transform: uppercase;
    color: var(--pbmx-verde-profundo);
    margin-bottom: var(--space-xs);
}
.pbmx-contact-form input,
.pbmx-contact-form textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid rgba(var(--pbmx-verde-rgb), 0.2);
    border-radius: var(--radius-sm);
    background-color: var(--pbmx-cream);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--pbmx-black);
    transition: border-color 300ms;
}
.pbmx-contact-form input:focus,
.pbmx-contact-form textarea:focus {
    outline: none;
    border-color: var(--pbmx-verde-profundo);
    box-shadow: 0 0 0 3px rgba(var(--pbmx-verde-rgb), 0.15);
}
.pbmx-contact-form textarea { min-height: 140px; resize: vertical; }
.pbmx-contact-form .pbmx-contact-form__honeypot { position: absolute; left: -9999px; }
.pbmx-contact-form__msg {
    margin-top: var(--space-md);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
}
.pbmx-contact-form__msg--success { background-color: rgba(var(--pbmx-urban-rgb), 0.16); color: var(--pbmx-verde-profundo); }
.pbmx-contact-form__msg--error { background-color: rgba(var(--pbmx-terracota-rgb), 0.12); color: var(--pbmx-terracota-dark); }

.section__title {
    font-family: var(--font-heading);
    font-size: var(--text-4xl);
    font-weight: var(--font-medium);
    line-height: 1.1;
    letter-spacing: var(--tracking-tight);
    color: var(--pbmx-verde-profundo);
    text-wrap: balance;
    margin-bottom: var(--space-md);
}

.section__title em {
    font-style: italic;
    color: var(--pbmx-terracota);
}

.section--verde .section__title,
.testimonials .section__title { color: var(--pbmx-cream); }

.section__subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.15vw, 1.125rem);
    line-height: 1.6;
    color: var(--gray-600);
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
}
