/*
Theme Name: Restart Medical
Theme URI: https://restartmedical.org
Author: The Growth Engine
Author URI: https://thegrowthengine.net
Description: Custom theme for Restart Medical & Aesthetics Clinic. Clean, semantic, deployed from GitHub.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rma-theme
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --accent: #0ea5e9;
    --accent-hover: #0284c7;
    --text-dark: #334155;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --container-width: 1200px;
    --header-height: 80px;
    --radius: 12px;
    --transition: all 0.3s ease;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.14);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Outfit', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 1rem;
}

h1 { font-size: 3.5rem; letter-spacing: -0.02em; }
h2 { font-size: 2.5rem; letter-spacing: -0.01em; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

p {
    margin: 0 0 1.5rem;
    color: var(--text-light);
}

.text-center { text-align: center; }
.text-accent { color: var(--accent); }

/* ==========================================================================
   Layout utilities
   ========================================================================== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 100px 0; }
.section-grey { background-color: var(--bg-light); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    letter-spacing: 0.02em;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 14px 0 rgba(14, 165, 233, 0.39);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:active { transform: translateY(0) scale(0.98); }

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px) scale(1.02);
}

.btn-outline-white {
    background-color: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.btn-outline-white:hover {
    background-color: var(--white);
    color: var(--primary);
    transform: translateY(-2px) scale(1.02);
}

/* ==========================================================================
   Scroll-in animation (progressive enhancement)
   Only activates when JS adds .js-on to <html>, so content is visible if JS fails.
   ========================================================================== */
.js-on .animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-on .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    height: var(--header-height);
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-logo a { display: flex; align-items: center; }
.site-logo img { height: 40px; width: auto; }

.site-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav a {
    font-weight: 500;
    color: var(--primary);
    font-size: 0.95rem;
    position: relative;
    padding: 5px 0;
}

.site-nav a:hover,
.site-nav li.active > a { color: var(--accent); }

.site-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s;
}

.site-nav a:hover::after,
.site-nav li.active > a::after { width: 100%; }

.nav-p-shot a {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: var(--white) !important;
    padding: 10px 22px !important;
    border-radius: 50px;
    font-weight: 700 !important;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
    display: inline-flex;
    align-items: center;
}

.nav-p-shot a::after { display: none !important; }

.nav-p-shot a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(14, 165, 233, 0.4);
    filter: brightness(1.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--primary);
    align-items: center;
    justify-content: center;
}

.announcement-bar {
    background-color: var(--accent);
    color: var(--white);
    text-align: center;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background-color: var(--primary-light);
    color: var(--white);
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.site-footer h4 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 12px; }

.site-footer a { color: rgba(255, 255, 255, 0.6); }
.site-footer a:hover { color: var(--accent); }

.footer-logo { margin-bottom: 20px; }

.footer-logo .brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white);
    line-height: 1.2;
    display: block;
}

.footer-logo .clinic-text {
    font-weight: 400;
    font-size: 1rem;
}

