:root {
    --color-cream: #F5EFE7;
    --color-tan: #E8DDD0;
    --color-navy: #2C4A6E;
    --color-navy-dark: #1E3A5F;
    --color-blue-muted: #7B92A8;
    --color-brown: #8B6F47;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-navy-dark);
    background-color: #FAF7F2;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6, .section-title, .brand-name {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
}

/* Header/Navigation */
.bg-cream {
    background-color: var(--color-cream);
}

.navbar {
    padding: 1rem 0;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy-dark);
    line-height: 1.2;
}

.brand-tagline {
    font-size: 0.75rem;
    color: #6c757d;
}

.navbar-nav .nav-link {
    color: var(--color-navy-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-navy);
}

/* Primary Button */
.btn-primary {
    background-color: var(--color-navy);
    border-color: var(--color-navy);
    color: white;
    font-weight: 600;
}

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

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 70vh;
    background-image: url('images/Hero_image_caregiver_helping_senior_a4a2486e.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0.4), rgba(0,0,0,0.3));
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons .btn {
    padding: 0.75rem 2rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* Sections */
.section-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-navy-dark);
    margin-bottom: 1rem;
}

.bg-light-tan {
    background-color: var(--color-tan);
}

/* Quote Text */
.quote-text {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--color-navy);
    margin: 1.5rem 0;
}

/* Benefit List */
.benefit-list {
    list-style: none;
    padding: 0;
}

.benefit-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: start;
}

/* Service Cards */
.service-card {
    border: none;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* CTA Section */
.cta-section {
    background-color: var(--color-navy);
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 100%);
}

/* Forms */
.form-label {
    font-weight: 600;
    color: var(--color-navy-dark);
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 0.375rem;
    border-color: #d1c7b7;
    padding: 0.75rem;
}

.form-control:focus, .form-select:focus {
    border-color: var(--color-navy);
    box-shadow: 0 0 0 0.2rem rgba(44, 74, 110, 0.25);
}

/* Alert/Toast */
.alert {
    border-radius: 0.5rem;
    border: none;
}

.alert-success {
    background-color: #d1e7dd;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    color: #842029;
}

/* Cards */
.card {
    border-radius: 0.5rem;
    border: 1px solid #e8ddd0;
}

/* Footer */
footer a:hover {
    color: var(--color-navy) !important;
}

/* Utility */
.text-primary {
    color: var(--color-navy) !important;
}

.bg-primary {
    background-color: var(--color-navy) !important;
}

/* ============================================
   MODERN FEATURES - ANIMATIONS & INTERACTIONS
   ============================================ */

/* Scroll Fade-in Animations */
.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1040;
    background-color: var(--color-navy);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

#backToTop.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

#backToTop:hover {
    background-color: var(--color-navy-dark);
    transform: scale(1.1);
}

/* Floating Contact Button */
#floatingContact {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 1040;
    background-color: var(--color-brown);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.4s ease;
    box-shadow: 0 6px 20px rgba(139,111,71,0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

#floatingContact.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

#floatingContact:hover {
    background-color: #6d5636;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(139,111,71,0.4);
}

#floatingContact.hide-on-modal {
    opacity: 0;
    visibility: hidden;
}

/* Hide floating button on small screens to avoid obscuring CTAs */
@media (max-width: 575px) {
    #floatingContact {
        display: none;
    }
}

/* Toast Container */
#toastContainer {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1050;
    max-width: 350px;
}

.toast {
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.toast.bg-success {
    background-color: #0f5132 !important;
}

.toast.bg-danger {
    background-color: #842029 !important;
}

.toast.bg-info {
    background-color: var(--color-blue-muted) !important;
}

.toast.bg-warning {
    background-color: #997404 !important;
}

/* Contact Modal Enhancements */
#contactModal .modal-header {
    background-color: var(--color-cream);
    border-bottom: 2px solid var(--color-tan);
}

#contactModal .modal-title {
    color: var(--color-navy-dark);
}

#contactModal .btn-close:focus {
    box-shadow: 0 0 0 0.2rem rgba(44, 74, 110, 0.25);
}

/* Form Field State Indicators */
.form-control.is-valid {
    border-color: #198754;
    background-image: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: none;
}

.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #dc3545;
}

.valid-feedback {
    display: block;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #198754;
}

/* Privacy Notice */
.privacy-notice {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e8ddd0;
}

/* Modal Form Auto-save Indicator */
.draft-indicator {
    font-size: 0.75rem;
    color: var(--color-blue-muted);
    font-style: italic;
}

/* Smooth page transitions */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Accessibility - Focus visible */
:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--color-navy);
    outline-offset: 3px;
}
