:root {
  --ink: #122017;
  --muted: #536456;
  --green: #15351f;
  --green-soft: #28533a;
  --gold: #b58334;
  --gold-soft: #e5c884;
  --flame: #c66d1e;
  --cream: #f7efe2;
  --paper: #fffdf8;
  --mist: #eef5ee;
  --line: #decaac;
  --white: #ffffff;
  --shadow: 0 24px 58px rgba(31, 25, 17, 0.16);
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.98), rgba(247, 239, 226, 0.92) 54%, rgba(238, 245, 238, 0.86)),
    var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Tahoma, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

svg {
  flex: 0 0 auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  transform: translateY(-150%);
  border: 1px solid var(--green);
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--green);
  font-weight: 900;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid rgba(181, 131, 52, 0.28);
  background: rgba(255, 253, 248, 0.95);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 168px;
  height: 50px;
  min-width: 0;
  color: var(--green);
  text-decoration: none;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 13px;
  background: var(--paper);
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

.nav-link-strong {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.profile-shell {
  width: min(1110px, calc(100% - 32px));
  min-height: calc(100svh - var(--header-height) - 104px);
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 54px) 0 clamp(20px, 4vw, 42px);
}

.portrait-panel {
  position: relative;
  align-self: stretch;
  min-height: 420px;
  border: 1px solid rgba(181, 131, 52, 0.54);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.portrait-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 8px solid rgba(255, 253, 248, 0.44);
  pointer-events: none;
}

.portrait-panel > img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 660px;
  object-fit: cover;
  object-position: center top;
}

.portrait-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(181, 131, 52, 0.42);
  border-radius: 8px;
  padding: 8px 12px 8px 8px;
  background: rgba(255, 253, 248, 0.92);
  color: var(--green);
  box-shadow: 0 12px 26px rgba(28, 23, 17, 0.13);
}

.portrait-badge img {
  width: 34px;
  height: 44px;
  object-fit: contain;
}

.portrait-badge strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.profile-content {
  max-width: 690px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--green);
  line-height: 1.06;
}

h1 {
  max-width: 12ch;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6.5vw, 5.35rem);
  font-weight: 900;
}

.arabic-name {
  width: fit-content;
  margin: 10px 0 0;
  color: var(--green);
  font-family: "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
  font-size: clamp(1.28rem, 2.2vw, 1.78rem);
  font-weight: 800;
  line-height: 1.45;
  text-wrap: balance;
}

:lang(ar) {
  font-family: "Noto Kufi Arabic", Tahoma, Arial, sans-serif;
}

.lead {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--ink);
  font-size: clamp(1.06rem, 1.8vw, 1.32rem);
  font-weight: 900;
}

.summary {
  max-width: 600px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.quick-details {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 22px 0 0;
}

.quick-details span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(181, 131, 52, 0.46);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--green);
  font-size: 0.87rem;
  font-weight: 900;
}

.quick-details svg {
  width: 17px;
  height: 17px;
  color: var(--gold);
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
  max-width: 680px;
}

.action {
  grid-column: span 3;
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(181, 131, 52, 0.4);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--green);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(38, 31, 20, 0.08);
}

.action-wide {
  grid-column: span 6;
}

.action svg {
  width: 23px;
  height: 23px;
  color: var(--gold);
}

.action strong,
.action small {
  display: block;
}

.action strong {
  font-size: 0.97rem;
  line-height: 1.15;
}

.action small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.25;
}

.action-primary,
.action-whatsapp {
  border-color: rgba(21, 53, 31, 0.66);
  background: var(--green);
  color: var(--white);
}

.action-primary svg,
.action-whatsapp svg,
.action-primary small,
.action-whatsapp small {
  color: rgba(255, 255, 255, 0.84);
}

.urgent-note {
  margin: 14px 0 0;
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 16px 24px;
  background: #102417;
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer p:first-child strong,
.site-footer p:first-child span {
  display: block;
}

.site-footer strong {
  color: var(--white);
}

.copyright {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.9rem;
}

.not-found {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  place-items: center;
  padding: 40px 16px;
}

.not-found-inner {
  width: min(640px, 100%);
}

.action:focus-visible,
.nav-link:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(198, 109, 30, 0.42);
  outline-offset: 3px;
}

@media (hover: hover) {
  .action,
  .nav-link {
    transition:
      transform 160ms ease,
      box-shadow 160ms ease,
      border-color 160ms ease;
  }

  .action:hover,
  .nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 860px) {
  .profile-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    padding-top: 18px;
  }

  .portrait-panel {
    min-height: 290px;
  }

  .portrait-panel > img {
    min-height: 290px;
    max-height: 380px;
    object-position: center 18%;
  }

  .profile-content {
    max-width: none;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 64px;
  }

  .site-header {
    padding: 9px 12px;
  }

  .brand {
    width: 124px;
    height: 44px;
  }

  .header-actions {
    gap: 7px;
  }

  .nav-link {
    width: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    font-size: 0;
  }

  .nav-link svg {
    width: 19px;
    height: 19px;
  }

  .profile-shell {
    width: min(100% - 24px, 560px);
    min-height: auto;
    padding-bottom: 24px;
  }

  .portrait-panel {
    min-height: 250px;
  }

  .portrait-panel > img {
    min-height: 250px;
    max-height: 310px;
  }

  .portrait-badge {
    left: 12px;
    bottom: 12px;
    padding: 6px 10px 6px 6px;
  }

  .portrait-badge img {
    width: 30px;
    height: 38px;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  h1 {
    max-width: 9ch;
  }

  .lead {
    margin-top: 12px;
  }

  .summary {
    font-size: 0.94rem;
  }

  .quick-details {
    gap: 7px;
    margin-top: 18px;
  }

  .quick-details span {
    min-height: 34px;
    padding: 6px 9px;
    font-size: 0.78rem;
  }

  .contact-actions {
    gap: 8px;
    margin-top: 18px;
  }

  .action {
    min-height: 60px;
    padding: 10px;
  }

  .action small {
    font-size: 0.78rem;
  }

  .site-footer {
    display: grid;
    gap: 8px;
    padding: 18px 14px 22px;
  }
}

@media (max-width: 380px) {
  .action {
    grid-column: span 6;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
