/*
 * Theme "garden" (باغ آرام) — design tokens. Approved art direction:
 * design/approved/01-brand/art-direction/spec.md (colors section 2, type section 3, spacing section 4).
 * Layer 1 of 3 (tokens -> components -> theme templates; docs/GUARDRAILS.md section 3).
 * The previous theme "modern" stays next to this one; switching back is TAVANA_THEME=modern.
 *
 * Font: Yekan Bakh FaNum variable, purchased with a corporate-website license. The file lives in
 * config/static/fonts/yekan-bakh/ on our own server and is NEVER committed to Git (.gitignore).
 * Without the file the page falls back to the system font; nothing is loaded from outside (D-044).
 * No other web font is allowed in this theme (art direction section 1).
 */

@font-face {
    font-family: "YekanBakh";
    src: url("../../fonts/yekan-bakh/YekanBakhFaNum-VF.woff2") format("woff2-variations"),
         url("../../fonts/yekan-bakh/YekanBakhFaNum-VF.woff2") format("woff2");
    font-weight: 100 950;
    font-stretch: 62.5% 150%;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Garden palette (art direction 2.1 - 2.3). Page and hero background is white (owner, 1405/08/19).
     * Step 58: palette colours read the active palette of «ظاهر سایت» (tavana/css/tokens.css, data-palette on <html>). */
    --c-bg: #FFFFFF;
    --c-wash: var(--p-bg, #EDF2EE);          /* alternating sections, cards, mobile menu */
    --c-paper: #FFFFFF;
    --c-sage: var(--p-sage, #D3E3DA);          /* active menu item, doctor icon background */
    --c-ink: var(--p-ink, #183B3A);           /* headings and main text */
    --c-text-2: var(--p-text-2, #3A5552);        /* long text */
    --c-muted: var(--p-muted, #4D6662);         /* helper text */
    --c-action: var(--p-action, #0A6B69);        /* buttons, links, bold headline word, focus ring */
    --c-action-hover: var(--p-action-hover, #085856);
    --c-action-press: var(--p-action-press, #074A48);
    --c-leaf: #3F7A31;          /* "free appointment" dot, success */
    --c-dot: var(--p-dot, #5AB94D);           /* decoration only, never text */
    --c-deep: var(--p-deep, #24564F);          /* the one dark section */
    --c-deep-card: var(--p-deep-card, #2D6159);
    --c-deep-text: var(--p-deep-text, #F2F6F3);
    --c-deep-muted: var(--p-deep-muted, #C4D8D1);
    --c-line: var(--p-line, #E1EAE4);
    --c-line-2: var(--p-line-2, #C9D8CF);
    --c-brick: #A3532F;         /* accent only, under ~2% of the page; never on buttons */
    --c-brick-wash: #F7EBE3;
    --c-error: #B42318;
    --c-error-wash: #FCEDEB;
    --c-success-wash: #E6F0E1;
    --c-disabled-bg: #E3EAE6;
    --c-disabled-text: #6B807C;

    /* Logo colors, decoration only */
    --brand-teal: #05928D;
    --brand-sky: #45B5E9;
    --brand-leaf: #8EC85C;
    --brand-petrol: #0E3A47;

    /* Color roles used by the shared components (components.css) */
    --color-primary: var(--c-action);
    --color-primary-strong: var(--c-deep);
    --color-primary-soft: var(--c-wash);
    --color-accent: var(--c-dot);
    --color-accent-text: var(--c-leaf);
    --color-sky: var(--brand-sky);
    --color-sky-soft: #E3F3FC;
    --color-sky-text: #1F6F99;
    --color-leaf-soft: var(--c-success-wash);
    --color-leaf-text: var(--c-leaf);
    --gradient-brand: linear-gradient(90deg, var(--brand-teal), var(--brand-sky) 55%, var(--brand-leaf));
    --color-bg: var(--c-bg);
    --color-bg-alt: var(--c-wash);
    --color-surface: var(--c-paper);
    --color-text: var(--c-text-2);
    --color-text-muted: var(--c-muted);
    --color-heading: var(--c-ink);
    --color-line: var(--c-line);
    --color-focus: var(--c-action);
    --color-success: var(--c-leaf);
    --color-success-soft: var(--c-success-wash);
    --color-warning: #9A5B00;
    --color-warning-soft: #FFF3DC;
    --color-danger: var(--c-error);
    --color-danger-soft: var(--c-error-wash);
    --color-on-primary: #FFFFFF;

    /* Typography: Yekan Bakh only (art direction section 1 and 3) */
    --font-display: "YekanBakh", system-ui, Tahoma, sans-serif;
    --font-body: "YekanBakh", system-ui, Tahoma, sans-serif;
    --font-brand: "YekanBakh", system-ui, Tahoma, sans-serif;
    --font-body-scale: 1;
    --brand-scale: 1;
    --weight-light: 300;
    --weight-regular: 400;
    --weight-bold: 600;
    --weight-black: 750;

    /* Type scale: same fluid scale as before, between 360px and 1440px screens */
    --step--1: clamp(0.9rem, 0.87rem + 0.12vw, 0.95rem);
    --step-0: clamp(1rem, 0.96rem + 0.19vw, 1.125rem);
    --step-1: clamp(1.2rem, 1.13rem + 0.33vw, 1.41rem);
    --step-2: clamp(1.44rem, 1.32rem + 0.56vw, 1.76rem);
    --step-3: clamp(1.73rem, 1.53rem + 0.9vw, 2.2rem);
    --step-4: clamp(2.07rem, 1.76rem + 1.4vw, 2.75rem);
    --step-5: clamp(2.49rem, 2rem + 2.2vw, 3.6rem);
    --leading-body: 1.85;
    --leading-heading: 1.5;
    --measure: 68ch;

    /* Space: 4px rhythm */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --space-7: 3rem;
    --space-8: 4rem;
    --space-9: 6rem;
    --gutter: clamp(1rem, 0.6rem + 1.8vw, 2rem);
    --container: 82rem;          /* 1312px content inside a 1440px page */
    --page-max: 90rem;           /* 1440px */
    --page-pad: 64px;            /* side margin at 1280px and up (art direction 4.4) */

    /* Shape and depth */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-xl: 36px;
    --radius-pill: 999px;
    --border: 1px solid var(--color-line);
    --shadow-sm: 0 4px 12px rgba(24, 59, 58, 0.06);
    --shadow-md: 0 10px 26px rgba(24, 59, 58, 0.08);
    --shadow-lg: 0 24px 60px rgba(24, 59, 58, 0.12);

    /* Motion */
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 150ms;
    --duration: 250ms;

    /* Interaction */
    --tap-target: 48px;
}

html {
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
}

/* The panel's old font-set and palette choices do not apply to this theme: one font, one palette. */
