/* ==========================================================================
   La Marge Comptable — Design System
   ========================================================================== */

:root {
  --c-ink: #0b1f3a;
  --c-ink-2: #14304f;
  --c-ink-3: #1f4368;
  --c-paper: #fbfaf6;
  --c-paper-2: #f3efe6;
  --c-line: #e5dfd0;
  --c-mute: #6a7689;
  --c-accent: #c9a45c;
  --c-accent-2: #b48a3e;
  --c-accent-soft: #f3e7c9;
  --c-success: #2f7d5b;

  --ff-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ff-arabic: 'Tajawal', 'Inter', sans-serif;

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 31, 58, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, 0.12);

  --t-fast: 180ms cubic-bezier(.4,0,.2,1);
  --t-med: 320ms cubic-bezier(.4,0,.2,1);
  --t-slow: 600ms cubic-bezier(.4,0,.2,1);

  --max-w: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

html[dir="rtl"] body { font-family: var(--ff-arabic); }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-accent); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--c-ink);
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
  font-family: var(--ff-arabic);
  font-weight: 700;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.85rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { color: var(--c-ink-2); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-accent-2);
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--c-accent);
}

.lead { font-size: 1.12rem; color: var(--c-ink-2); max-width: 60ch; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: all var(--t-med);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--c-ink);
  color: var(--c-paper);
}
.btn-primary:hover {
  background: var(--c-accent);
  color: var(--c-ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: var(--c-ink);
}
.btn-ghost:hover {
  background: var(--c-ink);
  color: var(--c-paper);
}
.btn-light {
  background: var(--c-paper);
  color: var(--c-ink);
}
.btn-light:hover { background: var(--c-accent); }

.btn-arrow { transition: transform var(--t-med); }
.btn:hover .btn-arrow { transform: translateX(4px); }
html[dir="rtl"] .btn-arrow { transform: scaleX(-1); }
html[dir="rtl"] .btn:hover .btn-arrow { transform: scaleX(-1) translateX(4px); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all var(--t-med);
  background: rgba(251, 250, 246, 0.0);
}
.site-header.scrolled {
  background: rgba(251, 250, 246, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(11,31,58,.06);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--c-ink);
  letter-spacing: 0.01em;
}
.logo-mark { width: 40px; height: 40px; flex: 0 0 40px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text small {
  font-family: var(--ff-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 8px; }
.nav a {
  padding: 8px 14px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--c-ink-2);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 4px;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
html[dir="rtl"] .nav a::after { transform-origin: right; }

.header-tools { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  align-items: center;
  background: rgba(11,31,58,.05);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.lang-switch button {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--c-mute);
  text-transform: uppercase;
  transition: all var(--t-fast);
}
.lang-switch button.active {
  background: var(--c-ink);
  color: var(--c-paper);
}

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-paper);
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--c-paper);
  z-index: 99;
  padding: 100px 24px 40px;
  transform: translateX(100%);
  transition: transform var(--t-med);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
}
html[dir="rtl"] .mobile-nav { transform: translateX(-100%); }
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-family: var(--ff-display);
  font-size: 1.8rem;
  color: var(--c-ink);
  padding: 8px 0;
  border-bottom: 1px solid var(--c-line);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(201,164,92,.18), transparent 50%),
    radial-gradient(ellipse at bottom left, rgba(11,31,58,.04), transparent 60%),
    var(--c-paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(56px, 8vw, 120px);
  align-items: center;
}
.hero-content { max-width: 620px; }
.hero h1 {
  margin-top: 24px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-style: italic;
  color: var(--c-accent-2);
  font-weight: 400;
}
.hero-lead {
  margin-top: 28px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--c-ink-2);
}
.hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-meta {
  margin-top: 56px;
  display: flex;
  gap: clamp(18px, 2.4vw, 32px);
  flex-wrap: nowrap;
  align-items: flex-start;
}
.meta-item { min-width: 0; flex: 0 1 auto; }
.meta-item .num {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  font-weight: 500;
  color: var(--c-ink);
  line-height: 1;
}
.meta-item .lbl {
  display: block;
  font-size: clamp(0.7rem, 0.78vw, 0.78rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-top: 8px;
  white-space: nowrap;
}

.hero-visual { position: relative; }
.hero-card {
  position: relative;
  background: linear-gradient(135deg, var(--c-ink) 0%, var(--c-ink-3) 100%);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  color: var(--c-paper);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hero-card::before {
  content: '';
  position: absolute;
  top: -50%; right: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(201,164,92,.35), transparent 60%);
}
.hero-card::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -20%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(201,164,92,.18), transparent 70%);
}
.hero-card-content { position: relative; z-index: 1; }
.hero-card-tag {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.hero-card h3 {
  color: var(--c-paper);
  font-size: 2rem;
  margin-top: 24px;
  line-height: 1.2;
}
.hero-card p {
  color: rgba(251,250,246,.78);
  margin-top: 16px;
}
.hero-card-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-card-foot svg { width: 24px; height: 24px; color: var(--c-accent); }

.hero-float {
  position: absolute;
  background: var(--c-paper);
  padding: 18px 22px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-float-1 { top: -7%; left: 18%; }
.hero-float-2 { bottom: 16%; right: -10%; }
.hero-float-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--c-accent-soft);
  color: var(--c-accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-float-icon svg { width: 18px; height: 18px; }
.hero-float-text strong { display: block; font-size: 0.95rem; color: var(--c-ink); }
.hero-float-text span { font-size: 0.78rem; color: var(--c-mute); }

/* ==========================================================================
   Sections
   ========================================================================== */
section { padding: clamp(80px, 10vw, 130px) 0; }

.section-head {
  max-width: 720px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}
.section-head.left {
  margin-left: 0;
  text-align: start;
}
.section-head h2 { margin-top: 16px; }
.section-head .lead { margin-top: 20px; margin-inline: auto; }
.section-head.left .lead { margin-inline: 0; }

/* ==========================================================================
   Trust
   ========================================================================== */
.trust {
  padding: 40px 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-paper-2);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.trust-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-mute);
  font-weight: 500;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: clamp(28px, 5vw, 56px);
  flex-wrap: wrap;
}
.trust-logos span {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--c-ink-3);
  opacity: 0.7;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  transition: all var(--t-med);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,164,92,.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med);
}
.service-card:hover {
  border-color: var(--c-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { opacity: 1; }
.service-card > * { position: relative; }
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--c-accent-soft);
  color: var(--c-accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.service-icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 12px; font-size: 1.4rem; }
.service-card p { font-size: 0.95rem; }
.service-card .read-more {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-accent-2);
}
html[dir="rtl"] .service-card .read-more svg { transform: scaleX(-1); }

