/* ==========================================================================
   HOWCROFT MUSCLE & MOVEMENT CLINIC - SAGE GREEN BODY & RICH BRAND PALETTE
   ========================================================================== */

:root {
    /* Main Page Background: Official Sage Green */
    --color-bg-main: #657562;           /* Sage Green Main Page Body */
    --color-bg-alt: #5B6A58;            /* Slightly Deeper Sage for alternating sections */
    --color-bg-card-linen: #EAE3D2;     /* Warm Linen Cream Card Surface */
    --color-surface-white: #FFFFFF;      /* Pure White Card Surface */
    
    /* Supporting Brand Colors */
    --color-sage-dark: #4B5848;
    --color-sage-light: #778874;
    
    --color-terracotta: #D9826C;
    --color-terracotta-hover: #C56E58;
    
    --color-plum: #4D3E49;
    --color-plum-dark: #3A2E37;
    
    --color-slate: #293738;
    --color-slate-dark: #1C2728;
    
    --color-gold: #E6B357;
    
    --color-linen: #EAE3D2;
    --color-linen-light: #F4EFE6;
    --color-linen-dark: #C9BFAC;
    
    --color-text-on-sage: #F4EFE6;      /* Linen White text on Sage Body */
    --color-text-muted-sage: #D2DBCF;
    --color-text-card: #293738;         /* Dark Slate text inside Light Cards */
    --color-text-muted-card: #5C6A6B;
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    
    /* Elevation & Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 25px rgba(217, 130, 108, 0.3);
    
    /* Border Radius */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;
    
    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--color-bg-main);
    color: var(--color-text-on-sage);
    font-family: var(--font-body);
    line-height: 1.65;
    overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-linen-light);
}

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

a:hover {
    color: var(--color-linen-light);
}

p {
    margin-bottom: 1rem;
}

.highlight-text {
    color: var(--color-terracotta);
}

/* Layout Utilities */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-sm {
    max-width: 780px;
}

.section {
    padding: 6rem 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

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

@media (max-width: 992px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.align-center { align-items: center; }
.text-center { text-align: center; }

/* Section Headers - Center Aligned */
.section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3rem auto;
}

.section-label {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-terracotta);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.4rem;
    color: var(--color-linen-light);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted-sage);
    line-height: 1.6;
}

/* Buttons - Restored Terracotta & Linen Accents */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.85rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-pill);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-terracotta, .btn-primary {
    background-color: var(--color-terracotta);
    color: #FFF;
}

.btn-terracotta:hover, .btn-primary:hover {
    background-color: var(--color-terracotta-hover);
    color: #FFF;
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-outline-linen {
    border-color: rgba(244, 239, 230, 0.4);
    color: var(--color-linen-light);
    background: rgba(244, 239, 230, 0.08);
}

.btn-outline-linen:hover {
    border-color: var(--color-linen-light);
    background: rgba(244, 239, 230, 0.2);
    color: #FFF;
}

.btn-outline {
    border-color: var(--color-terracotta);
    color: var(--color-linen-light);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--color-terracotta);
    color: #FFF;
}

.btn-sm { padding: 0.5rem 1.25rem; font-size: 0.85rem; }
.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.25rem;
    border-radius: var(--radius-pill);
    background: rgba(244, 239, 230, 0.15);
    border: 1px solid rgba(244, 239, 230, 0.3);
    color: var(--color-linen-light);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

/* Navbar - Sage Green Body Theme */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 0.85rem 0;
    background: rgba(101, 117, 98, 0.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(244, 239, 230, 0.12);
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.55rem 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
}

.brand-header-img {
    height: 52px;
    width: auto;
    object-fit: contain;
    display: block;
    border-radius: 6px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-linen-light);
}

.nav-link:hover { color: var(--color-terracotta); }

.hamburger {
    display: none;
    background: none; border: none;
    color: var(--color-linen-light);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 900px) {
    .hamburger { display: block; }
    .nav-menu {
        position: fixed; top: 100%; left: 0; width: 100%;
        background: var(--color-bg-main);
        flex-direction: column;
        padding: 2rem; gap: 1.5rem;
        border-bottom: 1px solid rgba(244, 239, 230, 0.15);
        transform: translateY(-150%);
        transition: var(--transition);
        z-index: 999;
    }
    .nav-menu.active { transform: translateY(0); }
}

