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

/* === CSS Variables === */
:root {
    --burgundy: #722F37;
    --burgundyDark: #5a252c;
    --burgundyLight: #8a3a44;
    --cream: #FDF8F4;
    --creamDark: #F5EDE6;
    --charcoal: #2D2D2D;
    --charcoalLight: #4A4A4A;
    --sage: #7A8B7A;
    --sageLight: #E8EDE8;
    --gold: #C4A962;
    --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.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.topBar a {
    color: var(--white);
    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.8rem;
}

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

/* === 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 {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logoIcon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logoIcon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logoText {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--burgundy);
}

.logoText span {
    display: block;
    font-family: 'Source Sans 3', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--charcoalLight);
    letter-spacing: 0.5px;
}

.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(--white) !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);
}

/* Mobile Menu */
.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(--white);
}

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

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

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

/* === 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;
}

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

.breadcrumb {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.breadcrumb a {
    color: var(--white);
    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;
}

.cta p {
    font-size: 1.15rem;
    opacity: 0.9;
    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(--white);
    color: var(--white);
}

.cta .btnSecondary:hover {
    background-color: var(--white);
    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;
    opacity: 0.8;
}

.footerGrid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    padding: 3rem 2rem;
}

.footerBrand p {
    font-size: 0.95rem;
    opacity: 0.8;
    line-height: 1.7;
    margin-top: 1rem;
}

.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;
}

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

.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;
    opacity: 0.7;
}

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

.footerLegal a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

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

/* === 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.75rem;
    }

    .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);
    }

    .navLinks.active {
        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;
    }

    .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.7rem;
    }

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

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