/* ==========================================================================
   INNER PAGES - Phase 4
   
   Styles for:
   - Page header banner (shared)
   - Sidebar layout (conditions + services)
   - Sidebar components (CTA box, link lists)
   - Testimonial marker (shared)
   - Inline testimonial
   - CTA strip (shared bottom banner)
   - Team member profile
   - Team archive grid
   - Testimonials page grid
   - Contact page
   - Reviews page
   
   All colours use CSS custom properties from theme.json.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Responsive Visibility Utilities

   Add these classes via the block editor's Advanced -> "Additional CSS class(es)"
   field to show or hide individual blocks on specific screen sizes.

   .wmes-desktop-only  -- hidden on mobile/tablet, visible on desktop (1024px+)
   .wmes-mobile-hidden -- alias for .wmes-desktop-only (same behaviour)
   .wmes-mobile-only   -- visible on mobile/tablet only, hidden on desktop (1024px+)

   MEDIA & TEXT BLOCKS:
   The block editor only lets you add a class to the whole Media & Text block, not
   to the image cell inside it. Adding wmes-desktop-only to a wp-block-media-text
   element therefore gets special treatment: the block itself stays visible (so the
   text column remains readable on mobile) but only the image cell is hidden, and the
   grid collapses to a single column. On desktop both columns are restored as normal.
   -------------------------------------------------------------------------- */

/* General rule: hide the whole block */
.wmes-desktop-only,
.wmes-mobile-hidden {
    display: none !important;
}

/* Media & Text block exception: keep the grid visible, hide only the image cell.
   Higher specificity (two classes) wins over the general rule above. */
.wp-block-media-text.wmes-desktop-only,
.wp-block-media-text.wmes-mobile-hidden {
    display: grid !important;
    grid-template-columns: 1fr !important;
}

.wp-block-media-text.wmes-desktop-only .wp-block-media-text__media,
.wp-block-media-text.wmes-mobile-hidden .wp-block-media-text__media {
    display: none !important;
}

@media (min-width: 1024px) {

    /* General restore */
    .wmes-desktop-only,
    .wmes-mobile-hidden {
        display: revert !important;
    }

    /* Media & Text restore: let WP set the grid-template-columns back */
    .wp-block-media-text.wmes-desktop-only,
    .wp-block-media-text.wmes-mobile-hidden {
        grid-template-columns: revert !important;
    }

    .wp-block-media-text.wmes-desktop-only .wp-block-media-text__media,
    .wp-block-media-text.wmes-mobile-hidden .wp-block-media-text__media {
        display: revert !important;
    }

}

.wmes-mobile-only {
    display: revert !important;
}

@media (min-width: 1024px) {
    .wmes-mobile-only {
        display: none !important;
    }
}

/* --------------------------------------------------------------------------
   Page Header Banner (shared across all inner pages)
   -------------------------------------------------------------------------- */

.wmes-page-header {
    background: linear-gradient(135deg, var(--wp--preset--color--secondary) 0%, var(--wp--preset--color--primary) 100%);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

@media (min-width: 768px) {
    .wmes-page-header {
        padding: 70px 0;
    }
}

.wmes-page-header h1 {
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin: 0 0 10px;
}

.wmes-page-header__desc {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.9;
    margin: 0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.wmes-page-header__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    margin-bottom: 15px;
    font-size: 24px;
}

/* --------------------------------------------------------------------------
   Inner Page Layout (shared)
   -------------------------------------------------------------------------- */

.wmes-inner-page {
    padding: 40px 0 60px;
}

@media (min-width: 768px) {
    .wmes-inner-page {
        padding: 60px 0 80px;
    }
}

.wmes-inner-page__intro {
    margin-bottom: 40px;
}

/* --------------------------------------------------------------------------
   Sidebar Layout (conditions + services)
   -------------------------------------------------------------------------- */

.wmes-inner-page__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) {
    .wmes-inner-page__grid {
        grid-template-columns: 1fr 340px;
        gap: 50px;
    }
}

/* Full-width layout (sidebar disabled via WMES Settings) */
.wmes-inner-page__grid--full {
    grid-template-columns: 1fr !important;
}

/* Main content area */
.wmes-inner-page__content {
    min-width: 0; /* Prevent overflow */
}

.wmes-inner-page__featured-image {
    margin-bottom: 30px;
    border-radius: var(--wmes-corner-radius, 8px);
    overflow: hidden;
}

.wmes-inner-page__featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* --------------------------------------------------------------------------
   Content Typography - Shared Rules
   
   Applies to both .wmes-inner-page__body (condition/service pages) and
   .entry-content (standard pages via page.php) so spacing is identical
   regardless of which template is rendering the content.
   
   The global stylesheet resets margin-top to 0 on all headings. These
   rules restore breathing room between headings and preceding content.
   -------------------------------------------------------------------------- */

.wmes-inner-page__body,
.entry-content {
    line-height: 1.8;
}

.wmes-inner-page__body h2,
.entry-content h2 {
    font-size: clamp(24px, 3vw, 32px);
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--wp--preset--color--secondary);
}

.wmes-inner-page__body h3,
.entry-content h3 {
    font-size: clamp(20px, 2.5vw, 26px);
    margin-top: 30px;
    margin-bottom: 12px;
    color: var(--wp--preset--color--secondary);
}

.wmes-inner-page__body h4,
.entry-content h4 {
    font-size: clamp(18px, 2vw, 22px);
    margin-top: 25px;
    margin-bottom: 10px;
    color: var(--wp--preset--color--secondary);
}

/* Remove top margin on the very first heading so it sits flush with the
   section padding above it rather than adding extra whitespace. */
.wmes-inner-page__body > h2:first-child,
.wmes-inner-page__body > h3:first-child,
.wmes-inner-page__body > h4:first-child,
.wmes-inner-page__body > .wp-block-heading:first-child,
.entry-content > h2:first-child,
.entry-content > h3:first-child,
.entry-content > h4:first-child,
.entry-content > .wp-block-heading:first-child {
    margin-top: 0;
}

.wmes-inner-page__body ul,
.wmes-inner-page__body ol,
.entry-content ul,
.entry-content ol {
    margin-bottom: 20px;
    padding-left: 25px;
}

