/* ===== Variables ===== */
:root {
    --green-900: #0a2e16;
    --green-800: #0f3d1f;
    --green-700: #145228;
    --green-600: #1a6b34;
    --green-500: #22884a;
    --gold: #c9a227;
    --gold-light: #dbb940;
    --gold-dark: #a3841c;
    --cream: #faf8f4;
    --cream-dark: #f2efe8;
    --white: #ffffff;
    --gray-100: #f7f7f7;
    --gray-200: #eeeeee;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
    --radius: 16px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1);
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--cream);
    color: var(--gray-900);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 80px;
}

body.rtl {
    direction: rtl;
    font-family: 'Cairo', -apple-system, sans-serif;
}

.container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    display: block;
    max-width: 100%;
}

/* ===== Language Toggle ===== */
.lang-toggle {
    position: fixed;
    top: 14px;
    right: 14px;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid var(--gold);
    color: var(--gold-dark);
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    transition: all 0.2s;
}

.lang-toggle:active {
    transform: scale(0.94);
}

body.rtl .lang-toggle {
    right: auto;
    left: 14px;
}

/* ===== Hero ===== */
.hero {
    position: relative;
    padding: 80px 20px 50px;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(170deg, var(--green-900) 0%, var(--green-700) 100%);
    z-index: 0;
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(201,162,39,0.08) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

/* ===== Profile Image ===== */
.profile-wrapper {
    width: 130px;
    height: 130px;
    margin: 0 auto 24px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light), var(--gold));
    box-shadow: 0 8px 32px rgba(201,162,39,0.25);
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: top center;
    border: 3px solid var(--green-900);
}

/* ===== Hero Typography ===== */
.hero-content h1 {
    font-family: 'Noto Serif Display', Georgia, serif;
    font-size: 1.65rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

body.rtl .hero-content h1 {
    font-family: 'Cairo', serif;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0;
}

.subtitle {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
    font-weight: 400;
    margin-bottom: 3px;
}

.brand-name {
    font-family: 'Cairo', serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--gold);
    margin-top: 14px;
    letter-spacing: 1px;
}

/* ===== Hero Buttons ===== */
.hero-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 26px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s;
}

.btn:active {
    transform: scale(0.95);
}

.btn-gold {
    background: var(--gold);
    color: var(--white);
    box-shadow: 0 4px 16px rgba(201,162,39,0.4);
}

.btn-green {
    background: #25D366;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(37,211,102,0.35);
}

.btn i {
    font-size: 1rem;
}

/* ===== Sections ===== */
.section {
    padding: 48px 0;
}

.section-heading {
    font-family: 'Noto Serif Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--green-800);
    text-align: center;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 14px;
}

body.rtl .section-heading {
    font-family: 'Cairo', serif;
    font-weight: 700;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--gold);
    border-radius: 3px;
}

.section-heading.light {
    color: var(--white);
}

.sub-heading {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 28px 0 14px;
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--cream);
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    transition: all 0.15s;
    min-height: 62px;
}

.contact-row:active {
    transform: scale(0.98);
    background: var(--gray-100);
}

.contact-row-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
}

.contact-row-icon.green {
    background: #dcfce7;
    color: #16a34a;
}

.contact-row-icon.orange {
    background: #fff7ed;
    color: #ea580c;
}

.contact-row-icon.blue {
    background: #dbeafe;
    color: #2563eb;
}

.contact-row-text {
    flex: 1;
    min-width: 0;
}

.contact-row-text small {
    display: block;
    font-size: 0.7rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 500;
    margin-bottom: 1px;
}

.contact-row-text strong {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--gray-900);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contact-chevron {
    color: var(--gray-200);
    font-size: 12px;
    flex-shrink: 0;
}

body.rtl .contact-chevron {
    transform: rotate(180deg);
}

/* ===== Messenger Grid ===== */
.messenger-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.messenger-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--white);
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.15s;
}

.messenger-card:active {
    transform: scale(0.95);
}

.messenger-card i {
    font-size: 1.2rem;
}

