/* ============================================
   Cecilia Comfort Care — Shared Stylesheet
   camelCase convention throughout
   ============================================ */

/* === CSS Variables === */
:root {
    --burgundy: #7B1C2E;
    --burgundyDark: #5E1523;
    --burgundyLight: #962339;
    --cream: #FDF8F4;
    --creamDark: #F5EDE6;
    --charcoal: #2D2D2D;
    --charcoalLight: #4A4A4A;
    --sage: #7A8B7A;
    --sageLight: #E8EDE8;
    --gold: #C9A84C;
    --white: #FFFFFF;
}

/* === Reset & Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--charcoal);
    background-color: var(--cream);
    line-height: 1.6;
    font-size: 17px;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    line-height: 1.2;
}

/* === Top Bar === */
.topBar {
    background-color: var(--burgundy);
    color: var(--white);
    padding: 0.5rem 2rem;
    font-size: 0.95rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topBar a {
    color: var(--gold);
    text-decoration: none;
}

.topBar a:hover {
    text-decoration: underline;
}

.regulatoryBadges {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.regulatoryBadges span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.9rem;
    color: var(--gold);
}

.regulatoryBadges svg {
    width: 16px;
    height: 16px;
}

/* === Navigation === */
nav {
    background-color: var(--white);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.navContainer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.navLogo {
    height: 220px;
    width: auto;
}

/* Footer logo */
.footerLogo {
    height: 200px;
    width: auto;
}

.navLinks {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.navLinks a {
    text-decoration: none;
    color: var(--charcoal);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    position: relative;
}

.navLinks a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--burgundy);
    transition: width 0.3s ease;
}

.navLinks a:hover,
.navLinks a.active {
    color: var(--burgundy);
}

.navLinks a:hover::after,
.navLinks a.active::after {
    width: 100%;
}

.navCta {
    background-color: var(--burgundy);
    color: var(--gold) !important;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease !important;
}

.navCta::after {
    display: none !important;
}

.navCta:hover {
    background-color: var(--burgundyDark) !important;
    transform: translateY(-2px);
}

/* === Services Dropdown — CSS-only (no JavaScript) === */
.navDropdown {
    position: relative;
}

.navDropdown > a {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.navDropdown > a svg {
    transition: transform 0.3s ease;
}

.dropdownMenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    list-style: none;
    min-width: 220px;
    padding: 0.5rem 0;
    margin-top: 0.75rem;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(0,0,0,0.06);
    z-index: 1001;
}

.dropdownMenu::before {
    content: '';
    position: absolute;
    top: -0.75rem;
    left: 0;
    right: 0;
    height: 0.75rem;
}

.navDropdown:hover .dropdownMenu,
.navDropdown:focus-within .dropdownMenu {
    display: block;
}

.navDropdown:hover > a svg {
    transform: rotate(180deg);
}

.dropdownMenu li {
    padding: 0;
    border-bottom: none;
}

.dropdownMenu a {
    display: block;
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
    color: var(--charcoal);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdownMenu a::after {
    display: none;
}

.dropdownMenu a:hover,
.dropdownMenu a.active {
    background-color: var(--cream);
    color: var(--burgundy);
}

/* Mobile Menu — CSS-only toggle (no JavaScript) */
.mobileMenuCheck {
    display: none;
}

.mobileMenuBtn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobileMenuBtn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--burgundy);
    margin: 5px 0;
    border-radius: 2px;
    transition: 0.3s;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btnPrimary {
    background-color: var(--burgundy);
    color: var(--gold);
}

.btnPrimary:hover {
    background-color: var(--burgundyDark);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(123, 28, 46, 0.3);
}

.btnSecondary {
    background-color: transparent;
    color: var(--burgundy);
    border: 2px solid var(--burgundy);
}

.btnSecondary:hover {
    background-color: var(--burgundy);
    color: var(--gold);
}

/* === Page Header (inner pages) === */
.pageHeader {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundyDark) 100%);
    color: var(--white);
    padding: 4rem 2rem 3rem;
    text-align: center;
}

.pageHeader h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.pageHeader p {
    font-size: 1.15rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--gold);
    opacity: 0.85;
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* === Section Shared === */
.sectionContainer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.sectionHeader {
    text-align: center;
    margin-bottom: 3rem;
}