/* Hero Section on Sage Green Body */
.hero {
    position: relative;
    padding: 9.5rem 0 5rem 0;
    background: var(--color-bg-main);
    display: flex;
    align-items: center;
}

.hero-center-content {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}

/* Hero Emblem Showcase Card */
.hero-emblem-card {
    background: var(--color-bg-card-linen);
    padding: 2.25rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(244, 239, 230, 0.3);
    max-width: 480px;
    margin: 0 auto 3rem auto;
    text-align: center;
}

.hero-brand-img {
    max-width: 360px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 1.25rem auto;
    border-radius: 12px;
}

.brand-card-quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1rem;
    color: var(--color-slate);
    padding-top: 1rem;
    border-top: 1px solid rgba(41, 55, 56, 0.15);
    font-weight: 500;
}

.hero-title {
    font-size: 2.8rem;
    color: var(--color-linen-light);
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--color-text-muted-sage);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta-group {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

/* Locations Bar */
.hero-locations-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 1.25rem 2.5rem;
    background: rgba(244, 239, 230, 0.12);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    border: 1px solid rgba(244, 239, 230, 0.2);
    box-shadow: var(--shadow-sm);
    flex-wrap: wrap;
    max-width: 980px;
    margin: 0 auto;
}

.loc-bar-item {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--color-linen-light);
    text-align: left;
}

.loc-bar-item i {
    font-size: 1.4rem;
    color: var(--color-terracotta);
}

.loc-bar-item strong { display: block; font-size: 0.95rem; color: var(--color-linen-light); }
.loc-bar-item span { font-size: 0.82rem; color: var(--color-text-muted-sage); }

.loc-bar-divider {
    width: 1px; height: 35px;
    background: rgba(244, 239, 230, 0.2);
}

@media (max-width: 768px) {
    .hero-title { font-size: 2.1rem; }
    .hero-locations-bar { flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
    .loc-bar-item { text-align: center; flex-direction: column; }
    .loc-bar-divider { display: none; }
}

/* About Section */
.about-section {
    background-color: var(--color-bg-alt);
}

.about-center-card {
    background: var(--color-bg-card-linen);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(244, 239, 230, 0.3);
    color: var(--color-text-card);
}

.about-center-card .section-title {
    color: var(--color-slate);
}

.about-img {
    width: 100%; height: 420px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.lead-p {
    font-size: 1.18rem;
    font-weight: 500;
    color: var(--color-slate);
    margin-bottom: 1.25rem;
}

.body-p {
    color: var(--color-text-muted-card);
    margin-bottom: 1.75rem;
}

.quote-box-centered {
    background: rgba(77, 62, 73, 0.08);
    border-left: 4px solid var(--color-plum);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-sm);
    margin: 2rem 0;
    text-align: center;
}

.quote-box-centered p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--color-plum);
    margin: 0;
    font-weight: 600;
}

.credentials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .credentials-grid { grid-template-columns: repeat(2, 1fr); }
}

.credential-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: var(--color-surface-white);
    padding: 1.25rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(41, 55, 56, 0.08);
}

.credential-item i { font-size: 1.75rem; color: var(--color-terracotta); margin-bottom: 0.75rem; }
.credential-item h4 { font-size: 0.95rem; margin-bottom: 0.2rem; color: var(--color-slate); }
.credential-item span { font-size: 0.78rem; color: var(--color-text-muted-card); }

/* Treatments Section */
.treatments-section {
    background-color: var(--color-bg-main);
}

.treatment-tabs {
    display: inline-flex;
    gap: 0.75rem;
    background: rgba(244, 239, 230, 0.15);
    padding: 0.4rem;
    border-radius: var(--radius-pill);
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    border: 1px solid rgba(244, 239, 230, 0.2);
}

.tab-btn {
    background: none; border: none;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-pill);
    color: var(--color-linen-light);
    font-family: var(--font-heading);
    font-weight: 600; font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--color-terracotta);
    color: #FFF;
}