.messenger-card.whatsapp { background: #25D366; }
.messenger-card.messenger { background: #0084FF; }
.messenger-card.telegram { background: #229ED9; }
.messenger-card.viber { background: #7360f2; }

/* ===== About Section ===== */
.about-section {
    background: var(--cream-dark);
}

.about-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-card {
    display: flex;
    gap: 14px;
    padding: 18px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.about-card-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--green-700), var(--green-600));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--white);
    font-size: 17px;
}

.about-card-body {
    flex: 1;
    min-width: 0;
}

.about-card-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--green-800);
    margin-bottom: 4px;
}

.about-card-body p {
    font-size: 0.8rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ===== Party Section ===== */
.party-section {
    background: linear-gradient(170deg, var(--green-900), var(--green-700));
    text-align: center;
}

.party-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
}

.badge i {
    color: var(--gold);
    font-size: 1rem;
}

.party-text {
    color: rgba(255,255,255,0.8);
    font-size: 0.88rem;
    line-height: 1.8;
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--gold);
    text-align: left;
}

body.rtl .party-text {
    text-align: right;
    border-left: none;
    border-right: 3px solid var(--gold);
}

/* ===== Footer ===== */
.footer {
    background: var(--green-900);
    padding: 28px 0;
    text-align: center;
}

.footer-brand {
    font-family: 'Cairo', serif;
    font-size: 1.3rem;
    color: var(--gold);
    font-weight: 800;
    margin-bottom: 6px;
}

.footer p {
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
}

/* ===== Bottom Bar (Mobile) ===== */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-around;
    padding: 6px 0;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
}

.bottom-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: var(--gray-500);
    font-size: 0.6rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 10px;
    transition: all 0.15s;
}

.bottom-item i {
    font-size: 1.15rem;
    color: var(--green-700);
}

.bottom-item.wa i {
    color: #25D366;
}

.bottom-item:active {
    background: var(--cream-dark);
    transform: scale(0.9);
}

/* ===== Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.fade-up.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Desktop (768px+) ===== */
@media (min-width: 768px) {
    body {
        padding-bottom: 0;
    }

    .bottom-bar {
        display: none;
    }

    .container {
        max-width: 800px;
        padding: 0 32px;
    }

    .hero {
        padding: 120px 32px 80px;
    }

    .profile-wrapper {
        width: 170px;
        height: 170px;
        margin-bottom: 30px;
    }

    .hero-content h1 {
        font-size: 2.6rem;
    }

    body.rtl .hero-content h1 {
        font-size: 2.8rem;
    }

    .subtitle {
        font-size: 0.95rem;
    }

    .brand-name {
        font-size: 1.6rem;
    }

    .btn {
        padding: 15px 30px;
        font-size: 0.95rem;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading {
        font-size: 2rem;
        margin-bottom: 36px;
    }

    .contact-list {
        flex-direction: row;
        gap: 14px;
    }

    .contact-row {
        flex: 1;
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
        gap: 10px;
    }

    .contact-row-text {
        text-align: center;
    }

    .contact-chevron {
        display: none;
    }

    .messenger-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
        max-width: 520px;
        margin: 0 auto;
    }

    .messenger-card {
        padding: 18px 12px;
        border-radius: var(--radius);
    }

    .messenger-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    }

    .about-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }

    .about-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
        gap: 12px;
    }

    .about-card-icon {
        margin: 0 auto;
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .about-card:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-lg);
    }

    .contact-row:hover {
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
        border-color: var(--gold);
    }

    .party-text {
        padding: 28px;
        font-size: 0.95rem;
    }

    .lang-toggle:hover {
        background: var(--gold);
        color: var(--white);
        border-color: var(--gold);
    }
}

/* ===== Large Desktop ===== */
@media (min-width: 1024px) {
    .container {
        max-width: 960px;
    }

    .hero {
        padding: 140px 40px 100px;
    }
}

/* ===== Tiny phones ===== */
@media (max-width: 350px) {
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        justify-content: center;
    }

    .contact-row-text strong {
        font-size: 0.78rem;
    }
}
