@charset "utf-8";

/* ============================================================
   Dana Khoury Law Office — Badaro, Beirut
   One stylesheet, two languages. Logical properties throughout
   so the Arabic page mirrors rather than flips.
   ============================================================ */

/* ---------- Tokens ---------- */

:root {
  --bg:      #F4F4F6;
  --surface: #FFFFFF;
  --text:    #1C1E26;
  --muted:   #7C7F8A;          /* rules, hairlines, decorative only */
  --meta:    #5E616B;          /* darkened muted: AA-safe for small text */
  --brand:   #2C3254;
  --accent:  #B08D5E;          /* large text, rules and drawn shapes only */
  --accent-deep: #7A5E37;      /* AA-safe accent for small text on light */

  --line:       #DCDDE3;
  --line-strong:#C3C5CE;
  --line-dark:  rgba(255, 255, 255, .22);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", Arial, sans-serif;

  /* Type scale — one proportion, held down the whole page */
  --t-label: .75rem;
  --t-small: .9375rem;
  --t-base:  1.0625rem;
  --t-lead:  clamp(1.125rem, .96rem + .62vw, 1.375rem);
  --t-h3:    clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  --t-h2:    clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  --t-h1:    clamp(3rem, 1.6rem + 6.4vw, 6.25rem);
  --t-num:   clamp(1.75rem, 1.3rem + 2vw, 2.75rem);

  /* Spacing rhythm */
  --gutter:  clamp(1.25rem, .55rem + 3vw, 4rem);
  --section: clamp(4rem, 2.4rem + 7vw, 8.5rem);
  --measure: 34ch;
}

[lang="ar"] {
  --font-display: "El Messiri", "Cormorant Garamond", serif;
  --font-body: "Tajawal", "Segoe UI", Arial, sans-serif;
  --t-base: 1.0625rem;
  --measure: 36ch;
}

/* ---------- Reset ---------- */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[lang="ar"] body { line-height: 1.9; }

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { max-width: 100%; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 1px;
}
.band :focus-visible,
.site-foot :focus-visible { outline-color: var(--accent); }

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

/* ---------- Utilities ---------- */

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  inset-block-start: -100%;
  inset-inline-start: var(--gutter);
  z-index: 10;
  background: var(--brand);
  color: #fff;
  padding: .75rem 1.25rem;
  font-size: var(--t-small);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { inset-block-start: .5rem; }

.label {
  font-family: var(--font-body);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--meta);
}
[lang="ar"] .label { letter-spacing: 0; font-weight: 500; }

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

/* ---------- Wordmark ---------- */

.wordmark {
  display: block;
  text-decoration: none;
  line-height: 1.1;
}
.wordmark-name {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.3125rem;
  letter-spacing: .005em;
  color: var(--brand);
}
[lang="ar"] .wordmark-name { font-size: 1.25rem; }
.wordmark-role {
  display: block;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-block-start: .25rem;
}
[lang="ar"] .wordmark-role { letter-spacing: 0; font-weight: 500; font-size: .8125rem; }

/* ---------- Header ---------- */

.site-head {
  border-block-end: 1px solid var(--line);
  background: var(--bg);
}
.head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.125rem;
}
.head-side {
  display: flex;
  align-items: center;
  gap: clamp(.75rem, 2vw, 1.5rem);
}
.head-place {
  font-size: var(--t-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--meta);
  font-weight: 600;
}
[lang="ar"] .head-place { letter-spacing: 0; font-weight: 500; font-size: .8125rem; }
@media (max-width: 640px) { .head-place { display: none; } }

.lang-toggle {
  display: inline-block;
  padding: .45rem .9rem;
  border: 1px solid var(--line-strong);
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--brand);
  background: var(--surface);
  transition: border-color .15s ease, color .15s ease;
}
.lang-toggle:hover { border-color: var(--brand); }
[lang="ar"] .lang-toggle { letter-spacing: .06em; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  padding: 1rem 1.75rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-size: var(--t-small);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--brand);
  transition: background-color .15s ease, border-color .15s ease;
}
[lang="ar"] .btn { letter-spacing: 0; text-transform: none; font-size: 1rem; font-weight: 500; }
.btn:hover { background: var(--text); border-color: var(--text); }
.btn svg { flex: none; }

.btn-invert {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text);
}
.btn-invert:hover { background: #fff; border-color: #fff; color: var(--brand); }

/* ---------- Hero ---------- */

.hero { padding-block: clamp(3rem, 1.5rem + 6vw, 6.5rem) var(--section); }

.hero-grid {
  display: grid;
  gap: clamp(2.5rem, 1rem + 6vw, 5rem);
}
@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(0, .95fr);
    align-items: start;
  }
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .875rem;
  margin-block-end: 1.75rem;
}
.hero-eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
  max-width: 8rem;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--t-h1);
  line-height: .94;
  letter-spacing: -.02em;
  color: var(--brand);
  margin-block-end: 1.5rem;
}
[lang="ar"] .hero-title { line-height: 1.15; letter-spacing: 0; font-weight: 600; }
.hero-title .line-2 {
  display: block;
  font-size: .42em;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-block-start: 1.1rem;
}
[lang="ar"] .hero-title .line-2 {
  font-size: .5em;
  letter-spacing: 0;
  font-weight: 500;
  font-family: var(--font-body);
}

