
/* =========================================================
   Aria Byte — Design Tokens
   آریا بایت — توکن‌های طراحی
   Single source of truth for color, type, spacing, radii, shadow.
   ========================================================= */

/* ---------- Webfont: IRANYekan (brand) + Vazirmatn fallback + JetBrains Mono ---------- */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

@font-face {
    font-family: 'IRANYekan';
    src: url('../fonts/iranyekanwebregularfanum.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
/* NOTE: only the Regular (400) weight was provided. For 500/600/700 the browser
   will synth-bold IRANYekan; ideally drop in Medium/Bold/Black .woff files
   alongside this and add matching @font-face blocks. */

:root {
    /* =====================================================
       COLORS
       ===================================================== */

    /* --- Brand: Royal Blue ramp (anchored on #4169E1) --- */
    --brand-50:  #EEF3FE;
    --brand-100: #DCE6FD;
    --brand-200: #B9CDFB;
    --brand-300: #8FAEF7;
    --brand-400: #6589EE;
    --brand-500: #4169E1;  /* PRIMARY — the brand color */
    --brand-600: #3457C9;
    --brand-700: #2944A4;
    --brand-800: #1F3580;
    --brand-900: #16275C;

    --brand: var(--brand-500);
    --brand-ink: var(--brand-900);

    /* --- Neutrals: cool slate (slightly blue-tinted) --- */
    --slate-0:   #FFFFFF;
    --slate-50:  #F7F9FC;
    --slate-100: #EEF2F7;
    --slate-200: #E2E8F0;
    --slate-300: #CBD5E1;
    --slate-400: #94A3B8;
    --slate-500: #64748B;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1E293B;
    --slate-900: #0B1220;   /* text ink — never pure black */

    /* --- Semantic --- */
    --success-50:  #ECFDF5;
    --success-500: #10B981;
    --success-700: #047857;

    --warning-50:  #FFFBEB;
    --warning-500: #F59E0B;
    --warning-700: #B45309;

    --danger-50:   #FEF2F2;
    --danger-500:  #EF4444;
    --danger-700:  #B91C1C;

    --info-50:  var(--brand-50);
    --info-500: var(--brand-500);
    --info-700: var(--brand-700);

    /* --- Semantic foreground / background aliases --- */
    --fg-1: var(--slate-900);   /* primary text */
    --fg-2: var(--slate-700);   /* body text */
    --fg-3: var(--slate-500);   /* muted, captions */
    --fg-4: var(--slate-400);   /* placeholder, disabled */
    --fg-on-brand: #FFFFFF;
    --fg-link: var(--brand-600);
    --fg-link-hover: var(--brand-700);

    --bg-1: var(--slate-0);     /* main page bg */
    --bg-2: var(--slate-50);    /* tinted section bg */
    --bg-3: var(--slate-100);   /* deeper tinted bg */
    --bg-brand-soft: var(--brand-50);

    --border: var(--slate-200);
    --border-strong: var(--slate-300);
    --focus-ring: rgba(65, 105, 225, .35);

    /* =====================================================
       TYPOGRAPHY
       ===================================================== */
    --font-sans: 'IRANYekan', 'Vazirmatn', 'Segoe UI', Tahoma, system-ui, -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    /* type scale (rem-based, 16px root) */
    --fs-12: 0.75rem;
    --fs-14: 0.875rem;
    --fs-16: 1rem;
    --fs-18: 1.125rem;
    --fs-20: 1.25rem;
    --fs-24: 1.5rem;
    --fs-32: 2rem;
    --fs-40: 2.5rem;
    --fs-44: 2.75rem;
    --fs-56: 3.5rem;

    --lh-tight: 1.2;
    --lh-snug: 1.4;
    --lh-normal: 1.6;
    --lh-loose: 1.7;     /* persian body */

    --fw-light: 300;
    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-black: 800;

    /* =====================================================
       SPACING — 8pt grid
       ===================================================== */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 24px;
    --space-6: 32px;
    --space-7: 48px;
    --space-8: 64px;
    --space-9: 96px;
    --space-10: 128px;

    /* =====================================================
       RADII
       ===================================================== */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* =====================================================
       SHADOWS — soft, blue-tinted
       ===================================================== */
    --shadow-xs: 0 1px 1px rgba(15,23,42,.04);
    --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 1px rgba(15,23,42,.04);
    --shadow-md: 0 4px 12px rgba(15,23,42,.06), 0 2px 4px rgba(15,23,42,.04);
    --shadow-lg: 0 16px 40px rgba(65,105,225,.10), 0 4px 12px rgba(15,23,42,.06);
    --shadow-xl: 0 30px 60px -20px rgba(65,105,225,.35);
    --shadow-focus: 0 0 0 4px var(--focus-ring);

    /* =====================================================
       MOTION
       ===================================================== */
    --ease-out: cubic-bezier(.2, .8, .2, 1);
    --ease-in-out: cubic-bezier(.4, 0, .2, 1);
    --dur-fast: 150ms;
    --dur-base: 200ms;
    --dur-slow: 300ms;
    --dur-hero: 500ms;

    /* =====================================================
       LAYOUT
       ===================================================== */
    --container-xl: 1200px;
    --nav-height: 72px;
}

/* =========================================================
   SEMANTIC ELEMENT STYLES
   These can be applied via class .ds-* or as global resets.
   ========================================================= */

.ds-root,
body.ds {
    font-family: var(--font-sans);
    font-size: var(--fs-16);
    line-height: var(--lh-loose);
    color: var(--fg-2);
    background: var(--bg-1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.ds-h1, h1.ds {
    font-size: clamp(var(--fs-32), 4vw, var(--fs-56));
    line-height: var(--lh-tight);
    font-weight: var(--fw-bold);
    letter-spacing: -0.01em;
    color: var(--fg-1);
}
.ds-h2, h2.ds {
    font-size: clamp(var(--fs-24), 3vw, var(--fs-40));
    line-height: var(--lh-tight);
    font-weight: var(--fw-bold);
    letter-spacing: -0.01em;
    color: var(--fg-1);
}
.ds-h3, h3.ds {
    font-size: var(--fs-24);
    line-height: var(--lh-snug);
    font-weight: var(--fw-semibold);
    color: var(--fg-1);
}
.ds-h4, h4.ds {
    font-size: var(--fs-20);
    line-height: var(--lh-snug);
    font-weight: var(--fw-semibold);
    color: var(--fg-1);
}
.ds-body, p.ds {
    font-size: var(--fs-16);
    line-height: var(--lh-loose);
    color: var(--fg-2);
}
.ds-small, small.ds {
    font-size: var(--fs-14);
    line-height: var(--lh-normal);
    color: var(--fg-3);
}
.ds-caption {
    font-size: var(--fs-12);
    line-height: var(--lh-normal);
    color: var(--fg-3);
    letter-spacing: .02em;
}
.ds-code, code.ds {
    font-family: var(--font-mono);
    font-size: 0.95em;
    background: var(--bg-3);
    color: var(--brand-700);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
}
.ds-link, a.ds {
    color: var(--fg-link);
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-out);
}
.ds-link:hover, a.ds:hover {
    color: var(--fg-link-hover);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* =========================================================
   COMPONENT PRIMITIVES
   ========================================================= */

.ds-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: var(--fs-16);
    font-weight: var(--fw-medium);
    line-height: 1.2;
    border: 1px solid transparent;
    cursor: pointer;
    transition:
            background-color var(--dur-fast) var(--ease-out),
            border-color var(--dur-fast) var(--ease-out),
            color var(--dur-fast) var(--ease-out),
            box-shadow var(--dur-fast) var(--ease-out),
            transform var(--dur-fast) var(--ease-out);
    user-select: none;
    text-decoration: none;
}
.ds-btn:focus-visible { box-shadow: var(--shadow-focus); outline: none; }

.ds-btn-primary {
    background: var(--brand-600);
    color: var(--fg-on-brand);
}
.ds-btn-primary:hover { background: var(--brand-700); }
.ds-btn-primary:active { background: var(--brand-800); transform: translateY(1px); }

.ds-btn-secondary {
    background: var(--bg-1);
    color: var(--fg-1);
    border-color: var(--border-strong);
}
.ds-btn-secondary:hover { background: var(--bg-2); }
.ds-btn-secondary:active { background: var(--bg-3); }

.ds-btn-ghost {
    background: transparent;
    color: var(--fg-link);
}
.ds-btn-ghost:hover { background: var(--bg-brand-soft); }

.ds-btn-sm { padding: 6px 14px; font-size: var(--fs-14); border-radius: var(--radius-sm); }
.ds-btn-lg { padding: 14px 28px; font-size: var(--fs-18); border-radius: var(--radius-md); }

.ds-input {
    width: 100%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-1);
    font-family: var(--font-sans);
    font-size: var(--fs-16);
    color: var(--fg-1);
    transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.ds-input::placeholder { color: var(--fg-4); }
.ds-input:focus { outline: none; border-color: var(--brand-500); box-shadow: var(--shadow-focus); }

.ds-card {
    background: var(--bg-1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-6);
    transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.ds-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.ds-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    font-size: var(--fs-12);
    font-weight: var(--fw-medium);
    border-radius: var(--radius-full);
    background: var(--bg-brand-soft);
    color: var(--brand-700);
}
.ds-badge-success { background: var(--success-50); color: var(--success-700); }
.ds-badge-warning { background: var(--warning-50); color: var(--warning-700); }
.ds-badge-danger  { background: var(--danger-50);  color: var(--danger-700); }
.ds-badge-neutral { background: var(--slate-100);  color: var(--slate-700); }


/* =========================================================
   Aria Byte — Site styles (Bootstrap 5 + custom layer)
   ========================================================= */

/* ---------- base ---------- */
body {
    font-family: var(--font-sans);
    font-size: var(--fs-16);
    line-height: var(--lh-loose);
    color: var(--fg-2);
    background: var(--bg-1);
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { color: var(--fg-1); font-weight: 700; letter-spacing: -0.01em; }
a { color: var(--brand-600); text-decoration: none; transition: color var(--dur-fast) var(--ease-out); }
a:hover { color: var(--brand-700); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

::selection { background: var(--brand-200); color: var(--brand-900); }

/* Bootstrap-overrides — brand color */
.btn { font-family: var(--font-sans); font-weight: 500; border-radius: var(--radius-md); padding: 10px 20px; transition: all var(--dur-fast) var(--ease-out); }
.btn-lg { padding: 14px 28px; font-size: var(--fs-18); }
.btn-sm { padding: 6px 14px; font-size: var(--fs-14); border-radius: var(--radius-sm); }
.btn-primary { background-color: var(--brand-600); border-color: var(--brand-600); }
.btn-primary:hover, .btn-primary:focus { background-color: var(--brand-700); border-color: var(--brand-700); box-shadow: var(--shadow-focus); }
.btn-primary:active { background-color: var(--brand-800)!important; border-color: var(--brand-800)!important; transform: translateY(1px); }
.btn-outline-primary { color: var(--brand-700); border-color: var(--border-strong); }
.btn-outline-primary:hover { background: var(--bg-2); color: var(--brand-700); border-color: var(--border-strong); }

.text-brand { color: var(--brand-500); }
.bg-tint { background: var(--bg-2); }
.bg-brand-soft { background: var(--bg-brand-soft); }

/* ---------- header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur-base) var(--ease-out), background-color var(--dur-base) var(--ease-out);
}
.site-header.is-scrolled { border-bottom-color: var(--border); background: rgba(255,255,255,.92); }
.brand-word { font-size: 22px; font-weight: 800; color: var(--fg-1); letter-spacing: -0.01em; }
.nav-link-ds { color: var(--fg-2); font-weight: 500; font-size: 15px; transition: color var(--dur-fast) var(--ease-out); }
.nav-link-ds:hover { color: var(--brand-600); text-decoration: none; }
.nav-link-ds.is-active { color: var(--brand-700); }

/* ---------- sections ---------- */
.section-pad { padding: 96px 0; }
@media (max-width: 991px) { .section-pad { padding: 64px 0; } }
@media (max-width: 575px) { .section-pad { padding: 48px 0; } }

.section-title { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; font-weight: 700; margin: 0; }
.section-sub { font-size: 17px; color: var(--fg-3); max-width: 640px; margin: 12px auto 0; line-height: 1.7; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; font-size: 13px; font-weight: 500; border-radius: 9999px; background: var(--bg-brand-soft); color: var(--brand-700); margin-bottom: 12px; }

/* ---------- hero ---------- */
.hero {
    position: relative;
    padding: 88px 0 96px;
    overflow: hidden;
    background:
            radial-gradient(1200px 500px at 80% -20%, rgba(65,105,225,.10), transparent 60%),
            var(--bg-1);
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.hero .lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--fg-3); line-height: 1.8; margin-top: 18px; max-width: 560px; }
.trust-row { color: var(--fg-3); font-size: 14px; }
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row i { color: var(--brand-500); }

/* hero mock */
.hero-mock {
    background: var(--bg-1);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(15,23,42,.04);
    overflow: hidden;
    transform: rotate(-1.5deg);
    transition: transform var(--dur-slow) var(--ease-out);
}
.hero-mock:hover { transform: rotate(0deg); }
.hero-mock-bar { display: flex; gap: 6px; padding: 12px 14px; align-items: center; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.hero-mock-bar span { width: 10px; height: 10px; border-radius: 9999px; background: var(--slate-300); }
.hero-mock-bar span:nth-child(1) { background: #FF5F57; }
.hero-mock-bar span:nth-child(2) { background: #FEBC2E; }
.hero-mock-bar span:nth-child(3) { background: #28C840; }
.hero-mock-url { margin-inline-start: auto; font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); direction: ltr; }
.hero-mock-body { padding: 22px 22px 28px; }
.hero-mock-h { width: 70%; height: 22px; border-radius: 6px; background: linear-gradient(90deg, var(--brand-500), var(--brand-300)); margin-bottom: 14px; }
.hero-mock-line { height: 10px; border-radius: 5px; background: var(--slate-200); margin-bottom: 8px; }
.hero-mock-line.w70 { width: 70%; } .hero-mock-line.w90 { width: 90%; } .hero-mock-line.w50 { width: 50%; }
.hero-mock-card { flex: 1; height: 80px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); }
.hero-mock-card:nth-child(2) { background: var(--bg-brand-soft); border-color: var(--brand-100); }

/* ---------- service cards ---------- */
.service-card { padding: 28px; height: 100%; display: flex; flex-direction: column; }
.service-card .icon-box { width: 48px; height: 48px; border-radius: 12px; background: var(--brand-50); color: var(--brand-600); display: flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 18px; transition: all var(--dur-base) var(--ease-out); }
.service-card:hover .icon-box { background: var(--brand-500); color: #fff; }
.service-card h3 { font-size: 20px; margin: 0 0 8px; }
.service-card p { font-size: 15px; color: var(--fg-3); line-height: 1.75; margin: 0; }
.service-card .more { margin-top: 16px; color: var(--brand-600); font-weight: 500; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.service-card.is-featured { border-top: 3px solid var(--brand-500); }

/* ---------- work cards ---------- */
.seg-tabs { display: inline-flex; padding: 4px; background: var(--bg-2); border-radius: 9999px; gap: 2px; }
.seg-tab { border: none; background: transparent; padding: 8px 18px; border-radius: 9999px; font-size: 14px; font-weight: 500; color: var(--fg-2); cursor: pointer; transition: all var(--dur-fast) var(--ease-out); font-family: var(--font-sans); }
.seg-tab:hover { color: var(--brand-700); }
.seg-tab.is-active { background: var(--bg-1); color: var(--brand-700); box-shadow: var(--shadow-sm); }

.work-card { background: var(--bg-1); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); transition: all var(--dur-base) var(--ease-out); border: 1px solid var(--border); height: 100%; }
.work-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.work-thumb { aspect-ratio: 16/10; position: relative; overflow: hidden; background: var(--bg-2); }
.work-thumb-window { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; gap: 5px; z-index: 2; }
.work-thumb-window span { width: 8px; height: 8px; border-radius: 9999px; background: rgba(255,255,255,.5); }
.work-thumb-shape { position: absolute; inset: 36px 16px 16px; border-radius: 8px; background: rgba(255,255,255,.18); backdrop-filter: blur(2px); }
.tone-a { background: linear-gradient(135deg, #4169E1, #6589EE); }
.tone-b { background: linear-gradient(135deg, #2944A4, #4169E1); }
.tone-c { background: linear-gradient(135deg, #1F3580, #3457C9); }
.tone-d { background: linear-gradient(135deg, #6589EE, #B9CDFB); }
.tone-e { background: linear-gradient(135deg, #16275C, #2944A4); }
.tone-f { background: linear-gradient(135deg, #3457C9, #8FAEF7); }
.work-meta { padding: 18px 20px 22px; }
.work-meta h4 { font-size: 17px; margin: 8px 0 4px; }
.work-meta .work-tech { font-size: 13px; color: var(--fg-3); font-family: var(--font-mono); direction: ltr; display: block; }

/* ---------- "why" banners ---------- */
.why-banner {
    border-radius: var(--radius-xl);
    padding: 28px;
    position: relative;
    overflow: hidden;
}
.why-banner.dark {
    background: linear-gradient(135deg, var(--brand-900), var(--brand-700));
    color: #fff;
}
.why-banner.dark h3 { color: #fff; }
.why-banner.dark p { color: rgba(255,255,255,.82); }
.why-banner.tint { background: var(--bg-brand-soft); border: 1px solid var(--brand-100); }
.why-banner.outline { background: var(--bg-1); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.why-banner h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 12px; line-height: 1.3; font-weight: 700; }
.why-banner p { font-size: 16px; line-height: 1.85; margin: 0; }
.why-banner .why-icon { width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 18px; }
.why-banner.dark .why-icon { background: rgba(255,255,255,.12); color: #fff; }
.why-banner.tint .why-icon { background: var(--brand-500); color: #fff; }
.why-banner.outline .why-icon { background: var(--brand-50); color: var(--brand-600); }
.why-banner .stat { display: inline-flex; align-items: baseline; gap: 8px; margin-top: 18px; padding: 10px 16px; border-radius: 9999px; }
.why-banner.dark .stat { background: rgba(255,255,255,.10); }
.why-banner.tint .stat { background: var(--bg-1); }
.why-banner .stat b { font-size: 22px; font-weight: 700; color: var(--brand-300); }
.why-banner.tint .stat b { color: var(--brand-700); }
.why-banner.outline .stat b { color: var(--brand-700); }
.why-banner .stat span { font-size: 13px; opacity: .85; }

.why-grid-2 { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
@media (max-width: 991px) { .why-grid-2 { grid-template-columns: 1fr; } }

/* mountain motif (subtle bg pattern using logo color) */
.why-banner .motif {
    position: absolute;
    inset-inline-end: -40px;
    bottom: -40px;
    width: 220px;
    height: 220px;
    opacity: .08;
    background-image: url('../../assets/logo.png');
    background-repeat: no-repeat;
    background-size: contain;
    filter: brightness(0) invert(1);
    pointer-events: none;
}
.why-banner.tint .motif, .why-banner.outline .motif { filter: none; opacity: .06; }

/* ---------- brands strip ---------- */
.brands-strip { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; }
.brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: 9999px;
    font-weight: 600;
    color: var(--fg-2);
    font-size: 15px;
    transition: all var(--dur-fast) var(--ease-out);
}
.brand-chip:hover { border-color: var(--brand-300); color: var(--brand-700); transform: translateY(-1px); }
.brand-chip i { color: var(--brand-500); font-size: 18px; }

/* ---------- testimonials ---------- */
.testi-card {
    background: var(--bg-1);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 28px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: all var(--dur-base) var(--ease-out);
}
.testi-card:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.testi-card .quote { color: var(--brand-500); font-size: 28px; line-height: 1; }
.testi-card .body { font-size: 15.5px; line-height: 1.85; color: var(--fg-2); margin: 0; flex: 1; }
.testi-card .who { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.testi-card .avatar { width: 44px; height: 44px; border-radius: 9999px; background: linear-gradient(135deg, var(--brand-400), var(--brand-700)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
.testi-card .name { font-weight: 600; color: var(--fg-1); font-size: 14px; }
.testi-card .role { font-size: 12px; color: var(--fg-3); }
.stars { color: var(--warning-500); font-size: 14px; }

/* ---------- FAQ — modern card grid ---------- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
@media (max-width: 767px) { .faq-grid { grid-template-columns: 1fr; gap: 12px; } }

.faq-card {
    background: var(--bg-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0;
    transition: all var(--dur-base) var(--ease-out);
    position: relative;
    overflow: hidden;
}
.faq-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.faq-card[open] {
    border-color: var(--brand-300);
    box-shadow: var(--shadow-md);
    background: linear-gradient(180deg, var(--brand-50) 0%, var(--bg-1) 60px);
}

.faq-card > summary {
    list-style: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 22px 24px;
    cursor: pointer;
    user-select: none;
}
.faq-card > summary::-webkit-details-marker { display: none; }

.faq-q-num {
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-600);
    background: var(--brand-50);
    padding: 4px 10px;
    border-radius: 9999px;
    direction: ltr;
}
.faq-card[open] .faq-q-num { background: var(--brand-500); color: #fff; }

.faq-q {
    font-size: 16px;
    font-weight: 600;
    color: var(--fg-1);
    line-height: 1.5;
}

.faq-toggle {
    width: 36px;
    height: 36px;
    border-radius: 9999px;
    background: var(--bg-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-700);
    transition: all var(--dur-base) var(--ease-out);
    flex-shrink: 0;
}
.faq-card[open] .faq-toggle {
    background: var(--brand-600);
    color: #fff;
    transform: rotate(45deg);
}

.faq-a {
    padding: 0 24px 24px;
    margin-inline-start: calc(36px + 14px);
    color: var(--fg-2);
    line-height: 1.85;
    font-size: 14.5px;
    animation: faqFade .25s var(--ease-out);
}
@media (max-width: 575px) {
    .faq-card > summary { padding: 18px 16px; gap: 10px; }
    .faq-q { font-size: 15px; }
    .faq-a { padding: 0 16px 18px; margin-inline-start: 0; }
}
@keyframes faqFade {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: none; }
}

/* ---------- mobile responsiveness for why-banners ---------- */
@media (max-width: 767px) {
    .why-banner { padding: 28px 22px; border-radius: var(--radius-lg); }
    .why-banner h3 { font-size: 22px; }
    .why-banner p { font-size: 15px; }
    .why-banner .stat { padding: 8px 12px; }
    .why-banner .stat b { font-size: 18px; }
    .why-banner .motif { width: 140px; height: 140px; inset-inline-end: -28px; bottom: -28px; }
}
@media (max-width: 575px) {
    .hero { padding: 56px 0 64px; }
    .section-title { font-size: 26px; }
    .section-sub { font-size: 15px; }
    .seg-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
    .seg-tab { white-space: nowrap; }
    .brand-chip { padding: 10px 16px; font-size: 14px; }
}

/* ---------- blog ---------- */
.blog-card {
    background: var(--bg-1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all var(--dur-base) var(--ease-out);
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.blog-thumb { aspect-ratio: 16/9; background: var(--bg-2); position: relative; }
.blog-body { padding: 22px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.blog-body .cat { font-size: 12px; color: var(--brand-700); font-weight: 600; letter-spacing: .02em; }
.blog-body h4 { font-size: 18px; line-height: 1.5; margin: 8px 0 10px; }
.blog-body p { font-size: 14px; color: var(--fg-3); margin: 0 0 14px; line-height: 1.7; flex: 1; }
.blog-meta { display: flex; gap: 14px; font-size: 12px; color: var(--fg-3); padding-top: 12px; border-top: 1px solid var(--border); }

/* ---------- footer ---------- */
.site-footer { background: var(--brand-900); color: rgba(255,255,255,.75); padding: 64px 0 24px; }
.site-footer h5 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; letter-spacing: .02em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255,255,255,.7); font-size: 14px; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.site-footer .word { color: #fff; font-size: 22px; font-weight: 800; }
.site-footer .word .accent { color: var(--brand-300); }
.site-footer .lead { color: rgba(255,255,255,.6); font-size: 14px; line-height: 1.85; margin-top: 12px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; font-size: 13px; }
.social-row { display: flex; gap: 8px; }
.social-row a { width: 36px; height: 36px; border-radius: 9999px; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background var(--dur-fast) var(--ease-out); }
.social-row a:hover { background: var(--brand-500); }

/* ---------- form (contact-ish, used in CTA) ---------- */
.form-control, .form-select {
    font-family: var(--font-sans);
    border-radius: var(--radius-md);
    border-color: var(--border);
    padding: 10px 14px;
}
.form-control:focus, .form-select:focus { border-color: var(--brand-500); box-shadow: var(--shadow-focus); }

/* utility tweaks for RTL Bootstrap */
.section-pad .text-center .section-sub { margin-inline: auto; }
