/* ==========================================================================
   Elderly Care — shared stylesheet
   Designed for accessibility: larger text, strong contrast, big touch targets.
   ========================================================================== */

:root {
    --ec-primary: #1E2749;
    --ec-primary-light: #2c3a6b;
    --ec-accent: #d97706;
    --ec-bg: #f6f8fc;
    --ec-text: #1f2937;
}

/* Larger, more legible base typography for older readers */
body {
    font-size: 1.125rem;          /* ~18px */
    line-height: 1.7;
    color: var(--ec-text);
    background-color: var(--ec-bg);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto;
}

p, li, label {
    font-size: 1.0625rem;
}

/* Bigger, easier-to-hit buttons and links */
.btn {
    font-size: 1.0625rem;
    padding: 0.6rem 1.4rem;
    border-radius: 0.6rem;
    font-weight: 600;
}

/* Clear keyboard focus indicators for accessibility */
a:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible,
.carousel-control-prev:focus-visible,
.carousel-control-next:focus-visible {
    outline: 3px solid var(--ec-accent);
    outline-offset: 2px;
}

/* Skip-to-content link (visible only on keyboard focus) */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    z-index: 2000;
    background: var(--ec-primary);
    color: #fff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 0.5rem 0;
    text-decoration: none;
}
.skip-link:focus {
    left: 0;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--ec-primary) !important;
}
.navbar .nav-link {
    font-size: 1.075rem;
    font-weight: 500;
}
.navbar .nav-link.active {
    color: var(--ec-primary) !important;
    font-weight: 700;
    border-bottom: 3px solid var(--ec-accent);
}

/* Hero */
.ec-hero {
    background: linear-gradient(135deg, var(--ec-primary), var(--ec-primary-light));
    color: #fff;
    border-radius: 1rem;
    padding: 3rem 1.5rem;
}
.ec-hero .lead {
    font-size: 1.3rem;
    opacity: 0.95;
}

/* Section headings */
.section-title {
    font-weight: 700;
    color: var(--ec-primary);
}
.section-subtitle {
    color: #4b5563;
}

/* Cards lift slightly on hover for friendly interactivity */
.card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 2px 10px rgba(30, 39, 73, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(30, 39, 73, 0.15);
}

/* Feature icon circles */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: rgba(30, 39, 73, 0.08);
    color: var(--ec-primary);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

/* Carousel captions need a readable backdrop over photos */
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 0.75rem;
    padding: 1rem 1.5rem;
}
.carousel-caption h3 {
    font-weight: 700;
}

/* Footer */
.ec-footer {
    background: var(--ec-primary);
    color: #e5e7eb;
    flex-shrink: 0;
}
.ec-footer a {
    color: #fff;
    text-decoration: none;
}
.ec-footer a:hover {
    text-decoration: underline;
}
