﻿/*
Theme Name: Sterling Physiotherapy React Match
Theme URI: https://example.com/sterling-physiotherapy
Author: Sterling Physiotherapy & Wellness
Author URI: https://example.com
Description: Classic WordPress theme shell that renders the Sterling Physiotherapy React website for pixel-matched public pages. WordPress admin replaces the custom client admin route.
Version: 1.0.67.70
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sterling-physiotherapy
*/

body:not(.sterling-react-app) {
    margin: 0;
    color: #111827;
    background: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sterling-site-header,
.sterling-site-footer {
    background: #ffffff;
    border-color: #e5e7eb;
}

.sterling-site-header {
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 500;
}

.sterling-site-footer {
    border-top: 1px solid #e5e7eb;
}

.sterling-site-header__inner,
.sterling-site-footer__inner,
.sterling-content {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.sterling-site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 76px;
}

.sterling-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #0076bd;
    font-weight: 800;
    text-decoration: none;
    min-width: 0;
}

.sterling-site-brand__logo {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: contain;
    flex: 0 0 auto;
}

.sterling-site-brand__copy {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.sterling-site-brand__name {
    color: #0076bd;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.sterling-site-brand__tagline {
    color: #3a9b13;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
}

.sterling-site-nav {
    flex: 1 1 auto;
    min-width: 0;
}

.sterling-site-nav > ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sterling-site-nav li {
    position: relative;
}

.sterling-site-nav a,
.sterling-entry-title a {
    color: inherit;
    text-decoration: none;
}

.sterling-site-nav > ul > li > a {
    display: block;
    padding: 8px 2px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    color: #1f2937;
}

.sterling-site-nav a:hover,
.sterling-entry-title a:hover {
    color: #0076bd;
}

.sterling-site-nav .menu-item-has-children > a::after {
    content: "\25be";
    margin-left: 6px;
    font-size: 11px;
    color: #0076bd;
}

/* Dropdown sub-menus: hidden until hover/focus */
.sterling-site-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 600;
    display: none;
    flex-direction: column;
    gap: 2px;
    min-width: 230px;
    max-width: 300px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.sterling-site-nav li:hover > .sub-menu,
.sterling-site-nav li:focus-within > .sub-menu {
    display: flex;
}

.sterling-site-nav .sub-menu a {
    display: block;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #1f2937;
    white-space: normal;
}

.sterling-site-nav .sub-menu a:hover {
    background: #eef6fb;
    color: #0076bd;
}

/* Third-level menus open to the side */
.sterling-site-nav .sub-menu .sub-menu {
    top: -9px;
    left: 100%;
}

.sterling-site-header__actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.sterling-site-phone {
    color: #0076bd;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.sterling-site-booking {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #0076bd;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.sterling-site-booking:hover {
    background: #005f99;
    color: #ffffff;
}

.sterling-content {
    padding: 56px 0;
}

.sterling-full-width-content {
    width: 100%;
    overflow: hidden;
}

.elementor-page .sterling-content {
    width: 100%;
    padding: 0;
}

.sterling-page-header h1 {
    margin: 0 0 24px;
    font-size: 40px;
    line-height: 1.15;
}

.sterling-entry {
    margin-bottom: 36px;
}

.sterling-entry-content {
    font-size: 18px;
    line-height: 1.7;
}

.sterling-site-footer__inner {
    padding: 32px 0;
}

.sterling-site-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #e5e7eb;
}

.sterling-site-footer__brand {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
}

.sterling-site-footer__name {
    color: #0076bd;
    font-size: 18px;
    font-weight: 800;
    line-height: 1.1;
}

.sterling-site-footer__tagline {
    color: #3a9b13;
    font-size: 12px;
    font-weight: 700;
}

.sterling-site-footer__links {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.sterling-site-footer__links a {
    color: #1f2937;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.sterling-site-footer__links a:hover {
    color: #0076bd;
}

.sterling-site-footer__book {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: #0076bd;
    color: #ffffff !important;
}

.sterling-site-footer__book:hover {
    background: #005f99;
}

.sterling-site-footer__copy {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

@media (max-width: 768px) {
    .sterling-site-header {
        position: static;
    }

    .sterling-site-header__inner {
        align-items: stretch;
        flex-direction: column;
        padding: 16px 0;
        gap: 14px;
    }

    .sterling-site-header__actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .sterling-site-booking {
        width: 100%;
    }

    .sterling-site-nav {
        width: 100%;
        border-top: 1px solid #eef2f6;
        padding-top: 10px;
    }

    .sterling-site-nav > ul {
        justify-content: flex-start;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .sterling-site-nav .menu-item-has-children > a::after {
        content: "";
    }

    /* Show sub-menus inline (indented) since hover is unavailable on touch. */
    .sterling-site-nav .sub-menu {
        position: static;
        display: flex;
        min-width: 0;
        max-width: none;
        margin: 0 0 4px 12px;
        padding: 0 0 0 8px;
        border: 0;
        border-left: 2px solid #e5e7eb;
        border-radius: 0;
        box-shadow: none;
    }

    .sterling-site-nav .sub-menu .sub-menu {
        left: auto;
        top: auto;
    }

    .sterling-page-header h1 {
        font-size: 32px;
    }
}
