/* ═══════════════════════════════════════════════
   PHYSIOTHERAPY WEBSITE — Style Sheet
   ═══════════════════════════════════════════════ */

/* ──────────── RESET & BASE ──────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #0a7e6f;        /* Teal — medical trust */
    --primary-dark: #065f53;
    --primary-light: #e8f5f3;
    --accent: #f4a261;          /* Warm accent for CTAs */
    --accent-dark: #e08f4a;
    --text: #2d3436;
    --text-light: #636e72;
    --bg: #ffffff;
    --bg-alt: #f8faf9;
    --border: #e0e8e5;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.1);
    --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Noto Sans TC', 'Microsoft JhengHei', sans-serif;
    --max-width: 1140px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
}

img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }
ul { list-style: none; }

/* ──────────── UTILITY ──────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}
.section-title {
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 12px;
}
.section-desc { color: var(--text-light); font-size: 1.05rem; }
.hide-mobile { display: inline; }

/* ──────────── BUTTONS ──────────── */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s;
    border: 2px solid transparent;
    text-align: center;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* ──────────── HEADER ──────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 24px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text);
}
.logo-icon { font-size: 1.5rem; }
.logo-text { color: var(--primary); }

.nav-list { display: flex; gap: 32px; align-items: center; }
.nav-link {
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}
.nav-link:hover, .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.lang-switch {
    font-weight: 700 !important;
    background: var(--primary);
    color: #fff !important;
    padding: 4px 12px !important;
    border-radius: 6px;
    border-bottom: none !important;
    font-size: 0.85rem !important;
}
.lang-switch:hover {
    background: var(--primary-dark) !important;
    color: #fff !important;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.mobile-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

.nav-cta { margin-left: 24px; }

/* ──────────── HERO ──────────── */
.hero {
    padding: 80px 0 60px;
    background: linear-gradient(135deg, #f0faf8 0%, #e8f5f3 50%, #f8faf9 100%);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-badge {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}
.hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 20px;
}
.hero-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 32px;
    line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; }
.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.85rem; color: var(--text-light); }

.hero-image-placeholder {
    background: linear-gradient(135deg, #d0e8e4 0%, #b8d9d3 100%);
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
    font-size: 1rem;
    text-align: center;
    border: 2px dashed var(--primary);
}
.hero-image-placeholder small { font-size: 0.8rem; opacity: 0.6; margin-top: 4px; }

/* ──────────── SERVICES GRID ──────────── */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.service-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all 0.3s;
    display: block;
    color: var(--text);
}
.service-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    color: var(--text);
}
.service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h3 { margin-bottom: 12px; font-size: 1.15rem; }
.service-card p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 16px; line-height: 1.7; }
.service-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

/* ──────────── FEATURES ──────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.feature-card { text-align: center; padding: 32px 20px; }
.feature-icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { margin-bottom: 12px; font-size: 1.1rem; }
.feature-card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.7; }

/* ──────────── TESTIMONIALS ──────────── */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.testimonial-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.testimonial-stars { color: #f1c40f; margin-bottom: 16px; font-size: 1.1rem; }
.testimonial-text {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 20px;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}
.testimonial-author strong { font-size: 0.95rem; }
.testimonial-author small { color: var(--text-light); font-size: 0.8rem; }

/* ──────────── BLOG ──────────── */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.3s;
}
.blog-card:hover { box-shadow: var(--shadow-hover); }
.blog-image-placeholder {
    background: #eef2f0;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 0.9rem;
}
.blog-card-body { padding: 24px; }
.blog-date { font-size: 0.8rem; color: var(--text-light); }
.blog-card-body h3 { margin: 8px 0; font-size: 1.1rem; line-height: 1.4; }
.blog-card-body p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 12px; }
.blog-readmore { font-weight: 600; font-size: 0.9rem; }

