:root {
    --color-primary: var(--primary-color, #2E4220);
    --color-secondary: var(--secondary-color, #A8D5BA);
    --color-text: #212529;
    --color-text-muted: #6c757d;
    --color-border: #e1e1e1;
    --color-surface: #ffffff;
    --color-danger: #dc3545;

    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 50px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);

    --font-latin: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-arabic: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, 'Noto Sans Arabic', Arial, sans-serif;
    --font-body: var(--font-latin);
    --font-heading: var(--font-body);

    --text-xs: 0.8125rem;
    --text-sm: 0.9375rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.375rem;
    --text-2xl: clamp(1.5rem, 1.25rem + 1vw, 1.9rem);
    --text-3xl: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);

    --weight-normal: 400;
    --weight-medium: 500;
    --weight-semibold: 600;
    --weight-bold: 700;

    --leading-body: 1.6;
    --leading-tight: 1.4;
    --leading-heading: 1.25;

    --focus-ring: #1f2937;
    --focus-gap: #ffffff;

    --icon-sm: 0.875rem;
    --icon-md: 1rem;
    --icon-lg: 1.25rem;

    --transition-fast: all 0.2s ease;
    --transition-base: all 0.3s ease;
}

.visually-hidden-seo {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.icon-sm, .icon-md, .icon-lg { display: inline-block; line-height: 1; vertical-align: -0.125em; flex-shrink: 0; }
.icon-sm { font-size: var(--icon-sm); }
.icon-md { font-size: var(--icon-md); }
.icon-lg { font-size: var(--icon-lg); }

html[lang="ar"] {
    --font-body: var(--font-arabic);
    --font-heading: var(--font-arabic);
    --leading-body: 1.8;
    --leading-tight: 1.6;
    --leading-heading: 1.5;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--weight-normal);
    line-height: var(--leading-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

button, input, select, textarea { font-family: inherit; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: var(--weight-bold);
    line-height: var(--leading-heading);
    text-wrap: balance;
}
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }
h5, h6 { font-size: var(--text-base); }

p { text-wrap: pretty; }

html[lang="ar"] * { letter-spacing: normal !important; }
html[lang="ar"] strong, html[lang="ar"] b { font-weight: var(--weight-bold); }

@media (max-width: 767px) {
    input, select, textarea { font-size: max(16px, 1em); }
}

/* Keyboard focus — one neutral, layered ring that stays visible on light
   surfaces, dark surfaces and tenant-coloured components without ever
   altering the tenant colour itself. Shown for keyboard use only. */
.pd-lightbox, .footer-modern, .hero-section {
    --focus-ring: #ffffff;
    --focus-gap: rgba(0, 0, 0, 0.55);
}

:is(a[href], button, summary, select, textarea, input, [role="button"], [role="tab"], [role="option"], [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 2px solid var(--focus-ring) !important;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px var(--focus-gap);
}

:is(input:not([type="checkbox"], [type="radio"]), textarea, select):focus-visible {
    outline-offset: -2px;
    box-shadow: none;
}

::placeholder { color: var(--color-text-muted, #6c757d); opacity: 1; }


.blog-content a, .pp-content a, .policy-content a, .es-text a, .fb-text a {
    text-decoration: underline;
    text-underline-offset: 0.18em;
}
