/* =========================================================
   HOME PAGE ONLY — mobile first
   عکس‌ها از static/menu/img/home/ خوانده می‌شوند.
   ========================================================= */

:root {
    --hp-green: #173b2a;
    --hp-green-2: #245238;
    --hp-gold: #d8b767;
    --hp-gold-d: #a17b2f;
    --hp-cream: #fffdf8;
    --hp-ink: #26352b;
}

body:has(.hp) { background: var(--hp-cream); }

/* هدر خالی پایه در صفحه اصلی لازم نیست */
body:has(.hp) header { display: none; }
body:has(.hp) footer { margin-top: 0; }

.hp { overflow-x: hidden; font-family: "Vazirmatn", sans-serif; color: var(--hp-ink); }

.hp h1, .hp h2 { font-family: "Lalezar", "Vazirmatn", sans-serif; font-weight: 400; margin: 0; }
.hp p { margin: 0; }

.hp-eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--hp-gold);
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 4px;
    direction: ltr;
}
.hp-eyebrow-dark { color: var(--hp-gold-d); }

/* ---------- دکمه‌ها ---------- */
.hp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 26px;
    border: 1.5px solid transparent;
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, background .2s ease;
}
.hp-btn:active { transform: scale(.97); }
.hp-btn-gold { background: var(--hp-gold); color: var(--hp-green); }
.hp-btn-gold:hover { background: #e6c97f; }
.hp-btn-ghost { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.85); color: #fff; }

.hp-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- HERO ---------- */
.hp-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75vh;
    min-height: 75svh;
    padding: 70px 22px 90px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(10,28,19,.10) 0%, rgba(10,28,19,.04) 38%, rgba(10,28,19,.62) 100%),
        url("../img/home/hero.jpg") center / cover no-repeat,
        radial-gradient(circle at 30% 20%, #2f6a49, var(--hp-green) 70%);
}
.hp-hero h1 { font-size: clamp(54px, 17vw, 96px); line-height: 1.15; margin-bottom: 14px; }
.hp-hero p { max-width: 340px; margin: 0 auto 28px; font-size: 15px; line-height: 2; color: #efe9da; }
.hp-hero-inner { width: 100%; max-width: 520px; }

.hp-scroll {
    position: absolute;
    bottom: 22px;
    right: 50%;
    transform: translateX(50%);
    color: #fff;
    font-size: 28px;
    text-decoration: none;
    animation: hp-bounce 1.8s infinite;
}
@keyframes hp-bounce { 50% { transform: translate(50%, 6px); } }

/* ---------- QUICK TILES ---------- */
.hp-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    max-width: 520px;
    margin: -32px auto 0;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.hp-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 0;
    padding: 7px 4px 9px;
    border: 1px solid #ece4d3;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 5px 15px rgba(23,59,42,.10);
    color: var(--hp-ink);
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
}

.hp-tile-icon {
    font-size: 18px;
    color: var(--hp-gold-d);
    line-height: 1;
    margin-bottom: 1px;
}

.hp-tile strong {
    font-size: 12px;
    line-height: 1.2;
}

