/* ============================================================
   مكتب المحاماة السعودي — Premium Law Firm Stylesheet
   Mobile-First | Navy + Gold + White
   ============================================================ */

:root {
  --navy-900: #0a1628;
  --navy-800: #0f2240;
  --navy-700: #1a3358;
  --navy-600: #234878;
  --gold: #D4AF37;
  --gold-light: #e8c96a;
  --gold-dark: #b8942e;
  --white: #ffffff;
  --off-white: #f8f9fb;
  --gray-100: #f1f3f6;
  --gray-200: #e2e6ed;
  --gray-400: #8b95a5;
  --gray-600: #4a5568;
  --gray-800: #2d3748;
  --shadow-sm: 0 2px 8px rgba(10, 22, 40, 0.06);
  --shadow-md: 0 8px 30px rgba(10, 22, 40, 0.1);
  --shadow-lg: 0 20px 60px rgba(10, 22, 40, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Amiri', 'Traditional Arabic', serif;
  --font-body: 'Tajawal', 'Segoe UI', sans-serif;
  --topbar-height: 38px;
  --header-height: 76px;
  --site-header: calc(var(--topbar-height) + var(--header-height));
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.8;
  overflow-x: hidden;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Geometric Pattern Background ── */
.pattern-bg {
  position: relative;
}

.pattern-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 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='%23D4AF37' fill-opacity='0.06'%3E%3Cpath d='M30 0l15 15-15 15L15 15zM0 30l15 15-15 15L-15 45zM60 30l15 15-15 15L45 45zM30 60l15 15-15 15L15 75z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.pattern-bg > * {
  position: relative;
  z-index: 1;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy-900);
  letter-spacing: 0.01em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold-dark);
  margin-bottom: 0.75rem;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.section-label::after {
  background: linear-gradient(90deg, var(--gold), transparent);
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 640px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-900);
  box-shadow: 0 2px 12px rgba(212, 175, 55, 0.25);
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
}

.btn-navy:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
}

/* ── Top Bar ── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001;
  height: var(--topbar-height);
  background: var(--navy-900);
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.topbar__left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

a.topbar__item:hover {
  color: var(--gold);
}

.topbar__license {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold);
}

.topbar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  color: var(--gold);
}

.topbar__icon i {
  font-size: 14px;
  line-height: 1;
}

/* ── Header / Navigation ── */
.header {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  transition: all var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo__icon {
  width: auto;
  height: 52px;
  max-width: 64px;
  object-fit: contain;
  background: transparent;
  border: none;
  border-radius: 0;
  display: block;
  flex-shrink: 0;
}

.logo__icon i.logo__scales {
  font-size: 30px;
  line-height: 1;
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}

.logo__tagline {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.02em;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 0.25rem 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link.active {
  color: var(--gold);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header__cta {
  display: none;
  padding: 0.65rem 1.35rem;
  font-size: 0.85rem;
}

.lang-toggle {
  background: none;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: var(--gold);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.lang-toggle:hover {
  background: var(--gold);
  color: var(--navy-900);
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: all var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--site-header);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--navy-900);
  z-index: 999;
  padding: 2rem 1.25rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu__link {
  display: block;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu__link:hover,
.mobile-menu__link.active {
  color: var(--gold);
}

.mobile-menu__cta {
  margin-top: 2rem;
  width: 100%;
}

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--navy-900);
  overflow: hidden;
  padding-top: var(--site-header);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(10, 22, 40, 0.88) 0%, rgba(15, 34, 64, 0.82) 50%, rgba(10, 22, 40, 0.9) 100%),
    url('../assets/hero-bg.png') center/cover no-repeat;
}

.hero__pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.5'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z'/%3E%3Cpath d='M40 10L70 40L40 70L10 40Z'/%3E%3Cpath d='M40 20L60 40L40 60L20 40Z'/%3E%3Cpath d='M0 0L40 40M40 40L80 0M40 40L80 80M40 40L0 80'/%3E%3C/g%3E%3C/svg%3E");
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 3rem 0;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero__badge-icon {
  display: flex;
  width: 16px;
  height: 16px;
  color: var(--gold);
}

.hero__badge-icon i {
  font-size: 16px;
  line-height: 1;
}

.hero__title {
  font-size: clamp(2rem, 6vw, 3.5rem);
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.hero__title span {
  color: var(--gold);
}

.hero__desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero__license {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-md);
  max-width: fit-content;
}

.hero__license-icon {
  width: 40px;
  height: 40px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.hero__license-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero__license-text strong {
  display: block;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
}

.hero__stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.25rem;
}

/* ── Trust Bar ── */
.trust-bar {
  background: var(--white);
  padding: 0;
  border-bottom: 1px solid var(--gray-200);
}

.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.trust-bar__item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--gray-200);
}