/* ==========================================================================
   About
   ========================================================================== */
.about {
  background: linear-gradient(180deg, var(--c-paper) 0%, var(--c-paper-2) 100%);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.about-visual { position: relative; }
.about-image {
  background: linear-gradient(135deg, var(--c-ink-2), var(--c-ink-3));
  border-radius: var(--r-xl);
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
}
.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(201,164,92,.4), transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(255,255,255,.1), transparent 60%);
}
.about-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 40px;
  color: var(--c-paper);
}
.about-image-overlay h3 {
  color: var(--c-paper);
  font-size: 2.4rem;
}
.about-image-overlay p {
  color: rgba(251,250,246,.85);
  margin-top: 12px;
}
.about-stats {
  position: absolute;
  bottom: -40px;
  inset-inline-start: -40px;
  background: var(--c-paper);
  border-radius: var(--r-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.about-stat .num {
  font-family: var(--ff-display);
  font-size: 2.2rem;
  color: var(--c-accent-2);
  line-height: 1;
}
.about-stat .lbl {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-top: 8px;
}

.about-content h2 { margin-top: 16px; }
.about-content .lead { margin-top: 20px; }
.about-pillars {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.pillar {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.pillar-num {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-ink);
  color: var(--c-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 1.1rem;
}
.pillar h4 { margin-bottom: 6px; }
.pillar p { font-size: 0.95rem; }

/* ==========================================================================
   Approach
   ========================================================================== */
.approach { background: var(--c-ink); color: var(--c-paper); }
.approach h2 { color: var(--c-paper); }
.approach .lead { color: rgba(251,250,246,.75); }
.approach .eyebrow { color: var(--c-accent); }
.approach .eyebrow::before { background: var(--c-accent); }

.steps {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  position: relative;
}
.step {
  padding: 32px 28px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-md);
  transition: all var(--t-med);
}
.step:hover {
  background: rgba(255,255,255,.06);
  border-color: var(--c-accent);
  transform: translateY(-4px);
}
.step-num {
  font-family: var(--ff-display);
  font-size: 2.6rem;
  color: var(--c-accent);
  line-height: 1;
}
.step h3 {
  color: var(--c-paper);
  margin-top: 20px;
  font-size: 1.25rem;
}
.step p {
  color: rgba(251,250,246,.7);
  margin-top: 12px;
  font-size: 0.92rem;
}

/* ==========================================================================
   Blog
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.article-card {
  background: var(--c-paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--t-med);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.article-thumb {
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--c-ink-2), var(--c-ink-3));
  position: relative;
  overflow: hidden;
}
.article-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(201,164,92,.4), transparent 60%);
}
.article-thumb svg {
  position: absolute;
  inset-inline-end: 24px;
  bottom: 24px;
  width: 56px;
  height: 56px;
  color: rgba(255,255,255,.9);
}
.article-card.theme-2 .article-thumb { background: linear-gradient(135deg, #4a3520, #6e4a26); }
.article-card.theme-3 .article-thumb { background: linear-gradient(135deg, #2d4f3c, #3f6b53); }
.article-card.theme-4 .article-thumb { background: linear-gradient(135deg, #5a2a3e, #7a3854); }
.article-card.theme-5 .article-thumb { background: linear-gradient(135deg, #1f3a52, #345a7a); }
.article-card.theme-6 .article-thumb { background: linear-gradient(135deg, #614a7d, #7e64a0); }

.article-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.article-meta {
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--c-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.article-meta .tag { color: var(--c-accent-2); font-weight: 600; }
.article-card h3 {
  font-size: 1.4rem;
  line-height: 1.3;
}
.article-card p {
  margin-top: 12px;
  font-size: 0.95rem;
  flex: 1;
}
.article-card .read-more {
  margin-top: 20px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--c-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
html[dir="rtl"] .article-card .read-more svg { transform: scaleX(-1); }
.article-card:hover .read-more { color: var(--c-accent-2); }

/* ==========================================================================
   CTA banner
   ========================================================================== */
.cta-banner {
  position: relative;
  padding: clamp(64px, 8vw, 96px) clamp(40px, 6vw, 80px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(ellipse at top right, rgba(201,164,92,.4), transparent 60%),
    linear-gradient(135deg, var(--c-ink), var(--c-ink-3));
  color: var(--c-paper);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 40px;
  align-items: center;
  overflow: hidden;
}
.cta-banner::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle, rgba(201,164,92,.15), transparent 60%);
}
.cta-banner > * { position: relative; }
.cta-banner h2 {
  color: var(--c-paper);
  font-size: clamp(2rem, 3.5vw, 3rem);
}
.cta-banner p {
  color: rgba(251,250,246,.8);
  margin-top: 16px;
  font-size: 1.05rem;
}
.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 72px);
  align-items: start;
}
.contact-info { padding-top: 16px; }
.contact-list { margin-top: 36px; display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.contact-icon {
  width: 44px; height: 44px;
  border-radius: var(--r-md);
  background: var(--c-accent-soft);
  color: var(--c-accent-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
}
.contact-icon svg { width: 20px; height: 20px; }
.contact-item h4 { margin-bottom: 4px; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--c-mute); font-family: var(--ff-body); font-weight: 600; }
.contact-item p, .contact-item a { font-size: 1.05rem; color: var(--c-ink); }

.form-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: clamp(32px, 4vw, 48px);
  box-shadow: var(--shadow-md);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--c-ink-2);
}
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.98rem;
  padding: 14px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  background: var(--c-paper);
  color: var(--c-ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
html[dir="rtl"] .field input, html[dir="rtl"] .field select, html[dir="rtl"] .field textarea { font-family: var(--ff-arabic); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(201,164,92,.15);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-card button[type="submit"] { margin-top: 8px; }
.form-success {
  display: none;
  padding: 14px 18px;
  background: rgba(47,125,91,.1);
  border: 1px solid rgba(47,125,91,.3);
  border-radius: var(--r-sm);
  color: var(--c-success);
  margin-bottom: 16px;
  font-size: 0.95rem;
}
.form-success.show { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--c-ink);
  color: rgba(251,250,246,.7);
  padding: 80px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand .logo { color: var(--c-paper); }
.footer-brand .logo-text small { color: rgba(251,250,246,.5); }
.footer-brand p {
  color: rgba(251,250,246,.65);
  margin-top: 20px;
  max-width: 36ch;
  font-size: 0.95rem;
}
.footer-service-area {
  color: rgba(251,250,246,.5) !important;
  font-size: 0.82rem !important;
  line-height: 1.6;
  margin-top: 14px !important;
  max-width: 42ch !important;
}
.footer-service-area strong { color: rgba(251,250,246,.75); font-weight: 600; }
.footer-col h5 {
  color: var(--c-paper);
  font-family: var(--ff-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: rgba(251,250,246,.7);
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--c-accent); }
.footer-bottom {
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: rgba(251,250,246,.5);
}
.footer-credit {
  font-size: 0.85rem;
  color: rgba(251,250,246,.5);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-credit a {
  color: rgba(251,250,246,.75);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(201,164,92,.35);
  padding-bottom: 1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.footer-credit a:hover {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
}

.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(251,250,246,.7);
}
.footer-social a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.footer-social svg { width: 16px; height: 16px; }

/* ==========================================================================
   Page header (sub-pages)
   ========================================================================== */
.page-header {
  padding: 180px 0 80px;
  background:
    radial-gradient(ellipse at top right, rgba(201,164,92,.18), transparent 60%),
    var(--c-paper-2);
  border-bottom: 1px solid var(--c-line);
}
.page-header .breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--c-mute);
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.page-header .breadcrumb a:hover { color: var(--c-accent-2); }
.page-header h1 { max-width: 22ch; }
.page-header .lead { margin-top: 24px; max-width: 64ch; }

/* ==========================================================================
   Article page
   ========================================================================== */
.article-hero {
  padding: 160px 0 60px;
  background: var(--c-paper);
}
.article-hero .container { max-width: 820px; }
.article-hero .article-meta { margin-bottom: 16px; }
.article-hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); }
.article-hero .author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--c-line);
}
.author-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-ink), var(--c-accent));
}
.author-info strong { display: block; color: var(--c-ink); }
.author-info span { font-size: 0.85rem; color: var(--c-mute); }

