/* style.css — Public Writer Tangier | KnownHouses.com */
/* Design: Deep ink navy + warm sand + WhatsApp green accent */

/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════ */
:root {
  /* Palette */
  --ink:        #0f1b2d;       /* deep navy — authority */
  --ink-mid:    #1e3050;       /* mid navy */
  --sand:       #f5f0e8;       /* warm sand — Moroccan paper */
  --sand-dark:  #e8e0d0;
  --wa-green:   #25D366;       /* WhatsApp brand green */
  --wa-dark:    #128C7E;
  --accent:     #c8933a;       /* Moroccan gold */
  --accent-lt:  #f0d9b0;
  --text:       #1a1a2e;
  --text-mid:   #4a5568;
  --text-lt:    #718096;
  --white:      #ffffff;
  --border:     #ddd6c8;
  --error:      #e53e3e;
  --success:    #38a169;

  /* Typography */
  --font-ar:    'Noto Naskh Arabic', 'Amiri', 'Traditional Arabic', serif;
  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:  'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:  'JetBrains Mono', 'Consolas', monospace;

  /* Scale */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;
  --text-6xl:   3.75rem;

  /* Spacing */
  --space-1:    0.25rem;
  --space-2:    0.5rem;
  --space-3:    0.75rem;
  --space-4:    1rem;
  --space-5:    1.25rem;
  --space-6:    1.5rem;
  --space-8:    2rem;
  --space-10:   2.5rem;
  --space-12:   3rem;
  --space-16:   4rem;
  --space-20:   5rem;
  --space-24:   6rem;

  /* Layout */
  --max-w:      1200px;
  --header-h:   72px;
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(15,27,45,0.08), 0 1px 2px rgba(15,27,45,0.04);
  --shadow:     0 4px 16px rgba(15,27,45,0.1), 0 2px 6px rgba(15,27,45,0.06);
  --shadow-lg:  0 20px 40px rgba(15,27,45,0.15), 0 8px 20px rgba(15,27,45,0.08);
  --shadow-wa:  0 8px 24px rgba(37,211,102,0.35);

  /* Transitions */
  --t-fast: 150ms ease;
  --t-mid:  250ms ease;
  --t-slow: 400ms cubic-bezier(0.16,1,0.3,1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Arabic language overrides */
[lang="ar"] body,
body.lang-ar {
  font-family: var(--font-ar);
  font-size: 1.05rem;
  line-height: 1.8;
}

[dir="rtl"] { text-align: right; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* Focus styles */
:focus-visible {
  outline: 3px solid var(--wa-green);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ═══════════════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

.lang-ar h1,
.lang-ar h2,
.lang-ar h3 {
  font-family: var(--font-ar);
  font-weight: 700;
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2vw, var(--text-2xl)); }

p { color: var(--text-mid); }

/* ═══════════════════════════════════════════════════════
   LAYOUT UTILITIES
═══════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title {
  margin-bottom: var(--space-4);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: var(--space-3) auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--text-mid);
  font-size: var(--text-lg);
  max-width: 600px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-base);
  transition: all var(--t-mid);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn--lg { padding: var(--space-4) var(--space-8); font-size: var(--text-lg); border-radius: var(--radius-lg); }
.btn--xl { padding: var(--space-5) var(--space-10); font-size: var(--text-xl); border-radius: var(--radius-xl); }
.btn--block { width: 100%; justify-content: center; }

.btn--wa {
  background: var(--wa-green);
  color: var(--white);
  box-shadow: var(--shadow-wa);
}
.btn--wa:hover {
  background: var(--wa-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.45);
}
.btn--wa:active { transform: translateY(0); }

.btn--primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn--primary:hover {
  background: var(--ink-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

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

.btn--whatsapp {
  background: var(--wa-green);
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 600;
}
.btn--whatsapp:hover { background: var(--wa-dark); }

/* ═══════════════════════════════════════════════════════
   HEADER / NAV
═══════════════════════════════════════════════════════ */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all var(--t-mid);
}

#site-header.header--scrolled {
  box-shadow: var(--shadow);
}

#site-header.header--hidden {
  transform: translateY(-100%);
}

#main-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: var(--header-h);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Logo */
.nav__logo a {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}

.nav__logo-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav__logo-primary {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--ink);
}

.nav__logo-sub {
  font-size: var(--text-xs);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Nav links */
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin-inline-start: auto;
}

.nav__link {
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  transition: all var(--t-fast);
}

.nav__link:hover { color: var(--wa-green); background: rgba(37,211,102,0.08); }

.nav__link--wa {
  background: var(--wa-green);
  color: var(--white) !important;
  padding: var(--space-2) var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  border-radius: var(--radius);
  font-weight: 600;
}
.nav__link--wa:hover { background: var(--wa-dark) !important; transform: translateY(-1px); }

