/* ═══════════════════════════════════════════════════════════════
   MPHAHLELE UNLIMITED — styles.css  v3  Minimal Corporate
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. VARIABLES ─────────────────────────────────────────────── */
/* ── THEME TOKENS ──────────────────────────────────────────────
   Light is the default. Dark is applied via [data-theme="dark"]
   on <html>, set by the toggle in the navbar (see script.js).

   --white and the --ink-* scale are SEMANTIC, not literal:
     --white  = page/card surface        --ink    = primary text
     --ink-03 = alternate section bg     --ink-70 = body text
     --ink-07 = subtle fill              --ink-40 = muted text
     --ink-15 = borders / hairlines
   Both sides flip together, so every rule written against them
   works in either theme without duplication.
─────────────────────────────────────────────────────────────── */
:root {
  /* Brand — taken from the logo's orange→red phoenix gradient.
     These do NOT flip; the accent is the constant in both themes. */
  --accent:        #E63C1E;  /* gradient midpoint */
  --accent-dark:   #C93318;  /* deep red, lower-right of mark */
  --accent-light:  #F97316;  /* orange, upper-left of mark */
  --accent-faint:  rgba(230,60,30,.06);
  --on-accent:     #FFFFFF;  /* text/icons sitting on an accent fill */
  /* Small accent TEXT only. The brand red is 4.2:1 on white — just under
     AA — so small labels use the deeper stop. Fills keep --accent. */
  --accent-text:   #C93318;

  /* Light theme — warm neutrals keyed to the logo */
  --white:   #FFFFFF;
  --ink-03:  #FAF7F5;
  --ink-07:  #F2EDE8;
  --ink-15:  #DFD3CA;
  --ink-40:  #7A6252;
  --ink-70:  #3A2418;
  --ink:     #0F0A07;

  /* Typography */
  --font-display: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --font-body:    'DM Sans', sans-serif;

  /* Spacing */
  --section-py: clamp(3.25rem, 5.5vw, 5.5rem);
  --container:  1200px;

  /* Radius — rectilinear */
  --radius-xs: 0;
  --radius-sm: 0;
  --radius-md: 2px;
  --radius-lg: 2px;

  /* Transitions */
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms;
  --t-med:  280ms;

  color-scheme: light;
}

/* Dark theme — same warm hue family, inverted lightness */
[data-theme="dark"] {
  --white:   #14100D;
  --ink-03:  #1A1512;
  --ink-07:  #221C18;
  --ink-15:  #382F28;
  --ink-40:  #A08D7E;
  --ink-70:  #D5CAC2;
  --ink:     #F7F3F0;

  --accent:       #F2542D;  /* lifted slightly for contrast on dark */
  --accent-dark:  #FF6A3D;
  --accent-faint: rgba(242,84,45,.10);
  --accent-text:  #F2542D;  /* already 5.5:1 on the dark surface */

  color-scheme: dark;
}

/* ── 2. RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background var(--t-med) var(--ease), color var(--t-med) var(--ease);
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
select, input, textarea { font: inherit; }

/* ── 3. UTILITY ───────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding-block: var(--section-py); position: relative; }

/* Visually hidden but still in the DOM and the a11y tree.
   Used for the contact form honeypot — deliberately not display:none,
   which bots are known to detect and skip. */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Section typography */
.section-eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .65rem;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.9vw, 2.3rem);
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink);
  margin-bottom: 1rem;
  letter-spacing: -.005em;
}
.section-sub {
  font-size: .975rem;
  color: var(--ink-40);
  max-width: 52ch;
  margin-bottom: 2.25rem;
  line-height: 1.8;
}
.section-header { text-align: left; margin-bottom: 2.5rem; max-width: 60ch; }
.section-header .section-sub { margin-bottom: 0; }

