/*
 * =========================================================================
 * BRIGHT HOME CARE - GLOBAL STYLESHEET (main-style.css)
 * Purpose: Defines typography, layout, responsive design, and component styles.
 * Theme: Clean, professional, and healthcare-friendly UI.
 * =========================================================================
 */

/* --- 1. Global Reset & Variables --- */
:root {
    /* Color Palette (Matching the Investor Report/Classic Style) */
    --primary: #1a4d6e;      /* Deep Slate Blue (Corporate/Trust) */
    --secondary: #63a39e;    /* Sage Green (Care/Healing Accent) */
    --accent: #d48c70;       /* Muted Terracotta (Warmth) */
    
    --text-dark: #2c3e50;    /* Dark Charcoal */
    --text-light: #546e7a;   /* Blue Grey */
    
    --bg-light: #f0f6f8;     /* Very Light Blue/Grey */
    --bg-care: #f4f9f6;      /* Very Light Mint */
    --border-color: #e0e6ed;
    --white: #ffffff;
    
    /* Typography */
    --font-serif: 'Merriweather', serif;
    --font-sans: 'Inter', sans-serif;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* --- 2. Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--primary);
    margin-bottom: 0.5em;
    line-height: 1.2;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; margin-top: 1.5em; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 600; }

p { margin-bottom: 1em; }
a { color: var(--secondary); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--accent); }

.lead-text {
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--text-light);
}

.icon-primary { color: var(--primary); }
.icon-secondary { color: var(--secondary); }
.icon-accent { color: var(--accent); }

/* --- 3. Layout & Utilities --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 4rem 0;
}

.bg-light { background-color: var(--bg-light); }
.bg-care { background-color: var(--bg-care); }
.bg-primary { background-color: var(--primary); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-white { color: var(--white); }

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.align-center { align-items: center; }

.img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.bullet-list, .check-list {
    list-style: none;
    padding: 0;
}
.bullet-list li, .check-list li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
}
.check-list li i {
    position: absolute;
    left: 0;
    top: 3px;
    font-size: 1.1rem;
}

/* --- 4. Buttons and Forms --- */
.btn {
    display: inline-block;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
}
.btn-secondary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}
.btn-primary-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-secondary-outline {
    background: transparent;
    color: var(--secondary);
    border-color: var(--secondary);
}
.btn-secondary-outline:hover {
    background-color: var(--secondary);
    color: var(--white);
}

/* Form Styles */
.form-container {
    background: var(--white);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border-top: 4px solid var(--accent);
}

.form-title {
    color: var(--primary);
    font-size: 1.3rem;
    margin-bottom: 1em;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--secondary);
    outline: none;
}

.form-small-print {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 10px;
    text-align: center;
}

/* --- 5. Header and Navigation --- */
.main-header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-header > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.site-logo {
    height: 50px; /* Standard logo height */
    width: auto;
}

.main-nav .nav-list {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

.main-nav .nav-list li a {
    display: block;
    padding: 10px 15px;
    color: var(--primary);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.main-nav .nav-list li a:hover,
.main-nav .nav-list li a.active {
    color: var(--secondary);
    border-bottom: 2px solid var(--secondary);
}

.nav-cta {
    margin-left: 20px;
}

.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--primary);
}

/* --- 6. Footer --- */
.main-footer {
    background-color: var(--primary);
    color: var(--bg-light);
    padding: 40px 0 20px 0;
    font-size: 0.9rem;
}

.main-footer h3 {
    color: var(--secondary);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--text-light);
}

.main-footer .footer-list {
    list-style: none;
    padding: 0;
}

.main-footer .footer-list a {
    color: var(--bg-light);
    display: block;
    padding: 3px 0;
}

.main-footer .footer-list a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
}
.footer-bottom p {
    margin-bottom: 5px;
    color: #aebfd2;
    font-size: 0.8rem;
}
.footer-disclaimer {
    font-style: italic;
    font-size: 0.75rem !important;
}
.footer-phone a, .footer-email a {
    color: var(--white);
}

/* --- 7. Page Specific Sections --- */

/* Hero Section (Index Page) */
.hero-section {
    padding: 50px 0;
    background-color: var(--bg-light);
}
.hero-section > .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: flex-start;
}
.hero-content h1 {
    font-size: 3rem;
    margin-top: 0;
}
.hero-banner-mobile { display: none; } /* Hide mobile banner on desktop */

/* Intro Cards (Index/About) */
.intro-cards .card {
    padding: 20px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    background: var(--white);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}
.intro-cards .card i { margin-bottom: 10px; }

/* Expanded Services (Index) */
.services-detail-section .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}
.service-item-detail {
    display: flex;
    flex-direction: column;
    padding: 15px;
    background: var(--bg-care);
    border-radius: 8px;
}
.service-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
    margin-bottom: 15px;
    border-radius: 6px;
}

