/* ============================================================
   MAS Consultancy — Theme 2 "Editorial"
   A premium, world-class look: ivory paper, deep ink green,
   champagne gold, oversized Fraunces serif, hairline rules,
   generous whitespace. Same HTML structure & JS hooks as v1.
   ============================================================ */

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

:root {
  --paper: #faf8f2;
  --paper-warm: #f3efe4;
  --white: #ffffff;
  --ink: #14201a;
  --ink-soft: #3d4a42;
  --ink-mute: #7a857d;
  --line: #e4ddcd;
  --line-dark: rgba(255,255,255,.14);
  --green-950: #0a1a12;
  --green-900: #0e2418;
  --green-800: #16382a;
  --green-700: #1d4a32;
  --green-600: #2e7d4f;
  --green-100: #e3eee6;
  --gold: #b18f3e;
  --gold-light: #d8bd7f;
  --gold-soft: #f0e6cc;
  --shadow-sm: 0 2px 14px rgba(20,32,26,.06);
  --shadow-md: 0 14px 40px rgba(20,32,26,.10);
  --shadow-lg: 0 30px 70px rgba(20,32,26,.16);
  --radius: 18px;
  --radius-lg: 28px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --nav-height: 76px;
  --max-width: 1280px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 12px); }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }
::selection { background: var(--gold-light); color: var(--green-950); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--green-900); color: #fff; padding: 10px 18px;
  border-radius: 999px; font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 860px; }
.section { padding: 96px 0; position: relative; }
.section-slim { padding: 64px 0; }
.section-alt { background: var(--paper-warm); }
.section-dark {
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(46,125,79,.28), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(177,143,62,.16), transparent 60%),
    linear-gradient(160deg, var(--green-900) 0%, var(--green-950) 100%);
  color: #fff;
}
.center { text-align: center; margin-top: 48px; }

.section-head { max-width: 780px; margin: 0 auto 64px; text-align: center; }
.section-head::before {
  display: block; font-family: var(--font-display); font-style: italic;
  font-size: 1rem; color: var(--gold); margin-bottom: 10px; letter-spacing: .05em;
}
#about .section-head::before { content: "01 — Who we are"; }
#firms .section-head::before { content: "02 — The group"; }
#services .section-head::before { content: "03 — What we do"; }
#concerns .section-head::before { content: "04 — Challenges we solve"; }
#eprocurement .section-head::before { content: "05 — E-procurement"; }
#webdev .section-head::before { content: "06 — Web & IT"; }
#operational .section-head::before { content: "07 — Market entry"; }
#portfolio .section-head::before { content: "08 — Our work"; }
#faq .section-head::before { content: "09 — Questions"; }
#newsletter .section-head::before, #news .section-head::before, #contact .section-head::before { content: ""; margin: 0; }
.eyebrow {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .22em;
  text-transform: uppercase; color: var(--green-700); margin-bottom: 16px;
}
.eyebrow-light { color: var(--gold-light); }
.section-title {
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.08; letter-spacing: -.02em; margin-bottom: 18px;
}
.section-title-light { color: #fff; }
.section-title .accent, .accent { color: var(--gold); font-style: italic; font-weight: 480; }
.section-sub { color: var(--ink-mute); font-size: 1.08rem; max-width: 620px; margin: 0 auto; }
.section-sub-light { color: rgba(255,255,255,.72); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-sans); font-size: .93rem; font-weight: 600;
  padding: 15px 30px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: all .3s cubic-bezier(.22,1,.36,1);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--green-800); color: #fff; box-shadow: 0 14px 30px rgba(14,36,24,.3); }
