/* ============================================================
   Bexar Merchant Services — white / navy / teal, Inter
   Mobile-first
   ============================================================ */

:root {
  --navy: #0b2545;
  --navy-2: #0f2a4a;
  --navy-3: #16345c;
  --teal: #0ea5a4;
  --teal-2: #0d9488;
  --teal-3: #14b8a6;
  --teal-soft: #e7f7f6;
  --white: #ffffff;
  --bg: #f6f8fa;
  --ink: #0b2545;
  --muted: #5c6b7a;
  --line: #e6ecf1;
  --line-strong: #d5dee7;
  --header-h: 72px;
  --sticky-h: 72px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1120px;
  --gutter: 1.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(11, 37, 69, 0.04), 0 8px 24px rgba(11, 37, 69, 0.06);
  --shadow-hover: 0 1px 2px rgba(11, 37, 69, 0.05), 0 14px 32px rgba(11, 37, 69, 0.1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;
}

body.nav-open { overflow: hidden; }

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 0.55em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--teal);
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-2);
  margin: 0 0 0.75rem;
}

.section { padding: 4.75rem 0; }

.section-head { max-width: 36rem; margin-bottom: 2.5rem; }
.section-head h2 {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.7rem;
  font-weight: 700;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head .eyebrow { font-size: 0.75rem; }

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.06s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.18s; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease,
    color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:focus-visible,
.nav-toggle:focus-visible,
.faq-question:focus-visible,
.lang-toggle a:focus-visible,
.logo:focus-visible,
.nav-list a:focus-visible,
.footer a:focus-visible,
.sticky-cta a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(13, 148, 136, 0.25);
}
.btn-teal:hover {
  background: var(--teal-2);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn-outline:hover {
  border-color: var(--navy);
  background: var(--bg);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
}
.btn-white:hover { background: var(--teal-soft); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
}
.btn-outline-light:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.06);
}

.btn-arrow::after {
  content: "→";
  font-size: 1.05em;
  transition: transform 0.15s ease;
}
.btn-arrow:hover::after { transform: translateX(2px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}
.logo-mark { width: 36px; height: 36px; flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.logo-sub {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.1rem;
}

.header-actions { display: flex; align-items: center; gap: 0.5rem; }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.lang-toggle a {
  text-decoration: none;
  padding: 0.35rem 0.5rem;
  color: var(--muted);
}
.lang-toggle a[aria-current="page"] {
  background: var(--navy);
  color: var(--white);
}
.lang-toggle a:hover:not([aria-current="page"]) { color: var(--navy); }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--white);
}
.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.header-cta { display: none; }

.site-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 90;
  width: auto;
  background: transparent;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  transition: visibility 0.25s, background 0.25s ease;
}
.site-nav.is-open {
  visibility: visible;
  pointer-events: auto;
  background: rgba(11, 37, 69, 0.28);
}
.nav-panel {
  height: 100%;
  width: min(22rem, 100%);
  margin-left: auto;
  background: var(--white);
  border-left: 1px solid var(--line);
  padding: 1.4rem 1.2rem 2rem;
  overflow: auto;
  transform: translateX(100%);
  transition: transform 0.25s var(--ease);
}
.site-nav.is-open .nav-panel { transform: translateX(0); }

.nav-list { list-style: none; display: flex; flex-direction: column; }
.nav-list a {
  display: block;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  padding: 0.85rem 0.2rem;
  border-bottom: 1px solid var(--line);
}
.nav-list a:hover { color: var(--teal-2); }
.nav-mobile-cta { margin-top: 1.2rem; width: 100%; }

/* Hero */
.hero {
  background: var(--white);
  padding: 3rem 0 4rem;
}

.hero-inner {
  display: grid;
  gap: 2.75rem;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--teal-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero-kicker svg { width: 13px; height: 13px; flex-shrink: 0; }

.hero h1 {
  font-size: clamp(2.05rem, 6.4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.12;
  margin-bottom: 1rem;
  max-width: 16ch;
  color: var(--navy);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 1.6rem;
  line-height: 1.65;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1.15rem;
}
.hero-note { font-size: 0.92rem; color: var(--muted); }

/* Product mock */
.hero-visual {
  position: relative;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.product-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}
.dots { display: flex; gap: 5px; }
.dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d5dee7;
  display: block;
}
.product-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.product-body {
  display: grid;
  grid-template-columns: 7.2rem 1fr;
  min-height: 320px;
}

.product-rail {
  border-right: 1px solid var(--line);
  padding: 0.85rem 0.55rem;
  background: #fbfcfd;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.product-rail span {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}
.product-rail .is-on {
  background: var(--teal-soft);
  color: var(--teal-2);
}

.product-main { padding: 1rem 1rem 1.15rem; }
.product-title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 0.85rem;
}

.chat { display: flex; flex-direction: column; gap: 0.5rem; }
.bubble {
  max-width: 92%;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--navy);
}
.bubble-out {
  align-self: flex-start;
  background: var(--bg);
  border-bottom-left-radius: 4px;
}
.bubble-in {
  align-self: flex-end;
  background: var(--teal-soft);
  color: var(--navy);
  border-bottom-right-radius: 4px;
}
.chat-chip {
  align-self: flex-start;
  display: inline-flex;
  margin-top: 0.15rem;
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}

/* Services */
.services { background: var(--bg); }

