:root {
  --navy-950: #080808;
  --navy-900: #111111;
  --navy-800: #1a1a1a;
  --navy-700: #272727;
  --gold-500: #d4a017;
  --gold-400: #e4b93b;
  --gold-300: #f0d277;
  --ivory-100: #f7f1de;
  --white: #ffffff;
  --slate-500: #675f50;
  --slate-700: #2b261d;
  --success: #1d7d58;
  --danger: #b33d3d;
  --shadow-lg: 0 30px 70px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 40px rgba(0, 0, 0, 0.14);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --ease: 220ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--slate-700);
  background:
    radial-gradient(circle at top left, rgba(212, 160, 23, 0.18), transparent 34%),
    linear-gradient(180deg, #fffcf4 0%, #f2ebd8 100%);
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section {
  padding: 5.5rem 0;
}

.section-alt {
  background:
    linear-gradient(135deg, rgba(8, 8, 8, 0.03), rgba(212, 160, 23, 0.11)),
    var(--white);
}

.section-title {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
  font-size: 0.86rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.eyebrow::before {
  content: "";
  width: 48px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 1rem;
  color: #0b0b0b;
  line-height: 1.12;
  font-family: "Baskerville Old Face", "Times New Roman", serif;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.1rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 1rem;
}

.lead {
  font-size: 1.08rem;
  color: var(--slate-500);
}

.btn,
.btn-secondary,
.btn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 52px;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    background-color var(--ease),
    color var(--ease),
    border-color var(--ease);
}

.btn {
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 15px 30px rgba(212, 160, 23, 0.3);
}

.btn:hover,
.btn:focus-visible,
.btn-secondary:hover,
.btn-secondary:focus-visible,
.btn-link:hover,
.btn-link:focus-visible {
  transform: translateY(-2px);
}

.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.btn-link {
  padding-inline: 0;
  min-height: 0;
  color: var(--gold-500);
}

.inline-ltr {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 7, 7, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--white);
  flex-shrink: 0;
}

.brand-mark {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(212, 160, 23, 0.28);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text strong,
.brand-text span {
  display: block;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.brand-text span {
  font-size: 0.82rem;
  color: rgba(255, 230, 165, 0.84);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: var(--white);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: rgba(255, 255, 255, 0.86);
}

.nav-menu a {
  position: relative;
  padding: 0.35rem 0;
  font-size: 0.96rem;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.15rem;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--gold-400);
  transition: transform var(--ease);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu a.is-active::after {
  transform: scaleX(1);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.85rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lang-switch a {
  min-width: 44px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  transition:
    background-color var(--ease),
    color var(--ease),
    transform var(--ease);
}

.lang-switch a:hover,
.lang-switch a:focus-visible {
  color: var(--white);
}

.lang-switch a.is-active,
.lang-switch a[aria-current="page"] {
  color: var(--navy-950);
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  box-shadow: 0 10px 20px rgba(212, 160, 23, 0.24);
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(212, 160, 23, 0.18), transparent 28%),
    linear-gradient(135deg, #080808 0%, #13110d 52%, #1b160d 100%);
}

.hero::before,
.page-hero::before {
  content: "";
  position: absolute;
  inset: auto auto -80px -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.36), transparent 70%);
  pointer-events: none;
}

.hero-grid,
.page-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 2rem;
  align-items: stretch;
  padding: 5.5rem 0 4.5rem;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding: 2.4rem;
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 215, 128, 0.1);
  box-shadow: var(--shadow-lg);
}

.hero-copy p,
.page-hero-copy p {
  color: rgba(255, 255, 255, 0.82);
}

.hero-copy h1,
.page-hero-copy h1 {
  color: var(--white);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-card {
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 128, 0.1);
}

.stat-card strong {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 1.4rem;
  font-family: "Baskerville Old Face", "Times New Roman", serif;
  color: var(--gold-300);
}

.hero-panel,
.page-hero-panel {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(248, 244, 236, 0.98), rgba(239, 232, 216, 0.94));
  border: 1px solid rgba(212, 160, 23, 0.18);
  box-shadow: var(--shadow-lg);
  color: var(--navy-950);
}

.hero-panel-media {
  position: relative;
  overflow: hidden;
  margin: -1.75rem -1.75rem 1.5rem;
  min-height: 260px;
  border-radius: 28px 28px 24px 24px;
}

