/* =====================================================
   الین‌فارما — Design Tokens
   ===================================================== */
:root {
    --navy-deep:    #0B1F3A;
    --navy-mid:     #1A2E4A;
    --cream:        #F7F5F0;
    --teal:         #2FA39A;
    --teal-dark:    #1F746E;
    --amber:        #C97B4A;
    --amber-dark:   #A85F35;
    --white:        #FFFFFF;
    --text-on-dark: #E8EDF3;
    --text-muted:   #8E9DB0;

    --font-fa-heading: 'Vazirmatn', sans-serif;
    --font-fa-body:     'Vazirmatn', sans-serif;
    --font-en-heading: 'Space Grotesk', sans-serif;
    --font-en-body:     'Inter', sans-serif;

    --radius-card: 16px;
    --radius-btn: 10px;
    --container: 1180px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--cream);
    color: var(--navy-mid);
    font-family: var(--font-fa-body);
    line-height: 1.9;
}

[dir="ltr"] body { font-family: var(--font-en-body); }

h1, h2, h3, .brand-font {
    font-family: var(--font-fa-heading);
    font-weight: 800;
    color: var(--navy-deep);
    line-height: 1.4;
}
[dir="ltr"] h1, [dir="ltr"] h2, [dir="ltr"] h3, [dir="ltr"] .brand-font {
    font-family: var(--font-en-heading);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
    background: var(--navy-deep);
    color: var(--text-on-dark);
    padding: 18px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header nav a {
    color: var(--text-on-dark);
    text-decoration: none;
    margin: 0 14px;
    font-size: 15px;
    opacity: .85;
}
.site-header nav a:hover { opacity: 1; color: var(--teal); }
.lang-switch a {
    color: var(--teal);
    text-decoration: none;
    font-size: 13px;
    border: 1px solid var(--teal);
    padding: 4px 12px;
    border-radius: 999px;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: var(--navy-deep);
    color: var(--text-on-dark);
    padding: 90px 0 110px;
    overflow: hidden;
}
.hero .network-bg {
    position: absolute;
    inset: 0;
    opacity: .35;
    pointer-events: none;
}
.hero .container { position: relative; z-index: 1; max-width: 760px; text-align: center; }
.hero .tagline {
    display: inline-block;
    color: var(--teal);
    font-size: 14px;
    letter-spacing: .5px;
    border: 1px solid var(--teal-dark);
    padding: 6px 18px;
    border-radius: 999px;
    margin-bottom: 24px;
}
.hero h1 { color: var(--white); font-size: 42px; margin: 0 0 20px; }
.hero p { color: var(--text-muted); font-size: 17px; max-width: 560px; margin: 0 auto 34px; }

.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,.4); margin-inline-start: 12px; }

/* ---------- Focus areas (glass cards) ---------- */
.focus-section { background: var(--navy-deep); padding: 0 0 90px; }
.focus-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.focus-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-card);
    padding: 28px 20px;
    color: var(--text-on-dark);
    text-align: center;
    backdrop-filter: blur(6px);
}
.focus-card .icon { font-size: 30px; color: var(--teal); margin-bottom: 14px; }
.focus-card h3 { color: var(--white); font-size: 17px; margin: 0 0 8px; }
.focus-card p { color: var(--text-muted); font-size: 14px; margin: 0; }

/* ---------- Section: cream background ---------- */
.section { padding: 80px 0; }
.section-title { text-align: center; margin-bottom: 12px; font-size: 28px; }
.section-subtitle { text-align: center; color: var(--navy-mid); opacity: .7; margin-bottom: 48px; }

/* ---------- Product / news cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.product-card, .news-card {
    background: var(--white);
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid rgba(11,31,58,.08);
}
.product-card img, .news-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.product-card .body, .news-card .body { padding: 18px; }
.product-card h3, .news-card h3 { font-size: 16px; margin: 0 0 8px; }
.product-card .price { color: var(--teal-dark); font-weight: 700; margin: 10px 0; }
.product-card .cat-badge {
    display: inline-block;
    font-size: 12px;
    color: var(--teal-dark);
    background: rgba(47,163,154,.12);
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--text-muted); padding: 40px 0; text-align: center; font-size: 14px; }
.site-footer .brand-font { color: var(--white); font-size: 18px; margin-bottom: 6px; }

@media (max-width: 900px) {
    .focus-grid, .card-grid { grid-template-columns: repeat(2, 1fr); }
    .hero h1 { font-size: 30px; }
}
@media (max-width: 560px) {
    .focus-grid, .card-grid { grid-template-columns: 1fr; }
}
