/*
Theme Name: Dariba Tax Intelligence
Theme URI: https://dariba.co
Author: dariba.co
Author URI: https://dariba.co
Description: A professional, bilingual (English/Arabic) WordPress theme for dariba.co — Saudi Arabia's independent tax intelligence platform. Institutional design with Deep Slate Blue, Tax Gold, and Regulatory Steel palette. RTL/LTR ready, Polylang compatible.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
License URI: https://dariba.co
Text Domain: dariba
Tags: bilingual, rtl-language-support, custom-colors, custom-logo, custom-menu, featured-images, footer-widgets, theme-options, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --slate:        #1C3A5E;
  --slate-mid:    #254d7a;
  --slate-dark:   #112236;
  --gold:         #C5963A;
  --gold-light:   #d9ad5a;
  --gold-pale:    #f5edd8;
  --steel:        #4A6FA5;
  --steel-light:  #7fa8d0;
  --steel-pale:   #e8eff8;
  --canvas:       #FAFAF8;
  --surface:      #F4F3F0;
  --border:       #E0DFDB;
  --border-mid:   #c8c7c2;
  --muted:        #9A9890;
  --body-text:    #6B6860;
  --heading-text: #2C2B28;
  --white:        #ffffff;

  --font-serif:   'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --font-sans:    'DM Sans', system-ui, sans-serif;
  --font-arabic:  'IBM Plex Arabic', 'Noto Naskh Arabic', Arial, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Courier New', monospace;

  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    12px;

  --max-width:    1200px;
  --content-width: 720px;

  --transition: 0.2s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--body-text);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* RTL support */
body.rtl,
[dir="rtl"] {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--steel); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
ul { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--heading-text);
  line-height: 1.2;
  font-weight: 600;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
  font-family: var(--font-arabic);
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

[dir="rtl"] .eyebrow {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.container--narrow {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.section { padding-block: 5rem; }
.section--sm { padding-block: 3rem; }
.section--lg { padding-block: 7rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .container, .container--narrow { padding-inline: 1.25rem; }
  .section { padding-block: 3.5rem; }
}

/* Flex helpers */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Text alignment */
.text-center { text-align: center; }
.text-start { text-align: start; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

[dir="rtl"] .btn { font-family: var(--font-arabic); }

.btn-primary {
  background: var(--gold);
  color: var(--slate-dark);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--slate-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}

.btn-outline-slate {
  background: transparent;
  color: var(--slate);
  border-color: var(--slate);
}
.btn-outline-slate:hover {
  background: var(--slate);
  color: var(--white);
}

/* ============================================================
   SITE HEADER & NAVIGATION
   ============================================================ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
  transition: box-shadow var(--transition);
}

#site-header.scrolled {
  box-shadow: 0 2px 20px rgba(28,58,94,0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo svg { width: 120px; height: auto; }

/* Primary nav */
#primary-nav ul {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

#primary-nav ul li a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body-text);
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  text-decoration: none;
}

#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item > a {
  color: var(--slate);
  background: var(--surface);
}

/* Language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-switcher a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.375rem 0.625rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  transition: all var(--transition);
}

.lang-switcher a:hover,
.lang-switcher a.active {
  background: var(--surface);
  color: var(--slate);
}

.lang-divider {
  width: 0.5px;
  height: 14px;
  background: var(--border);
}

/* Header CTA */
.header-cta { margin-inline-start: 1rem; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--slate);
  transition: all var(--transition);
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  #primary-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 0.5px solid var(--border);
    padding: 1rem 2rem 1.5rem;
    box-shadow: 0 8px 24px rgba(28,58,94,0.08);
  }

  #primary-nav.open { display: block; }
  #primary-nav ul { flex-direction: column; align-items: flex-start; gap: 0; }
  #primary-nav ul li a { display: block; padding: 0.75rem 0.5rem; }

  [dir="rtl"] #primary-nav ul { align-items: flex-end; }

  .lang-switcher { margin-inline-start: auto; }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--slate);
  color: var(--white);
  padding-block: 6rem 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(197,150,58,0.03) 0px,
      rgba(197,150,58,0.03) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(197,150,58,0.03) 0px,
      rgba(197,150,58,0.03) 1px,
      transparent 1px,
      transparent 80px
    );
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 500px;
  height: 500px;
  border: 0.5px solid rgba(197,150,58,0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 2rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 0.5px solid rgba(197,150,58,0.35);
  padding: 0.375rem 0.875rem;
  border-radius: 2px;
  margin-bottom: 1.75rem;
}