.hero-panel-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, 0.1), rgba(5, 5, 5, 0.58));
}

.hero-panel-media img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.hero-panel-media-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--white);
  background: rgba(17, 17, 17, 0.82);
  border: 1px solid rgba(255, 215, 128, 0.2);
  backdrop-filter: blur(10px);
}

.hero-intro {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
  padding: 1.1rem 1.15rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 128, 0.09);
}

.hero-intro p {
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.6rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  color: rgba(255, 245, 214, 0.9);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 215, 128, 0.08);
}

.hero-panel-header {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
}

.hero-panel-header p {
  margin: 0;
  color: var(--slate-500);
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  margin-bottom: 1rem;
}

.icon-badge {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(200, 169, 107, 0.16);
  color: var(--gold-300);
}

.icon-badge svg,
.card-icon svg,
.contact-icon svg,
.timeline-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.appointment-form,
.contact-form {
  display: grid;
  gap: 0.95rem;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.95rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label {
  font-size: 0.95rem;
  color: var(--navy-950);
  font-weight: 600;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid rgba(16, 38, 69, 0.12);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy-950);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.hero .field input,
.hero .field textarea,
.hero .field select,
.page-hero .field input,
.page-hero .field textarea,
.page-hero .field select {
  background: rgba(255, 255, 255, 0.98);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: rgba(200, 169, 107, 0.9);
  box-shadow: 0 0 0 4px rgba(200, 169, 107, 0.16);
}

.notice {
  display: none;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
}

.notice.is-visible {
  display: block;
}

.notice-success {
  color: var(--success);
  background: rgba(29, 125, 88, 0.12);
}

.notice-error {
  color: var(--danger);
  background: rgba(179, 61, 61, 0.12);
}

.grid-3,
.grid-4,
.split-grid,
.blog-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 1.35rem;
}

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

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

.split-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
  align-items: center;
}

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

.blog-grid.blog-grid-featured {
  grid-template-columns: 1fr;
}

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

.blog-post {
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(20, 20, 20, 0.08);
  box-shadow: var(--shadow-lg);
}

.blog-post.is-preview {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-cover {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.blog-cover img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.blog-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.1), rgba(7, 7, 7, 0.52));
}

.blog-cover-note {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy-950);
  font-size: 0.92rem;
}

.blog-body {
  padding: 1.6rem;
}

.blog-body.blog-preview-body {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.blog-body p:last-child {
  margin-bottom: 0;
}

.blog-body[dir="rtl"] {
  text-align: right;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: var(--gold-500);
  font-size: 0.92rem;
  font-weight: 600;
}

.blog-helper {
  margin-top: 1.4rem;
  padding: 1.05rem 1.15rem;
  border-radius: 18px;
  background: rgba(212, 160, 23, 0.08);
  color: var(--slate-700);
}

.blog-excerpt {
  color: var(--slate-700);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
  min-height: 8.4rem;
  margin-bottom: 1.4rem;
}

.blog-actions {
  margin-top: auto;
}

.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(5, 5, 5, 0.74);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease);
}

.blog-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.blog-modal-panel {
  width: min(900px, 100%);
  max-height: min(88vh, 920px);
  overflow: auto;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(249, 246, 239, 0.98), rgba(240, 233, 219, 0.96));
  color: var(--navy-950);
  border: 1px solid rgba(212, 160, 23, 0.16);
  box-shadow: var(--shadow-lg);
}

.blog-modal-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.35rem;
  background: rgba(248, 244, 236, 0.96);
  border-bottom: 1px solid rgba(16, 38, 69, 0.08);
  backdrop-filter: blur(10px);
}

