﻿/* ============================================================================
   درمانگاه شبانه‌روزی نیکان — صفحه‌ی فرود (Landing)
   خودبسنده. فونت محلی IRANSans. RTL. پالت فیروزه‌ای.
   ============================================================================ */

@font-face {
    font-family: 'IRANSansX';
    src: url('/Content/fonts/IRANSansWeb(FaNum).ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

:root {
    --brand-50:  #f0fdfa;
    --brand-100: #ccfbf1;
    --brand-200: #99f6e4;
    --brand-400: #2dd4bf;
    --brand-500: #14b8a6;
    --brand-600: #0d9488;
    --brand-700: #0f766e;
    --brand-800: #115e59;
    --brand-900: #134e4a;

    --ink-900: #0b1a1f;
    --ink-800: #14262c;
    --ink-700: #2f4750;
    --ink-600: #4b6570;
    --ink-500: #6c828c;
    --ink-400: #93a6ae;

    --paper: #ffffff;
    --soft:  #f4faf9;
    --line:  #e4efec;
    --brand-300: #5eead4;

    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(11,26,31,.05), 0 4px 14px -6px rgba(11,26,31,.10);
    --shadow-md: 0 10px 30px -10px rgba(11,26,31,.18);
    --shadow-lg: 0 30px 70px -20px rgba(13,148,136,.30);
    --maxw: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
body {
    font-family: 'IRANSansX', 'Segoe UI', Tahoma, Arial, sans-serif;
    direction: rtl;
    background: var(--paper);
    color: var(--ink-800);
    font-size: 16px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { position: relative; }

/* ---------------- Navbar ---------------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 100;
    transition: background .3s, box-shadow .3s, padding .3s;
    padding: 20px 0;
}
.nav.scrolled {
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(14px);
    box-shadow: 0 1px 0 var(--line), 0 8px 30px -18px rgba(11,26,31,.25);
    padding: 12px 0;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; color: var(--ink-900); }
.brand .mark {
    width: 42px; height: 42px; border-radius: 13px;
    background: linear-gradient(150deg, var(--brand-500), var(--brand-800));
    display: flex; align-items: center; justify-content: center; color: #fff;
    box-shadow: 0 10px 24px -10px rgba(13,148,136,.7);
}
.brand small { display: block; font-size: 11px; font-weight: 500; color: var(--ink-400); }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
    padding: 9px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600;
    color: var(--ink-600); transition: background .18s, color .18s;
}
.nav-links a:hover { background: var(--brand-50); color: var(--brand-800); }
.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px; border-radius: 12px;
    background: var(--brand-700); color: #fff !important;
    font-weight: 700; font-size: 14.5px;
    box-shadow: 0 12px 26px -12px rgba(15,118,110,.8);
    transition: transform .15s, background .18s;
}
.nav-cta:hover { background: var(--brand-800); transform: translateY(-1px); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--ink-800); }
@media (max-width: 900px) {
    .nav-links {
        position: absolute; inset: 100% 24px auto 24px;
        flex-direction: column; align-items: stretch; gap: 4px;
        background: #fff; border: 1px solid var(--line); border-radius: 16px;
        padding: 12px; box-shadow: var(--shadow-md);
        transform: translateY(-10px); opacity: 0; pointer-events: none;
        transition: .22s;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links a { padding: 12px 16px; }
    .nav-toggle { display: inline-flex; }
}

/* ---------------- Hero ---------------- */
.hero {
    padding: 180px 0 110px;
    background:
        radial-gradient(1200px 520px at 88% -10%, var(--brand-100), transparent 60%),
        radial-gradient(900px 500px at 5% 110%, #e8f0ff, transparent 55%),
        linear-gradient(180deg, var(--soft), #fff);
    overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: #fff; border: 1px solid var(--brand-200);
    color: var(--brand-800); font-weight: 700; font-size: 13px;
    padding: 7px 14px; border-radius: 999px; box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 4px var(--brand-100); }
.hero h1 {
    font-size: clamp(34px, 5vw, 54px); line-height: 1.25; font-weight: 800;
    color: var(--ink-900); letter-spacing: -.02em; margin-bottom: 20px;
}
.hero h1 .hl { color: var(--brand-700); position: relative; }
.hero h1 .hl::after {
    content: ""; position: absolute; right: 0; left: 0; bottom: 6px; height: 12px;
    background: var(--brand-200); opacity: .55; border-radius: 6px; z-index: -1;
}
.hero p.lead { font-size: 18px; color: var(--ink-600); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 15px 28px; border-radius: 14px; font-weight: 700; font-size: 15.5px;
    border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .18s, box-shadow .18s;
}
.btn-primary { background: var(--brand-700); color: #fff; box-shadow: 0 18px 40px -16px rgba(15,118,110,.75); }
.btn-primary:hover { background: var(--brand-800); transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--ink-800); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand-300); transform: translateY(-2px); }
.hero-trust { display: flex; align-items: center; gap: 22px; margin-top: 34px; color: var(--ink-500); font-size: 13.5px; }
.hero-trust .stars { color: #f5a524; letter-spacing: 2px; }

.hero-art { position: relative; }
.hero-card {
    background: #fff; border: 1px solid var(--line); border-radius: 24px;
    box-shadow: var(--shadow-lg); padding: 26px;
}
.hero-card .row { display: flex; align-items: center; gap: 14px; padding: 14px 6px; border-bottom: 1px dashed var(--line); }
.hero-card .row:last-child { border-bottom: none; }
.hero-card .ic {
    width: 46px; height: 46px; border-radius: 13px; flex: 0 0 46px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-50); color: var(--brand-700);
}
.hero-card .t { font-weight: 700; color: var(--ink-900); }
.hero-card .s { font-size: 13px; color: var(--ink-500); }
.hero-card .val { margin-inline-start: auto; font-weight: 800; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.hero-badge {
    position: absolute; left: -26px; bottom: 40px;
    background: var(--ink-900); color: #fff; border-radius: 16px;
    padding: 14px 18px; box-shadow: var(--shadow-md); display: flex; gap: 12px; align-items: center;
}
.hero-badge .n { font-size: 22px; font-weight: 800; }
.hero-badge .l { font-size: 12px; color: #9fd9d0; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); z-index: 0; opacity: .5; }
.blob.b1 { width: 340px; height: 340px; background: var(--brand-200); top: -60px; right: -80px; }
@media (max-width: 900px) {
    .hero { padding: 140px 0 70px; }
    .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
    .hero-badge { left: 10px; }
}

/* ---------------- Section heading ---------------- */
.sec { padding: 96px 0; }
.sec-soft { background: var(--soft); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.sec-tag {
    display: inline-block; font-weight: 800; font-size: 12.5px; letter-spacing: .12em;
    color: var(--brand-700); text-transform: uppercase; margin-bottom: 12px;
}
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; color: var(--ink-900); letter-spacing: -.02em; line-height: 1.35; }
.sec-head p { color: var(--ink-500); font-size: 16px; margin-top: 12px; }

/* ---------------- Features ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 30px; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--brand-200); }
.feature .ic {
    width: 54px; height: 54px; border-radius: 15px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(150deg, var(--brand-50), var(--brand-100)); color: var(--brand-700);
}
.feature h3 { font-size: 19px; font-weight: 800; color: var(--ink-900); margin-bottom: 8px; }
.feature p { color: var(--ink-500); font-size: 14.5px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }

/* ---------------- Departments ---------------- */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.dept {
    position: relative; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px; text-align: center; transition: .2s;
}
.dept:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.dept .ic {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--brand-50); color: var(--brand-700);
}
.dept h4 { font-size: 16px; font-weight: 800; color: var(--ink-900); margin-bottom: 4px; }
.dept span { font-size: 13px; color: var(--ink-400); }
@media (max-width: 1000px) { .dept-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .dept-grid { grid-template-columns: 1fr; } }

/* ---------------- Stats band ---------------- */
.stats {
    background: linear-gradient(140deg, var(--brand-800), var(--brand-600));
    color: #fff; border-radius: 28px; padding: 54px 40px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.stats::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(500px 240px at 90% -20%, rgba(255,255,255,.16), transparent 60%);
}
.stat { text-align: center; position: relative; }
.stat .n { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .l { color: #bdeee7; font-size: 14px; font-weight: 600; margin-top: 4px; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 34px; } }

/* ---------------- Steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { text-align: center; padding: 10px; }
.step .num {
    width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    font-size: 24px; font-weight: 800; color: var(--brand-700);
}
.step h4 { font-size: 18px; font-weight: 800; color: var(--ink-900); margin-bottom: 6px; }
.step p { color: var(--ink-500); font-size: 14.5px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------------- Testimonials ---------------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.quote {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
    box-shadow: var(--shadow-sm);
}
.quote .stars { color: #f5a524; letter-spacing: 2px; margin-bottom: 12px; }
.quote p { color: var(--ink-700); font-size: 15px; }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.quote .av {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--brand-100); color: var(--brand-800);
    display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.quote .who b { display: block; color: var(--ink-900); font-size: 14px; }
.quote .who span { font-size: 12.5px; color: var(--ink-400); }
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------------- CTA ---------------- */
.cta {
    text-align: center;
    background:
        radial-gradient(600px 260px at 50% -30%, var(--brand-100), transparent 60%),
        var(--soft);
    border-top: 1px solid var(--line);
}
.cta h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; color: var(--ink-900); letter-spacing: -.02em; }
.cta p { color: var(--ink-500); font-size: 17px; margin: 14px auto 30px; max-width: 560px; }

/* ---------------- Footer ---------------- */
.foot { background: var(--ink-900); color: #b9cfd0; padding: 64px 0 28px; }
.foot .grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.foot .brand { color: #fff; margin-bottom: 14px; }
.foot .brand .mark { box-shadow: none; }
.foot p { font-size: 14px; max-width: 320px; }
.foot h5 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 16px; }
.foot ul { list-style: none; }
.foot li { margin-bottom: 10px; font-size: 14px; }
.foot li a:hover { color: var(--brand-400); }
.foot .bottom {
    margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
    font-size: 13px; color: #7f9b9c;
}
@media (max-width: 900px) { .foot .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot .grid { grid-template-columns: 1fr; } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