.btn-green { background: var(--green-700); color: #fff; }
.btn-green:hover { background: var(--green-900); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--green-950); border-color: #fff; }
.btn-sm { padding: 11px 22px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }

.text-link {
  font-weight: 600; color: var(--green-700); text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 2px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .35s, color .25s; padding-bottom: 2px;
}
.text-link:hover { background-size: 100% 2px; color: var(--green-900); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-height); transition: background .35s, box-shadow .35s, border-color .35s;
  background: transparent; border-bottom: 1px solid transparent;
}
.navbar.scrolled, .navbar-solid {
  background: rgba(250,248,242,.9);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner {
  max-width: var(--max-width); height: 100%; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.nav-logo img { height: 42px; width: auto; }
.nav-logo .nav-wordmark { height: 42px; width: auto; }
.nav-logo-text { font-family: var(--font-display); font-size: 1.32rem; font-weight: 650; color: var(--ink); letter-spacing: -.01em; }
.nav-logo-text em { font-style: italic; color: var(--gold); font-weight: 500; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 999px; padding: 4px; box-shadow: var(--shadow-sm); flex-shrink: 0; }
.nav-links li { flex-shrink: 0; }
.nav-links a {
  text-decoration: none; font-size: .88rem; font-weight: 500; white-space: nowrap;
  color: var(--ink-soft); padding: 8px 11px; border-radius: 999px; transition: all .25s;
}
.nav-links a:hover { color: var(--ink); background: rgba(20,32,26,.06); }
.nav-links a.active { color: #fff; background: var(--green-900); font-weight: 600; }
.nav-links a.active:hover { background: var(--green-800); color: #fff; }
.nav-links a.nav-cta {
  background: var(--ink); color: #fff !important; padding: 10px 18px;
  border-radius: 999px; font-weight: 600; margin-left: 8px;
}
.nav-links a.nav-cta:hover { background: var(--green-800); }

/* Nav dropdown (E-Procurement) */
.nav-links li.has-dropdown { position: relative; display: flex; align-items: center; }
.dropdown-toggle {
  background: none; border: none; cursor: pointer; padding: 8px 6px 8px 2px;
  display: inline-flex; align-items: center; color: var(--ink-soft); line-height: 1;
}
.dropdown-toggle::after {
  content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px);
  transition: transform .25s;
}
.has-dropdown.open .dropdown-toggle::after { transform: rotate(225deg) translateY(-2px); }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 1001;
  min-width: 250px; list-style: none; margin: 0; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.dropdown-menu::before {
  content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px;
}
.has-dropdown:hover:not(.closed) .dropdown-menu,
.has-dropdown:focus-within:not(.closed) .dropdown-menu,
.has-dropdown.open .dropdown-menu { opacity: 1; visibility: visible; transform: none; }
.dropdown-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-radius: 10px; font-size: .9rem; white-space: nowrap;
  color: var(--ink); background: transparent; text-decoration: none; font-weight: 500;
}
.dropdown-menu a:hover { background: rgba(20,32,26,.06); color: var(--ink); }
.dropdown-menu a span { color: var(--ink-mute); font-size: .8rem; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 6px; cursor: pointer;
  padding: 8px; background: none; border: none;
}
.nav-hamburger span { width: 26px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .3s; }

/* Mobile drawer */
.mobile-menu {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); z-index: 1100;
  background: var(--green-950); padding: 28px; display: flex; flex-direction: column; gap: 26px;
  transform: translateX(100%); transition: transform .4s cubic-bezier(.22,1,.36,1); overflow-y: auto;
}
.mobile-menu.open { transform: none; }
.mobile-close {
  align-self: flex-end; background: none; border: none; color: #fff;
  font-size: 2rem; line-height: 1; cursor: pointer; padding: 4px 8px;
}
.mobile-menu nav { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu nav a {
  color: rgba(255,255,255,.88); text-decoration: none;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  padding: 12px 10px; border-radius: 10px;
}
.mobile-menu nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
.mobile-menu nav a.mobile-cta {
  font-family: var(--font-sans); font-size: 1rem; background: var(--gold);
  color: var(--green-950); text-align: center; margin-top: 14px; font-weight: 600;
}
.mobile-menu nav a.mobile-sub {
  font-size: 1.1rem; padding: 8px 10px 8px 28px; color: rgba(255,255,255,.72);
}
.mobile-contact { margin-top: auto; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; }
.mobile-contact a { color: var(--gold-light); text-decoration: none; font-size: .95rem; }
.menu-overlay {
  position: fixed; inset: 0; z-index: 1050; background: rgba(10,26,18,.5);
  opacity: 0; pointer-events: none; transition: opacity .3s;
  backdrop-filter: blur(2px);
}
.menu-overlay.show { opacity: 1; pointer-events: auto; }

/* ---------- Hero (light editorial) ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-height) + 72px) 0 0; color: var(--ink);
  background:
    radial-gradient(800px 420px at 90% 0%, rgba(216,189,127,.28), transparent 60%),
    radial-gradient(700px 420px at -10% 30%, rgba(46,125,79,.12), transparent 60%),
    var(--paper);
}
.hero-bg, .hero-glow { display: none; }
.hero-content { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; text-align: center; padding: 0 32px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; border: 1px solid var(--line);
  color: var(--ink-soft); font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: 9px 18px; border-radius: 999px; margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.badge-dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(1.35); } }
.hero-title {
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(2.9rem, 7.2vw, 5.4rem); line-height: 1.02;
  letter-spacing: -.03em; margin-bottom: 26px;
}
.hero-title-accent { font-style: italic; font-weight: 480; color: var(--green-700); }
.hero-subtitle { font-size: clamp(1.02rem, 2vw, 1.22rem); color: var(--ink-soft); max-width: 720px; margin: 0 auto 38px; }
.hero-subtitle strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero-proof { margin-top: 30px; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; color: var(--ink-mute); font-size: .9rem; }
.hero-stars { color: var(--gold); letter-spacing: 2px; font-size: 1rem; }
.hero-meta {
  margin: 44px auto 0; max-width: 760px; padding: 20px 8px 0;
  border-top: 1px solid var(--line);
  display: flex; justify-content: center; gap: 40px; flex-wrap: wrap;
  font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-mute);
}
.hero-meta span b { display: block; font-family: var(--font-display); font-size: 1.35rem; font-weight: 650; letter-spacing: 0; text-transform: none; color: var(--ink); }
.hero-figure { max-width: var(--max-width); margin: 56px auto 0; padding: 0 32px; position: relative; }
.hero-figure img {
  width: 100%; aspect-ratio: 3/1; object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg);
}
.hero-chip {
  position: absolute; top: 24px; left: 50%; transform: translateX(-50%); z-index: 2;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: 18px 24px; display: flex; align-items: center; gap: 16px; text-align: left;
}
.hero-chip-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--green-700); line-height: 1; }
.hero-chip-text { font-size: .85rem; line-height: 1.45; color: var(--ink-soft); font-weight: 500; }
.hero-scroll { display: none; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--green-900); color: var(--gold-light);
  overflow: hidden; padding: 18px 0; white-space: nowrap;
  border-top: 1px solid rgba(216,189,127,.25); border-bottom: 1px solid rgba(216,189,127,.25);
}
.marquee-track { display: inline-flex; gap: 0; animation: marquee 30s linear infinite; will-change: transform; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display); font-size: 1.15rem; font-style: italic;
  padding: 0 26px; display: inline-flex; align-items: center; gap: 26px;
}
.marquee-track span::after { content: "✦"; color: var(--gold); font-style: normal; font-size: .85rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Stats band ---------- */
.stats-band { padding: 64px 0; background: var(--paper); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.stat { text-align: left; padding: 0 28px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; }
.stat-number {
  display: block; font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem); font-weight: 600;
  color: var(--ink); line-height: 1; letter-spacing: -.02em;
}
.stat-number .counter { font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 10px; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-mute); }

/* ---------- Page hero (blog) ---------- */
.page-hero {
  padding: calc(var(--nav-height) + 72px) 0 72px; text-align: center; color: var(--ink);
  background:
    radial-gradient(700px 360px at 85% 0%, rgba(216,189,127,.3), transparent 60%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-family: var(--font-display); font-weight: 560; font-size: clamp(2.4rem, 5.5vw, 3.6rem); letter-spacing: -.02em; line-height: 1.05; margin-bottom: 14px; }
.page-hero p { color: var(--ink-soft); max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.page-hero .eyebrow-light { color: var(--gold); }

/* ---------- Two-column grid (mission/vision) ---------- */
.duo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green-900); color: #fff; border-radius: var(--radius-lg);
  padding: 56px 48px; text-align: center;
}
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -.01em; color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 600px; margin: 0 auto 26px; font-size: 1.05rem; line-height: 1.7; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.about-media::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); pointer-events: none;
}
.about-badge-card {
  position: absolute; bottom: -24px; right: -16px; background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 22px 26px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 16px;
}
.about-badge-year { font-family: var(--font-display); font-size: 2.4rem; font-weight: 650; color: var(--gold-light); line-height: 1; }
.about-badge-text { font-size: .85rem; line-height: 1.5; color: rgba(255,255,255,.85); }
.about-copy p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.04rem; }
.about-copy p strong { color: var(--ink); }
.about-points { list-style: none; margin: 28px 0 34px; display: grid; gap: 14px; }
.about-points li { position: relative; padding-left: 32px; color: var(--ink-soft); }
.about-points li::before {
  content: '✓'; position: absolute; left: 0; top: 2px; width: 21px; height: 21px;
  background: var(--green-100); color: var(--green-700); border-radius: 50%;
  font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ---------- Firm tabs ---------- */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.tab-btn {
  font-family: var(--font-sans); font-size: .98rem; font-weight: 600;
  padding: 14px 24px 16px; cursor: pointer;
  border: none; border-bottom: 2px solid transparent; background: none; color: var(--ink-mute);
  transition: all .25s; margin-bottom: -1px;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn.active { color: var(--ink); border-bottom-color: var(--gold); }
.tab-panel {
  display: none; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 48px; align-items: center; gap: 48px;
}
.tab-panel.active { display: flex; animation: fade-up .45s cubic-bezier(.22,1,.36,1); }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tab-panel-text { flex: 1; }
.tab-kicker { font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.tab-panel h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.9rem; letter-spacing: -.01em; margin-bottom: 14px; line-height: 1.15; }
.tab-panel p { color: var(--ink-soft); margin-bottom: 20px; font-size: 1.03rem; }
.tab-panel-metric {
  flex-shrink: 0; text-align: center; background: var(--paper-warm);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 38px; font-weight: 600; color: var(--ink-soft);
}
.tab-panel-metric span { display: block; font-family: var(--font-display); font-size: 2.8rem; font-weight: 650; color: var(--green-700); line-height: 1.1; }

/* ---------- Cards grid (services / portfolio) ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
/* A lone card on the last row sits in the middle column instead of
   hanging alone on the left (e.g. 7 cards in a 3-column grid). */
@media (min-width: 1101px) {
  .cards-grid > .card:last-child:nth-child(3n+1) { grid-column: 2; }
}
.card {
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px 32px; position: relative; overflow: hidden;
  transition: background .4s, border-color .4s, transform .35s, box-shadow .35s;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-6px);
  background: var(--green-900); border-color: var(--green-900);
  box-shadow: var(--shadow-lg);
}
.card:hover h3 { color: #fff; }
.card:hover p { color: rgba(255,255,255,.78); }
.card:hover .card-kicker { color: var(--gold-light); }
.card:hover .card-icon { background: rgba(255,255,255,.1); }
.card:hover .text-link { color: var(--gold-light); }
.card:hover .card-metric { color: var(--gold-light) !important; }
.card:hover .check-list li { color: rgba(255,255,255,.78); }
.card-icon {
  width: 58px; height: 58px; border-radius: 50%; background: var(--paper-warm);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 1.55rem; margin-bottom: 22px;
  transition: background .4s;
}
.card-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; transition: color .4s; }
.card h3 { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 12px; transition: color .4s; }
.card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 18px; transition: color .4s; }
.card .text-link { margin-top: auto; }
.card-metric { font-family: var(--font-display); font-weight: 650; color: var(--green-700) !important; font-size: 1.25rem !important; margin: 10px 0 0 !important; }

