:root {
  --espresso: #3a241b;
  --brown: #513527;
  --bronze: #b88a54;
  --champagne: #d9b98c;
  --ivory: #fbf8f4;
  --beige: #f3ece4;
  --card: #ffffff;
  --muted: #74675f;
  --line: rgba(81, 53, 39, 0.14);
  --shadow: 0 18px 50px rgba(58, 36, 27, 0.11);
  --soft-shadow: 0 10px 30px rgba(58, 36, 27, 0.08);
  --radius: 18px;
  --max: 1240px;
  font-family: "IBM Plex Sans Arabic", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--espresso);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 12%, rgba(184, 138, 84, 0.1), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(217, 185, 140, 0.16), transparent 24%);
  z-index: -1;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; }

:focus-visible {
  outline: 3px solid rgba(184, 138, 84, 0.5);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 248, 244, 0.78);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 248, 244, 0.96);
  border-color: var(--line);
  box-shadow: 0 8px 28px rgba(58, 36, 27, 0.06);
}

.nav {
  max-width: var(--max);
  min-height: 82px;
  margin: 0 auto;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.is-admin-nav {
  display: flex;
}

.nav-links a,
.lang-toggle {
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(58, 36, 27, 0.78);
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  transition: 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active,
.lang-toggle:hover {
  color: var(--espresso);
  background: rgba(184, 138, 84, 0.1);
  border-color: rgba(184, 138, 84, 0.18);
}

.lang-toggle {
  border-color: rgba(81, 53, 39, 0.16);
  background: rgba(255, 255, 255, 0.5);
}

.nav-cta {
  background: var(--espresso) !important;
  color: #fff !important;
  border-color: var(--espresso) !important;
  padding-inline: 18px !important;
}

.admin-nav-link {
  border-color: rgba(184, 138, 84, 0.24) !important;
  background: rgba(184, 138, 84, 0.08) !important;
  color: var(--brown) !important;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(81, 53, 39, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.75);
  padding: 12px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--espresso);
  border-radius: 2px;
}

.hero {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: clamp(620px, calc(100svh - 82px), 860px);
  margin: 0;
  padding: 88px max(22px, calc((100vw - var(--max)) / 2 + 22px));
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(680px, 100%);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  background: rgba(32, 19, 15, 0.52);
  box-shadow: 0 24px 70px rgba(18, 10, 7, 0.28);
  backdrop-filter: blur(8px);
  animation: fadeUp 650ms ease both;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #24150f;
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-photo-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 14, 10, 0.2), rgba(24, 14, 10, 0.46)),
    linear-gradient(90deg, rgba(24, 14, 10, 0.24), rgba(24, 14, 10, 0.62));
  z-index: 1;
}

.hero-photo-caption {
  position: absolute;
  inset-inline: 28px;
  bottom: 26px;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-photo-caption span {
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(217, 185, 140, 0.38);
  border-radius: 999px;
  background: rgba(32, 19, 15, 0.72);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.eyebrow,
.section-kicker {
  width: fit-content;
  margin: 0 0 12px;
  color: var(--bronze);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.4rem, 5.2vw, 4.35rem);
  line-height: 1.16;
}

.hero-copy {
  max-width: 630px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button svg {
  width: 18px;
  height: 18px;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--espresso);
  color: #fff;
  box-shadow: 0 14px 28px rgba(58, 36, 27, 0.18);
}

.button.secondary {
  border-color: rgba(81, 53, 39, 0.18);
  color: var(--espresso);
  background: rgba(255, 255, 255, 0.7);
}

.button.danger {
  background: #9d3027;
  color: #fff;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.trust-strip span {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(184, 138, 84, 0.18);
  background: rgba(255, 255, 255, 0.56);
  color: var(--brown);
  font-size: 0.93rem;
  font-weight: 700;
}

.hero .eyebrow {
  color: var(--champagne);
}

.hero .button.primary {
  background: var(--champagne);
  color: var(--espresso);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}

.hero .trust-strip span {
  border-color: rgba(217, 185, 140, 0.42);
  background: rgba(32, 19, 15, 0.4);
  color: #fff;
}

.quick-panel {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-panel div {
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 8px 22px;
  border-inline-start: 1px solid rgba(81, 53, 39, 0.1);
}

.quick-panel div:first-child {
  border-inline-start: 0;
}

.quick-panel strong {
  color: var(--espresso);
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  line-height: 1.1;
}

.quick-panel span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  scroll-margin-top: 100px;
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 96px 22px;
}

.section:not(.hero)::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 138, 84, 0.28), transparent);
}

