/* ABRAR Corporate Services — abrar.group
   Brand tokens taken from the 2026 business card artwork:
   navy #1D2B5A, teal ramp #35688C→#52A0B3, mist #E2E4E6.
   Type mirrors the card: Montserrat (headings, tracked labels) + Source Sans 3
   (body — closest free analogue to the card's Acumin). */

:root {
  /* brand */
  --navy: #1d2b5a;
  --navy-deep: #16214a;
  --navy-soft: #2a3a6e;
  --teal-deep: #35688c;
  --teal: #46869f;
  --teal-light: #52a0b3;
  --mist: #e2e4e6;

  /* semantic surfaces */
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --bg-mist: var(--mist);
  --bg-invert: var(--navy);
  --surface: #ffffff;
  --border: #dfe3e8;
  --border-strong: #c3cad3;

  /* semantic text */
  --text: #1a2233;
  --text-muted: #55607a;
  --text-faint: #7c8698;
  --on-invert: #ffffff;
  --on-invert-muted: #b9c2d8;

  /* type */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;

  /* spacing rhythm (4/8) */
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2rem;
  --s5: 3rem;
  --s6: 4rem;
  --s7: 6rem;

  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(29, 43, 90, 0.06), 0 2px 8px rgba(29, 43, 90, 0.04);
  --shadow-md: 0 4px 12px rgba(29, 43, 90, 0.08), 0 12px 32px rgba(29, 43, 90, 0.06);

  --container: 1180px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  /* z-index scale */
  --z-nav: 100;
  --z-drawer: 200;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 var(--s2);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.35rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: 0; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 var(--s2); max-width: 68ch; }

a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--teal-light);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- layout primitives ---------- */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--s3);
}

@media (min-width: 768px) {
  .container { padding-inline: var(--s4); }
}

.section { padding-block: var(--s6); }

@media (min-width: 768px) {
  .section { padding-block: var(--s7); }
}

.section--alt { background: var(--bg-alt); }
.section--mist { background: var(--bg-mist); }

.section--invert {
  background: var(--navy);
  color: var(--on-invert);
}

.section--invert h2,
.section--invert h3 { color: var(--on-invert); }

.section--invert p { color: var(--on-invert-muted); }

/* Wide-tracked uppercase label — lifted straight from the business card. */
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin: 0 0 var(--s2);
  display: block;
}

.section--invert .eyebrow { color: var(--teal-light); }

.section-head { margin-bottom: var(--s5); max-width: 64ch; }
.section-head h2 { text-wrap: balance; }
.section-head p { color: var(--text-muted); font-size: 1.125rem; }
.section--invert .section-head p { color: var(--on-invert-muted); }

.rule {
  width: 56px;
  height: 3px;
  background: var(--teal-light);
  border: 0;
  margin: 0 0 var(--s3);
}

.grid { display: grid; gap: var(--s3); }

@media (min-width: 640px)  { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-drawer);
  background: var(--navy);
  color: #fff;
  padding: var(--s2) var(--s3);
  font-family: var(--font-display);
  font-weight: 600;
}

.skip-link:focus {
  left: var(--s2);
  top: var(--s2);
  color: #fff;
}

/* ---------- top bar + nav ---------- */

.topbar {
  background: var(--navy-deep);
  color: var(--on-invert-muted);
  font-size: 0.875rem;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s4);
  align-items: center;
  justify-content: center;
  padding-block: 0.6rem;
}

@media (min-width: 768px) {
  .topbar__inner { justify-content: flex-end; }
}

.topbar a {
  color: var(--on-invert-muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.25rem;
}

.topbar a:hover { color: #fff; }
.topbar svg { width: 15px; height: 15px; flex: none; }

.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  min-height: 72px;
}

.nav__logo {
  display: inline-flex;
  align-items: center;
  color: var(--navy);
  flex: none;
}

.nav__logo svg { width: 150px; height: auto; display: block; }

.nav__links {
  display: none;
  align-items: center;
  gap: var(--s3);
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 1024px) { .nav__links { display: flex; } }

.nav__links a {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
}

.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--teal-light);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease);
}

.nav__links a:hover::after,
.nav__links a[aria-current="true"]::after { transform: scaleX(1); }

.nav__links a[aria-current="true"] { color: var(--teal-deep); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 200ms var(--ease), color 200ms var(--ease),
              border-color 200ms var(--ease), transform 120ms var(--ease);
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--teal-deep);
  border-color: var(--teal-deep);
  color: #fff;
}

.btn--primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn--ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy);
}

.btn--outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn--outline:hover { background: var(--navy); color: #fff; }

.nav__cta { display: none; }
@media (min-width: 1024px) { .nav__cta { display: inline-flex; } }

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: -0.5rem;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--navy);
  cursor: pointer;
}

@media (min-width: 1024px) { .nav__toggle { display: none; } }

.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

.drawer {
  display: none;
  border-top: 1px solid var(--border);
  background: #fff;
}

.drawer[data-open="true"] { display: block; }

@media (min-width: 1024px) { .drawer { display: none !important; } }

.drawer ul {
  list-style: none;
  margin: 0;
  padding: var(--s2) 0 var(--s3);
}

.drawer a {
  display: block;
  padding: 0.9rem var(--s3);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
  border-bottom: 1px solid var(--bg-alt);
}

.drawer a:hover { background: var(--bg-alt); }
.drawer .btn { margin: var(--s3) var(--s3) 0; width: calc(100% - var(--s4)); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  padding-block: var(--s6);
}

@media (min-width: 768px) {
  .hero { padding-block: clamp(5rem, 11vw, 8.5rem); }
}

