/* ==========================================================================
   C.R.E.E.D. Institute — Component Styles
   Navigation, buttons, glass panels, cards, hero, footer
   ========================================================================== */

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    background: rgba(10, 10, 30, 0.6);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--speed-medium) ease,
                box-shadow var(--speed-medium) ease;
}

.nav--scrolled {
    background: rgba(10, 10, 30, 0.85);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
}

.nav__logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav__link {
    font-family: var(--font-nav);
    font-size: var(--text-sm);
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text);
    position: relative;
    padding-block: var(--space-xs);
    transition: color var(--speed-fast) ease;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--speed-medium) var(--ease-out);
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav__link.active {
    color: var(--color-primary);
}

.nav__link.active::after {
    transform: scaleX(1);
}

.nav__link--cta {
    background: var(--color-primary);
    color: var(--color-base);
    padding: var(--space-xs) var(--space-lg);
    border-radius: 6px;
    font-weight: 700;
    transition: background var(--speed-fast) ease,
                box-shadow var(--speed-fast) ease;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    color: var(--color-base);
    background: #d4b05a;
    box-shadow: 0 0 20px rgba(201, 164, 76, 0.3);
}

.nav__menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    padding: 4px;
}

.nav__menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform var(--speed-medium) var(--ease-out),
                opacity var(--speed-fast) ease;
}

.nav__menu-btn.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav__menu-btn.is-open span:nth-child(2) {
    opacity: 0;
}

.nav__menu-btn.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons (Gold)
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-family: var(--font-nav);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    padding: var(--space-sm) var(--space-xl);
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--speed-medium) var(--ease-out);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-base);
    border-color: var(--color-primary);
}

.btn--primary:hover {
    color: var(--color-base);
    background: #d4b05a;
    box-shadow: 0 0 30px rgba(201, 164, 76, 0.35),
                0 0 60px rgba(201, 164, 76, 0.15);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn--outline:hover {
    background: var(--color-primary);
    color: var(--color-base);
    box-shadow: 0 0 30px rgba(201, 164, 76, 0.2);
    transform: translateY(-2px);
}

.btn--lg {
    font-size: var(--text-base);
    padding: var(--space-md) var(--space-2xl);
}

/* --------------------------------------------------------------------------
   Glass Panel (Gold-tinted)
   -------------------------------------------------------------------------- */
.glass-panel {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius);
}

/* --------------------------------------------------------------------------
   Card Grid (Gold hover glow)
   -------------------------------------------------------------------------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.card {
    background: var(--color-glass-bg);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius);
    padding: var(--space-2xl);
    transition: transform var(--speed-medium) var(--ease-out),
                box-shadow var(--speed-medium) var(--ease-out),
                border-color var(--speed-medium) ease;
    transform-style: preserve-3d;
    position: relative;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 40px rgba(201, 164, 76, 0.1),
                0 0 0 1px rgba(201, 164, 76, 0.15);
    border-color: rgba(201, 164, 76, 0.2);
}

.card__icon {
    font-size: var(--text-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

.card__text {
    font-size: var(--text-sm);
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Section Title
   -------------------------------------------------------------------------- */
.section__title {
    font-size: var(--text-3xl);
    text-align: center;
    margin-bottom: var(--space-3xl);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: var(--nav-height);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__title {
    font-size: var(--text-hero);
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
    min-height: 1.2em;
}

.hero__subtitle {
    font-family: var(--font-nav);
    font-size: var(--text-xl);
    font-weight: 400;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: var(--space-xl);
}

.hero__subtitle .word {
    display: inline-block;
}

.hero__subtitle .separator {
    color: var(--color-primary);
    margin-inline: var(--space-sm);
    opacity: 0.6;
}

.hero__tagline {
    font-size: var(--text-lg);
    font-weight: 400;
    color: var(--color-text-muted);
    max-width: 640px;
    margin-inline: auto;
    margin-bottom: var(--space-3xl);
    line-height: 1.8;
}

.hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   Footer (Gold accent)
   -------------------------------------------------------------------------- */
.footer {
    border-top: 1px solid var(--color-border);
    padding-block: var(--space-3xl);
}

.footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer__logo {
    font-family: var(--font-heading);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: 0.3em;
}

.footer__tagline {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
}

.footer__links {
    display: flex;
    gap: var(--space-xl);
}

.footer__links a {
    font-family: var(--font-nav);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
    transition: color var(--speed-fast) ease;
}

.footer__links a:hover {
    color: var(--color-primary);
}

.footer__copy {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    width: 100%;
    text-align: center;
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

.footer__initiative {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    text-align: center;
    margin-top: var(--space-sm);
}

.footer__initiative a {
    color: var(--color-secondary);
}

.footer__initiative a:hover {
    color: var(--color-primary);
}
