/* ============================================================
   Division 9 — Applications Portal (apps.html)
   Page-specific styles not covered by division9.css
   ============================================================ */

/* ── Back Button ── */
.back-btn {
    background: transparent;
    padding: 10px 24px;
    border: 1px solid var(--border-accent);
    color: var(--gold-primary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    justify-self: end;
    text-decoration: none;
}

.back-btn:hover {
    background: var(--gold-primary);
    color: #FFFFFF;
}

/* ── Hero Override ── */
.hero {
    min-height: 50vh;
    padding: 140px 24px 60px;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 4rem);
    margin-bottom: 20px;
}

.hero-subtitle {
    margin-bottom: 40px;
}

/* ── Apps Section ── */
.apps-section {
    padding: 40px 24px 100px;
    max-width: 1100px;
    margin: 0 auto;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.app-card {
    position: relative;
    background: var(--black-soft);
    border: 1px solid var(--border-subtle);
    padding: 40px 32px;
    text-decoration: none;
    transition: all 0.4s ease;
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeIn 0.8s ease forwards;
}

.app-card:nth-child(1) {
    animation-delay: 0.1s;
}

.app-card:nth-child(2) {
    animation-delay: 0.2s;
}

.app-card:nth-child(3) {
    animation-delay: 0.3s;
}

.app-card:nth-child(4) {
    animation-delay: 0.4s;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover::before {
    opacity: 1;
}

.app-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(13, 148, 136, 0.1);
}

.app-icon {
    width: 56px;
    height: 56px;
    background: var(--gold-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.app-icon svg {
    width: 26px;
    height: 26px;
    stroke: #FFFFFF;
    stroke-width: 1.5;
    fill: none;
}

.app-category {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(13, 148, 136, 0.08);
    font-size: 0.55rem;
    font-weight: 300;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
}

.app-title {
    font-family: 'Cormorant', serif;
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.app-description {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.7;
    margin-bottom: 24px;
    font-weight: 300;
}

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-primary);
    font-weight: 300;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: gap 0.3s ease;
}

.app-card:hover .app-link {
    gap: 14px;
}

.app-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    header {
        grid-template-columns: 1fr 1fr;
    }

    nav {
        display: none;
    }

    .logo-text,
    .logo-divider {
        display: none;
    }

    .hero {
        padding: 120px 20px 40px;
    }

    .apps-section {
        padding: 20px 16px 60px;
    }

    .apps-grid {
        grid-template-columns: 1fr;
    }
}