/* ==========================================================================
   INNER PAGES - Phase 4
   
   Styles for:
   - Page header banner (shared)
   - Sidebar layout (conditions + services)
   - Sidebar components (CTA box, link lists)
   - 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;
}

.wmes-page-header__icon--svg svg {
    width: 28px;
    height: 28px;
    fill: #fff;
}

/* --------------------------------------------------------------------------
   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 {
    border-bottom: 1px solid #e9ecef;
}

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

.wmes-sidebar-links li a {
    display: flex;
    align-items: center;
    gap: 10px;
    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 {
    width: 18px;
    text-align: center;
    color: var(--wp--preset--color--primary);
    font-size: 14px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   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;
}

.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;
    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;
}

.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;
}


/* ==========================================================================
   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: 13px;
    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: 920px;
    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;
}

.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;
    }
}


/* --------------------------------------------------------------------------
   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;
}