/* Lang switcher */
.nav__lang {
  display: flex;
  gap: var(--space-1);
  border-inline-start: 1px solid var(--border);
  padding-inline-start: var(--space-4);
  margin-inline-start: var(--space-2);
}

.lang-btn {
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-mid);
  background: transparent;
  border: 1px solid transparent;
  transition: all var(--t-fast);
  cursor: pointer;
  letter-spacing: 0.04em;
}

.lang-btn:hover { color: var(--ink); border-color: var(--border); }

.lang-btn--active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* Mobile hamburger */
.nav__menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  margin-inline-start: auto;
}

.nav__menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--t-mid);
}

/* ═══════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════ */
#hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(200,147,58,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(37,211,102,0.08) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c8933a' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,27,45,0.7) 0%, rgba(15,27,45,0.4) 100%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: var(--space-20) var(--space-6);
  max-width: 760px;
}

.hero__badge {
  display: inline-block;
  background: rgba(200,147,58,0.2);
  color: var(--accent-lt);
  border: 1px solid rgba(200,147,58,0.4);
  padding: var(--space-1) var(--space-4);
  border-radius: 100px;
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-6);
}

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.lang-ar .hero__headline {
  font-family: var(--font-ar);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.3;
}

.hero__sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}

.hero__actions .btn--outline {
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.hero__actions .btn--outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.hero__trust-badge {
  color: rgba(255,255,255,0.75);
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  animation: bounce 2s infinite;
}

.hero__scroll-icon {
  color: rgba(255,255,255,0.5);
  font-size: 1.5rem;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════ */
#services {
  padding: var(--space-20) 0;
  background: var(--sand);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: all var(--t-mid);
  opacity: 0;
  transform: translateY(20px);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.service-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(37,211,102,0.2);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.service-card__title {
  font-size: var(--text-xl);
  color: var(--ink);
  font-family: var(--font-display);
}

.lang-ar .service-card__title { font-family: var(--font-ar); }

.service-card__desc {
  color: var(--text-mid);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.service-card__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  flex: 1;
}

.service-card__items li {
  font-size: var(--text-sm);
  color: var(--text-mid);
  padding-inline-start: var(--space-4);
  position: relative;
}

.service-card__items li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  color: var(--wa-green);
  font-weight: 700;
}

.service-card__cta {
  margin-top: auto;
}

.services__cta {
  text-align: center;
  padding-top: var(--space-8);
}

/* ═══════════════════════════════════════════════════════
   PROCESS
═══════════════════════════════════════════════════════ */
#process {
  padding: var(--space-20) 0;
  background: var(--white);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-8);
  position: relative;
  counter-reset: none;
}

.process-steps::before {
  content: '';
  position: absolute;
  top: 36px;
  inset-inline-start: 10%;
  inset-inline-end: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--wa-green), var(--accent));
  z-index: 0;
}

[dir="rtl"] .process-steps::before {
  background: linear-gradient(270deg, var(--wa-green), var(--accent));
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--t-slow);
}

.process-step.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.process-step:nth-child(2) { transition-delay: 100ms; }
.process-step:nth-child(3) { transition-delay: 200ms; }
.process-step:nth-child(4) { transition-delay: 300ms; }

.process-step__num {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin: 0 auto var(--space-4);
  box-shadow: 0 4px 12px rgba(15,27,45,0.25);
  position: relative;
  z-index: 1;
}

.lang-ar .process-step__num {
  font-family: var(--font-ar);
  font-size: var(--text-2xl);
}

.process-step__title {
  font-size: var(--text-lg);
  color: var(--ink);
  margin-bottom: var(--space-2);
}

.process-step__desc {
  font-size: var(--text-sm);
  color: var(--text-mid);
}

/* ═══════════════════════════════════════════════════════
   TESTIMONIALS
═══════════════════════════════════════════════════════ */
#testimonials {
  padding: var(--space-20) 0;
  background: var(--ink);
}

#testimonials .section-title { color: var(--white); }
#testimonials .section-title::after { background: var(--wa-green); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: all var(--t-mid);
  opacity: 0;
  transform: translateY(20px);
}

.testimonial-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.11);
  border-color: rgba(37,211,102,0.3);
  transform: translateY(-3px);
}

.testimonial-card__stars {
  color: var(--accent);
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
  letter-spacing: 2px;
}

.testimonial-card__text {
  color: rgba(255,255,255,0.85);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  font-style: italic;
}

