/* Mohammed Abdullah — Chartered Accountant
   Palette (brand board): navy #2B4C65, light blue #95B4CC, mid blue #6B8BA4,
   near-black #1D1C22, white. Tints derived from navy for surfaces/borders. */
:root {
  --navy: #2B4C65;
  --navy-dark: #213C4F;
  --light: #95B4CC;
  --mid: #6B8BA4;
  --ink: #1D1C22;
  --body: #4B5B68;
  --on-dark: #D5E2EC;
  --tint: #EEF3F7;
  --hover-light: #E3ECF3;
  --line: #C5D5E1;
  --line-card: #D3DFE8;
  --field: #9DB3C4;
  --line-dark: rgba(149, 180, 204, .35);
  --gutter: clamp(20px, 5vw, 64px);
  --serif: 'Cormorant Garamond', 'Cairo', serif;
  --sans: 'Jost', 'Cairo', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--navy); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--light); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; }

.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: #fff; padding: 8px 16px; }
.skip:focus { top: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; }
.narrow { max-width: 880px; }

/* Responsive visibility: design switches at 960px */
.mobile-only { display: none !important; }
@media (max-width: 959.98px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; }
}
html[lang="ar"] .only-en, html[lang="en"] .only-ar { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  font: inherit; font-size: 16px; font-weight: 600;
  text-decoration: none; border-radius: 2px; border: 0; cursor: pointer;
}
.btn-lg { min-height: 56px; padding: 0 40px; font-size: 18px; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--hover-light); color: var(--navy); }
.btn-outline { background: transparent; color: #fff; font-weight: 500; border: 1px solid rgba(255, 255, 255, .7); }
.btn-outline.btn-lg { padding: 0 32px; }
.btn-outline:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); border: 1px solid var(--navy); padding: 0 24px; }
.btn-ghost:hover { background: var(--tint); }

/* Placeholder text awaiting client details */
.ph { border-bottom: 1px dashed var(--light); }
.ph-box { display: inline-block; border: 1px dashed var(--mid); padding: 2px 10px; color: var(--ink); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; }

