/* ============================================================
   gharsellaoui.com — main stylesheet
   Modern minimal, editorial accents. EN/FR (Fraunces+Inter), AR (Tajawal)
   ============================================================ */

:root {
  --ink: #0a0a0a;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --line: #e6e3dd;
  --line-2: #d8d4cb;
  --paper: #fafaf7;
  --paper-2: #f3f1ea;
  --white: #ffffff;
  --accent: #ff5b1f;          /* signature ember */
  --accent-2: #d63d00;
  --accent-soft: #fff1ea;
  --gold: #c9a456;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-1: 0 1px 2px rgba(10,10,10,.04), 0 1px 3px rgba(10,10,10,.04);
  --shadow-2: 0 12px 40px -8px rgba(10,10,10,.12);
  --shadow-3: 0 24px 60px -12px rgba(10,10,10,.18);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Tajawal', sans-serif;

  --container: 1240px;
  --container-narrow: 760px;
}

/* ---- Arabic forces Tajawal across the board ---- */
html[lang="ar"] {
  --font-display: 'Tajawal', sans-serif;
  --font-body: 'Tajawal', sans-serif;
}
html[lang="ar"] * {
  font-family: 'Tajawal', sans-serif !important;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

::selection { background: var(--ink); color: var(--paper); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: var(--container-narrow); }

@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,250,247,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.brand-tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.primary-nav { display: flex; gap: 32px; }
.primary-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s;
}
.primary-nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.lang-switch {
  display: inline-flex;
  background: var(--paper-2);
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 28px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  border-radius: 999px;
  color: var(--muted);
  transition: all .2s;
}
.lang-switch a.is-active { background: var(--ink); color: var(--paper); }

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  position: relative;
  background: var(--white);
}
.menu-toggle span {
  display: block; position: absolute; left: 10px; right: 10px;
  height: 1.5px; background: var(--ink); border-radius: 2px;
  transition: all .3s;
}
.menu-toggle span:nth-child(1) { top: 13px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 25px; }