.footer-about-text {
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer-contact p { margin: 0 0 10px; }

.footer-follow-note {
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.5);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icons a {
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.social-icons img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

/* ==========================================================================
   Internal page header (shared across sub-pages: About, Contact, Treatments, etc.)
   ========================================================================== */
.page-header {
    background-color: var(--primary);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 3rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   Page hero (richer alt to .page-header; used by About / Treatments / P-Shot / Skincare / Blogs)
   ========================================================================== */
.page-hero {
    background:
        linear-gradient(to right, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.72) 100%),
        linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    padding: 120px 0 100px;
}

.page-hero-content {
    max-width: 780px;
}

.page-hero .text-accent {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.page-hero h1 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 680px;
    margin-bottom: 30px;
}

.page-hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Page-hero theme variants */
.about-hero,
.treatments-hero,
.skincare-hero,
.blogs-hero,
.p-shot-hero,
.contact-hero,
.face-treatments-hero,
.body-treatments-hero,
.intimate-treatments-hero,
.locations-hero,
.thank-you-hero,
.legal-hero {
    background-image:
        linear-gradient(to right, rgba(15, 23, 42, 0.88) 0%, rgba(15, 23, 42, 0.6) 100%),
        url('https://storage.googleapis.com/msgsndr/mwoxtmFsvdIvrkV51JIK/media/69458f531739662dbdaeb478.webp');
    background-size: cover;
    background-position: center;
}

/* ==========================================================================
   Shared section helpers
   ========================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.content-intro {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

.content-intro .text-accent {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: inline-block;
}

/* ==========================================================================
   Shared: about-split (used by Home and About)
   ========================================================================== */
.about-split {
    display: flex;
    align-items: center;
    gap: 80px;
}

.about-split .about-text { flex: 1; }

.about-split .about-image {
    flex: 1;
    position: relative;
}

.about-split .about-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.about-split .about-image::after {
    content: '';
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background-color: var(--bg-light);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    z-index: 0;
}

/* ==========================================================================
   Shared: services-grid / service-card (used by Home and Treatment Areas)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    position: relative;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: var(--primary);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s ease;
}

.service-card:hover { transform: translateY(-5px); }

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}

.service-card--face::before {
    background-image: url('https://storage.googleapis.com/msgsndr/mwoxtmFsvdIvrkV51JIK/media/69458f531739662dbdaeb478.webp');
}
.service-card--body::before {
    background-image: url('https://storage.googleapis.com/msgsndr/mwoxtmFsvdIvrkV51JIK/media/69458f53aad360c09a7b1d17.png');
}
.service-card--intimate::before {
    background-image: url('https://storage.googleapis.com/msgsndr/mwoxtmFsvdIvrkV51JIK/media/69458f531739665de0aeb477.png');
}

.service-card:hover::before {
    transform: scale(1.1);
    opacity: 0.3;
}

.service-content {
    position: relative;
    padding: 30px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95), transparent);
    color: var(--white);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-content h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 2rem;
}

.service-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.service-link {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    font-weight: 600;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.service-card:hover .service-link { color: var(--white); }

.service-link-arrow {
    margin-left: 8px;
    transition: margin-left 0.3s ease;
    font-style: normal;
}

.service-card:hover .service-link-arrow { margin-left: 16px; }

/* ==========================================================================
   Stats strip (About page)
   ========================================================================== */
.stats-section { padding: 60px 0; background: var(--bg-light); }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    text-align: center;
}

.stat-card {
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    display: block;
    font-size: 0.95rem;
    color: var(--text-light);
    font-weight: 500;
}

/* ==========================================================================
   Credentials list (About + P-Shot)
   ========================================================================== */
.credentials-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
}

.credentials-list li {
    padding-left: 28px;
    position: relative;
    color: var(--text-dark);
    font-weight: 500;
}

.credentials-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* ==========================================================================
   CTA band (bottom of sub-pages)
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { margin-bottom: 28px; }

.cta-band-buttons {
    display: inline-flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ==========================================================================
   P-Shot — principles grid
   ========================================================================== */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.principle-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.principle-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.principle-card h4 {
    color: var(--primary);
    margin-bottom: 10px;
    font-size: 1.05rem;
}

.principle-card p {
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ==========================================================================
   P-Shot — procedure steps
   ========================================================================== */
.procedure-steps {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    counter-reset: step;
}

.procedure-steps li {
    background: var(--white);
    padding: 32px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

.step-body h4 {
    margin-bottom: 8px;
    color: var(--primary);
}

.step-body p { margin-bottom: 0; }

/* ==========================================================================
   P-Shot — disclaimer + reference list + FAQ
   ========================================================================== */
.disclaimer-box {
    background: #fff7ed;
    border-left: 4px solid #f59e0b;
    padding: 20px 24px;
    border-radius: var(--radius);
    color: #78350f;
    font-size: 0.95rem;
    line-height: 1.6;
}

.reference-list {
    list-style: none;
    padding: 0;
    margin: 0 auto 24px;
    max-width: 800px;
}

.reference-list li {
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px 24px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.reference-list a {
    color: var(--accent);
    font-weight: 600;
}

.reference-list a:hover { color: var(--accent-hover); }

.reference-note {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-light);
}

.research-note {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding-left: 14px;
    margin-top: 20px;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius);
    padding: 18px 24px;
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    cursor: pointer;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.05rem;
    list-style: none;
    position: relative;
    padding-right: 30px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.5rem;
    color: var(--accent);
    font-weight: 400;
    line-height: 1;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    content: '-';
    transform: translateY(-2px);
}

.faq-item p {
    margin: 14px 0 0;
    color: var(--text-dark);
    line-height: 1.6;
}

.medical-disclaimer-band {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.75);
    padding: 40px 0;
    font-size: 0.9rem;
    line-height: 1.6;
}

.medical-disclaimer-band strong { color: var(--white); }

.medical-disclaimer-band p { margin: 0; color: rgba(255, 255, 255, 0.75); }

.cta-phone-fallback {
    margin-top: 14px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
}

.cta-phone-fallback a { color: var(--accent); font-weight: 600; }

/* ==========================================================================
   Skincare — product grid
   ========================================================================== */
.product-category { padding: 70px 0; }

.product-category:nth-of-type(even) { background: var(--bg-light); }

.product-category-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 16px;
}

