/* --- 1. THE ROOT CONTROL CENTER --- */
:root {
    --brand-teal: #41A7AE;       /* Background */
    --pure-white: #FFFFFF;       /* Text & Secondary Button */
    --accent-color: #FF7F50;     /* Primary Action (Coral) */
    --accent-hover: #E66E45;
    --dark-teal: #33868B;
    
    --heading-font: 'Montserrat', sans-serif;
    --body-font: 'Helvetica Neue', Arial, sans-serif;
    
    --spacing-lg: 5rem;
    --spacing-md: 2rem;
    --border-radius: 1rem;
    --pill-radius: 3rem;
    --transition: 0.3s ease;
}

/* --- 2. RESPONSIVE SCALING --- */
html {
    font-size: 100%; /* 1rem = 16px */
    scroll-behavior: smooth;
}

@media (max-width: 768px) {
    html {
        font-size: 92%; /* Automatically shrinks site for mobile */
    }
}

/* --- 3. CORE STYLES --- */
body {
    margin: 0;
    font-family: var(--body-font);
    background-color: var(--brand-teal);
    color: var(--pure-white);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: var(--heading-font);
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.text-center { text-align: center; }

/* --- 4. HEADER & NAV --- */
header {
    background: var(--brand-teal);
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 0.06rem solid rgba(255,255,255,0.2);
}

.logo-text {
    font-weight: 800;
    font-size: 1.4rem;
}

nav a {
    text-decoration: none;
    color: var(--pure-white);
    margin: 0 1rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* --- 5. BUTTONS --- */
.btn-primary {
    background-color: var(--accent-color);
    color: var(--pure-white) !important;
    padding: 0.8rem 2rem;
    border-radius: var(--pill-radius);
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    transition: var(--transition);
    display: inline-block;
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

/* --- 6. SECTIONS & LAYOUT --- */
/*---.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: var(--brand-teal);
    border-bottom: 0.1rem solid rgba(255,255,255,0.2);
}--- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    background-color: var(--brand-teal); /* Fallback color while images load */
    border-bottom: 0.1rem solid rgba(255,255,255,0.2);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
    touch-action: pan-y; /* Swipe support */
    user-select: none;
    transition: filter 0.3s ease;
}

.slider-container:hover {
    filter: brightness(0.9); /* Hover-to-pause visual feedback */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Controlled by JavaScript */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

/* ---.slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}--- */
.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Changed from 'contain' to fill the slider area better */
}

/* --- UPDATED HERO SLIDER CONTROLS --- */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 1.2rem;
    cursor: pointer;
    font-size: 1.5rem;
    border-radius: 50%;
    z-index: 30; /* Stays above images */
    transition: background 0.3s;
}

.prev:hover, .next:hover {
    background: var(--accent-color);
}

.next { right: 20px; }
.prev { left: 20px; }

#pause-btn {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    border-radius: var(--pill-radius);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.8rem;
    transition: background 0.3s;
}

#pause-btn.paused {
    background: #ff4d4d; /* Red when manual pause is active */
}

.section {
    padding: var(--spacing-lg) 10%;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    gap: 2.5rem;
    margin-top: 3rem; /* Responsive layout */
}

/* --- 7. COMPONENTS --- */
.card {
    border: 0.1rem solid rgba(255,255,255,0.3);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    text-align: center;
}

.icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1); /* Turns emojis white */
}

.medicare-box {
    background: rgba(255,255,255,0.1);
    border: 0.2rem dashed var(--pure-white);
    padding: 3.5rem 2rem;
    border-radius: 1.5rem;
    text-align: center;
}

.location-item {
    border-left: 0.3rem solid var(--pure-white);
    padding-left: 1.5rem;
}

footer {
    padding: 3rem;
    text-align: center;
    border-top: 0.06rem solid rgba(255,255,255,0.2);
    font-size: 0.8rem;
    opacity: 0.8;
}

/* --- 8. MOBILE FIXES --- */
@media (max-width: 768px) {
    .hero-slider { height: 300px; } /* */
    nav { display: none; }
    .section { padding: 3rem 5