/*
Theme Name:        ExportBridge
Theme URI:         https://exportbridge.ir
Author:            ExportBridge Team
Author URI:        https://exportbridge.ir
Description:       تم اختصاصی وردپرس برای اکسپورت بریج؛ مشاوره تخصصی صادرات، توسعه بازار و جذب مشتریان بین‌المللی. بهینه‌سازی‌شده برای موتورهای جست‌وجوی سنتی و موتورهای پاسخ‌گوی هوش مصنوعی (GEO/AEO).
Version:           1.0.0
Requires at least: 6.4
Tested up to:      6.6
Requires PHP:      8.1
License:           GNU General Public License v2 or later
License URI:       LICENSE
Text Domain:       exportbridge
Domain Path:       /languages
Tags:              custom-background, custom-logo, custom-menu, editor-style, featured-images, rtl-language-support, translation-ready, threaded-comments, accessibility-ready

ExportBridge is a custom-built WordPress theme following WordPress Coding
Standards, designed for a B2B export consulting and trading business.
It is RTL-first (Persian), structurally ready for Arabic via
Polylang/WPML, and built around Semantic HTML + JSON-LD Structured Data
for both traditional SEO and AI answer-engine discoverability (GEO).
*/

/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
	/* Brand colors, derived from the ExportBridge logo/brand kit */
	--eb-color-primary: #1F5FBF;      /* Blue  — trust, corporate, global */
	--eb-color-secondary: #16A085;    /* Teal/Green — growth, bridge, trade */
	--eb-color-neutral: #D5D9DD;      /* Light gray — backgrounds, borders */

	/* Derived / functional tones */
	--eb-color-primary-dark: #163F80;
	--eb-color-primary-light: #EAF1FB;
	--eb-color-secondary-dark: #0F6E5C;
	--eb-color-secondary-light: #E7F5F1;

	--eb-color-text: #12181F;
	--eb-color-text-muted: #4B5563;
	--eb-color-text-inverse: #FFFFFF;

	--eb-color-bg: #FFFFFF;
	--eb-color-bg-alt: #F7F8FA;
	--eb-color-border: var(--eb-color-neutral);

	--eb-color-success: #16A085;
	--eb-color-warning: #C77D18;
	--eb-color-danger: #C0392B;

	/* Typography */
	--eb-font-body: "Vazirmatn", "Tahoma", system-ui, sans-serif;
	--eb-font-heading: "Vazirmatn", "Tahoma", system-ui, sans-serif;

	--eb-fs-base: 1rem;
	--eb-fs-sm: 0.875rem;
	--eb-fs-lg: 1.125rem;
	--eb-fs-xl: 1.375rem;
	--eb-fs-2xl: 1.75rem;
	--eb-fs-3xl: 2.25rem;
	--eb-fs-4xl: 2.75rem;

	--eb-lh-base: 1.8;
	--eb-lh-heading: 1.4;

	/* Spacing scale (logical, direction-agnostic) */
	--eb-space-1: 0.25rem;
	--eb-space-2: 0.5rem;
	--eb-space-3: 0.75rem;
	--eb-space-4: 1rem;
	--eb-space-6: 1.5rem;
	--eb-space-8: 2rem;
	--eb-space-12: 3rem;
	--eb-space-16: 4rem;
	--eb-space-24: 6rem;

	/* Layout */
	--eb-container-max: 1200px;
	--eb-radius-sm: 6px;
	--eb-radius-md: 10px;
	--eb-radius-lg: 16px;
	--eb-shadow-sm: 0 1px 2px rgba(18, 24, 31, 0.06);
	--eb-shadow-md: 0 8px 24px rgba(18, 24, 31, 0.08);
	--eb-transition: 180ms ease;
}

/* ==========================================================================
   2. RESET / BASE (logical properties — RTL by default, LTR-ready)
   ========================================================================== */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	direction: rtl;
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

html[dir="ltr"] {
	direction: ltr;
}

