/* =============================================
   APP.CSS - PRODUCTION READY
   ============================================= */

/* ================= ROOT VARIABLES ================= */
:root {
    --primary: #1d3557;
    --primary-light: #457b9d;
    --accent: #e63946;
    --text: #1a1a1a;
    --muted: #aab8c5;
    --header-height: 82px;
}

/* ================= GLOBAL RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Poppins', sans-serif;
    background: #f4f6f8;
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

/* ================= HEADER SECTION ================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--primary);
    border-bottom: 3px solid var(--accent);
    z-index: 3000;
}

.header-inner {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
    gap: 20px;
}

/* Logo */
.logo img {
    height: 56px;
}

/* Desktop Nav */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    width: 100%;
    max-width: 720px;
    justify-content: space-around;
    align-items: center;
}

.nav-menu a {
    color: #fff;
    font-size: 15.5px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--accent);
}

.nav-menu a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Actions */
.actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

#hamburger {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
}

#hamburger:hover {
    background: rgba(255,255,255,0.15);
}

/* ================= MOBILE MENU ================= */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--primary);
    z-index: 5000;
    padding: 25px 20px;
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    box-shadow: 5px 0 25px rgba(0,0,0,0.35);
}

.mobile-menu.open { transform: translateX(0); }

.mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.mobile-header span {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
}

#closeMenu {
    background: none;
    border: none;
    color: #fff;
    font-size: 34px;
    cursor: pointer;
    padding: 5px 12px;
    border-radius: 50%;
}

#closeMenu:hover {
    background: rgba(255,255,255,0.15);
    transform: rotate(90deg);
}

.mobile-menu a {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    padding: 14px 12px;
    border-radius: 10px;
    margin: 6px 0;
}

.mobile-menu a:hover {
    background: rgba(255,255,255,0.12);
}

.mobile-actions .btn {
    width: 100%;
    padding: 14px;
    font-size: 1.05rem;
}

/* Overlay */
#overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    z-index: 4000;
}
#overlay.show { display: block; }

/* ================= BUTTONS ================= */
.btn, .g-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 20px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn.primary, .g-btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn.outline, .g-btn-outline {
    background: var(--primary-light);
    color: #fff;
}

.btn:hover, .g-btn:hover {
    transform: translateY(-2px);
}

/* ================= FOOTER ================= */
.footer {
    background: var(--primary);
    color: #fff;
    padding: 60px 0 30px;
}

.footer .container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.partner-strip {
    text-align: center;
    font-size: 15px;
    color: var(--muted);
    padding: 25px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
}

.footer-grid h4 {
    margin-bottom: 18px;
    font-size: 16px;
    color: #fff;
}

.footer-grid a,
.footer-grid p {
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
    font-size: 14.5px;
}

.footer-grid a:hover {
    color: var(--accent);
}

.newsletter input {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 10px;
    margin-bottom: 10px;
}

.newsletter button {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 600;
}

.newsletter button:hover {
    background: #d12e3a;
}

.footer-divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 30px 0;
}

.footer-bottom {
    text-align: center;
    color: var(--muted);
    font-size: 14px;
    margin-top: 20px;
}

/* ================= LEADERSHIP VIEW ALL BUTTON - CENTERED ================= */
.home-view-all {
    text-align: center;
    margin: 40px 0 20px;
}

.home-view-all .g-btn {
    min-width: 220px;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    #hamburger { display: block; }
    
    .logo img { height: 62px; }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) {
    .mobile-menu, #overlay {
        display: none !important;
    }
}

/* ================= USER DROPDOWN ================= */

.dropdown {
    position: relative;
}

#userBtn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    min-width: 140px;
}

#userBtn:hover {
    opacity: 0.95;
}

.dropdown-menu {
    position: absolute;
    top: 55px;
    right: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    padding: 10px;
    display: none;
    z-index: 9999;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a,
.dropdown-menu button {
    width: 100%;
    display: block;
    text-align: left;
    padding: 12px 14px;
    border: none;
    background: none;
    color: var(--text);
    font-size: 14px;
    border-radius: 10px;
    text-decoration: none;
    cursor: pointer;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: #f3f5f7;
}
/* ================= USER DROPDOWN ================= */

.dropdown {
    position: relative;
}

#userBtn {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 11px 18px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
    min-width: 160px;
}

#userBtn:hover {
    transform: translateY(-2px);
    background: #d92f3d;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 220px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
    padding: 10px;
    display: none;
    z-index: 9999;
    overflow: hidden;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a,
.dropdown-menu button {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 13px 14px;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dropdown-menu a:hover,
.dropdown-menu button:hover {
    background: #f4f6f8;
}

.dropdown-menu form {
    margin: 0;
}