.wmes-inner-page__body li,
.entry-content li {
    margin-bottom: 8px;
}

/* --------------------------------------------------------------------------
   Sidebar Components
   -------------------------------------------------------------------------- */

.wmes-inner-page__sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* CTA Box */
.wmes-sidebar-cta {
    background: linear-gradient(135deg, var(--wp--preset--color--secondary) 0%, var(--wp--preset--color--primary) 100%);
    color: #fff;
    padding: 30px;
    border-radius: var(--wmes-corner-radius, 8px);
    text-align: center;
}

.wmes-sidebar-cta h3 {
    color: #fff;
    font-size: 20px;
    margin: 0 0 10px;
}

.wmes-sidebar-cta p {
    font-size: 15px;
    opacity: 0.9;
    margin: 0 0 20px;
}

.wmes-btn--full {
    display: block;
    width: 100%;
    text-align: center;
}

.wmes-sidebar-cta .wmes-btn--full + .wmes-btn--full {
    margin-top: 10px;
}

.wmes-btn--outline {
    background: var(--wp--preset--color--primary);
    color: #fff;
    border: 2px solid var(--wp--preset--color--primary);
}

.wmes-btn--outline:hover {
    background: var(--wp--preset--color--secondary);
    border-color: var(--wp--preset--color--secondary);
    color: #fff;
}

/* Inside the dark CTA box, same style applies */
.wmes-sidebar-cta .wmes-btn--outline {
    background: var(--wp--preset--color--primary);
    color: #fff;
    border-color: var(--wp--preset--color--primary);
}

.wmes-sidebar-cta .wmes-btn--outline:hover {
    background: var(--wp--preset--color--secondary);
    border-color: var(--wp--preset--color--secondary);
    color: #fff;
}

/* Sidebar Box (link lists) */
.wmes-sidebar-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: var(--wmes-corner-radius, 8px);
}

.wmes-sidebar-box h3 {
    font-size: 18px;
    margin: 0 0 15px;
    color: var(--wp--preset--color--secondary);
}

.wmes-sidebar-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wmes-sidebar-links li {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e9ecef;
}

.wmes-sidebar-links li:last-child {
    border-bottom: none;
}

