/* ============================================================
   TADVIN 724 — DESIGN TOKENS
   Unified palette + typography + spacing.
   Overrides the parent theme's variables globally.
   ============================================================ */

/* ============================================================
   TADVIN 724 — DESIGN TOKENS (Wine / Burgundy Palette)
   ============================================================ */

:root {
    /* ============================================================
       BRAND — WINE (used sparingly)
       ============================================================ */
    --lc-color-primary:        #631414;
    --lc-color-primary-hover:  #380D0E;
    --lc-color-primary-active: #190808;
    --lc-color-primary-light:  #F5E8E8;
    --lc-color-primary-lighter:#FBFAF8;

    /* ============================================================
       ACCENT — WARM TAUPE (secondary brand)
       ============================================================ */
    --lc-color-accent:         #8B6F5C;
    --lc-color-accent-hover:   #6F5748;
    --lc-color-accent-light:   #F2EBE5;

    /* ============================================================
       TERTIARY — SAGE (success / "included" / info-positive)
       ============================================================ */
    --lc-color-sage:           #5A7A6B;
    --lc-color-sage-hover:     #46604F;
    --lc-color-sage-light:     #EAF1ED;

    /* ============================================================
       NEUTRAL TEXT
       ============================================================ */
    --lc-color-text:           #1A1416;   /* ink with a warm undertone */
    --lc-color-text-secondary: #4F3E3D;
    --lc-color-text-muted:     #6B5A59;
    --lc-color-text-light:     #A99B99;

    /* ============================================================
       SURFACES
       ============================================================ */
    --lc-color-background:     #FBFAF8;   /* cream */
    --lc-color-background-alt: #F3EFEA;   /* warm gray — softer than before */
    --lc-color-background-hover:#EDE6E0;

    /* ============================================================
       BORDERS — warmer, softer
       ============================================================ */
    --lc-color-border:         #E5DED7;
    --lc-color-border-light:   #F0EAE4;
    --lc-color-border-dark:    #C9BDB4;

    /* ============================================================
       SEMANTIC
       ============================================================ */
    --lc-color-success:        #5A7A6B;
    --lc-color-success-bg:     #EAF1ED;
    --lc-color-danger:         #9D0208;
    --lc-color-danger-bg:      #FBE9E9;
    --lc-color-warning:        #B08900;
    --lc-color-warning-bg:     #FCF5E0;
    --lc-color-info:           #4A6B8A;
    --lc-color-info-bg:        #EAF1F7;

    /* ============================================================
       LINKS
       ============================================================ */
    --lc-color-link:           #631414;
    --lc-color-link-hover:     #380D0E;

    /* ============================================================
       TYPOGRAPHY / SPACING / RADIUS / SHADOWS / TRANSITIONS
       (keep the values you already have — unchanged)
       ============================================================ */
    /* ... keep all the existing --lc-font-*, --lc-space-*, --lc-radius-*,
           --lc-shadow-*, --lc-transition-*, --lc-container-width etc. ... */
           
    --lc-font-family-base:     'YekanBakh', -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
    --lc-font-family-headings: 'YekanBakh', -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
    --lc-font-family-monospace:'Courier New', monospace;

    --lc-font-size-xs: 0.75rem;
    --lc-font-size-sm: 0.8125rem;
    --lc-font-size-base: 0.9375rem;
    --lc-font-size-md: 1rem;
    --lc-font-size-lg: 1.125rem;
    --lc-font-size-xl: 1.25rem;
    --lc-font-size-2xl: 1.5rem;
    --lc-font-size-3xl: 1.75rem;
    --lc-font-size-4xl: 2.25rem;
    --lc-font-size-5xl: 2.75rem;

    --lc-font-weight-normal: 400;
    --lc-font-weight-medium: 500;
    --lc-font-weight-semibold: 600;
    --lc-font-weight-bold: 700;
    --lc-font-weight-black: 800;

    --lc-line-height-base: 1.8;
    --lc-line-height-headings: 1.35;
    --lc-letter-spacing-normal: -0.01em;
    --lc-letter-spacing-tight: -0.02em;

    /* ---------- SPACING ---------- */
    --lc-space-1: 0.25rem;
    --lc-space-2: 0.5rem;
    --lc-space-3: 0.75rem;
    --lc-space-4: 1rem;
    --lc-space-5: 1.5rem;
    --lc-space-6: 2rem;
    --lc-space-7: 3rem;
    --lc-space-8: 4rem;

    /* ---------- LAYOUT ---------- */
    --lc-container-width: 1200px;
    --lc-content-width: 780px;

    /* ---------- RADIUS ---------- */
    --lc-radius-sm: 6px;
    --lc-radius-md: 10px;
    --lc-radius-lg: 14px;
    --lc-radius-xl: 20px;
    --lc-radius-2xl: 24px;
    --lc-radius-full: 9999px;

    /* ---------- SHADOWS (warm-tinted) ---------- */
    --lc-shadow-xs: 0 1px 2px rgba(25, 8, 8, 0.04);
    --lc-shadow-sm: 0 1px 3px rgba(25, 8, 8, 0.06);
    --lc-shadow-md: 0 4px 12px rgba(99, 20, 20, 0.08);
    --lc-shadow-lg: 0 8px 24px rgba(99, 20, 20, 0.10);
    --lc-shadow-focus: 0 0 0 3px rgba(99, 20, 20, 0.15);

    /* ---------- TRANSITIONS ---------- */
    --lc-transition-fast: 0.15s ease;
    --lc-transition-base: 0.2s ease;
    --lc-transition-slow: 0.3s ease;

    /* ---------- HEADER ---------- */
    --lc-header-height: 72px;
    --lc-header-height-mobile: 60px;
}
/* ============================================================
   TYPOGRAPHY OVERRIDES
   ============================================================ */