/* Secondary CTA */
.secondary-cta-section .contact-highlight {
    padding: 20px;
    background: var(--white);
    border-radius: 8px;
    border: 1px solid var(--secondary);
}
.secondary-cta-section .large-phone {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 10px;
    color: var(--primary);
}

/* About Page */
.page-hero {
    padding: 3rem 0;
    background-color: var(--bg-light);
}
.mvv-card {
    padding: 20px;
    border: 1px dashed var(--secondary);
    border-radius: 8px;
    background: var(--white);
}

/* Contact Page */
.contact-layout {
    grid-template-columns: 1fr 1.2fr;
}
.contact-detail-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
    padding: 15px;
    border-left: 4px solid var(--accent);
    background: var(--bg-care);
    border-radius: 4px;
}
.contact-detail-box i { 
    margin-top: 5px;
    flex-shrink: 0;
}
.contact-detail-box h3 { margin: 0; font-size: 1.2rem; }
.contact-detail-box p { margin: 0; font-size: 0.95rem; }
.detail-link a { color: var(--primary); font-weight: 600; }
.map-placeholder iframe {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* FAQs Page */
.faq-category-title {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-top: 30px;
    margin-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 5px;
}
.accordion-item {
    border: 1px solid var(--border-color);
    margin-bottom: 10px;
    border-radius: 4px;
    overflow: hidden;
}
.accordion-header {
    width: 100%;
    text-align: left;
    padding: 15px;
    background-color: var(--white);
    color: var(--primary);
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}
.accordion-header:hover {
    background-color: var(--bg-light);
}
.accordion-header i {
    margin-right: 10px;
    color: var(--accent);
}
.accordion-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}
.accordion-collapse.show {
    max-height: 500px; /* Large enough to cover content */
}
.accordion-body {
    padding: 15px;
    background-color: var(--bg-care);
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
}

/* Legal Pages */
.policy-text h2 { color: var(--text-dark); font-size: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 5px; margin-top: 30px; }
.policy-text h3 { color: var(--primary); font-size: 1.1rem; margin-top: 15px;}
.warning-text {
    color: #c0392b; /* Reddish warning color */
    font-weight: 600;
    border-left: 3px solid #e74c3c;
    padding-left: 10px;
    margin: 15px 0;
}
.service-link-wrapper {
    text-decoration: none;
    color: inherit;
    display: block;
}

.service-link-wrapper:hover h4 {
    color: var(--accent);
}

.service-link-wrapper:hover .service-img {
    opacity: 0.9;
    transform: scale(1.02);
    transition: all 0.3s ease;
}

.btn-text {
    color: var(--secondary);
    font-weight: 600;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
    font-size: 0.9rem;
}

.btn-text:hover {
    color: var(--primary);
    text-decoration: underline;
}
/* --- 8. Responsive Design (Mobile First) --- */

/* Tablet and smaller devices (max-width: 992px) */
@media (max-width: 992px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    .hero-section > .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-content { order: 2; }
    .hero-form-wrapper { order: 1; }
    .hero-content h1 { font-size: 2.5rem; }

    .grid-3 { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .main-footer h3 { margin-top: 20px; }
    .main-footer .footer-list { display: flex; flex-wrap: wrap; justify-content: center; }
    .main-footer .footer-list li { width: 50%; }
}

/* Mobile specific changes (max-width: 768px) */
@media (max-width: 768px) {
    .main-header > .container {
        /* Keep logo and button on the same line */
        flex-wrap: nowrap; 
        position: relative; /* Anchor for the dropdown menu */
    }
    
    .main-nav {
        /* Remove 100% width so it fits next to the logo */
        width: auto; 
    }

    .menu-toggle {
        display: block; /* Show menu toggle button */
        font-size: 1.5rem;
        color: var(--primary);
        background: none;
        border: none;
        cursor: pointer;
    }

    .main-nav .nav-list {
        display: none; /* Hidden by default */
        position: absolute;
        top: 100%; /* Position below the header */
        left: 0;
        width: 100%; /* Full width dropdown */
        background-color: var(--white);
        flex-direction: column;
        text-align: center;
        border-top: 1px solid var(--border-color);
        box-shadow: 0 5px 10px rgba(0,0,0,0.1);
        padding: 10px 0;
        z-index: 1000;
    }

    .main-nav .nav-list li {
        width: 100%;
        border-bottom: 1px solid var(--bg-light);
    }

    .main-nav .nav-list li a {
        padding: 12px 15px;
        display: block;
    }

    /* Show the menu when the 'open' class is added via JS */
    .main-nav .nav-list.open {
        display: flex;
    }

    .nav-cta {
        margin: 10px 0;
        width: 100%;
    }

    /* Hero Banners Swap */
    .hero-banner-desktop { display: none; }
    .hero-banner-mobile { 
        display: block; 
        margin-bottom: 20px;
    }
    
    .hero-content h1 { font-size: 2rem; }
    .section-padding { padding: 3rem 0; }
    .contact-layout { grid-template-columns: 1fr; }
}