/* ============================================
   Phoenix Facility Services — Brand tokens
   ============================================ */
:root {
  --ink: #0E2A43;
  --ink-soft: #3E5872;
  --paper: #FFFFFF;
  --mist: #EAF3FB;
  --mist-deep: #DCEBFA;
  --line: #D3E3F1;

  --blue: #2F6FED;
  --yellow: #FFC93C;
  --mint: #2ECC9A;
  --coral: #FF6B57;
  --alert: #A6001A;

  --font-head: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1300px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  margin: 0 0 0.5em;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
}
p { margin: 0 0 1em; color: var(--ink-soft); }
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
}

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

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

/* ============================================
   Signature: the stripe (blue / yellow / mint / coral)
   Used as a literal "clean sweep" divider + accent
   ============================================ */
.stripe {
  height: 5px;
  width: 100%;
  background: linear-gradient(90deg,
    var(--blue) 0 25%,
    var(--yellow) 25% 50%,
    var(--mint) 50% 75%,
    var(--coral) 75% 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: linear-gradient(90deg, var(--blue) 0 25%, var(--yellow) 25% 50%, var(--mint) 50% 75%, var(--coral) 75% 100%);
  border-radius: 2px;
}

/* ============================================
   Header / Nav
   ============================================ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 16px 20px;
}
@media (min-width: 481px) {
  .nav-row { padding: 20px 40px; }
}
.nav-row .logo { justify-self: start; }
.nav-row .main-nav { justify-self: center; }
.nav-row .nav-cta { justify-self: end; }
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 27px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo-icon { display: block; width: auto; height: 62px; flex-shrink: 0; }
.logo-footer { gap: 14px; }
.logo-footer .logo-icon { height: 66px; }
.logo-footer .logo-text-main { font-size: 32px; }
.logo-footer .logo-text-sub { font-size: 14px; letter-spacing: 0.08em; margin-top: 2px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text-main {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}
.logo-text-sub {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}
@media (max-width: 460px) {
  .logo-icon { height: 44px; }
  .logo { font-size: 19px; gap: 10px; }
}
nav.main-nav {
  display: flex;
  gap: 48px;
  font-size: 15px;
  font-weight: 500;
}
nav.main-nav a {
  color: var(--ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav.main-nav a:hover,
nav.main-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--coral);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.nav-cta:hover { background: var(--blue); transform: translateY(-1px); }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .nav-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 20px;
    cursor: pointer;
  }
}

/* ============================================
   Hero + "the wipe" reveal
   ============================================ */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--mist);
  padding: 64px 0 72px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.hero h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  max-width: 12ch;
}
.hero .lede {
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--blue); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

/* wipe panel */
.wipe-stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 5/4;
  background: var(--ink);
  box-shadow: 0 24px 60px -20px rgba(14,42,67,0.35);
}
.wipe-clean, .wipe-dirty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
}
.wipe-clean {
  background: var(--ink);
  overflow: hidden;
}
.wipe-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.wipe-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.wipe-slide.active { opacity: 1; }
.wipe-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,42,67,0) 35%, rgba(14,42,67,0.8) 100%);
  z-index: 1;
}
.wipe-dirty {
  background: linear-gradient(160deg, #4b5a68, #2a3542 65%);
  animation: wipe-away 1.4s cubic-bezier(.65,0,.35,1) 0.35s forwards;
}
.wipe-edge {
  position: absolute;
  top: 0; bottom: 0;
  width: 10px;
  right: -2px;
  background: linear-gradient(180deg, var(--blue), var(--yellow), var(--mint), var(--coral));
  animation: wipe-edge-move 1.4s cubic-bezier(.65,0,.35,1) 0.35s forwards;
  box-shadow: 0 0 24px 4px rgba(255,255,255,0.5);
}
@keyframes wipe-away {
  0% { clip-path: inset(0 0 0 0); }
  100% { clip-path: inset(0 0 0 100%); }
}
@keyframes wipe-edge-move {
  0% { right: -2px; opacity: 1; }
  100% { right: 100%; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wipe-dirty, .wipe-edge { animation: none; display: none; }
}
.wipe-tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--paper);
  position: relative;
  z-index: 2;
}
.wipe-sub { font-size: 13px; color: #C7D5E2; margin: 0; position: relative; z-index: 2; }

/* ============================================
   Sections
   ============================================ */
section { padding: 64px 0; }
.section-mist { background: var(--mist); }
.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(32px, 4vw, 44px); }

/* Stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
  margin-top: 40px;
}
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 761px) and (max-width: 1020px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stats-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .stats-4 { grid-template-columns: 1fr 1fr; } }
.stats-4 .stat b { font-size: 20px; white-space: nowrap; }
@media (max-width: 760px) {
  .stats-4 .stat b { font-size: 17px; white-space: normal; }
}
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 28px;
  color: var(--ink);
  white-space: nowrap;
}
@media (max-width: 760px) {
  .stat b { white-space: normal; font-size: 26px; }
}
.stat span { font-size: 14px; color: var(--ink-soft); }

/* Card grid (services preview / values) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 860px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(14,42,67,0.28); }
.card .dot {
  width: 32px; height: 32px;
  border-radius: 9px;
  margin-bottom: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.card h3 { font-size: 16px; margin-bottom: 6px; }
.card p { font-size: 13.5px; margin: 0; }

.dot-blue { background: color-mix(in srgb, var(--blue) 14%, white); color: var(--blue); }
.dot-yellow { background: color-mix(in srgb, var(--yellow) 24%, white); color: #8a6600; }
.dot-mint { background: color-mix(in srgb, var(--mint) 16%, white); color: #0f8a68; }
.dot-coral { background: color-mix(in srgb, var(--coral) 16%, white); color: #c14431; }

/* Process / numbered (real sequence, so numbers are justified) */
.process {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .process { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }
.step {
  counter-increment: step;
  padding-top: 18px;
  border-top: 3px solid var(--line);
  position: relative;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  color: var(--blue);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 10px;
}
.step h4 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; }

/* CTA band */
.cta-band {
  background: var(--ink);
  border-radius: 24px;
  padding: 56px;
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
@media (max-width: 640px) {
  .cta-band { padding: 32px 24px; border-radius: 18px; }
}
.cta-band h2 { color: var(--paper); font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px;}
.cta-band p { color: #C7D5E2; margin: 0; max-width: 46ch; }
.cta-band::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--mint), var(--coral));
}
.cta-band .btn-primary { background: var(--paper); color: var(--ink); }
.cta-band .btn-primary:hover { background: var(--mist); }

/* Footer */
footer.site-footer {
  background: var(--mist);
  border-top: 1px solid var(--line);
  padding: 56px 0 28px;
  margin-top: 40px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-grid > div:first-child { align-self: center; }
@media (max-width: 760px) {
  .footer-grid {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  .footer-grid > div:first-child { align-self: center; }
  .footer-grid ul { align-items: center; }
}
.footer-grid h5 {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-grid li { color: var(--ink-soft); font-size: 14.5px; }
.footer-grid a { color: var(--ink-soft); font-size: 14.5px; }
.footer-grid a:hover { color: var(--blue); }
.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Page hero (non-home pages) */
.page-hero {
  padding: 48px 0 40px;
  background: var(--mist);
}
.page-hero-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 860px) {
  .page-hero-split { grid-template-columns: 1fr; }
}
.photo-banner-side { height: 240px; }
@media (max-width: 860px) {
  .photo-banner-side { height: 220px; }
}
.page-hero h1 { font-size: clamp(30px, 4.4vw, 44px); max-width: 16ch; }
.page-hero p { font-size: 17px; max-width: 52ch; }

/* Forms */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--paper);
  color: var(--ink);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  margin-bottom: 18px;
}
.info-card h4 { font-size: 15px; margin-bottom: 4px; }
.info-card p { margin: 0; font-size: 14.5px; }

/* Trust bar (client sectors) */
.trust-bar {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-head { margin-bottom: 28px; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.trust-chip {
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--mist);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .testimonial-grid { grid-template-columns: 1fr; } }
.testimonial {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.testimonial .quote { font-size: 14.5px; color: var(--ink); margin-bottom: 18px; }
.testimonial .attrib { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.placeholder-flag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--coral);
  background: color-mix(in srgb, var(--coral) 12%, white);
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 760px) { .cert-grid { grid-template-columns: 1fr 1fr; } }
.cert-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.cert-card .cert-mark {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 18px;
}
.cert-card h4 { font-size: 14.5px; margin-bottom: 4px; }
.cert-card p { font-size: 12.5px; margin: 0; }

/* Team / values on About */
.value-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 700px) { .value-row { grid-template-columns: 1fr; } }

/* Photo banner */
.photo-banner {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 300px;
  background: var(--ink);
}
.photo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,42,67,0) 40%, rgba(14,42,67,0.75) 100%);
}
.photo-banner .photo-caption {
  position: absolute;
  left: 32px;
  bottom: 26px;
  right: 32px;
  z-index: 2;
  color: var(--paper);
}
.photo-banner .photo-caption p {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 20px;
  color: var(--paper);
  margin: 0;
  max-width: 46ch;
}
@media (max-width: 640px) {
  .photo-banner { height: 260px; }
  .photo-banner .photo-caption p { font-size: 17px; }
}

.photo-side {
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  min-height: 280px;
}
.photo-side img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.badge-mini {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--mist-deep);
  color: var(--blue);
  margin-bottom: 10px;
}