.sectionHeader h2 {
    font-size: 2.2rem;
    color: var(--charcoal);
    margin-bottom: 1rem;
}

.sectionHeader p {
    font-size: 1.1rem;
    color: var(--charcoalLight);
    max-width: 600px;
    margin: 0 auto;
}

/* === CTA Section === */
.cta {
    background: linear-gradient(135deg, var(--burgundy) 0%, var(--burgundyDark) 100%);
    padding: 5rem 2rem;
    text-align: center;
    color: var(--white);
}

.ctaContainer {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.cta p {
    font-size: 1.15rem;
    opacity: 0.95;
    margin-bottom: 2rem;
}

.ctaButtons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.cta .btnPrimary {
    background-color: var(--white);
    color: var(--burgundy);
}

.cta .btnPrimary:hover {
    background-color: var(--cream);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta .btnSecondary {
    border-color: var(--gold);
    color: var(--gold);
}

.cta .btnSecondary:hover {
    background-color: var(--gold);
    color: var(--burgundy);
}

.ctaPhone {
    font-size: 0.95rem;
    opacity: 0.9;
}

.ctaPhone a {
    color: var(--white);
    font-weight: 600;
    text-decoration: none;
}

.ctaPhone a:hover {
    text-decoration: underline;
}

/* === Footer === */
footer {
    background-color: var(--charcoal);
    color: var(--white);
    padding: 0;
}

.footerContainer {
    max-width: 1200px;
    margin: 0 auto;
}

.footerRegulatory {
    display: flex;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem 2rem;
    background-color: rgba(255,255,255,0.05);
    flex-wrap: wrap;
}

.footerRegulatoryItem {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--gold);
    opacity: 0.9;
}

.footerTagline {
    text-align: center;
    padding: 2rem 2rem 0;
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.footerGrid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 2.5rem 2rem 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.footerSocial {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.footerSocial a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.footerSocial a:hover {
    background-color: var(--burgundy);
    border-color: var(--burgundy);
}

.footerColumn h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
    color: var(--gold);
}

.footerColumn h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--gold);
}

.footerColumn ul {
    list-style: none;
}

.footerColumn li {
    margin-bottom: 0.75rem;
}

.footerColumn a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footerColumn a:hover {
    color: var(--white);
}

.footerContactItem {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.footerContactItem svg {
    margin-top: 3px;
    opacity: 0.7;
    flex-shrink: 0;
}

.footerContactItem a,
.footerContactItem span {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footerContactItem a:hover {
    color: var(--white);
}

.footerBottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--gold);
}

.footerLegal {
    display: flex;
    gap: 2rem;
}

.footerLegal a {
    color: var(--gold);
    text-decoration: none;
}

.footerLegal a:hover {
    text-decoration: underline;
}

/* === Animations === */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* === Responsive === */
@media (max-width: 768px) {
    .topBar {
        justify-content: center;
        text-align: center;
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .regulatoryBadges {
        display: none;
    }

    .navLinks {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1rem;
        gap: 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    }

    .mobileMenuCheck:checked ~ .navLinks {
        display: flex;
    }

    .navLinks li {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--creamDark);
    }

    .navLinks li:last-child {
        border-bottom: none;
        padding-top: 1rem;
    }

    .navCta {
        text-align: center;
        display: block;
    }

    .mobileMenuBtn {
        display: block;
    }

    /* Mobile dropdown — expanded inline */
    .navDropdown {
        position: static;
    }

    .dropdownMenu {
        display: block;
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
        min-width: auto;
        background: var(--creamDark);
    }

    .dropdownMenu::before {
        display: none;
    }

    .dropdownMenu li {
        padding: 0;
    }

    .dropdownMenu a {
        padding: 0.6rem 1rem 0.6rem 2rem;
        font-size: 0.85rem;
    }

    .navLogo {
        height: 130px;
    }

    .footerLogo {
        height: 140px;
    }

    .pageHeader h1 {
        font-size: 2rem;
    }

    .sectionHeader h2 {
        font-size: 1.8rem;
    }

    .footerGrid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footerRegulatory {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .footerBottom {
        flex-direction: column;
        text-align: center;
    }

    .footerLegal {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .cta h2 {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .topBar {
        font-size: 0.8rem;
    }

    .pageHeader {
        padding: 3rem 1rem 2rem;
    }

    .pageHeader h1 {
        font-size: 1.6rem;
    }
}