/* 
         * --- CSS VARIABLES & GLOBAL STYLES --- 
         * Defines the core colors, fonts, and spacing for the entire site.
        */
/* Color Combination 1 – Calm Trust (Healthcare / Care Home) */
/* Color Combination 2 – Warm Compassion (Senior Living) */
:root {
    --primary-color: #8B5E3C; /* Warm brown */
    --primary-color-rgba: rgba(139, 94, 60, 0.9);
    --secondary-color: #ebab62; /* Soft beige */
    --dark-gray: #3A3A3A;
    --light-gray: #FAF7F4;
    --white: #FFFFFF;
    --text-color: #5A4A42;
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 10px;
    --box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* --- UTILITY CLASSES --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.2rem;
    text-align: center;
    color: var(--text-color);
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--white);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

.text-center {
    text-align: center;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.py-2 {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* 
         * --- HEADER SECTION --- 
        */
.main-header {
    background-color: var(--white);
    height: var(--header-height);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.brand-logo span {
    color: var(--secondary-color);
}

.brand-logo::before {
    content: '🏠';
    font-size: 1.8rem;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 20px;
}

.main-nav a {
    font-weight: 600;
    color: var(--dark-gray);
    position: relative;
}

.main-nav a:hover {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
}

/* 
         * --- HERO SECTION --- 
        */
#hero {
    background: linear-gradient(rgba(139, 94, 60, 0.85), rgba(139, 94, 60, 0.8)), url('../images/hero.webp');
    background-size: cover;
    background-position: center;
    color: var(--white);
    padding: 150px 0;
    text-align: center;
}

#hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

#hero p {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

#hero p.hero-sub {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    font-weight: 600;
}

.hero-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.hero-cta {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

#hero .btn-outline {
    border-color: var(--white);
    color: var(--white);
}

#hero .btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* 
         * --- ABOUT US SECTION --- 
        */
#about-us {
    background-color: var(--light-gray);
}

.about-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 5px solid var(--secondary-color);
}

.about-content p {
    margin-bottom: 1.5rem;
}

.mission-box {
    background-color: #eaf5ef;
    padding: 25px;
    border-radius: var(--border-radius);
    margin-top: 20px;
}

.mission-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 
         * --- SERVICES SECTION --- 
        */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid #eee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
    border-color: var(--secondary-color);
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card ul {
    margin-top: 10px;
}

.service-card li {
    padding: 5px 0;
    border-bottom: 1px dashed #eee;
    color: #666;
}

.service-card li:last-child {
    border-bottom: none;
}

/* 
         * --- WHY CHOOSE US & HOME WARRANTY --- 
        */
.checklist-section {
    background-color: var(--light-gray);
}

.checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.checklist-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
}

.checklist-card ul li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1.05rem;
}

.checklist-card ul li::before {
    content: '✔';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    min-width: 20px;
}

#home-warranty {
    background: linear-gradient(135deg, var(--primary-color), #ebab62);
    color: var(--white);
}

#home-warranty .section-title,
#home-warranty .section-subtitle {
    color: var(--white);
}

#home-warranty .checklist-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#home-warranty .checklist-card ul li::before {
    color: var(--secondary-color);
}

/* 
         * --- FORMS SECTION (QUOTE & TESTIMONIALS) --- 
        */
.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-gray);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 94, 60, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.form-checkbox input {
    width: auto;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: 600;
    display: none;
    /* Hidden by default */
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--light-gray);
    padding: 25px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--secondary-color);
}

.testimonial-stars {
    color: #FFD700;
    /* Gold */
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 15px;
    color: var(--dark-gray);
}

.testimonial-author {
    font-weight: 700;
    color: var(--primary-color);
}

/* Contact & Newsletter Section Layout */
.contact-newsletter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* 
         * --- LEGAL & FOOTER --- 
        */
.legal-section {
    background-color: var(--light-gray);
    border-top: 1px solid #e0e0e0;
}

.legal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.legal-box h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.legal-box p {
    font-size: 0.9rem;
    color: #666;
    text-align: justify;
}

.main-footer {
    background-color: #1a1a1a;
    color: #ddd;
    padding: 60px 0 20px;
}

.footer-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 15px;
    display: block;
}

.footer-slogan {
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 20px;
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #333;
}

.footer-links h5,
.footer-contact h5 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons a {
    display: inline-block;
    margin-right: 15px;
    font-size: 1.2rem;
}

.social-icons a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    font-size: 0.9rem;
    padding-top: 15px;
    color: #999;
}

/* 
         * --- RESPONSIVE MEDIA QUERIES --- 
        */
@media (max-width: 992px) {
    #hero h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {

    /* Header & Nav */
    .main-nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--white);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.4s ease;
        display: block;
        /* Override flex */
        height: auto;
        max-height: 0;
        overflow: hidden;
    }

    .main-nav.active {
        transform: translateY(0);
        max-height: 500px;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hero */
    #hero h1 {
        font-size: 2.2rem;
    }

    #hero p {
        font-size: 1.1rem;
    }

    .hero-features {
        flex-direction: column;
        gap: 10px;
    }

    /* Contact & Newsletter Grid */
    .contact-newsletter-grid,
    .legal-grid {
        grid-template-columns: 1fr;
    }
}