.blog-modal-title {
  margin: 0;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

.blog-modal-close {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  color: var(--navy-950);
  background: rgba(20, 20, 20, 0.06);
  cursor: pointer;
}

.blog-modal-body {
  padding: 1.35rem;
}

.blog-modal-body .blog-cover {
  min-height: 320px;
  border-radius: 22px;
}

.blog-modal-body .blog-cover img {
  height: 320px;
}

.blog-modal-body .blog-body {
  padding: 1.4rem 0 0;
}

.blog-modal-body .blog-meta {
  margin-bottom: 0.9rem;
}

.blog-modal[dir="rtl"] .blog-modal-header {
  flex-direction: row-reverse;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
}

.footer-grid {
  grid-template-columns: 1.3fr repeat(3, 1fr);
  align-items: start;
}

.card,
.service-card,
.blog-card,
.info-card,
.contact-card,
.expertise-card {
  position: relative;
  overflow: hidden;
  padding: 1.6rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(16, 38, 69, 0.08);
  box-shadow: var(--shadow-md);
  transition:
    transform var(--ease),
    box-shadow var(--ease),
    border-color var(--ease);
}

.card:hover,
.service-card:hover,
.blog-card:hover,
.info-card:hover,
.contact-card:hover,
.expertise-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 169, 107, 0.34);
  box-shadow: 0 22px 48px rgba(8, 26, 51, 0.14);
}

.card::before,
.service-card::before,
.blog-card::before,
.info-card::before,
.contact-card::before,
.expertise-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), rgba(200, 169, 107, 0));
}

.card-icon,
.contact-icon,
.timeline-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--navy-800);
  background: linear-gradient(145deg, rgba(20, 50, 94, 0.08), rgba(200, 169, 107, 0.14));
}

.pill-list,
.check-list,
.meta-list,
.contact-list {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.pill-list {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.pill-list li,
.meta-list li {
  padding: 0.85rem 1rem;
  border-radius: 999px;
  background: rgba(13, 34, 66, 0.06);
  color: var(--navy-800);
  font-weight: 600;
}

.check-list li,
.contact-list li {
  position: relative;
  padding-left: 1.75rem;
}

.contact-list > div {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(16, 38, 69, 0.08);
}

.contact-list > div:last-child {
  border-bottom: 0;
}

.check-list li::before,
.contact-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-500);
}

.showcase-box {
  position: relative;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(160deg, rgba(12, 12, 12, 0.98), rgba(38, 31, 10, 0.95)),
    var(--navy-950);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.showcase-box::after {
  content: "";
  position: absolute;
  right: -48px;
  bottom: -48px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.22), transparent 65%);
}

.showcase-box p,
.showcase-box li {
  color: rgba(255, 255, 255, 0.8);
}

.profile-card {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 245, 239, 0.94));
  border: 1px solid rgba(16, 38, 69, 0.08);
  box-shadow: var(--shadow-lg);
}

.profile-media {
  padding: 2rem;
  background:
    linear-gradient(140deg, rgba(10, 10, 10, 0.96), rgba(44, 35, 9, 0.88)),
    var(--navy-950);
}

.profile-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 26px 50px rgba(0, 0, 0, 0.34);
}

.profile-content {
  padding: 2rem;
}

.timeline {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  align-items: start;
}

.page-hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(7, 7, 7, 0.94), rgba(40, 31, 8, 0.88)),
    url("../img/legal-illustration.svg") center/cover no-repeat;
}

.page-hero-grid {
  grid-template-columns: 1fr;
  padding-block: 4.2rem 3.8rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.breadcrumb span {
  color: var(--gold-300);
}

.map-frame {
  min-height: 420px;
  border: 0;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta-banner {
  padding: 2.2rem;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, rgba(7, 7, 7, 0.98), rgba(40, 31, 8, 0.95)),
    var(--navy-950);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.8);
}

.cta-banner h2 {
  color: var(--white);
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background:
    linear-gradient(180deg, rgba(10, 10, 10, 0.98), rgba(3, 3, 3, 1)),
    var(--navy-950);
  padding: 4.2rem 0 1.4rem;
}

.site-footer h3,
.site-footer h4 {
  color: var(--white);
}

.footer-links,
.social-links {
  display: grid;
  gap: 0.8rem;
}

.social-links a,
.footer-links a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
}

.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 35;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(135deg, #d4a017, #b88707);
  box-shadow: 0 18px 34px rgba(212, 160, 23, 0.35);
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.35rem;
}

.photo-stack {
  display: grid;
  gap: 1.35rem;
}

.photo-card {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.photo-card:hover img {
  transform: scale(1.04);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.04), rgba(10, 10, 10, 0.58));
}

.photo-card figcaption {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.2rem;
  z-index: 1;
  color: var(--white);
}

.photo-card figcaption strong,
.inline-photo-copy strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
  font-family: "Baskerville Old Face", "Times New Roman", serif;
}