/* ── 4. BUTTONS ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .78rem 1.6rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.btn i { width: 15px; height: 15px; }

.btn--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.btn--primary:hover {
  background: var(--accent-dark);
}

.btn--ghost {
  background: transparent;
  color: var(--ink-70);
  border: 1px solid var(--ink-15);
}
.btn--ghost:hover { border-color: var(--ink-40); color: var(--ink); }

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}
.btn--outline:hover { background: var(--accent); color: var(--on-accent); }

.btn--sm { padding: .6rem 1.2rem; font-size: .825rem; }
.btn--full { width: 100%; justify-content: center; }

/* ── 5. ANIMATIONS ────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal[data-delay="80"]  { transition-delay: 40ms; }
.reveal[data-delay="100"] { transition-delay: 50ms; }
.reveal[data-delay="120"] { transition-delay: 60ms; }
.reveal[data-delay="160"] { transition-delay: 80ms; }
.reveal[data-delay="240"] { transition-delay: 120ms; }

/* Hero entrance */
.fade-up { animation: fadeUp .4s var(--ease) .05s both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── 6. NAVBAR ────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: background var(--t-med) var(--ease),
              padding var(--t-med) var(--ease),
              box-shadow var(--t-med);
}
.navbar.scrolled {
  background: var(--white);
  padding: .8rem 0;
  box-shadow: 0 1px 0 var(--ink-15);
}

.nav-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo { display: flex; align-items: center; gap: .75rem; }
.logo-image { width: auto; height: 2.4rem; flex-shrink: 0; object-fit: contain; }
.logo-text {
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.logo-text em { font-style: normal; color: var(--accent); }

/* .icon is added by renderLocalIcons() once an icon is drawn; the attribute
   selectors cover the moment before that (and icons Lucide replaces itself). */
i[data-lucide], i[data-icon], i.icon { display: inline-flex; align-items: center; justify-content: center; }
i[data-lucide] svg, i[data-icon] svg, i.icon svg { width: 100%; height: 100%; display: block; }

.nav-links { display: flex; align-items: center; gap: .15rem; }
.nav-link {
  position: relative;
  padding: .45rem .8rem;
  font-size: .85rem;
  font-weight: 400;
  color: var(--ink-40);
  transition: color var(--t-fast);
  letter-spacing: .01em;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: .8rem; right: .8rem; bottom: .1rem;
  height: 1px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--t-fast);
}
.nav-link.active::after { opacity: 1; }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--accent); }

.nav-cta {
  margin-left: .5rem;
  padding: .5rem 1.2rem;
  border-radius: var(--radius-xs);
  font-size: .85rem;
  font-weight: 500;
  background: var(--accent);
  color: var(--on-accent) !important;
  transition: background var(--t-fast);
  letter-spacing: .01em;
}
.nav-cta:hover { background: var(--accent-dark); }
.nav-cta::after { display: none; }

/* Theme toggle — shows the icon of the theme it switches TO */
.theme-toggle {
  width: 2.1rem; height: 2.1rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  margin-left: .5rem;
  border: 1px solid var(--ink-15);
  border-radius: var(--radius-xs);
  color: var(--ink-40);
  background: none;
  transition: color var(--t-fast), border-color var(--t-fast);
}
/* Lucide swaps the <i> for an <svg>, keeping the class — target both */
.theme-toggle i,
.theme-toggle > svg { width: 15px; height: 15px; }
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle .icon-dark  { display: none; }
[data-theme="dark"] .theme-toggle .icon-dark  { display: inline-flex; }
[data-theme="dark"] .theme-toggle .icon-light { display: none; }

.hamburger { display: none; flex-direction: column; gap: 5px; padding: .25rem; }
.hamburger span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: all var(--t-med) var(--ease);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── 7. SECTION BACKGROUNDS ───────────────────────────────────── */
.about, .services, .divisions, .why, .projects, .contact, .footer {
  background: var(--white);
}
.divisions { background: var(--ink-03); }
.contact   { background: var(--ink-03); }
.footer    { background: var(--ink-07); }

