/* site.css - استایل مشترک صفحات عمومی سایت (index.php و article.php)
   بازطراحی 1405/06/21 - نگاه کنید به includes/cms-common.php برای منبع محتوا */

:root {
    --brand-1: #0b5fff;
    --brand-2: #06b6a4;
    --ink: #10182b;
    --ink-soft: #4a5468;
    --bg-soft: #f5f7fb;
    --card-border: #e7ebf3;
}
* { box-sizing: border-box; }
@font-face {
    font-family: Vazirmatn;
    src: url('../Vazir.woff') format('woff');
    font-display: swap;
}
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.8;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(255,255,255,.9); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--card-border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.site-nav a.nav-cta {
    background: var(--brand-1); color: #fff; padding: 9px 18px; border-radius: 10px; font-weight: 700;
}
.nav-links { display: none; gap: 22px; }
@media (min-width: 768px) { .nav-links { display: flex; } }

/* Hero */
.hero {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff; padding: 64px 0 90px;
}
.hero-inner { display: flex; flex-direction: column; gap: 32px; align-items: center; text-align: center; }
@media (min-width: 900px) {
    .hero-inner { flex-direction: row; text-align: right; }
}
.hero-text { flex: 1; }
.hero-text h1 { font-size: 34px; margin: 0 0 16px; font-weight: 800; }
@media (min-width: 900px) { .hero-text h1 { font-size: 44px; } }
.hero-text p { font-size: 17px; opacity: .92; margin: 0 0 26px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
@media (min-width: 900px) { .hero-actions { justify-content: flex-start; } }
.btn {
    display: inline-block; padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: 15px;
    transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--brand-1); box-shadow: 0 8px 20px rgba(0,0,0,.15); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.7); color: #fff; }
.hero-media { flex: 1; max-width: 420px; }
.hero-media img { border-radius: 20px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }

/* Small page hero (used on article.php) */
.page-hero {
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff;
    padding: 46px 0;
}
.page-hero .breadcrumb-link { font-size: 13px; opacity: .85; }
.page-hero .breadcrumb-nav { font-size: 13px; opacity: .9; }
.page-hero .breadcrumb-nav a { color: #fff; text-decoration: underline; }
.page-hero h1 { font-size: 26px; margin: 10px 0 0; font-weight: 800; }
@media (min-width: 900px) { .page-hero h1 { font-size: 32px; } }

/* Services */
.services-section { padding: 70px 0; background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: 26px; font-weight: 800; margin: 0 0 10px; }
.section-head p { color: var(--ink-soft); margin: 0; }
.services-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 700px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card {
    background: #fff; border: 1px solid var(--card-border); border-radius: 18px; padding: 28px;
    transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { box-shadow: 0 16px 40px rgba(16,24,43,.08); transform: translateY(-3px); }
.service-icon {
    width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; margin-bottom: 16px;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 17px; margin: 0 0 8px; font-weight: 700; }
.service-card p { color: var(--ink-soft); font-size: 14px; margin: 0; }

/* Articles */
.articles-section { padding: 70px 0; }
.articles-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 700px) { .articles-grid { grid-template-columns: repeat(3, 1fr); } }
.article-card {
    display: block; border: 1px solid var(--card-border); border-radius: 18px; overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.article-card:hover { box-shadow: 0 16px 40px rgba(16,24,43,.1); transform: translateY(-3px); }
.article-thumb { width: 100%; height: 170px; object-fit: cover; background: var(--bg-soft); }
.article-thumb-placeholder {
    width: 100%; height: 170px; background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); opacity: .15;
}
.article-body { padding: 18px; }
.article-date { font-size: 12px; color: var(--ink-soft); }
.article-body h3 { font-size: 16px; margin: 8px 0; font-weight: 700; }
.article-body p { font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.articles-more { text-align: center; margin-top: 30px; }

/* Article detail page content typography */
.article-detail { padding: 46px 0 70px; }
.article-detail-inner { max-width: 760px; margin: 0 auto; }
.article-featured-image { width: 100%; max-height: 420px; object-fit: cover; border-radius: 18px; margin-bottom: 30px; }
.article-meta-row { display: flex; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); font-size: 13px; margin-bottom: 26px; }
.article-content { font-size: 16.5px; color: #23283a; }
.article-content h2 { font-size: 22px; margin: 34px 0 14px; font-weight: 800; }
.article-content h3 { font-size: 18px; margin: 26px 0 12px; font-weight: 700; }
.article-content p { margin: 0 0 16px; }
.article-content img { border-radius: 14px; margin: 20px 0; }
.article-content ul, .article-content ol { padding-inline-start: 24px; margin: 0 0 16px; }
.article-content blockquote {
    border-inline-start: 4px solid var(--brand-1); margin: 20px 0; padding: 6px 18px;
    color: var(--ink-soft); background: var(--bg-soft); border-radius: 0 10px 10px 0;
}
.article-content a { color: var(--brand-1); text-decoration: underline; }
.article-back-link { display: inline-block; margin-top: 40px; font-weight: 700; color: var(--brand-1); }
.related-articles { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--card-border); }
.related-articles h3 { font-size: 17px; font-weight: 700; margin: 0 0 12px; }
.related-articles ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.related-articles a { color: var(--brand-1); font-weight: 600; }
.empty-state { text-align: center; padding: 90px 20px; color: var(--ink-soft); }

/* Branches lookup page (branches.php) */
.branches-hero-sub { margin: 10px 0 0; opacity: .92; font-size: 14.5px; }
.branches-section { padding: 46px 0 70px; }

.bank-choice-grid { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 640px; margin: 0 auto; }
@media (min-width: 600px) { .bank-choice-grid { grid-template-columns: repeat(2, 1fr); } }
.bank-choice-card {
    display: block; text-align: center; background: #fff; border: 1px solid var(--card-border);
    border-radius: 18px; padding: 32px 20px; transition: box-shadow .2s ease, transform .2s ease;
}
.bank-choice-card:hover { box-shadow: 0 16px 40px rgba(16,24,43,.08); transform: translateY(-3px); }
.bank-choice-icon {
    width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--brand-1), var(--brand-2)); color: #fff; margin: 0 auto 14px;
}
.bank-choice-icon svg { width: 28px; height: 28px; }
.bank-choice-card h3 { font-size: 17px; margin: 0 0 6px; font-weight: 700; }
.bank-choice-count { font-size: 13px; color: var(--ink-soft); }