/* ---------- Concerns (interactive) ---------- */
.concerns-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px; align-items: start; }
.concerns-list { display: flex; flex-direction: column; }
.concern-btn {
  display: flex; align-items: center; gap: 16px; text-align: left;
  font-family: var(--font-display); font-size: 1.18rem; font-weight: 550;
  padding: 22px 8px; cursor: pointer;
  background: none; border: none; border-bottom: 1px solid var(--line-dark);
  color: rgba(255,255,255,.65); transition: all .25s;
}
.concern-btn:first-child { border-top: 1px solid var(--line-dark); }
.concern-btn span { font-family: var(--font-sans); font-size: 1.15rem; }
.concern-btn:hover { color: #fff; padding-left: 16px; }
.concern-btn.active { color: #fff; padding-left: 16px; }
.concern-btn.active::before { content: '→'; color: var(--gold-light); font-family: var(--font-sans); margin-left: -8px; }
.concerns-detail {
  background: rgba(255,255,255,.05); border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg); padding: 44px; min-height: 340px;
  backdrop-filter: blur(8px); position: sticky; top: calc(var(--nav-height) + 24px);
}
.concern-panel { display: none; }
.concern-panel.active { display: block; animation: fade-up .4s cubic-bezier(.22,1,.36,1); }
.concern-tag { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 14px; }
.concern-panel h3 { font-family: var(--font-display); font-weight: 560; font-size: 1.7rem; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 16px; }
.concern-panel p { color: rgba(255,255,255,.8); margin-bottom: 26px; font-size: 1.02rem; }
.concern-panel strong { color: #fff; }

/* ---------- Split (e-procurement) ---------- */
.split-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; margin-bottom: 72px; }
.split-copy p { color: var(--ink-soft); margin-bottom: 16px; font-size: 1.03rem; }
.split-copy p strong { color: var(--ink); }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.media-stat {
  position: absolute; bottom: -20px; left: -12px; background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 18px 26px; font-weight: 600; box-shadow: var(--shadow-md);
}
.media-stat span { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; color: var(--gold-light); margin-right: 8px; }
.portals { margin-top: 30px; }
.portals-title { font-size: .76rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px; }
.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; }
.chip-list li {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 9px 18px; font-size: .88rem; font-weight: 600;
  transition: all .25s;
}
.chip-list li:hover { border-color: var(--gold); background: var(--gold-soft); }
.chip-list li span { font-weight: 400; color: var(--ink-mute); }