/* ── 8. HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: 78svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8.5rem;
  padding-bottom: 4.5rem;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
  max-width: var(--container);
  margin-inline: auto;
  position: relative;
}
.hero::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--ink-03);
  z-index: -1;
}

.hero-content { max-width: 860px; }

.hero-badge {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-body);
  font-size: .7rem;
  font-weight: 500;
  color: var(--ink-40);
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 2.25rem;
}
.hero-badge::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 4rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 1.75rem;
  letter-spacing: -.01em;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--accent);
}

.hero-sub {
  font-size: 1rem;
  color: var(--ink-70);
  max-width: 54ch;
  margin-bottom: 2.25rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── 9. ABOUT ─────────────────────────────────────────────────── */
.about .section-title { color: var(--ink); }

/* Two-column editorial layout: heading left, narrative right */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.about-heading .section-title { margin-bottom: 0; }
.about-content { max-width: 62ch; }

.about-body {
  font-size: 1.02rem;
  color: var(--ink-70);
  margin-bottom: 1.25rem;
  line-height: 1.82;
}

.about-pillars {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 1px;
  background: var(--ink-15);
  border-top: 1px solid var(--ink-15);
}
.about-pillars li {
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  padding: 2.25rem 2.25rem 0;
}
.about-pillars li:first-child { padding-left: 0; }
.about-pillars li:last-child  { padding-right: 0; }

.pillar-icon {
  width: auto; height: auto;
  display: flex;
  align-items: center;
  color: var(--accent);
  margin-bottom: .35rem;
}
.pillar-icon i { width: 18px; height: 18px; }
.about-pillars li strong {
  display: block;
  font-weight: 600;
  font-size: .925rem;
  color: var(--ink);
  line-height: 1.4;
}
.about-pillars li p { font-size: .85rem; color: var(--ink-40); margin: 0; line-height: 1.65; }

/* ── 10. SERVICES ─────────────────────────────────────────────── */
.services .section-title { color: var(--ink); }

/* Gap-as-border technique: container background shows through 1px gaps */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-15);
  border: 1px solid var(--ink-15);
}

.service-category-row {
  grid-column: 1 / -1;
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
}
.service-category-row::before,
.service-category-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink-15);
}
.service-category-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink-40);
  white-space: nowrap;
}
.service-category-tag i { width: 11px; height: 11px; }

.service-card {
  background: var(--white);
  border: none;
  border-radius: 0;
  padding: 2rem 1.75rem 2.25rem;
  transition: background var(--t-med) var(--ease);
  position: relative;
}
.service-card::before { display: none; }
.service-card:hover { transform: none; box-shadow: none; background: var(--ink-03); }

.card-icon-wrap {
  width: 2.4rem; height: 2.4rem;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--ink-15);
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  color: var(--accent);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.card-icon-wrap i { width: 17px; height: 17px; }
.card-icon-wrap--logistics { color: var(--ink-40); }
.service-card:hover .card-icon-wrap {
  background: var(--accent);
  color: var(--on-accent);
  border-color: var(--accent);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: .7rem;
  letter-spacing: 0;
}
.service-card p {
  font-size: .865rem;
  color: var(--ink-40);
  line-height: 1.72;
  margin-bottom: 1.25rem;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--accent-text);
  border-bottom: 1px solid transparent;
  padding-bottom: .15rem;
  transition: border-color var(--t-fast);
}
.card-link i { width: 13px; height: 13px; }
.card-link:hover { border-bottom-color: var(--accent); }

/* ── 11. DIVISIONS ────────────────────────────────────────────── */
.divisions .section-title { color: var(--ink); }
.divisions .section-eyebrow { color: var(--accent); }
.divisions::before { display: none; }

.divisions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.division-card {
  background: var(--white);
  border: 1px solid var(--ink-15);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  transition: border-color var(--t-med);
  position: relative;
}
.division-card:hover { border-color: var(--ink-40); }
.division-card--tech    { border-top: 3px solid var(--accent); }
.division-card--logistics { border-top: 3px solid var(--ink-40); }

.division-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.division-icon-badge {
  width: 2.75rem; height: 2.75rem;
  display: grid;
  place-items: center;
  background: var(--accent-faint);
  border: 1px solid rgba(201,51,24,.1);
  border-radius: var(--radius-md);
  color: var(--accent);
}
.division-icon-badge--logistics {
  background: var(--ink-07);
  border-color: var(--ink-15);
  color: var(--ink-70);
}
.division-icon-badge i { width: 18px; height: 18px; }

