/* Fastax Plus Services - design system v1
   Palette: ink teal / brass / bone / deep pine. Type: Bitter (display) + Public Sans (body),
   Noto Naskh Arabic for RTL. Loaded via Google Fonts in each page head. */

:root {
  --ink: #123F3C;
  --ink-deep: #0F2B28;
  --brass: #C89B3C;
  --brass-deep: #A87F28;
  --bone: #F2F5F3;
  --parchment: #EDE7D6;
  --text: #1C2B28;
  --muted: #5C6F6A;
  --line: #D8E0DC;
  --card: #FFFFFF;
  --ok: #2E7D4F;
  --max-w: 1080px;
  --font-display: "Bitter", Georgia, serif;
  --font-body: "Public Sans", system-ui, -apple-system, sans-serif;
  --font-arabic: "Noto Naskh Arabic", "Geeza Pro", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bone);
  color: var(--text);
  font: 17px/1.65 var(--font-body);
}

[lang="ar"], .ar { font-family: var(--font-arabic); direction: rtl; }

/* Base body-content links (nav/footer/buttons override this with their own rules below) */
a { color: var(--ink); text-decoration-color: var(--brass-deep); text-underline-offset: 2px; }
a:hover { color: #8C6420; }
a:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(34px, 5.5vw, 54px); font-weight: 800; margin: 0 0 .4em; }
h2 { font-size: clamp(26px, 3.6vw, 36px); font-weight: 700; margin: 0 0 .5em; }
h3 { font-size: 21px; font-weight: 700; margin: 0 0 .4em; }
p  { margin: 0 0 1em; max-width: 62ch; }