.about-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.74fr);
  gap: 56px;
  align-items: center;
}

.section h2 {
  margin: 0;
  color: var(--espresso);
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.28;
}

.section p {
  color: var(--muted);
  font-size: 1.04rem;
}

.about-section > div:first-child {
  position: relative;
  max-width: 720px;
}

.about-section > div:first-child::before {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-bottom: 18px;
  background: var(--bronze);
  border-radius: 999px;
}

.identity-card {
  min-height: 360px;
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(217, 185, 140, 0.28);
  background: linear-gradient(145deg, var(--espresso), #24150f);
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.office-card {
  min-height: 430px;
  display: block;
  padding: 0;
  background: #24150f;
}

.office-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% center;
}

.office-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(32, 19, 15, 0.02), rgba(32, 19, 15, 0.52) 54%, rgba(32, 19, 15, 0.88)),
    linear-gradient(90deg, rgba(32, 19, 15, 0.55), transparent 58%);
}

.office-card::before {
  z-index: 2;
  background: rgba(32, 19, 15, 0.42);
  backdrop-filter: blur(8px);
}

.office-card-content {
  position: absolute;
  inset-inline: 26px;
  bottom: 26px;
  z-index: 2;
  padding: 20px;
  border: 1px solid rgba(217, 185, 140, 0.28);
  border-radius: 18px;
  background: rgba(32, 19, 15, 0.7);
  backdrop-filter: blur(14px);
}

.identity-card::before {
  content: "ختم";
  position: absolute;
  top: 24px;
  inset-inline-end: 24px;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(217, 185, 140, 0.42);
  border-radius: 50%;
  color: rgba(217, 185, 140, 0.72);
  font-weight: 800;
}

.identity-card p {
  margin: 0 0 12px;
  color: var(--champagne);
  font-size: 1.25rem;
  font-weight: 800;
}

.identity-card strong {
  display: block;
  color: #fff;
  font-size: 1.05rem;
}

.identity-card strong:last-child::after {
  content: "Since 2019";
  display: block;
  width: fit-content;
  margin-top: 20px;
  padding: 6px 11px;
  border: 1px solid rgba(217, 185, 140, 0.3);
  border-radius: 999px;
  color: var(--champagne);
  font-size: 0.9rem;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.vision-grid,
.team-grid,
.service-grid,
.articles-grid {
  display: grid;
  gap: 16px;
}

.vision-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.vision-card {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px;
  box-shadow: var(--soft-shadow);
}

.vision-card:first-child {
  background: linear-gradient(145deg, #fff, #f7f0e8);
}

.vision-card:last-child {
  background: linear-gradient(145deg, var(--espresso), var(--brown));
}

.vision-card:last-child h3,
.vision-card:last-child p {
  color: #fff;
}

.vision-card h3,
.team-card h3,
.service-card h3,
.article-card h3 {
  margin: 0;
  color: var(--espresso);
  font-size: 1.28rem;
  line-height: 1.45;
}

.vision-card ul {
  margin: 14px 0 0;
  padding-inline-start: 22px;
  color: var(--muted);
}

.vision-card li + li {
  margin-top: 8px;
}

.team-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-card {
  min-height: 280px;
  padding: 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.team-card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 138, 84, 0.34);
  box-shadow: var(--shadow);
}

.team-avatar {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--espresso), var(--bronze));
  color: #fff;
  font-size: 1.8rem;
  font-weight: 800;
}