.wmes-sidebar-links li a {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    padding: 10px 0;
    color: #333;
    font-size: 15px;
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.wmes-sidebar-links li a:hover {
    color: var(--wp--preset--color--primary);
    padding-left: 5px;
}

.wmes-sidebar-links li i,
.wmes-sidebar-links li .wmes-svg-icon {
    width: 18px;
    text-align: center;
    color: var(--wp--preset--color--primary);
    font-size: 14px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Team Member Name Qualifier (shared)

   The text that follows a team member's name, e.g. ", Doctor of
   Chiropractic", output by wmes_get_team_name_html() in every heading and
   card that names a team member: profile page, homepage and hub cards,
   practitioner lists and the service sidebar.

   It must stay inline. UK chiropractic rules allow "Dr" only when it is
   qualified in the same statement, so the qualifier is never moved onto a
   line of its own -- smaller and lighter, but part of the same line of text,
   wrapping with it. Colour is inherited so it works on light cards and on
   the coloured page header alike.
   -------------------------------------------------------------------------- */

.wmes-name-qualifier {
    display: inline;
    font-size: 0.7em;
    font-weight: 400;
    letter-spacing: 0;
    white-space: normal;
}

/* --------------------------------------------------------------------------
   Testimonial Marker (shared)

   The block that sits above the text on every testimonial the theme renders:
   testimonials page cards, inline testimonials on condition and area pages,
   the [testimonial] shortcode, and landing page review cards.

   Which variant appears is set site-wide in Settings > Site Details >
   Reviews Section. Stars keep their existing per-context rules; the
   decorative variants share the rules here.
   -------------------------------------------------------------------------- */

.wmes-testimonial-mark {
    line-height: 1;
}

.wmes-testimonial-mark--quote {
    /* The glyph is drawn near the top of its line box, so the box is clipped
       to remove the dead space beneath it and keep spacing predictable. */
    font: 700 56px/1 Georgia, "Times New Roman", Times, serif;
    height: 30px;
    overflow: hidden;
    color: var(--wp--preset--color--primary);
    opacity: 0.3;
}

.wmes-testimonial-mark--rule {
    width: 44px;
    height: 3px;
    border-radius: 2px;
    background: var(--wp--preset--color--primary);
}

/* Per-context spacing, matching the star rule each marker sits alongside.
   The landing page review card is a flex column with its own gap, so it
   needs no margin here. */

.wmes-testimonial-card__mark {
    margin-bottom: 15px;
}

.wmes-inline-testimonial__mark,
.wmes-testimonial__mark {
    margin-bottom: 12px;
}

/* Unearned stars on landing page review cards. */

.wmes-star--empty {
    color: #d1d5db;
}

/* --------------------------------------------------------------------------
   Inline Testimonial (on condition pages)
   -------------------------------------------------------------------------- */

.wmes-inline-testimonial {
    background: #f8f9fa;
    border-left: 4px solid var(--wp--preset--color--primary);
    padding: 30px;
    margin: 40px 0 0;
    border-radius: 0 var(--wmes-corner-radius, 8px) var(--wmes-corner-radius, 8px) 0;
}

.wmes-inline-testimonial__stars {
    color: #f4b400;
    font-size: 18px;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.wmes-inline-testimonial__text {
    font-style: italic;
    font-size: 16px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 12px;
}

.wmes-inline-testimonial__text p:last-child {
    margin-bottom: 0;
}

.wmes-inline-testimonial__author {
    font-weight: 600;
    color: var(--wp--preset--color--secondary);
    font-style: normal;
    font-size: 15px;
}

/* --------------------------------------------------------------------------
   CTA Banner - Inner Page Variant
   
   The inner page CTA reuses the homepage .wmes-cta-banner layout
   from style.css (centered heading, text, buttons, gradient background).
   This modifier ensures buttons use the standard primary/secondary pattern.
   -------------------------------------------------------------------------- */

.wmes-cta-banner--inner .wmes-cta-banner__buttons .wmes-btn {
    background: var(--wp--preset--color--primary);
    color: #fff;
}

.wmes-cta-banner--inner .wmes-cta-banner__buttons .wmes-btn:hover {
    background: var(--wp--preset--color--secondary);
    color: #fff;
}

.wmes-btn--white {
    background: var(--wp--preset--color--primary);
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: var(--wmes-corner-radius, 8px);
    text-decoration: none;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.wmes-btn--white:hover {
    background: var(--wp--preset--color--secondary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.wmes-btn--white-outline {
    background: var(--wp--preset--color--primary);
    color: #fff;
    font-weight: 700;
    padding: 12px 28px;
    border: 2px solid var(--wp--preset--color--primary);
    border-radius: var(--wmes-corner-radius, 8px);
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
}

.wmes-btn--white-outline:hover {
    background: var(--wp--preset--color--secondary);
    border-color: var(--wp--preset--color--secondary);
    color: #fff;
}

/* --------------------------------------------------------------------------
   Team Member Profile Page
   -------------------------------------------------------------------------- */

.wmes-profile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .wmes-profile {
        grid-template-columns: 300px 1fr;
        gap: 40px;
    }
}

.wmes-profile__photo {
    border-radius: var(--wmes-corner-radius, 8px);
    overflow: hidden;
}

.wmes-profile__photo img {
    width: 100%;
    height: auto;
    display: block;
}

.wmes-profile__photo-placeholder {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    color: #ccc;
}

.wmes-profile__info h2 {
    font-size: clamp(26px, 3vw, 36px);
    margin: 0 0 8px;
}

.wmes-profile__role {
    font-size: 20px;
    color: var(--wp--preset--color--primary);
    font-weight: 600;
    margin: 0 0 15px;
}

.wmes-profile__qualifications,
.wmes-profile__registration {
    font-size: 15px;
    color: #666;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wmes-profile__qualifications i,
.wmes-profile__registration i {
    color: var(--wp--preset--color--primary);
    width: 18px;
    text-align: center;
}

.wmes-profile__actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.wmes-profile__bio {
    margin-bottom: 50px;
    line-height: 1.8;
}

.wmes-profile__bio h2,
.wmes-profile__bio h3 {
    color: var(--wp--preset--color--secondary);
}

/* Related team members */
.wmes-related-team {
    border-top: 1px solid #e9ecef;
    padding-top: 40px;
    margin-top: 20px;
}

.wmes-related-team h2 {
    text-align: center;
    margin-bottom: 30px;
}

.wmes-related-team__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.wmes-related-team__card {
    text-align: center;
    text-decoration: none;
    color: #333;
    padding: 15px;
    border-radius: var(--wmes-corner-radius, 8px);
    transition: background 0.3s, transform 0.2s;
}

.wmes-related-team__card:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    color: #333;
}

.wmes-related-team__photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 12px;
}

.wmes-related-team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Head-and-shoulders photos: anchor the crop near the top so a centre
       crop never cuts off the head. See build spec 9.4 for supplied size. */
    object-position: 50% 20%;
}

.wmes-related-team__photo-placeholder {
    width: 100%;
    height: 100%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #ccc;
}

.wmes-related-team__card h4 {
    font-size: 16px;
    margin: 0 0 4px;
    color: var(--wp--preset--color--secondary);
}

.wmes-related-team__card span {
    font-size: 13px;
    color: #888;
}

/* --------------------------------------------------------------------------
   Team Archive Grid
   -------------------------------------------------------------------------- */

.wmes-archive-team__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 600px) {
    .wmes-archive-team__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .wmes-archive-team__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wmes-archive-team__card {
    background: #fff;
    border-radius: var(--wmes-corner-radius, 8px);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.wmes-archive-team__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.wmes-archive-team__photo {
    display: block;
    aspect-ratio: 1;
    overflow: hidden;
}

.wmes-archive-team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Head-and-shoulders photos: anchor the crop near the top so a centre
       crop never cuts off the head. See build spec 9.4 for supplied size. */
    object-position: 50% 20%;
    transition: transform 0.3s ease;
}

.wmes-archive-team__card:hover .wmes-archive-team__photo img {
    transform: scale(1.05);
}

.wmes-archive-team__photo-placeholder {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: #ccc;
}

.wmes-archive-team__info {
    padding: 20px;
}

.wmes-archive-team__info h2 {
    font-size: 22px;
    margin: 0 0 5px;
}

.wmes-archive-team__info h2 a {
    color: var(--wp--preset--color--secondary);
    text-decoration: none;
}

.wmes-archive-team__info h2 a:hover {
    color: var(--wp--preset--color--primary);
}

.wmes-archive-team__role {
    color: var(--wp--preset--color--primary);
    font-weight: 600;
    margin: 0 0 8px;
    font-size: 15px;
}

.wmes-archive-team__quals {
    color: #666;
    font-size: 14px;
    margin: 0 0 5px;
}

.wmes-archive-team__reg {
    color: #888;
    font-size: 13px;
    margin: 0 0 15px;
}

.wmes-archive-team__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   Testimonials Page Grid
   -------------------------------------------------------------------------- */

.wmes-testimonials__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
}

@media (min-width: 700px) {
    .wmes-testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .wmes-testimonials__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wmes-testimonial-card {
    background: #fff;
    border-radius: var(--wmes-corner-radius, 8px);
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, box-shadow 0.3s;
}

.wmes-testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.wmes-testimonial-card__stars {
    color: #f4b400;
    font-size: 18px;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.wmes-testimonial-card__text {
    flex: 1;
    font-size: 15px;
    line-height: 1.7;
    color: #555;
    margin-bottom: 15px;
}

.wmes-testimonial-card__text p:last-child {
    margin-bottom: 0;
}

.wmes-testimonial-card__footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wmes-testimonial-card__name {
    font-weight: 700;
    color: var(--wp--preset--color--secondary);
    font-size: 15px;
}

.wmes-testimonial-card__condition {
    font-size: 13px;
    color: var(--wp--preset--color--primary);
}

/* --------------------------------------------------------------------------
   Contact Page
   -------------------------------------------------------------------------- */

.wmes-contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

@media (min-width: 900px) {
    .wmes-contact__grid {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
    }
}

.wmes-contact__details h2 {
    margin-bottom: 25px;
}

.wmes-contact__item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.wmes-contact__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    background: var(--wp--preset--color--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.wmes-contact__item strong {
    display: block;
    margin-bottom: 3px;
    color: var(--wp--preset--color--secondary);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wmes-contact__item a {
    color: #333;
}

.wmes-contact__item a:hover {
    color: var(--wp--preset--color--primary);
}

/* Opening Hours */
.wmes-contact__hours {
    margin-top: 30px;
}

.wmes-contact__hours h3 {
    margin-bottom: 15px;
}

.wmes-hours-table {
    width: 100%;
    border-collapse: collapse;
}

.wmes-hours-table tr {
    border-bottom: 1px solid #eee;
}

.wmes-hours-table td {
    padding: 10px 0;
    font-size: 15px;
}

.wmes-hours-table td:first-child {
    font-weight: 500;
    color: #333;
}

.wmes-hours-table td:last-child {
    text-align: right;
    color: #666;
}

.wmes-hours-table__today {
    background: rgba(0, 0, 0, 0.02);
}

.wmes-hours-table__today td {
    font-weight: 600;
    color: var(--wp--preset--color--primary);
}

.wmes-hours-table__badge {
    display: inline-block;
    background: var(--wp--preset--color--primary);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Map */
.wmes-contact__map-embed {
    border-radius: var(--wmes-corner-radius, 8px);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.wmes-contact__map-embed iframe {
    display: block;
}

.wmes-contact__map-placeholder {
    background: #f0f0f0;
    border-radius: var(--wmes-corner-radius, 8px);
    padding: 60px 30px;
    text-align: center;
    color: #999;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wmes-contact__map-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
}

/* --------------------------------------------------------------------------
   WMES CTA Buttons Block
   -------------------------------------------------------------------------- */

.wmes-block-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 8px 0;
}

.wmes-block-cta-buttons--left   { justify-content: flex-start; }
.wmes-block-cta-buttons--center { justify-content: center; }
.wmes-block-cta-buttons--right  { justify-content: flex-end; }

@media (max-width: 600px) {
    .wmes-block-cta-buttons {
        flex-direction: column;
    }
    .wmes-block-cta-buttons .wmes-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Outline variant (only needed for this block -- homepage uses filled buttons) */
.wmes-btn--outline {
    background: transparent;
    color: var(--wp--preset--color--primary);
    border: 2px solid var(--wp--preset--color--primary);
    padding: 12px 30px; /* compensates for the 2px border */
}

.wmes-btn--outline:hover {
    background: var(--wp--preset--color--primary);
    color: #fff;
}

/* --------------------------------------------------------------------------
   WMES Contact Details Block
   Reuses .wmes-contact__item / .wmes-contact__icon / .wmes-hours-table
   styles already defined above. These wrappers handle heading spacing and
   ensure the block sits cleanly whether placed standalone or in a column.
   -------------------------------------------------------------------------- */

.wmes-block-contact-details,
.wmes-block-opening-hours {
    height: 100%;
}

.wmes-block-contact-details__heading,
.wmes-block-opening-hours__heading {
    margin-bottom: 25px;
    font-size: 1.4rem;
    color: var(--wp--preset--color--secondary);
}

/* Give the hours block's heading the same visual weight as the contact
   details heading so the two columns look balanced side-by-side. */
.wmes-block-opening-hours .wmes-hours-table {
    margin-top: 0;
}

/* --------------------------------------------------------------------------
   Reviews Page
   -------------------------------------------------------------------------- */

.wmes-reviews-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 40px;
    background: #f8f9fa;
    border-radius: var(--wmes-corner-radius, 8px);
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .wmes-reviews-summary {
        flex-direction: row;
        justify-content: center;
        text-align: left;
    }
}

.wmes-reviews-summary__rating {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

@media (min-width: 768px) {
    .wmes-reviews-summary__rating {
        flex-direction: row;
        gap: 15px;
    }
}

.wmes-reviews-summary__score {
    font-size: 48px;
    font-weight: 800;
    color: var(--wp--preset--color--secondary);
    line-height: 1;
}

.wmes-reviews-summary__stars {
    color: #f4b400;
    font-size: 22px;
}

.wmes-reviews-summary__count {
    font-size: 14px;
    color: #888;
}

.wmes-reviews-embed {
    margin-bottom: 40px;
}

.wmes-reviews-embed--placeholder {
    background: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: var(--wmes-corner-radius, 8px);
    padding: 80px 30px;
    text-align: center;
    color: #999;
}

.wmes-reviews-embed--placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #ccc;
}

.wmes-reviews-embed--placeholder h3 {
    color: #888;
    margin-bottom: 10px;
}

/* --------------------------------------------------------------------------
   Responsive: Mobile adjustments
   -------------------------------------------------------------------------- */

@media (max-width: 599px) {
    .wmes-page-header {
        padding: 35px 0;
    }

    .wmes-page-header__icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .wmes-cta-banner--inner .wmes-cta-banner__buttons .wmes-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .wmes-profile__actions {
        flex-direction: column;
    }

    .wmes-profile__actions .wmes-btn {
        text-align: center;
        justify-content: center;
    }

    .wmes-archive-team__actions {
        flex-direction: column;
    }

    .wmes-archive-team__actions .wmes-btn {
        text-align: center;
        justify-content: center;
    }

    .wmes-contact__item {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =================================================================
   Sidebar: Practitioner Cards (Service Pages)
   ================================================================= */

.wmes-sidebar-team__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wmes-sidebar-team__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: var(--wmes-corner-radius, 8px);
    border: 1px solid #e8e8e8;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.wmes-sidebar-team__card:hover {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    color: inherit;
}

.wmes-sidebar-team__photo {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
}

.wmes-sidebar-team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Head-and-shoulders photos: anchor the crop near the top so a centre
       crop never cuts off the head. See build spec 9.4 for supplied size. */
    object-position: 50% 20%;
}

.wmes-sidebar-team__photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    color: #999;
    font-size: 20px;
}

.wmes-sidebar-team__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.wmes-sidebar-team__info strong {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.wmes-sidebar-team__info span {
    font-size: 13px;
    color: #666;
    line-height: 1.3;
}

.wmes-sidebar-team__quals {
    font-style: italic;
    color: #888 !important;
}


/* =================================================================
   Inner Page: Related FAQ Accordion (Condition & Service Pages)
   ================================================================= */

.wmes-inner-page--faqs {
    background: #f8f9fa;
    padding: 50px 0 60px;
    margin-top: 0;
}

/* Override the homepage .wmes-faq padding when used on inner pages */
.wmes-inner-page--faqs.wmes-faq {
    padding: 50px 0 60px;
}

.wmes-inner-faqs__heading {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: 700;
    color: var(--wp--preset--color--secondary);
    text-align: center;
    margin-bottom: 30px;
}

/* The FAQ accordion styles (.wmes-faq__list, .wmes-faq__item, etc.)
   are already defined in the main stylesheet and will apply here
   automatically since the same CSS classes are used. */

/* ==========================================================================
   Block Editor Alignment Fixes (Inner Pages)
   ========================================================================== */

/* Fix Media & Text block padding alignment with surrounding content.
   Remove padding on the outer edge so text aligns with other blocks.
   Covers: condition/service pages (.wmes-inner-page__body) and
   standard pages via page.php (.wmes-inner-page__content .entry-content). */

/* Default: image left, text right -- remove right (outer) padding */
.wmes-inner-page__body .wp-block-media-text .wp-block-media-text__content,
.wmes-inner-page__content .entry-content .wp-block-media-text .wp-block-media-text__content {
    padding-right: 0;
}

/* When image is on the right, text is on the left -- remove left (outer) padding */
.wmes-inner-page__body .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content,
.wmes-inner-page__content .entry-content .wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
    padding-left: 0;
    padding-right: 8%;
}

/* ==========================================================================
   Full-Width Block Breakout (alignfull / alignwide)
   ========================================================================== */

/*
 * Full-width breakout using the viewport-width trick.
 * Works on: page.php (content-wrapper), condition/service pages without sidebar.
 * On sidebar layouts the block fills the content column instead of breaking out.
 *
 * To use: select the Group block, click the alignment button in the
 * toolbar, and choose "Full width".
 */

/* -- Standard pages (page.php content-wrapper) -- */
.content-wrapper .entry-content .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
}

.content-wrapper .entry-content .alignwide {
    width: 100vw;
    max-width: var(--wmes-content-width, 1200px);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 20px;
    padding-right: 20px;
}

/* -- Inner pages (conditions/services) without sidebar -- */
.wmes-inner-page__grid--full .entry-content .alignfull {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 0;
    padding-right: 0;
}

.wmes-inner-page__grid--full .entry-content .alignwide {
    width: 100vw;
    max-width: var(--wmes-content-width, 1200px);
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 20px;
    padding-right: 20px;
}

/* -- Inner pages WITH sidebar: fill content column, no breakout -- */
.wmes-inner-page__grid:not(.wmes-inner-page__grid--full) .entry-content .alignfull {
    width: auto;
    max-width: none;
    margin-left: -30px;
    margin-right: -30px;
}

/* Inner content padding for full-width blocks so text doesn't touch edges */
.entry-content .alignfull.has-background {
    padding-left: clamp(20px, 4vw, 50px);
    padding-right: clamp(20px, 4vw, 50px);
}

/* Constrain text width inside full-width group blocks for readability */
.entry-content .alignfull.wp-block-group > *,
.entry-content .alignfull.wp-block-group > .wp-block-group__inner-container > * {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Prevent horizontal overflow from the breakout */
body {
    overflow-x: hidden;
}

/* ==========================================================================
   Group Block Section Styling (for grey/accent background sections)
   ========================================================================== */

/* Group blocks with a background colour get section-like padding */
.wmes-inner-page__body .wp-block-group.has-background {
    padding: 40px 30px;
    margin-top: 30px;
    margin-bottom: 30px;
    border-radius: var(--wmes-corner-radius, 8px);
}

@media (min-width: 768px) {
    .wmes-inner-page__body .wp-block-group.has-background {
        padding: 50px 50px;
    }
}

/* Constrain content width inside group blocks for readability */
.wmes-inner-page__body .wp-block-group.has-background > .wp-block-group__inner-container {
    max-width: 800px;
}

/* ==========================================================================
   Fee Display (Fees page)
   ========================================================================== */

.wmes-fee-row {
    padding: 30px 0;
    border-bottom: 1px solid var(--wp--preset--color--border-grey);
}

.wmes-fee-row:last-child {
    border-bottom: none;
}

/* Right column: vertically centre the price */
.wmes-fee-price-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100px;
}

.wmes-fee-amount {
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 800;
    color: var(--wp--preset--color--primary);
    line-height: 1.1;
    margin: 0 0 8px;
}

.wmes-fee-note {
    font-size: 15px;
    color: var(--wp--preset--color--medium-grey);
    margin: 0;
}

/* ==========================================================================
   New Patient Offer Card (Fees page) -- bright / cheerful variant
   Bright cyan background + dark navy text (inverts the original dark card).
   All colours derive from the active style variation via custom properties.
   ========================================================================== */

.wmes-offer-card {
    /* Brightness dial: lower the white % in the first stop for a more vivid
       card, raise it for a softer, airier one. */
    --wmes-offer-bg: linear-gradient(150deg,
        color-mix(in srgb, var(--wp--preset--color--primary) 62%, var(--wp--preset--color--white)) 0%,
        var(--wp--preset--color--primary) 72%,
        color-mix(in srgb, var(--wp--preset--color--primary) 88%, var(--wp--preset--color--secondary)) 130%);
    position: relative;
    overflow: hidden;
    background: var(--wmes-offer-bg);
    color: var(--wp--preset--color--secondary);
    border-radius: 16px;
    padding: 44px 32px 36px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

/* Sunny highlight, decorative only */
.wmes-offer-card::before {
    content: "";
    position: absolute;
    top: -45%;
    right: -25%;
    width: 70%;
    height: 85%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.45), transparent 70%);
    z-index: 0;
}

.wmes-offer-card > * {
    position: relative;
    z-index: 1;
}

.wmes-offer-card__badge {
    display: inline-block;
    margin: 0 0 18px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wp--preset--color--secondary);
    background: var(--wp--preset--color--white);
    border-radius: 100px;
}

.wmes-offer-card .wmes-offer-card__title {
    color: var(--wp--preset--color--secondary);
    font-size: clamp(21px, 3.4vw, 27px);
    line-height: 1.25;
    margin: 0 0 14px;
}

.wmes-offer-card__intro {
    font-size: 16px;
    line-height: 1.6;
    margin: 0 auto 26px;
    max-width: 40ch;
}

.wmes-offer-card__pricing {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 6px;
}

.wmes-offer-card__was {
    margin: 0;
    font-size: 18px;
    opacity: 0.65;
    text-decoration: line-through;
}

.wmes-offer-card__now {
    margin: 0;
    font-size: clamp(46px, 9vw, 66px);
    font-weight: 800;
    line-height: 1;
}

.wmes-offer-card__save {
    display: inline-block;
    margin: 0 0 26px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--wp--preset--color--secondary);
}

.wmes-offer-card .wp-block-buttons {
    justify-content: center;
}

.wmes-offer-card .wp-block-button__link {
    background: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--white);
    font-weight: 700;
    padding: 14px 34px;
}

.wmes-offer-card .wp-block-button__link:hover,
.wmes-offer-card .wp-block-button__link:focus {
    background: color-mix(in srgb, var(--wp--preset--color--secondary) 82%, var(--wp--preset--color--primary));
    color: var(--wp--preset--color--white);
}

.wmes-offer-card__note {
    margin: 20px 0 0;
    font-size: 13px;
    opacity: 0.7;
}

/* ==========================================================================
   LANDING PAGE (page-landing.php)
   
   Append this entire block to the bottom of inner-pages.css.
   If you appended a previous version, replace it with this one.
   
   Sections that reuse existing homepage CSS verbatim (no new rules needed):
     .wmes-process / .wmes-process__*       -- 3-step process grid
     .wmes-faq / .wmes-faq__*               -- FAQ accordion + JS accordion
     .wmes-location / .wmes-location__*     -- map + address split layout
     .wmes-cta-banner / .wmes-cta-banner__* -- gradient final CTA banner
   
   New rules below cover:
     - Minimal header (logo + phone + Book Now)
     - Hero: value badge, white book button, trust indicator
     - Pain points section
     - Practitioner two-column card
     - Reviews grid
     - Minimal footer
     - Section title override (.home scoping does not apply here)
   ========================================================================== */


/* --------------------------------------------------------------------------
   Section title override
   Main stylesheet scopes .wmes-section-title under .home. These rules
   ensure the same sizing applies on the landing page body class.
   -------------------------------------------------------------------------- */

.wmes-landing-page .wmes-section-title h2 {
    font-size: clamp(26px, 4vw, 42px);
    font-weight: 800;
    color: var(--wp--preset--color--secondary);
    margin-bottom: 16px;
}

.wmes-landing-page .wmes-section-title p {
    font-size: clamp(16px, 2vw, 19px);
    color: #666;
}


/* --------------------------------------------------------------------------
   Minimal Header
   Logo left. Phone number (text hidden on mobile) + Book Now button right.
   -------------------------------------------------------------------------- */

.wmes-lp-header {
    background: #fff;
    border-bottom: 1px solid var(--wp--preset--color--border-grey, #e5e7eb);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.wmes-lp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.wmes-lp-header__logo img {
    max-height: 48px;
    width: auto;
}

/* Right-hand group: phone link + Book Now button */
.wmes-lp-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Phone link */
.wmes-lp-header__phone {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--wp--preset--color--secondary);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    white-space: nowrap;
}

.wmes-lp-header__phone:hover {
    color: var(--wp--preset--color--primary);
}

.wmes-lp-header__phone i {
    font-size: 14px;
    color: var(--wp--preset--color--primary);
}

/* Phone number text hidden on small screens; icon always shows */
.wmes-lp-header__phone-number {
    display: none;
}

@media (min-width: 640px) {
    .wmes-lp-header__phone-number {
        display: inline;
    }
}

/* Book Now button -- compact at all sizes */
.wmes-lp-header__book {
    padding: 10px 18px;
    font-size: 14px;
    white-space: nowrap;
}

@media (min-width: 480px) {
    .wmes-lp-header__book {
        padding: 11px 22px;
        font-size: 15px;
    }
}


/* --------------------------------------------------------------------------
   Hero: Value Badge, White Book Button, Trust Indicator
   Base hero styles (.wmes-hero, .wmes-hero__overlay) come from style.css.
   -------------------------------------------------------------------------- */

/* Value badge -- sits above the H1 */
.wmes-lp-value-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.55);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 7px 18px;
    border-radius: var(--wmes-corner-radius, 8px);
    margin-bottom: 22px;
}

