/* =========================================================================
   الشوربجي وشركاه — مكتب محاماة للشركات
   -------------------------------------------------------------------------
   The second office demo, and the whole point of it is that it must not look
   like the first. الهلالي is paper: ivory, Amiri, a magazine you read. This
   one is the boardroom: deep navy, brushed gold, a tight grid, Cairo at 700,
   and numbers everywhere.

   Same package, same price, two entirely different offices — because a firm
   that does corporate and arbitration does not want to look like a firm that
   does criminal and family, and both of them are buying the 7,000.
   ========================================================================= */

:root {
  --navy: #0d1b2a;
  --navy-2: #13263a;
  --navy-3: #1b3350;
  --gold: #c49a4a;
  --gold-2: #e0bb72;
  --gold-soft: rgba(196, 154, 74, 0.14);
  --fg: #eef2f6;
  --fg-2: #a9b6c4;
  --fg-3: #74849a;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.2);
  --paper: #f4f6f8;

  --font: "Cairo", system-ui, sans-serif;
  --wrap: min(1180px, calc(100% - 40px));
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--navy);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
  /* width/height attributes count as a definite height and would beat the
     aspect-ratios below. */
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--navy);
}

.wrap {
  width: var(--wrap);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.3;
}

.num {
  font-variant-numeric: tabular-nums;
  direction: ltr;
  unicode-bidi: isolate;
}

.demo-note {
  background: var(--navy-2);
  color: var(--fg-3);
  font-size: 12.5px;
  text-align: center;
  padding: 7px 16px;
  border-bottom: 1px solid var(--line);
}

/* The hairline rule above every section title — the one motif this site owns. */
.eyebrow {
  display: block;
  margin: 0 0 10px;
  padding-top: 12px;
  border-top: 2px solid var(--gold);
  width: fit-content;
  color: var(--gold);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------ head */
.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 27, 42, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand svg {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.brand b {
  display: block;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.brand span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}

.nav {
  display: flex;
  gap: 2px;
}

.nav a {
  padding: 8px 13px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--fg-2);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--gold-2);
}

.head .cta {
  padding: 10px 20px;
  border: 1px solid var(--gold);
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.18s, color 0.18s;
}

.head .cta:hover {
  background: var(--gold);
  color: var(--navy);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  isolation: isolate;
  border-bottom: 1px solid var(--line);
}

.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    270deg,
    rgba(13, 27, 42, 0.97) 0%,
    rgba(13, 27, 42, 0.86) 52%,
    rgba(13, 27, 42, 0.45) 100%
  );
}

.hero__in {
  padding: 96px 0 84px;
}

.hero__in > * {
  max-width: 54ch;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.28;
}

.hero h1 em {
  font-style: normal;
  color: var(--gold-2);
}