.photo-card figcaption span,
.inline-photo-copy span {
  color: rgba(255, 245, 214, 0.82);
}

.photo-card-tall {
  min-height: 540px;
}

.inline-photo {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}

.inline-photo img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.inline-photo-copy {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(7, 7, 7, 0.68);
  color: var(--white);
  border: 1px solid rgba(255, 215, 128, 0.18);
  backdrop-filter: blur(10px);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms ease,
    transform 600ms ease;
}

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

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

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

.hero-copy > *,
.page-hero-copy > * {
  animation: fadeUp 700ms ease both;
}

.hero-copy > *:nth-child(2),
.page-hero-copy > *:nth-child(2) {
  animation-delay: 120ms;
}

.hero-copy > *:nth-child(3),
.page-hero-copy > *:nth-child(3) {
  animation-delay: 180ms;
}

.hero-copy > *:nth-child(4),
.page-hero-copy > *:nth-child(4) {
  animation-delay: 240ms;
}

html[lang="ar"] body {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4 {
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

[dir="rtl"] body,
[dir="rtl"] .section-title,
[dir="rtl"] .hero-copy,
[dir="rtl"] .page-hero-copy,
[dir="rtl"] .showcase-box,
[dir="rtl"] .contact-card,
[dir="rtl"] .profile-content,
[dir="rtl"] .blog-body,
[dir="rtl"] .footer-grid,
[dir="rtl"] .footer-bottom {
  text-align: right;
}

[dir="rtl"] .nav-menu {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-menu a::after {
  left: auto;
  right: 0;
  transform-origin: right;
}

[dir="rtl"] .lang-switch {
  margin-left: 0;
  margin-right: 0.85rem;
}

[dir="rtl"] .eyebrow,
[dir="rtl"] .hero-highlights,
[dir="rtl"] .hero-actions,
[dir="rtl"] .blog-meta,
[dir="rtl"] .breadcrumb {
  justify-content: flex-start;
}

[dir="rtl"] .eyebrow::before {
  order: 2;
}

[dir="rtl"] .breadcrumb {
  flex-direction: row-reverse;
}

[dir="rtl"] .check-list li,
[dir="rtl"] .contact-list li {
  padding-left: 0;
  padding-right: 1.75rem;
}

[dir="rtl"] .check-list li::before,
[dir="rtl"] .contact-list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .timeline-item {
  grid-template-columns: 1fr 64px;
}

[dir="rtl"] .timeline-icon {
  order: 2;
}

[dir="rtl"] .whatsapp-float {
  right: auto;
  left: 1.25rem;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-menu {
    position: fixed;
    inset: 82px 1rem auto 1rem;
    display: grid;
    gap: 0.9rem;
    padding: 1.2rem;
    border-radius: 24px;
    background: rgba(8, 26, 51, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity var(--ease),
      transform var(--ease);
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .lang-switch {
    width: fit-content;
    margin: 0.25rem 0 0;
  }

  [dir="rtl"] .lang-switch {
    margin-right: 0;
  }

  .hero-grid,
  .split-grid,
  .contact-grid,
  .footer-grid,
  .photo-grid {
    grid-template-columns: 1fr;
  }

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

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

  .blog-grid.blog-grid-compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .section {
    padding: 4.4rem 0;
  }

  .hero-grid,
  .page-hero-grid {
    padding-top: 4.3rem;
  }

  .hero-copy {
    padding: 1.45rem;
  }

  .hero-stats,
  .grid-3,
  .grid-4,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .blog-grid.blog-grid-compact {
    grid-template-columns: 1fr;
  }

  .field-row,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  [dir="rtl"] .cta-banner {
    align-items: flex-end;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 1.2rem), var(--container));
  }

  .brand-text span {
    display: none;
  }

  .brand-mark {
    width: 60px;
    height: 60px;
  }

  .hero-panel,
  .page-hero-panel,
  .showcase-box,
  .profile-content,
  .profile-media {
    padding: 1.35rem;
  }

  .hero-panel-media {
    margin: -1.35rem -1.35rem 1.2rem;
  }

  .hero-panel-media img {
    height: 220px;
  }

  .hero-stats {
    gap: 0.75rem;
  }

  .stat-card,
  .card,
  .service-card,
  .blog-card,
  .info-card,
  .contact-card,
  .expertise-card {
    padding: 1.25rem;
  }
  
}
