/*
 * صفحه اصلی — تم قهوه‌ای با رنگ مکمل
 * هدف: جایگزینی آبی پیشفرض بوت‌استرپ، بهبود UI/UX
 */

/* IranYekan font — sitewide */
@font-face {
    font-family: 'IranYekan';
    src: url('/fonts/IranYekan.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --color-brown: #5D4037;          /* قهوه‌ای اصلی */
    --color-teal: #1B9AAA;           /* رنگ مکمل (تیل) */
    --color-sand: #EAD2AC;           /* پس‌زمینه‌های لطیف */
    --color-ink: #2C2C2C;            /* متن اصلی */
    --color-muted: #6c757d;          /* متن ملایم */
    --color-success: #3BAA54;
    --color-warning: #D08A00;
    --color-danger: #C0392B;
    --brand-green: #0f3d2e;          /* سبز برند سایت */

    /* Override Bootstrap core palette */
    --bs-primary: var(--brand-green);
    --bs-secondary: var(--color-teal);
    --bs-info: var(--color-teal);
    --bs-link-color: var(--color-teal);
    --bs-btn-border-radius: 0.5rem;
}

html[dir="rtl"] body {
    font-family: 'IranYekan' !important;
    color: var(--color-ink);
}

/* Ensure Tailwind/utility classes don't override the site font */
.font-sans, body, html { font-family: 'IranYekan' !important; }

/* Links */
a.link-primary, .link-primary {
    color: var(--color-teal) !important;
}
a.link-primary:hover, .link-primary:hover {
    color: #157E89 !important; /* تیل تیره‌تر */
}

/* Tighter buttons globally */
.btn { padding: 0.48rem 0.9rem; font-weight: 600; }
.btn-lg { padding: 0.62rem 1.1rem; font-size: 1rem; }

/* Buttons */
.btn-primary {
    background-color: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
    color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #0c2f25 !important; /* تیره‌تر از سبز برند */
    border-color: #0c2f25 !important;
}

.btn-outline-secondary {
    color: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
}
.btn-outline-secondary:hover {
    color: #fff !important;
    background-color: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
}

/* Remove Bootstrap blue tones for outlines */
.btn-outline-primary {
    color: var(--brand-green) !important;
    border-color: var(--brand-green) !important;
}
.btn-outline-primary:hover { color:#fff !important; background-color: var(--brand-green) !important; border-color: var(--brand-green) !important; }

.btn-accent {
    color: #fff;
    background-color: var(--brand-green);
    border-color: var(--brand-green);
}
.btn-accent:hover { background-color: #0c2f25; border-color: #0c2f25; }

.btn-soft {
    color: var(--color-brown);
    background-color: rgba(93,64,55,0.1);
    border-color: rgba(93,64,55,0.15);
}
.btn-soft:hover { background-color: rgba(93,64,55,0.18); }

/* Text helpers */
.text-primary { color: var(--color-brown) !important; }
.text-accent { color: var(--color-teal) !important; }
.text-muted { color: var(--color-muted) !important; }

/* Background helpers */
.bg-primary { background-color: var(--color-brown) !important; }
.bg-accent { background-color: var(--color-teal) !important; }
.bg-sand    { background-color: var(--color-sand) !important; }
.bg-soft-brown { background-color: rgba(93,64,55,0.06) !important; }

/* Inputs — remove default blue borders and focus ring */
.form-control, .form-select {
    border-color: rgba(93,64,55,0.25);
}
.form-control:focus, .form-select:focus {
    border-color: var(--color-teal);
    box-shadow: 0 0 0 0.25rem rgba(27,154,170,0.25);
}

/* Navbar toggler and active nav-link */
.navbar-light .navbar-toggler { border-color: rgba(27,154,170,0.35); }
.nav-link.active, .nav-link:focus { color: var(--color-teal) !important; }

/* Brand navbar — sitewide (green palette) */
.site-navbar { background-color: #0f3d2e !important; border-bottom: none !important; }
.site-navbar .navbar-brand { color: #fff !important; }
.site-navbar .navbar-brand .fa-solid { color: #fff !important; }
.site-navbar .nav-link { color: #e6e6e6 !important; }
.site-navbar .nav-link:hover, .site-navbar .nav-link:focus { color: #fff !important; }
.site-navbar .navbar-toggler { border-color: rgba(255,255,255,0.35) !important; }
/* Force solid white hamburger icon (reliable across devices) */
.site-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}
@media (max-width: 576px) {
    .site-navbar .navbar-toggler { border-color: rgba(255,255,255,0.55) !important; }
    .site-navbar .navbar-toggler-icon {
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba(255,255,255,1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    }
}

/* Hero section */
.hero {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(93,64,55,0.95), rgba(234,210,172,0.95));
}
.hero .overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(1200px 600px at 100% 0%, rgba(27,154,170,0.12), transparent 70%),
                      radial-gradient(600px 300px at 20% 40%, rgba(27,154,170,0.15), transparent 70%);
}
.hero-content {
    position: relative;
    z-index: 2;
    padding: 3rem 1rem 2rem;
    text-align: center;
}
.hero-title { color: #fff; letter-spacing: 0.6px; }
.hero-subtitle { color: #f7f2ec; font-size: 1.125rem; }
.hero-cta .btn { box-shadow: 0 10px 20px rgba(0,0,0,0.18); }

/* Section titles */
.section-title { font-weight: 800; letter-spacing: 0.4px; }
.section-subtitle { color: var(--color-muted); }
.section-divider {
    width: 80px; height: 4px; border-radius: 999px; background-color: var(--color-teal); margin: 0.5rem auto 0;
}

/* Cards */
.card.shadow-soft { box-shadow: 0 12px 30px rgba(0,0,0,0.08); border: none; }
.service-card .icon {
    width: 56px; height: 56px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background-color: rgba(27,154,170,0.12);
    color: var(--color-teal);
}
.service-card:hover { transform: translateY(-2px); transition: transform 160ms ease; }

/* Stats */
.stat-card {
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,0.07);
}
.stat-card .value { font-size: 1.75rem; font-weight: 800; }
.stat-card .label { color: var(--color-muted); }

/* Timeline */
.timeline {
    position: relative;
    padding: 1rem 0 1rem 0;
}
.timeline::before {
    content: ""; position: absolute; inset-inline-start: 50%; transform: translateX(-50%); top: 0; bottom: 0;
    width: 3px; background: linear-gradient(180deg, var(--color-teal), var(--color-sand)); border-radius: 8px;
}
.timeline-step {
    display: grid; grid-template-columns: 1fr; gap: 0.75rem; justify-items: center; text-align: center; padding: 1rem 0;
}
.timeline-step .dot { width: 18px; height: 18px; border-radius: 50%; background: var(--color-teal); border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(27,154,170,0.12); }

/* Testimonials */
.testimonial-card {
    border: none; border-radius: 1rem; background: #fff; box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}
.testimonial-card .stars { color: #F59E0B; } /* Amber */
.testimonial-avatar {
    width: 48px; height: 48px; border-radius: 50%; background: var(--color-sand); display: inline-flex; align-items: center; justify-content: center;
}

/* FAQ */
.faq-item { border-bottom: 1px solid rgba(0,0,0,0.08); padding: 0.75rem 0; }
.faq-question { font-weight: 700; }
.faq-answer { color: var(--color-muted); }

/* Pricing */
.pricing-card { border: none; border-radius: 1rem; box-shadow: 0 14px 30px rgba(0,0,0,0.08); }
.pricing-card .price { font-size: 2rem; font-weight: 800; color: var(--color-brown); }
.pricing-card .features li { color: var(--color-ink); }

/* CTA */
.cta {
    border-radius: 1rem; background: linear-gradient(135deg, rgba(93,64,55,0.95), rgba(27,154,170,0.95)); color: #fff;
}
.cta .btn { box-shadow: 0 12px 24px rgba(0,0,0,0.22); }

/* Brands */
.brand-strip img { filter: grayscale(0.15) contrast(0.98); opacity: 0.9; }
.brand-strip img:hover { filter: grayscale(0) contrast(1); opacity: 1; }

/* Footer — global style aligned to brand green */
.site-footer { background-color: var(--brand-green); color: #fff; }
.site-footer a { color: #e6e6e6; }
.site-footer a:hover { color: #fff; }
/* Height = 2 × navbar; add vertical padding */
.site-footer { --nav-h: 56px; min-height: calc(var(--nav-h) * 2); }
.site-footer .container { padding-top: 1rem !important; padding-bottom: 1rem !important; }
@media (min-width: 576px) {
  .site-footer { --nav-h: 64px; }
  .site-footer .container { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
}

/* Micro-interactions */
.hover-lift { transition: transform 180ms ease, box-shadow 200ms ease; }
.hover-lift:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(0,0,0,0.12); }

/* Utility spacers for dense homepage */
.spacer-sm { height: 0.75rem; }
.spacer-md { height: 1.25rem; }
.spacer-lg { height: 2rem; }

@media (min-width: 768px) {
    .hero-content { padding: 4rem 2rem 3rem; }
}

/* Mobile-first compact hero spacing and responsive titles */
@media (max-width: 576px) {
    .hero-content { padding: 1.25rem 0.75rem 1rem; }
    .hero { margin-bottom: 0.75rem; }
    .hero-title { font-size: calc(1.25rem + 1vw); line-height: 1.35; }
    .hero-subtitle { font-size: calc(0.95rem + 0.35vw); line-height: 1.6; }
    .section-title { font-size: calc(1rem + 0.7vw); }
    .section-subtitle { font-size: calc(0.85rem + 0.35vw); }
}

/* Tables and badges color alignment */
.table thead th { border-bottom-color: rgba(93,64,55,0.2); }
.badge.bg-info { background-color: var(--color-teal) !important; }
.badge.bg-primary { background-color: var(--color-brown) !important; }

/* --- Shared list/card UI for Requests & QnA --- */
.list-card { border: none; border-radius: 0.9rem; box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.list-card .card-body { padding: 1rem 1rem; }
.item-title { font-weight: 700; margin-bottom: 0.25rem; }
.item-excerpt { color: var(--color-muted); margin-bottom: 0.5rem; }
.item-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; color: var(--color-muted); font-size: 0.85rem; }
.item-meta .meta { display: inline-flex; align-items: center; gap: 0.35rem; }
.item-actions { display: flex; gap: 0.4rem; }

/* Status chips */
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.15rem 0.6rem;
    font-size: 0.78rem;
    border-radius: 999px;
    border: 1px solid transparent;
    color: #1f2937;
}
.status-submitted { background-color: #fff7ed; border-color: #fde68a; color: #92400e; }    /* amber soft */
.status-paid      { background-color: #ecfdf5; border-color: #a7f3d0; color: #065f46; }    /* green soft */
.status-converted { background-color: #eef2ff; border-color: #c7d2fe; color: #3730a3; }    /* indigo soft */
.status-pending   { background-color: #fff7ed; border-color: #fde68a; color: #92400e; }
.status-answered  { background-color: #ecfdf5; border-color: #a7f3d0; color: #065f46; }

/* Soft separators */
.soft-sep { height: 1px; background-color: rgba(93,64,55,0.12); margin: 0.5rem 0; }

/* Empty state */
.empty-state { border: 1px dashed rgba(93,64,55,0.25); border-radius: 0.9rem; padding: 1rem; text-align: center; color: var(--color-muted); }
.empty-state i { color: var(--color-teal); }

/* Compact badged buttons for secondary actions */
.btn-badge { display: inline-flex; align-items: center; gap: 0.35rem; }

a
{
    text-decoration: none;
}
