/* =========================================================
   Alpha XeroTech — Design System
   Palette: Signal Red / Ink Black / Paper White / Halftone Grey
   Signature motif: halftone dot texture + diagonal red stroke,
   both drawn from the offset-print / Xerox heritage of the brand.
   ========================================================= */

:root{
  --red: #E81433;
  --red-dark: #B80F29;
  --red-tint: #FCE7EA;
  --ink: #17171A;
  --ink-soft: #3A3A3F;
  --grey-mid: #6B6E76;
  --grey-line: #E3E3E6;
  --grey-light: #F4F4F5;
  --grey-panel: #EFEFF1;
  --white: #FFFFFF;

  --font-display: "Archivo", "Arial Narrow", sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --container: 1180px;
  --radius: 4px;
  --shadow-card: 0 1px 2px rgba(23,23,26,0.06), 0 8px 24px -12px rgba(23,23,26,0.12);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-soft);
  background: var(--white);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.08;
  margin: 0 0 0.5em 0;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1{ font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2{ font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3{ font-size: 1.25rem; font-weight: 700; }
h4{ font-size: 1.05rem; font-weight: 700; }

p{ margin: 0 0 1em 0; }
a{ color: inherit; text-decoration: none; }

.container{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* -------------------- Eyebrow / labels -------------------- */
.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before{
  content: "";
  width: 18px;
  height: 2px;
  background: var(--red);
  display: inline-block;
}

/* -------------------- Halftone signature texture -------------------- */
.halftone{
  position: relative;
  background-color: var(--ink);
  background-image: radial-gradient(circle, rgba(232,20,51,0.55) 1px, transparent 1.4px);
  background-size: 14px 14px;
  background-position: 0 0;
}
.halftone-fade{
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(23,23,26,0.97) 30%, rgba(23,23,26,0.55) 70%, rgba(23,23,26,0.15));
  pointer-events: none;
}
.halftone-light{
  background-color: var(--grey-light);
  background-image: radial-gradient(circle, rgba(23,23,26,0.10) 1px, transparent 1.4px);
  background-size: 12px 12px;
}

/* diagonal stroke echoing the logo mark */
.stroke{
  position: absolute;
  background: var(--red);
  transform: skewX(-18deg);
}

/* -------------------- Buttons -------------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, border-color .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{ background: var(--red); color: var(--white); }
.btn-primary:hover{ background: var(--red-dark); }
.btn-outline{ background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover{ border-color: var(--white); background: rgba(255,255,255,0.08); }
.btn-dark{ background: var(--ink); color: var(--white); }
.btn-dark:hover{ background: #000; }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--grey-line); }
.btn-ghost:hover{ border-color: var(--ink); }
.btn-arrow::after{ content: "→"; transition: transform 0.15s ease; }
.btn:hover .btn-arrow::after, .btn.btn-arrow:hover::after{ transform: translateX(3px); }

/* -------------------- Header -------------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--grey-line);
}
.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: var(--container);
  margin: 0 auto;
  gap: 24px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img{ height: 48px; width: auto; }

.main-nav{ display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.main-nav a{
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 10px 12px;
  border-radius: var(--radius);
  position: relative;
  white-space: nowrap;
}
.main-nav a:hover{ color: var(--red); }
.main-nav a.active{ color: var(--ink); }
.main-nav a.active::after{
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  background: var(--red);
}
.header-cta{ display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.header-phone{
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-phone strong{ color: var(--ink); font-weight: 600; }

.nav-toggle{ display: none; }

@media (max-width: 980px){
  .main-nav{
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 1px solid var(--grey-line);
    padding: 8px 24px 16px;
  }
  .main-nav.open{ display: flex; }
  .main-nav a{ padding: 12px 4px; border-bottom: 1px solid var(--grey-light); }
  .header-phone{ display: none; }
  .nav-toggle{
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border: 1.5px solid var(--grey-line);
    border-radius: var(--radius);
    background: var(--white);
    cursor: pointer;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
    content:""; display:block; width: 18px; height: 2px; background: var(--ink); position: relative;
  }
  .nav-toggle span::before{ position: absolute; top: -6px; }
  .nav-toggle span::after{ position: absolute; top: 6px; }
}

/* -------------------- Hero (interior pages) -------------------- */
.page-hero{
  position: relative;
  overflow: hidden;
  padding: 64px 0 56px;
  color: var(--white);
}
.page-hero .container{ position: relative; z-index: 2; }
.page-hero .eyebrow{ color: #FF8A97; }
.page-hero .eyebrow::before{ background: #FF8A97; }
.page-hero h1{ color: var(--white); max-width: 720px; }
.page-hero p.lead{ color: rgba(255,255,255,0.78); max-width: 620px; font-size: 1.05rem; }
.page-hero .stroke{ top: -40px; right: 12%; width: 90px; height: 220%; opacity: 0.9; }
.page-hero .stroke.s2{ right: 4%; width: 34px; opacity: 0.55; }

.breadcrumb{
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}
.breadcrumb span{ color: var(--white); }

/* -------------------- Sections -------------------- */
section{ padding: 72px 0; }
.section-light{ background: var(--grey-light); }
.section-tight{ padding: 48px 0; }

.section-head{ max-width: 640px; margin-bottom: 42px; }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }

/* -------------------- Cards / Grids -------------------- */
.grid{ display: grid; gap: 24px; }
.grid-2{ grid-template-columns: repeat(2, 1fr); }
.grid-3{ grid-template-columns: repeat(3, 1fr); }
.grid-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid-3, .grid-4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid-2, .grid-3, .grid-4{ grid-template-columns: 1fr; } }

.card{
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.card-accent{ border-top: 3px solid var(--red); }
.card .icon{
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--red-tint);
  color: var(--red);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg{ width: 22px; height: 22px; }
.card h3{ margin-bottom: 8px; }
.card p{ font-size: 0.94rem; color: var(--grey-mid); margin-bottom: 0; }
.card ul{ margin: 12px 0 0; padding-left: 18px; font-size: 0.9rem; color: var(--grey-mid); }
.card ul li{ margin-bottom: 4px; }

/* Service tile w/ number */
.tile{
  padding: 26px 22px;
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  transition: border-color .15s ease, transform .15s ease;
}
.tile:hover{ border-color: var(--red); transform: translateY(-2px); }

/* -------------------- Stats strip -------------------- */
.stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat{
  padding: 26px 22px;
  border-left: 1px solid var(--grey-line);
  background: var(--white);
}
.stat:first-child{ border-left: none; }
.stat .num{
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--red);
  display: block;
}
.stat .label{
  font-size: 0.82rem;
  color: var(--grey-mid);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@media (max-width: 760px){
  .stats{ grid-template-columns: repeat(2,1fr); }
  .stat{ border-left: none; border-top: 1px solid var(--grey-line); }
  .stat:nth-child(1), .stat:nth-child(2){ border-top: none; }
}

/* -------------------- Process steps -------------------- */
.steps{ display: grid; gap: 0; }
.step{
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-top: 1px solid var(--grey-line);
}
.step:last-child{ border-bottom: 1px solid var(--grey-line); }
.step .step-num{
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--red);
}
.step h4{ margin-bottom: 6px; }
.step p{ color: var(--grey-mid); font-size: 0.94rem; margin: 0; }

/* -------------------- Sector / client type badges -------------------- */
.badges{ display: flex; gap: 12px; flex-wrap: wrap; }
.badge{
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 14px;
  border: 1px solid var(--grey-line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--white);
}

/* -------------------- Office cards -------------------- */
.office-card{
  background: var(--white);
  border: 1px solid var(--grey-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.office-card .office-top{
  padding: 20px 24px;
  background: var(--ink);
  color: var(--white);
  display: flex; align-items: center; justify-content: space-between;
}
.office-card .office-top span{ font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .1em; color: rgba(255,255,255,0.55); text-transform: uppercase; }
.office-card .office-body{ padding: 22px 24px; font-size: 0.94rem; color: var(--grey-mid); }
.office-card .office-body a{ color: var(--red); font-weight: 600; }
.office-card .office-body p{ margin: 0 0 8px; }

/* -------------------- CTA banner -------------------- */
.cta-banner{
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2{ color: var(--white); margin-bottom: 6px; }
.cta-banner p{ color: rgba(255,255,255,0.7); margin: 0; }
.cta-banner .stroke{ top: -30%; right: 8%; width: 60px; height: 180%; opacity: 0.85; }

/* -------------------- Table -------------------- */
.table-wrap{ overflow-x: auto; border: 1px solid var(--grey-line); border-radius: var(--radius); }
table{ width: 100%; border-collapse: collapse; min-width: 520px; }
th, td{ text-align: left; padding: 14px 18px; font-size: 0.92rem; border-bottom: 1px solid var(--grey-line); }
th{ font-family: var(--font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--grey-mid); background: var(--grey-light); }
tr:last-child td{ border-bottom: none; }
td.yes{ color: var(--red); font-weight: 700; }

/* -------------------- Form -------------------- */
.form-grid{ display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full{ grid-column: 1 / -1; }
label{ display: block; font-size: 0.82rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-family: var(--font-display); }
input, select, textarea{
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--grey-line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--ink);
  background: var(--white);
}
input:focus, select:focus, textarea:focus{
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-tint);
}
textarea{ resize: vertical; min-height: 120px; }
@media (max-width: 620px){ .form-grid{ grid-template-columns: 1fr; } }

/* -------------------- Footer -------------------- */
.site-footer{ background: var(--ink); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.footer-top{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand img{ height: 30px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-brand p{ font-size: 0.88rem; color: rgba(255,255,255,0.55); max-width: 280px; }
.site-footer h4{ color: var(--white); font-size: 0.82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.site-footer ul{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a{ font-size: 0.9rem; color: rgba(255,255,255,0.7); }
.site-footer a:hover{ color: var(--white); }
.footer-contact li{ font-size: 0.88rem; color: rgba(255,255,255,0.7); }
.footer-bottom{ display: flex; align-items: center; justify-content: space-between; padding: 22px 0; font-size: 0.8rem; color: rgba(255,255,255,0.45); flex-wrap: wrap; gap: 10px; }
.footer-bottom .legal-links{ display: flex; gap: 18px; }
@media (max-width: 900px){ .footer-top{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-top{ grid-template-columns: 1fr; } }

/* -------------------- Utility -------------------- */
.mt-0{ margin-top: 0; }
.text-center{ text-align: center; }
.flex-gap{ display: flex; gap: 14px; flex-wrap: wrap; }
.mb-40{ margin-bottom: 40px; }