.treatment-card {
    background: var(--color-bg-card-linen);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(244, 239, 230, 0.3);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: center;
    color: var(--color-text-card);
}

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

.card-img-wrapper { position: relative; height: 200px; }
.card-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }

.badge-price {
    position: absolute; bottom: 1rem; right: 1rem;
    background: var(--color-terracotta);
    color: #FFF;
    font-family: var(--font-heading); font-weight: 700;
    font-size: 0.9rem; padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
}

.card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    align-items: center;
}

.card-meta {
    display: flex; gap: 1.25rem;
    font-size: 0.82rem; color: var(--color-terracotta);
    margin-bottom: 0.75rem; font-weight: 600;
}

.card-title { font-size: 1.3rem; margin-bottom: 0.75rem; color: var(--color-slate); }
.card-desc { font-size: 0.92rem; color: var(--color-text-muted-card); margin-bottom: 1.25rem; flex-grow: 1; }

.benefit-list { list-style: none; margin-bottom: 1.5rem; width: 100%; text-align: left; }
.benefit-list li {
    font-size: 0.85rem; color: var(--color-text-card);
    margin-bottom: 0.4rem; display: flex; align-items: center; gap: 0.5rem;
}

.benefit-list i { color: var(--color-terracotta); }

.card-actions { display: flex; gap: 0.75rem; width: 100%; }
.card-actions .btn { flex: 1; }

/* Locations Section */
.locations-section { background-color: var(--color-bg-alt); }

.location-card {
    background: var(--color-bg-card-linen);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    border: 1px solid rgba(244, 239, 230, 0.3);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    text-align: center;
    color: var(--color-text-card);
}

.location-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--color-terracotta);
}

.loc-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: 0.75rem; font-weight: 700; letter-spacing: 2px;
    padding: 0.35rem 0.9rem;
    background: rgba(101, 117, 98, 0.15);
    color: var(--color-slate);
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
}

.loc-badge-plum { background: var(--color-plum-soft); color: var(--color-plum); }

.loc-title { font-size: 1.8rem; margin-bottom: 0.25rem; color: var(--color-slate); }
.loc-subtitle { color: var(--color-text-muted-card); font-size: 0.95rem; margin-bottom: 1.5rem; }

.loc-address {
    font-weight: 500; color: var(--color-slate);
    margin-bottom: 1.25rem; display: flex; align-items: center; justify-content: center; gap: 0.6rem;
}

.loc-address i { color: var(--color-terracotta); }

.loc-features { list-style: none; margin-bottom: 1.5rem; text-align: left; }
.loc-features li {
    font-size: 0.9rem; color: var(--color-text-muted-card);
    margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.6rem;
}

.loc-features i { color: var(--color-terracotta); }

.loc-hours {
    padding: 1rem; background: rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-sm); margin-bottom: 1.75rem; font-size: 0.88rem;
}

.loc-hours strong { display: block; color: var(--color-slate); }
.loc-hours span { color: var(--color-text-muted-card); }

.loc-actions { display: flex; align-items: center; justify-content: center; gap: 1.5rem; }

/* FAQ Section */
.faq-section { background-color: var(--color-bg-main); }
.faq-accordion { display: flex; flex-direction: column; gap: 1rem; }

.faq-item {
    background: var(--color-bg-card-linen);
    border-radius: var(--radius-md);
    border: 1px solid rgba(244, 239, 230, 0.3);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%; padding: 1.25rem 1.75rem;
    background: none; border: none;
    color: var(--color-slate);
    font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem;
    text-align: left; display: flex; align-items: center; justify-content: space-between;
    cursor: pointer;
}

.faq-icon { color: var(--color-terracotta); transition: transform 0.3s ease; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { padding: 0 1.75rem 1.5rem 1.75rem; color: var(--color-text-muted-card); font-size: 0.95rem; display: none; }
.faq-item.active .faq-answer { display: block; }

/* Contact Section */
.contact-section { background-color: var(--color-bg-alt); }

.contact-info-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-methods { display: flex; flex-direction: column; gap: 1.5rem; margin: 2rem 0; }
.c-method { display: flex; align-items: center; gap: 1.25rem; }
.c-icon {
    width: 50px; height: 50px;
    background: var(--color-bg-card-linen);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; color: var(--color-terracotta);
    border: 1px solid rgba(244, 239, 230, 0.3);
    box-shadow: var(--shadow-sm);
}
.c-method h5 { font-size: 0.88rem; color: var(--color-text-muted-sage); }
.c-method a, .c-method span { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--color-linen-light); }

