:root {
  --navy: #0e1c2c;
  --navy-2: #162536;
  --amber: #e0a106;
  --amber-2: #f2c14b;
  --ink: #161b22;
  --muted: #5b6572;
  --line: #d9d2c3;
  --cream: #f3efe6;
  --paper: #fffdf8;
  --white: #ffffff;
  --whatsapp: #128c7e;
  --shadow: 0 18px 40px rgba(14, 28, 44, 0.12);
  --max: 1120px;
  --header: 64px;
  --tap: 48px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --cta-bar: calc(64px + var(--safe-bottom));
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Roboto Condensed", "Roboto", sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.55;
  overflow-x: hidden;
  padding-bottom: var(--cta-bar);
  -webkit-tap-highlight-color: rgba(224, 161, 6, 0.22);
}

body.nav-open,
body.popup-open {
  overflow: hidden;
  touch-action: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

button,
input,
select,
textarea {
  font-family: inherit;
  touch-action: manipulation;
}

h1,
h2,
h3,
.brand-name,
.nav a,
.eyebrow,
.btn,
.role-card strong,
.location-card b,
.industry,
.card .num,
.compare th {
  font-family: var(--display);
}

h1,
h2,
h3 {
  margin: 0 0 0.55rem;
  letter-spacing: 0;
  line-height: 1.18;
}

h1 {
  font-size: 1.85rem;
  font-weight: 700;
}

h2 {
  font-size: 1.55rem;
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

p { margin: 0 0 0.9rem; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
}

.skip:focus {
  left: 12px;
  z-index: 80;
  background: var(--amber);
  padding: 10px 14px;
}

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  background: var(--navy);
  color: #d5deea;
  font-size: 0.8rem;
  border-bottom: 3px solid var(--amber);
  padding-top: var(--safe-top);
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
}

.topbar a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

.topbar a:hover { color: var(--amber-2); }

.hide-sm { display: none; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  isolation: isolate;
  background: rgba(243, 239, 230, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header .wrap {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
}

.brand img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-name span {
  display: block;
  font-family: var(--font);
  font-size: 0.68rem;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 500;
  max-width: 168px;
  line-height: 1.25;
  margin-top: 3px;
}

.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--tap);
  min-height: var(--tap);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0 12px;
  font: 700 0.95rem var(--display);
  cursor: pointer;
  border-radius: 6px;
}

.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--paper);
  flex-direction: column;
  align-items: stretch;
  padding: 8px 16px calc(12px + var(--safe-bottom));
  border-bottom: 1px solid var(--line);
  max-height: calc(100dvh - var(--header) - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav.open { display: flex; }

.nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
}

