:root {
    --color-primary-dark: #332B22; /* Dark brown/charcoal for headings and strong text */
    --color-secondary-dark: #5C524A; /* Slightly lighter dark brown for body text */
    --color-light-beige: #FDF8F0; /* Very light warm beige for backgrounds */
    --color-medium-beige: #F5EFE7; /* Slightly darker beige for alternate backgrounds */
    --color-accent: #E0B28C; /* Soft gold/peach for accents */
    --color-accent-dark: #C79A6F; /* Darker accent for buttons/hover */
    --color-white: #FFFFFF;
    --color-black: #000000;
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--color-secondary-dark);
    background-color: var(--color-light-beige);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* A more elegant font for headings */
    color: var(--color-primary-dark);
}

/* General Styles */
.bg-light-beige {
    background-color: var(--color-light-beige);
}

.bg-medium-beige {
    background-color: var(--color-medium-beige);
}

.text-primary-dark {
    color: var(--color-primary-dark) !important;
}

.text-secondary-dark {
    color: var(--color-secondary-dark) !important;
}

.text-accent {
    color: var(--color-accent) !important;
}

.btn-primary {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: var(--color-white);
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

.btn-outline-primary {
    color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

.btn-outline-primary:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-white);
}

.btn-light-outline {
    color: var(--color-white);
    border-color: var(--color-white);
    background-color: transparent;
    transition: background-color 0.3s, color 0.3s;
}

.btn-light-outline:hover {
    background-color: var(--color-white);
    color: var(--color-primary-dark);
}

.navbar {
    background-color: var(--color-light-beige);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-brand .h4 {
    font-family: 'Playfair Display', serif;
}

.navbar-nav .nav-link {
    color: var(--color-primary-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--color-accent-dark);
}

/* Hero Section */
.hero-section {
    background-image: url('assets/uploads/senior-living-community-exterior.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Dark overlay */
}

.hero-image-split {
    background-image: url('assets/uploads/senior-couple-smiling.jpg'); /* Image for the left split */
    background-size: cover;
    background-position: center;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    width: 50%; /* Occupy half the width */
}

.hero-section .container-fluid {
    height: 100%;
}

.hero-section .col-md-6:last-child {
    background-color: rgba(253, 248, 240, 0.85); /* Semi-transparent beige for text block */
    color: var(--color-primary-dark);
    padding: 4rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    position: absolute;
    right: 0;
    top: 0;
    width: 50%;
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary-dark);
}

.hero-section p {
    color: var(--color-secondary-dark);
}

@media (max-width: 767.98px) {
    .hero-image-split {
        display: none !important; /* Hide split image on small screens */
    }
    .hero-section .col-md-6:last-child {
        width: 100%;
        position: relative;
        background-color: rgba(253, 248, 240, 0.95); /* More opaque on small screens */
        text-align: center;
        align-items: center;
    }
    .hero-section .hero-overlay {
        background: rgba(0, 0, 0, 0.5); /* Slightly darker overlay for background image */
    }
}

/* Services Section Tabs */
.nav-tabs {
    border-bottom: 1px solid var(--color-medium-beige);
}

.nav-tabs .nav-link {
    color: var(--color-primary-dark);
    border: 1px solid transparent;
    border-top-left-radius: 0.25rem;
    border-top-right-radius: 0.25rem;
    margin-bottom: -1px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s;
}

.nav-tabs .nav-link:hover:not(.active) {
    border-color: var(--color-medium-beige) var(--color-medium-beige) var(--color-light-beige);
    color: var(--color-accent-dark);
}

.nav-tabs .nav-link.active {
    color: var(--color-white);
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark) var(--color-accent-dark) transparent;
    font-weight: 500;
}

.tab-content {
    padding: 2rem 0;
}

/* Gallery Section */
.gallery-item {
    width: 100%;
    height: 250px; /* Fixed height for gallery images */
    object-fit: cover; /* Ensures images cover the area without distortion */
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.accordion-item {
    border: 1px solid var(--color-medium-beige);
    margin-bottom: 10px;
    border-radius: 0.25rem;
}

.accordion-button {
    background-color: var(--color-light-beige);
    color: var(--color-primary-dark);
    font-weight: 500;
    padding: 1rem 1.25rem;
    border-radius: 0.25rem;
    text-align: left;
    transition: background-color 0.3s;
}

.accordion-button:not(.collapsed) {
    background-color: var(--color-accent);
    color: var(--color-white);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    background-color: var(--color-white);
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--color-medium-beige);
}

/* Team Section Carousel */
.team-avatar {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border: 4px solid var(--color-accent);
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--color-accent-dark);
    border-radius: 50%;
    padding: 1rem;
}

/* Community Features (Industries) Section */
.feature-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
}

.feature-description {
    transition: opacity 0.3s ease-in-out;
    background-color: var(--color-accent);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none; /* Allows clicks on elements behind it */
    font-weight: 500;
    padding: 1rem;
    box-sizing: border-box;
}

.feature-card:hover .feature-description {
    opacity: 1;
    pointer-events: auto;
}