/* Process steps */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.process-step {
  padding: 34px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transition: background .3s; background: transparent;
}
.process-step:hover { background: #fff; }
.process-num {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; font-style: italic;
  color: var(--gold); line-height: 1; margin-bottom: 18px; display: block;
}
.process-step h3 { font-size: 1.08rem; margin-bottom: 8px; }
.process-step p { color: var(--ink-soft); font-size: .93rem; }

/* ---------- Web dev cards ---------- */
.dev-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.dev-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .35s, box-shadow .35s; display: flex; flex-direction: column;
}
.dev-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dev-card img { width: 100%; aspect-ratio: 16/8; object-fit: cover; transition: transform .6s cubic-bezier(.22,1,.36,1); }
.dev-card:hover img { transform: scale(1.04); }
.dev-card-body { padding: 34px; display: flex; flex-direction: column; flex: 1; }
.dev-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; letter-spacing: -.01em; margin-bottom: 12px; }
.dev-card-body > p { color: var(--ink-soft); font-size: .96rem; margin-bottom: 20px; }
.check-list { list-style: none; display: grid; gap: 10px; margin-bottom: 26px; }
.check-list li { position: relative; padding-left: 30px; font-size: .93rem; color: var(--ink-soft); }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  background: var(--green-100); color: var(--green-700); border-radius: 50%;
  font-size: .7rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.dev-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Journey (market entry) ---------- */