.product-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.product-name {
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 1.05rem;
}

.product-size {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.product-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.product-enquire {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.product-enquire:hover { color: var(--accent-hover); }

/* ==========================================================================
   Blog listing
   ========================================================================== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.blog-card-link { display: block; }

.blog-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-light);
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.05); }

.blog-card-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.blog-card-body { padding: 24px; }

.blog-card-date {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.blog-card-title {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1.35;
}

.blog-card-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 14px;
    line-height: 1.55;
}

.blog-card-link-text {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.9rem;
}

.blog-card:hover .blog-card-link-text { color: var(--accent-hover); }

.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.blog-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 50px;
    background: var(--white);
    color: var(--primary);
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.blog-pagination .page-numbers:hover,
.blog-pagination .page-numbers.current {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}

.blog-empty {
    text-align: center;
    padding: 60px 20px;
}

/* ==========================================================================
   Shared sub-page responsive
   ========================================================================== */
@media (max-width: 992px) {
    .page-hero { padding: 90px 0 70px; }
    .page-hero h1 { font-size: 2.4rem; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
    .principles-grid { grid-template-columns: repeat(2, 1fr); }
    .procedure-steps { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
    .credentials-list { grid-template-columns: 1fr; }
    .about-split { flex-direction: column; gap: 40px; }
    .about-split .about-image::after { width: 120px; height: 120px; bottom: -12px; right: -12px; }
}

@media (max-width: 576px) {
    .page-hero { padding: 70px 0 50px; }
    .page-hero h1 { font-size: 1.9rem; }
    .page-hero p { font-size: 1rem; }
    .page-hero-buttons { flex-direction: column; width: 100%; }
    .page-hero-buttons .btn { width: 100%; }

    .stats-grid { grid-template-columns: 1fr; }
    .stat-number { font-size: 2.4rem; }

    .principles-grid { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }

    .services-grid { grid-template-columns: 1fr; }
    .service-card { height: 320px; }

    .cta-band-buttons { flex-direction: column; width: 100%; }
    .cta-band-buttons .btn { width: 100%; }

    .disclaimer-box,
    .faq-item,
    .reference-list li { padding: 16px 18px; }
}

/* ==========================================================================
   Treatment sub-category grid (Face / Body / Intimate pages)
   ========================================================================== */
.treatment-sub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.treatment-sub-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.treatment-sub-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.treatment-sub-image {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: var(--bg-light);
    transition: transform 0.6s ease;
}

.treatment-sub-card:hover .treatment-sub-image { transform: scale(1.04); }

.treatment-sub-body {
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.treatment-sub-body h3 {
    color: var(--primary);
    font-size: 1.35rem;
    margin: 0;
}

.treatment-sub-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.55;
    flex: 1;
}

.treatment-sub-link {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.3s ease, color 0.3s ease;
    margin-top: 6px;
}

.treatment-sub-link i { font-style: normal; transition: transform 0.3s ease; }

.treatment-sub-card:hover .treatment-sub-link { color: var(--accent-hover); gap: 14px; }

.treatment-sub-card--cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border-color: transparent;
}

.treatment-sub-card--cta .treatment-sub-body { padding: 40px 28px; justify-content: center; }
.treatment-sub-card--cta h3 { color: var(--white); }
.treatment-sub-card--cta p { color: rgba(255, 255, 255, 0.75); }
.treatment-sub-card--cta .treatment-sub-link { color: var(--accent); }

/* ==========================================================================
   Legal / policy document layout (Privacy / Returns)
   ========================================================================== */
.legal-doc {
    max-width: 780px;
    margin: 0 auto;
    background: var(--white);
    padding: 60px 70px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-meta {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-doc h2 {
    font-size: 1.5rem;
    margin-top: 36px;
    margin-bottom: 14px;
    color: var(--primary);
}

.legal-doc h2:first-of-type { margin-top: 0; }

.legal-doc p {
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 16px;
}

.legal-doc ul,
.legal-doc ol {
    padding-left: 22px;
    margin-bottom: 20px;
    color: var(--text-dark);
    line-height: 1.75;
}

.legal-doc li { margin-bottom: 10px; }

.legal-doc a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
}

.legal-doc a:hover { color: var(--accent-hover); }

.legal-contact {
    list-style: none;
    padding: 20px 24px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}

.legal-contact li { margin-bottom: 6px; }
.legal-contact li:last-child { margin-bottom: 0; }

/* ==========================================================================
   Treatment detail page (shared across 18 treatment sub-pages via
   template-parts/treatment-detail.php)
   ========================================================================== */
.treatment-areas-grid {
    grid-template-columns: repeat(3, 1fr);
}

.benefits-list {
    max-width: 780px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 28px;
}

.benefits-list li {
    padding: 14px 18px 14px 46px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    color: var(--text-dark);
    line-height: 1.55;
}

.benefits-list li::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 22px;
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.content-prose {
    max-width: 780px;
    margin: 0 auto;
}

.content-prose p {
    color: var(--text-dark);
    line-height: 1.75;
    margin-bottom: 16px;
}

.content-prose p:last-child { margin-bottom: 0; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}

.pricing-card-title {
    color: var(--primary);
    font-size: 1.35rem;
    margin: 0;
}

.pricing-card-price {
    color: var(--accent);
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    letter-spacing: -0.02em;
}

.pricing-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-top: 18px;
}

.pricing-card-features li {
    padding: 6px 0 6px 24px;
    position: relative;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.5;
}

.pricing-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 6px;
    color: var(--accent);
    font-weight: 700;
}

.cta-band-wrap {
    background: var(--bg-light);
}

.cta-band-wrap .cta-band {
    max-width: 720px;
}

/* ==========================================================================
   Locations page — clinic cards
   ========================================================================== */
.locations-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin: 0 auto;
}

.location-card {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.location-card h4 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 1.25rem;
    margin: 0;
}

.location-card-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(14, 165, 233, 0.08);
    padding: 4px 10px;
    border-radius: 999px;
}