.hero-badge-dot {
  width: 5px;
  height: 5px;
  background: var(--gold);
  border-radius: 50%;
}

.hero h1 {
  color: var(--white);
  font-family: var(--font-serif);
  max-width: 760px;
  margin-bottom: 0.5rem;
}

[dir="rtl"] .hero h1 { font-family: var(--font-arabic); }

.hero-tagline {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 2vw, 1.375rem);
  color: var(--gold);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

[dir="rtl"] .hero-tagline { font-family: var(--font-arabic); font-style: normal; }

.hero-desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.7);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-rule {
  width: 48px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 2rem;
  opacity: 0.6;
}

/* Hero trust bar */
.hero-trust {
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 0.5px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.trust-icon {
  width: 18px;
  height: 18px;
  opacity: 0.5;
  flex-shrink: 0;
}

.trust-text {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
}

/* ============================================================
   TAX PILLARS — HOMEPAGE SECTION
   ============================================================ */
.pillars-section {
  background: var(--white);
  padding-block: 5rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header .eyebrow { margin-bottom: 0.75rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  color: var(--body-text);
  max-width: 520px;
  font-size: 1.0625rem;
}

.pillar-card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  background: var(--white);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--transition);
}

.pillar-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 4px 24px rgba(28,58,94,0.06);
}

.pillar-card:hover::before { opacity: 1; }

.pillar-icon {
  width: 40px;
  height: 40px;
  background: var(--steel-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.pillar-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--slate);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pillar-card h3 {
  font-size: 1.125rem;
  color: var(--heading-text);
  margin-bottom: 0.625rem;
}

.pillar-card p {
  font-size: 0.9375rem;
  color: var(--body-text);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.pillar-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  letter-spacing: 0.02em;
  transition: gap var(--transition), color var(--transition);
}

.pillar-link:hover { color: var(--gold); gap: 0.625rem; }

[dir="rtl"] .pillar-link { flex-direction: row-reverse; }

/* ============================================================
   AUTHORITY STRIP
   ============================================================ */
.authority-strip {
  background: var(--slate);
  padding-block: 3rem;
}

.authority-strip .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.authority-stat {
  text-align: center;
  padding: 1.5rem 2rem;
  position: relative;
}

.authority-stat + .authority-stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 48px;
  width: 0.5px;
  background: rgba(255,255,255,0.12);
}

[dir="rtl"] .authority-stat + .authority-stat::before {
  left: auto;
  right: 0;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--gold);
  display: block;
  line-height: 1;
  margin-bottom: 0.375rem;
}

.stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.4;
}

@media (max-width: 700px) {
  .authority-strip .container { grid-template-columns: 1fr 1fr; }
  .authority-stat + .authority-stat::before { display: none; }
  .authority-stat { border-bottom: 0.5px solid rgba(255,255,255,0.08); }
}

/* ============================================================
   LATEST INSIGHTS
   ============================================================ */
.insights-section { background: var(--canvas); }

.insight-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition);
}

.insight-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 4px 20px rgba(28,58,94,0.06);
}

.insight-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 0;
}

.insight-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  background: var(--steel-pale);
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
}

