/* =========================================================================
   الدفاع — صفحة محامي جنايات
   -------------------------------------------------------------------------
   A criminal case starts at three in the morning with somebody's brother in
   a police station, and the page has to answer the only question being asked:
   can I reach you now. So everything here is built around speed — a phone
   bar pinned to the top of the screen, a countdown as the hero, and blocks
   that read in one glance.

   The look is the opposite of the office demos: near-black, oxblood, heavy
   weights, tight leading, no paper and no ornament. It should feel like a
   file, not a brochure.
   ========================================================================= */

: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(1100px, 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 on every <img> reserve the right box while the
     page loads, but they also count as a definite height — which makes the
     browser ignore every aspect-ratio set below. `auto` hands the height back
     to the CSS. Any rule that really wants a fixed height still wins on
     specificity. */
  height: auto;
}

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

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

.wrap {
  width: var(--wrap);
  margin-inline: auto;
}

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

/* --------------------------------------------------------- the alarm bar */
/* Pinned, red, and the first thing on the screen: at 3am this is the page. */
.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;
}

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

/* ------------------------------------------------------------------ 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: 66px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.logo svg {
  width: 30px;
  height: 30px;
}

.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;
  padding: 60px 0 56px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 420px at 85% -10%, var(--blood-soft), transparent 70%),
    var(--bg);
}

.hero__in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.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, 56px);
}

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

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

/* The countdown. Not a gimmick: the first 24 hours decide the case, and the
   number says it faster than the sentence under it. */
.clock {
  flex: 0 0 auto;
  width: 210px;
  height: 210px;
  display: grid;
  place-content: center;
  text-align: center;
  border: 2px solid var(--blood);
  border-radius: 50%;
  background: var(--blood-soft);
}

.clock b {
  display: block;
  font-size: 68px;
  font-weight: 900;
  line-height: 1;
  color: var(--blood-2);
}

.clock span {
  font-size: 13.5px;
  color: var(--fg-2);
  line-height: 1.6;
}

.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);
}

/* -------------------------------------------------------------- sections */
.band {
  padding: 58px 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;
}

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

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

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

.box {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-3);
  transition: border-color 0.18s;
}

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

.box h3 {
  font-size: 18px;
  margin-bottom: 7px;
}

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

.box__no {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blood-2);
}

/* The hour-by-hour list: the spine of the page. */
.hours {
  border-inline-start: 2px solid var(--blood);
  padding-inline-start: 0;
  margin: 0;
  list-style: none;
}

.hours li {
  position: relative;
  padding: 0 26px 26px;
}

.hours li::before {
  content: "";
  position: absolute;
  inset-inline-start: -7px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blood);
}

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

.hours h3 {
  font-size: 18.5px;
  margin: 2px 0 4px;
}

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

/* ------------------------------------------------------------------- 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 */
.form {
  display: grid;
  gap: 12px;
  max-width: 560px;
}

.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;
}

/* ---------------------------------------------------------------- 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: 900px) {
  .hero__in {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .clock {
    width: 160px;
    height: 160px;
  }

  .clock b {
    font-size: 52px;
  }

  .cols--3 {
    grid-template-columns: 1fr 1fr;
  }
}

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

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

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

  .band {
    padding: 42px 0;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

/* ------------------------------------------------------------- photographs */
/* The library next door had a courtroom, a desk and an Egyptian portrait in
   it, and the first pass drew boxes instead. On near-black the photographs
   carry the page: no borders, a slight desaturation so nothing competes with
   the oxblood, and a hard edge rather than a rounded one. */

.hero__art {
  display: grid;
  gap: 16px;
  justify-items: center;
  /* Without this the grid stretches the photo to the row height and the
     aspect-ratio below is ignored — the courtroom ate the clock. */
  align-items: start;
  align-content: start;
}

.hero__shot {
  width: 340px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  filter: saturate(0.85) contrast(1.05);
}

.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.shots figure {
  margin: 0;
}

.shots img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(0.85);
}

.shots figcaption {
  margin-top: 9px;
  font-size: 13px;
  color: var(--fg-3);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 34px;
  align-items: start;
}

.lawyer {
  margin: 0;
}

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

.lawyer figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--fg-3);
  line-height: 1.7;
}

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

  .lawyer {
    max-width: 300px;
  }
}

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

  .hero__shot {
    width: 100%;
  }
}