.article-langs {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--c-line);
  flex-wrap: wrap;
}
.article-lang {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  color: var(--c-ink-2);
  line-height: 1.2;
  transition: all var(--t-fast);
  min-width: 64px;
}
.article-lang small {
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0;
  color: var(--c-mute);
  margin-top: 2px;
  text-transform: none;
}
.article-lang:hover {
  border-color: var(--c-accent);
  color: var(--c-accent-2);
}
.article-lang.active {
  background: var(--c-ink);
  color: var(--c-paper);
  border-color: var(--c-ink);
}
.article-lang.active small { color: rgba(251,250,246,.6); }

.article-banner {
  height: clamp(280px, 40vw, 440px);
  border-radius: var(--r-xl);
  margin: 40px auto;
  max-width: 1080px;
  background: linear-gradient(135deg, var(--c-ink-2), var(--c-ink-3));
  position: relative;
  overflow: hidden;
}
.article-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 30%, rgba(201,164,92,.4), transparent 60%);
}

.article-body-wrap {
  padding: 40px 0 80px;
  background: var(--c-paper);
}
.article-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--c-ink-2);
}
.article-content > * + * { margin-top: 24px; }
.article-content h2 { margin-top: 56px; font-size: 1.9rem; }
.article-content h3 { margin-top: 40px; font-size: 1.35rem; }
.article-content p { color: var(--c-ink-2); }
.article-content ul, .article-content ol {
  padding-inline-start: 24px;
  list-style: disc;
}
.article-content ol { list-style: decimal; }
.article-content li { margin-top: 8px; }
.article-content blockquote {
  border-inline-start: 3px solid var(--c-accent);
  padding: 8px 0 8px 24px;
  font-family: var(--ff-display);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--c-ink);
  margin: 36px 0;
}
.article-content strong { color: var(--c-ink); }

