/* ==========================================================================
   CANDRALOKA PUSTAKA — SMA Negeri 1 Ngraho
   Landing Page — Phase 1
   Arsitektur 2-Layer
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reset & Global
   -------------------------------------------------------------------------- */

html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans', 'Liberation Sans', Arial, sans-serif;
    background-color: var(--bs-light, #f8f9fa);
    color: var(--bs-body-color, #212529);
}

/* --------------------------------------------------------------------------
   3. Main Content
   -------------------------------------------------------------------------- */

/* [THECHNOLOGY-MOD] : align-items & padding dihapus — redundant setelah .hero full 100dvh, .hero-content handle centering sendiri */
.main-content {
    flex: 1;
    display: flex;
}

/* --------------------------------------------------------------------------
   4. Layer Section — Shared
   -------------------------------------------------------------------------- */

.layer-section {
    width: 100%;
}

.welcome-text {
    text-align: center;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bs-body-color, #212529);
    margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   5. Layer 1 — Visitor Required
   -------------------------------------------------------------------------- */

/* [THECHNOLOGY-MOD] : rule tombol visitor & subteks welcome dihapus — dead code,
   tidak ada di markup manapun, Layer 1 pakai .hero-btn (temuan QC 2026-07-16) */

/* --------------------------------------------------------------------------
   6. Layer 2 — Menu Card
   -------------------------------------------------------------------------- */

.menu-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 200ms ease-in-out, box-shadow 200ms ease-in-out;
}

.menu-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.menu-card .card-body {
    padding: 1.75rem 1.5rem;
}

/* --------------------------------------------------------------------------
    7. Card Icon
    -------------------------------------------------------------------------- */

.card-icon {
    font-size: 2.5rem;
    color: var(--bs-primary, #0d6efd);
    margin-bottom: 0.75rem;
}

/* [THECHNOLOGY-MOD] : icon card diperbesar dari 64px, permintaan user */
.card-icon-img {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

/* --------------------------------------------------------------------------
   8. Card Typography
   -------------------------------------------------------------------------- */

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bs-body-color, #212529);
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 0.875rem;
    color: var(--bs-secondary-color, #6c757d);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

/* --------------------------------------------------------------------------
   9. Card Button
   -------------------------------------------------------------------------- */

.menu-card .btn {
    min-height: 44px;
    min-width: 44px;
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    transition: background-color 150ms ease-in-out, border-color 150ms ease-in-out,
                transform 150ms ease-in-out;
}

.menu-card .btn:active {
    transform: scale(0.98);
}

.menu-card .btn .bi {
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------
   10. Focus Visible (Accessibility)
   -------------------------------------------------------------------------- */

.menu-card:focus-within {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: 2px;
}

.menu-card .btn:focus-visible {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: 2px;
    box-shadow: none;
}

.menu-card a:focus-visible {
    outline: 2px solid var(--bs-primary, #0d6efd);
    outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */

/* [THECHNOLOGY-MOD] : Strip properties removed — footer now fixed transparent overlay (landing-hero.css)
   -------------------------------------------------------------------------- */

.site-footer {
    flex-shrink: 0;
    font-size: 0.8125rem;
    color: var(--bs-secondary-color, #6c757d);
}

/* --------------------------------------------------------------------------
   12. Responsive — Tablet (768px – 991px)
   -------------------------------------------------------------------------- */

@media (max-width: 991.98px) {
    .menu-card .card-body {
        padding: 1.5rem 1.25rem;
    }

    .card-icon {
        font-size: 2.25rem;
    }

    .card-title {
        font-size: 1.125rem;
    }

    /* [THECHNOLOGY-MOD] : icon card responsive — 88px di tablet */
    .card-icon-img {
        width: 88px;
        height: 88px;
    }
}

/* --------------------------------------------------------------------------
   13. Responsive — Smartphone (< 768px)
   -------------------------------------------------------------------------- */

@media (max-width: 767.98px) {
    .main-content {
        padding-top: 1.25rem;
        padding-bottom: 1.25rem;
    }

    .welcome-text {
        font-size: 1.125rem;
    }

    .menu-card .card-body {
        padding: 1.25rem 1rem;
    }

    .card-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    /* [THECHNOLOGY-MOD] : icon card responsive — 80px di mobile */
    .card-icon-img {
        width: 80px;
        height: 80px;
    }

    .card-title {
        font-size: 1.0625rem;
    }

    .card-text {
        font-size: 0.8125rem;
    }

    .menu-card .btn {
        font-size: 0.875rem;
        padding: 0.5rem 1.25rem;
    }

    .site-footer {
        padding: 0.75rem 0;
        font-size: 0.75rem;
    }
}

/* --------------------------------------------------------------------------
   14. Reduced Motion (Accessibility)
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .menu-card,
    .menu-card .btn,
    .hero-btn {
        transition: none;
    }
}