.trust-bar__item:nth-child(odd) {
  border-left: 1px solid var(--gray-200);
}

.trust-bar__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--gold-dark);
  flex-shrink: 0;
}

.trust-bar__icon i {
  font-size: 22px;
  line-height: 1;
}

.trust-bar__text {
  font-size: 0.85rem;
  color: var(--navy-800);
  font-weight: 600;
  text-align: right;
}

/* ── Section Spacing ── */
.section {
  padding: 4rem 0;
}

.section--gray {
  background: var(--off-white);
}

.section--navy {
  background: var(--navy-900);
  color: var(--white);
}

.section--navy .section-title {
  color: var(--white);
}

.section--navy .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.section--navy .section-subtitle a,
.trust-bar__text a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.section--navy .section-subtitle a:hover,
.trust-bar__text a:hover {
  color: var(--white);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__header .section-subtitle {
  margin: 0 auto;
}

/* ── Typography utilities ── */
.prose p {
  color: var(--gray-600);
  line-height: 1.9;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.prose p:last-child {
  margin-bottom: 0;
}

.section--navy .prose p {
  color: rgba(255, 255, 255, 0.8);
}

/* ── Layout utilities ── */
.btn--block {
  width: 100%;
}

.section-action {
  margin-top: 1.5rem;
}

.map-actions {
  text-align: center;
  margin-top: 1.5rem;
}

.vision-banner--inline {
  margin-top: 0;
}

.laws-grid--spaced {
  margin-top: 1.5rem;
}

/* ── Footer logo ── */
.logo--footer {
  margin-bottom: 1rem;
}

.logo--footer .logo__icon {
  height: 46px;
  max-width: 56px;
}

.logo--footer .logo__icon i.logo__scales {
  font-size: 26px;
}

/* ── Credentials ── */
.credentials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 960px;
  margin: 0 auto;
}

.credential-card {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.credential-card:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-sm);
}

.credential-card h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
  margin: 0.75rem 0 0.25rem;
}

.credential-card p {
  font-size: 0.82rem;
  color: var(--gray-600);
}

.credential-card .credential-icon {
  margin: 0 auto;
}

.team-card__bio {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 0.5rem;
}

/* ── About Section ── */
.about-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

.about__image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--navy-800);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 22, 40, 0.35), transparent 50%);
  pointer-events: none;
}

.about__image-badge {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--navy-900);
  color: var(--gold);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-md);
  z-index: 1;
}

.about__content .section-label,
.about__content .section-title {
  text-align: right;
}

.about__features {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.about__feature {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.about__feature-icon,
.service-card__icon,
.contact-item__icon,
.contact-card__icon,
.value-card__icon {
  color: var(--gold);
}

.about__feature-icon i,
.service-card__icon i,
.contact-item__icon i,
.contact-card__icon i,
.value-card__icon i,
.hero__license-icon i,
.credential-icon i {
  font-size: 22px;
  line-height: 1;
}

.about__feature-icon {
  width: 48px;
  height: 48px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.about__feature:hover .about__feature-icon {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--gold);
}

.about__feature h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.about__feature p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* Vision 2030 Banner */
.vision-banner {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  border-radius: var(--radius-lg);
  border: 1px solid rgba(212, 175, 55, 0.2);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.vision-banner__logo {
  flex-shrink: 0;
  padding: 0.65rem 1rem;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vision-banner__logo img {
  display: block;
  width: auto;
  height: 56px;
  max-width: min(220px, 100%);
  object-fit: contain;
}

.vision-banner h3 {
  color: var(--gold);
  font-size: 1.25rem;
}

.vision-banner p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  max-width: 600px;
}

/* Official entity logos */
.official-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  line-height: 0;
}

.official-logo img {
  display: block;
  width: auto;
  object-fit: contain;
}

.official-logo--xs {
  padding: 0;
}

.official-logo--xs img {
  height: 22px;
  max-width: 56px;
}

.official-logo--sm {
  padding: 0;
}

.official-logo--sm img {
  height: 36px;
  max-width: 80px;
}

.official-logo--md {
  padding: 0;
}

.official-logo--md img {
  height: 52px;
  max-width: 100px;
}

.official-logo--lg img {
  height: 56px;
  max-width: 160px;
}

.hero__license-logo.official-logo--md img {
  height: 48px;
  max-width: 96px;
}

.credential-logo {
  margin: 0 auto 0.75rem;
}

.moj-showcase {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.moj-showcase__image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  display: block;
}

.moj-showcase__content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
}

.moj-showcase__content h3 {
  font-size: 1.2rem;
  color: var(--navy-900);
}

.moj-showcase__content p {
  font-size: 0.92rem;
  color: var(--gray-600);
  max-width: 420px;
}

.moj-showcase__license {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-800);
}