.branch-toolbar { margin-bottom: 30px; }
.branch-toolbar-bank { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.change-bank-link { color: var(--brand-1); font-weight: 600; }
.branch-filter-form {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
    background: var(--bg-soft); border: 1px solid var(--card-border); border-radius: 16px; padding: 18px;
}
.branch-filter-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; min-width: 140px; }
.branch-filter-field label { font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }
.branch-filter-field select, .branch-filter-field input {
    padding: 10px 12px; border-radius: 10px; border: 1px solid var(--card-border);
    font-family: inherit; font-size: 14px; background: #fff; color: var(--ink);
}
.branch-filter-search { flex: 2 1 220px; }
.btn-search {
    padding: 10px 22px; border-radius: 10px; border: none; background: var(--brand-1); color: #fff;
    font-weight: 700; font-size: 14px; cursor: pointer; height: 42px;
}
.btn-search:hover { opacity: .92; }

.branches-hint { padding: 60px 20px; }
.branches-results { margin-top: 10px; }
.table-responsive { overflow-x: auto; }
.branches-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; min-width: 480px; }
.branches-table th, .branches-table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--card-border); font-size: 14px; }
.branches-table th { background: var(--bg-soft); font-weight: 700; color: var(--ink-soft); font-size: 13px; }
.branches-table td code { background: var(--bg-soft); padding: 2px 8px; border-radius: 6px; font-size: 13px; }
.branches-more-note { margin-top: 16px; font-size: 13px; color: var(--ink-soft); text-align: center; }

.branches-cta {
    margin-top: 40px; text-align: center; background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
    color: #fff; border-radius: 18px; padding: 30px 20px;
}
.branches-cta p { margin: 0 0 16px; font-size: 15px; }
.branches-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn-outline-brand { border: 1.5px solid rgba(255,255,255,.7); color: #fff; display: inline-block; padding: 13px 26px; border-radius: 12px; font-weight: 700; font-size: 15px; }

/* Footer */
.site-footer { background: var(--ink); color: #cbd3e6; padding: 50px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-col h4 { color: #fff; font-size: 14px; margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { font-size: 13.5px; color: #aeb8d0; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
    margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08);
    font-size: 12.5px; color: #8993ad; text-align: center;
}