.team-card h3::after {
  content: "";
  display: block;
  width: 42px;
  height: 2px;
  margin-top: 10px;
  background: var(--bronze);
}

.team-card p {
  margin: 0;
}

.team-card-detailed {
  align-content: start;
}

.team-details {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.team-details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(184, 138, 84, 0.1);
  color: var(--espresso);
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.team-details summary::-webkit-details-marker {
  display: none;
}

.team-details summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: var(--bronze);
}

.team-details[open] summary::after {
  content: "-";
}

.team-details p {
  margin: 12px 0 10px;
  font-size: 0.96rem;
}

.team-details ul {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--muted);
  font-size: 0.94rem;
}

.team-details li + li {
  margin-top: 4px;
}

.team-phone {
  width: fit-content;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(184, 138, 84, 0.12);
  color: var(--espresso);
  font-weight: 800;
}

.team-contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.article-card {
  position: relative;
  min-height: 250px;
  padding: 26px;
  background: linear-gradient(180deg, #fff, #fdfaf7);
  border: 1px solid var(--line);
  border-radius: 24px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.service-card:hover,
.article-card:hover {
  transform: translateY(-5px);
  border-color: rgba(184, 138, 84, 0.4);
  box-shadow: var(--shadow);
}

.service-icon,
.tile-icon,
.brand-icon {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(184, 138, 84, 0.12);
  color: var(--bronze);
}

.service-icon svg,
.tile-icon svg,
.brand-icon svg {
  width: 21px;
  height: 21px;
}

.service-card h3 {
  margin-top: 18px;
}

.service-card p,
.article-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.card-arrow {
  position: absolute;
  inset-inline-end: 22px;
  bottom: 20px;
  color: rgba(81, 53, 39, 0.38);
}

.notary-section {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
  gap: 44px;
  align-items: center;
  background: linear-gradient(135deg, #f5eee6, #eadfD3);
  padding-inline: max(22px, calc((100vw - var(--max)) / 2 + 22px));
}

.notary-copy {
  max-width: 560px;
}

.trust-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(58, 36, 27, 0.08);
  color: var(--brown);
  font-weight: 800;
}

.trust-badge svg {
  width: 18px;
  height: 18px;
  color: var(--bronze);
}

.notary-list {
  display: grid;
  gap: 10px;
}

.notary-list div {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(81, 53, 39, 0.11);
  color: var(--espresso);
  font-weight: 700;
}

.notary-list svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--bronze);
}

.articles-grid {
  grid-template-columns: repeat(4, 1fr);
}

.article-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-category {
  width: fit-content;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(184, 138, 84, 0.12);
  color: var(--bronze);
  font-weight: 800;
  font-size: 0.86rem;
}

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  color: var(--espresso);
  font-weight: 800;
}

.read-more svg {
  width: 17px;
  height: 17px;
}

.reviews-section {
  padding-top: 40px;
}

.reviews-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: stretch;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(184, 138, 84, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 12% 20%, rgba(217, 185, 140, 0.18), transparent 26%),
    linear-gradient(135deg, #fff, #f8f1e9);
  box-shadow: var(--soft-shadow);
}