.location-card-address {
    font-size: 1rem;
    color: var(--text-dark);
    line-height: 1.55;
    margin: 0;
    font-weight: 500;
}

.location-card-note {
    font-size: 0.95rem;
    color: var(--text-light);
    margin: 0;
}

.location-card-contact {
    list-style: none;
    padding: 14px 0 0;
    margin: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.location-card-contact li {
    font-size: 0.95rem;
    color: var(--text-dark);
}

.location-card-contact a {
    color: var(--accent);
    font-weight: 600;
}

.location-card-contact a:hover { color: var(--accent-hover); }

/* ==========================================================================
   Thank-You page — confirmation steps
   ========================================================================== */
.thank-you-contact {
    max-width: 560px;
    margin: 0 auto;
}

.thank-you-contact a {
    color: var(--accent);
    font-weight: 600;
}

.thank-you-contact a:hover { color: var(--accent-hover); }

/* ==========================================================================
   Treatment detail responsive
   ========================================================================== */
@media (max-width: 992px) {
    .treatment-areas-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 576px) {
    .treatment-areas-grid { grid-template-columns: 1fr; }
    .benefits-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Treatment sub-grid + legal responsive
   ========================================================================== */
@media (max-width: 992px) {
    .treatment-sub-grid { grid-template-columns: repeat(2, 1fr); }
    .legal-doc { padding: 40px 36px; }
}

@media (max-width: 576px) {
    .treatment-sub-grid { grid-template-columns: 1fr; }
    .legal-doc { padding: 32px 22px; }
    .legal-doc h2 { font-size: 1.25rem; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 992px) {
    :root { --header-height: 70px; }

    h1 { font-size: 3rem; }
    h2 { font-size: 2rem; }

    .mobile-menu-btn { display: flex; }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }

    .site-nav.is-open { display: block; }

    .site-nav ul {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   Single post
   ========================================================================== */
.post-hero {
    background: var(--bg-light);
    padding: 80px 0 60px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.post-breadcrumb a:hover { color: var(--accent); }

.post-category {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.post-title {
    font-size: 2.75rem;
    max-width: 800px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.post-meta-sep { opacity: 0.4; }

.post-featured-image {
    margin: 0 0 0;
    background: var(--primary);
}

.post-featured-image .container { padding: 0; max-width: 100%; }

.post-featured-image img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    display: block;
}

.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
}

/* Prose / article content */
.prose { font-size: 1.05rem; line-height: 1.85; color: var(--text-dark); }
.prose h2 { font-size: 1.9rem; margin: 2.5rem 0 1rem; }
.prose h3 { font-size: 1.45rem; margin: 2rem 0 0.75rem; }
.prose h4 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.prose p { margin-bottom: 1.5rem; }
.prose ul, .prose ol { margin: 0 0 1.5rem 1.5rem; }
.prose li { margin-bottom: 0.5rem; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose a:hover { color: var(--accent-hover); }
.prose img { border-radius: var(--radius); margin: 2rem 0; }
.prose blockquote {
    border-left: 4px solid var(--accent);
    margin: 2rem 0;
    padding: 16px 24px;
    background: var(--bg-light);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}
.prose blockquote p { color: var(--text-dark); margin-bottom: 0; }
.prose pre, .prose code {
    background: var(--bg-light);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.9em;
}
.prose pre { padding: 20px; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.5rem; }
.prose th, .prose td { padding: 12px 16px; border: 1px solid rgba(0,0,0,0.1); text-align: left; }
.prose th { background: var(--bg-light); font-weight: 600; }
.prose hr { border: none; border-top: 1px solid rgba(0,0,0,0.1); margin: 2.5rem 0; }

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.post-tag {
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.1);
    color: var(--text-light);
    font-size: 0.8rem;
    padding: 4px 12px;
    border-radius: 20px;
    transition: var(--transition);
}

.post-tag:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* Sidebar */
.post-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }

.sidebar-cta {
    background: var(--primary);
    color: var(--white);
    padding: 28px;
    border-radius: var(--radius);
}

.sidebar-cta h3 { color: var(--white); font-size: 1.15rem; margin-bottom: 10px; }
.sidebar-cta p { color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.sidebar-cta .btn { width: 100%; justify-content: center; }

.sidebar-widget {
    background: var(--bg-light);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 24px;
    border-radius: var(--radius);
}

.sidebar-widget h4 { margin-bottom: 14px; font-size: 1rem; }

.sidebar-links { list-style: none; margin: 0; padding: 0; }
.sidebar-links li { border-bottom: 1px solid rgba(0,0,0,0.06); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
    display: block;
    padding: 10px 0;
    font-size: 0.9rem;
    color: var(--text-dark);
}
.sidebar-links a:hover { color: var(--accent); padding-left: 4px; }

.related-posts .section-title {
    font-size: 1.75rem;
    margin-bottom: 40px;
}

/* Single post responsive */
@media (max-width: 992px) {
    .post-layout { grid-template-columns: 1fr; gap: 40px; }
    .post-sidebar { position: static; }
    .post-title { font-size: 2.1rem; }
}

@media (max-width: 576px) {
    .post-hero { padding: 60px 0 40px; }
    .post-title { font-size: 1.65rem; }
    .prose { font-size: 1rem; }
}

/* ==========================================================================
   End of file
   ========================================================================== */

@media (max-width: 576px) {
    h1 { font-size: 2.25rem; }
    .page-header h1 { font-size: 2.25rem; }
    .section { padding: 60px 0; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