.testimonial-card__author {
  color: var(--accent-lt);
  font-weight: 600;
  font-size: var(--text-sm);
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════
   FAQ
═══════════════════════════════════════════════════════ */
#faq {
  padding: var(--space-20) 0;
  background: var(--sand);
}

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--t-mid);
}

.faq-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  text-align: inherit;
  background: none;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: var(--text-base);
  font-family: inherit;
  transition: background var(--t-fast);
}

.faq-item__question:hover { background: var(--sand); }

.faq-item__question[aria-expanded="true"] { color: var(--wa-dark); }

.faq-item__icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  transition: all var(--t-mid);
  line-height: 1;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
  background: var(--wa-green);
  color: var(--white);
}

.faq-item__answer {
  padding: 0 var(--space-6) var(--space-5);
  border-top: 1px solid var(--border);
}

.faq-item__answer p {
  color: var(--text-mid);
  line-height: 1.7;
  margin-bottom: var(--space-3);
  padding-top: var(--space-4);
}

.faq-wa-link {
  color: var(--wa-dark);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: color var(--t-fast);
}
.faq-wa-link:hover { color: var(--wa-green); }

/* ═══════════════════════════════════════════════════════
   BLOG
═══════════════════════════════════════════════════════ */
#blog {
  padding: var(--space-20) 0;
  background: var(--white);
}

.blog-lang-tabs {
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  margin-top: var(--space-6);
  flex-wrap: wrap;
}

.blog-tab {
  padding: var(--space-2) var(--space-5);
  border-radius: 100px;
  border: 2px solid var(--border);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-mid);
  background: transparent;
  cursor: pointer;
  transition: all var(--t-fast);
}

.blog-tab:hover { border-color: var(--ink); color: var(--ink); }
.blog-tab--active { background: var(--ink); color: var(--white); border-color: var(--ink); }

.blog-tab__count {
  font-size: var(--text-xs);
  opacity: 0.7;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: all var(--t-mid);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  opacity: 0;
  transform: translateY(15px);
}

.blog-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.blog-card:hover {
  border-color: rgba(37,211,102,0.3);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.blog-card__cat {
  display: inline-block;
  padding: 2px var(--space-3);
  border-radius: 100px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-cat--admin    { background: #e8f5ff; color: #1565c0; }
.blog-cat--employment { background: #e8f5e9; color: #2e7d32; }
.blog-cat--translation { background: #fff3e0; color: #e65100; }
.blog-cat--immigration { background: #fce4ec; color: #c62828; }
.blog-cat--legal    { background: #f3e5f5; color: #6a1b9a; }
.blog-cat--business { background: #fff8e1; color: #f57f17; }
.blog-cat--digital  { background: #e0f2f1; color: #00695c; }
.blog-cat--tangier  { background: #e8eaf6; color: #283593; }
.blog-cat--general  { background: var(--sand); color: var(--text-mid); }

.blog-card__title {
  font-size: var(--text-base);
  line-height: 1.4;
}

.blog-card__title a {
  color: var(--ink);
  transition: color var(--t-fast);
}
.blog-card__title a:hover { color: var(--wa-dark); }

.blog-card__excerpt {
  font-size: var(--text-sm);
  color: var(--text-mid);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.read-time { font-size: var(--text-xs); color: var(--text-lt); }

.read-more {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--wa-dark);
  transition: color var(--t-fast);
}
.read-more:hover { color: var(--wa-green); }

.blog__more { text-align: center; }

/* ═══════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════ */
#contact {
  padding: var(--space-20) 0;
  background: var(--sand);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-12);
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.contact-wa-btn {
  width: 100%;
  justify-content: center;
  padding: var(--space-5) var(--space-6);
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--text-mid);
}

.contact-detail a { color: var(--wa-dark); transition: color var(--t-fast); }
.contact-detail a:hover { color: var(--wa-green); }

.contact-detail__icon { font-size: 1.2rem; flex-shrink: 0; }

.contact-map__placeholder {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-8);
  text-align: center;
}

.map-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  transition: color var(--t-fast);
}
.map-link:hover { color: var(--wa-dark); }

/* Contact form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: var(--text-base);
  color: var(--text);
  background: var(--white);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: auto;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--wa-green);
  box-shadow: 0 0 0 3px rgba(37,211,102,0.15);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* ═══════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════ */
#main-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  gap: var(--space-12);
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--white);
  margin-bottom: var(--space-4);
}

.lang-ar .footer-logo { font-family: var(--font-ar); }

.footer-tagline {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
}

.footer-wa {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: var(--wa-green);
  color: var(--white);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-sm);
  transition: all var(--t-fast);
}
.footer-wa:hover { background: var(--wa-dark); }

.footer-services h3,
.footer-contact h3 {
  color: var(--white);
  font-size: var(--text-base);
  margin-bottom: var(--space-4);
  font-family: var(--font-display);
}

.lang-ar .footer-services h3,
.lang-ar .footer-contact h3 { font-family: var(--font-ar); }

.footer-services ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-services a,
.footer-contact li,
.footer-contact a {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-sm);
  transition: color var(--t-fast);
}

.footer-services a:hover,
.footer-contact a:hover { color: var(--wa-green); }

.footer-langs {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-5);
  flex-wrap: wrap;
}

.lang-btn-sm {
  padding: var(--space-1) var(--space-3);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-sm);
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  background: transparent;
  cursor: pointer;
  transition: all var(--t-fast);
  letter-spacing: 0.04em;
}