.reviews-copy {
  padding: 18px;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.reviews-copy h2 {
  max-width: 620px;
  margin-inline: auto;
}

.reviews-copy .section-kicker {
  margin-inline: auto;
}

.reviews-copy p {
  max-width: 640px;
  margin-inline: auto;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 24px;
}

.review-widget-card {
  width: 100%;
  max-width: 1060px;
  min-height: 360px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(81, 53, 39, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.review-widget-card > div {
  width: 100%;
  max-width: 100%;
  min-height: 360px;
  overflow: hidden;
}

.review-widget-card iframe {
  width: 100% !important;
  max-width: 100% !important;
  border: 0 !important;
}

.review-map-card {
  position: relative;
  overflow: hidden;
  min-height: 280px;
  border-radius: 24px;
  background: linear-gradient(145deg, var(--espresso), var(--brown));
  color: #fff;
}

.review-map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 320px;
  display: block;
  border: 0;
  filter: saturate(0.78) sepia(0.08) contrast(0.95);
}

.review-map-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid rgba(217, 185, 140, 0.2);
  border-radius: 18px;
  background: rgba(58, 36, 27, 0.88);
  backdrop-filter: blur(12px);
}

.review-stars {
  display: flex;
  gap: 5px;
  color: var(--champagne);
}

.review-stars svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.review-map-overlay h3 {
  margin: 0;
  color: #fff;
  font-size: 1.45rem;
}

.review-map-overlay p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.google-label {
  width: fit-content;
  margin-top: 8px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(217, 185, 140, 0.28);
  color: var(--champagne);
  font-weight: 800;
  font-size: 0.9rem;
}

.form-section {
  max-width: none;
  background: #fff;
  padding-inline: max(22px, calc((100vw - var(--max)) / 2 + 22px));
}

.case-intake-shell {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 0;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.case-intake-aside {
  background: linear-gradient(145deg, var(--espresso), var(--brown));
  padding: 42px;
}

.case-intake-aside h2,
.case-intake-aside p {
  color: #fff;
}

.case-intake-aside .section-kicker {
  color: var(--champagne);
}

.reassurance-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.reassurance-list > span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}

.reassurance-list svg {
  color: var(--champagne);
  width: 19px;
  height: 19px;
}

.case-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 34px;
  background: #fff;
}

label span {
  display: block;
  margin-bottom: 7px;
  color: var(--espresso);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(81, 53, 39, 0.16);
  border-radius: 14px;
  background: #fff;
  color: var(--espresso);
  padding: 13px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(184, 138, 84, 0.65);
  box-shadow: 0 0 0 4px rgba(184, 138, 84, 0.12);
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 136px;
}

small {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.file-field {
  padding: 16px;
  border: 1px dashed rgba(81, 53, 39, 0.24);
  border-radius: 18px;
  background: var(--ivory);
}

.consent-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(184, 138, 84, 0.24);
  border-radius: 18px;
  background: rgba(184, 138, 84, 0.08);
}

.consent-field input {
  width: 18px;
  height: 18px;
  margin-top: 5px;
  accent-color: var(--espresso);
}

.consent-field span {
  margin: 0;
  color: var(--brown);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.8;
}

.form-wide {
  grid-column: 1 / -1;
}

.form-message {
  margin: 0;
  color: #31584b;
  font-weight: 800;
}

.contact-section {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.contact-section h2 {
  font-size: clamp(2rem, 3.6vw, 3.5rem);
}

.contact-copy p {
  max-width: 460px;
}

.contact-actions {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contact-tile {
  min-height: 138px;
  display: grid;
  align-content: space-between;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.contact-tile:hover,
.social-icon-link:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 138, 84, 0.36);
  box-shadow: var(--shadow);
}

.quick-panel span,
.contact-tile span {
  color: var(--muted);
  font-size: 0.94rem;
}

.contact-tile strong {
  color: var(--espresso);
  font-size: 1.02rem;
  overflow-wrap: anywhere;
}

.social-icons-card {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.social-icon-link {
  width: 56px;
  height: 56px;
  display: inline-grid;
  place-items: center;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--soft-shadow);
  transition: 160ms ease;
}

.social-icon-link svg,
.footer-social svg,
.floating-whatsapp svg {
  width: 23px;
  height: 23px;
}

.social-icon-link.tiktok {
  background: #101010;
  color: #fff;
}

.social-icon-link.snapchat {
  background: #fffc00;
  color: #111;
}

.social-icon-link.snapchat svg {
  width: 34px;
  height: 34px;
}

.dashboard-section {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: #f8f3ed;
}

.admin-section {
  display: none;
  max-width: none;
  padding-inline: max(22px, calc((100vw - var(--max)) / 2 + 22px));
}

.admin-section:target {
  display: block;
}

.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 10%, rgba(184, 138, 84, 0.16), transparent 24%),
    var(--ivory);
}