body {
	margin: 0;
	font-family: var(--eb-font-body);
	font-size: var(--eb-fs-base);
	line-height: var(--eb-lh-base);
	color: var(--eb-color-text);
	background-color: var(--eb-color-bg);
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}

img,
picture,
video,
svg {
	max-inline-size: 100%;
	block-size: auto;
	display: block;
}

a {
	color: var(--eb-color-primary);
	text-decoration: none;
	transition: color var(--eb-transition);
}

a:hover,
a:focus {
	color: var(--eb-color-secondary-dark);
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--eb-font-heading);
	line-height: var(--eb-lh-heading);
	font-weight: 700;
	color: var(--eb-color-text);
	margin-block: 0 var(--eb-space-4);
}

h1 { font-size: var(--eb-fs-4xl); }
h2 { font-size: var(--eb-fs-3xl); }
h3 { font-size: var(--eb-fs-2xl); }
h4 { font-size: var(--eb-fs-xl); }

p {
	margin-block: 0 var(--eb-space-4);
	color: var(--eb-color-text-muted);
}

ul, ol {
	padding-inline-start: var(--eb-space-6);
	margin-block: 0 var(--eb-space-4);
}

/* ==========================================================================
   3. ACCESSIBILITY
   ========================================================================== */

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: var(--eb-color-bg);
	border-radius: var(--eb-radius-sm);
	box-shadow: var(--eb-shadow-md);
	clip: auto !important;
	clip-path: none;
	color: var(--eb-color-text);
	display: block;
	font-size: var(--eb-fs-sm);
	font-weight: 700;
	height: auto;
	inset-inline-start: var(--eb-space-4);
	inset-block-start: var(--eb-space-4);
	line-height: normal;
	padding: var(--eb-space-3) var(--eb-space-4);
	text-decoration: none;
	width: auto;
	z-index: 100000;
	position: fixed;
}

:focus-visible {
	outline: 3px solid var(--eb-color-primary);
	outline-offset: 2px;
}

/* ==========================================================================
   4. LAYOUT PRIMITIVES
   ========================================================================== */

.eb-container {
	max-inline-size: var(--eb-container-max);
	margin-inline: auto;
	padding-inline: var(--eb-space-6);
}

.eb-section {
	padding-block: var(--eb-space-16);
}

.eb-section--alt {
	background-color: var(--eb-color-bg-alt);
}

.eb-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--eb-space-2);
	padding: var(--eb-space-3) var(--eb-space-6);
	border-radius: var(--eb-radius-md);
	font-weight: 700;
	font-size: var(--eb-fs-base);
	border: 2px solid transparent;
	cursor: pointer;
	transition: background-color var(--eb-transition), color var(--eb-transition), border-color var(--eb-transition);
}

.eb-btn--primary {
	background-color: var(--eb-color-primary);
	color: var(--eb-color-text-inverse);
}

.eb-btn--primary:hover,
.eb-btn--primary:focus {
	background-color: var(--eb-color-primary-dark);
	color: var(--eb-color-text-inverse);
}

.eb-btn--secondary {
	background-color: var(--eb-color-secondary);
	color: var(--eb-color-text-inverse);
}

.eb-btn--secondary:hover,
.eb-btn--secondary:focus {
	background-color: var(--eb-color-secondary-dark);
	color: var(--eb-color-text-inverse);
}

.eb-btn--outline {
	background-color: transparent;
	border-color: var(--eb-color-primary);
	color: var(--eb-color-primary);
}

.eb-btn--outline:hover,
.eb-btn--outline:focus {
	background-color: var(--eb-color-primary-light);
}

/* This stylesheet intentionally holds only the WordPress-required header +
   design tokens + minimal base/reset layer. Component-level styles for
   header, footer, hero, services, FAQ, cta, and contact are organized in
   separate files under assets/css/ and enqueued via inc/enqueue.php, so the
   theme stays maintainable as it grows (see inc/enqueue.php in an upcoming step). */
