:root {
  --ink: #071225;
  --navy: #0a1b33;
  --navy-2: #102a4e;
  --royal: #183b66;
  --gold: #caa85a;
  --gold-2: #e9cf8a;
  --ivory: #fbf7ee;
  --sand: #f1e7d1;
  --white: #ffffff;
  --text: #182336;
  --muted: #667085;
  --line: rgba(16, 42, 78, 0.10);
  --shadow: 0 22px 70px rgba(7, 18, 37, 0.16);
  --shadow-strong: 0 36px 90px rgba(7, 18, 37, 0.34);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(202, 168, 90, .16), transparent 26%),
    linear-gradient(180deg, #fffaf0 0%, #f7efe0 42%, #fbf7ee 100%);
  color: var(--text);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .055;
  background-image:
    linear-gradient(30deg, #0a1b33 12%, transparent 12.5%, transparent 87%, #0a1b33 87.5%, #0a1b33),
    linear-gradient(150deg, #0a1b33 12%, transparent 12.5%, transparent 87%, #0a1b33 87.5%, #0a1b33),
    linear-gradient(30deg, #0a1b33 12%, transparent 12.5%, transparent 87%, #0a1b33 87.5%, #0a1b33),
    linear-gradient(150deg, #0a1b33 12%, transparent 12.5%, transparent 87%, #0a1b33 87.5%, #0a1b33);
  background-size: 72px 126px;
  background-position: 0 0, 0 0, 36px 63px, 36px 63px;
  z-index: -1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6%;
  background: rgba(7, 18, 37, 0.88);
  color: white;
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(233, 207, 138, .18);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 16px;
  color: var(--ink);
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  font-weight: 900; font-size: 24px;
  box-shadow: 0 12px 26px rgba(202,168,90,.22);
}
.brand strong { display: block; letter-spacing: .02em; }
.brand small { display: block; color: #dce6f4; font-size: 12px; margin-top: -4px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { color: #edf4ff; transition: .25s ease; }
.nav a:hover { color: var(--gold-2); }
.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  color: var(--ink) !important;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(202,168,90,.26);
}
.menu-btn { display: none; background: none; border: none; color: white; font-size: 28px; }

.hero {
  min-height: 91vh;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 58px;
  padding: 88px 6% 96px;
  color: white;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 18% 20%, rgba(233,207,138,.28), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(135deg, #06101f 0%, #0a1b33 44%, #16375f 100%);
}
.hero::after {
  content: "MAHIOUTEN";
  position: absolute;
  right: -24px;
  bottom: 18px;
  color: rgba(255,255,255,.035);
  font-size: clamp(80px, 15vw, 210px);
  font-weight: 900;
  letter-spacing: .06em;
}
.hero-content, .hero-photo-card { position: relative; z-index: 1; }
.eyebrow, .section-tag {
  color: var(--gold-2);
  letter-spacing: .15em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(42px, 6vw, 78px); line-height: 1.02; margin-bottom: 10px; }
.hero h2 { color: var(--gold-2); font-size: clamp(21px, 3vw, 34px); font-weight: 500; margin-bottom: 24px; }
.hero-text { max-width: 790px; font-size: 20px; color: #eef5ff; margin-bottom: 12px; }
.arabic { font-family: Tahoma, Arial, sans-serif; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 23px; }
.btn {
  padding: 15px 25px;
  border-radius: 999px;
  font-weight: 900;
  transition: .25s ease;
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: linear-gradient(145deg, var(--gold-2), var(--gold)); color: var(--ink); }
.btn.secondary { border: 1px solid rgba(255,255,255,.34); color: white; background: rgba(255,255,255,.08); }
.quick-info { display: flex; flex-wrap: wrap; gap: 10px; }
.quick-info span { background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.14); padding: 9px 15px; border-radius: 999px; color: #e7edf7; }

.hero-photo-card {
  justify-self: center;
  width: min(430px, 100%);
  padding: 16px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.07));
  border: 1px solid rgba(233,207,138,.24);
  box-shadow: var(--shadow-strong);
}
.photo-frame { position: relative; border-radius: 30px; overflow: hidden; background: var(--gold); }
.photo-frame::before {
  content: ""; position: absolute; inset: 10px; border-radius: 24px;
  border: 1px solid rgba(255,255,255,.30); z-index: 1; pointer-events: none;
}
.photo-frame img { width: 100%; display: block; aspect-ratio: 4/5; object-fit: cover; object-position: center top; filter: saturate(1.02) contrast(1.02); }
.photo-caption { padding: 18px 8px 6px; }
.photo-caption strong { display: block; font-size: 20px; }
.photo-caption span { color: #dce6f4; }

.section { padding: 92px 6%; }
.split { display: grid; grid-template-columns: .62fr 1.38fr; gap: 44px; align-items: start; }
.section h2 { font-size: clamp(31px, 4vw, 50px); color: var(--navy); line-height: 1.12; }
.section-header.centered { text-align: center; max-width: 900px; margin: 0 auto 44px; }
.section-header p:not(.section-tag) { color: var(--muted); font-size: 18px; margin-top: 12px; }

.multi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.info-card, .profile-card, .practice-grid article, .contact-box {
  background: rgba(255,255,255,.88);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.info-card { position: relative; overflow: hidden; }
.info-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.info-card h3 { color: var(--gold); margin-bottom: 12px; font-size: 22px; }
.info-card p + p { margin-top: 10px; }
.arabic-card { font-size: 17px; }

.dark-section {
  background:
    radial-gradient(circle at 90% 15%, rgba(233,207,138,.18), transparent 30%),
    linear-gradient(135deg, #071225, #0b1d36 68%, #112f52);
  color: white;
}
.dark-section .section-tag, .dark-section h2 { color: var(--gold-2); }
.dark-section .section-header p { color: #d7deea; }
.timeline-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.profile-card { background: rgba(255,255,255,.085); border-color: rgba(255,255,255,.13); box-shadow: none; }
.profile-card h3 { color: var(--gold-2); margin-bottom: 16px; font-size: 23px; }
.profile-card ul { padding-left: 20px; }
.profile-card[dir="rtl"] ul { padding-left: 0; padding-right: 20px; }
.profile-card li { margin-bottom: 10px; color: #f6f8fc; }

.practice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 21px; }
.practice-grid article { min-height: 194px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.practice-grid article:hover { transform: translateY(-7px); box-shadow: 0 32px 78px rgba(7,18,37,.23); border-color: rgba(202,168,90,.38); }
.practice-grid span { color: var(--gold); font-weight: 900; letter-spacing: .14em; }
.practice-grid h3 { color: var(--navy); margin: 12px 0; font-size: 21px; }
.practice-grid p { color: var(--muted); }

.language-band {
  margin: 0 6%; padding: 50px 6%; border-radius: 34px;
  background: linear-gradient(135deg, #c69d45 0%, #efd992 54%, #b88931 100%);
  color: var(--ink); text-align: center; box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,.55);
}
.language-band h2 { font-size: 38px; margin-bottom: 22px; }
.language-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.language-list span { background: rgba(255,255,255,.45); padding: 11px 18px; border-radius: 999px; font-weight: 900; border: 1px solid rgba(255,255,255,.44); }

.contact-section { padding-top: 82px; }
.contact-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; padding: 44px; }
.contact-box p { color: var(--muted); margin: 18px 0; }
.contact-lines { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.contact-lines a { padding: 12px 18px; border-radius: 999px; background: var(--navy); color: white; font-weight: 900; }
.contact-form { display: grid; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid #d9dee8; background: #fbfcff; padding: 15px 16px; border-radius: 17px; font: inherit;
  outline: none; transition: .2s ease;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(202,168,90,.14); }
.contact-form textarea { min-height: 145px; resize: vertical; }
.contact-form button { border: none; border-radius: 17px; background: linear-gradient(145deg, var(--gold-2), var(--gold)); color: var(--ink); padding: 16px; font-weight: 900; cursor: pointer; }
.contact-form button:hover { filter: brightness(.97); transform: translateY(-1px); }

.footer { padding: 32px 6%; text-align: center; color: #dce6f4; background: var(--ink); border-top: 1px solid rgba(233,207,138,.18); }

@media (max-width: 980px) {
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 77px; display: none; flex-direction: column; background: rgba(7,18,37,.98); padding: 24px; border-bottom: 1px solid rgba(233,207,138,.18); }
  .nav.open { display: flex; }
  .hero, .split, .contact-box { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; text-align: center; }
  .hero-text { margin-left: auto; margin-right: auto; }
  .hero-actions, .quick-info { justify-content: center; }
  .multi-grid, .timeline-grid, .practice-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .site-header { padding: 13px 4%; }
  .brand strong { font-size: 15px; }
  .brand-mark { width: 42px; height: 42px; border-radius: 14px; }
  .hero, .section { padding-left: 4%; padding-right: 4%; }
  .contact-box { padding: 24px; }
  .language-band { margin: 0 4%; }
}


.hero-subtitle {
  color: var(--gold);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 600;
  margin: 0 0 18px;
}


.location-section {
  background:
    radial-gradient(circle at 8% 10%, rgba(202,168,90,.16), transparent 28%),
    linear-gradient(180deg, #fffdf7, #f6f1e7);
}
.location-box {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 32px;
  align-items: stretch;
}
.location-info, .map-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.location-info {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.location-info h3 {
  color: var(--navy);
  font-size: 29px;
  margin-bottom: 14px;
}
.location-info p {
  color: var(--muted);
  margin-bottom: 14px;
}
.location-coordinates {
  color: var(--ink) !important;
  font-weight: 800;
}
.location-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.btn.secondary.dark {
  color: var(--navy);
  border-color: rgba(11,29,54,.22);
  background: rgba(11,29,54,.05);
}
.map-card iframe {
  width: 100%;
  min-height: 410px;
  height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 980px) {
  .location-box { grid-template-columns: 1fr; }
  .map-card iframe { min-height: 340px; }
}
