/* DIRECTION LOCK — هالة ومعاذ / Hala & Muath Law
   Aesthetic: navy & brass authority — quiet old-money restraint, zero noise
   Fonts: Noto Kufi Arabic (AR display) + IBM Plex Sans Arabic (body) / EN: Inter
   Signature: gold hairline rules + numbered practice list + serif monogram partners
   Motion personality: very subtle, restrained fades, nothing flashy
   Every rule serves this lock. Logical properties throughout. */

/* ===== TOKENS ===== */
:root {
  --navy: #0e1b2c;
  --navy-2: #16273d;
  --navy-3: #1e3350;
  --ivory: #f8f5ef;
  --ivory-2: #f1ece1;
  --gold: #b98a3c;
  --gold-soft: #cfa961;
  --slate: #3b4553;
  --white: #ffffff;
  --font-ar-head: "Noto Kufi Arabic", serif;
  --font-body: "IBM Plex Sans Arabic", "Inter", system-ui, sans-serif;
  --r-xs: 2px; --r-sm: 3px; --r: 4px; --r-lg: 6px; --r-full: 9999px;
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --dur-fast: 160ms; --dur-base: 280ms; --dur-slow: 550ms;
  --shadow-1: 0 2px 10px rgba(14,27,44,0.08);
  --shadow-2: 0 12px 36px rgba(14,27,44,0.16);
  --header-h: 76px;
}

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--ivory); color: var(--slate);
  line-height: 1.75; font-size: clamp(1rem, 0.95rem + 0.2vw, 1.1rem);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] .brand { font-family: var(--font-ar-head); font-weight: 700; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3 { font-family: "Inter", sans-serif; font-weight: 600; letter-spacing: -0.01em; }

h1, h2, h3 { line-height: 1.3; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; }

.skip-link { position: absolute; inset-inline-start: -9999px; top: 0; background: var(--navy); color: var(--ivory); padding: 0.75rem 1.25rem; z-index: 100; }
.skip-link:focus { inset-inline-start: 0; }

/* ===== LAYOUT ===== */
.container { width: min(1120px, 92%); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 8vw, 5.5rem); }
.section-title { text-align: center; margin-block-end: 2.5rem; color: var(--navy); }

/* ===== REVEALS ===== */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ===== BUTTONS ===== */
.btn { display: inline-block; padding: 0.9rem 2rem; font-weight: 700; font-size: 0.95rem; border-radius: var(--r); border: 2px solid transparent; cursor: pointer; transition: all 0.25s var(--ease-out); text-align: center; }
.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); border-color: var(--gold-soft); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(248,245,239,0.4); }
.btn-ghost:hover { border-color: var(--ivory); background: rgba(248,245,239,0.1); }