.hero-lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  max-width: 32ch;
  color: var(--text);
  margin-block-end: 2rem;
}
[lang="ar"] .hero-lead { line-height: 1.8; max-width: 34ch; }
.hero-lead strong { font-weight: 600; color: var(--brand); }

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.hero-note {
  font-size: var(--t-small);
  color: var(--meta);
  max-width: 22ch;
  line-height: 1.5;
}

/* Hero side card — the office at a glance */

.facts {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(1.5rem, 1rem + 1.6vw, 2.25rem);
}
.facts-title {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  padding-block-end: 1rem;
  border-block-end: 2px solid var(--accent);
  margin-block-end: .5rem;
}
[lang="ar"] .facts-title { letter-spacing: 0; font-weight: 500; font-size: .875rem; }

.facts-list { display: grid; }
.facts-list > div {
  display: grid;
  gap: .2rem;
  padding-block: 1rem;
  border-block-end: 1px solid var(--line);
}
.facts-list > div:last-child { border-block-end: 0; padding-block-end: 0; }
.facts-list dt {
  font-size: var(--t-label);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--meta);
  font-weight: 600;
}
[lang="ar"] .facts-list dt { letter-spacing: 0; font-weight: 500; font-size: .8125rem; }
.facts-list dd {
  margin: 0;
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--text);
}
[lang="ar"] .facts-list dd { font-size: 1rem; line-height: 1.7; }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section-white { background: var(--surface); border-block: 1px solid var(--line); }

.section-head {
  display: grid;
  gap: 1.25rem;
  margin-block-end: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}
@media (min-width: 62rem) {
  .section-head {
    grid-template-columns: 7rem minmax(0, 1fr);
    gap: 0 3rem;
    align-items: baseline;
  }
}
.section-kicker {
  font-family: var(--font-display);
  font-size: var(--t-num);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.015em;
  color: var(--brand);
  max-width: 20ch;
}
[lang="ar"] .section-title { line-height: 1.3; letter-spacing: 0; }
.section-sub {
  font-size: var(--t-lead);
  color: var(--meta);
  max-width: 46ch;
  line-height: 1.55;
  margin-block-start: 1rem;
}
[lang="ar"] .section-sub { line-height: 1.85; }
@media (min-width: 62rem) {
  .section-head .section-title,
  .section-head .section-sub { grid-column: 2; }
}

/* ---------- Matters ---------- */

.matters { border-block-start: 1px solid var(--line-strong); }

.matter {
  display: grid;
  gap: 1.5rem;
  padding-block: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);
  border-block-end: 1px solid var(--line);
}
@media (min-width: 62rem) {
  .matter {
    grid-template-columns: 7rem minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 0 3rem;
  }
}
.matter-num {
  font-family: var(--font-display);
  font-size: var(--t-num);
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.matter-title {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 700;
  line-height: 1.15;
  color: var(--brand);
  margin-block-end: .875rem;
}
[lang="ar"] .matter-title { line-height: 1.4; font-weight: 600; }
.matter-line {
  font-size: var(--t-lead);
  font-family: var(--font-display);
  font-weight: 500;
  font-style: italic;
  line-height: 1.4;
  color: var(--text);
  margin-block-end: 1rem;
}
[lang="ar"] .matter-line {
  font-style: normal;
  font-family: var(--font-display);
  line-height: 1.7;
}
.matter-body { color: var(--meta); max-width: 40ch; }
[lang="ar"] .matter-body { max-width: 42ch; }

.matter-when-title {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-block-end: 1rem;
}
[lang="ar"] .matter-when-title { letter-spacing: 0; font-weight: 500; font-size: .875rem; }

.ticks { display: grid; gap: .75rem; }
.ticks li {
  position: relative;
  padding-inline-start: 1.5rem;
  font-size: var(--t-small);
  line-height: 1.55;
  color: var(--text);
}
[lang="ar"] .ticks li { font-size: 1rem; line-height: 1.75; }
.ticks li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: .62em;
  width: .625rem;
  height: 1px;
  background: var(--accent);
}

/* ---------- Fees + steps ---------- */