/* ──────────── CTA SECTION ──────────── */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-align: center;
}
.cta-title { font-size: 2rem; margin-bottom: 12px; }
.cta-text { font-size: 1.1rem; opacity: 0.9; margin-bottom: 32px; }
.cta-section .btn-primary { background: #fff; color: var(--primary); border-color: #fff; }
.cta-section .btn-primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.cta-phone { margin-top: 16px; font-size: 1.05rem; }
.cta-phone a { color: #fff; text-decoration: underline; }

/* ──────────── FOOTER ──────────── */
.footer { background: #1a2a28; color: #b0c4c0; padding: 60px 0 0; }
.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer h4 { color: #fff; margin-bottom: 16px; font-size: 1rem; }
.footer p, .footer li { font-size: 0.9rem; line-height: 2; }
.footer a { color: #b0c4c0; }
.footer a:hover { color: #fff; }

.hours li { display: flex; justify-content: space-between; }
.contact-info li { margin-bottom: 4px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; }
.footer-bottom a { color: #b0c4c0; }

/* ──────────── PAGE HERO (inner pages) ──────────── */
.page-hero {
    background: linear-gradient(135deg, #f0faf8 0%, #e0f0ec 100%);
    padding: 64px 0;
    text-align: center;
}
.page-hero h1 { font-size: 2.2rem; margin-bottom: 8px; }
.page-hero p { color: var(--text-light); font-size: 1.05rem; }

/* ──────────── ABOUT PAGE ──────────── */
.content-wide { max-width: 900px; }
.content-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.content-text h2 { margin-bottom: 20px; }
.content-text p { color: var(--text-light); margin-bottom: 16px; line-height: 1.9; }
.image-placeholder {
    background: #eef2f0;
    border-radius: var(--radius);
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}
.image-placeholder small { font-size: 0.8rem; margin-top: 4px; }

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 32px;
}
.team-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
}
.team-avatar-placeholder { font-size: 3.5rem; margin-bottom: 16px; }
.team-card h3 { margin-bottom: 4px; }
.team-title { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.team-creds { text-align: left; margin-top: 16px; }
.team-creds li {
    color: var(--text-light);
    font-size: 0.85rem;
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}
.team-creds li::before { content: '•'; position: absolute; left: 0; color: var(--primary); }

.certs-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    margin-top: 24px;
}
.cert-item {
    background: var(--primary-light);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* ──────────── SERVICES PAGE ──────────── */
.service-detail {
    max-width: 800px;
}
.service-detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.service-detail-icon { font-size: 2.5rem; }
.service-detail-header h2 { font-size: 1.6rem; }
.service-detail-body p { color: var(--text-light); line-height: 1.9; margin-bottom: 16px; }
.service-detail-body h3 { margin: 24px 0 12px; font-size: 1.05rem; color: var(--primary); }
.service-detail-body ul, .service-detail-body ol {
    margin-left: 24px;
    margin-bottom: 16px;
    color: var(--text-light);
}
.service-detail-body li { margin-bottom: 6px; line-height: 1.7; }

/* ──────────── CONTACT PAGE ──────────── */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
}
.contact-info-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}
.contact-card-icon { font-size: 1.5rem; display: block; margin-bottom: 8px; }
.contact-card h3 { font-size: 1rem; margin-bottom: 8px; }
.contact-card p { color: var(--text-light); font-size: 0.95rem; }
.contact-note { font-size: 0.8rem !important; color: var(--text-light) !important; margin-top: 4px; }
.contact-card-hours ul { margin-top: 8px; }
.contact-card-hours li { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 4px 0; color: var(--text-light); }

.contact-form-wrapper { background: var(--bg); padding: 0; }
.contact-form-wrapper h2 { margin-bottom: 8px; }
.contact-form-wrapper > p { color: var(--text-light); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--text);
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: border-color 0.2s;
    background: var(--bg);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10,126,111,0.12);
}
.checkbox-label { display: flex; align-items: center; gap: 8px; font-weight: 400 !important; }
.checkbox-label input { width: auto; }
.form-success {
    text-align: center;
    padding: 40px;
    border: 2px dashed var(--primary);
    border-radius: var(--radius);
}
.success-icon { font-size: 3rem; margin-bottom: 16px; }
.form-success h3 { margin-bottom: 8px; color: var(--primary); }

.map-placeholder {
    background: #eef2f0;
    border-radius: var(--radius);
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1rem;
}
.map-placeholder small { font-size: 0.8rem; margin-top: 4px; opacity: 0.6; }

/* ──────────── BLOG TAGS ──────────── */
.blog-tags { margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-block; background: var(--primary-light); color: var(--primary); padding: 4px 14px; border-radius: 16px; font-size: 0.85rem; font-weight: 600; }
.tag:hover { background: var(--primary); color: #fff; }

/* ──────────── PRIVACY PAGE ──────────── */
.privacy-content { max-width: 800px; margin: 0 auto; }
.privacy-content h2 { margin: 32px 0 12px; color: var(--primary); }
.privacy-content p { color: var(--text-light); line-height: 1.9; margin-bottom: 12px; }

/* ──────────── RESPONSIVE ──────────── */
@media (max-width: 1024px) {
    .services-grid, .features-grid, .testimonials-grid, .blog-grid, .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
    .section { padding: 56px 0; }
    .section-title { font-size: 1.6rem; }

    /* Mobile nav */
    .mobile-toggle { display: flex; }
    .nav-cta { display: none; }
    .nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(255,255,255,0.98);
        backdrop-filter: blur(12px);
        padding: 24px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
    }
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }
    .nav-list { flex-direction: column; gap: 0; }
    .nav-link {
        display: block;
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
    }
    .nav-link:last-child { border-bottom: none; }
    .lang-switch { display: inline-block !important; margin-top: 8px; text-align: center; }

    /* Hero */
    .hero-inner { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 2rem; }
    .hero-stats { gap: 24px; }
    .hero-image { order: -1; }
    .hero-actions .btn { width: 100%; }

    /* Grids to single */
    .services-grid, .features-grid, .testimonials-grid, .blog-grid, .team-grid {
        grid-template-columns: 1fr;
    }
    .content-row { grid-template-columns: 1fr; gap: 24px; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom .container { flex-direction: column; gap: 8px; }
    .page-hero { padding: 48px 0; }
    .page-hero h1 { font-size: 1.7rem; }
}