.menu-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.mobile-nav { visibility: hidden;
  position: fixed;
  top: 76px; left: 0; right: 0; bottom: 0;
  background: var(--paper);
  padding: 32px;
  transform: translateY(-110%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  z-index: 49;
}
.mobile-nav nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav nav a {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }

@media (max-width: 960px) {
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
}
@media (max-width: 480px) {
  .brand-text { display: none; }
  .header-inner { height: 68px; }
  .mobile-nav { visibility: hidden; top: 68px; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--ink); color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent); transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.btn-dark {
  background: var(--white); color: var(--ink);
  border-color: var(--ink);
}
.btn-dark:hover {
  background: var(--ink); color: var(--paper); transform: translateY(-2px);
}
.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.btn-full { width: 100%; }
.btn svg { transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
html[dir="rtl"] .btn:hover svg { transform: translateX(-3px); }
html[dir="rtl"] .btn svg { transform: scaleX(-1); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding: 80px 0 120px;
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(10,10,10,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,10,.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at top right, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at top right, black 30%, transparent 70%);
}
.hero-blob {
  position: absolute;
  top: -120px; right: -80px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  filter: blur(40px);
  z-index: 0;
}
html[dir="rtl"] .hero-blob { right: auto; left: -80px; }

.hero-inner { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
  box-shadow: var(--shadow-1);
  margin-bottom: 40px;
}
.hero-eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255,91,31,.18);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .5; }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 32px;
  max-width: 14ch;
}
html[lang="ar"] .hero-title {
  font-weight: 700;
  line-height: 1.2;
  max-width: 18ch;
}
.hero-title .word {
  display: inline-block;
  margin-right: 0.18em;
  opacity: 0;
  transform: translateY(20px);
  animation: wordIn .8s cubic-bezier(.4,0,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
html[dir="rtl"] .hero-title .word { margin-right: 0; margin-left: 0.18em; }
@keyframes wordIn {
  to { opacity: 1; transform: translateY(0); }
}

.hero-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 48px;
  line-height: 1.55;
  opacity: 0;
  animation: fadeUp .8s .5s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px;
  opacity: 0;
  animation: fadeUp .8s .7s cubic-bezier(.4,0,.2,1) forwards;
}

.scroll-cue {
  position: absolute;
  bottom: 20px; left: 32px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp .8s 1.2s cubic-bezier(.4,0,.2,1) forwards;
}
.scroll-cue svg { animation: bob 2s infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}
html[dir="rtl"] .scroll-cue { left: auto; right: 32px; }

/* ============================================================
   SECTION HEADERS / SHARED
   ============================================================ */
.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  max-width: 22ch;
}
html[lang="ar"] .section-title { font-weight: 700; line-height: 1.25; }
.section-sub {
  font-size: clamp(15px, 1.4vw, 18px);
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .section-title,
.section-head.center .section-sub { margin-left: auto; margin-right: auto; }
.section-head.between {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}

.link-arrow {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 2px;
  transition: gap .2s;
}
.link-arrow:hover { gap: 10px; }

/* ============================================================
   STATS
   ============================================================ */
.stats {
  padding: 80px 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}
.stats .kicker { color: rgba(250,250,247,.6); }
.stats .section-sub { color: rgba(250,250,247,.7); }
.stats .section-head { position: relative; z-index: 1; }
.stats-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.stat-card {
  padding: 48px 28px;
  border-right: 1px solid rgba(255,255,255,.1);
  position: relative;
}
html[dir="rtl"] .stat-card { border-right: none; border-left: 1px solid rgba(255,255,255,.1); }
.stat-card:last-child { border-right: none; }
html[dir="rtl"] .stat-card:last-child { border-left: none; }
.stat-value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 16px;
  color: var(--white);
}
html[lang="ar"] .stat-value { font-weight: 700; }
.stat-label {
  font-size: 13.5px;
  color: rgba(250,250,247,.65);
  letter-spacing: 0.01em;
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  html[dir="rtl"] .stat-card:nth-child(2) { border-left: none; border-right: 1px solid rgba(255,255,255,.1); }
  html[dir="rtl"] .stat-card:nth-child(2n) { border-left: none; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
}
@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { border-right: none !important; border-left: none !important; border-bottom: 1px solid rgba(255,255,255,.1); padding: 32px 0; }
  .stat-card:last-child { border-bottom: none; }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about { padding: 120px 0; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-text p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 20px;
}
.about-text .emphasis {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  color: var(--ink);
  line-height: 1.4;
  margin-top: 28px;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
html[lang="ar"] .about-text .emphasis { font-style: normal; font-weight: 500; }
html[dir="rtl"] .about-text .emphasis { padding-left: 0; padding-right: 20px; border-left: none; border-right: 2px solid var(--accent); }

.signature {
  font-family: var(--font-display);
  font-size: 24px;
  margin-top: 32px;
  color: var(--ink);
}
html[lang="ar"] .signature { font-weight: 700; }

.about-visual { position: relative; }
.portrait-frame {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--paper-2) 0%, var(--paper) 100%);
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-3);
}
.portrait-initials {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(120px, 18vw, 220px);
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
}
.portrait-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.portrait-decor-1 {
  width: 200px; height: 200px;
  top: -50px; right: -50px;
  background: var(--accent);
  opacity: .9;
  mix-blend-mode: multiply;
  filter: blur(60px);
}
.portrait-decor-2 {
  width: 160px; height: 160px;
  bottom: -40px; left: -40px;
  background: var(--gold);
  opacity: .5;
  filter: blur(50px);
}