.hp-tile small {
    font-size: 9px;
    line-height: 1.2;
    color: #8a8171;
}
/* ---------- ABOUT ---------- */
.hp-about {
    max-width: 960px;
    margin: 0 auto;
    padding: 56px 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.hp-about-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 26px;
    box-shadow: 0 14px 34px rgba(23,59,42,.18);
    background:
        url("../img/home/about.jpg") center / cover no-repeat,
        linear-gradient(135deg, #e9dfc7, #cdb98a);
}
.hp-about-text h2 { font-size: 34px; line-height: 1.5; color: var(--hp-green); margin-bottom: 12px; }
.hp-about-text p { font-size: 14px; line-height: 2.1; color: #5d5646; }
.hp-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--hp-gold-d);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

/* ---------- GALLERY ---------- */
.hp-gallery { padding: 34px 0 20px; }
.hp-section-head { padding: 0 18px 14px; max-width: 960px; margin: 0 auto; }
.hp-section-head h2 { font-size: 30px; color: var(--hp-green); }

.hp-gallery-track {
    display: flex;
    gap: 12px;
    padding: 4px 18px 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.hp-gallery-track::-webkit-scrollbar { display: none; }

.hp-shot {
    flex: 0 0 74%;
    max-width: 320px;
    aspect-ratio: 4 / 5;
    margin: 0;
    border-radius: 22px;
    overflow: hidden;
    background: #e9dfc7;
    scroll-snap-align: center;
    box-shadow: 0 8px 22px rgba(0,0,0,.12);
}
.hp-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- CLUB ---------- */
.hp-club {
    margin: 10px 14px 0;
    padding: 0 22px 44px;
    border-radius: 30px;
    overflow: hidden;
    text-align: center;
    color: #fff;
    background: var(--hp-green);
}
/* عکس باشگاه بدون هیچ لایه‌ی رنگی و کاملاً واضح، بالای بخش */
.hp-club::before {
    content: "";
    display: block;
    margin: 0 -22px 30px;
    aspect-ratio: 16 / 10;
    max-height: 340px;
    width: auto;
    background: url("../img/home/club.jpg") center / cover no-repeat;
}
.hp-club-inner { max-width: 460px; margin: 0 auto; }
.hp-club h2 { font-size: 32px; line-height: 1.6; margin-bottom: 10px; }
.hp-club h2 strong { color: var(--hp-gold); font-weight: 400; }
.hp-club p { font-size: 13.5px; line-height: 2; color: #e5e1d7; margin-bottom: 20px; }
.hp-club-card {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 22px;
    padding: 16px;
    border: 1px solid rgba(216,183,103,.5);
    border-radius: 20px;
    background: rgba(255,255,255,.06);
}
.hp-club-card span { font-size: 12px; color: #d9d3c2; }
.hp-club-card strong { font-size: 26px; color: var(--hp-gold); }

/* ---------- VISIT ---------- */
.hp-visit {
    margin: 14px 14px 0;
    padding: 56px 22px;
    border-radius: 30px;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(10,28,19,.6), rgba(10,28,19,.85)),
        url("../img/home/visit.jpg") center / cover no-repeat,
        linear-gradient(135deg, #3a5a47, #1b3a2a);
}
.hp-visit h2 { font-size: 36px; margin-bottom: 10px; }
.hp-visit p { font-size: 14px; line-height: 2.1; color: #eee8d8; margin-bottom: 22px; }

.hp + footer, body:has(.hp) footer { margin-top: 34px; }

/* ---------- تبلت و دسکتاپ ---------- */
@media (min-width: 760px) {
    .hp-hero { min-height: 85vh; }
    .hp-quick { gap: 18px; margin-top: -54px; }
    .hp-tile { padding: 26px 10px 20px; }
    .hp-about { flex-direction: row; align-items: center; gap: 44px; padding-top: 80px; }
    .hp-about-photo, .hp-about-text { flex: 1; }
    .hp-shot { flex-basis: 260px; }
    .hp-gallery-track { justify-content: center; }
    .hp-club, .hp-visit { max-width: 960px; margin-left: auto; margin-right: auto; }
}

/* =========================================================
   پنجره «باشگاه مشتریان» (فقط صفحه اصلی) — کوچک و ظریف
   ========================================================= */
body:has(.hp) .customer-modal-overlay { padding: 12px; }

body:has(.hp) .customer-modal {
    width: min(340px, 100%);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    padding: 16px 16px 14px;
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .16);
}
body:has(.hp) .customer-modal h3 { margin: 0 0 4px; font-size: 19px; line-height: 1.4; }
body:has(.hp) .customer-modal-subtitle { margin-bottom: 10px; font-size: 11px; line-height: 1.8; }
body:has(.hp) .customer-modal label { margin-bottom: 4px; font-size: 11px; font-weight: 600; }
body:has(.hp) .customer-modal input { padding: 8px 11px; border-radius: 10px; font-size: 12.5px; }
body:has(.hp) .customer-primary-btn { margin-top: 9px; padding: 9px; font-size: 12.5px; }
body:has(.hp) .customer-close-btn,
body:has(.hp) .customer-logout { margin-top: 7px; padding: 7px; font-size: 12px; }
body:has(.hp) .customer-message { margin-top: 7px; font-size: 11px; line-height: 1.7; }
body:has(.hp) .customer-welcome { margin-bottom: 10px; font-size: 11.5px; line-height: 1.8; }
body:has(.hp) .customer-stats { gap: 7px; margin-bottom: 9px; }
body:has(.hp) .customer-stat { padding: 9px 8px; border-radius: 12px; }
body:has(.hp) .customer-stat-label { margin-bottom: 2px; font-size: 10px; }
body:has(.hp) .customer-stat-value { font-size: 16px; }
body:has(.hp) .customer-tier { padding: 9px; border-radius: 12px; }
body:has(.hp) .customer-tier span { margin-bottom: 2px; font-size: 10px; }
body:has(.hp) .customer-tier strong { font-size: 14px; }
body:has(.hp) .customer-orders { margin-top: 10px; }
body:has(.hp) .customer-orders h4 { margin-bottom: 5px; font-size: 12.5px; }
body:has(.hp) .customer-order-item { padding: 7px 0; font-size: 11px; }

/* عکس صفحه اول واضح و شفاف دیده شود؛ خوانایی متن با سایه‌ی نرم */
.hp-hero h1,
.hp-hero p,
.hp-hero .hp-eyebrow {
    text-shadow: 0 2px 14px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .45);
}

.hp-hero .hp-btn-gold,
.hp-hero .hp-btn-ghost {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
