/*
Theme Name: PārthaOS- WP Theme- True Wing Rehabilitation
Theme URI: https://xn--prthaos-s3a.org/
Author: PR Digital Solutions — MePremJagtap
Author URI: https://prdigitalsolutions.org/
Description: PārthaOS — True Wing Rehabilitation” is a next-generation WordPress theme. Tailored for Rehabilitation centers needing an elegant, mobile-first design.
Version: 1.1.0
License: GNU GPL v2 or later
Text Domain: prds-truewing
*/

/* =========================================
   1. ROOT VARIABLES
========================================= */
:root {
    --primary: #0b5394;       /* Deep Blue */
    --accent: #f39c12;        /* Alert Orange/Gold */
    --success: #27ae60;       /* WhatsApp Green */
    --text-main: #111827;     /* Dark Grey */
    --text-muted: #4b5563;    /* Medium Grey */
    --text-light: #f9fafb;    /* Off White */
    
    --bg-body: #f3f4f6;       /* Light Grey Background */
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --glass-blur: blur(10px);
    
    --radius: 16px;
    --btn-radius: 50px;       /* Pill shape for buttons */
    --transition: all 0.3s ease;
}

body[data-theme="dark"] {
    --text-main: #e6eef8;
    --text-muted: #9ca3af;
    --bg-body: #0f172a;
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* =========================================
   2. GENERAL RESET & TYPOGRAPHY
========================================= */
* { box-sizing: border-box; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background: var(--bg-body);
    margin: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; display: block; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin: 60px 0 30px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Reusable Glass Card Class */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
    padding: 24px;
}

/* =========================================
   3. HEADER
========================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo img {
    height: 50px;
    width: auto;
}

.btn-booknow {
    background: var(--primary);
    color: #fff;
    padding: 10px 24px;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-booknow:hover {
    background: #083d6e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 83, 148, 0.3);
}

/* =========================================
   4. HERO SECTION
========================================= */
.hero-section {
    position: relative;
    /* REPLACE THIS URL WITH YOUR ACTUAL IMAGE */
    background: url('https://images.unsplash.com/photo-1519834785169-98be25ec3f84?q=80&w=1920&auto=format&fit=crop') no-repeat center center/cover;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 83, 148, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive Font Size */
    font-weight: 800;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
}

.hero-tagline {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 400;
    margin-bottom: 30px;
    color: rgba(255,255,255,0.9);
}

.hero-contact-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 15px 25px;
    border-radius: var(--btn-radius);
    display: inline-block;
    margin-bottom: 25px;
}

.hero-contact-box p { margin: 0 0 5px; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }
.hero-contact-box .phone-link { font-size: 1.5rem; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; }

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    padding: 14px 30px;
    border-radius: var(--btn-radius);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.primary-btn { background: var(--success); color: #fff; } /* WhatsApp Color */
.secondary-btn { background: #fff; color: var(--primary); }

.hero-btn:hover { transform: translateY(-3px); filter: brightness(1.1); }

/* =========================================
   5. CORE FACILITIES (Horizontal Scroll)
========================================= */
.features-scroll-wrapper {
    overflow-x: auto;
    padding: 20px 5px;
    /* Hide Scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE */
}
.features-scroll-wrapper::-webkit-scrollbar { display: none; /* Chrome */ }

.features-scroll {
    display: flex;
    gap: 20px;
    width: max-content; /* Ensures strip doesn't break */
}

.feature-card {
    width: 280px;
    flex-shrink: 0;
    scroll-snap-align: start; /* Snap effect */
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 5px solid var(--primary);
}

.feature-card h3 { margin: 0 0 10px; font-size: 1.25rem; color: var(--primary); }
.feature-card p { margin: 0; font-size: 0.95rem; color: var(--text-muted); }

/* =========================================
   6. GALLERY
========================================= */
.gallery-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.gallery-slide img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease;
}

.gallery-slide img:hover {
    transform: scale(1.03);
    z-index: 2;
}

/* =========================================
   7. RECOVERY PROGRAMS
========================================= */
.room-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.room-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.room-card h3 { color: var(--primary); margin-top: 0; font-size: 1.5rem; }
.room-desc { flex-grow: 1; margin-bottom: 20px; color: var(--text-muted); }

.room-features {
    list-style: none;
    margin-bottom: 20px;
    background: rgba(11, 83, 148, 0.05);
    padding: 15px;
    border-radius: 8px;
}

.room-features li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.9rem;
}

.room-features li::before {
    content: "✔";
    color: var(--success);
    position: absolute;
    left: 0;
}

.room-btn {
    text-align: center;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px;
    border-radius: var(--btn-radius);
    font-weight: 700;
}
.room-btn:hover { background: var(--primary); color: #fff; }

/* =========================================
   8. FAQ (Native HTML Details)
========================================= */
.faq-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.faq-card {
    margin-bottom: 15px;
    padding: 0; /* Let details handle padding */
    overflow: hidden;
}

details {
    width: 100%;
}

summary {
    padding: 20px;
    font-weight: 700;
    cursor: pointer;
    list-style: none; /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-main);
}

/* Custom Triangle */
summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: transform 0.2s;
}

details[open] summary::after {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
    border-top: 1px solid rgba(0,0,0,0.05);
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   9. CONTACT FORM & MAP
========================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-card h2 { margin-top: 0; color: var(--primary); }

.form-group { margin-bottom: 15px; }

.contact-form input, 
.contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: #fff;
}

.contact-btn {
    width: 100%;
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
}
.contact-btn:hover { background: #d35400; }

.contact-direct {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.95rem;
}

/* Responsive Map Aspect Ratio */
.map-responsive {
    overflow: hidden;
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
    position: relative;
    height: 0;
    border-radius: var(--radius);
    box-shadow: var(--glass-shadow);
}
.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* =========================================
   10. FOOTER & EXTRAS
========================================= */
footer {
    padding: 40px 20px;
    text-align: center;
    background: #0b1220; /* Dark Footer */
    color: #8b9bb4;
    font-size: 0.9rem;
    margin-top: 60px;
}

/* STRICT EXPIRY POPUP (Do not remove) */
.tw-expired-overlay {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999999;
    justify-content: center;
    align-items: center;
}

.tw-expired-box {
    background: #fff;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    text-align: center;
    border-radius: 20px;
    color: #333;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
}

.tw-expired-box h2 { color: #c0392b; margin-top: 0; }

/* =========================================
   11. MOBILE RESPONSIVENESS
========================================= */
@media (max-width: 768px) {
    .section-title { font-size: 1.75rem; margin: 40px 0 20px; }
    
    .contact-grid { grid-template-columns: 1fr; }
    
    .hero-section {
        background-attachment: scroll; /* Fix for mobile browser header resize */
        height: auto;
        padding: 120px 20px 60px; /* More top padding for nav */
    }
    
    .hero-title { font-size: 2.2rem; }
    
    .features-scroll-wrapper {
        padding-left: 20px; /* Peek effect */
    }
    
    .mobile-sticky-footer {
        /* Only if you implement the sticky footer HTML elsewhere */
        display: flex;
    }
}