.insight-date {
  font-size: 0.8125rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.insight-card-body { padding: 1rem 1.5rem 1.5rem; }

.insight-card-body h3 {
  font-size: 1.125rem;
  margin-bottom: 0.625rem;
  line-height: 1.35;
}

.insight-card-body h3 a {
  color: var(--heading-text);
  text-decoration: none;
  transition: color var(--transition);
}

.insight-card-body h3 a:hover { color: var(--slate); }

.insight-card-body p {
  font-size: 0.9375rem;
  color: var(--body-text);
  margin-bottom: 1.25rem;
}

.read-more {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--steel);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.read-more:hover { color: var(--gold); }

/* ============================================================
   WHY DARIBA
   ============================================================ */
.why-section { background: var(--surface); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 800px) {
  .why-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

.why-list { display: flex; flex-direction: column; gap: 1.5rem; }

.why-item { display: flex; gap: 1.25rem; align-items: flex-start; }

[dir="rtl"] .why-item { flex-direction: row-reverse; }

.why-item-icon {
  width: 36px;
  height: 36px;
  background: var(--slate);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.why-item-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.why-item-text h4 { font-size: 1rem; color: var(--heading-text); margin-bottom: 0.375rem; }
.why-item-text p  { font-size: 0.9375rem; color: var(--body-text); margin: 0; line-height: 1.65; }

.why-visual {
  background: var(--slate);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: var(--white);
}

.why-visual-header {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.tax-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
}

.tax-rate-row:last-child { border-bottom: none; }

.tax-rate-name { font-size: 0.9375rem; color: rgba(255,255,255,0.85); }
.tax-rate-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-light);
  background: rgba(197,150,58,0.1);
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
}

/* ============================================================
   NEWSLETTER CTA
   ============================================================ */
.newsletter-section {
  background: var(--slate-dark);
  padding-block: 4rem;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 700px) {
  .newsletter-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

.newsletter-inner h2 { color: var(--white); margin-bottom: 0.5rem; }
.newsletter-inner p { color: rgba(255,255,255,0.6); margin: 0; }

.newsletter-form { display: flex; gap: 0.75rem; flex-wrap: wrap; }

.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 260px;
  padding: 0.75rem 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 0.5px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  outline: none;
  transition: border-color var(--transition);
}

.newsletter-form input[type="email"]::placeholder { color: rgba(255,255,255,0.35); }
.newsletter-form input[type="email"]:focus { border-color: var(--gold); }

/* ============================================================
   SITE FOOTER
   ============================================================ */
#site-footer {
  background: var(--slate);
  color: rgba(255,255,255,0.7);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand p {
  font-size: 0.9375rem;
  line-height: 1.7;
  margin-top: 1rem;
  margin-bottom: 0;
  color: rgba(255,255,255,0.5);
  max-width: 280px;
}

.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

[dir="rtl"] .footer-col h4 { font-family: var(--font-arabic); letter-spacing: 0; }

.footer-col ul { display: flex; flex-direction: column; gap: 0.625rem; }

.footer-col ul li a {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { font-size: 0.8125rem; color: rgba(255,255,255,0.3); margin: 0; }

.footer-legal { display: flex; gap: 1.5rem; }

.footer-legal a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.3);
}

.footer-legal a:hover { color: rgba(255,255,255,0.7); }

.footer-logo svg { width: 100px; height: auto; }

/* ============================================================
   PAGE HERO (inner pages)
   ============================================================ */
.page-hero {
  background: var(--slate);
  padding-block: 3.5rem 3rem;
  border-bottom: 0.5px solid rgba(255,255,255,0.1);
}

.page-hero .eyebrow { margin-bottom: 0.75rem; }

.page-hero h1 {
  color: var(--white);
  max-width: 640px;
  margin-bottom: 0.875rem;
}

.page-hero p {
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  font-size: 1.0625rem;
  margin: 0;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-mission {
  padding-block: 5rem;
  background: var(--white);
}

.mission-text {
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--slate);
  line-height: 1.6;
  font-weight: 400;
  border-left: 3px solid var(--gold);
  padding-left: 1.75rem;
  margin-bottom: 2.5rem;
}

[dir="rtl"] .mission-text {
  border-left: none;
  border-right: 3px solid var(--gold);
  padding-left: 0;
  padding-right: 1.75rem;
  font-family: var(--font-arabic);
}

.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }

@media (max-width: 700px) { .values-grid { grid-template-columns: 1fr; } }

.value-card {
  padding: 1.75rem;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.value-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.875rem;
  display: block;
}

.value-card h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.value-card p  { font-size: 0.9375rem; color: var(--body-text); margin: 0; }

/* ============================================================
   TAX TOPICS PAGE
   ============================================================ */
.topics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

@media (max-width: 900px) { .topics-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .topics-grid { grid-template-columns: 1fr; } }