.service-grid {
  display: grid;
  gap: 1rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.3rem 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}
.service-card h3 {
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.service-card p {
  color: var(--muted);
  font-size: 0.97rem;
  flex: 1;
  margin-bottom: 1.05rem;
}

.service-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  color: var(--teal-2);
  background: var(--teal-soft);
}
.service-icon svg { width: 20px; height: 20px; }

.text-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--teal-2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.text-link::after {
  content: "→";
  transition: transform 0.15s ease;
}
.text-link:hover { color: var(--navy); }
.text-link:hover::after { transform: translateX(2px); }

/* Why */
.why { background: var(--white); }
.why-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.why-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.2rem;
}
.why-item .num {
  font-weight: 700;
  color: var(--teal-2);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.why-item h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.why-item p { color: var(--muted); font-size: 0.95rem; }

.bundle {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem 1.3rem;
  text-align: center;
  background: var(--bg);
}
.bundle h3 {
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.03em;
}
.bundle > p { color: var(--muted); margin-bottom: 1.1rem; font-size: 0.98rem; }
.bundle-hub {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 500;
}
.chip-core {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  font-weight: 600;
}

/* Steps */
.how { background: var(--bg); }
.steps-list {
  display: grid;
  gap: 1rem;
  counter-reset: step;
  list-style: none;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.45rem 1.3rem;
  box-shadow: var(--shadow);
}
.step h3 { font-size: 1.12rem; margin-bottom: 0.4rem; font-weight: 600; }
.step p { color: var(--muted); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--teal-2);
  margin-bottom: 0.7rem;
}

/* Statement CTA — the dark blue band */
.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 4.5rem 0;
}
.cta-inner {
  display: grid;
  gap: 1.3rem;
}
.cta-band .eyebrow { color: var(--teal-3); }
.cta-band h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 4vw, 2.35rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.55rem;
  max-width: 18ch;
}
.cta-band p { color: rgba(255,255,255,0.78); max-width: 34rem; }
.cta-band .btn { justify-self: start; }

/* FAQ */
.faq { background: var(--white); }
.faq-list { display: grid; gap: 0.6rem; max-width: 44rem; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 1.05rem 3rem 1.05rem 1.15rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  letter-spacing: -0.015em;
}
.faq-question::after {
  content: "";
  position: absolute;
  right: 1.15rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--teal-2);
  border-bottom: 1.5px solid var(--teal-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.15s ease;
}
.faq-item.is-open .faq-question::after {
  transform: translateY(-20%) rotate(225deg);
}
.faq-answer { padding: 0 1.15rem 1.1rem; color: var(--muted); font-size: 0.97rem; }

/* Footer */
.site-footer {
  background: var(--navy-2);
  color: rgba(255,255,255,0.72);
  padding: 3.5rem 0 1.75rem;
}
.footer-grid {
  display: grid;
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { margin-bottom: 0.85rem; color: var(--white); }
.footer-brand .logo-sub { color: rgba(255,255,255,0.55); }
.footer-brand p { max-width: 22rem; font-size: 0.95rem; }
.footer-col h2 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-3);
  margin-bottom: 0.85rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.45rem; }
.footer-col a { color: rgba(255,255,255,0.78); text-decoration: none; }
.footer-col a:hover { color: var(--white); }
.footer-contact { font-style: normal; display: grid; gap: 0.45rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
  justify-content: space-between;
  padding-top: 1.3rem;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(11, 37, 69, 0.06);
}
.sticky-cta .btn { flex: 1; }
body.nav-open .sticky-cta { display: none; }
body.has-sticky { padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom)); }

@media (min-width: 640px) {
  :root { --gutter: 1.75rem; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card-featured { grid-column: 1 / -1; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 4rem 0 5rem; }
}

@media (min-width: 880px) {
  :root { --header-h: 76px; --gutter: 2rem; }
  body.has-sticky { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .header-cta { display: inline-flex; }
  .nav-toggle, .nav-mobile-cta { display: none; }

  .site-nav {
    position: static;
    z-index: auto;
    width: auto;
    inset: auto;
    background: none;
    visibility: visible;
    overflow: visible;
    pointer-events: auto;
  }
  .nav-panel {
    height: auto;
    width: auto;
    margin: 0;
    background: none;
    border: 0;
    padding: 0;
    overflow: visible;
    transform: none;
  }
  .nav-list {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem 1.5rem;
  }
  .nav-list a {
    padding: 0.3rem 0;
    border: 0;
    font-size: 0.92rem;
    color: var(--navy);
    font-weight: 500;
  }
  .header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
  }
  .header-actions { justify-self: end; }

  .hero { padding: 5.25rem 0 6rem; }
  .hero-inner {
    grid-template-columns: 1fr 1.05fr;
    gap: 3.25rem;
    align-items: center;
  }

  .section { padding: 5.75rem 0; }
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.15rem;
  }
  .service-card-featured { grid-column: span 2; }
  .why-grid { grid-template-columns: repeat(4, 1fr); }
  .steps-list { grid-template-columns: repeat(3, 1fr); gap: 1.15rem; }
  .cta-band { padding: 5.25rem 0; }
  .cta-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2.5rem;
  }
  .footer-grid {
    grid-template-columns: 1.4fr 0.8fr 0.9fr 1fr;
    gap: 2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