.moj-showcase--compact {
  margin-bottom: 1.5rem;
}

.moj-showcase--compact .moj-showcase__image img {
  height: 160px;
}

.moj-showcase--compact .moj-showcase__content {
  padding: 1.25rem;
  gap: 0.5rem;
}

.moj-showcase--compact .moj-showcase__content h3 {
  font-size: 1rem;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card__num {
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gray-100);
  line-height: 1;
  pointer-events: none;
  transition: color var(--transition);
}

.service-card:hover .service-card__num {
  color: rgba(212, 175, 55, 0.15);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, var(--gold), var(--gold-dark));
  transition: height var(--transition);
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.25);
}

.service-card:hover::before {
  height: 100%;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.service-card:hover .service-card__icon {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--gold);
}

.service-card__title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.service-card__desc {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold-dark);
}

.service-card__link:hover {
  color: var(--navy-800);
}

/* ── Saudi Laws Section ── */
.laws-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.law-item {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.law-item:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.3);
}

.law-item__number {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.5;
  flex-shrink: 0;
}

.law-item h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.law-item p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ── Consultation Form ── */
.consultation {
  display: grid;
  gap: 2.5rem;
}

.consultation__info {
  padding: 2rem;
  background: var(--navy-900);
  border-radius: var(--radius-md);
  color: var(--white);
  border: 1px solid rgba(212, 175, 55, 0.15);
}

.consultation__info h3 {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.consultation__info p {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 2rem;
}

.consultation__contacts {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-item__icon {
  width: 44px;
  height: 44px;
  background: rgba(212, 175, 55, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.contact-item__icon.official-logo {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.contact-item__text {
  font-size: 0.9rem;
}

.contact-item__text strong {
  display: block;
  color: var(--white);
  font-weight: 600;
}

.contact-item__text span {
  color: rgba(255, 255, 255, 0.6);
}

.consultation__form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--gold);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  color: var(--gray-800);
  transition: all var(--transition);
  direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-row {
  display: grid;
  gap: 1.25rem;
}

.form-submit {
  width: 100%;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.8rem;
  color: var(--gray-400);
  text-align: center;
  margin-top: 1rem;
}

/* ── Page Header (Inner Pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  padding: calc(var(--site-header) + 3rem) 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.3' opacity='0.15'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z'/%3E%3C/g%3E%3C/svg%3E");
}

.page-hero__title {
  font-size: clamp(1.75rem, 5vw, 2.75rem);
  color: var(--white);
  margin-bottom: 0.75rem;
  position: relative;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
}

.page-hero__breadcrumb a:hover {
  color: var(--gold);
}

/* ── Values Grid (About Page) ── */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.value-card {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.3);
}

.value-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.05));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
}

.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

/* ── Team Section ── */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: all var(--transition);
}

.team-card:hover {
  box-shadow: var(--shadow-md);
}

.team-card__avatar {
  aspect-ratio: 1;
  background: var(--navy-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  border-bottom: 3px solid var(--gold);
}

.team-card__info {
  padding: 1.5rem;
}

.team-card__name {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.team-card__role {
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 600;
}

/* ── Contact Page ── */
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-card {
  padding: 2rem;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(212, 175, 55, 0.3);
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.contact-card a {
  color: var(--gold-dark);
  font-weight: 600;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 300px;
  background: var(--gray-200);
  border: 1px solid var(--gray-200);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
  font-size: 28px;
  line-height: 1;
  color: #fff;
}

/* ── Footer ── */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer__brand .logo__name {
  font-size: 1.25rem;
}

.footer__brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer__heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.footer__links li {
  margin-bottom: 0.75rem;
}

.footer__links a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--gold);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.footer__contact-item a {
  color: inherit;
  transition: color var(--transition);
}

.footer__contact-item a:hover {
  color: var(--gold);
}

.footer__contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}

.footer__contact-icon i {
  font-size: 18px;
  line-height: 1;
}

.footer__license-icon i {
  font-size: 16px;
  line-height: 1;
  color: var(--gold);
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
}

.footer__license {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-weight: 600;
}

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Tablet (768px+) ── */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .section {
    padding: 5rem 0;
  }

  .nav {
    display: block;
  }

  .menu-toggle {
    display: none;
  }

  .header__cta {
    display: inline-flex;
  }

  .trust-bar__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .trust-bar__item {
    border-bottom: none;
    justify-content: center;
  }

  .trust-bar__item:nth-child(odd) {
    border-left: 1px solid var(--gray-200);
  }

  .trust-bar__item:first-child,
  .trust-bar__item:nth-child(3) {
    border-left: none;
  }

  .credentials-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .moj-showcase {
    grid-template-columns: 1.15fr 1fr;
    align-items: stretch;
  }

  .moj-showcase__image img {
    height: 100%;
    min-height: 300px;
  }

  .moj-showcase__content {
    justify-content: center;
    align-items: flex-start;
    text-align: right;
    padding: 2rem;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .laws-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .consultation {
    grid-template-columns: 1fr 1.2fr;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }

  .vision-banner {
    flex-direction: row;
    text-align: right;
  }

  .hero__stats {
    max-width: 500px;
  }
}

/* ── Desktop (1024px+) ── */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .map-container {
    height: 400px;
  }
}

