/* ============================================
   Mohamed Ibrahim Law — Main Stylesheet v1.0
   ============================================ */

/* 1. Variables */
:root {
  --bg: #272121;
  --surface: #2e2828;
  --surface2: #3a3232;
  --gold: #C9A84C;
  --gold-lt: #E8C96A;
  --gold-dim: rgba(201, 168, 76, .15);
  --gold-bdr: rgba(201, 168, 76, .22);
  --text: #F5F0E8;
  --muted: #9CA3AF;
  --white: #ffffff;
  --radius: 12px;
  --radius-lg: 20px;
  --trans: .35s ease;
  --font: 'Readex Pro', sans-serif;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
}

/* 2. Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  text-align: right;
  line-height: 1.7;
  overflow-x: hidden;
  max-width: 100vw;
  position: relative
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

ul {
  list-style: none
}

/* 3. Typography */
h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.3
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35
}

h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600
}

p {
  color: var(--muted);
  font-size: 1.05rem
}

/* 4. Layout */
.container {
  width: min(1180px, 92%);
  margin-inline: auto
}

.section {
  padding: 90px 0
}

.section-dark {
  background: var(--surface)
}

.section-header {
  text-align: center;
  margin-bottom: 60px
}

.section-header h2 {
  color: var(--text);
  margin-bottom: 14px
}

.section-header .gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-lt));
  margin: 0 auto;
  border-radius: 2px;
  animation: lineGrow .8s ease forwards
}

.section-header p {
  color: var(--muted);
  max-width: 600px;
  margin: 16px auto 0
}

/* 5. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--trans);
  white-space: nowrap;
  text-align: center
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-lt));
  color: #272121
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 168, 76, .4)
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold)
}

.btn-outline:hover {
  background: var(--gold-dim);
  transform: translateY(-2px)
}

/* 6. NAV */
#ml-nav {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 999;
  padding: 18px 0;
  transition: all var(--trans)
}

#ml-nav.scrolled {
  background: rgba(39, 33, 33, .95);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  border-bottom: 1px solid var(--gold-bdr)
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0
}

.nav-logo-img {
  height: 70px;
  width: auto;
  display: block
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px
}

.nav-menu a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--trans);
  position: relative
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--trans)
}

.nav-menu a:hover {
  color: var(--gold)
}

.nav-menu a:hover::after {
  width: 100%
}

.nav-cta {
  margin-inline-start: 10px
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
  background: none;
  border: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  line-height: 0
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  min-height: 2px;
  max-height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--trans);
  flex-shrink: 0
}

/* 7. HERO */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
  padding-bottom: 80px;
  max-width: 100vw
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(201, 168, 76, .08) 0%, transparent 60%), radial-gradient(ellipse at 80% 20%, rgba(201, 168, 76, .05) 0%, transparent 50%), linear-gradient(135deg, #272121 0%, #1c1919 100%);
  z-index: 0
}

.hero-geo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden
}

.hero-geo::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 600px;
  height: 600px;
  border: 1px solid var(--gold-bdr);
  border-radius: 50%;
  animation: rotateSlow 30s linear infinite
}

.hero-geo::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 400px;
  height: 400px;
  border: 1px solid rgba(201, 168, 76, .1);
  border-radius: 50%;
  animation: rotateSlow 20s linear infinite reverse
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  width: 100%;
  margin-left: auto
}

/* صورة الهيرو اليمنى (الجانب الأيسر بصرياً) */
.hero-visual {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 45%;
  z-index: 1;
  overflow: hidden;
  pointer-events: none
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .6) 55%, transparent 100%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, .6) 55%, transparent 100%);
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse 2s infinite
}

#hero h1 {
  margin-bottom: 20px;
  animation: fadeUp .9s ease .3s both
}

#hero h1 em {
  font-style: normal;
  color: var(--gold)
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 620px;
  animation: fadeUp .9s ease .45s both
}

.hero-highlight {
  background: var(--gold-dim);
  border-right: 3px solid var(--gold);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 36px;
  font-size: 1rem;
  color: var(--text);
  animation: fadeUp .9s ease .55s both
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeUp .9s ease .65s both
}

/* scroll indicator — مخفي على موبايل */
.hero-scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .8rem;
  z-index: 1
}

.hero-scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite
}

