/* ==========================================================================
   Site Chrome: Header, Hero, Sub-nav, Footer
   Mirrors the design system used on the main IMKT static site
   (see css/indexmain.css on the marketing site) so the Directory app
   feels like one continuous site rather than a separate tool.
   ========================================================================== */

:root {
    --imkt-purple-dark: #41204e;
    --imkt-purple: #7e3e97;
    --imkt-purple-light: #9869ab;
    --imkt-blue: #004a99;
}

/* Match the marketing site's font stack across the app */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 0;
}

/* main.css's .container relies on body's 40px margin for its side gutters.
   Since this stylesheet removes that margin so the header/hero/footer can
   run full-bleed, restore the equivalent gutter here as real padding. */
.container {
    padding-left: 20px;
    padding-right: 20px;
}

/* Thin utility bar for account actions (login/logout/manager links).
   Sits above the main header, out of the way of the primary nav. */
.utility-bar {
    background-color: #f4f4f4;
    border-bottom: 1px solid #eaeaea;
    font-size: 0.85rem;
    color: #666;
}

.utility-bar .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8px 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.utility-bar a {
    color: #555;
    font-weight: 600;
}

.utility-bar a:hover {
    color: var(--imkt-purple);
}

.utility-bar .divider {
    color: #ccc;
}

.utility-bar .admin-link {
    color: #d63384;
}

/* Header & Navigation (mirrors .header / .top-bar / .nav-menu on the main site) */
.site-header {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-header .top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.site-header .logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    color: #111;
}

.site-header .nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.site-header .nav-menu a {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
    text-decoration: none;
}

.site-header .nav-menu a:hover,
.site-header .nav-menu li.active a {
    color: #000;
    border-bottom: 2px solid #000;
    padding-bottom: 4px;
}

/* Hero / Banner Area for page titles like "Verified Organization Directory",
   "Mathematics by Classification", "Mathematics by Topics" */
.hero {
    background: linear-gradient(135deg, var(--imkt-purple-dark), var(--imkt-purple), var(--imkt-purple-light));
    color: #fff;
    text-align: center;
    padding: 40px 20px;
    position: relative;
}

.hero .hero-logo {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 300px;
    height: auto;
}

@media (max-width: 900px) {
    .hero .hero-logo {
        display: none;
    }
}

.hero h1 {
    font-size: 2.75rem;
    margin-bottom: 12px;
    font-weight: 800;
    color: #fff;
}

.hero p.hero-subtitle {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.92;
    color: #fff;
}

.hero .hero-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.hero .hero-actions .button {
    display: inline-block;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    color: #fff;
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: background-color 0.2s ease;
}

.hero .hero-actions .button:hover {
    background-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

/* Sub-navigation tabs: Directory / Classifications / Topics */
.subnav {
    background-color: #fff;
    border-bottom: 1px solid #eaeaea;
}

.subnav .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.subnav a {
    display: inline-block;
    padding: 14px 4px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #555;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

.subnav a:hover {
    color: var(--imkt-purple);
}

.subnav a.active {
    color: var(--imkt-purple-dark);
    border-bottom-color: var(--imkt-purple);
}

/* Footer (mirrors .footer / .copyright on the main site) */
.site-footer {
    background-color: #0b0b0b;
    color: #bab9b9;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid #1a1a1a;
    margin-top: 50px;
}

.site-footer .copyright {
    font-size: 0.9rem;
    color: #bab9b9;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .site-header .top-bar {
        flex-direction: column;
        gap: 12px;
    }

    .utility-bar .container {
        justify-content: center;
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .subnav .container {
        gap: 18px;
    }
}