.lang-btn-sm:hover {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-bottom p {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-sm);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
}

.footer-legal a {
  color: rgba(255,255,255,0.5);
  font-size: var(--text-sm);
  transition: color var(--t-fast);
}
.footer-legal a:hover { color: var(--white); }

/* ═══════════════════════════════════════════════════════
   FLOATING WHATSAPP BUTTON
═══════════════════════════════════════════════════════ */
.wa-fab {
  position: fixed;
  bottom: var(--space-6);
  inset-inline-end: var(--space-6);
  z-index: 90;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--wa-green);
  color: var(--white);
  padding: var(--space-3) var(--space-5);
  border-radius: 100px;
  box-shadow: var(--shadow-wa);
  text-decoration: none;
  font-weight: 700;
  font-size: var(--text-sm);
  transition: all var(--t-mid);
  animation: fab-pulse 3s ease-in-out infinite;
}

.wa-fab:hover {
  background: var(--wa-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 32px rgba(37,211,102,0.5);
  animation: none;
}

.wa-fab__label {
  white-space: nowrap;
}

@keyframes fab-pulse {
  0%, 100% { box-shadow: var(--shadow-wa); }
  50% { box-shadow: 0 8px 32px rgba(37,211,102,0.55); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .wa-fab { animation: none; }
  .hero__scroll-hint { animation: none; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — TABLET
═══════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .process-steps::before { display: none; }
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE — MOBILE
═══════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  .container { padding: 0 var(--space-4); }

  /* Mobile nav */
  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-6);
    gap: var(--space-2);
    transform: translateX(100%);
    transition: transform var(--t-mid);
    z-index: 99;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
  }

  [dir="rtl"] .nav__links {
    transform: translateX(-100%);
  }

  .nav__links.nav__links--open {
    transform: translateX(0);
  }

  .nav__link {
    padding: var(--space-4);
    font-size: var(--text-base);
    border-radius: var(--radius);
    border-bottom: 1px solid var(--border);
  }

  .nav__link--wa {
    margin-top: var(--space-2);
    justify-content: center;
    padding: var(--space-4);
  }

  .nav__lang {
    display: none;
  }

  .nav__menu-toggle {
    display: flex;
    margin-inline-start: auto;
    order: 10;
  }

  /* Hero */
  #hero { min-height: 80vh; }
  .hero__content { padding: var(--space-12) var(--space-4); }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Process */
  .process-steps { grid-template-columns: 1fr; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr; }
  .blog-lang-tabs { gap: var(--space-1); }
  .blog-tab { padding: var(--space-1) var(--space-3); font-size: var(--text-xs); }

  /* Contact */
  .contact-form-wrap { padding: var(--space-5); }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  /* FAB */
  .wa-fab__label { display: none; }
  .wa-fab { padding: var(--space-4); border-radius: 50%; width: 56px; height: 56px; justify-content: center; }

  /* FAQ */
  .faq-item__question { padding: var(--space-4); font-size: var(--text-sm); }
}

/* ═══════════════════════════════════════════════════════
   RTL SPECIFIC
═══════════════════════════════════════════════════════ */
[dir="rtl"] .hero__content {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

[dir="rtl"] .service-card__items li {
  padding-inline-start: var(--space-5);
  padding-inline-end: 0;
}

[dir="rtl"] .service-card__items li::before {
  inset-inline-start: 0;
  inset-inline-end: auto;
}

[dir="rtl"] .nav__links {
  margin-inline-start: 0;
  margin-inline-end: auto;
}

[dir="rtl"] .wa-fab {
  inset-inline-end: var(--space-6);
  inset-inline-start: auto;
}

/* ═══════════════════════════════════════════════════════
   PRINT
═══════════════════════════════════════════════════════ */
@media print {
  #site-header, .wa-fab, #main-nav, .nav__lang { display: none; }
  body { font-size: 12pt; }
  .container { max-width: 100%; }
  a[href]::after { content: " (" attr(href) ")"; }
}