/* 8. INTRO */
#intro {
  padding: 80px 0;
  background: var(--surface)
}

.intro-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 50px
}

.intro-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px;
  background: var(--surface2);
  border: 1px solid var(--gold-bdr);
  border-radius: var(--radius);
  transition: all var(--trans)
}

.intro-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 10px 40px rgba(201, 168, 76, .1)
}

.intro-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 10px;
  background: var(--gold-dim);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--gold)
}

.intro-item h3 {
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 6px
}

.intro-item p {
  font-size: .9rem;
  color: var(--muted)
}

/* 9. SERVICES */
#services {
  padding: 90px 0
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--gold-bdr);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all var(--trans);
  cursor: default
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform var(--trans)
}

.service-card:hover::before {
  transform: scaleX(1)
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(201, 168, 76, .12);
  border-color: rgba(201, 168, 76, .5)
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold-dim), rgba(201, 168, 76, .05));
  border: 1px solid var(--gold-bdr);
  display: grid;
  place-items: center;
  font-size: 1.7rem;
  margin-bottom: 24px;
  transition: all var(--trans)
}

.service-card:hover .service-icon {
  background: var(--gold);
  color: #272121;
  transform: scale(1.05)
}

.service-card h3 {
  color: var(--text);
  margin-bottom: 14px;
  font-size: 1.2rem
}

.service-card p {
  font-size: .95rem;
  line-height: 1.8
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--gold);
  font-size: .9rem;
  font-weight: 600;
  margin-top: 20px;
  transition: gap var(--trans)
}

.service-link:hover {
  gap: 10px
}

/* 10. WHY US */
#why-us {
  padding: 90px 0;
  background: var(--surface)
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center
}

.why-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center
}

.why-circle {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), rgba(201, 168, 76, .03));
  border: 1px solid var(--gold-bdr);
  display: grid;
  place-items: center;
  position: relative
}

.why-circle::before {
  content: '⚖';
  font-size: 5rem;
  opacity: .8
}

.why-circle::after {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  border: 1px dashed var(--gold-bdr);
  animation: rotateSlow 20s linear infinite
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--surface2);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all var(--trans)
}

.why-item:hover {
  border-color: var(--gold-bdr);
  transform: translateX(-4px)
}

.why-check {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--gold-bdr);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0
}

.why-item p {
  color: var(--text);
  font-size: .97rem;
  margin: 0
}

/* 11. VALUES */
#values {
  padding: 90px 0
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px
}

.value-card {
  background: var(--surface);
  border: 1px solid var(--gold-bdr);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: all var(--trans)
}

.value-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 50px rgba(201, 168, 76, .1);
  border-color: rgba(201, 168, 76, .5)
}

.value-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: block
}

.value-card h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 10px
}

.value-card p {
  font-size: .9rem
}

/* 12. ABOUT */
#about {
  padding: 90px 0;
  background: var(--surface)
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center
}

.about-visual {
  position: relative
}

.about-box {
  background: linear-gradient(135deg, var(--surface2), #3d3535);
  border: 1px solid var(--gold-bdr);
  border-radius: var(--radius-lg);
  padding: 40px;
  position: relative;
  overflow: hidden
}

.about-box::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(201, 168, 76, .1), transparent);
  pointer-events: none
}

.about-office-name {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 6px
}

.about-office-name em {
  font-style: normal;
  color: var(--gold)
}

.about-license {
  font-size: .85rem;
  color: var(--gold);
  background: var(--gold-dim);
  border: 1px solid var(--gold-bdr);
  display: inline-block;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 20px
}

.about-stat {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  flex-wrap: wrap
}

.stat-item {
  text-align: center;
  flex: 1;
  min-width: 80px
}

.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1
}

.stat-lbl {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 4px
}

.about-content p {
  font-size: 1rem;
  line-height: 1.9;
  margin-bottom: 20px
}

.branches-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 28px
}

.branch-item {
  background: var(--surface2);
  border: 1px solid var(--gold-bdr);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .9rem;
  color: var(--text);
  transition: all var(--trans)
}

.branch-item:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, .1)
}

.branch-item .branch-icon {
  color: var(--gold);
  font-size: 1rem;
  flex-shrink: 0
}

.branch-item .branch-text {
  flex-grow: 1;
  font-weight: 500
}

