/* ============================================================
   Technical & Loss Adjusting Co. L.L.C.
   Corporate site stylesheet. One file, no dependencies.
   Palette and type follow the TLA letterhead and report system.
   ============================================================ */

:root {
  --gold:   #A8802E;   /* headings rules, accents            */
  --bronze: #8A6A24;   /* small gold-toned text (AA on cream) */
  --ink:    #2B2118;   /* body text                          */
  --taupe:  #7A684E;   /* secondary text                     */
  --rule:   #C9B37D;   /* hairlines                          */
  --pale:   #EFE6CE;   /* tinted panels                      */
  --cream:  #FAF5E9;   /* page ground                        */
  --deep:   #1E1811;   /* footer, utility bar                */
  --serif:  Georgia, 'Times New Roman', 'Noto Serif', serif;
  --arabic: 'Noto Naskh Arabic', 'Traditional Arabic', 'Segoe UI',
            Tahoma, serif;
  --pad:    clamp(18px, 4vw, 56px);
  --maxw:   1140px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
a { color: var(--bronze); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.22; }
p { margin: 0 0 1em; }

.eyebrow {
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--taupe); margin: 0 0 9px;
}
/* Visually hidden without an off-canvas offset: a negative inline offset
   creates a horizontal scrollbar once the document direction is RTL. */
.skip {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus {
  position: fixed; inset-inline-start: 12px; top: 12px; width: auto;
  height: auto; clip-path: none; z-index: 99; background: var(--gold);
  color: var(--cream); padding: 10px 16px;
}

/* ---------------------------------------------------- utility bar */
.util { background: var(--deep); color: var(--pale); font-size: 12.5px; }
.util .wrap {
  display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center;
  min-height: 38px; justify-content: space-between;
}
.util a { color: var(--pale); text-decoration: none; }
.util a:hover { color: var(--gold); }
.util .sep { color: var(--taupe); padding: 0 8px; }
.util .lang { color: var(--gold); letter-spacing: .1em; }

/* ---------------------------------------------------- masthead */
header.mast { border-bottom: 2px solid var(--gold); background: var(--cream); }
.mast .wrap {
  display: flex; align-items: center; gap: 16px; min-height: 86px;
}
.mast .mark { height: 52px; width: auto; flex: none; }
.mast .id { flex: 1 1 auto; min-width: 0; }
.mast .id b {
  display: block; font-size: 17px; letter-spacing: .1px; color: var(--ink);
}
.mast .id span {
  display: block; font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--taupe); margin-top: 2px;
}

/* ---------------------------------------------------- navigation */
nav.main { border-bottom: 1px solid var(--rule); background: var(--pale); }
nav.main ul {
  display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0;
}
nav.main a {
  display: block; padding: 13px 22px; text-decoration: none; color: var(--ink);
  font-size: 14.5px; letter-spacing: .04em;
  border-inline-end: 1px solid var(--rule);
}
nav.main li:first-child a { border-inline-start: 1px solid var(--rule); }
nav.main a:hover { background: var(--cream); color: var(--bronze); }
nav.main a[aria-current="page"] {
  background: var(--gold); color: var(--cream); font-weight: 700;
}

/* ---------------------------------------------------- hero */
.hero { border-bottom: 1px solid var(--rule); }
.hero-img {
  width: 100%; height: clamp(180px, 26vw, 300px); object-fit: cover;
  border-bottom: 2px solid var(--gold);
}
.hero-body { padding: clamp(32px, 5vw, 56px) 0; }
.hero h1 {
  font-size: clamp(27px, 4.2vw, 42px); color: var(--ink); max-width: 22ch;
}
.hero .lede {
  margin: 18px 0 0; max-width: 64ch; font-size: clamp(16px, 1.6vw, 18px);
  color: var(--taupe);
}

/* ---------------------------------------------------- page head */
.page-head { padding: clamp(30px, 4vw, 48px) 0; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: clamp(25px, 3.6vw, 36px); color: var(--ink); }
.page-head p { margin: 14px 0 0; max-width: 66ch; color: var(--taupe); }

/* ---------------------------------------------------- sections */
section { padding: clamp(38px, 5vw, 62px) 0; }
section + section { border-top: 1px solid var(--rule); }
section.tint { background: var(--pale); }
h2 {
  font-size: clamp(20px, 2.4vw, 26px); color: var(--ink);
  padding-top: 12px; border-top: 2px solid var(--gold); display: inline-block;
}
.sec-intro { margin: 16px 0 26px; max-width: 66ch; }

.grid { display: grid; gap: 26px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.split {
  display: grid; gap: clamp(24px, 4vw, 48px);
  grid-template-columns: 1.15fr 1fr; align-items: start;
}
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* ---------------------------------------------------- cards */
.card { border: 1px solid var(--rule); background: var(--cream); }
.card .card-body { padding: 18px 20px 20px; }
.card h3 { font-size: 18px; color: var(--ink); margin-bottom: 7px; }
.card p { margin: 0; font-size: 15px; color: var(--taupe); }
.card .num {
  display: block; font-size: 11px; letter-spacing: .2em; color: var(--bronze);
  margin-bottom: 5px;
}
.card img { border-bottom: 1px solid var(--rule); }

/* ---------------------------------------------------- data table */
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data caption {
  text-align: start; font-size: 11px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--taupe); padding-bottom: 10px;
}
table.data th {
  text-align: start; font-size: 11.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cream); background: var(--gold);
  padding: 9px 12px; font-weight: 700;
}
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--rule); }
table.data tr:last-child td { border-bottom: 1px solid var(--gold); }
table.data td.num { text-align: end; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; }