body {
    font-family: var(--lc-font-family-base);
    font-size: var(--lc-font-size-base);
    font-weight: var(--lc-font-weight-normal);
    line-height: var(--lc-line-height-base);
    letter-spacing: var(--lc-letter-spacing-normal);
    color: var(--lc-color-text);
    background-color: var(--lc-color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--lc-font-family-headings);
    font-weight: var(--lc-font-weight-bold);
    line-height: var(--lc-line-height-headings);
    letter-spacing: var(--lc-letter-spacing-tight);
    color: var(--lc-color-text);
}

h1 { font-size: var(--lc-font-size-4xl); font-weight: var(--lc-font-weight-black); }
h2 { font-size: var(--lc-font-size-3xl); font-weight: var(--lc-font-weight-bold); }
h3 { font-size: var(--lc-font-size-2xl); font-weight: var(--lc-font-weight-bold); }
h4 { font-size: var(--lc-font-size-xl); font-weight: var(--lc-font-weight-semibold); }
h5 { font-size: var(--lc-font-size-lg); font-weight: var(--lc-font-weight-semibold); }
h6 { font-size: var(--lc-font-size-md); font-weight: var(--lc-font-weight-semibold); }

p {
    margin-bottom: var(--lc-space-4);
    line-height: var(--lc-line-height-base);
}

a {
    color: var(--lc-color-link);
    text-decoration: none;
    transition: color var(--lc-transition-fast);
}

a:hover {
    color: var(--lc-color-link-hover);
}

/* ============================================================
   GLOBAL LAYOUT
   ============================================================ */

.lc-container {
    max-width: var(--lc-container-width);
    padding-inline: var(--lc-space-4);
}

@media (max-width: 768px) {
    :root {
        --lc-font-size-4xl: 1.75rem;
        --lc-font-size-3xl: 1.5rem;
        --lc-font-size-2xl: 1.375rem;
    }
}

/* ============================================================
   TADVIN 724 — GLOBAL RESETS & REFINEMENTS
   ============================================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* Better focus visible for all interactive elements */
:focus-visible {
    outline: 2px solid var(--lc-color-primary);
    outline-offset: 2px;
}

/* Remove default list styles for nav */
.lc-menu,
.lc-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Parent theme's .lc-site-main gets a big top padding — override */
.lc-site-main {
    min-height: 60vh;
}

/* Improve image defaults */
img {
    max-width: 100%;
    height: auto;
}

/* Pagination — styled to match our palette */
.pagination .nav-links,
.navigation.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--lc-space-2);
    margin: var(--lc-space-5) 0;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 var(--lc-space-3);
    background: var(--lc-color-background);
    border: 1px solid var(--lc-color-border);
    border-radius: var(--lc-radius-md);
    font-size: var(--lc-font-size-sm);
    font-weight: var(--lc-font-weight-semibold);
    color: var(--lc-color-text-secondary);
    text-decoration: none;
    transition: all var(--lc-transition-fast);
    line-height: 1;
}

.pagination .page-numbers:hover {
    border-color: var(--lc-color-primary);
    color: var(--lc-color-primary);
}

.pagination .page-numbers.current {
    background: var(--lc-color-primary);
    border-color: var(--lc-color-primary);
    color: #fff;
}

.pagination .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 var(--lc-space-1);
    color: var(--lc-color-text-muted);
}

.pagination .page-numbers.prev,
.pagination .page-numbers.next {
    padding: 0 var(--lc-space-4);
    gap: var(--lc-space-2);
}

[dir="rtl"] .pagination .page-numbers.prev svg,
[dir="rtl"] .pagination .page-numbers.next svg {
    transform: rotate(180deg);
}

@media (max-width: 480px) {
    .pagination .page-numbers {
        min-width: 36px;
        height: 36px;
        font-size: var(--lc-font-size-xs);
    }
}