/* Oversized emblem echoing the card's watermark treatment. */
.hero__watermark {
  position: absolute;
  right: -14%;
  top: 50%;
  transform: translateY(-50%);
  width: min(620px, 78vw);
  opacity: 0.09;
  pointer-events: none;
  user-select: none;
}

@media (min-width: 1024px) { .hero__watermark { right: -4%; opacity: 0.13; } }

/* Keep the hero on the same left edge as every other section: the container
   sets the gutter, an inner cap keeps the measure readable. */
.hero__inner { position: relative; }

.hero__logo,
.hero__tagline,
.hero h1,
.hero__lede,
.hero__actions { max-width: 44rem; }

.hero__logo {
  width: min(340px, 76vw);
  height: auto;
  color: #fff;
  margin-bottom: var(--s4);
  display: block;
}

.hero h1 {
  color: #fff;
  margin-bottom: var(--s3);
  letter-spacing: -0.015em;
}

.hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 2.1vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: var(--s3);
}

.hero__lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: #d6dcea;
  max-width: 42ch;
  margin-bottom: var(--s4);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }

/* Stacked buttons of different label lengths look ragged; match them on
   narrow screens, let them size to content once they sit side by side. */
@media (max-width: 479px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
}

/* ---------- credential strip ---------- */

.creds {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--s3);
}

.creds__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2) var(--s5);
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.creds__list li {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-invert-muted);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.creds__list svg { width: 16px; height: 16px; color: var(--teal-light); flex: none; }

/* ---------- cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s3);
  height: 100%;
  transition: border-color 220ms var(--ease), box-shadow 220ms var(--ease),
              transform 220ms var(--ease);
}

.card:hover {
  border-color: var(--teal-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .card:hover { transform: none; }
}

.card__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(82, 160, 179, 0.12);
  color: var(--teal-deep);
  margin-bottom: var(--s2);
}

.card__icon svg { width: 22px; height: 22px; }

.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); margin-bottom: 0; font-size: 1rem; }

.card__num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--teal-light);
  display: block;
  margin-bottom: var(--s1);
}

/* ---------- split (overview / founder) ---------- */

.split { display: grid; gap: var(--s5); align-items: start; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1.15fr 0.85fr; gap: var(--s6); }
  .split--reverse > :first-child { order: 2; }
}

.factlist {
  border-top: 1px solid var(--border);
  margin: 0;
}

.factlist > div {
  display: grid;
  gap: 0.15rem;
  padding: var(--s2) 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 560px) {
  .factlist > div { grid-template-columns: 12.5rem 1fr; gap: var(--s2); }
}

.factlist dt {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-top: 0.2rem;
}

.factlist dd {
  margin: 0;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.factlist a { color: var(--teal-deep); }

/* ---------- timeline ---------- */

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--teal-light), var(--border));
}

.timeline li { position: relative; padding: 0 0 var(--s4) var(--s4); }
.timeline li:last-child { padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--teal-deep);
}

.timeline .year {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: block;
  margin-bottom: 0.25rem;
}

.timeline h3 { margin-bottom: 0.35rem; }
.timeline p { color: var(--text-muted); margin-bottom: 0; font-size: 1rem; }

/* ---------- values ---------- */

.value {
  padding: var(--s3) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 0.4rem;
}

@media (min-width: 768px) {
  .value { grid-template-columns: 15rem 1fr; gap: var(--s4); align-items: baseline; }
}

.value h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0;
  color: #fff;
}

.value p { margin: 0; color: var(--on-invert-muted); font-size: 1rem; }

/* ---------- services ---------- */

.service { display: grid; gap: var(--s2); }

.service__list {
  list-style: none;
  margin: var(--s1) 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.service__list li {
  position: relative;
  padding-left: 1.65rem;
  color: var(--text-muted);
  font-size: 1rem;
}

.service__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 1px;
  background: var(--teal-light);
  transform: rotate(45deg);
}

/* ---------- who we serve ---------- */

.serve {
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s2) var(--s3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal-light);
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.4;
}

.serve svg { width: 18px; height: 18px; color: var(--teal-deep); flex: none; }

/* ---------- why us ---------- */

.why { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }

.why li {
  display: flex;
  gap: var(--s2);
  align-items: flex-start;
  font-size: 1.05rem;
  color: var(--text);
}

.why svg { width: 22px; height: 22px; color: var(--teal-deep); flex: none; margin-top: 0.2rem; }

/* ---------- contact ---------- */

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--s4);
  box-shadow: var(--shadow-sm);
}

.contact-card h3 { display: flex; align-items: center; gap: 0.6rem; }
.contact-card h3 svg { width: 20px; height: 20px; color: var(--teal-deep); flex: none; }

.contact-card address {
  font-style: normal;
  color: var(--text-muted);
  margin-bottom: var(--s2);
}

.contact-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }

/* ---------- footer ---------- */

.footer {
  background: var(--navy-deep);
  color: var(--on-invert-muted);
  padding-block: var(--s5) var(--s3);
  font-size: 0.95rem;
}

.footer__grid { display: grid; gap: var(--s4); }

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; gap: var(--s5); }
}

.footer__logo { width: 190px; height: auto; color: #fff; margin-bottom: var(--s2); display: block; }

.footer h4 {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--s2);
}

.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.footer a { color: var(--on-invert-muted); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer p { color: var(--on-invert-muted); }

.footer__tagline {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal-light);
}

.footer__bottom {
  margin-top: var(--s4);
  padding-top: var(--s3);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s2);
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms var(--ease), transform 500ms var(--ease);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Content must be readable even if JS never runs. */
.no-js .reveal { opacity: 1; transform: none; }
