/* ============================================
   Maktab Al-Hayat — Base Styles
   ============================================ */

:root {
    --green-900: #0B2A20;
    --green-800: #0F3D2E;
    --green-700: #174A38;
    --gold-400:  #C9A24B;
    --gold-300:  #E0BF6F;
    --cream-100: #F5EFE0;
    --cream-60:  rgba(245, 239, 224, 0.6);
    --cream-30:  rgba(245, 239, 224, 0.3);
    --cream-10:  rgba(245, 239, 224, 0.08);
    --cream-05:  rgba(245, 239, 224, 0.04);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100%;
}

body {
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background: var(--green-900);
    color: var(--cream-100);
    line-height: 1.9;
    font-weight: 400;
    -webkit-tap-highlight-color: transparent;
    overflow-x: hidden;
    font-feature-settings: "ss01";
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

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

svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   Page Layout
   ============================================ */

.page {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    padding: 0 22px;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

/* ============================================
   Hero
   ============================================ */

.hero {
    padding: 56px 0 40px;
    text-align: center;
    animation: fadeUp 0.6s ease both;
}

.hero-small {
    padding: 40px 0 28px;
}

.hero-logo-wrap {
    position: relative;
    width: 132px;
    height: 132px;
    margin: 0 auto 26px;
}

.hero-logo-wrap::before {
    content: "";
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid var(--cream-10);
    animation: pulse 4s ease-in-out infinite;
}

.hero-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 27px;
    font-weight: 700;
    color: var(--gold-300);
    letter-spacing: -0.4px;
    line-height: 1.4;
    margin-bottom: 8px;
}

.hero-title-small {
    font-size: 22px;
    color: var(--cream-100);
}

.hero-subtitle {
    font-size: 13.5px;
    color: var(--cream-60);
    font-weight: 400;
    letter-spacing: 0.2px;
}

.hero-divider {
    width: 44px;
    height: 1px;
    background: var(--gold-400);
    margin: 30px auto 0;
    opacity: 0.55;
    position: relative;
}

.hero-divider::before,
.hero-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--gold-400);
    transform: translateY(-50%);
    opacity: 0.7;
}

.hero-divider::before {
    right: -10px;
}

.hero-divider::after {
    left: -10px;
}

/* ============================================
   Menu
   ============================================ */

.menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 24px;
}

.menu-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: var(--green-800);
    border: 1px solid var(--cream-05);
    border-radius: 16px;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
    animation: fadeUp 0.5s ease both;
}

.menu-card:nth-child(1) { animation-delay: 0.05s; }
.menu-card:nth-child(2) { animation-delay: 0.10s; }
.menu-card:nth-child(3) { animation-delay: 0.15s; }
.menu-card:nth-child(4) { animation-delay: 0.20s; }

.menu-card:not(.disabled):active {
    transform: scale(0.975);
    border-color: var(--gold-400);
    background: var(--green-700);
}

@media (hover: hover) {
    .menu-card:not(.disabled):hover {
        border-color: var(--cream-30);
        background: var(--green-700);
    }
}

.menu-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: var(--cream-05);
    color: var(--gold-300);
    padding: 9px;
}

.menu-content {
    flex: 1;
    text-align: right;
    min-width: 0;
}

.menu-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--cream-100);
    line-height: 1.6;
}

.menu-desc {
    font-size: 11.5px;
    color: var(--cream-60);
    line-height: 1.7;
    margin-top: 1px;
}

.menu-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--cream-30);
    transition: transform 0.18s ease, color 0.18s ease;
}

.menu-card:not(.disabled):active .menu-arrow {
    color: var(--gold-400);
    transform: translateX(-3px);
}

.menu-card.disabled {
    opacity: 0.45;
    pointer-events: none;
}

.menu-badge {
    font-size: 10px;
    font-weight: 500;
    padding: 3px 9px;
    border-radius: 20px;
    background: var(--cream-05);
    color: var(--cream-60);
    flex-shrink: 0;
    letter-spacing: 0.1px;
}

/* ============================================
   About
   ============================================ */

.about-body {
    padding: 4px 0 28px;
    color: var(--cream-60);
    font-size: 14px;
    line-height: 2.1;
    animation: fadeUp 0.5s ease 0.1s both;
}

.about-body p {
    margin-bottom: 16px;
}

.about-body p:last-child {
    margin-bottom: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cream-60);
    font-size: 13px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--cream-05);
    background: var(--green-800);
    transition: all 0.18s ease;
    margin-bottom: 24px;
    align-self: flex-start;
}

.back-link svg {
    width: 14px;
    height: 14px;
}

.back-link:active {
    transform: scale(0.97);
    border-color: var(--gold-400);
    color: var(--gold-300);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    margin-top: auto;
    padding: 28px 0 22px;
    text-align: center;
    font-size: 11px;
    color: var(--cream-30);
    letter-spacing: 0.2px;
}

.footer-dot {
    margin: 0 6px;
    opacity: 0.6;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.15;
        transform: scale(1.03);
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============================================
   About
   ============================================ */

.about-body {
    padding: 4px 0 28px;
    color: var(--cream-60);
    font-size: 14.5px;
    line-height: 2.15;
    animation: fadeUp 0.5s ease 0.1s both;
    text-align: right;
}

.about-body p {
    margin-bottom: 18px;
}

.about-body p:last-child {
    margin-bottom: 0;
}

.about-empty {
    color: var(--cream-30);
    font-size: 13px;
    text-align: center;
    padding: 20px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cream-60);
    font-size: 13px;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--cream-05);
    background: var(--green-800);
    transition: all 0.18s ease;
    margin-bottom: 24px;
    align-self: flex-start;
    animation: fadeUp 0.5s ease 0.2s both;
}

.back-link svg {
    width: 14px;
    height: 14px;
}

.back-link:active {
    transform: scale(0.97);
    border-color: var(--gold-400);
    color: var(--gold-300);
}