/* ===== HEADER ===== */
.site-header { position: fixed; inset-inline: 0; top: 0; z-index: 50; background: rgba(14,27,44,0.95); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 5%; height: var(--header-h); }
.brand { font-family: var(--font-ar-head); font-size: 1.35rem; font-weight: 700; color: var(--ivory); text-decoration: none; }
.primary-nav ul { display: flex; gap: 2rem; list-style: none; }
.primary-nav a { color: var(--ivory-2); text-decoration: none; font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.primary-nav a:hover { color: var(--gold); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.lang-toggle { background: transparent; border: 1px solid rgba(248,245,239,0.3); color: var(--ivory); padding: 0.4rem 0.8rem; border-radius: var(--r); cursor: pointer; font-weight: 600; font-size: 0.85rem; }
.nav-toggle { display: none; background: transparent; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle .bar { display: block; width: 22px; height: 2px; background: var(--ivory); margin: 5px 0; transition: all 0.3s; }

/* ===== HERO ===== */
.hero { min-height: 100vh; display: flex; align-items: center; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: var(--ivory); }
.hero-content { text-align: center; padding-block: clamp(4rem, 10vh, 7rem) clamp(2rem, 5vw, 4rem); }
.hero-eyebrow { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-soft); margin-block-end: 1rem; }
.hero-content h1 { color: var(--ivory); font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.15; margin-block-end: 1.2rem; }
.hero-lede { font-size: clamp(1rem, 1.1vw, 1.2rem); color: var(--ivory-2); max-width: 640px; margin: 0 auto 2rem; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
.hero-phone { color: var(--ivory); font-size: 1.1rem; font-weight: 700; letter-spacing: 0.02em; }

/* ===== PRACTICES ===== */
.practices-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.practice-card { background: var(--white); padding: 2rem; border-radius: var(--r-lg); border: 1px solid rgba(14,27,44,0.08); transition: border-color 0.3s, box-shadow 0.3s; }
.practice-card:hover { border-color: var(--gold); box-shadow: var(--shadow-2); }
.practice-card h3 { color: var(--navy); margin-block-end: 0.5rem; }
.practice-card p { font-size: 0.95rem; color: var(--slate); opacity: 0.8; }

/* ===== ABOUT ===== */
.about-content { text-align: center; max-width: 720px; margin: 0 auto; }
.about-content > p { font-size: 1.05rem; color: var(--slate); margin-block-end: 2rem; }
.about-stats { display: flex; justify-content: center; gap: 2.5rem; }
.stat { display: flex; flex-direction: column; align-items: center; }
.stat-num { font-size: 2.5rem; font-weight: 800; color: var(--gold); font-family: var(--font-ar-head); }
.stat span { font-size: 0.9rem; color: var(--slate); opacity: 0.7; }

/* ===== TESTIMONIALS ===== */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.testimonial-card { background: var(--white); padding: 2rem; border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.testimonial-text { font-size: 1rem; line-height: 1.8; color: var(--slate); font-style: italic; margin-block-end: 1rem; }
.testimonial-author { border-block-start: 1px solid rgba(14,27,44,0.1); padding-block-start: 1rem; }
.testimonial-author cite { font-style: normal; font-weight: 600; color: var(--navy); font-size: 0.9rem; }

/* ===== CONSULTATION ===== */
.consult-form { max-width: 640px; margin-inline: auto; display: grid; gap: 1.25rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea { padding: 0.85rem 1rem; border: 1px solid rgba(14,27,44,0.2); border-radius: var(--r); font-family: inherit; font-size: 1rem; background: var(--white); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(185,138,60,0.15); }
.field textarea { resize: vertical; }
.form-success { text-align: center; padding: 3rem 2rem; }
.form-success h3 { color: var(--gold); margin-block-end: 0.5rem; }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy); color: var(--ivory-2); padding-block: 3rem 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1.5fr 1fr 1fr; gap: 2rem; }
.footer-logo { font-family: var(--font-ar-head); font-size: 1.2rem; font-weight: 700; color: var(--ivory); display: block; margin-block-end: 0.5rem; }
.footer-grid h3 { color: var(--gold); font-size: 0.9rem; margin-block-end: 0.6rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-grid p { font-size: 0.88rem; line-height: 1.7; }
.footer-grid ul { list-style: none; display: grid; gap: 0.4rem; }
.footer-grid li a { color: var(--ivory-2); font-size: 0.88rem; transition: color 0.2s; }
.footer-grid li a:hover { color: var(--gold); }
.footer-bottom { border-block-start: 1px solid rgba(248,245,239,0.1); margin-block-start: 2rem; padding-block-start: 1.5rem; text-align: center; font-size: 0.82rem; }
.footer-bottom p { margin-block-end: 0.3rem; }
.legal-links { margin-block-start: 0.5rem; }
.legal-links a { color: var(--ivory-2); text-decoration: underline; text-underline-offset: 3px; }

/* ===== MOBILE BAR ===== */
.mobile-action-bar { display: none; position: fixed; inset: auto 0 0 0; z-index: 60; grid-template-columns: 1fr 1fr 1.4fr; background: var(--navy); border-block-start: 3px solid var(--gold); }
.mobile-action-bar a { display: grid; place-items: center; min-height: 56px; font-weight: 700; font-size: 0.9rem; text-decoration: none; gap: 0.3rem; }
.action-call { color: var(--gold); }
.action-wa { color: #4cc95b; border-inline: 1px dashed rgba(248,245,239,0.3); }
.action-cta { background: var(--gold); color: var(--navy); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .primary-nav { display: none; position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; background: var(--navy); padding: 2.5rem 8%; gap: 1.5rem; }
  .primary-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .field-row { grid-template-columns: 1fr; }
  .hero-content { padding-block-end: 6rem; }
  .mobile-action-bar { display: grid; }
  body { padding-block-end: 56px; }
  .footer-grid { grid-template-columns: 1fr; }
}