/* ============================================================
   Floating Navbar - Sweet Valley Community Organization
   Add this as a new <link> in the <head> of every page, after
   your existing css/style.css.
   ============================================================ */

.sv-nav-wrap {
    position: relative;
    margin: 14px auto 0;
    left: 0;
    right: 0;
    z-index: 1030;
    max-width: 1240px;
    padding: 0 20px;
}

.sv-floating-navbar {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--primary-dark, #0A2B1E);
    border-radius: 26px;
    box-shadow: 0 24px 45px -14px rgba(10, 43, 30, 0.45), 0 4px 14px rgba(10, 43, 30, 0.20);
    padding: 10px 10px 10px 14px;
    min-height: 92px;
}

.sv-nav-wave {
    position: relative;
    width: 70px;
    align-self: stretch;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 20px;
    pointer-events: none;
}
.sv-nav-wave svg {
    position: absolute;
    top: -20px;
    left: -55px;
    width: 190px;
    height: calc(100% + 40px);
    pointer-events: none;
}

/* Brand */
.sv-brand {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.sv-brand:hover { text-decoration: none; }
.sv-brand img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: contain;
    flex-shrink: 0;
    background: #fff;
    border: 2px solid var(--secondary, #E0A82E);
    padding: 3px;
}
.sv-brand-text {
    font-family: 'Saira', sans-serif;
    line-height: 1.15;
}
.sv-brand-text .line1 {
    font-weight: 800;
    font-size: 24px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #ffffff;
}
.sv-brand-text .line2 {
    font-weight: 700;
    font-size: 14px;
    color: var(--secondary, #E0A82E);
    letter-spacing: 0.3px;
}

/* Center links */
.sv-nav-links {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 24px;
    margin: 0 auto;
    padding-left: 20px;
}
.sv-nav-links a, .sv-nav-links button {
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 0;
    position: relative;
    white-space: nowrap;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
}
.sv-nav-links a:hover, .sv-nav-links button:hover { color: #ffffff; }
.sv-nav-links a.active, .sv-nav-links button.active { color: var(--secondary, #E0A82E); font-weight: 600; }
.sv-nav-links a.active::after, .sv-nav-links button.active::after {
    content: '';
    position: absolute;
    left: 0; right: 0; bottom: -3px;
    height: 2px;
    background: var(--secondary, #E0A82E);
    border-radius: 2px;
}
.sv-nav-links i { font-size: 10px; margin-top: 1px; opacity: 0.7; }

/* Programs dropdown (custom, matches dark theme) */
.sv-dropdown { position: relative; }
.sv-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-dark, #0A2B1E);
    border-radius: 16px;
    box-shadow: 0 20px 40px -12px rgba(10, 43, 30, 0.5);
    padding: 10px;
    min-width: 220px;
    z-index: 20;
}
.sv-dropdown-menu.open { display: block; }
.sv-dropdown-menu a {
    display: block;
    padding: 10px 14px;
    border-radius: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    text-decoration: none;
}
.sv-dropdown-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }

/* Right side */
.sv-nav-right {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    margin-left: auto;
    padding-left: 20px;
}
.sv-nav-divider {
    width: 1px;
    align-self: stretch;
    background: rgba(255,255,255,0.14);
    margin: 6px 0;
}
.sv-cta-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--secondary, #E0A82E) 0%, #c98f1f 100%);
    color: var(--primary-dark, #0A2B1E);
    font-weight: 700;
    font-size: 14.5px;
    padding: 11px 8px 11px 22px;
    border-radius: 999px;
    box-shadow: 0 10px 20px -6px rgba(224, 168, 46, 0.55);
    white-space: nowrap;
}
.sv-cta-btn:hover { color: var(--primary-dark, #0A2B1E); }
.sv-cta-btn .icon-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(10, 43, 30, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

/* Mobile hamburger (hidden on desktop) */
.sv-burger-btn {
    display: none;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    border: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #ffffff;
    cursor: pointer;
    flex-shrink: 0;
}

/* Mobile dropdown panel */
.sv-mobile-panel {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: calc(100% + 10px);
    background: var(--primary-dark, #0A2B1E);
    border-radius: 20px;
    box-shadow: 0 24px 45px -14px rgba(10, 43, 30, 0.45), 0 4px 14px rgba(10, 43, 30, 0.20);
    padding: 14px;
    z-index: 10;
    max-height: 75vh;
    overflow-y: auto;
}
.sv-mobile-panel.open { display: block; }
.sv-mobile-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 500;
    padding: 12px 10px;
    border-radius: 10px;
}
.sv-mobile-panel a.active { color: var(--secondary, #E0A82E); font-weight: 600; background: rgba(255,255,255,0.06); }
.sv-mobile-panel a i { font-size: 11px; opacity: 0.6; }
.sv-mobile-panel .sv-cta-btn { margin-top: 8px; width: 100%; justify-content: center; }
.sv-mobile-programs-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    color: rgba(255,255,255,0.85);
    font-size: 15px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    padding: 12px 10px;
    border-radius: 10px;
    cursor: pointer;
}
.sv-mobile-programs-toggle.active { color: var(--secondary, #E0A82E); font-weight: 600; }
.sv-mobile-programs-toggle i { font-size: 11px; opacity: 0.6; transition: transform 0.2s ease; }
.sv-mobile-programs-toggle.expanded i { transform: rotate(180deg); }

.sv-mobile-sub {
    padding-left: 14px;
    display: none;
    flex-direction: column;
}
.sv-mobile-sub.open { display: flex; }
.sv-mobile-sub a { font-size: 14px; opacity: 0.85; }

/* Spacer so fixed navbar doesn't cover page content */
.sv-nav-spacer { height: 122px; }

/* ===== Responsive breakpoints ===== */
@media (max-width: 991px) {
    .sv-nav-links { display: none; }
    .sv-nav-wave { display: none; }
    .sv-burger-btn { display: flex; }
}
@media (min-width: 992px) {
    .sv-mobile-panel { display: none !important; }
}
@media (max-width: 575px) {
    .sv-floating-navbar { padding: 8px 8px 8px 10px; min-height: 76px; border-radius: 20px; }
    .sv-brand img { width: 46px; height: 46px; }
    .sv-brand-text .line1 { font-size: 18px; }
    .sv-brand-text .line2 { font-size: 12px; }
    .sv-cta-btn { padding: 9px 6px 9px 16px; font-size: 13px; }
    .sv-cta-btn .icon-circle { width: 24px; height: 24px; }
    .sv-nav-right { gap: 8px; padding-left: 8px; }
    .sv-nav-divider { display: none; }
    .sv-nav-spacer { height: 104px; }
}
@media (max-width: 380px) {
    .sv-cta-btn span.label { display: none; }
    .sv-cta-btn { padding: 10px; border-radius: 50%; }
}