/* ---------------------------------------------------- definition rows */
dl.rows { margin: 0; }
dl.rows div {
  display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--rule);
}
dl.rows dt {
  font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bronze); font-weight: 700;
}
dl.rows dd { margin: 0; font-size: 15.5px; }
@media (max-width: 560px) { dl.rows div { grid-template-columns: 1fr; gap: 3px; } }

/* ---------------------------------------------------- lists */
ul.ticks { list-style: none; margin: 0; padding: 0; }
ul.ticks li {
  position: relative; padding: 9px 0 9px 24px;
  border-bottom: 1px solid var(--rule); font-size: 15.5px;
}
ul.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 17px;
  width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg);
}
ul.inline { list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0; padding: 0; }
ul.inline li {
  border: 1px solid var(--rule); background: var(--cream);
  padding: 7px 15px; font-size: 14.5px;
}

/* ---------------------------------------------------- bars */
.bar-row {
  display: grid; grid-template-columns: minmax(140px, 1fr) 2.6fr auto;
  gap: 16px; align-items: center; padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.bar-label b { display: block; font-size: 15.5px; }
.bar-label span {
  display: block; font-size: 11.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--taupe);
}
.bar-track { background: var(--cream); border: 1px solid var(--rule); height: 24px; }
.bar-fill { display: block; height: 100%; background: var(--gold); }
.bar-val { font-size: 18px; font-weight: 700; color: var(--bronze);
  font-variant-numeric: tabular-nums; }
@media (max-width: 620px) {
  .bar-row { grid-template-columns: 1fr auto; }
  .bar-track { grid-column: 1 / -1; }
}

/* ---------------------------------------------------- stats */
.stats { display: grid; gap: 1px; background: var(--rule);
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border: 1px solid var(--rule); }
.stats div { background: var(--cream); padding: 20px; }
.stats b { display: block; font-size: clamp(28px, 4vw, 40px); color: var(--gold);
  line-height: 1.05; }
.stats span { display: block; font-size: 13px; color: var(--taupe); margin-top: 5px; }

/* ---------------------------------------------------- buttons */
.btn {
  display: inline-block; padding: 12px 26px; text-decoration: none;
  font-size: 15px; border: 1.5px solid var(--gold); background: var(--gold);
  color: var(--cream); cursor: pointer; font-family: var(--serif);
}
.btn:hover { background: var(--bronze); border-color: var(--bronze); }
.btn-ghost { background: transparent; color: var(--bronze); }
.btn-ghost:hover { background: var(--pale); color: var(--bronze); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------------------------------------------------- form */
form.enq { max-width: 640px; }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--bronze); font-weight: 700;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; font-family: var(--serif); font-size: 16px;
  color: var(--ink); background: var(--cream); border: 1px solid var(--rule);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold);
}
.field textarea { min-height: 150px; resize: vertical; }
.req { color: var(--bronze); }
.hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}
.notice { border: 1px solid var(--gold); background: var(--pale);
  padding: 14px 18px; margin-bottom: 26px; font-size: 15.5px; }
.notice.bad { border-color: #8C2F1D; }
.notice b { color: var(--bronze); }

/* ---------------------------------------------------- footer */
footer.site { background: var(--deep); color: var(--pale); padding: 48px 0 30px; }
footer.site .foot {
  display: grid; gap: 30px; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  align-items: start;
}
@media (max-width: 900px) { footer.site .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { footer.site .foot { grid-template-columns: 1fr; } }
footer.site .logo { height: 50px; width: auto; margin-bottom: 18px; }
footer.site h3 {
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--rule); margin: 0 0 10px;
}
footer.site p { font-size: 14px; line-height: 1.85; margin: 0; }
footer.site a { color: var(--gold); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site ul { list-style: none; margin: 0; padding: 0; font-size: 14px;
  line-height: 1.95; }
footer.site .ar-name { font-family: var(--arabic); direction: rtl;
  text-align: start; font-size: 16px; color: var(--pale); margin: 0 0 4px; }
.rulebar { height: 2px; background: var(--gold); margin: 36px 0 18px; }
.fine { display: flex; flex-wrap: wrap; gap: 6px 22px;
  justify-content: space-between; font-size: 12.5px; color: var(--rule); }

/* ============================================================
   Right-to-left. Logical properties do most of the work; these
   are the handful of cases that need an explicit flip.
   ============================================================ */
[dir="rtl"] body, [dir="rtl"] .btn,
[dir="rtl"] .field input, [dir="rtl"] .field select,
[dir="rtl"] .field textarea { font-family: var(--arabic); }
[dir="rtl"] { letter-spacing: 0 !important; }
[dir="rtl"] .eyebrow, [dir="rtl"] .mast .id span,
[dir="rtl"] table.data th, [dir="rtl"] dl.rows dt,
[dir="rtl"] .field label, [dir="rtl"] footer.site h3,
[dir="rtl"] .bar-label span, [dir="rtl"] table.data caption {
  text-transform: none; letter-spacing: 0;
}
[dir="rtl"] .card .num { letter-spacing: 0; }
[dir="rtl"] .bar-fill { margin-inline-start: auto; }
[dir="rtl"] .footer .ar-name { direction: rtl; }
[dir="rtl"] body { line-height: 1.85; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { line-height: 1.45; }