/* ── Large Desktop (1280px+) ── */
@media (min-width: 1280px) {
  .hero__content {
    max-width: 800px;
  }
}

/* ── Form Success Message ── */
.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.show {
  display: block;
}

.form-success__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(212, 175, 55, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-dark);
}

.form-success__icon i {
  font-size: 28px;
  line-height: 1;
}

.credential-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  color: var(--gold-dark);
}

.hero__badge {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__license-icon i {
  font-size: 20px;
}

@media (min-width: 768px) {
  .topbar__item--hide-mobile {
    display: inline-flex;
  }
}

@media (max-width: 767px) {
  .topbar__item--hide-mobile {
    display: none;
  }

  .topbar__license {
    font-size: 0.65rem;
  }

  .hero__badge {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    font-size: 0.72rem;
    line-height: 1.55;
    padding: 0.45rem 0.85rem;
    gap: 0.35rem;
    text-align: center;
    border-radius: var(--radius-md);
  }

  .hero__badge-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }

  .hero__badge-icon i {
    font-size: 14px;
  }
}

.form-success h3 {
  color: var(--navy-900);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--gray-600);
}

/* ============================================================
   Professional Enhancements v2
   ============================================================ */

::selection {
  background: rgba(212, 175, 55, 0.25);
  color: var(--navy-900);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.stat-card {
  padding: 1.25rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.15);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  background: rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.3);
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}

.stat-card__label {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.35rem;
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.process-step {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}

.process-step:hover {
  border-color: rgba(212, 175, 55, 0.35);
  box-shadow: var(--shadow-sm);
}

.process-step__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.5rem;
}

.process-step h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.process-step p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  padding: 2rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.12);
  border-radius: var(--radius-md);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.2;
  line-height: 1;
}

.testimonial-card__text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.9;
  margin-bottom: 1.5rem;
  position: relative;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  background: rgba(212, 175, 55, 0.15);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 1rem;
}

.testimonial-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}

.testimonial-card__role {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}

.cta-banner {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='0.3' opacity='0.1'%3E%3Cpath d='M40 0L80 40L40 80L0 40Z'/%3E%3C/g%3E%3C/svg%3E");
}

.cta-banner__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.cta-banner h2 {
  color: var(--white);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  max-width: 600px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 500px;
  font-size: 1rem;
}

.cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.form-header {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}

.form-header h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.35rem;
}

.form-header p {
  font-size: 0.85rem;
  color: var(--gray-600);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__legal a {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--transition);
}

.footer__legal a:hover {
  color: var(--gold);
}

.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  left: 1.5rem;
  z-index: 890;
  width: 42px;
  height: 42px;
  background: var(--navy-800);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  cursor: pointer;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--navy-700);
  border-color: var(--gold);
}

.back-to-top i {
  font-size: 18px;
  line-height: 1;
}

.service-card__link-icon i {
  font-size: 14px;
  line-height: 1;
  transition: transform var(--transition);
}

.service-card__link:hover .service-card__link-icon i {
  transform: translateX(-3px);
}

.consultation__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.consultation__list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.consultation__list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-banner__inner {
    flex-direction: row;
    text-align: right;
    justify-content: space-between;
    align-items: center;
  }

  .cta-banner h2,
  .cta-banner p {
    text-align: right;
  }

  .cta-banner__text {
    flex: 1;
  }
}

@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero {
    min-height: 88vh;
  }
}