.contact-form-panel {
    background: var(--color-bg-card-linen);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(244, 239, 230, 0.3);
    box-shadow: var(--shadow-md);
    color: var(--color-slate);
}

.contact-form-panel h3 { font-size: 1.6rem; margin-bottom: 1.5rem; color: var(--color-slate); }

.form-group { margin-bottom: 1.25rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

label { display: block; font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--color-slate); margin-bottom: 0.4rem; }

input, select, textarea {
    width: 100%; padding: 0.85rem 1rem;
    background: #FFF;
    border: 1px solid rgba(41, 55, 56, 0.15);
    border-radius: var(--radius-sm);
    color: var(--color-slate);
    font-family: var(--font-body); font-size: 0.95rem;
    outline: none; transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--color-terracotta);
    box-shadow: 0 0 0 3px rgba(217, 130, 108, 0.2);
}

/* Footer */
.footer { background-color: var(--color-slate-dark); color: var(--color-text-on-sage); padding: 4rem 0 2rem 0; }
.footer-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); flex-wrap: wrap; gap: 2rem; }

.footer-brand-img {
    max-width: 220px;
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.footer-brand p { color: var(--color-linen-dark); font-size: 0.9rem; max-width: 400px; margin-top: 0.75rem; }
.footer-nav { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-nav a { color: var(--color-text-on-sage); font-size: 0.9rem; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 2rem; font-size: 0.82rem; color: var(--color-linen-dark); flex-wrap: wrap; gap: 1rem; }

/* Modals */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(28, 39, 40, 0.8); backdrop-filter: blur(8px);
    z-index: 2000; display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; opacity: 0; visibility: hidden; transition: var(--transition);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-container {
    background: var(--color-bg-card-linen);
    width: 100%; max-width: 620px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(244, 239, 230, 0.3);
    padding: 2.5rem; position: relative;
    max-height: 90vh; overflow-y: auto;
    box-shadow: var(--shadow-lg);
    color: var(--color-slate);
}

.modal-close {
    position: absolute; top: 1.25rem; right: 1.5rem;
    background: none; border: none; color: var(--color-text-muted-card);
    font-size: 2rem; cursor: pointer;
}

.wizard-steps { display: flex; justify-content: space-between; margin: 1.5rem 0 2rem 0; border-bottom: 1px solid rgba(41, 55, 56, 0.1); padding-bottom: 0.75rem; }
.w-step { font-family: var(--font-heading); font-size: 0.85rem; font-weight: 600; color: var(--color-text-muted-card); }
.w-step.active { color: var(--color-terracotta); }

.select-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
@media (max-width: 500px) { .select-grid { grid-template-columns: 1fr; } }

.select-card {
    background: #FFF;
    padding: 1.25rem; border-radius: var(--radius-md);
    border: 2px solid rgba(41, 55, 56, 0.08); cursor: pointer; transition: var(--transition);
    text-align: center;
}

.select-card.active, .select-card:hover {
    border-color: var(--color-terracotta);
    background: var(--color-terracotta-soft);
}

.select-card h5 { font-size: 1rem; margin-bottom: 0.3rem; color: var(--color-slate); }
.select-card span { font-size: 0.82rem; color: var(--color-terracotta); font-weight: 700; }

.wizard-buttons { display: flex; gap: 1rem; justify-content: flex-end; margin-top: 1.5rem; }
.summary-box { background: #FFF; padding: 0.85rem 1.25rem; border-radius: var(--radius-sm); color: var(--color-terracotta); font-weight: 600; font-size: 0.95rem; text-align: center; border: 1px solid rgba(41, 55, 56, 0.1); }
.square-direct-link { margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid rgba(41, 55, 56, 0.08); font-size: 0.85rem; color: var(--color-text-muted-card); }
.hidden { display: none !important; }
