:root {
    --primary: #1b5fa5; /* Navy */
    --secondary: #76C4BA; /* Teal */
    --accent: #F2C94C; /* Yellow */
    --pink: #E91E63; /* Pink from banner wave */
    --purple: #673AB7; /* Purple from banner wave */
    --soft-bg: #f0f8f4; /* Light Logo Green */
    --white: #ffffff;
    --text: #2a2a2a;
    --light-text: #666;
    --nav-height: 80px;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--soft-bg);
    color: var(--text);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    position: relative;
    overflow-x: hidden;
}

/* SUBTLE LOGO WATERMARK */
body::before {
    content: "";
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vw;
    height: 70vw;
    background-image: url('images/carelocker_logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--primary);
}

p { margin-bottom: 1rem; }

.overline {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--secondary);
    display: block;
    margin-bottom: 1rem;
}

/* NAVIGATION */
nav {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0 6%;
    height: var(--nav-height);
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 2000;
    border-bottom: 1px solid #eee;
}

nav .logo img {
    height: 50px;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.nav-links a i.fab.fa-facebook {
    font-size: 1.4rem;
    color: var(--primary);
}

.nav-links a:hover { color: var(--secondary); }

.nav-links a.cta-nav {
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 10px 22px;
    border-radius: 5px;
}

.nav-links a.cta-nav:hover {
    background: var(--primary);
    color: white;
}

.burger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--primary);
}

/* HERO SECTION - REFINED */
.hero {
    width: 100%;
    height: auto;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    padding: 40px 0;
}

.hero-banner-container {
    max-width: 1200px;
    width: 100%;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-banner-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* SECTIONS */
.section {
    padding: 100px 6%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-center { text-align: center; max-width: 900px; margin: 0 auto; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-top: 50px;
}

.card {
    background: var(--white);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--secondary);
    opacity: 0.2;
}

.card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); 
}

.card:hover::after { opacity: 1; }

.card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1.5rem; display: block; }
.card h3 { margin-bottom: 1rem; color: var(--primary); font-size: 1.4rem; }

/* ILLUSTRATION SECTION */
.illustration-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    margin-top: 80px;
}

.illustration-img {
    position: relative;
}

.illustration-img img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: top;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
    display: block;
}

.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
}

.carousel-slide {
    display: none;
    animation: fade 0.5s ease-in-out;
}

.carousel-slide.active {
    display: block;
}

@keyframes fade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

.carousel-prev, .carousel-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3);
    border: none;
    z-index: 10;
}

.carousel-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: rgba(0,0,0,0.8);
}

.carousel-dots {
    text-align: center;
    position: absolute;
    bottom: 20px;
    width: 100%;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 5px;
    background-color: rgba(255,255,255,0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.dot.active, .dot:hover {
    background-color: white;
}

.illustration-img img:hover {
    transform: scale(1.02);
}

.illustration-content h2 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

/* MODAL (LIGHTBOX) */
.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 90%;
    max-width: 900px;
    border-radius: 10px;
    animation: zoom 0.3s ease;
}

@keyframes zoom {
    from {transform:scale(0.8); opacity: 0;}
    to {transform:scale(1); opacity: 1;}
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* FOUNDER BLOCK */
.founder-block {
    background: var(--primary);
    color: white;
    padding: 80px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
}

.founder-block blockquote {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 2rem;
    line-height: 1.2;
    color: var(--accent);
}

.founder-block img {
    width: 100%;
    border-radius: 15px;
    border: 10px solid rgba(255,255,255,0.1);
}

/* TOOLKIT & RESOURCES */
.resource-box {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #eee;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    transition: all 0.3s ease;
}

.resource-box:hover { border-color: var(--primary); transform: translateX(10px); }

.resource-info h4 { font-family: 'Montserrat', sans-serif; font-size: 1.2rem; color: var(--primary); margin-bottom: 5px; }
.resource-info p { margin: 0; font-size: 0.9rem; color: var(--light-text); }

/* FLYERS GALLERY */
#flyers {
    display: none;
}

.flyer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.flyer-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.flyer-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.flyer-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    object-position: top;
    cursor: pointer;
}

.flyer-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.flyer-info h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: none;
    letter-spacing: normal;
}

/* BUTTONS */
.expand-container {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    overflow: hidden;
    text-align: center;
}

.expand-container.expanded {
    grid-template-rows: 1fr;
    opacity: 1;
}

.expand-content {
    min-height: 0;
}

.expand-btn {
    background: none;
    border: none;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.5rem;
    margin-top: 10px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 10px auto 0 auto;
    border-radius: 50%;
}

.expand-btn:hover {
    background-color: rgba(27, 95, 165, 0.05);
}

.expand-btn i {
    transition: transform 0.3s ease;
}

.expand-btn.active i {
    transform: rotate(180deg);
}

.btn {
    display: inline-block;
    padding: 18px 36px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-primary { background: var(--primary); color: white; border: none; }
.btn-primary:hover { background: #154d86; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(27, 95, 165, 0.2); }

.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: white; }

/* FOOTER */
footer {
    padding: 100px 6% 60px 6%;
    background: var(--white);
    border-top: 1px solid #eee;
    text-align: center;
}

footer img { height: 60px; margin-bottom: 2.5rem; opacity: 0.8; }
footer p { font-size: 0.9rem; color: #999; font-weight: 500; }

/* RAINBOW ACCENT */
.rainbow-divider {
    height: 8px;
    background: linear-gradient(90deg, var(--pink), var(--purple), var(--primary), var(--secondary), var(--accent));
    width: 100%;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .illustration-block { grid-template-columns: 1fr; text-align: center; }
    .illustration-img { order: -1; }
    .founder-block { grid-template-columns: 1fr; padding: 40px; text-align: center; }
}

@media (max-width: 768px) {
    .burger { display: block; }
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        background: var(--white);
        padding: 40px;
        border-bottom: 1px solid #eee;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    }
    .nav-links.active { display: flex; }
    .nav-links a { margin: 0; font-size: 1.1rem; width: 100%; text-align: center; }
    .section { padding: 60px 6%; }
    .resource-box { flex-direction: column; text-align: center; }
    .hero { padding: 20px 0; }
    .illustration-img img { height: 400px; }
}