.hero p {
  margin: 18px 0 28px;
  font-size: 17.5px;
  color: var(--fg-2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.btn--gold {
  background: var(--gold);
  color: var(--navy);
}

.btn--gold:hover {
  background: var(--gold-2);
}

.btn--wire {
  border-color: var(--line-2);
  color: var(--fg);
}

.btn--wire:hover {
  border-color: var(--gold);
  color: var(--gold-2);
}

.btn--wa {
  background: #1f7a4d;
  color: #fff;
}

.btn--wa:hover {
  background: #228c58;
}

/* The numbers, in a strip across the bottom of the photograph. */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.stat {
  padding: 22px 24px;
  border-inline-start: 1px solid var(--line);
}

.stat:first-child {
  border-inline-start: 0;
}

.stat b {
  display: block;
  font-size: 30px;
  font-weight: 700;
  color: var(--gold-2);
  line-height: 1.2;
}

.stat span {
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.6;
}

/* -------------------------------------------------------------- sections */
.band {
  padding: 78px 0;
  border-bottom: 1px solid var(--line);
}

.band--2 {
  background: var(--navy-2);
}

.band--paper {
  background: var(--paper);
  color: var(--navy);
}

.band--paper .band__lead,
.band--paper p {
  color: #41566b;
}

.band--paper .eyebrow {
  color: #8a6a26;
  border-color: #8a6a26;
}

.band h2 {
  font-size: clamp(25px, 3.4vw, 36px);
  margin-bottom: 10px;
}

.band__lead {
  margin: 0 0 34px;
  color: var(--fg-2);
  max-width: 62ch;
}

/* ------------------------------------------------------------ photo grid */
.grid {
  display: grid;
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

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

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

/* A tile: photograph on top, words under, no rounding anywhere. The grid is
   the identity — الهلالي is all soft cards, this is a ledger. */
.tile {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  color: inherit;
  transition: background 0.2s;
}

.tile:hover {
  background: var(--navy-3);
}

.tile > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tile__body {
  padding: 22px 24px 24px;
  flex: 1;
}

.tile__no {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold);
}

.tile h3 {
  font-size: 19px;
  margin: 4px 0 8px;
}

.tile p {
  margin: 0;
  color: var(--fg-2);
  font-size: 14.5px;
}

/* ---------------------------------------------------------------- people */
.people {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.person {
  background: var(--navy);
}

.person > img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
}

.person__body {
  padding: 18px 20px 22px;
}

.person__name {
  font-size: 17px;
  font-weight: 700;
}

.person__role {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}

.person__line {
  margin: 8px 0 0;
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.75;
}

/* ------------------------------------------------------------- the split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}

.split img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* --------------------------------------------------------------- process */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step {
  background: var(--navy);
  padding: 26px 24px;
}

.step b {
  display: block;
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 6px;
}

.step h3 {
  font-size: 17.5px;
  margin-bottom: 5px;
}

.step p {
  margin: 0;
  color: var(--fg-2);
  font-size: 14px;
}

/* ------------------------------------------------------------------- faq */
.faq {
  border: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  background: var(--navy-2);
}

.faq details:last-child {
  border-bottom: 0;
}

.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

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

.faq summary::after {
  content: "+";
  color: var(--gold);
  font-size: 20px;
}

.faq details[open] summary::after {
  content: "−";
}

.faq p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--fg-2);
  font-size: 15px;
}

/* ------------------------------------------------------------------ form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: start;
}

.form {
  display: grid;
  gap: 14px;
}

.form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--line-2);
  background: var(--navy-2);
  font-size: 15px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form small {
  color: var(--fg-3);
  font-size: 12.5px;
}

.branch {
  border: 1px solid var(--line);
  margin-bottom: 14px;
}

.branch img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.branch__body {
  padding: 18px 20px;
}

.branch h3 {
  font-size: 17px;
  margin-bottom: 4px;
}

.branch p {
  margin: 0;
  color: var(--fg-2);
  font-size: 14px;
}

/* ---------------------------------------------------------------- footer */
.foot {
  padding: 56px 0 26px;
  background: var(--navy-2);
  color: var(--fg-3);
  font-size: 14.5px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
}

.foot h4 {
  color: var(--fg);
  font-size: 16px;
  margin: 0 0 12px;
}

.foot ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot li {
  margin-bottom: 7px;
}

.foot a:hover {
  color: var(--gold-2);
}

.foot__end {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.wa {
  position: fixed;
  inset-inline-end: 18px;
  bottom: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  background: #1f7a4d;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
}

@media (max-width: 1000px) {
  .people {
    grid-template-columns: 1fr 1fr;
  }

  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 880px) {
  .grid--3,
  .steps,
  .stats {
    grid-template-columns: 1fr 1fr;
  }

  .stat:nth-child(3),
  .step:nth-child(3) {
    border-inline-start: 0;
  }

  .split,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 640px) {
  .nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: var(--navy-2);
    border-bottom: 1px solid var(--line);
  }

  .nav[hidden] {
    display: none;
  }

  .nav a {
    padding: 12px 14px;
  }

  .burger {
    display: inline-flex;
  }

  .head .cta {
    display: none;
  }

  .grid--2,
  .grid--3,
  .people,
  .steps,
  .stats,
  .foot-grid {
    grid-template-columns: 1fr;
  }

  .band {
    padding: 54px 0;
  }

  .hero__in {
    padding: 64px 0 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