.bar { background: var(--navy); color: #fff; padding: 0 var(--gutter); border-bottom: 1px solid rgba(149, 180, 204, .3); }
.bar-in { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; }
.brand img { display: block; height: auto; }
.brand-mono { width: clamp(40px, 11vw, 52px); flex: none; }
.brand-ar { width: clamp(116px, 34vw, 170px); }
.brand-en { width: clamp(130px, 38vw, 210px); display: flex; flex-direction: column; gap: 8px; }
.brand-en img { width: 100%; }
.tagline { width: 100%; display: block; color: var(--on-dark); direction: ltr; }
.tagline text { font-size: 30px; font-weight: 300; font-family: 'Jost', sans-serif; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a { color: #fff; text-decoration: none; font-size: 16px; font-weight: 500; padding: 8px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--light); color: #fff; }
.bar-actions { display: flex; align-items: center; gap: 12px; }
.btn-lang {
  min-height: 44px; padding: 0 16px; background: transparent; color: #fff;
  border: 1px solid rgba(149, 180, 204, .6); border-radius: 2px;
  font-family: 'Cairo', 'Jost', sans-serif; font-size: 15px; cursor: pointer;
}
html[lang="ar"] .btn-lang { font-family: 'Jost', sans-serif; }
.btn-lang:hover { background: rgba(255, 255, 255, .08); }
.btn-menu {
  width: 44px; height: 44px; background: transparent; border: 1px solid rgba(149, 180, 204, .6); border-radius: 2px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; cursor: pointer; padding: 0;
}
.btn-menu span { width: 20px; height: 2px; background: #fff; }
.mobile-nav { border-top: 1px solid rgba(149, 180, 204, .3); padding: 8px 0 24px; }
.mobile-nav .wrap { display: flex; flex-direction: column; }
.mobile-nav a { color: #fff; text-decoration: none; font-size: 18px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid rgba(149, 180, 204, .2); }
@media (min-width: 960px) { .mobile-nav { display: none !important; } }

/* ---------- Shared section bits ---------- */
section { scroll-margin-top: 100px; }
.section { padding: clamp(64px, 8vw, 112px) var(--gutter); }
.tint { background: var(--tint); }
.dark { background: var(--navy); color: #fff; }
.intro { max-width: 680px; }
.eyebrow { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 500; color: var(--navy); }
.eyebrow span { width: 32px; height: 1px; background: var(--navy); flex: none; }
.eyebrow b { font-weight: 500; }
.eyebrow.on-dark { color: var(--on-dark); }
.eyebrow.on-dark span { background: var(--light); }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.2; color: var(--navy); margin: 16px 0 0; text-wrap: balance; }
h2.h2-lg { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.15; }
.lead { margin: 16px 0 0; color: var(--body); }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; padding: clamp(56px, 8vw, 112px) var(--gutter) 0; scroll-margin-top: 80px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.18; margin: 22px 0 0; color: #fff; text-wrap: balance; }
.hero-sub { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.7; color: var(--on-dark); max-width: 540px; margin: 24px 0 0; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 40px; }
.hero-plate {
  border: 1px solid rgba(149, 180, 204, .4);
  padding: clamp(32px, 4vw, 56px) clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; align-items: center; gap: 40px;
}
.plate-ar { width: min(100%, 300px); height: auto; display: block; }
.plate-en { width: min(100%, 340px); display: flex; flex-direction: column; gap: 8px; }
.plate-en img, .foot-en img { width: 100%; height: auto; display: block; }

.photo { position: relative; margin: 0; width: 100%; aspect-ratio: 4 / 5; justify-self: center; overflow: hidden; background: #DCE6EE; }
.photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-photo { max-width: 520px; }
.credit {
  position: absolute; left: 8px; bottom: 8px; direction: ltr;
  font: 11px/1.4 'Jost', sans-serif; color: #fff;
  background: rgba(29, 28, 34, .55); padding: 3px 8px; border-radius: 2px;
}
.credit a { color: #fff; }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0 48px; margin-top: clamp(48px, 6vw, 88px); }
.pillar { border-top: 1px solid rgba(149, 180, 204, .4); padding: 28px 0 clamp(36px, 5vw, 56px); }
.pillar-title { font-family: var(--serif); font-size: 26px; font-weight: 700; color: #fff; line-height: 1.3; }
.pillar p { margin: 8px 0 0; color: var(--on-dark); font-size: 16px; line-height: 1.6; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; margin-top: clamp(36px, 5vw, 56px); }
.service {
  background: #fff; border: 1px solid var(--line-card); border-top: 3px solid var(--navy);
  padding: 32px; display: flex; flex-direction: column; gap: 12px;
}
.service:hover { border-color: var(--navy); }
.num { font-size: 15px; font-weight: 500; color: var(--mid); letter-spacing: .05em; }
.service h3 { margin: 0; font-size: 25px; line-height: 1.3; color: var(--navy); }
.service p { margin: 0; color: var(--body); font-size: 16px; line-height: 1.65; flex: 1; }
.service a {
  margin-top: 12px; color: var(--navy); font-weight: 600; font-size: 16px; text-decoration: none;
  display: inline-flex; gap: 8px; align-items: center; min-height: 44px; align-self: flex-start;
}
.service a:hover { color: var(--ink); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: center; }
.portrait { max-width: 460px; }
.role { font-size: 18px; font-weight: 500; color: var(--body); margin-top: 6px; }
.about-body { margin: 24px 0 0; max-width: 560px; text-wrap: pretty; }
.creds { margin: 36px 0 0; display: grid; }
.creds > div { display: grid; grid-template-columns: minmax(120px, 200px) 1fr; gap: 20px; align-items: baseline; padding: 18px 0; border-top: 1px solid var(--line); }
.creds dt { font-weight: 500; color: var(--navy); }
.creds dd { margin: 0; }

/* ---------- Process ---------- */
.steps { list-style: none; padding: 0; margin: clamp(36px, 5vw, 56px) 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px 32px; }
.steps li { border-top: 2px solid var(--navy); padding-top: 24px; }
.step-num { font-family: 'Jost', sans-serif; font-size: 48px; font-weight: 300; line-height: 1; color: var(--mid); }
.steps h3 { margin: 20px 0 0; font-size: 24px; line-height: 1.3; color: var(--navy); }
.steps p { margin: 10px 0 0; color: var(--body); font-size: 16px; line-height: 1.65; }

/* ---------- FAQ ---------- */
#faq h2 { text-wrap: balance; }
.faqs { margin-top: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); }
.faqs details { border-top: 1px solid var(--line); }
.faqs summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 68px; padding: 16px 0; cursor: pointer;
  font-size: 19px; font-weight: 600; color: var(--navy); list-style: none;
}
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary i { flex: none; font-style: normal; font-size: 26px; font-weight: 300; color: var(--mid); line-height: 1; transition: transform .2s; }
.faqs details[open] summary i { transform: rotate(45deg); }
.faq-a { padding: 0 0 24px; max-width: 700px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: clamp(40px, 6vw, 88px); align-items: start; }
.dark h2 { color: #fff; }
.contact-intro { margin: 20px 0 0; color: var(--on-dark); max-width: 480px; }
.rows { margin-top: 36px; border-bottom: 1px solid var(--line-dark); }
.row { display: grid; grid-template-columns: minmax(110px, 170px) 1fr; gap: 20px; align-items: baseline; padding: 16px 0; border-top: 1px solid var(--line-dark); }
.row-label { color: var(--on-dark); font-size: 15px; }
.row-val { font-size: 19px; }
.row-val a { color: #fff; text-decoration: none; }
.row-val a:hover { color: var(--light); }
.row-val .ph, .row-val a.ph { color: #fff; }
.row-val .sep { color: var(--light); margin: 0 8px; }
.map { margin-top: 32px; aspect-ratio: 16 / 10; border: 1px solid var(--line-dark); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.card { background: #fff; color: var(--ink); padding: clamp(24px, 4vw, 44px); border-radius: 2px; }
.card h3 { margin: 0; font-size: 28px; color: var(--navy); }
#form { display: flex; flex-direction: column; gap: 22px; }
#form label { display: flex; flex-direction: column; gap: 8px; font-weight: 500; color: var(--navy); font-size: 15px; }
#form input, #form select, #form textarea {
  min-height: 52px; padding: 0 16px; border: 1px solid var(--field); border-radius: 2px;
  font: inherit; font-size: 17px; font-weight: 400; color: var(--ink); background: #fff; width: 100%; text-align: start;
}
#form select { padding: 0 12px; }
#form textarea { padding: 14px 16px; resize: vertical; }
#form input:focus, #form select:focus, #form textarea:focus { border-color: var(--navy); outline: 2px solid var(--light); }
#form [aria-invalid="true"] { border-color: #8A1F1F; }
.err { color: #8A1F1F; font-size: 15px; }
.thanks { padding: 24px 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.thanks:focus { outline: none; }
.thanks .rule { width: 40px; height: 2px; background: var(--navy); }
.thanks h3 { font-size: 32px; }
.thanks p { margin: 0; color: var(--body); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; padding: clamp(48px, 6vw, 72px) var(--gutter) clamp(32px, 4vw, 40px); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 28px; align-items: flex-start; }
.foot-ar { width: min(100%, 300px); height: auto; display: block; }
.foot-en { width: min(100%, 240px); display: flex; flex-direction: column; gap: 8px; }
.foot-nav { display: flex; flex-direction: column; gap: 4px; }
.foot-nav a { color: #fff; text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; align-self: flex-start; }
.foot-nav a:hover { color: var(--light); }
.foot-cta { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.foot-cta .btn { min-height: 52px; padding: 0 32px; font-size: 17px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-social a { color: #fff; }
.foot-social a:hover { color: var(--light); }
.copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 14px; color: var(--on-dark); }

/* ---------- Mobile sticky bar ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--navy); border-top: 1px solid rgba(149, 180, 204, .4);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: grid !important; grid-template-columns: 1fr 1.6fr; gap: 10px;
}
.mobile-bar .btn { min-height: 48px; padding: 0 12px; font-size: 16px; }
@media (min-width: 960px) { .mobile-bar { display: none !important; } }
@media (max-width: 959.98px) { .footer { padding-bottom: calc(clamp(32px, 4vw, 40px) + 72px); } }