.admin-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 42px 22px 90px;
}

.admin-dashboard {
  max-width: none;
  padding-inline: 0;
}

.admin-dashboard .section-heading h1 {
  margin: 0;
  color: var(--espresso);
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  line-height: 1.2;
}

.is-hidden { display: none !important; }

.admin-login {
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.admin-login label {
  flex: 1 1 260px;
}

.dashboard-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-user-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid rgba(184, 138, 84, 0.24);
  border-radius: 999px;
  background: rgba(184, 138, 84, 0.09);
  color: var(--brown);
  font-weight: 800;
}

.status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.status-tabs button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--espresso);
  font-weight: 800;
  cursor: pointer;
}

.status-tabs button.is-active {
  background: var(--espresso);
  color: #fff;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card,
.case-item {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 18px;
}

.stat-card strong {
  display: block;
  color: var(--espresso);
  font-size: 2rem;
  line-height: 1.2;
}

.stat-card span,
.case-meta {
  color: var(--muted);
}

.case-list {
  display: grid;
  gap: 12px;
}

.case-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.case-item h3 {
  margin: 0;
  color: var(--espresso);
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}

.case-meta span,
.status-pill {
  border-radius: 999px;
  background: rgba(184, 138, 84, 0.1);
  padding: 4px 9px;
}

.status-pill {
  color: var(--espresso);
  font-weight: 800;
  white-space: nowrap;
}

.case-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.case-actions .button {
  min-height: 42px;
  padding: 8px 12px;
}

.empty-state {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(81, 53, 39, 0.24);
  border-radius: 18px;
}

.articles-admin-section {
  padding-top: 48px;
}

.article-admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.publish-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid rgba(184, 138, 84, 0.2);
  border-radius: 14px;
  background: rgba(184, 138, 84, 0.08);
}

.publish-field input {
  width: 18px;
  height: 18px;
  accent-color: var(--espresso);
}

.publish-field span {
  margin: 0;
}

.article-form-actions,
.article-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-admin-toolbar {
  margin-bottom: 16px;
}

.admin-article-list {
  display: grid;
  gap: 14px;
}

.admin-article-item {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.admin-article-item header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.admin-article-item h3 {
  margin: 0;
  color: var(--espresso);
}

.admin-article-item p {
  margin: 0;
}

.article-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer {
  background: linear-gradient(145deg, #2a1913, var(--espresso));
  color: rgba(255, 255, 255, 0.82);
  padding: 58px 22px 24px;
}

.footer-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
}

.footer-brand img {
  width: 68px;
  height: 68px;
  object-fit: contain;
  margin-bottom: 14px;
  filter: brightness(0) invert(1) sepia(0.2) saturate(0.8);
  opacity: 0.9;
}

.footer h2,
.footer h3 {
  margin: 0 0 12px;
  color: #fff;
}

.footer p {
  color: rgba(255, 255, 255, 0.68);
}

.footer a {
  display: block;
  width: fit-content;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.74);
}

.footer a:hover {
  color: var(--champagne);
}

.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 12px;
  border: 1px solid rgba(217, 185, 140, 0.2);
}

.footer-social a.footer-snapchat {
  background: #fffc00;
  border-color: #fffc00;
  color: #111;
}

.footer-social a.footer-snapchat svg {
  width: 25px;
  height: 25px;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(42, 25, 19, 0.58);
  backdrop-filter: blur(10px);
}