.journey { list-style: none; max-width: 860px; margin: 0 auto; }
.journey-step {
  display: flex; gap: 36px; padding: 36px 0; position: relative;
  border-top: 1px solid var(--line);
}
.journey-step:last-child { border-bottom: 1px solid var(--line); }
.journey-num {
  flex-shrink: 0; font-family: var(--font-display); font-size: 2.6rem; font-weight: 500;
  font-style: italic; color: var(--gold); line-height: 1; width: 72px;
}
.journey-step h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -.01em; margin-bottom: 8px; padding-top: 6px; }
.journey-step p { color: var(--ink-soft); font-size: .98rem; max-width: 640px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); overflow: hidden; background: transparent; transition: background .3s; }
.faq-item.open { background: #fff; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  font-family: var(--font-display); font-size: 1.22rem; font-weight: 580; color: var(--ink);
  background: none; border: none; cursor: pointer; padding: 26px 12px; text-align: left; letter-spacing: -.01em;
}
.faq-icon {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; font-weight: 300; transition: transform .35s, background .35s, color .35s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--ink); color: #fff; border-color: var(--ink); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-a p { padding: 0 12px 28px; color: var(--ink-soft); font-size: .97rem; max-width: 680px; }
.faq-a strong { color: var(--ink); }

/* ---------- Newsletter ---------- */
.newsletter-box { text-align: center; }
.newsletter-box > p { color: var(--ink-soft); margin-bottom: 30px; font-size: 1.05rem; }
.newsletter-form { display: flex; gap: 0; max-width: 560px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: var(--shadow-sm); }
.newsletter-input {
  flex: 1; font-family: var(--font-sans); font-size: 1rem; padding: 12px 20px;
  border: none; background: transparent; min-width: 0; color: var(--ink);
}
.newsletter-input:focus { outline: none; }
.newsletter-input::placeholder { color: var(--ink-mute); }
.form-note { margin-top: 16px; font-size: .85rem; color: var(--ink-mute); }
.form-note.success { color: var(--green-700); font-weight: 600; }
.form-note.error { color: #b3261e; font-weight: 600; }

/* ---------- News / blog ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-btn {
  font-family: var(--font-sans); font-size: .9rem; font-weight: 600;
  padding: 11px 22px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink-soft); transition: all .25s;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-count { opacity: .65; font-weight: 500; margin-left: 2px; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .35s, box-shadow .35s;
}
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.news-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; font-size: .8rem; color: var(--ink-mute); }
.news-cat {
  background: var(--gold-soft); color: var(--gold); font-weight: 700;
  padding: 4px 12px; border-radius: 999px; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase;
}
.news-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 10px; }
.news-card h3 a { color: var(--ink); text-decoration: none; }
.news-card h3 a:hover { color: var(--green-700); }
.news-card p { color: var(--ink-soft); font-size: .93rem; margin-bottom: 18px; flex: 1; }
.empty-state { text-align: center; padding: 70px 24px; background: var(--paper-warm); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty-icon { font-size: 3rem; margin-bottom: 16px; }
.empty-state h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); max-width: 480px; margin: 0 auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.info-card { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line-dark); }
.info-card:first-child { padding-top: 0; }
.info-icon {
  flex-shrink: 0; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.08); border: 1px solid var(--line-dark);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.info-card h3 { font-size: 1rem; margin-bottom: 4px; }
.info-card p { color: rgba(255,255,255,.75); font-size: .94rem; }
.info-card a { color: var(--gold-light); text-decoration: none; }
.info-card a:hover { text-decoration: underline; }
.map-wrap { margin-top: 28px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line-dark); }
.map-wrap iframe { width: 100%; height: 240px; border: 0; display: block; filter: grayscale(35%) contrast(1.02); }

.contact-form { background: #fff; border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 20px; }
.form-field label { display: flex; justify-content: space-between; font-size: .86rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 8px; }
.char-count { font-weight: 400; color: var(--ink-mute); }
.form-input, .form-select, .form-textarea {
  width: 100%; font-family: var(--font-sans); font-size: .96rem; color: var(--ink);
  padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper);
  transition: border-color .2s, background .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--green-700); background: #fff; }
.form-input.invalid, .form-select.invalid, .form-textarea.invalid { border-color: #b3261e; }
.form-textarea { resize: vertical; min-height: 120px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; font-size: .9rem; font-weight: 600; margin-bottom: 14px; }
.form-status.success { color: var(--green-700); }
.form-status.error { color: #b3261e; }

/* ---------- Footer ---------- */
.footer { background: var(--green-950); color: rgba(255,255,255,.8); overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 48px; padding: 80px 32px 56px; }
.footer-brand p { font-size: .94rem; margin: 20px 0; max-width: 330px; color: rgba(255,255,255,.68); }
.footer .nav-logo-text { color: #fff; }
.footer .nav-logo-text em { color: var(--gold-light); }
.footer-whatsapp {
  display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: #fff !important;
  padding: 11px 22px; border-radius: 999px; font-weight: 600; font-size: .9rem; text-decoration: none;
}
.footer-whatsapp:hover { filter: brightness(1.08); }
.footer-col h3 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; color: rgba(255,255,255,.68); text-decoration: none; font-size: .94rem; margin-bottom: 11px; }
.footer-col a:hover { color: var(--gold-light); }
.footer-wordmark {
  font-family: var(--font-display); font-weight: 600; text-align: center;
  font-size: clamp(2.6rem, 9.5vw, 9.5rem); line-height: .95; letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1px rgba(216,189,127,.4);
  user-select: none; padding: 10px 16px 8px; white-space: nowrap;
}
.footer-wordmark-m { display: inline-block; height: .7em; width: auto; vertical-align: baseline; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 32px; }
.footer-bottom-inner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 24px; padding-bottom: 24px; font-size: .86rem; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.68); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }

/* ---------- Floating buttons ---------- */
.whatsapp-btn {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 60px; height: 60px; background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45); text-decoration: none;
  transition: transform .3s; animation: whatsapp-pulse 2s infinite;
}
.whatsapp-btn:hover { transform: scale(1.1); }
.whatsapp-btn svg { width: 32px; height: 32px; fill: #fff; }
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,.45); }
  50% { box-shadow: 0 4px 32px rgba(37,211,102,.75); }
}
.whatsapp-tooltip {
  position: absolute; right: 72px; background: var(--ink); color: #fff;
  padding: 8px 14px; border-radius: 999px; font-size: .82rem; white-space: nowrap;
  opacity: 0; transition: opacity .3s; pointer-events: none;
}
.whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; }
.back-to-top {
  position: fixed; bottom: 28px; left: 28px; z-index: 999;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--ink); color: #fff; font-size: 1.3rem;
  box-shadow: var(--shadow-md); opacity: 0; pointer-events: none;
  transition: opacity .3s, transform .3s; transform: translateY(10px);
}
.back-to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--green-700); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
/* The 10-item pill needs ~1200px beside the wordmark, so switch to the
   hamburger below 1280px instead of squeezing the tabs. */
@media (max-width: 1280px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* Below ~1400px the page container is near full-width, so the fixed
   WhatsApp / back-to-top buttons sit over the footer links. Give the
   footer bottom row enough room to clear them. */
@media (max-width: 1400px) {
  .footer-bottom-inner { padding-bottom: 108px; }
}

@media (max-width: 1100px) {
  .cards-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .split-grid, .concerns-wrap, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-badge-card { right: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .tab-panel { flex-direction: column; align-items: stretch; gap: 26px; padding: 36px; }
  .tab-panel-metric { text-align: left; }
  .tab-panel-metric span { display: inline; font-size: 2.1rem; margin-right: 8px; }
  .concerns-detail { position: static; }
  .hero-chip { top: 20px; }
}

@media (max-width: 900px) {
  .section { padding: 64px 0; }
  .section-slim { padding: 48px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 0; }
  .stat:nth-child(3) { border-left: none; padding-left: 0; }
  .stat:nth-child(n+3) { padding-top: 0; }
  .hero-figure img { aspect-ratio: auto; }
}

@media (max-width: 640px) {
  .container, .nav-inner, .hero-content, .hero-figure { padding-left: 20px; padding-right: 20px; }
  .cards-grid, .process-grid, .news-grid, .dev-grid, .duo-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; border-radius: var(--radius); gap: 8px; }
  .newsletter-form .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-badge { font-size: .68rem; letter-spacing: .1em; white-space: nowrap; }
  .hero-chip { position: static; margin: 16px 20px 0; transform: none; }
  .hero-figure { margin-top: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .journey-step { gap: 20px; }
  .journey-num { width: 52px; font-size: 1.9rem; }
  .concerns-detail { padding: 30px 24px; min-height: 0; }
  .contact-form { padding: 28px 22px; }
  .cta-band { padding: 40px 24px; }
  .about-badge-card { position: static; margin-top: 16px; }
  .media-stat { left: 12px; }
  .stats-band { padding: 48px 0; }
  .stat { padding: 0 16px; }
  .whatsapp-btn { width: 54px; height: 54px; bottom: 20px; right: 20px; }
  .back-to-top { bottom: 20px; left: 20px; }
  .section-head { margin-bottom: 44px; }
  .tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .tab-btn { white-space: nowrap; }
  .nav-logo .nav-wordmark { height: 30px; }
}

@media (max-width: 360px) {
  /* Smallest phones: shrink the wordmark so the hamburger fits (it overflowed 7px at 320px). */
  .nav-logo .nav-wordmark { height: 24px; }
}

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-hero { padding: 52px 0 4px; }
.article-crumb { font-size: .88rem; color: var(--ink-mute); margin-bottom: 22px; }
.article-crumb a { color: var(--green-700); font-weight: 600; text-decoration: none; }
.article-crumb a:hover { color: var(--green-900); }
.article-crumb span { margin: 0 6px; }
.article-hero h1 {
  font-family: var(--font-display); font-weight: 560;
  font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.02em; line-height: 1.12;
  margin-bottom: 18px;
}
.article-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--ink-mute); font-size: .92rem; }
.article-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); margin: 30px 0 6px; }
.article-body { padding: 30px 0 70px; }
.article-body h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.65rem; letter-spacing: -.01em; line-height: 1.3; margin: 42px 0 14px; }
.article-body h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; line-height: 1.35; margin: 32px 0 10px; }
.article-body p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.85; margin-bottom: 18px; }
.article-body ul, .article-body ol { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.8; margin: 0 0 20px 26px; }
.article-body li { margin-bottom: 9px; }
.article-body li::marker { color: var(--gold); font-weight: 700; }
.article-body a { font-weight: 600; }
.article-body blockquote {
  border-left: 3px solid var(--gold); padding: 6px 0 6px 22px; margin: 26px 0;
  font-family: var(--font-display); font-style: italic; font-size: 1.25rem; line-height: 1.55; color: var(--ink);
}
.article-cta {
  background: var(--green-900); color: #fff; border-radius: var(--radius);
  padding: 36px 34px; margin-top: 48px;
}
.article-cta h2 { color: #fff; margin: 0 0 10px; font-size: 1.5rem; }
.article-cta p { color: rgba(255,255,255,.75); margin-bottom: 22px; }
.article-cta .btn { margin: 0; }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
