/* ════════════════════════════════════════════════════════════
   Cabinet Atig D'avocats — Global Styles
   ════════════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gold: #b8943e;
  --gold-light: #d4b45e;
  --gold-faint: rgba(184, 148, 62, 0.08);
  --cream: #faf8f4;
  --cream-dark: #f2efe8;
  --dark: #1e1e1e;
  --muted: #6b6560;
  --light-muted: #9e9892;
  --border: #e8e4de;
  --white: #ffffff;
  --section-gap: 100px;
  --container: 1080px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Cormorant Garamond', Georgia, serif;
  background: var(--cream);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* RTL body */
body.rtl {
  direction: rtl;
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Container ── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Section Spacing ── */
.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--white);
}

/* ── Section Heading ── */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.section-line {
  width: 50px;
  height: 2.5px;
  background: var(--gold);
  margin-bottom: 40px;
}

body.rtl .section-line {
  margin-left: auto;
  margin-right: 0;
}

/* ════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 248, 244, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.nav.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 1px;
  text-transform: uppercase;
}

body.rtl .nav-brand {
  font-size: 1.1rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: color 0.2s;
}

body.rtl .nav-links a {
  letter-spacing: 0;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-lang {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 4px 12px;
  border-radius: 3px;
  letter-spacing: 1px;
  transition: background 0.2s, color 0.2s;
}

.nav-lang:hover {
  background: var(--gold);
  color: var(--white);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--dark);
  position: absolute;
  left: 0;
  transition: 0.3s;
}

.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 9px; }
.nav-toggle span:nth-child(3) { top: 18px; }

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
  padding-top: 160px;
  padding-bottom: 100px;
  text-align: center;
}

.hero-scale {
  font-size: 2.8rem;
  color: var(--gold);
  margin-bottom: 16px;
}

.hero-firm {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--dark);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 6px;
}

body.rtl .hero-firm {
  letter-spacing: 0;
  font-size: 2.4rem;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 500;
  color: var(--light-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 28px;
}

body.rtl .hero-sub {
  letter-spacing: 1px;
}

.hero-line {
  width: 50px;
  height: 2.5px;
  background: var(--gold);
  margin: 0 auto 28px auto;
}

.hero-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.hero-title {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

body.rtl .hero-title {
  letter-spacing: 0.5px;
}

/* ════════════════════════════════════════
   SPECIALTIES / DOMAINES
   ════════════════════════════════════════ */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.spec-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.section-alt .spec-card {
  background: var(--cream);
}

.spec-card:hover {
  border-color: var(--gold-light);
  box-shadow: 0 4px 20px rgba(184, 148, 62, 0.08);
}

.spec-icon {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--gold);
}

.spec-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.spec-desc {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
}

/* ════════════════════════════════════════
   ABOUT / CABINET
   ════════════════════════════════════════ */
.about-text {
  max-width: 720px;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.85;
}

body.rtl .about-text {
  font-size: 1.05rem;
  line-height: 2;
}

/* ════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.05rem;
  color: var(--dark);
}

body.rtl .contact-row {
  direction: ltr;
  justify-content: flex-end;
}

.contact-row .ico {
  color: var(--gold);
  font-size: 1.15rem;
  min-width: 22px;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form input,
.contact-form textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--cream);
  color: var(--dark);
  outline: none;
  transition: border-color 0.2s;
}

body.rtl .contact-form input,
body.rtl .contact-form textarea {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  direction: rtl;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--gold);
}

.contact-form textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form button {
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 13px 28px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  border-radius: 3px;
  transition: background 0.3s, color 0.3s;
  align-self: flex-start;
}

body.rtl .contact-form button {
  font-family: 'Noto Naskh Arabic', 'Amiri', serif;
  letter-spacing: 0;
  align-self: flex-end;
}

.contact-form button:hover {
  background: var(--gold);
  color: var(--white);
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
}

.footer p {
  font-size: 0.82rem;
  color: var(--light-muted);
  letter-spacing: 0.5px;
}

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 24px 0;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    transition: transform 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
  }

  .hero-firm { font-size: 1.8rem; letter-spacing: 1.5px; }
  body.rtl .hero-firm { font-size: 1.6rem; }
  .hero-name { font-size: 1.2rem; }
  .hero { padding-top: 120px; padding-bottom: 60px; }

  .specs-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .section { padding: 60px 0; }
  .section-title { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .hero-firm { font-size: 1.4rem; }
  body.rtl .hero-firm { font-size: 1.3rem; }
  .hero-sub { font-size: 0.82rem; }
}