.success-dialog {
  width: min(100%, 460px);
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 34px;
  border: 1px solid rgba(217, 185, 140, 0.28);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}

.success-dialog h2 {
  margin: 0;
  color: var(--espresso);
  font-size: 1.8rem;
}

.success-dialog p {
  margin: 0;
  color: var(--muted);
}

.success-icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(49, 88, 75, 0.12);
  color: #31584b;
}

.success-icon svg {
  width: 30px;
  height: 30px;
}

.modal-close {
  position: absolute;
  top: 14px;
  inset-inline-end: 14px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--espresso);
  cursor: pointer;
}

.modal-open {
  overflow: hidden;
}

.floating-actions {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.floating-actions a {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 14px 34px rgba(49, 88, 75, 0.28);
}

.floating-whatsapp {
  background: #31584b;
  color: #fff;
}

.floating-call {
  border: 1px solid rgba(81, 53, 39, 0.12);
  background: #fff;
  color: var(--espresso);
}

.floating-call svg {
  width: 22px;
  height: 22px;
}

.footer-bottom {
  max-width: var(--max);
  margin: 36px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(217, 185, 140, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.footer-bottom p {
  margin: 0;
}

.admin-footer-link {
  font-size: 0.9rem;
  opacity: 0.72;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

html[dir="ltr"] body {
  font-family: "Inter", "IBM Plex Sans Arabic", sans-serif;
}

html[dir="ltr"] .hero,
html[dir="ltr"] .about-section,
html[dir="ltr"] .contact-section,
html[dir="ltr"] .case-intake-shell {
  direction: ltr;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes floatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -12px, 0) scale(1.05); }
}

@keyframes floatMark {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 2px;
  }

  .nav-links a,
  .lang-toggle {
    padding-inline: 9px;
  }

  .hero,
  .about-section,
  .contact-section,
  .case-intake-shell,
  .notary-section {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 100%;
  }

  .office-card {
    min-height: 390px;
  }

  .service-grid,
  .articles-grid,
  .case-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    min-height: 74px;
  }

  .brand,
  .brand img {
    width: 56px;
    height: 56px;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(251, 248, 244, 0.98);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links.is-admin-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: auto;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav-links.is-admin-nav a,
  .nav-links.is-admin-nav .lang-toggle {
    width: auto;
  }

  .nav-links a,
  .lang-toggle {
    width: 100%;
    text-align: center;
  }

  .quick-panel {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-panel div:nth-child(3) {
    border-inline-start: 0;
  }

  .vision-grid,
  .team-grid,
  .reviews-panel,
  .contact-actions,
  .case-form,
  .article-admin-form {
    grid-template-columns: 1fr;
  }

  .dashboard-tools,
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .hero {
    min-height: calc(100svh - 74px);
    padding-block: 48px 74px;
  }

  .hero-media {
    min-height: 100%;
    border-radius: 0;
  }

  .hero-photo {
    object-position: 46% center;
  }

  .hero-photo-caption {
    display: none;
  }

  .hero-content {
    padding: 26px 20px;
    border-radius: 22px;
  }

  .office-card {
    min-height: 340px;
    border-radius: 20px;
  }

  .office-card-content {
    inset-inline: 16px;
    bottom: 16px;
    padding: 16px;
    border-radius: 16px;
  }

  .hero-actions .button,
  .case-form .button,
  .contact-tile {
    width: 100%;
  }

  .section {
    padding: 70px 18px;
  }

  .notary-section,
  .form-section,
  .admin-section {
    padding-inline: 18px;
  }

  .quick-panel,
  .service-grid,
  .articles-grid,
  .case-stats,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .quick-panel div {
    border-inline-start: 0;
    border-top: 1px solid rgba(81, 53, 39, 0.1);
  }

  .quick-panel div:first-child {
    border-top: 0;
  }

  .case-intake-aside,
  .case-form {
    padding: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