.branch-item .branch-maps {
  font-size: .75rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--trans)
}

.branch-item:hover .branch-maps {
  opacity: 1;
  transform: translateX(0)
}

/* 13. CTA SECTION */
#cta-section {
  padding: 90px 0;
  background: linear-gradient(135deg, #272121, #1c1919);
  position: relative;
  overflow: hidden;
  text-align: center;
  max-width: 100%
}

#cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(201, 168, 76, .08), transparent 70%)
}

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

.cta-inner h2 {
  margin-bottom: 16px
}

.cta-inner p {
  color: var(--muted);
  max-width: 500px;
  margin: 0 auto 36px
}

.cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap
}

/* 14. CONTACT FORM */
#contact {
  padding: 90px 0;
  background: var(--surface)
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: start
}

.contact-info h3 {
  color: var(--text);
  font-size: 1.3rem;
  margin-bottom: 20px
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--surface2);
  border: 1px solid var(--gold-bdr);
  border-radius: var(--radius);
  margin-bottom: 14px;
  transition: all var(--trans)
}

.contact-detail:hover {
  border-color: var(--gold)
}

.contact-detail .cd-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--gold-dim);
  display: grid;
  place-items: center;
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0
}

.contact-detail p {
  margin: 0;
  font-size: .9rem;
  color: var(--text)
}

.contact-detail span {
  display: block;
  font-size: .75rem;
  color: var(--muted)
}

.contact-form-wrap {
  background: var(--surface2);
  border: 1px solid var(--gold-bdr);
  border-radius: var(--radius-lg);
  padding: 36px 32px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px
}

.form-group {
  margin-bottom: 20px
}

.form-group label {
  display: block;
  font-size: .9rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 500
}

.form-group label .required {
  color: var(--gold)
}

.form-control {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--gold-bdr);
  border-radius: 8px;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: .97rem;
  color: var(--text);
  direction: rtl;
  transition: all var(--trans);
  resize: none
}

.form-control::placeholder {
  color: var(--muted)
}

.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, .12)
}

textarea.form-control {
  min-height: 130px
}

.form-submit {
  width: 100%
}

.form-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: .9rem;
  display: none
}

.form-msg.success {
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .3);
  color: #4ade80
}

.form-msg.error {
  background: rgba(239, 68, 68, .1);
  border: 1px solid rgba(239, 68, 68, .3);
  color: #f87171
}

/* 15. FOOTER */
#ml-footer {
  background: #1a1515;
  border-top: 1px solid var(--gold-bdr);
  padding: 50px 0 24px
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 40px
}

.footer-brand .logo-text-footer {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px
}

.footer-brand .logo-text-footer em {
  font-style: normal;
  color: var(--gold)
}

.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 14px
}

.footer-brand p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 12px;
  max-width: 280px
}

.footer-col h4 {
  color: var(--gold);
  font-size: .95rem;
  margin-bottom: 18px;
  font-weight: 600
}

.footer-links li {
  margin-bottom: 10px
}

.footer-links a {
  color: var(--muted);
  font-size: .9rem;
  transition: color var(--trans)
}

.footer-links a:hover {
  color: var(--gold)
}

.footer-bottom {
  border-top: 1px solid var(--gold-bdr);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap
}

.footer-bottom p {
  font-size: .82rem;
  color: var(--muted);
  margin: 0
}

.footer-bottom em {
  font-style: normal;
  color: var(--gold)
}

/* 16. WHATSAPP FLOAT */
#whatsapp-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 14px 22px 14px 18px;
  cursor: pointer;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  box-shadow: 0 4px 24px rgba(37, 211, 102, .4);
  transition: all var(--trans);
  animation: fadeIn .8s ease 1s both
}

#whatsapp-float:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 8px 32px rgba(37, 211, 102, .5)
}

#whatsapp-float svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  flex-shrink: 0
}

/* 17. PAGE HERO (inner pages) */
.page-hero {
  padding: 140px 0 70px;
  background: linear-gradient(135deg, #272121, #1c1919);
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-bdr)
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 50%;
  transform: translateX(50%);
  width: 120px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent)
}

.page-hero h1 {
  margin-bottom: 12px
}

.page-hero p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: .85rem;
  color: var(--muted)
}

.breadcrumb a {
  color: var(--gold)
}

