/* =========================================================================
   مكتب الأستاذ شريف الديب — قانون العمل والتأمينات
   -------------------------------------------------------------------------
   The reader here was fired last week, or is about to be. He is not a
   company; he is a man on a phone during a shift break, and what he needs
   first is a date: how long do I have before the right disappears.

   So the page is built around deadlines. Big numerals, high contrast, one
   industrial amber, square corners, and a calculator he can actually use.
   Loud where the family page is quiet, plain where the office page is
   elegant — the fifth room in the set, and it should not be mistaken for any
   of the other four.
   ========================================================================= */

:root {
  --bg: #ffffff;
  --bg-2: #f4f4f2;
  --bg-3: #17181a;
  --ink: #17181a;
  --ink-2: #4a4d52;
  --ink-3: #7d8187;
  --amber: #d98314;
  --amber-2: #f0a02c;
  --amber-soft: rgba(217, 131, 20, 0.12);
  --red: #b3332b;
  --green: #2c7a4b;
  --line: rgba(23, 24, 26, 0.14);
  --line-2: rgba(23, 24, 26, 0.26);

  --font: "Cairo", system-ui, sans-serif;
  --wrap: min(1120px, calc(100% - 34px));
  --narrow: min(820px, calc(100% - 34px));
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  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(--amber-soft);
}

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

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

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.25;
}

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

.demo-note {
  background: var(--bg-3);
  color: #9a9ea3;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 16px;
}

/* ------------------------------------------------------------------ head */
.head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}

.head__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  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: 800;
  line-height: 1.3;
}

.logo span {
  display: block;
  font-size: 11px;
  color: var(--ink-3);
  font-weight: 600;
}

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

.menu a {
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
}

.menu a:hover {
  color: var(--ink);
  background: var(--amber-soft);
}

.head .cta {
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

/* ------------------------------------------------------------------ hero */
.hero {
  border-bottom: 2px solid var(--ink);
  background: var(--bg-2);
}

.hero__in {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 36px;
  align-items: center;
  padding: 52px 0 48px;
}

.hero__face {
  width: 260px;
  height: 260px;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--ink);
}

.hero__tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 12px;
  background: var(--amber);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 50px);
}

.hero h1 mark {
  background: none;
  color: var(--amber);
}

.hero p {
  margin: 16px 0 24px;
  max-width: 48ch;
  font-size: 17px;
  color: var(--ink-2);
}

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

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

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #000;
}

.btn--wire {
  border-color: var(--ink);
  color: var(--ink);
}

.btn--wire:hover {
  background: var(--ink);
  color: #fff;
}

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

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

/* ------------------------------------------------------------- deadlines */
/* The spine of the page. Big numerals because the number is the message:
   a right with a date on it stops being a right when the date passes. */
.deadlines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  background: var(--ink);
  gap: 2px;
}

.deadline {
  background: var(--bg);
  padding: 24px 22px;
}

.deadline b {
  display: block;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: var(--amber);
}

.deadline strong {
  display: block;
  font-size: 15px;
  margin: 6px 0 4px;
}

.deadline span {
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.7;
}

/* -------------------------------------------------------------- sections */
.band {
  padding: 58px 0;
  border-bottom: 2px solid var(--ink);
}

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

.band--dark {
  background: var(--bg-3);
  color: #f2f2f0;
}

.band--dark h2,
.band--dark h3 {
  color: #fff;
}

.band--dark p {
  color: #b9bcc0;
}

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

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

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

.right {
  background: var(--bg);
  padding: 22px;
}

.right svg {
  color: var(--amber);
  margin-bottom: 10px;
}

.right h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

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

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

.shots figure {
  margin: 0;
}

.shots img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 2px solid var(--ink);
}

.shots figcaption {
  margin-top: 9px;
  font-size: 13.5px;
  color: var(--ink-2);
}

/* ---------------------------------------------------------- the calculator */
/* Not a gimmick: "how much am I owed" is the question, and an approximate
   answer on the page is what makes somebody send the message. */
.calc {
  border: 2px solid var(--ink);
  background: var(--bg);
  display: grid;
  grid-template-columns: 1fr 300px;
}

.calc__fields {
  padding: 26px;
  display: grid;
  gap: 14px;
}

.calc label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 5px;
}

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

.calc input:focus,
.calc select:focus {
  outline: none;
  border-color: var(--amber);
}

.calc__out {
  background: var(--ink);
  color: #fff;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc__out span {
  font-size: 13.5px;
  color: #9a9ea3;
}

.calc__out b {
  display: block;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--amber-2);
  margin: 6px 0;
}

.calc__out small {
  font-size: 12.5px;
  color: #9a9ea3;
  line-height: 1.7;
}

/* ------------------------------------------------------------------- faq */
.faq {
  border: 2px solid var(--ink);
}

.faq details {
  border-bottom: 2px solid var(--ink);
}

.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(--amber);
  font-size: 20px;
}

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

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

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

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

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

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

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

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

.office-shot {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 2px solid var(--ink);
  margin-bottom: 14px;
}

/* ---------------------------------------------------------------- footer */
.foot {
  padding: 38px 0 22px;
  background: var(--bg-3);
  color: #9a9ea3;
  font-size: 14px;
}

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

.foot b {
  color: #fff;
  display: block;
  margin-bottom: 6px;
}

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

.foot__end {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12.5px;
}

.wa {
  position: fixed;
  inset-inline-end: 16px;
  bottom: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 19px;
  background: #1f7a4d;
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
}

@media (max-width: 960px) {
  .deadlines,
  .rights,
  .shots {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .hero__in,
  .deadlines,
  .rights,
  .shots,
  .calc,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .band {
    padding: 44px 0;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
