/* --------------------------------------------------
   BRAND COLORS
-------------------------------------------------- */
:root {
    --primary: #2F4F3E;
    --primary-dark: #223A2D;
    --accent: #C9A45C;
    --accent-light: #E8D7A8;

    --bg: #F8FAF9;
    --card-bg: rgba(255,255,255,0.75);
    --gradient: radial-gradient(circle at top left, #E9F0EB, #FFFFFF 60%);

    --text: #1F1F1F;
}

/* --------------------------------------------------
   GLOBAL
-------------------------------------------------- */

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

section {
    max-width: 1100px;
    margin: auto;
    padding: 80px 20px;
}

/* --------------------------------------------------
   REVEAL ANIMATION
-------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

header {
	background: var(--primary);
    color: white;
    padding: 60px;
    text-align: center;
    border-radius: 0 0 40px 40px;
	
    
}

@media (max-width: 820px) {
    header {
        background: var(--primary);
        border-radius: 0 0 40px 40px; /* mobile rounded corners */
        padding: 30px;
        box-shadow: none; /* optional: cleaner mobile look */
        backdrop-filter: none; /* remove glass blur on mobile */
    }

    header img {
        height: 100px; /* slightly smaller for mobile */
    }
	
	.hero-cta-row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Client Portal spans full width */
    .hero-cta-row .cta-primary {
        flex: 0 0 50%;
        text-align: center;
    }

    /* Call + Email each take half width */
    .hero-cta-row .cta-secondary {
        flex: 0 0 50%;
        text-align: center;
    }

}


nav a {
    margin-left: 24px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 600;
    transition: 0.2s ease;
}

nav a:hover {
    color: var(--accent);
}

/* --------------------------------------------------
   HERO
-------------------------------------------------- */
.hero {
    padding: 20px;
    text-align: center;
    background: var(--gradient);
    border-radius: 0 0 40px 40px;
}

.hero h2 {
    font-size: 2.6rem;
    color: var(--primary);
}

.hero p {
    font-size: 1.3rem;
    max-width: 600px;
    margin: 0 auto 40px;
    opacity: 0.85;
}

/* --------------------------------------------------
   BUTTONS
-------------------------------------------------- */
.cta-primary,
.cta-secondary {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    margin: 10px;
    transition: 0.25s ease;
}

.cta-primary {
    background: var(--primary);
    color: white;
}

.cta-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.cta-secondary {
    background: var(--accent-light);
    color: var(--primary);
}

.cta-secondary:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-3px);
}

/* --------------------------------------------------
   CARDS
-------------------------------------------------- */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(14px);
    padding: 40px;
    border-radius: 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    margin-bottom: 40px;
    transition: 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
}

/* --------------------------------------------------
   FOOTER
-------------------------------------------------- */
footer {
    background: var(--primary);
    color: white;
    padding: 60px;
    text-align: center;
    margin-top: 80px;
    border-radius: 40px 40px 0 0;
}

footer img {
    height: 100px;
    margin-bottom: 20px;
}

footer a {
    color: var(--accent-light);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 500;
}

footer a:hover {
    color: white;
}

footer.footer-centered {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;

}

footer.footer-centered img {
    max-width: 1d40px;
    height: auto;
}



footer.footer-centered a:hover {
    text-decoration: underline;
}

nav {
    transition: max-height 0.3s ease;
}

@media (max-width: 820px) {
    nav {
        position: absolute;
        top: 100%;
        right: 0;
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(14px);
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        border-bottom: 1px solid #e5e5e5;
    }

    nav a {
        margin: 18px 0;
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }
}

nav.open {
    max-height: 400px;
}

/* --------------------------------------------------
   MODALS
-------------------------------------------------- */
.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    z-index: 9999;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #fff;
    padding: 2rem;
    width: 90%;
    max-width: 600px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    position: relative;
    transform: scale(0.92);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.modal-backdrop.active .modal {
    transform: scale(1);
    opacity: 1;
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #665;
}

.counselor-img {
    width: 100%;
    height: auto;
    margin-top: 1rem;
    border-radius: 10px;
}

/* Mobile modal adjustments */
@media (max-width: 600px) {
    .modal {
        padding: 1.2rem;
        max-height: 85vh;
        overflow-y: auto;
    }

    .counselor-img {
        max-height: 220px;
        object-fit: cover;
    }
}