/**
 * Region additional services section.
 *
 * Loaded by inc/region-page.php on region archives only (/texas/dallas/ and the rest), for
 * the #additional-services section templates/region-template.php renders through
 * blocks/region-editorial-services.php: three product cards, then the wide card that closes
 * the section on day offices and day passes.
 *
 * It is section 7 of css/location-editorial.css on the `amenities-bar` branch, the rules the
 * same section takes on the Editorial location template, so the two read as one design. The
 * file needs no scoping rule of its own: every selector below is on the `.lesv-*` namespace,
 * which nothing else on the page carries, and `.entry-content` is only there to outrank the
 * site-wide heading and `.with-arrow` metrics.
 *
 * The shared photo cards this section replaced are style.css's, under `.card-list`, with
 * js/more.js binding an Owl carousel over them; nothing here reaches either, and they still
 * render on every other template that calls blocks/card-list.php — including the region
 * service subpages, which are is_tax('region') too.
 *
 * @see blocks/region-editorial-services.php
 * @see templates/region-template.php
 */


/* The whole section on this template is blocks/region-editorial-services.php: three
   product cards, then a wide card for the two things here that are booked rather than
   signed for. Every other template renders the shared photo cards from blocks/card-list.php
   in the first slot instead, styled by style.css under `.card-list` with js/more.js binding
   an Owl carousel over them; none of that is loaded here.

   The three cards keep that row's chrome and most of its anatomy: `.lesv-plan` repeats the
   padding, hairline, radius and surface style.css:22037 gives `.card-list .wp-block-column`,
   so the two rows read as the same family, and carries a photograph on the same 359/240
   plate. Under it the treatment parts company with the shared cards: a line icon beside the
   name, a line of copy, and the site-wide uppercase `.with-arrow` link (style.css:19642)
   where the filled button was.

   A plain CSS grid, not a carousel: three short cards stack on a phone without one.

   The wide card under them is those cards again at full width rather than a panel of its
   own: the same hairline, radius and surface, with two hairline buttons in place of the
   "Get Started" line. It carries no `.has-background` and no WordPress button — the ring on
   `.wp-block-button.is-style-outline.gradient` is a gradient behind an opaque fill, and the
   fill is #EDEAE3 hardcoded at style.css:7591, so the buttons could not come onto this
   surface without painting a cream rectangle inside each ring.

   `.lesv-*` is this section's own namespace and the selectors below never leave it. */

.lesv-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* The card frame from style.css:22037, repeated rather than inherited: that rule is scoped
   to `.owl-carousel.card-list .wp-block-column` and this row is neither. The gold hairline
   and the `--background-gradient` surface are what tie it to the photo cards elsewhere;
   both follow the palette, so the light theme needs no rule of its own. */
.lesv-plan {
    --lesv-icon: 24px;
    --lesv-icon-gap: 14px;
    /* Everything under the head hangs off the title's first line, so the icon stands alone
       in the margin and the card reads as one column of text beside it. Derived from the
       two values above rather than typed again, so the mark can change size without the
       copy drifting out of line. */
    --lesv-indent: calc(var(--lesv-icon) + var(--lesv-icon-gap));
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    /* The padding style.css:22039 gives the shared photo cards, not this card's old 28px/24px:
       a picture inset in a wider frame than the row it sits above reads as a different card. */
    padding: 16px 16px 32px;
    border: 1px solid rgba(136, 114, 68, 0.50);
    border-radius: var(--radius-sm, 4px);
    background: var(--background-gradient, linear-gradient(180deg, rgba(18, 18, 15, 0.50) 41.37%, rgba(120, 120, 100, 0.25) 246.17%));
}

/* The photograph sits inside the card's padding rather than running to its edge, the way the
   shared photo cards carry theirs, and takes the 359/240 crop style.css:22063 gives them -
   the same plate the cards in this slot on every other template are cut to. No
   radius for the same reason, and no hover scale: these cards are not links, only the
   "Get Started" line under them is. */
.lesv-plan-media {
    display: block;
    width: 100%;
    margin: 0 0 20px;
    overflow: hidden;
    aspect-ratio: 359 / 240;
    border-radius: 0;
}

.lesv-plan-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The icon sits beside the name's first line rather than above it, so the mark and the
   product read as one line and the plan drops underneath it. The title is the flexing
   item, so its second line indents to the first rather than running back under the icon. */
.lesv-plan-head {
    display: flex;
    align-items: flex-start;
    gap: var(--lesv-icon-gap);
    width: 100%;
}

/* Gold, like the address line on the Nearby cards: a small mark rather than a second
   heading. `currentColor` on the stroke carries it.

   The 1px nudge optically centres the 24px square on the first line's box, which runs a
   little taller than the icon at the top of the title's clamp. */
.lesv-plan-icon {
    width: var(--lesv-icon);
    height: var(--lesv-icon);
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--color-text-accent);
}