.nav a:last-child { border-bottom: 0; }
.nav a:hover { color: #9a6f00; }

.nav .btn {
  margin-top: 10px;
  text-transform: uppercase;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 12px 16px;
  border-radius: 6px;
  border: 2px solid transparent;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  width: 100%;
}

.btn-amber {
  background: var(--amber);
  color: var(--navy);
}

.btn-amber:hover { background: var(--amber-2); }

.btn-ghost {
  border-color: currentColor;
  background: transparent;
}

.btn-ghost-light {
  border-color: #f3efe6;
  color: #f3efe6;
  background: transparent;
}

.btn-navy {
  background: var(--navy);
  color: var(--cream);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: white;
}

.hero {
  position: relative;
  color: var(--cream);
  background:
    linear-gradient(165deg, rgba(14, 28, 44, 0.94) 0%, rgba(14, 28, 44, 0.82) 100%),
    url("../assets/hero.svg") center / cover no-repeat,
    var(--navy);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 10px;
  background: repeating-linear-gradient(
    45deg,
    var(--amber),
    var(--amber) 10px,
    var(--navy) 10px,
    var(--navy) 20px
  );
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
  padding: 28px 0 36px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 10px;
  border: 1px solid rgba(224, 161, 6, 0.55);
  color: var(--amber-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.hero p.lead {
  font-size: 1rem;
  max-width: 58ch;
  color: #d5deea;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0 6px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.badge {
  border: 1px solid rgba(243, 239, 230, 0.25);
  padding: 6px 10px;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  background: rgba(14, 28, 44, 0.35);
}

.hero-card {
  background: rgba(22, 37, 54, 0.9);
  border: 1px solid rgba(224, 161, 6, 0.35);
  padding: 18px;
}

.hero-card h3 {
  color: var(--amber-2);
  margin-bottom: 10px;
}

.hero-card ul {
  margin: 0;
  padding-left: 18px;
}

.hero-card li { margin-bottom: 8px; }

.section { padding: 48px 0; }
.section.alt { background: var(--paper); }

.section-head {
  max-width: 68ch;
  margin-bottom: 22px;
}

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

.grid-3,
.grid-4,
.roles,
.locations,
.industries,
.contact-grid,
.footer .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.card,
.role-card,
.location-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px;
}

.card:hover,
.role-card:hover { border-color: #c8b27a; }

.card .num {
  color: var(--amber);
  font-size: 1.15rem;
  font-weight: 700;
}

.role-card strong {
  display: block;
  font-size: 1.1rem;
}

.role-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 -16px;
  padding: 0 16px;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
}

.compare thead { display: none; }

.compare,
.compare tbody,
.compare tr,
.compare td {
  display: block;
  width: 100%;
}

.compare tr {
  border: 1px solid var(--line);
  margin-bottom: 12px;
  padding: 4px 0;
}

.compare td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.compare tr td:last-child { border-bottom: 0; }

.compare td::before {
  content: attr(data-label);
  display: block;
  font-family: var(--display);
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--navy);
}

.compare td:first-child {
  background: var(--navy);
  color: var(--cream);
  font-weight: 700;
}

.compare td:first-child::before { display: none; }

.location-card b {
  font-size: 1.25rem;
  display: block;
}

.location-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.industry {
  background: var(--navy);
  color: var(--cream);
  padding: 20px 14px;
  text-align: center;
  font-size: 1.1rem;
}

.faq details {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 4px 14px;
  margin-bottom: 10px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  min-height: var(--tap);
  display: flex;
  align-items: center;
}

.faq p { margin: 0 0 12px; color: var(--muted); }

.nap {
  background: var(--navy);
  color: var(--cream);
  padding: 22px;
}

.nap a { color: var(--amber-2); }

.nap address {
  font-style: normal;
  margin-bottom: 16px;
}

.nap .hero-actions { margin-top: 16px; }

.map-frame {
  min-height: 220px;
  border: 1px solid var(--line);
  background: #ddd;
}

.map-frame iframe {
  width: 100%;
  height: 220px;
  border: 0;
}

form { display: grid; gap: 12px; }

label {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 500;
}

input,
select,
textarea {
  width: 100%;
  min-height: var(--tap);
  font-size: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
}

select {
  background-image: linear-gradient(45deg, transparent 50%, var(--navy) 50%),
    linear-gradient(135deg, var(--navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea { min-height: 120px; resize: vertical; }

.form-note {
  font-size: 0.86rem;
  color: var(--muted);
  margin: 0;
}

.footer {
  background: var(--navy);
  color: #c5d0dc;
  padding: 28px 0 20px;
}

.footer strong { color: var(--cream); }
.footer a:hover { color: var(--amber-2); }

.text-wa {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: #9a6f00;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.wa-float {
  display: flex;
  position: fixed;
  right: calc(16px + var(--safe-right));
  bottom: calc(var(--cta-bar) + 12px);
  z-index: 50;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--whatsapp);
  color: white;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.wa-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(14, 28, 44, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px;
  padding-bottom: calc(12px + var(--safe-bottom));
}

.wa-overlay[hidden] { display: none; }

.wa-sheet {
  width: min(420px, 100%);
  background: var(--paper);
  border-radius: 14px 14px 8px 8px;
  padding: 22px 18px 18px;
  position: relative;
  box-shadow: var(--shadow);
}

.wa-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--ink);
}

.wa-sheet h3 { padding-right: 36px; }

.wa-sheet-lead,
.wa-call p {
  color: var(--muted);
  margin: 0 0 12px;
}

.wa-call {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.wa-call .btn { width: 100%; }

.mobile-cta {
  display: flex;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  background: var(--navy);
  padding: 8px calc(10px + var(--safe-right)) calc(8px + var(--safe-bottom)) calc(10px + var(--safe-left));
  gap: 8px;
  box-shadow: 0 -6px 20px rgba(14, 28, 44, 0.2);
}

.mobile-cta .btn { flex: 1; width: auto; }

@media (min-width: 480px) {
  .hero-actions { grid-template-columns: 1fr 1fr; }
  .btn { width: auto; }
  .hero-actions .btn,
  .nap .hero-actions .btn,
  .mobile-cta .btn { width: auto; }
}

@media (min-width: 680px) {
  body { padding-bottom: 0; }
  .hide-sm { display: inline; }
  .topbar .wrap { flex-wrap: nowrap; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.9rem; }
  .brand img { width: 50px; height: 50px; }
  .brand-name { font-size: 1.5rem; }
  .brand-name span { max-width: 220px; font-size: 0.72rem; }
  .hero .wrap { padding: 40px 0 48px; }
  .hero p.lead { font-size: 1.08rem; }
  .section { padding: 60px 0; }
  .grid-3,
  .grid-4,
  .roles,
  .locations,
  .industries { grid-template-columns: 1fr 1fr; }
  .mobile-cta { display: none; }
  .wa-float {
    bottom: calc(16px + var(--safe-bottom));
  }
  .wa-overlay {
    align-items: center;
    padding-bottom: 12px;
  }
  .wa-sheet { border-radius: 10px; }
  .map-frame iframe { height: 260px; }
}

@media (min-width: 980px) {
  :root { --header: 76px; }

  h1 { font-size: 3.3rem; }
  h2 { font-size: 2.35rem; }

  .menu-btn { display: none; }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 0;
    max-height: none;
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .nav a {
    min-height: auto;
    border: 0;
    font-size: 0.98rem;
  }

  .nav .btn {
    margin-top: 0;
    min-height: 42px;
    padding: 8px 14px;
  }

  .hero .wrap {
    grid-template-columns: 1.3fr 0.8fr;
    gap: 40px;
    align-items: center;
    min-height: 68dvh;
    padding: 56px 0 72px;
  }

  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .roles { grid-template-columns: repeat(4, 1fr); }
  .locations { grid-template-columns: repeat(4, 1fr); }
  .industries { grid-template-columns: repeat(5, 1fr); }
  .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 24px; }
  .footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; gap: 24px; }

  .table-scroll {
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .compare {
    display: table;
    border: 1px solid var(--line);
  }

  .compare thead { display: table-header-group; }

  .compare tbody { display: table-row-group; }

  .compare tr {
    display: table-row;
    border: 0;
    margin: 0;
    padding: 0;
  }

  .compare th,
  .compare td {
    display: table-cell;
    width: auto;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
  }

  .compare td::before { content: none; }

  .compare td:first-child {
    background: transparent;
    color: var(--ink);
    width: 22%;
  }

  .compare th {
    background: var(--navy);
    color: var(--cream);
    font-size: 1.1rem;
  }

  .section { padding: 72px 0; }
}