/* Primary book button on the hero: white fill for contrast
   against the gradient overlay, making it distinct from the phone button. */
.wmes-lp-btn--book {
    background: #fff !important;
    color: var(--wp--preset--color--secondary) !important;
}

.wmes-lp-btn--book:hover {
    background: var(--wp--preset--color--secondary) !important;
    color: #fff !important;
}

/* Trust indicator -- clear gap below the buttons */
.wmes-lp-trust {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.wmes-lp-trust i {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
}


/* --------------------------------------------------------------------------
   Pain Points Section
   -------------------------------------------------------------------------- */

.wmes-lp-pain {
    padding: 80px 0;
}

.wmes-lp-pain__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

.wmes-lp-pain__heading {
    font-size: clamp(22px, 3.5vw, 36px);
    font-weight: 800;
    color: var(--wp--preset--color--secondary);
    margin: 0 0 28px;
    line-height: 1.25;
}

.wmes-lp-pain__body {
    font-size: 18px;
    line-height: 1.75;
    color: #444;
}

.wmes-lp-pain__body p {
    margin: 0 0 18px;
}

@media (max-width: 639px) {
    .wmes-lp-pain {
        padding: 56px 0;
    }
    .wmes-lp-pain__body {
        font-size: 16px;
    }
}


/* --------------------------------------------------------------------------
   Practitioner Card -- image left, text right on desktop
   -------------------------------------------------------------------------- */

.wmes-lp-practitioner {
    padding: 80px 0;
}

.wmes-lp-practitioner__section-title {
    margin-bottom: 40px;
}

/* Card container */
.wmes-lp-practitioner__card {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--wp--preset--color--ligh-grey, #e8f4f2);
    border-radius: calc(var(--wmes-corner-radius, 8px) * 2);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Two-column layout on 768px+ */
@media (min-width: 768px) {
    .wmes-lp-practitioner__card {
        flex-direction: row;
        align-items: stretch;
    }
}

/* Photo column */
.wmes-lp-practitioner__photo {
    flex-shrink: 0;
    width: 100%;
    max-height: 320px;
    overflow: hidden;
}

@media (min-width: 768px) {
    .wmes-lp-practitioner__photo {
        width: 38%;
        max-height: none;
    }
}

.wmes-lp-practitioner__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

/* Info column */
.wmes-lp-practitioner__info {
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .wmes-lp-practitioner__info {
        flex: 1;
        padding: 44px 44px 44px 40px;
    }
}

.wmes-lp-practitioner__name {
    font-size: clamp(22px, 2.8vw, 30px);
    font-weight: 800;
    color: var(--wp--preset--color--secondary);
    margin: 0 0 6px;
}

.wmes-lp-practitioner__role {
    font-size: 15px;
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    margin: 0 0 20px;
}

.wmes-lp-practitioner__bio {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 28px;
}

.wmes-lp-practitioner__bio p {
    margin: 0 0 14px;
}

.wmes-lp-practitioner__bio p:last-child {
    margin-bottom: 0;
}

/* Accreditation logos -- optional row under the bio, above the buttons */
.wmes-lp-practitioner__logos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.wmes-lp-practitioner__logo {
    height: 56px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
    display: block;
}

.wmes-lp-practitioner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Outline button for Full Profile link */
.wmes-lp-btn--outline {
    background: transparent;
    color: var(--wp--preset--color--secondary);
    border: 2px solid var(--wp--preset--color--secondary);
    padding: 12px 24px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: var(--wmes-corner-radius, 8px);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.wmes-lp-btn--outline:hover {
    background: var(--wp--preset--color--secondary);
    color: #fff;
}

@media (max-width: 639px) {
    .wmes-lp-practitioner {
        padding: 56px 0;
    }
}


/* --------------------------------------------------------------------------
   Fallback Offer -- centered low-commitment CTA panel (accent background)
   -------------------------------------------------------------------------- */

.wmes-lp-fallback {
    padding: 72px 0;
}

.wmes-lp-fallback__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.wmes-lp-fallback__heading {
    font-size: clamp(22px, 3.2vw, 32px);
    font-weight: 800;
    color: var(--wp--preset--color--secondary);
    margin: 0 0 18px;
    line-height: 1.3;
}

.wmes-lp-fallback__body {
    font-size: 17px;
    line-height: 1.7;
    color: var(--wp--preset--color--dark-grey, #444);
    margin-bottom: 28px;
}

.wmes-lp-fallback__body p {
    margin: 0 0 14px;
}

.wmes-lp-fallback__body p:last-child {
    margin-bottom: 0;
}

.wmes-lp-fallback__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

@media (max-width: 639px) {
    .wmes-lp-fallback {
        padding: 52px 0;
    }
    .wmes-lp-fallback__body {
        font-size: 16px;
    }
}


/* --------------------------------------------------------------------------
   Reviews Grid
   -------------------------------------------------------------------------- */

.wmes-lp-reviews {
    padding: 80px 0;
}

.wmes-lp-reviews__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .wmes-lp-reviews__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .wmes-lp-reviews__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wmes-lp-review-card {
    background: #fff;
    border-radius: var(--wmes-corner-radius, 8px);
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wmes-lp-review-card__stars {
    display: flex;
    gap: 3px;
    color: #f59e0b;
    font-size: 15px;
}

.wmes-lp-star--empty {
    color: #d1d5db;
}

.wmes-lp-review-card__text {
    margin: 0;
    padding: 0;
    border: none;
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    font-style: italic;
    flex: 1;
}

.wmes-lp-review-card__text p {
    margin: 0;
}

.wmes-lp-review-card__name {
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    color: var(--wp--preset--color--secondary);
}

@media (max-width: 639px) {
    .wmes-lp-reviews {
        padding: 56px 0;
    }
}


/* --------------------------------------------------------------------------
   Offer Terms & Conditions
   -------------------------------------------------------------------------- */

.wmes-lp-terms {
    padding: 48px 0;
}

.wmes-lp-terms__inner {
    max-width: 800px;
    margin: 0 auto;
}

.wmes-lp-terms__heading {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--wp--preset--color--secondary);
}

.wmes-lp-terms__body {
    font-size: 13px;
    line-height: 1.75;
    color: var(--wp--preset--color--medium-grey);
}

.wmes-lp-terms__body p {
    margin: 0 0 8px;
}

.wmes-lp-terms__body p:last-child {
    margin-bottom: 0;
}

.wmes-lp-terms__body ul,
.wmes-lp-terms__body ol {
    padding-left: 20px;
    margin-bottom: 8px;
}


/* --------------------------------------------------------------------------
   Minimal Footer
   -------------------------------------------------------------------------- */

.wmes-lp-footer {
    background: var(--wp--preset--color--secondary, #0d4c6e);
    color: rgba(255, 255, 255, 0.75);
    padding: 22px 0;
    font-size: 13px;
}

.wmes-lp-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

@media (min-width: 640px) {
    .wmes-lp-footer__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

.wmes-lp-footer p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.wmes-lp-footer .wmes-footer__legal-menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    justify-content: center;
}

@media (min-width: 640px) {
    .wmes-lp-footer .wmes-footer__legal-menu {
        justify-content: flex-end;
    }
}

.wmes-lp-footer .wmes-footer__legal-menu a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    text-decoration: none;
}

.wmes-lp-footer .wmes-footer__legal-menu a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ==========================================================================
   Sprint 2 - Hub Pages, Single Technique, Single Area
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hub Pages - Shared grid + card pattern
   Used by page-conditions.php, page-services.php, page-techniques.php,
   page-areas.php. Cards reuse the rounded shadow look from
   .wmes-archive-team__card so hubs feel consistent across the site.
   -------------------------------------------------------------------------- */

/* Deep links from the mega menu target these sections by id. Without a scroll
   offset the heading lands underneath the sticky header. */
.wmes-hub-group[id] {
    scroll-margin-top: 100px;
}

.wmes-hub-group {
    margin-bottom: 50px;
}

.wmes-hub-group:last-child {
    margin-bottom: 0;
}

.wmes-hub-group__heading {
    font-size: 28px;
    color: var(--wp--preset--color--secondary);
    margin: 0 0 8px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--wp--preset--color--primary);
}

.wmes-hub-group__desc {
    color: #666;
    margin: 0 0 25px;
    font-size: 16px;
}

.wmes-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 600px) {
    .wmes-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .wmes-hub-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.wmes-hub-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: var(--wmes-corner-radius, 8px);
    padding: 28px 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
}

.wmes-hub-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    text-decoration: none;
    color: inherit;
}

.wmes-hub-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--wp--preset--color--accent, #f0f0f0);
    color: var(--wp--preset--color--primary);
    font-size: 24px;
    margin-bottom: 16px;
}

