/* =========================================================================
   مكتب الأستاذ عمرو الشاذلي — جنايات
   -------------------------------------------------------------------------
   A criminal case starts at three in the morning with somebody's brother in a
   police station, and the page has to answer one question: can I reach you
   now. So the phone bar is pinned above everything, and the first screen is a
   courtroom with the answer written on it.

   Near-black, oxblood, Cairo at 900, tight leading, hard edges. Nothing here
   is rounded or warm — it should feel like a file, not a brochure. The exact
   opposite of the family page, which is the same lawyer on a different day and
   must not look like this one recoloured.

   Photographs carry the page: the courtroom, the six areas, the research and
   the portrait all come from the demos we already own.
   ========================================================================= */

:root {
  --bg: #0c0c0e;
  --bg-2: #131316;
  --bg-3: #1a1a1e;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --fg: #f2f0ee;
  --fg-2: #b9b5b1;
  --fg-3: #85817d;
  --blood: #9d2b38;
  --blood-2: #c4404f;
  --blood-soft: rgba(157, 43, 56, 0.16);
  --amber: #d8a13a;

  --display: "Cairo", system-ui, sans-serif;
  --wrap: min(1140px, calc(100% - 36px));
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--display);
  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;
  /* The width/height attributes reserve each box while the page loads, and
     they also count as a definite height — which makes the browser ignore
     every aspect-ratio below. `auto` hands the height back to the CSS. */
  height: auto;
}

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

::selection {
  background: var(--blood);
  color: #fff;
}

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

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

/* --------------------------------------------------------- the alarm bar */
.alarm {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--blood);
  color: #fff;
}

.alarm__in {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 14.5px;
  font-weight: 700;
  text-align: center;
}

.alarm a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

/* ------------------------------------------------------------------ head */
.head {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.logo svg {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.logo b {
  display: block;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.logo span {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--fg-3);
}

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

.menu a {
  padding: 7px 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--fg-2);
  border-radius: 4px;
}

.menu a:hover {
  color: var(--fg);
  background: var(--bg-3);
}

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

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.8) contrast(1.05);
}

.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      270deg,
      rgba(12, 12, 14, 0.96) 0%,
      rgba(12, 12, 14, 0.82) 45%,
      rgba(12, 12, 14, 0.42) 100%
    ),
    radial-gradient(700px 360px at 90% 10%, var(--blood-soft), transparent 70%);
}

.hero__in {
  padding: 70px 0 62px;
}

/* .hero__in is also .wrap: a max-width here would beat the column width and
   centre the block on the page, so the cap goes on the children. */
.hero__in > * {
  max-width: 56ch;
}

.hero__tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 12px;
  border: 1px solid var(--blood-2);
  border-radius: 3px;
  color: var(--blood-2);
  font-size: 12.5px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(32px, 5.4vw, 54px);
}

.hero h1 b {
  color: var(--blood-2);
}

.hero p {
  margin: 16px 0 26px;
  max-width: 46ch;
  font-size: 17px;
  color: var(--fg-2);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s;
}

.btn--red {
  background: var(--blood);
  color: #fff;
}

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

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

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

/* The four numbers, pinned across the bottom of the photograph. */
.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: rgba(12, 12, 14, 0.72);
}

.strip div {
  padding: 16px 20px;
  border-inline-start: 1px solid var(--line);
}

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

.strip b {
  display: block;
  font-size: 22px;
  font-weight: 900;
  color: var(--blood-2);
  line-height: 1.3;
}

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

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

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

.band h2 {
  font-size: clamp(24px, 3.6vw, 34px);
  margin-bottom: 8px;
}

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

/* ------------------------------------------------------------ photo cards */
.cards {
  display: grid;
  gap: 16px;
}

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

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

.shot {
  position: relative;
  isolation: isolate;
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  color: inherit;
  transition: border-color 0.2s;
}

.shot:hover {
  border-color: var(--blood);
}

.shot > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: saturate(0.8);
  transition: transform 0.4s;
}

.shot:hover > img {
  transform: scale(1.04);
}

.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.25) 0%, rgba(12, 12, 14, 0.92) 72%);
}

.shot__no {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blood-2);
}

.shot h3 {
  font-size: 19px;
  margin: 3px 0 6px;
}

.shot p {
  margin: 0;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.75;
}

/* The hour-by-hour spine, now with a photograph on each rung. */
.hours {
  display: grid;
  gap: 18px;
}

.hour {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.hour:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hour > img {
  width: 100%;
  aspect-ratio: 10 / 7;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.82);
}

.hour b {
  display: block;
  font-size: 13px;
  color: var(--amber);
  font-weight: 700;
}

.hour h3 {
  font-size: 19px;
  margin: 2px 0 5px;
}

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

/* --------------------------------------------------------- the lawyer band */
.who {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 40px;
  align-items: center;
}

.who > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  border-radius: 6px;
  filter: saturate(0.9);
}

.who h2 {
  margin-bottom: 10px;
}

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

.who ul {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.who li {
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--fg-2);
}

.who li b {
  color: var(--fg);
}

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

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

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

.faq summary {
  padding: 17px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

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

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

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

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

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

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

.form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--fg-2);
}

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

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

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

.sent {
  padding: 15px 18px;
  border: 1px solid var(--blood);
  background: var(--blood-soft);
  border-radius: 4px;
  font-weight: 700;
}

.office-shot {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.82);
  margin-bottom: 16px;
}

/* ---------------------------------------------------------------- footer */
.foot {
  padding: 40px 0 22px;
  color: var(--fg-3);
  font-size: 14px;
}

.foot__in {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: space-between;
}

.foot b {
  color: var(--fg);
  display: block;
  margin-bottom: 6px;
}

.foot__end {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .cards--3 {
    grid-template-columns: 1fr 1fr;
  }

  .who {
    grid-template-columns: 240px 1fr;
    gap: 26px;
  }
}

@media (max-width: 700px) {
  .menu {
    display: none;
  }

  .cards--2,
  .cards--3,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hour,
  .who {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .who > img {
    max-width: 260px;
  }

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

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

  .alarm__in {
    flex-direction: column;
    gap: 7px;
    font-size: 13.5px;
  }

  .band {
    padding: 44px 0;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* ------------------------------------------------------- the lawyer's face */
/* The reader is deciding whether to trust one man with the worst week of his
   life. A courtroom does not answer that; a face does. So the portrait opens
   the page, beside the headline rather than under it. */
.hero__in {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: center;
}

.hero__in > * {
  max-width: none;
}

.hero__in > div {
  max-width: 56ch;
}

.hero__face {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--blood);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

/* The send button is a WhatsApp button, because that is what it does. */
.btn--wa {
  background: #1f7a4d;
  color: #fff;
}

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

@media (max-width: 820px) {
  .hero__in {
    grid-template-columns: 1fr;
    gap: 22px;
    justify-items: start;
  }

  .hero__face {
    width: 150px;
    height: 150px;
  }
}