.division-tag {
  font-family: var(--font-body);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-40);
  margin-bottom: .3rem;
}
.division-card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -.005em;
}
.division-body {
  color: var(--ink-40);
  font-size: .9rem;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}
.division-features {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 2rem;
}
.division-features li {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-size: .865rem;
  color: var(--ink-70);
}
.division-features li i {
  width: 13px; height: 13px;
  color: var(--accent);
  flex-shrink: 0;
}
.division-card--logistics .division-features li i { color: var(--ink-40); }

/* ── 12. WHY CHOOSE US ────────────────────────────────────────── */
.why .section-title { color: var(--ink); }
.why-bg-shape { display: none; }

/* Gap-as-border for why grid */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--ink-15);
  border: 1px solid var(--ink-15);
}

.why-card {
  background: var(--white);
  border: none;
  border-radius: 0;
  padding: 2.5rem 2rem;
  text-align: left;
  transition: background var(--t-med) var(--ease);
  position: relative;
  overflow: hidden;
}
.why-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
}
.why-card:hover { transform: none; box-shadow: none; background: var(--ink-03); }
.why-card:hover::before { opacity: 1; }

.why-icon {
  width: 2.25rem; height: 2.25rem;
  margin: 0 0 1.25rem;
  display: grid;
  place-items: center;
  color: var(--accent);
  border-radius: 0;
  background: transparent;
  border: none;
}
.why-icon i { width: 20px; height: 20px; }
.why-card:hover .why-icon { background: transparent; border-color: transparent; }

.why-card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: .7rem;
  letter-spacing: 0;
}
.why-card p { font-size: .85rem; color: var(--ink-40); line-height: 1.72; }

/* ── 13. PROJECTS ─────────────────────────────────────────────── */
.projects .section-title { color: var(--ink); }

/* ── PROJECT CARDS (compact list) ───────────────────────────────── */
.projects-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--ink-15);
}

.project-card {
  display: grid;
  grid-template-columns: 2.5rem 1fr auto auto;
  gap: 2rem;
  align-items: center;
  padding: 1.6rem 0;
  border: none;
  border-bottom: 1px solid var(--ink-15);
  background: none;
  text-align: left;
  cursor: pointer;
  width: 100%;
  position: relative;
  color: inherit;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: 0 -2.5rem;
  background: var(--ink-03);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
}
.project-card:hover::before,
.project-card:focus-visible::before { opacity: 1; }
.project-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.project-card__num {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink-40);
  letter-spacing: .1em;
  position: relative;
}

.project-card__info {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

.project-card__title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -.005em;
  transition: color var(--t-fast);
}
.project-card:hover .project-card__title,
.project-card:focus-visible .project-card__title { color: var(--accent); }

.project-card__type {
  font-family: var(--font-body);
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-40);
  white-space: nowrap;
  padding-left: 1rem;
  border-left: 1px solid var(--ink-15);
}

.project-card__domain {
  font-size: .75rem;
  color: var(--ink-40);
  letter-spacing: .03em;
  position: relative;
  transition: color var(--t-fast);
}
.project-card:hover .project-card__domain,
.project-card:focus-visible .project-card__domain { color: var(--accent); }

.project-card__cta {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-40);
  white-space: nowrap;
  position: relative;
  transition: color var(--t-fast);
}
.project-card:hover .project-card__cta,
.project-card:focus-visible .project-card__cta { color: var(--accent); }

.project-card__arrow {
  width: 1.9rem; height: 1.9rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink-15);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.project-card__arrow i { width: 14px; height: 14px; }
.project-card:hover .project-card__arrow,
.project-card:focus-visible .project-card__arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

/* ── CASE STUDY GRID (reused in modals) ─────────────────────────── */
.project-case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink-15);
  border: 1px solid var(--ink-15);
  margin-bottom: 1.5rem;
}
.project-case {
  background: var(--white);
  padding: 1.75rem;
}
.project-case__label {
  font-family: var(--font-body);
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-text);
  padding-bottom: .65rem;
  margin-bottom: .9rem;
  border-bottom: 1px solid var(--ink-15);
}
.project-case__text {
  font-size: .875rem;
  color: var(--ink-70);
  line-height: 1.75;
}