.quick-facts {
  position: absolute;
  bottom: -32px; left: 50%; transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  display: flex;
  gap: 28px;
  box-shadow: var(--shadow-2);
  white-space: nowrap;
}
.qf { display: flex; flex-direction: column; line-height: 1.3; }
.qf span { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.qf strong { font-size: 13px; font-weight: 600; color: var(--ink); }

@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 60px; }
  .about-visual { max-width: 480px; margin: 0 auto; }
}
@media (max-width: 540px) {
  .quick-facts {
    flex-direction: column;
    gap: 12px;
    left: 24px; right: 24px; transform: none;
    width: auto;
    white-space: normal;
  }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 120px 0;
  background: var(--paper-2);
  position: relative;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 48px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform .3s, box-shadow .3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-3); }
.service-card--primary {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.service-card--primary::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 140px; height: 140px;
  background: radial-gradient(circle at top right, rgba(255,91,31,.4), transparent 70%);
  border-radius: var(--r-xl);
  pointer-events: none;
}
.service-tag {
  display: inline-block;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: var(--paper-2);
  border-radius: 999px;
  color: var(--ink);
  margin-bottom: 24px;
  align-self: flex-start;
}
.service-card--primary .service-tag { background: rgba(255,91,31,.18); color: var(--accent); }
.service-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
html[lang="ar"] .service-title { font-weight: 700; line-height: 1.3; }
.service-desc {
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 28px;
  color: inherit;
  opacity: .85;
}
.service-list { list-style: none; padding: 0; margin: 0 0 36px; display: flex; flex-direction: column; gap: 12px; }
.service-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14.5px;
  line-height: 1.5;
}
.service-list svg { flex-shrink: 0; margin-top: 4px; color: var(--accent); }
.service-card--primary .service-list svg { color: var(--accent); }
.service-card .btn { margin-top: auto; }

@media (max-width: 860px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 36px; }
}

/* ============================================================
   BLOG / POSTS
   ============================================================ */
.latest-posts { padding: 120px 0; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.post-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.post-cover {
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
  background-color: var(--paper-2);
}
.post-cover--placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--paper-2), var(--paper));
}
.post-cover--placeholder span {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  color: var(--ink);
  opacity: .25;
}
.post-body { padding: 28px; }
.post-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.post-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  color: var(--ink);
}
html[lang="ar"] .post-card h3 { font-weight: 700; line-height: 1.5; }
.post-card p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .posts-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PAGE HEADER (blog index / about etc.)
   ============================================================ */
.page-header {
  padding: 100px 0 64px;
  border-bottom: 1px solid var(--line);
}
.blog-list { padding: 64px 0 120px; }
.empty-state {
  text-align: center;
  padding: 80px 0;
  color: var(--muted);
  font-size: 18px;
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-article { padding: 60px 0 120px; }
.back-link {
  display: inline-block;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 40px;
  transition: color .2s;
}
.back-link:hover { color: var(--ink); }

.post-header { margin-bottom: 48px; }
.post-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 12px 0 20px;
}
html[lang="ar"] .post-header h1 { font-weight: 700; line-height: 1.3; }
.post-header .lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
}
html[lang="ar"] .post-header .lede { font-family: var(--font-arabic); font-weight: 400; }

.post-hero-image {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: var(--r-lg);
  margin-bottom: 56px;
}

.post-content {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.post-content > * + * { margin-top: 1.2em; }
.post-content h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-top: 2em;
  color: var(--ink);
}
.post-content h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.3;
  margin-top: 1.8em;
  color: var(--ink);
}
.post-content p { margin: 0; }
.post-content a { color: var(--ink); border-bottom: 1px solid var(--accent); }
.post-content a:hover { color: var(--accent); }
.post-content blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink);
}
html[lang="ar"] .post-content blockquote { font-style: normal; }
html[dir="rtl"] .post-content blockquote { border-left: none; border-right: 3px solid var(--accent); padding-left: 0; padding-right: 24px; }
.post-content code {
  background: var(--paper-2);
  padding: 2px 8px;
  border-radius: 6px;
  font-size: .9em;
  font-family: ui-monospace, SF Mono, Consolas, monospace;
}
.post-content pre {
  background: var(--ink);
  color: var(--paper);
  padding: 24px;
  border-radius: var(--r-md);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
}
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content img { border-radius: var(--r-md); margin: 2em 0; }
.post-content ul, .post-content ol { padding-left: 24px; }
html[dir="rtl"] .post-content ul, html[dir="rtl"] .post-content ol { padding-left: 0; padding-right: 24px; }
.post-content li + li { margin-top: .5em; }