.eyebrow {
  font: 700 12px/1 var(--font-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #8C6420; /* darker than --brass-deep: passes 4.5:1 on light backgrounds at this small bold size */
}
.hero .eyebrow, .site-footer .eyebrow { color: var(--brass); } /* on dark ink-deep backgrounds, the lighter brass passes instead */

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--ink-deep);
  color: var(--parchment);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 3px solid var(--brass);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 18px; padding: 10px 20px;
}
.site-header .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.site-header .logo img { width: 52px; height: 52px; }
.site-header .logo b { font-family: var(--font-display); font-size: 19px; letter-spacing: .02em; }
.site-header nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.site-header nav a {
  color: var(--parchment); text-decoration: none;
  font: 600 14px/1 var(--font-body); padding: 8px 0;
}
.site-header nav a:hover, .site-header nav a[aria-current="page"] {
  color: var(--brass); border-bottom: 2px solid var(--brass);
}
.site-header nav a:focus-visible, .site-footer a:focus-visible, .call-bar a:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 2px;
}
.nav-toggle {
  display: none; margin-left: auto; background: none; border: 0;
  width: 40px; height: 40px; padding: 0; cursor: pointer;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 8px; right: 8px; height: 2px;
  background: var(--parchment); transition: transform .18s ease-out, opacity .18s ease-out, background .18s ease-out;
}
.nav-toggle:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { transition: background .18s ease-out; }
}
.nav-toggle span { top: 19px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.site-header.nav-open .nav-toggle span { background: transparent; }
.site-header.nav-open .nav-toggle span::before { transform: translateY(8px) rotate(45deg); background: var(--brass); }
.site-header.nav-open .nav-toggle span::after { transform: translateY(-8px) rotate(-45deg); background: var(--brass); }

@media (max-width: 760px) {
  .site-header nav {
    display: none; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ink-deep); border-bottom: 3px solid var(--brass);
    padding: 6px 20px 14px;
  }
  .site-header.nav-open nav { display: flex; }
  .site-header nav a { padding: 13px 0; border-bottom: 1px solid #1c3a36; }
  .site-header nav a:last-child { border-bottom: 0; }
  .site-header nav a:hover, .site-header nav a[aria-current="page"] { border-bottom-color: var(--brass); }
  .nav-toggle { display: block; }
  .site-header .wrap { position: relative; }
}

/* Buttons */
.btn {
  display: inline-block; background: var(--brass); color: var(--ink-deep);
  font: 700 15px/1 var(--font-body); text-decoration: none;
  padding: 14px 26px; border-radius: 4px; border: 0; cursor: pointer;
  transition: transform 160ms ease-out, background 160ms ease-out;
}
.btn:hover { background: #D4AC57; color: var(--ink-deep); }
.btn:active { transform: scale(0.97); }
.btn.ghost {
  /* Only readable on dark grounds (hero/ink-deep) - parchment text is near-invisible on
     white/bone cards. Use plain .btn inside .card or any light-background context. */
  background: transparent; color: var(--parchment);
  border: 2px solid var(--brass); padding: 12px 24px;
  transition: transform 160ms ease-out, background 160ms ease-out, color 160ms ease-out;
}
.btn.ghost:hover { background: var(--brass); color: var(--ink-deep); }
.btn.ghost:active { transform: scale(0.97); }
.card .btn.ghost, .band:not(.alt) > .wrap > .btn.ghost {
  color: var(--ink); border-color: var(--brass-deep);
}
.card .btn.ghost:hover { color: var(--ink-deep); }
.btn:focus-visible, .btn.ghost:focus-visible {
  outline: 2px solid var(--brass); outline-offset: 3px;
}
.btn:disabled { opacity: .6; cursor: not-allowed; }
.btn:disabled:hover { background: var(--brass); }
.btn:disabled:active { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn.ghost { transition: background 160ms ease-out; }
  .btn:active, .btn.ghost:active { transform: none; }
}

/* Hero */
.hero { background: var(--ink-deep); color: var(--parchment); padding: 72px 0 64px; }
.hero .welcome-lines { display: flex; flex-direction: column; gap: 4px; margin: 18px 0 26px; }
.hero .welcome-lines span { color: #C9D6CE; font-size: 16px; }
.hero .welcome-lines .ar { text-align: left; direction: rtl; unicode-bidi: isolate; }
.hero p.lede { font-size: 20px; color: #C9D6CE; max-width: 36em; }

/* Trust bar */
.trust {
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.trust .wrap {
  display: flex; gap: 28px; flex-wrap: wrap; justify-content: space-between;
  font: 600 14px/1.4 var(--font-body);
}
.trust .item { display: flex; align-items: center; gap: 8px; }
.trust .item b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* Sections */
section.band { padding: 64px 0; }
section.band.alt { background: var(--card); border-block: 1px solid var(--line); }

/* Ledger - itemized, non-sequential service/resource breakdowns.
   Replaces the identical 3-card grid pattern with hairline-divided rows;
   no numerals here, order doesn't carry meaning (see .stepline for the version that does). */
.ledger { border-top: 1px solid var(--line); }
section.band.alt .ledger { border-top-color: var(--line); }
.ledger-row {
  display: grid; grid-template-columns: 1fr; gap: 8px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.ledger-row h3 { margin-bottom: .3em; }
.ledger-row p { margin-bottom: 0; color: var(--muted); max-width: 58ch; }
.ledger-row ul { margin: 8px 0 0; padding-left: 1.1em; color: var(--muted); }
.ledger-row ul li { margin: 4px 0; }
.ledger-row .row-actions { margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 700px) {
  .ledger-row {
    grid-template-columns: minmax(220px, 32%) 1fr; gap: 8px 32px; align-items: baseline;
    padding: 30px 0;
  }
  .ledger-row h3 { margin-bottom: 0; }
}
a.ledger-row {
  display: grid; text-decoration: none; color: inherit;
  transition: background 160ms ease-out, padding-left 160ms ease-out;
}
a.ledger-row:hover { background: var(--bone); padding-left: 10px; }
section.band.alt a.ledger-row:hover { background: var(--card); }
a.ledger-row:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
a.ledger-row h3 { color: var(--ink); }
a.ledger-row .go { color: var(--brass-deep); font: 700 14px/1 var(--font-body); white-space: nowrap; }

/* Stepline - a REAL sequence (the intake process). Connected vertical timeline,
   numerals justified because order is the point. Distinct from .ledger on purpose. */
.stepline { position: relative; margin: 0; padding: 0; list-style: none; }
.stepline::before {
  content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 2px;
  background: var(--line);
}
@media (min-width: 640px) { .stepline::before { left: 27px; } }
.stepline li { position: relative; padding: 0 0 36px 60px; }
@media (min-width: 640px) { .stepline li { padding-left: 74px; } }
.stepline li:last-child { padding-bottom: 0; }
.stepline .step-num {
  position: absolute; left: 0; top: 0; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink-deep); color: var(--brass);
  font: 800 18px/44px var(--font-display); text-align: center;
  font-variant-numeric: tabular-nums;
}
@media (min-width: 640px) { .stepline .step-num { width: 54px; height: 54px; font-size: 21px; line-height: 54px; } }
.stepline h3 { margin-bottom: .3em; }
.stepline p { margin-bottom: 0; color: var(--muted); }

/* Gallery strip - the about-page trio (people/office panels). Deliberately uneven
   widths and a lifted center panel instead of a matched-height card grid. */
.gallery-strip { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; }
.gallery-strip .panel {
  flex: 1 1 260px; aspect-ratio: 4/5; background: var(--ink-deep); border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  padding: 20px;
}
.gallery-strip .panel:nth-child(2) { aspect-ratio: 4/3; align-self: stretch; }
@media (min-width: 760px) {
  .gallery-strip .panel:nth-child(2) { flex-basis: 320px; }
}
.gallery-strip .panel img { width: 38%; height: auto; }
.gallery-strip .panel .cap {
  font: 700 11px/1.5 var(--font-body); letter-spacing: .16em; color: var(--brass); text-align: center;
}

/* Doors - the homepage's three service pillars ("Three doors. One office.").
   Roman numerals mark them as the three fixed entry points, not a generic feature grid. */
.doors { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 760px) { .doors { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.door {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--ink-deep); color: var(--parchment); text-decoration: none;
  border: 1px solid var(--ink-deep); border-radius: 6px; padding: 30px 26px;
  transition: transform 200ms ease-out, border-color 200ms ease-out;
}
.door:nth-child(2) { background: var(--ink); }
@media (min-width: 760px) { .door:nth-child(2) { margin-top: -14px; margin-bottom: -14px; } }
.door:hover { border-color: var(--brass); transform: translateY(-4px); }
.door:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
.door .numeral { font: 800 26px/1 var(--font-display); color: var(--brass); }
.door h3 { color: var(--parchment); margin-bottom: 0; }
.door ul { margin: 0; padding-left: 1.1em; color: #C9D6CE; flex: 1; }
.door ul li { margin: 4px 0; }
.door .go {
  font: 700 14px/1 var(--font-body); color: var(--brass);
  display: flex; align-items: center; gap: 6px;
}

/* CTA panel - single-callout box (blog cross-sells, "coming soon" notices).
   Dark punctuation panel instead of a one-item card grid. */
.cta-panel {
  background: var(--ink-deep); color: var(--parchment); border-radius: 6px;
  padding: 28px 30px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.cta-panel h3 { color: var(--parchment); margin-bottom: 0; }
.cta-panel p { color: #C9D6CE; margin-bottom: 0; }
.cta-panel .row-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.cta-panel .btn.ghost { color: var(--parchment); border-color: var(--brass); }
.cta-panel .btn.ghost:hover { color: var(--ink-deep); }

/* Forms */
form.lead { display: grid; gap: 14px; max-width: 560px; }
form.lead label { font: 600 13px/1 var(--font-body); color: var(--ink); display: grid; gap: 6px; }
form.lead input, form.lead select, form.lead textarea {
  font: 400 16px/1.4 var(--font-body); color: var(--text);
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--card); width: 100%;
}
form.lead input:focus, form.lead select:focus, form.lead textarea:focus {
  outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass);
}
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* Disclaimer + footer */
.disclaimer {
  background: var(--parchment); color: var(--ink-deep);
  font: 500 14px/1.6 var(--font-body);
  padding: 18px 0; border-top: 3px solid var(--brass);
}
.site-footer { background: var(--ink-deep); color: #C9D6CE; padding: 44px 0 32px; }
.site-footer .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.site-footer h4 { font: 700 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--brass); margin: 0 0 12px; }
.site-footer a { color: #C9D6CE; text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.site-footer .nap { font-style: normal; line-height: 1.8; }
.site-footer .legal { grid-column: 1 / -1; border-top: 1px solid #23403C; padding-top: 16px; font-size: 13px; color: #8FA69F; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.visit-card { display: flex; flex-direction: column; gap: 4px; padding: 0; overflow: hidden; }
.visit-card h3, .visit-card address, .visit-card p { padding-left: 24px; padding-right: 24px; }
.visit-card h3 { margin-top: 24px; }
.visit-card p:last-of-type { margin-bottom: 20px; }
.visit-card .visit-map { display: block; margin-top: 4px; filter: grayscale(15%); }
.booking-embed {
  max-width: 760px; margin: 0 auto; background: var(--bone);
  border: 1px solid var(--line); border-radius: 6px; overflow: hidden;
}
@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* FAQ accordions - native details/summary, no JS */
.faq-item {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  margin-bottom: 12px;
}
.faq-item summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 18px 56px 18px 24px;
  font: 700 18px/1.4 var(--font-display); color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%);
  font: 700 26px/1 var(--font-body); color: var(--brass);
  transition: transform .18s ease;
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary:hover { color: var(--ink); }
.faq-item summary:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; border-radius: 6px; }
.faq-a { padding: 0 24px 20px; }
.faq-a p { margin: 0; color: var(--muted); max-width: 60ch; }
@media (prefers-reduced-motion: reduce) { .faq-item summary::after { transition: none; } }

/* Sticky mobile call bar - phone leads convert ~10x forms for local services */
.call-bar {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: var(--ink-deep); border-top: 3px solid var(--brass);
  padding: 10px 12px; gap: 10px;
}
.call-bar a {
  flex: 1; text-align: center; text-decoration: none;
  font: 700 15px/1 var(--font-body); padding: 13px 8px; border-radius: 4px;
}
.call-bar .cb-call { background: var(--brass); color: var(--ink-deep); }
.call-bar .cb-book { background: transparent; color: var(--parchment); border: 2px solid var(--brass); }
@media (max-width: 700px) {
  .call-bar { display: flex; }
  body { padding-bottom: 64px; }
}

/* Trust panel - plain-language confidentiality reassurance */
.assurance {
  background: #FBF6EA; border: 1.5px solid var(--brass-deep); border-radius: 6px;
  padding: 20px 24px 20px 60px; max-width: 46em; position: relative;
}
.assurance::before {
  content: ""; position: absolute; left: 22px; top: 24px; width: 20px; height: 20px;
  background: var(--brass-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 8.6 8 10 4.6-1.4 8-5 8-10V5z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 4 5v6c0 5 3.4 8.6 8 10 4.6-1.4 8-5 8-10V5z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.assurance b { color: var(--ink); }

/* Utility */
.tabular { font-variant-numeric: tabular-nums; }
img { max-width: 100%; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--brass);
  color: var(--ink-deep); padding: 10px 16px; font-weight: 700; z-index: 100;
}
.skip:focus { left: 0; }
@media (max-width: 640px) {
  .site-header nav { gap: 14px; font-size: 13px; }
  section.band { padding: 44px 0; }
}
