/* ==========================================================================
   Maatash International — design tokens & shared system
   Brand colours sampled directly from the company profile artwork.
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/sourceserif-var.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jbmono-var.woff2") format("woff2");
  font-weight: 400 600; font-style: normal; font-display: swap;
}

:root {
  /* brand */
  --navy-900: #031B37;
  --navy-800: #0A2A4E;
  --navy-700: #123863;
  --orange-600: #D9531E;
  --orange-500: #FB6600;
  --orange-400: #FF8A3D;
  --gold-500: #C9A227;

  /* neutrals — warm-biased, not pure grey */
  --ink-900: #1A1410;
  --ink-700: #4A3F38;
  --ink-500: #756A62;
  --ink-300: #A79C93;
  --paper-0: #FFFFFF;
  --paper-50: #FBF9F7;
  --paper-100: #F3EFEA;
  --paper-200: #E7E0D8;
  --line: #E2DAD0;

  /* semantic */
  --bg: var(--paper-50);
  --surface: var(--paper-0);
  --text: var(--ink-900);
  --text-muted: var(--ink-500);
  --accent: var(--orange-500);
  --accent-ink: var(--orange-600);
  /* Darker than --accent-ink specifically for small text on light ground —
     --accent-ink reads fine as an icon/border/large-text tone (3:1) but
     falls short of WCAG AA's 4.5:1 for normal-size text. */
  --accent-text: #B8410F;
  --brand: var(--navy-900);

  /* type */
  --f-display: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: "Source Serif", ui-serif, Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  /* rhythm */
  --gap-xs: 8px;  --gap-sm: 16px; --gap-md: 24px;
  --gap-lg: 40px; --gap-xl: 64px; --gap-2xl: 96px;
  --radius: 6px;
  --shadow-sm: 0 1px 2px rgba(3,27,55,.06), 0 4px 12px -6px rgba(3,27,55,.10);
  --shadow-md: 0 4px 8px rgba(3,27,55,.08), 0 16px 32px -12px rgba(3,27,55,.16);
  --container: 1180px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.prose { max-width: 68ch; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.scroll-x { overflow-x: auto; }

/* ---------- type scale ---------- */
h1, .h1 {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.02em;
  line-height: 1.06; text-wrap: balance;
  font-size: clamp(34px, 4.6vw, 56px);
}
h2, .h2 {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -0.015em;
  line-height: 1.14; text-wrap: balance;
  font-size: clamp(26px, 3.2vw, 38px);
}
h3, .h3 {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.25; text-wrap: balance;
  font-size: clamp(19px, 1.9vw, 23px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-display); font-weight: 700; font-size: 12.5px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 20px; height: 2px; background: var(--accent); border-radius: 2px; }
.lede { font-size: clamp(17px, 1.8vw, 20px); color: var(--text-muted); line-height: 1.6; }
.tagline {
  font-family: var(--f-serif); font-style: italic; font-weight: 400;
  font-size: clamp(18px, 2vw, 22px); color: var(--navy-800);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--f-display); font-weight: 600; font-size: 15px;
  white-space: nowrap; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); background: var(--paper-100); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
}
/* Frosted background lives on a pseudo-element rather than directly on
   .site-header: backdrop-filter on an actual ancestor creates a new CSS
   containing block for any position:fixed descendant (the mobile nav
   panel), which pins it to the ~76px header box instead of the viewport. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(251,249,247,.92); backdrop-filter: saturate(160%) blur(10px);
}
.header-bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand-mark { display: flex; align-items: center; color: var(--brand); flex: none; }
.brand-mark svg { height: 30px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-700);
  transition: background-color .15s ease, color .15s ease;
}
.main-nav a:hover { background: var(--paper-100); color: var(--brand); }
.main-nav a[aria-current="page"] { color: var(--accent-text); background: rgba(251,102,0,.09); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.call-chip {
  display: none; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 13.5px; font-weight: 600;
  color: var(--ink-700); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
}
.call-chip svg { width: 15px; height: 15px; color: var(--accent-ink); }
.nav-toggle {
  display: none; flex: none; width: 42px; height: 42px; border-radius: 8px;
  align-items: center; justify-content: center; background: transparent; border: 1px solid var(--line);
}
.nav-toggle svg { width: 20px; height: 20px; }
/* Driven by aria-expanded (the a11y source of truth) rather than the
   `hidden` attribute — svg elements don't reliably inherit `[hidden]`'s
   display:none across browsers the way HTML elements do. */
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .main-nav {
    position: fixed; inset: 76px 0 0 0; background: var(--surface);
    flex-direction: column; align-items: stretch; gap: 2px; padding: 18px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    overflow-y: auto;
  }
  .main-nav a { padding: 14px 16px; font-size: 16px; }
  .site-header.nav-open .main-nav { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn-primary span { display: none; }
  .header-actions .btn-primary { padding: 12px; }
}
@media (min-width: 700px) { .call-chip { display: inline-flex; } }