/* ── PROJECT MODAL ───────────────────────────────────────────────── */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(15,10,7,.72);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) var(--ease), visibility var(--t-med);
}
.project-modal.active {
  opacity: 1;
  visibility: visible;
}
.project-modal__panel {
  background: var(--white);
  border: 1px solid var(--ink-15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  transform: translateY(20px);
  transition: transform var(--t-med) var(--ease);
}
.project-modal.active .project-modal__panel { transform: translateY(0); }

.project-modal__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.project-modal__meta {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.project-modal__num {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  color: var(--ink-40);
  letter-spacing: .1em;
  padding-top: .5rem;
  flex-shrink: 0;
}
.project-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.005em;
  line-height: 1.3;
  margin-bottom: .5rem;
}
.project-modal__type {
  font-family: var(--font-body);
  font-size: .63rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-40);
}
.project-modal__controls {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.project-modal__close {
  width: 2.25rem; height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink-15);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--ink-40);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  flex-shrink: 0;
}
.project-modal__close i { width: 16px; height: 16px; }
.project-modal__close:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

.project-modal__domain {
  font-size: .75rem;
  color: var(--accent-text);
  letter-spacing: .05em;
  margin-bottom: 1.75rem;
}
.project-modal__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--ink-15);
}
.project-modal__tags span {
  font-size: .68rem;
  font-weight: 500;
  color: var(--ink-40);
  padding: .25rem .6rem;
  background: var(--ink-07);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* btn--sm for modal */
.btn--sm {
  padding: .5rem 1rem;
  font-size: .8rem;
  gap: .4rem;
}

/* ── 15. CONTACT ──────────────────────────────────────────────── */
.contact .section-eyebrow { color: var(--accent); }
.contact .section-title { color: var(--ink); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 4rem;
  align-items: start;
}
.contact-intro {
  color: var(--ink-70);
  font-size: .925rem;
  line-height: 1.85;
  margin-bottom: 2.25rem;
  max-width: 36ch;
}
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-details li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 2.1rem; height: 2.1rem;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 1px solid var(--ink-15);
  border-radius: var(--radius-sm);
  color: var(--accent);
}
.contact-icon i { width: 14px; height: 14px; }
.contact-details strong {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-40);
  margin-bottom: .25rem;
  font-weight: 500;
}
.contact-details p { color: var(--ink-70); font-size: .875rem; margin: 0; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--ink-15);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-40);
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon {
  position: absolute;
  left: 1rem;
  width: 14px; height: 14px;
  color: var(--ink-40);
  pointer-events: none;
  transition: color var(--t-fast);
}
.input-icon--top { top: 1rem; align-self: flex-start; }
.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  width: 100%;
  padding: .8rem 1rem .8rem 2.5rem;
  background: var(--ink-03);
  border: 1px solid var(--ink-15);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-size: .875rem;
  transition: border-color var(--t-fast), background var(--t-fast);
  resize: vertical;
}
.input-wrap input::placeholder,
.input-wrap textarea::placeholder { color: var(--ink-40); opacity: .7; }
.input-wrap select option { background: var(--white); color: var(--ink); }
.input-wrap input:focus,
.input-wrap select:focus,
.input-wrap textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}
.input-wrap:focus-within .input-icon { color: var(--accent); }
.input-wrap--textarea { align-items: flex-start; }
.form-error { font-size: .76rem; color: var(--accent-text); min-height: 1rem; }
.input-wrap.error input,
.input-wrap.error select,
.input-wrap.error textarea { border-color: var(--accent); }

.form-consent {
  font-size: .76rem;
  line-height: 1.6;
  color: var(--ink-40);
  margin-top: -.35rem;
}
.form-consent a { color: var(--accent-text); border-bottom: 1px solid transparent; }
.form-consent a:hover { border-bottom-color: var(--accent-text); }