.two-col {
  display: grid;
  gap: clamp(3rem, 1.5rem + 5vw, 5rem);
}
@media (min-width: 62rem) {
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.col-title {
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 700;
  color: var(--brand);
  line-height: 1.15;
  padding-block-end: 1rem;
  border-block-end: 2px solid var(--brand);
  margin-block-end: .25rem;
}
[lang="ar"] .col-title { font-weight: 600; line-height: 1.4; }

.fees li { border-block-end: 1px solid var(--line); padding-block: 1.375rem; }
.fee-row {
  display: flex;
  align-items: baseline;
  gap: .75rem;
}
.fee-name {
  font-size: var(--t-lead);
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
[lang="ar"] .fee-name { font-weight: 500; }
.fee-dots {
  flex: 1 1 auto;
  min-width: 1.5rem;
  border-block-end: 1px dotted var(--line-strong);
  transform: translateY(-.3em);
}
.fee-price {
  font-size: var(--t-lead);
  font-weight: 600;
  color: var(--brand);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.fee-price.is-quoted {
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--meta);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: normal;
  text-align: end;
}
[lang="ar"] .fee-price.is-quoted { letter-spacing: 0; font-weight: 500; text-transform: none; font-size: 1rem; }
.fee-note {
  font-size: var(--t-small);
  color: var(--meta);
  margin-block-start: .5rem;
  max-width: 42ch;
  line-height: 1.55;
}
[lang="ar"] .fee-note { font-size: 1rem; line-height: 1.75; }

.fees-foot {
  margin-block-start: 1.5rem;
  font-size: var(--t-small);
  color: var(--text);
  border-inline-start: 2px solid var(--accent);
  padding-inline-start: 1rem;
  line-height: 1.6;
}
[lang="ar"] .fees-foot { font-size: 1rem; }

.steps { display: grid; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0 1rem;
  padding-block: 1.5rem;
  border-block-end: 1px solid var(--line);
}
.steps li::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.step-title {
  font-size: var(--t-base);
  font-weight: 600;
  color: var(--brand);
  margin-block-end: .3rem;
  line-height: 1.35;
}
[lang="ar"] .step-title { font-weight: 500; }
.step-body {
  font-size: var(--t-small);
  color: var(--meta);
  line-height: 1.6;
  max-width: 40ch;
}
[lang="ar"] .step-body { font-size: 1rem; line-height: 1.8; }

/* ---------- Questions ---------- */

.qa { border-block-start: 1px solid var(--line-strong); }
.qa details { border-block-end: 1px solid var(--line); }

.qa summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.5rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.25;
  color: var(--brand);
}
[lang="ar"] .qa summary { line-height: 1.5; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-deep); }

.qa summary::after {
  content: "";
  flex: none;
  align-self: center;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--accent-deep), var(--accent-deep)) center / 100% 1.5px no-repeat,
    linear-gradient(var(--accent-deep), var(--accent-deep)) center / 1.5px 100% no-repeat;
}
.qa details[open] summary::after {
  background:
    linear-gradient(var(--accent-deep), var(--accent-deep)) center / 100% 1.5px no-repeat;
}
.qa-answer {
  padding-block-end: 1.75rem;
  padding-inline-end: 2.5rem;
  max-width: 58ch;
  color: var(--meta);
}
.qa-answer p + p { margin-block-start: .75rem; }

/* ---------- Closing band ---------- */

.band {
  background: var(--brand);
  color: #fff;
  padding-block: var(--section);
  overflow: hidden;
}
.band-grid {
  display: grid;
  gap: clamp(2.5rem, 1rem + 5vw, 4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .band-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
.band-title {
  font-family: var(--font-display);
  font-size: var(--t-h2);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.015em;
  margin-block-end: 1.25rem;
  max-width: 18ch;
}
[lang="ar"] .band-title { line-height: 1.35; letter-spacing: 0; }
.band-body {
  color: #D9DAE2;
  max-width: 40ch;
  margin-block-end: 2rem;
}
.band-meta {
  margin-block-start: 1.75rem;
  font-size: var(--t-small);
  color: #C6C8D4;
  line-height: 1.6;
}
.band-meta a { color: #fff; }

.arches {
  display: block;
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin-inline-start: auto;
  color: var(--accent);
}
@media (max-width: 61.99rem) { .arches { max-width: 15rem; margin-inline: 0; } }

/* ---------- Footer ---------- */

.site-foot {
  background: var(--text);
  color: #E4E5EA;
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4rem);
  font-size: var(--t-small);
}
.foot-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 48rem) {
  .foot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5rem;
  }
}
.site-foot .wordmark-name { color: #fff; }
.site-foot .wordmark-role { color: var(--accent); }
.foot-h {
  font-size: var(--t-label);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9A9DAA;
  margin-block-end: .625rem;
}
[lang="ar"] .foot-h { letter-spacing: 0; font-weight: 500; font-size: .875rem; }
.foot-grid p { line-height: 1.6; color: #C9CBD4; }
.site-foot a { color: #fff; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.foot-toggle {
  display: inline-block;
  margin-block-start: .5rem;
  border-color: rgba(255, 255, 255, .35);
  background: transparent;
  color: #fff;
}
.foot-toggle:hover { border-color: var(--accent); }
.foot-fine {
  margin-block-start: 2.5rem;
  padding-block-start: 1.5rem;
  border-block-start: 1px solid var(--line-dark);
  font-size: var(--t-label);
  letter-spacing: .04em;
  color: #9A9DAA;
}
[lang="ar"] .foot-fine { letter-spacing: 0; font-size: .8125rem; }

/* ---------- Motion / print ---------- */

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

@media print {
  .lang-toggle, .btn, .arches { display: none; }
  body { background: #fff; font-size: 11pt; }
  .band, .site-foot { background: #fff; color: #000; }
  .band-title, .band-body, .band-meta, .foot-grid p { color: #000; }
  .qa details { border: 0; }
  .qa-answer { display: block; }
}