.article-share {
  max-width: 720px;
  margin: 56px auto 0;
  padding-top: 36px;
  border-top: 1px solid var(--c-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.article-share .label { font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-mute); font-weight: 600; }
.share-icons { display: flex; gap: 10px; }
.share-icons a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.share-icons a:hover { border-color: var(--c-accent); color: var(--c-accent); }
.share-icons svg { width: 16px; height: 16px; }

.btn-sm { padding: 9px 18px; font-size: 0.84rem; }

/* ==========================================================================
   Contact map + WhatsApp card
   ========================================================================== */
.map-card {
  background: var(--c-paper);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
}
.map-frame {
  position: relative;
  width: 100%;
  height: clamp(320px, 42vh, 460px);
  background: var(--c-paper-2);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-meta {
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--c-line);
}
.map-meta .pluscode {
  font-family: ui-monospace, 'SF Mono', 'Menlo', monospace;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  color: var(--c-ink-2);
}
.map-meta .pluscode strong { color: var(--c-ink); }

.wa-cta {
  margin-top: 20px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: 0 10px 28px rgba(18,140,126,.25);
}
.wa-cta .wa-icon {
  flex: 0 0 56px;
  width: 56px; height: 56px;
  background: rgba(255,255,255,.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-cta .wa-icon svg { width: 28px; height: 28px; color: #fff; }
.wa-cta h3 { color: #fff; font-family: var(--ff-display); font-size: 1.6rem; margin-bottom: 4px; line-height: 1.2; }
.wa-cta p { color: rgba(255,255,255,.85); font-size: 0.95rem; }
.wa-cta .wa-cta-btn {
  margin-inline-start: auto;
  background: #fff;
  color: #128C7E;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: transform var(--t-fast);
}
.wa-cta .wa-cta-btn:hover { transform: translateY(-2px); color: #0b1f3a; }

@media (max-width: 720px) {
  .wa-cta { flex-wrap: wrap; }
  .wa-cta .wa-cta-btn { margin-inline-start: 0; width: 100%; justify-content: center; }
}

/* ==========================================================================
   WhatsApp floating button (all pages)
   ========================================================================== */
.wa-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37,211,102,.45), 0 2px 6px rgba(0,0,0,.12);
  z-index: 90;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.wa-float:hover {
  transform: scale(1.06);
  color: #fff;
  box-shadow: 0 14px 36px rgba(37,211,102,.55), 0 4px 10px rgba(0,0,0,.15);
}
.wa-float svg { width: 30px; height: 30px; position: relative; z-index: 2; }
.wa-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: 0.55;
  animation: wa-pulse 2.4s ease-out infinite;
  z-index: 1;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
.wa-label {
  position: absolute;
  inset-inline-end: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: var(--c-ink);
  color: var(--c-paper);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-med);
  box-shadow: var(--shadow-sm);
}
html[dir="rtl"] .wa-label { transform: translateY(-50%) translateX(-8px); }
.wa-float:hover .wa-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}
html[dir="rtl"] .wa-float { right: auto; left: 22px; }

@media (max-width: 600px) {
  .wa-float { width: 52px; height: 52px; bottom: 16px; right: 16px; }
  html[dir="rtl"] .wa-float { right: auto; left: 16px; }
  .wa-float svg { width: 26px; height: 26px; }
  .wa-label { display: none; }
}

/* ==========================================================================
   Blog filters
   ========================================================================== */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 56px;
}
.blog-filter button {
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--c-ink-2);
  background: transparent;
  border: 1px solid var(--c-line);
  transition: all var(--t-fast);
}
.blog-filter button.active,
.blog-filter button:hover {
  background: var(--c-ink);
  color: var(--c-paper);
  border-color: var(--c-ink);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .hero-grid,
  .about-grid,
  .contact-grid,
  .cta-banner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 480px; margin: 32px auto 0; width: 100%; }
  .hero-card { aspect-ratio: auto; padding: 36px 28px; }
  .hero-card h3 { font-size: 1.6rem; }
  .hero-float-1, .hero-float-2 { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .about-stats { position: static; margin-top: 24px; inset-inline-start: 0; }
}

@media (max-width: 600px) {
  .header-tools .lang-switch button { padding: 5px 9px; font-size: 0.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; min-height: auto; }
  .hero-meta { gap: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