.breadcrumb span {
  color: var(--muted)
}

/* 18. ANIMATIONS */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes rotateSlow {
  from {
    transform: rotate(0deg)
  }

  to {
    transform: rotate(360deg)
  }
}

@keyframes lineGrow {
  from {
    width: 0
  }

  to {
    width: 60px
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .6;
    transform: scale(.8)
  }
}

@keyframes scrollLine {

  0%,
  100% {
    opacity: 0;
    transform: scaleY(0);
    transform-origin: top
  }

  50% {
    opacity: 1;
    transform: scaleY(1)
  }
}

/* 19. MOBILE */
@media(max-width:900px) {

  .why-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr
  }

  .about-visual {
    order: -1
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:700px) {

  /* Nav */
  .nav-menu,
  .nav-cta {
    display: none
  }

  .nav-toggle {
    display: flex
  }

  #ml-nav .nav-menu.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(39, 33, 33, .98);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--gold-bdr)
  }

  #ml-nav .nav-menu.open .nav-cta {
    display: block
  }

  /* Hero — إصلاح الـ overflow والـ overlap */
  #hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
    align-items: flex-start;
    padding-inline: 0
  }

  h1 {
    font-size: 2rem
  }

  .hero-visual {
    display: none
  }

  .hero-content {
    margin: 0;
    max-width: 100%
  }

  .hero-scroll {
    display: none
  }

  .hero-geo::before {
    width: 240px;
    height: 240px;
    top: -5%;
    left: -50%;
    opacity: .5
  }

  .hero-geo::after {
    width: 180px;
    height: 180px;
    bottom: -5%;
    right: -40%;
    opacity: .4
  }

  .hero-content {
    padding: 0;
    width: 100%;
    max-width: 100%
  }

  .hero-badge {
    font-size: .78rem;
    padding: 6px 14px;
    white-space: normal;
    max-width: 100%
  }

  .hero-highlight {
    font-size: .9rem;
    padding: 12px 14px;
    max-width: 100%
  }

  .hero-ctas {
    flex-direction: column;
    width: 100%;
    max-width: 100%
  }

  .hero-ctas .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    justify-content: center
  }

  /* Form */
  .form-row {
    grid-template-columns: 1fr
  }

  .contact-form-wrap {
    padding: 24px 18px
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center
  }

  /* WhatsApp button */
  #whatsapp-float {
    border-radius: 50%;
    width: 54px;
    height: 54px;
    padding: 0;
    justify-content: center
  }

  #whatsapp-float span {
    display: none
  }

  /* Branches */
  .branches-grid {
    grid-template-columns: 1fr
  }

  /* Values */
  .values-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:480px) {
  .section {
    padding: 60px 0
  }

  .services-grid {
    grid-template-columns: 1fr
  }

  .values-grid {
    grid-template-columns: 1fr
  }

  .intro-grid {
    grid-template-columns: 1fr
  }

  h1 {
    font-size: 2.2rem
  }

  h2 {
    font-size: 1.45rem
  }

  .hero-badge {
    white-space: normal;
    text-align: center;
    justify-content: center
  }

  /* منع أي overflow أفقي على شاشات صغيرة جداً */
  .container {
    width: 100%;
    padding-inline: 16px
  }

  .btn {
    white-space: normal;
    max-width: 100%
  }

  .cta-btns {
    flex-direction: column;
    align-items: stretch
  }

  .cta-btns .btn {
    width: 100%
  }

  .contact-form-wrap {
    padding: 20px 14px
  }

  .about-box {
    padding: 24px 18px
  }
}

/* 20. PRACTICE AREAS PILLS */
.practice-areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 48px
}

.practice-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--gold-bdr);
  border-radius: var(--radius);
  transition: all var(--trans);
  cursor: default
}

.practice-pill:hover {
  border-color: var(--gold);
  background: var(--surface2);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(201, 168, 76, .12)
}

.practice-pill-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--gold-dim);
  border-radius: 8px;
  display: grid;
  place-items: center
}

.practice-pill-label {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4
}

@media(max-width:700px) {
  .practice-areas-grid {
    grid-template-columns: 1fr 1fr
  }
}

@media(max-width:480px) {
  .practice-areas-grid {
    grid-template-columns: 1fr
  }
}