/* An unqualified h3 takes --fs-heading-lg, larger than the section's own h2 (style.css:23561
   sizes h2 and leaves h3 to the heading scale), so the card name sets its own type. Serif,
   at the size the wide card's line below runs to, so the section reads as one thing. */
.entry-content .lesv-plan-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.15rem, 1.5vw, 1.35rem);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: var(--color-text-primary);
}

.lesv-plan-text {
    margin: 16px 0 0 var(--lesv-indent);
    font-size: var(--fs-body-sm);
    line-height: 1.55;
    color: var(--color-text-secondary);
}

/* `margin-top: auto` pushes the link to the foot of the card, so the three links line up
   however long the copy above them runs.

   .with-arrow (style.css:19642) is a single class, so these two-class selectors beat its
   font-size and 2.8px letter-spacing without !important. Its gold chevron is a fixed 4x8px background image on
   :after and survives untouched; only the text metrics change. */
.entry-content .lesv-plan-cta,
.entry-content .lesv-plan-cta.with-arrow {
    margin-top: auto;
    margin-left: var(--lesv-indent);
    padding-top: 24px;
    /* Gold, matching the chevron beside it (2026-11-02); it was the primary text colour. */
    color: var(--color-text-accent);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
}

.entry-content .lesv-plan-cta:hover,
.entry-content .lesv-plan-cta.with-arrow:hover {
    color: var(--color-text-primary);
}

/* The cards again at full width: same hairline, same radius, same surface, so the two
   rows read as one band rather than a row and a panel. */
.lesv-wide {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-top: 24px;
    padding: 32px 40px;
    border: 1px solid rgba(136, 114, 68, 0.50);
    border-radius: var(--radius-sm, 4px);
    background: var(--background-gradient, linear-gradient(180deg, rgba(18, 18, 15, 0.50) 41.37%, rgba(120, 120, 100, 0.25) 246.17%));
}

.lesv-wide-copy {
    flex: 1 1 auto;
    min-width: 0;
}

/* An unqualified h3 takes --fs-heading-lg, which is larger than the section's own h2
   (style.css:23561 sizes h2 and leaves h3 to the heading scale), so this one sets its own
   type: the serif the card names above are set in, a step up because this line runs the
   width of the row. */
.entry-content .lesv-wide-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--color-text-primary);
}

.lesv-wide-text {
    margin: 8px 0 0;
    max-width: 640px;
    font-size: var(--fs-body-sm);
    line-height: 1.55;
    color: var(--color-text-secondary);
}

.lesv-wide-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 16px;
    margin: 0;
}

/* The card's own border round the label, and the uppercase metrics the "Get Started" links
   are set in, so the two kinds of action on the page agree. No gradient ring and no fill:
   see the note at the head of this file for why the WordPress outline button could not come
   onto this surface. */
.entry-content .lesv-wide-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border: 1px solid rgba(136, 114, 68, 0.50);
    border-radius: var(--radius-sm, 4px);
    color: var(--color-text-primary);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.entry-content .lesv-wide-btn:hover,
.entry-content .lesv-wide-btn:focus-visible {
    border-color: var(--color-text-accent);
    color: var(--color-text-accent);
    text-decoration: none;
}

/* `currentColor` on the stroke, so the icon follows the label through the hover. */
.lesv-btn-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

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

    /* Two buttons and a line of copy no longer share a row at this width; the pair drops
       under the copy rather than squeezing it to nothing. */
    .lesv-wide {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
        padding: 28px 32px;
    }

    .lesv-wide-text {
        max-width: none;
    }
}

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

    /* Three cards this short stack rather than scroll: the row the shared photo cards turn
       into at this width is an Owl carousel, and there is no carousel here to bind. */
    .lesv-plans {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .lesv-plan {
        padding: 16px 16px 24px;
    }

    .lesv-wide {
        padding: 24px;
    }

    /* Stacked, the two buttons take the width of the card rather than the width of their
       own labels, which would come out at two different sizes. */
    .lesv-wide-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 12px;
    }
}



/* Tighter spacing around "Flexible by design." (2026-11-02). With the eyebrow gone the
   section was opening on the full 100px close of #overview above it plus the 64px the
   template puts under every heading, which read as a hole on either side of one line.
   Region archives only: this file is enqueued by inc/region-page.php and nowhere else. */
.entry-content #overview.page-section {
    padding-bottom: 48px;
}

.entry-content #additional-services > .wp-block-group__inner-container > .section-heading {
    margin-bottom: 40px;
}

.entry-content #additional-services > .wp-block-group__inner-container > .section-content {
    margin-top: 0;
}

@media only screen and (max-width: 880px) {
    .entry-content #overview.page-section {
        padding-bottom: 32px;
    }

    .entry-content #additional-services > .wp-block-group__inner-container > .section-heading {
        margin-bottom: 32px;
    }
}