/* Stats Section */
.stat-circle {
    width: 180px;
    height: 180px;
    border: 5px solid #000;
}
#stats p {
    color: #000000;
}

.stat-circle h3 {
    font-size: 28px;
    color: #5C524A;
    font-family: 'Playfair Display', serif;
}

.stat-circle p {
    font-weight: 500;
}

/* Testimonials Section */
.testimonial-avatar {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 2px solid var(--color-accent);
}

/* CTA Section */
.cta-section {
    background-image: url('assets/uploads/senior-couple-walking-garden.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

.cta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(var(--color-primary-dark-rgb), 0.7); /* Dark overlay from primary dark */
}

/* Footer */
footer {
    background-color: var(--color-primary-dark);
}

footer .text-light-beige {
    color: var(--color-light-beige);
}

footer a {
    color: var(--color-light-beige);
}

footer a:hover {
    color: var(--color-accent);
}

.social-icons a {
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--color-accent) !important;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    background-color: var(--color-white);
    border-radius: 0.5rem;
    z-index: 1050;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    display: none; /* Hidden by default, shown by JS */
}

.cookie-banner .card-body {
    padding: 1.5rem;
}

.cookie-banner .form-check-input:checked {
    background-color: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
}

.cookie-banner .btn-outline-secondary {
    color: var(--color-secondary-dark);
    border-color: var(--color-secondary-dark);
}

.cookie-banner .btn-outline-secondary:hover {
    background-color: var(--color-secondary-dark);
    color: var(--color-white);
}
@media (max-width:576px) {
    .cookie-banner {
        width: 100%;
    }
}
/* Helper for RGB conversion */
:root {
    --color-primary-dark-rgb: 51, 43, 34;
}/* Content Hub Specific Styles */
.secureTermsHub {
    /* Padding for the top and sides of the content hub */
    padding: 4rem 1.5rem; 
    /* Max width to prevent content from stretching too wide on large screens */
    max-width: 960px; 
    /* Center the content hub horizontally */
    margin: 0 auto; 
}

.secureTermsHub h1 {
    /* Font size for main headings, not too large */
    font-size: 2.2rem; 
    /* Spacing below the heading */
    margin-bottom: 1.5rem; 
    /* Use the elegant heading font */
    font-family: 'Playfair Display', serif;
    /* Dark primary color for headings */
    color: var(--color-primary-dark);
    /* Standard line height */
    line-height: 1.2;
}

.secureTermsHub h2 {
    /* Font size for sub-headings */
    font-size: 1.8rem; 
    /* Spacing below the heading */
    margin-bottom: 1.2rem; 
    /* Use the elegant heading font */
    font-family: 'Playfair Display', serif;
    /* Dark primary color for headings */
    color: var(--color-primary-dark);
    /* Standard line height */
    line-height: 1.3;
}

.secureTermsHub h3 {
    /* Font size for smaller headings */
    font-size: 1.5rem; 
    /* Spacing below the heading */
    margin-bottom: 1rem; 
    /* Use the elegant heading font */
    font-family: 'Playfair Display', serif;
    /* Dark primary color for headings */
    color: var(--color-primary-dark);
    /* Standard line height */
    line-height: 1.4;
}

.secureTermsHub h4 {
    /* Font size for even smaller headings */
    font-size: 1.25rem; 
    /* Spacing below the heading */
    margin-bottom: 0.8rem; 
    /* Use the elegant heading font */
    font-family: 'Playfair Display', serif;
    /* Dark primary color for headings */
    color: var(--color-primary-dark);
    /* Standard line height */
    line-height: 1.5;
}

.secureTermsHub h5 {
    /* Font size for the smallest headings */
    font-size: 1.1rem; 
    /* Spacing below the heading */
    margin-bottom: 0.6rem; 
    /* Use the elegant heading font */
    font-family: 'Playfair Display', serif;
    /* Dark primary color for headings */
    color: var(--color-primary-dark);
    /* Standard line height */
    line-height: 1.6;
}

.secureTermsHub p {
    /* Standard font size for body paragraphs */
    font-size: 1.1rem; 
    /* Spacing below paragraphs */
    margin-bottom: 1rem; 
    /* Body text color */
    color: var(--color-secondary-dark);
    /* Enhanced line height for readability */
    line-height: 1.7; 
}

.secureTermsHub ul {
    /* Default disc list style */
    list-style: disc; 
    /* Spacing below the entire list */
    margin-bottom: 1rem; 
    /* Indentation for list items */
    padding-left: 1.5rem; 
    /* Body text color */
    color: var(--color-secondary-dark);
}

.secureTermsHub ol {
    /* Default decimal list style */
    list-style: decimal; 
    /* Spacing below the entire list */
    margin-bottom: 1rem; 
    /* Indentation for list items */
    padding-left: 1.5rem; 
    /* Body text color */
    color: var(--color-secondary-dark);
}

.secureTermsHub li {
    /* Spacing between individual list items */
    margin-bottom: 0.5rem; 
    /* Standard line height for list items */
    line-height: 1.6; 
}