.topic-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  transition: all var(--transition);
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}

.topic-card:hover {
  border-color: var(--slate);
  box-shadow: 0 8px 32px rgba(28,58,94,0.1);
  transform: translateY(-2px);
}

.topic-card-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity var(--transition);
}

.topic-card:hover .topic-card-accent { opacity: 1; }

.topic-rate {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 400;
  color: var(--slate);
  display: block;
  margin-bottom: 0.25rem;
  line-height: 1;
}

.topic-card h3 {
  font-size: 1.1875rem;
  color: var(--heading-text);
  margin-bottom: 0.625rem;
}

.topic-card p {
  font-size: 0.9375rem;
  color: var(--body-text);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.topic-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
}

.topic-article-count {
  color: var(--muted);
  font-family: var(--font-mono);
}

/* ============================================================
   RESOURCES PAGE
   ============================================================ */
.resources-section { background: var(--canvas); padding-block: 5rem; }

.resource-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  transition: all var(--transition);
}

.resource-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 4px 20px rgba(28,58,94,0.06);
}

.resource-icon {
  width: 48px;
  height: 60px;
  background: var(--slate);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.resource-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.resource-body { flex: 1; }

.resource-type {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
  display: block;
}

.resource-body h3 { font-size: 1.125rem; margin-bottom: 0.5rem; }
.resource-body p  { font-size: 0.9375rem; color: var(--body-text); margin-bottom: 1rem; }

.resource-actions { display: flex; gap: 0.75rem; align-items: center; }

.resource-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  font-weight: 600;
  background: var(--gold-pale);
  color: var(--slate);
}

/* ============================================================
   ADVISORY PAGE
   ============================================================ */
.advisory-hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-block: 5rem;
}

@media (max-width: 800px) {
  .advisory-hero-split { grid-template-columns: 1fr; }
}

.services-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.5rem; }

.service-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: all var(--transition);
}

.service-item:hover {
  border-color: var(--steel);
  background: var(--steel-pale);
}

[dir="rtl"] .service-item { flex-direction: row-reverse; }

.service-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  min-width: 24px;
  margin-top: 2px;
}

.service-item h4 { font-size: 1rem; margin-bottom: 0.25rem; }
.service-item p  { font-size: 0.875rem; color: var(--body-text); margin: 0; }

.advisory-form-card {
  background: var(--slate);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.advisory-form-card h3 {
  color: var(--white);
  margin-bottom: 0.5rem;
}

.advisory-form-card > p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-split {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  padding-block: 5rem;
}

@media (max-width: 800px) {
  .contact-split { grid-template-columns: 1fr; }
}

.contact-info h2 { margin-bottom: 1rem; }
.contact-info p  { color: var(--body-text); margin-bottom: 2rem; }

.contact-detail {
  display: flex;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
  align-items: flex-start;
}

[dir="rtl"] .contact-detail { flex-direction: row-reverse; }

.contact-detail-icon {
  width: 36px;
  height: 36px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--slate);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.125rem;
}

.contact-detail-text a,
.contact-detail-text p {
  font-size: 0.9375rem;
  color: var(--heading-text);
  margin: 0;
}

/* ============================================================
   FORMS (shared)
   ============================================================ */
.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--heading-text);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

[dir="rtl"] .form-group label { font-family: var(--font-arabic); }

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--canvas);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--heading-text);
  outline: none;
  transition: border-color var(--transition);
}

[dir="rtl"] .form-control { font-family: var(--font-arabic); text-align: right; }

.form-control:focus { border-color: var(--steel); }
.form-control::placeholder { color: var(--muted); }

textarea.form-control { resize: vertical; min-height: 120px; line-height: 1.6; }

select.form-control { cursor: pointer; }

/* Dark form variant */
.form-dark .form-group label { color: rgba(255,255,255,0.7); }

.form-dark .form-control {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.15);
  color: var(--white);
}

