/* ==========================================================================
   JSB Facility Solutions Group — Stylesheet
   Design tokens: corporate navy + gold, matched to brand logo
   ========================================================================== */

:root {
  /* Color */
  --bg: #FAFAF7;
  --bg-sand: #F1ECE1;
  --navy: #082E4A;
  --navy-deep: #051D30;
  --gold: #FFDE59;
  --gold-deep: #D9B300;
  --gold-text: #8A6D00;
  --coral: #FF6B4A;
  --coral-deep: #E8532E;
  --text: #1F2937;
  --text-muted: #5B6B72;
  --white: #FFFFFF;
  --line: rgba(0, 35, 79, 0.12);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --container: 1180px;
  --radius: 6px;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 14px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); font-weight: 500; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { margin: 0 0 16px; color: var(--text-muted); }

.lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  color: var(--text-muted);
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: var(--coral-deep); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 46px; width: auto; display: block; }
.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a { color: var(--text); transition: color 0.15s; }
.nav-links a:hover { color: var(--gold-text); }
.nav-phone {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--navy);
}
.nav-cta {
  padding: 10px 20px;
  font-size: 0.88rem;
}
.menu-toggle { display: none; background: none; border: none; cursor: pointer; }

/* Hero */
.hero {
  padding: 64px 0 48px;
  background:
    radial-gradient(ellipse at top right, rgba(245,184,0,0.09), transparent 55%),
    var(--bg);
}
.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}
.hero-logo {
  height: 260px;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 6px 14px rgba(0,35,79,0.12));
}
.intro {
  padding: 72px 0 88px;
  background: var(--bg);
}
.services-overview {
  padding: 0 0 56px;
  background: var(--bg);
}
.services-strip {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.services-strip li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.services-strip li:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -18px rgba(18,48,61,0.28);
  border-color: var(--gold);
}
.services-strip svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--gold-text);
}
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-trust {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  width: 100%;
}
.trust-stat {
  font-family: var(--font-mono);
  text-align: center;
}
.trust-stat b {
  display: block;
  font-size: 1.5rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 600;
}
.trust-stat span {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Before/After reveal */
.reveal-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 48px;
  align-items: start;
}
.reveal-item { text-align: center; }
.reveal-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -20px rgba(10, 30, 39, 0.35);
  aspect-ratio: 1000 / 1215;
  min-height: 380px;
  max-width: 460px;
  margin: 0 auto;
  user-select: none;
  cursor: ew-resize;
  border: 1px solid var(--line);
}
.reveal-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.reveal-after { clip-path: inset(0 0 0 50%); }
.reveal-label {
  position: absolute;
  top: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(10,30,39,0.55);
  color: var(--white);
  backdrop-filter: blur(3px);
}
.label-before { left: 16px; }
.label-after { right: 16px; }
.reveal-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--white);
  transform: translateX(-50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.15);
}
.reveal-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  background: var(--white);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(10,30,39,0.3);
}
.reveal-hint {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 12px;
  letter-spacing: 0.04em;
}

/* Sections */
section { padding: 88px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head.left { margin: 0 0 52px; text-align: left; }

.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }
.bg-navy p { color: rgba(255,255,255,0.68); }
.bg-sand { background: var(--bg-sand); }

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px 28px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -24px rgba(18,48,61,0.28);
}
.service-card:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}
.service-icon {
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  color: var(--gold-text);
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { margin-bottom: 0; font-size: 0.95rem; }
.card-link {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold-text);
}

/* Service detail modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 12, 20, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-panel {
  background: var(--white);
  border-radius: 14px;
  padding: 40px;
  max-width: 560px;
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(14px);
  transition: transform 0.2s ease;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.45);
}
.modal-overlay.open .modal-panel { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-sand);
  color: var(--navy);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.modal-close:hover { background: var(--line); }
.modal-icon { width: 46px; height: 46px; color: var(--gold-text); margin-bottom: 16px; }
.modal-icon svg { width: 100%; height: 100%; }
.modal-title { margin-bottom: 16px; padding-right: 30px; }
.modal-desc { color: var(--text-muted); margin-bottom: 26px; }
.modal-beforeafter { margin-bottom: 26px; }
.modal-beforeafter .reveal-wrap { max-width: 100%; }
.modal-beforeafter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.modal-cta { width: 100%; }

/* Process */
.process-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  counter-reset: step;
}
.process-step {
  position: relative;
  padding: 0 24px 0 0;
  border-right: 1px dashed rgba(255,255,255,0.22);
}
.process-step:last-child { border-right: none; padding-right: 0; }
.process-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: 0.05em;
}
.process-step h3 { font-size: 1.1rem; }
.process-step p { font-size: 0.9rem; }

/* Service area */
.area-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.area-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}
.area-list li {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--navy);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid var(--line);
}
.stars { color: var(--coral); font-size: 0.9rem; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card .service-icon { color: var(--gold-text); }
.testimonial-card h3 { margin-bottom: 8px; }
.testimonial-card p { color: var(--text-muted); font-style: normal; font-size: 0.95rem; margin-bottom: 0; }
.testimonial-name {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal !important;
  margin-top: 12px;
}

/* CTA band */
.cta-band {
  background: var(--gold);
  padding: 56px 0;
}
.cta-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--navy); margin: 0; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--white);
  color: var(--text);
}
.form-row textarea { resize: vertical; min-height: 100px; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item b { color: var(--navy); display: block; margin-bottom: 3px; }
.contact-info-item span { color: var(--text-muted); font-size: 0.92rem; }

/* Footer */
footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.6);
  padding: 48px 0 28px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo-chip {
  display: inline-block;
  background: var(--white);
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 10px;
}
.footer-logo-img { height: 40px; width: auto; display: block; }
.footer-links { display: flex; gap: 28px; font-size: 0.88rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 22px;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* Responsive */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .process-list { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .process-step { border-right: none; padding-right: 0; }
  .area-wrap { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-trust { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .process-list { grid-template-columns: 1fr; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
  .hero-logo { height: 220px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .service-card { transition: none; }
}

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

/* Utility: visually hide content (kept for screen readers / bots) without display:none */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
