/*  assets/styles/home.css  */

@import url('global.css'); 

/* انتقال عنوان به بالاترین بخش صفحه با رنگ کرم روشن */
h1 {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--primary-color); /* استفاده از رنگ کرم روشن */
    font-size: 2.2rem;
    margin: 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5); /* سایه عمیق‌تر برای خوانایی بهتر روی پس‌زمینه تیره */
    font-family: 'Samim', sans-serif;
}

/* انتقال شعار به زیر عنوان با رنگ طلایی ملایم */
.tagline {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    text-align: center;
    color: var(--secondary-color); /* استفاده از رنگ طلایی ملایم */
    font-size: 1.2rem;
    margin: 0;
    font-family: 'Samim', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ساختار انیمیشن فنجان قهوه */
.coffee-cup {
    position: relative;
    margin: 0 auto 50px auto;
    width: 200px;
}

.cup {
    width: 200px;
    height: 150px;
    background: var(--primary-color); 
    border-radius: 0 0 100px 100px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4); 
    position: relative;
}

.cup-logo {
    margin-top: 30px;
    width: 45%; 
    height: auto;
    opacity: 0.85; 
    border-radius: 50%; 
    mix-blend-mode: multiply; 
    transition: transform 0.3s ease;
}

.cup:before {
    content: "";
    position: absolute;
    width: 50px;
    height: 70px;
    border: 12px solid var(--primary-color); /* دسته فنجان همرنگ بدنه (کرم روشن) */
    border-left: none;
    border-radius: 0 50px 50px 0;
    right: -45px;
    top: 25px;
}

/* بخار متحرک بالای فنجان */
.steam {
    position: absolute;
    background: rgba(245, 241, 234, 0.35); /* بخار ملایم با تم کرم روشن */
    border-radius: 10px;
    animation: steam 4s infinite ease-in-out;
}

.steam-1 {
    width: 8px;
    height: 45px;
    left: 35%;
    top: -55px;
    animation-delay: 0s;
}

.steam-2 {
    width: 10px;
    height: 55px;
    left: 48%;
    top: -65px;
    animation-delay: 1.2s;
}

.steam-3 {
    width: 6px;
    height: 40px;
    left: 60%;
    top: -50px;
    animation-delay: 0.6s;
}

@keyframes steam {
    0% {
        transform: translateY(0) scaleX(1) scaleY(1);
        opacity: 0;
    }
    15% {
        opacity: 0.6;
    }
    50% {
        transform: translateY(-25px) scaleX(1.2) scaleY(1.1);
        opacity: 0.3;
    }
    100% {
        transform: translateY(-55px) scaleX(1.4) scaleY(0.8);
        opacity: 0;
    }
}

/* پنل دکمه‌های صفحه اصلی (موبایل اول - عمودی) */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

/* دکمه معمولی (با پس‌زمینه کرم ملایم و متن تیره) */
.btn {
    background: var(--primary-color);
    color: var(--text-dark);
    border: none;
    border-radius: 5px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Samim', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    width: 100%;
    -webkit-tap-highlight-color: transparent;
}

.btn:active {
    transform: scale(0.96);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    background: var(--border-light); /* کمی تیره‌تر شدن هنگام فشرده شدن */
}

/* دکمه اصلی / خرید (به رنگ طلایی جذاب با هاور کاراملی) */
.btn-primary {
    background: var(--secondary-color); /* طلایی ملایم */
    color: var(--text-dark); /* متن تیره برای کنتراست عالی */
}

.btn-primary:active {
    background: var(--accent-color); /* کاراملی در حالت فعال/هاور */
    color: var(--primary-color); /* تغییر متن به کرم روشن برای خوانایی */
}

/* ----------------- مدیا کوئری‌ها (واکنش‌گرایی صفحه اصلی) ----------------- */

/* تغییر جهت دکمه‌ها در مانیتور به افقی */
@media (min-width: 600px) {
    .buttons {
        flex-direction: row;
        justify-content: center;
        max-width: 100%;
        gap: 16px;
    }

    .btn {
        width: 180px;
    }
}

/* بهینه‌سازی ابعاد فنجان در موبایل‌های خیلی کوچک */
@media (max-width: 480px) {
    .cup {
        width: 160px;
        height: 120px;
        border-radius: 0 0 80px 80px;
    }

    .cup:before {
        width: 40px;
        height: 55px;
        border-width: 10px;
        right: -36px;
        top: 20px;
    }
    
    h1 {
        font-size: 2rem;
        top: 20px;
    }
    
    .tagline {
        font-size: 1rem;
        top: 65px;
    }
}

/* ----------------- فوتر  تماس ----------------- */
.footer-bar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 900;
    background: linear-gradient(to left, rgba(33, 22, 16, 0.96), rgba(53, 37, 27, 0.94));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.22);
}

.footer-gold-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(200, 155, 60, 0.9), transparent);
}

.footer-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-family: 'Samim', sans-serif;
    font-size: 0.92rem;
    color: #f5f1ea;
}

.footer-contact-item {
    color: #f5f1ea;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.footer-contact-item:hover {
    color: #ffd67a;
}

/* استایل آیکن ها */
.footer-icon {
    color: #d8b66f; /* رنگ طلایی برای آیکن */
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.footer-contact-item:hover .footer-icon {
    transform: scale(1.1);
}

.footer-label {
    color: #d8b66f;
    font-weight: bold;
}

.footer-value {
    color: #fffaf2;
}

/* فاصله برای اینکه فوتر روی محتوا نیفتد */
body {
    padding-bottom: 50px;
}

/* موبایل */
@media (max-width: 480px) {
    .footer-content {
        flex-direction: column;
        gap: 8px;
        padding: 8px 10px;
    }
    .footer-separator { display: none; }
    body { padding-bottom: 75px; }
}