/* Submission result banners — success and failure share a base */
.form-note {
  display: none;
  align-items: center;
  gap: .7rem;
  padding: 1rem 1.25rem;
  background: var(--ink-03);
  border: 1px solid var(--ink-15);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius-md);
  color: var(--ink-70);
  font-size: .85rem;
}
.form-note.visible { display: flex; }
.form-note i { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent); }
/* Failure is distinguished by weight, not a new hue — the palette has no
   dedicated error colour and the brand red already reads as alert. */
.form-note--error {
  border-left-width: 3px;
  background: var(--ink-07);
  color: var(--ink);
}

/* ── 16. FOOTER ───────────────────────────────────────────────── */
.footer-top {
  padding: 3.5rem 0 2.5rem;
  position: relative;
}
.footer-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--ink-15);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}
.footer-tagline {
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--ink-40);
  line-height: 1.8;
  max-width: 28ch;
}
.footer .logo-text { color: var(--ink); }
.footer .logo-text em { color: var(--accent); }

.social-links { display: flex; gap: .5rem; margin-top: 1.5rem; }
.social-links a {
  width: 1.9rem; height: 1.9rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--ink-15);
  color: var(--ink-40);
  transition: border-color var(--t-fast), color var(--t-fast);
}
.social-links a i,
.social-links a svg { width: 13px; height: 13px; }
.social-links a:hover { border-color: var(--accent); color: var(--accent); }

.footer-col h5 {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink-40);
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--ink-15);
}
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a {
  font-size: .85rem;
  color: var(--ink-70);
  transition: color var(--t-fast);
}
.footer-col ul li a:hover { color: var(--accent); }

.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-size: .825rem;
  color: var(--ink-70);
}
.footer-contact-list li i { width: 12px; height: 12px; color: var(--accent); flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid var(--ink-15);
  padding: 1.5rem 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p { font-size: .78rem; color: var(--ink-40); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a {
  font-size: .78rem;
  color: var(--ink-40);
  transition: color var(--t-fast);
}
.footer-legal a:hover { color: var(--accent); }

/* ── 17. LEGAL PAGES (privacy, terms) ─────────────────────────── */
/* Legal pages give the navbar an opaque surface from the top rather
   than waiting for the .scrolled class. */
.navbar--solid {
  background: var(--white);
  box-shadow: 0 1px 0 var(--ink-15);
}

.legal-page { background: var(--white); }

.legal-hero {
  background: var(--ink-03);
  border-bottom: 1px solid var(--ink-15);
  padding: 8.5rem 0 3rem;
}
.legal-hero .section-eyebrow { color: var(--accent); }
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
  letter-spacing: -.01em;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--accent);
  margin-bottom: 1.5rem;
}
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--ink-40);
}
.legal-meta span strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: none;
  font-size: .85rem;
  margin-top: .3rem;
}

.legal-body { padding-block: var(--section-py); }
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 4rem;
  align-items: start;
}

/* Sticky table of contents */
.legal-toc {
  position: sticky;
  top: 7rem;
  border-top: 1px solid var(--ink-15);
  padding-top: 1.25rem;
}
.legal-toc h2 {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--ink-40);
  margin-bottom: 1rem;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: flex;
  gap: .6rem;
  font-size: .82rem;
  line-height: 1.5;
  color: var(--ink-40);
  transition: color var(--t-fast);
}
.legal-toc a::before {
  content: counter(toc) '.';
  color: var(--ink-15);
  flex-shrink: 0;
}
.legal-toc a:hover { color: var(--accent); }

/* Document content */
.legal-content { max-width: 68ch; }
.legal-intro {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--ink-70);
  padding-bottom: 2.5rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--ink-15);
}
.legal-section { margin-bottom: 2.75rem; scroll-margin-top: 7rem; }
.legal-section:last-child { margin-bottom: 0; }
.legal-section h2 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--ink-15);
}
.legal-section h3 {
  font-family: var(--font-display);
  font-size: .95rem;
  font-weight: 700;
  color: var(--ink);
  margin: 1.75rem 0 .6rem;
}
.legal-section p {
  font-size: .925rem;
  line-height: 1.85;
  color: var(--ink-70);
  margin-bottom: 1rem;
}
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin: 0 0 1.25rem;
}
.legal-section ul li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .925rem;
  line-height: 1.75;
  color: var(--ink-70);
}
.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .75em;
  width: .5rem;
  height: 1px;
  background: var(--accent);
}
.legal-section a { color: var(--accent-text); border-bottom: 1px solid transparent; }
.legal-section a:hover { border-bottom-color: var(--accent); }