.post-tags {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--paper-2);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.post-translations {
  display: flex; align-items: center; gap: 8px;
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
}
.post-translations a {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.post-translations a.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact { padding: 120px 0; background: var(--ink); color: var(--paper); position: relative; overflow: hidden; }
.contact::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,91,31,.12), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(201,164,86,.08), transparent 50%);
  pointer-events: none;
}
.contact .kicker { color: rgba(250,250,247,.6); }
.contact .section-sub { color: rgba(250,250,247,.7); }
.contact .section-head { position: relative; z-index: 1; }

.contact-cta-row {
  display: flex; justify-content: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 80px;
  position: relative; z-index: 1;
}
.contact-cta-row .btn-primary { background: var(--accent); }
.contact-cta-row .btn-primary:hover { background: var(--accent-2); }
.contact-cta-row .btn-ghost {
  background: transparent; color: var(--paper);
  border-color: rgba(250,250,247,.25);
}
.contact-cta-row .btn-ghost:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.quote-form-wrap {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: 56px;
  box-shadow: var(--shadow-3);
}
.quote-form-head { text-align: center; margin-bottom: 36px; }
.quote-form-head h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
html[lang="ar"] .quote-form-head h3 { font-weight: 700; }
.quote-form-head p { font-size: 15px; color: var(--muted); margin: 0; }

.quote-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  font-size: 15px;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,.08);
}
.field textarea { resize: vertical; min-height: 120px; }

.btn-loading { display: none; }
.quote-form.is-loading .btn-label { display: none; }
.quote-form.is-loading .btn-loading { display: inline; }

.form-status {
  font-size: 14px;
  text-align: center;
  min-height: 1.5em;
}
.form-status.is-success { color: #2a8a2a; }
.form-status.is-error { color: var(--accent-2); }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .quote-form-wrap { padding: 32px 24px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 64px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-mark {
  width: 48px; height: 48px;
  background: var(--ink); color: var(--paper);
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 18px; font-weight: 500;
}
.footer-name { font-family: var(--font-display); font-size: 18px; }
.footer-tag { font-size: 12px; color: var(--muted); letter-spacing: 0.05em; text-transform: uppercase; }

.footer-links { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-links a { color: var(--ink-soft); transition: color .2s; }
.footer-links a:hover { color: var(--accent); }

.footer-social { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
html[dir="rtl"] .footer-social { align-items: flex-end; }
.social-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px;
  background: var(--paper-2);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink);
  transition: all .2s;
}
.social-pill:hover { background: var(--ink); color: var(--paper); transform: translateX(4px); }
html[dir="rtl"] .social-pill:hover { transform: translateX(-4px); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap; gap: 12px;
}

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

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.wa-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  color: white;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,.4);
  z-index: 40;
  transition: transform .3s;
}
.wa-fab:hover { transform: scale(1.08); }
html[dir="rtl"] .wa-fab { right: auto; left: 24px; }
@media (max-width: 480px) { .wa-fab { bottom: 18px; right: 18px; width: 52px; height: 52px; } }

/* ============================================================
   ERROR PAGES
   ============================================================ */
.error-section { padding: 120px 0; text-align: center; }
.error-number {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(96px, 18vw, 200px);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--ink);
  margin-bottom: 16px;
}
.error-section h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 32px;
  margin: 0 0 12px;
}
.error-section p { color: var(--muted); margin: 0 0 32px; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