.form-dark .form-control:focus { border-color: var(--gold); }
.form-dark .form-control::placeholder { color: rgba(255,255,255,0.3); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.breadcrumbs {
  padding-block: 0.875rem;
  background: var(--surface);
  border-bottom: 0.5px solid var(--border);
}

.breadcrumbs nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.breadcrumbs a, .breadcrumbs span {
  font-size: 0.8125rem;
  color: var(--muted);
}

.breadcrumbs a:hover { color: var(--slate); }
.breadcrumbs .current { color: var(--slate); font-weight: 500; }

.breadcrumb-sep { color: var(--border-mid); }

/* ============================================================
   SINGLE POST / ARTICLE
   ============================================================ */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  padding-block: 3.5rem;
}

@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } }

.article-body h2 { font-size: 1.625rem; margin-top: 2.5rem; margin-bottom: 1rem; }
.article-body h3 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.article-body p  { margin-bottom: 1.375rem; line-height: 1.8; }

.article-body ul, .article-body ol {
  margin: 0 0 1.375rem 1.5rem;
  padding: 0;
}

[dir="rtl"] .article-body ul,
[dir="rtl"] .article-body ol {
  margin-inline-start: 0;
  margin-inline-end: 1.5rem;
}

.article-body li { margin-bottom: 0.5rem; line-height: 1.7; }

.article-body blockquote {
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

[dir="rtl"] .article-body blockquote {
  border-left: none;
  border-right: 3px solid var(--gold);
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.article-body blockquote p { margin: 0; font-style: italic; color: var(--slate); }

.article-body .compliance-box {
  background: var(--slate);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0;
}

.article-body .compliance-box h4 {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.article-body .compliance-box ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-body .compliance-box li {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.8);
  padding: 0.5rem 0;
  border-bottom: 0.5px solid rgba(255,255,255,0.08);
  display: flex;
  gap: 0.75rem;
}

.article-body .compliance-box li::before {
  content: '→';
  color: var(--gold);
  flex-shrink: 0;
}

[dir="rtl"] .article-body .compliance-box li::before { content: '←'; }

/* Article sidebar */
.article-sidebar { position: sticky; top: 88px; }

.sidebar-widget {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-widget h4 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.toc-list { display: flex; flex-direction: column; gap: 0.5rem; }

.toc-list a {
  font-size: 0.875rem;
  color: var(--body-text);
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  border-left: 2px solid transparent;
}

[dir="rtl"] .toc-list a {
  border-left: none;
  border-right: 2px solid transparent;
}

.toc-list a:hover, .toc-list a.active {
  background: var(--surface);
  color: var(--slate);
  border-color: var(--gold);
}

/* ============================================================
   SEARCH BAR
   ============================================================ */
.search-form {
  display: flex;
  align-items: center;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--white);
}

.search-form input[type="search"] {
  flex: 1;
  padding: 0.75rem 1rem;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--heading-text);
  background: transparent;
}

.search-form button {
  padding: 0.75rem 1.25rem;
  background: var(--slate);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.search-form button:hover { background: var(--slate-mid); }

.search-form button svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  gap: 0.375rem;
  align-items: center;
  justify-content: center;
  margin-top: 3rem;
}

.page-numbers {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 0.5px solid var(--border);
  font-size: 0.875rem;
  color: var(--body-text);
  transition: all var(--transition);
}

.page-numbers:hover, .page-numbers.current {
  background: var(--slate);
  color: var(--white);
  border-color: var(--slate);
}

/* ============================================================
   UTILITY CLASSES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

.gold { color: var(--gold); }
.slate { color: var(--slate); }
.muted { color: var(--muted); }

.bg-slate  { background: var(--slate); }
.bg-surface { background: var(--surface); }
.bg-white  { background: var(--white); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }

/* ============================================================
   WORDPRESS CORE COMPATIBILITY
   ============================================================ */
.wp-block-image { margin: 2rem 0; }
.wp-block-image img { border-radius: var(--radius-md); }

.alignleft { float: left; margin-right: 2rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 2rem; margin-bottom: 1rem; }
.aligncenter { margin-inline: auto; text-align: center; }

[dir="rtl"] .alignleft { float: right; margin-right: 0; margin-left: 2rem; }
[dir="rtl"] .alignright { float: left; margin-left: 0; margin-right: 2rem; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
  #site-header, #site-footer, .sidebar-widget, .newsletter-section { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  body { color: #000; }
  a { color: #000; }
}