/* Callout for items the business must confirm */
.legal-note {
  background: var(--ink-03);
  border-left: 2px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}
.legal-note p {
  font-size: .875rem;
  color: var(--ink-70);
  margin: 0;
}
.legal-note strong { color: var(--ink); }

/* Contact block closing each document */
.legal-section ul.legal-contact {
  margin: 1.25rem 0 0;
  border-top: 1px solid var(--ink-15);
  padding-top: 1.25rem;
  gap: .65rem;
}
.legal-section ul.legal-contact li {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding-left: 0;
  font-size: .9rem;
  color: var(--ink-70);
}
/* Icons replace the accent dash used by ordinary list items */
.legal-section ul.legal-contact li::before { display: none; }
.legal-section ul.legal-contact li i {
  width: 14px; height: 14px;
  color: var(--accent);
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .legal-toc { position: static; }
  .legal-hero { padding-top: 8rem; }
}

/* ── 18. FLOATING BUTTONS ─────────────────────────────────────── */
.fab {
  position: fixed;
  width: 2.9rem; height: 2.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  z-index: 900;
  transition: box-shadow var(--t-fast);
  box-shadow: 0 1px 8px rgba(0,0,0,.22);
}
.fab i { width: 19px; height: 19px; }
.fab svg { width: 19px; height: 19px; }
.fab:hover { box-shadow: 0 3px 14px rgba(0,0,0,.32); }

.fab--whatsapp { bottom: 2rem; right: 2rem; background: #25D366; color: var(--on-accent); }

.fab--top {
  bottom: 5.5rem; right: 2rem;
  background: var(--ink-70);
  color: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}
.fab--top.visible { opacity: 1; pointer-events: all; }

/* ── 19. RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .about-pillars { grid-template-columns: 1fr 1fr; }
  .about-pillars li { padding: 1.75rem; }
  .about-pillars li:first-child { padding-left: 0; }
  .about-pillars li:last-child  { padding-right: 0; }
  .project-card { grid-template-columns: 2rem 1fr auto; gap: 1.25rem; }
  .project-case-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(80vw, 300px);
    height: 100dvh;
    background: var(--white);
    border-left: 1px solid var(--ink-15);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    gap: 0;
    transition: right var(--t-med) var(--ease);
    box-shadow: -12px 0 40px rgba(0,0,0,.18);
    overflow-y: auto;
  }
  .nav-links.open { right: 0; }
  .nav-link {
    color: var(--ink-70);
    font-size: .95rem;
    padding: .8rem .5rem;
    width: 100%;
    border-bottom: 1px solid var(--ink-15);
  }
  .nav-link:hover { color: var(--accent); background: none; }
  .nav-link::after { display: none; }
  .nav-cta { margin: 1.25rem 0 0; }
  .theme-toggle { margin: 1.25rem 0 0; }

  .hero { padding-bottom: 3.5rem; }

  .about-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .about-pillars { grid-template-columns: 1fr; gap: 1px 0; }
  .about-pillars li { padding: 1.5rem 0; }
  .about-pillars li:first-child { padding-left: 0; }
  .about-pillars li:last-child  { padding-right: 0; }

  .services-grid { grid-template-columns: 1fr; }
  .divisions-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .project-card { grid-template-columns: 1fr auto; gap: 1rem; padding: 1.35rem 0; }
  .project-card__num { display: none; }
  .project-card__domain { display: none; }
  .project-modal__panel { padding: 1.5rem; }
  .project-case-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-headline { letter-spacing: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 1.75rem 1.25rem; }
  .division-card { padding: 1.75rem; }
}