/* ---------- hero (diagonal split, echoes the profile cover) ---------- */
.hero {
  position: relative; background: var(--brand); color: #fff; overflow: clip;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding: 72px 0 88px; position: relative; z-index: 2;
}
.hero-copy { max-width: 640px; }
.hero-copy .h1 { margin: 14px 0 18px; }
.hero-copy .lede { color: #C7D3E1; max-width: 54ch; margin-bottom: 30px; }
.hero-copy .eyebrow { color: var(--orange-400); }
.hero-copy .eyebrow::before { background: var(--orange-400); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media {
  position: relative; z-index: 1;
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.hero-badge {
  position: absolute; left: 20px; bottom: -18px;
  background: #fff; padding: 8px 14px; border-radius: 8px;
  box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 10px;
}
.hero-badge img { height: 30px; width: auto; }
.hero-badge span { font-size: 11px; font-weight: 700; color: var(--ink-500); line-height: 1.3; }

@media (min-width: 880px) {
  .hero { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; padding: 92px 0 110px; }
  .hero::after {
    content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(100deg, var(--brand) 0%, var(--brand) 46%, transparent 62%);
  }
  .hero-media { clip-path: polygon(18% 0, 100% 0, 100% 100%, 0% 100%); }
}

/* ---------- section bands (the profile's own signature device) ---------- */
.band {
  background: linear-gradient(90deg, var(--orange-500) 0%, var(--orange-600) 46%, rgba(217,83,30,0) 100%);
}
.band-inner { display: flex; align-items: baseline; gap: 14px; padding: 15px 0; }
.band .index { font-family: var(--f-mono); font-size: 13px; font-weight: 700; color: rgba(255,255,255,.8); }
.band h2 { color: #fff; font-size: clamp(19px, 2.2vw, 25px); text-transform: uppercase; letter-spacing: .02em; text-shadow: 0 1px 2px rgba(3,27,55,.25); }

section.page-section { padding: 64px 0; }
section.page-section + section.page-section { padding-top: 0; }
.section-head { max-width: 62ch; margin-bottom: var(--gap-lg); }
.section-head h2 { margin: 12px 0 0; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: var(--gap-md); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D9CBBC; }
.card .icon {
  width: 46px; height: 46px; border-radius: 10px; background: rgba(251,102,0,.1);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .icon svg { width: 24px; height: 24px; color: var(--accent-ink); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 15px; }
.card ul { margin-top: 12px; }
.card li {
  position: relative; padding-left: 18px; font-size: 14.5px; color: var(--ink-700);
  margin-bottom: 7px; line-height: 1.5;
}
.card li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}

.card-navy { background: var(--navy-800); border-color: var(--navy-700); color: #fff; }
.card-navy p { color: #B9C6D6; }
.card-navy .icon { background: rgba(255,255,255,.1); }
.card-navy .icon svg { color: var(--orange-400); }

/* pillar card (services) */
.pillar {
  display: grid; grid-template-columns: 56px 1fr; gap: 18px;
  padding: 30px 0; border-bottom: 1px solid var(--line);
}
.pillar:first-of-type { padding-top: 0; }
.pillar:last-of-type { border-bottom: 0; }
.pillar .num {
  font-family: var(--f-mono); font-size: 14px; font-weight: 700; color: var(--accent-text);
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(251,102,0,.35);
  display: flex; align-items: center; justify-content: center;
}
.pillar h3 { font-size: clamp(20px, 2vw, 25px); margin-bottom: 6px; }
.pillar p.desc { color: var(--text-muted); margin-bottom: 14px; max-width: 62ch; }
.pillar ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 20px; }
.pillar li {
  position: relative; padding-left: 17px; font-size: 14.5px; color: var(--ink-700); line-height: 1.5;
}
.pillar li::before { content: "—"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }

/* industries */
.ind-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; text-align: left; box-shadow: var(--shadow-sm);
}
.ind-card .icon { width: 42px; height: 42px; border-radius: 9px; background: var(--paper-100); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.ind-card .icon svg { width: 22px; height: 22px; color: var(--brand); }
.ind-card h3 { font-size: 16.5px; margin-bottom: 5px; }
.ind-card p { font-size: 13.5px; color: var(--text-muted); }
.ind-card.featured { background: var(--navy-900); border-color: var(--navy-700); }
.ind-card.featured .icon { background: rgba(251,102,0,.16); }
.ind-card.featured .icon svg { color: var(--orange-400); }
.ind-card.featured h3, .ind-card.featured p { color: #fff; }
.ind-card.featured p { color: #B9C6D6; }

/* values (navy panel, gold ring — matches profile p5) */
.values-panel { background: var(--navy-900); color: #fff; border-radius: 14px; padding: 56px 40px; }
.value-item { text-align: center; }
.value-ring {
  width: 74px; height: 74px; border-radius: 50%; border: 1.5px solid var(--gold-500);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
  background: rgba(201,162,39,.08);
}
.value-ring svg { width: 30px; height: 30px; color: var(--gold-500); }
.value-item h3 { font-size: 16px; color: #fff; margin-bottom: 8px; }
.value-item p { font-size: 13.5px; color: #AEBBCC; line-height: 1.55; }

/* why-choose checklist */
.why-item { display: flex; gap: 14px; }
.why-item .tick {
  flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(251,102,0,.12);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.why-item .tick svg { width: 16px; height: 16px; color: var(--accent-ink); }
.why-item h3 { font-size: 16.5px; margin-bottom: 4px; }
.why-item p { font-size: 14.5px; color: var(--text-muted); }

/* stat / trust strip */
.trust-strip { display: flex; flex-wrap: wrap; gap: 14px 34px; align-items: center; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-700); }
.trust-item svg { width: 20px; height: 20px; color: var(--accent-ink); flex: none; }

/* client logo wall — each cell carries its own border (not a background-
   through-gap trick) so a partially-filled last row never leaves empty,
   background-colored grid tracks showing through. */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logo-cell {
  background: var(--surface); display: flex; align-items: center; justify-content: center;
  padding: 22px 18px; min-height: 96px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.logo-cell img { max-height: 36px; width: auto; max-width: 100%; filter: grayscale(1); opacity: .8; transition: filter .2s ease, opacity .2s ease; }
.logo-cell:hover img { filter: grayscale(0); opacity: 1; }
.logo-cell.text-only span { font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--ink-500); letter-spacing: .01em; }

/* office cards */
.office-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.office-card .map { height: 190px; border: 0; width: 100%; display: block; filter: grayscale(.15); }
.office-card .body { padding: 22px 24px; }
.office-card .flag { font-family: var(--f-mono); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; color: var(--accent-text); text-transform: uppercase; }
.office-card h3 { margin: 6px 0 10px; }
.office-card address { font-style: normal; color: var(--text-muted); font-size: 14.5px; line-height: 1.6; }

/* contact band (footer CTA) */
.contact-band { background: var(--navy-900); color: #fff; padding: 64px 0; position: relative; overflow: clip; }
.contact-band::before {
  content: ""; position: absolute; right: -8%; top: -30%; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(251,102,0,.18), transparent 70%);
}
.contact-grid { display: grid; gap: 30px; position: relative; z-index: 1; }
.contact-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.contact-method {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  transition: background-color .15s ease, border-color .15s ease;
}
.contact-method:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.24); }
.contact-method .ic { flex: none; width: 40px; height: 40px; border-radius: 50%; background: rgba(251,102,0,.18); display: flex; align-items: center; justify-content: center; }
.contact-method .ic svg { width: 19px; height: 19px; color: var(--orange-400); }
.contact-method .label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: #93A3B8; }
.contact-method .value { font-family: var(--f-mono); font-size: 15px; font-weight: 600; }

@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- footer ---------- */
.site-footer { background: #051224; color: #A9B7C8; padding: 52px 0 26px; }
.footer-grid { display: grid; gap: 36px; grid-template-columns: 1.3fr 1fr 1fr 1fr; }
.footer-brand svg { height: 28px; width: auto; color: #fff; }
.footer-brand p { margin-top: 14px; font-size: 14px; line-height: 1.6; max-width: 34ch; color: #8497AC; }
.footer-col h4 { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6C7D91; margin-bottom: 16px; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 14.5px; color: #C3CEDB; transition: color .15s ease; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16);
  display: flex; align-items: center; justify-content: center; transition: background-color .15s ease, border-color .15s ease;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-social svg { width: 16px; height: 16px; }
.footer-bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-size: 13px; color: #6C7D91;
}
.footer-bottom a:hover { color: #fff; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* whatsapp float */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
  transition: transform .15s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* page header (interior pages) */
.page-hero { background: var(--navy-900); color: #fff; padding: 56px 0 46px; position: relative; overflow: clip; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--orange-500), transparent 60%);
  opacity: .16; pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { margin-top: 12px; }
.page-hero p.lede { color: #C7D3E1; margin-top: 16px; max-width: 60ch; }
.crumb { font-size: 13px; color: #8FA4BE; }
.crumb a:hover { color: #fff; }

/* misc */
.divider { height: 1px; background: var(--line); border: 0; margin: var(--gap-xl) 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--paper-100); font-size: 12.5px; font-weight: 600; color: var(--ink-700); }
figure { margin: 0; }
.ratio-photo { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-200); }
.ratio-photo img { width: 100%; height: 100%; object-fit: cover; }

table.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.spec th, table.spec td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.spec th { font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