.wmes-hub-card__title {
    font-size: 20px;
    color: var(--wp--preset--color--secondary);
    margin: 0 0 10px;
}

.wmes-hub-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--wp--preset--color--primary);
    margin: 0 0 12px;
}

.wmes-hub-card__meta i {
    font-size: 13px;
}

.wmes-hub-card__desc {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    margin: 0 0 16px;
    flex-grow: 1;
}

.wmes-hub-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--wp--preset--color--primary);
    font-weight: 600;
    font-size: 15px;
    margin-top: auto;
}

.wmes-hub-card:hover .wmes-hub-card__link {
    gap: 12px;
}

.wmes-hub-card__link i {
    transition: transform 0.3s ease;
}

.wmes-hub-card:hover .wmes-hub-card__link i {
    transform: translateX(3px);
}

/* Area cards lean on the icon + meta line (distance) more than other hubs.
   The wmes-hub-card--area modifier keeps things consistent but lets us
   tweak if needed without touching the base card. */
.wmes-hub-card--area .wmes-hub-card__icon {
    background: var(--wp--preset--color--accent, #f0f0f0);
}

/* --------------------------------------------------------------------------
   Single Technique - Related Blocks (What It Treats, Practitioners)
   Sit below the main editor content, before the FAQs accordion.
   -------------------------------------------------------------------------- */

.wmes-related-block {
    margin: 40px 0 0;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.wmes-related-block__heading {
    font-size: 24px;
    color: var(--wp--preset--color--secondary);
    margin: 0 0 20px;
}

.wmes-related-block__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

@media (min-width: 600px) {
    .wmes-related-block__list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.wmes-related-block__list li {
    margin: 0;
}

.wmes-related-block__list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f7f7f7;
    border-radius: var(--wmes-corner-radius, 8px);
    color: var(--wp--preset--color--secondary);
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
}

.wmes-related-block__list a:hover {
    background: var(--wp--preset--color--accent, #e8e8e8);
    color: var(--wp--preset--color--primary);
}

.wmes-related-block__list a i,
.wmes-related-block__list a .wmes-svg-icon {
    color: var(--wp--preset--color--primary);
    font-size: 14px;
    flex-shrink: 0;
}

/* Practitioner cards under "Who Provides This" */
.wmes-practitioner-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 600px) {
    .wmes-practitioner-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

.wmes-practitioner-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--wmes-corner-radius, 8px);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wmes-practitioner-card:hover {
    border-color: var(--wp--preset--color--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: inherit;
}

.wmes-practitioner-card__photo {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #f0f0f0;
}

.wmes-practitioner-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Head-and-shoulders photos: anchor the crop near the top so a centre
       crop never cuts off the head. See build spec 9.4 for supplied size. */
    object-position: 50% 20%;
}

.wmes-practitioner-card__photo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
    font-size: 28px;
}

.wmes-practitioner-card__info {
    flex: 1;
    min-width: 0;
}

.wmes-practitioner-card__info h3 {
    font-size: 17px;
    color: var(--wp--preset--color--secondary);
    margin: 0 0 4px;
}

.wmes-practitioner-card__role {
    font-size: 14px;
    color: var(--wp--preset--color--primary);
    font-weight: 600;
    margin: 0 0 2px;
}

.wmes-practitioner-card__quals {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* --------------------------------------------------------------------------
   Single Area - Distance Banner + Content Blocks
   The distance banner sits between the page header and the inner-page grid.
   -------------------------------------------------------------------------- */

.wmes-area-distance {
    background: var(--wp--preset--color--accent, #f7f7f7);
    padding: 18px 0;
    border-bottom: 1px solid #e0e0e0;
}

.wmes-area-distance p {
    margin: 0;
    text-align: center;
    font-size: 17px;
    color: var(--wp--preset--color--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.wmes-area-distance i {
    color: var(--wp--preset--color--primary);
    font-size: 18px;
}

.wmes-area-distance strong {
    font-weight: 600;
}

/* Content blocks under area editor content (Directions, Local Landmarks,
   Local Testimonials). Each gets its own visually-separated section. */
.wmes-area-block {
    margin: 40px 0 0;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.wmes-area-block h2 {
    font-size: 24px;
    color: var(--wp--preset--color--secondary);
    margin: 0 0 16px;
}

.wmes-area-block__body {
    color: #444;
    font-size: 16px;
    line-height: 1.65;
}

.wmes-area-block__body p {
    margin: 0 0 1em;
}

.wmes-area-block__body p:last-child {
    margin-bottom: 0;
}

.wmes-area-block--testimonials .wmes-inline-testimonial {
    margin-bottom: 20px;
}

.wmes-area-block--testimonials .wmes-inline-testimonial:last-child {
    margin-bottom: 0;
}


