/* ===========================================================
   Chay & Harris Painting — Stylesheet
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

:root {
  --red:       #CC0403;
  --red-dark:  #A30302;
  --blue:      #083D8A;
  --blue-dark: #062c63;
  --blue-mid:  #0d4fa8;
  --ink:       #15191F;
  --ink-soft:  #4A5160;
  --paper:     #FFFFFF;
  --mist:      #F4F6FA;
  --line:      #E4E8F0;

  --font: 'Montserrat', sans-serif;
  --container: 1200px;
  --radius: 4px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--font); font-weight: 800; letter-spacing: -0.01em; margin: 0; }
p { line-height: 1.75; color: var(--ink-soft); margin: 0; }

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

.eyebrow {
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before,
.eyebrow::after {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--red);
}

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
              background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn-red {
  background: var(--red);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(204,4,3,0.55);
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(204,4,3,0.6);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.12);
  border-color: #fff;
  transform: translateY(-2px);
}
.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn-outline-blue:hover {
  background: var(--blue);
  color: #fff;
  transform: translateY(-2px);
}
.btn-blue {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px -8px rgba(8,61,138,0.45);
}
.btn-blue:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(8,61,138,0.55);
}
.btn-lg { padding: 18px 44px; font-size: 14.5px; letter-spacing: 0.07em; }

/* ── HEADER ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: url('images/nav-bg.png') center center / cover no-repeat; /* brushed steel image */
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 8px 32px -16px rgba(0,0,0,0.45);
}

/* Full-width nav — no container, children handle colors */
.nav-wrap {
  display: flex;
  align-items: stretch;
  height: 88px;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* ── LEFT 1/3: logo + brand name ── */
.brand-wrap {
  flex: 0 0 33.333%;
  display: flex;
  align-items: center;
  background: transparent;
  padding: 0 20px 0 28px;
  overflow: hidden;
  /* no position/z-index — keeps blend-mode working with parent bg */
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-right: 12px;
  text-decoration: none;
}
/* Logo scales with the white panel width */
.logo-link img {
  width: clamp(36px, 4.6vw, 68px);
  height: clamp(36px, 4.6vw, 68px);
  object-fit: contain;
  mix-blend-mode: multiply; /* white logo bg disappears on steel background */
}

.brand-name-link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  min-width: 0;
}
/* Company name — matches logo: weight 800, zero extra letter-spacing */
.brand-name {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(13px, 2.45vw, 34px); /* scales so text stays inside white bar */
  color: var(--red);
  letter-spacing: 0;         /* matches logo — no expansion */
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
/* Subtitle — JS auto-sizes to match brand-name pixel width */
.brand-sub {
  font-family: var(--font);
  font-weight: 800;
  font-size: 10px;           /* JS overrides at runtime */
  color: #083D8A;
  letter-spacing: 0.04em;
  margin-top: 5px;
  text-transform: uppercase;
  white-space: nowrap;
  display: block;
}

/* ── RIGHT 2/3: blue panel with nav + inquiry ── */
.nav-right {
  flex: 1;                   /* takes remaining 2/3 */
  display: flex;
  align-items: center;
  justify-content: flex-end;
  background: transparent; /* inherits steel from site-header */
  gap: 36px;
  padding-right: clamp(16px, 2.5vw, 48px);
  padding-left: 24px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
.nav-links a {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #083D8A;
  position: relative;
  padding: 5px 0;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--red); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 1000;
}
.hamburger span {
  width: 25px; height: 2.5px;
  background: #1e2d40;
  border-radius: 2px;
  transition: transform 0.35s var(--ease), opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: url('images/nav-bg.png') center center / cover no-repeat;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.42s var(--ease), opacity 0.38s ease;
  pointer-events: none;
}
.mobile-nav.open { transform: translateX(0); opacity: 1; pointer-events: auto; }
.mobile-nav a {
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #083D8A;
}
.mobile-nav a.active, .mobile-nav a:hover { color: var(--red); }
.mobile-nav .btn { margin-top: 12px; font-size: 14px; padding: 16px 40px; }

/* ── QUICK-NAV BUTTONS (3 cards below header) ─────── */
.quick-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.quick-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.quick-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  border-right: 1px solid var(--line);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.25s ease;
  position: relative;
  overflow: hidden;
}
.quick-card:last-child { border-right: none; }
.quick-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--red);
  transition: width 0.4s var(--ease);
}
.quick-card:hover { background: var(--mist); }
.quick-card:hover::after { width: 100%; }
.quick-card:hover .qc-icon { background: var(--blue); }
.quick-card:hover .qc-icon svg { stroke: #fff; }

.qc-icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(8,61,138,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s ease;
}
.qc-icon svg { width: 19px; height: 19px; transition: stroke 0.3s ease; }
.qc-text { display: flex; flex-direction: column; gap: 2px; }
.qc-label {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink);
}
.qc-sub {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ── BRUSH ACCENTS ──────────────────────────────────── */
.brush-accent {
  width: 100%;
  overflow: hidden;
  pointer-events: none;
  line-height: 0;
}
.brush-accent svg { width: 100%; height: auto; display: block; }

/* ── SLIDESHOW ──────────────────────────────────────── */
.slideshow-hero {
  position: relative;
  background: #0a0e14;
  overflow: hidden;
}

/* top brush accent inside slideshow area */
.slideshow-hero .brush-top-inner {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  pointer-events: none;
}

.slides {
  position: relative;
  height: 580px;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}
.slide.active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(8,20,50,0.72) 0%,
    rgba(8,20,50,0.28) 60%,
    transparent 100%
  );
}
.slide-caption-box {
  position: absolute;
  left: 56px;
  bottom: 64px;
  z-index: 5;
  max-width: 520px;
}
.slide-caption-box .eyebrow { color: rgba(255,255,255,0.75); margin-bottom: 14px; }
.slide-caption-box .eyebrow::before,
.slide-caption-box .eyebrow::after { background: rgba(255,255,255,0.6); }
.slide-caption-box h2 {
  color: #fff;
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
  margin-bottom: 14px;
}
.slide-caption-box p {
  color: rgba(255,255,255,0.78);
  font-size: 15px;
}

/* arrows */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  background: rgba(0,0,0,0.32);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 22px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  z-index: 6;
}
.slide-arrow:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-50%) scale(1.08);
}
.slide-prev { left: 24px; }
.slide-next { right: 24px; }

/* dots */
.slide-dots {
  position: absolute;
  bottom: 28px;
  right: 36px;
  display: flex;
  gap: 8px;
  z-index: 6;
}
.slide-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}
.slide-dot.active {
  background: var(--red);
  transform: scale(1.3);
}

/* ── STATS STRIP ────────────────────────────────────── */
.stats-strip {
  background: var(--mist);
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.stat-block {
  padding: 44px 28px;
  text-align: center;
  border-right: 1px solid var(--line);
  position: relative;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.stat-block:last-child { border-right: none; }
.stat-block.in-view { opacity: 1; transform: translateY(0); }
.stat-block::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 0; height: 3px;
  background: var(--red);
  transition: width 0.6s var(--ease);
}
.stat-block.in-view::before { width: 48px; }

.stat-num {
  font-weight: 800;
  font-size: 52px;
  line-height: 1;
  color: var(--blue);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.stat-label {
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ── ABOUT TEXT BLOCK ───────────────────────────────── */
.about-strip {
  background: #fff;
  padding: 80px 0 90px;
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-left h2 {
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.15;
  margin: 16px 0 24px;
}
.about-left h2 em { color: var(--red); font-style: normal; }
.about-left p { font-size: 15.5px; margin-bottom: 14px; }
.about-left p:last-of-type { margin-bottom: 28px; }

.about-right {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.about-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease);
}
.about-feature:hover {
  box-shadow: 0 18px 36px -20px rgba(8,61,138,0.25);
  border-color: transparent;
  transform: translateY(-3px);
}
.af-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(204,4,3,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.af-icon svg { width: 20px; height: 20px; }
.af-text h4 { font-size: 14.5px; margin-bottom: 5px; }
.af-text p { font-size: 13.5px; }

/* ── CLIENTS ROW ────────────────────────────────────── */
.clients-strip {
  background: var(--mist);
  padding: 56px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
}
.client-pill {
  font-weight: 800;
  font-size: 16.5px;
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  opacity: 0.65;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.client-pill:hover { opacity: 1; color: var(--blue); }

/* ── CTA SECTION ────────────────────────────────────── */
.cta-section {
  background: #fff;
  padding: 90px 0 100px;
  text-align: center;
}
.cta-inner { max-width: 620px; margin: 0 auto; }
.cta-inner h2 { font-size: clamp(26px, 3vw, 36px); margin: 16px 0 18px; }
.cta-inner p { font-size: 15.5px; margin-bottom: 40px; }
.cta-commercial-note {
  margin-top: 22px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  font-weight: 600;
}

/* ── BRUSH BOTTOM SECTION ───────────────────────────── */
.blue-footer-band {
  background: var(--blue);
  padding: 64px 0 0;
  position: relative;
  overflow: hidden;
}
.blue-footer-band::before {
  content: '';
  position: absolute;
  top: -60px; right: -80px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(204,4,3,0.2), transparent 65%);
  pointer-events: none;
}

/* ── FOOTER ─────────────────────────────────────────── */
.site-footer {
  background: #0c1a32;
  padding: 56px 0 26px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.footer-logo img {
  height: 44px;
  margin-bottom: 16px;
  /* no filter — show original logo colors */
}
.footer-col p, .footer-col a { color: rgba(255,255,255,0.55); font-size: 14px; }
.footer-col h4 {
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { transition: color 0.25s ease; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
}
.footer-bottom p { color: rgba(255,255,255,0.36); font-size: 12px; }

/* ── INNER PAGE HERO ─────────────────────────────────── */
.page-hero {
  padding: 64px 0 72px;
  background: var(--mist);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(30px, 4vw, 46px); margin: 16px 0 14px; }
.page-hero p { max-width: 560px; margin: 0 auto; font-size: 15.5px; }

/* ── ABOUT PAGE ──────────────────────────────────────── */
.story-section { padding: 90px 0; }
.story-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}
.story-grid img {
  border-radius: 6px;
  height: 440px;
  object-fit: cover;
  box-shadow: 0 28px 56px -28px rgba(8,61,138,0.3);
}
.story-copy p { font-size: 15.5px; margin-bottom: 16px; }
.story-copy p:last-child { margin-bottom: 0; }

.timeline-strip { background: var(--mist); padding: 80px 0; }
.timeline-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.timeline-item { flex: 1; min-width: 200px; }
.timeline-year { font-weight: 800; font-size: 30px; color: var(--red); margin-bottom: 10px; }
.timeline-item h4 { font-size: 15px; margin-bottom: 8px; }
.timeline-item p { font-size: 13.5px; }

.team-section { padding: 90px 0 100px; }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.team-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px 26px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}
.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 46px -24px rgba(8,61,138,0.26);
  border-color: transparent;
}
.team-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
  margin-bottom: 18px;
}
.team-card.red .team-avatar { background: var(--red); }
.team-card h3 { font-size: 16.5px; margin-bottom: 4px; }
.team-card .role {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 13px;
  display: block;
}
.team-card p { font-size: 13.5px; }
.foremen-row { margin-top: 24px; display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }

.values-section { padding: 0 0 100px; }
.values-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.value-card { text-align: center; padding: 8px; }
.value-num { font-weight: 800; font-size: 14px; color: var(--blue); margin-bottom: 10px; letter-spacing: 0.06em; }
.value-card h4 { font-size: 14.5px; margin-bottom: 8px; }
.value-card p { font-size: 13px; }

/* ── INQUIRY PAGE ────────────────────────────────────── */
.inquiry-section { padding: 90px 0 110px; }
.inquiry-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: 60px; }
.inquiry-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 44px;
  box-shadow: 0 28px 56px -32px rgba(8,61,138,0.2);
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 9px;
}
.form-row input, .form-row textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 14.5px;
  color: var(--ink);
  background: var(--mist);
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(8,61,138,0.1);
}
.form-row textarea { resize: vertical; min-height: 140px; }
.form-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-submit { width: 100%; justify-content: center; margin-top: 6px; }
.form-status {
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 600;
  padding: 16px 18px;
  border-radius: 4px;
  display: none;
  line-height: 1.5;
  transition: opacity 0.3s ease;
}
.form-status.show { display: block; }
.form-status.ok {
  background: rgba(8,61,138,0.07);
  color: var(--blue);
  border-left: 3px solid var(--blue);
}
.form-status.err {
  background: rgba(204,4,3,0.07);
  color: var(--red);
  border-left: 3px solid var(--red);
}

/* Submit button disabled state */
.form-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.inquiry-side { display: flex; flex-direction: column; gap: 24px; }
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px 28px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-card:hover { box-shadow: 0 20px 40px -22px rgba(8,61,138,0.24); border-color: transparent; }
.contact-card .icon {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(8,61,138,0.08);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-card .icon svg { width: 19px; height: 19px; }
.contact-card h4 { font-size: 14px; margin-bottom: 6px; }
.contact-card p, .contact-card a { font-size: 13.5px; }
.contact-card a:hover { color: var(--blue); }
.contact-note {
  background: var(--mist);
  border-radius: 8px;
  padding: 24px 26px;
  font-size: 13.5px;
}
.contact-note strong { color: var(--ink); }

/* ── SCROLL REVEAL ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 980px) {
  .quick-nav-grid { grid-template-columns: 1fr; }
  .quick-card { border-right: none; border-bottom: 1px solid var(--line); }
  .quick-card:last-child { border-bottom: none; }
  .about-inner { grid-template-columns: 1fr; gap: 44px; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-block { border-right: none; border-bottom: 1px solid var(--line); }
  .stat-block:last-child { border-bottom: none; }
  .story-grid { grid-template-columns: 1fr; }
  .story-grid img { height: 300px; order: -1; }
  .team-grid { grid-template-columns: 1fr; }
  .foremen-row { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .inquiry-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* Keep nav-right visible — it holds the hamburger button */
  .nav-right {
    display: flex;
    flex: 1;
    padding-right: 16px;
    padding-left: 10px;
    gap: 0;
    justify-content: flex-end;
  }
  /* Hide desktop nav links and inquiry button on mobile */
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
  /* Show hamburger */
  .hamburger { display: flex; }
  /* White section takes half width on mobile */
  .brand-wrap { flex: 0 0 50%; padding: 0 12px 0 16px; }
  /* font-size handled by clamp() — no override needed */
  .slides { height: 380px; }
  .slide-caption-box { left: 24px; bottom: 44px; max-width: 90%; }
  .slide-arrow { width: 40px; height: 40px; font-size: 17px; }
  .slide-prev { left: 12px; }
  .slide-next { right: 12px; }
  .quick-nav-grid { grid-template-columns: 1fr; }
  .timeline-row { flex-direction: column; }
  .values-grid { grid-template-columns: 1fr; }
  .form-two { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .clients-inner { gap: 32px; }
  .client-pill { font-size: 14px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .slides { height: 300px; }
  .stat-num { font-size: 40px; }
  .btn-lg { padding: 16px 32px; font-size: 13px; }
}

/* ── CUSTOMERS PAGE ─────────────────────────────────────── */
.customers-section { padding: 90px 0 110px; }

.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.client-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
  background: #fff;
}
.client-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(8,61,138,0.28);
  border-color: transparent;
}
.client-card:hover .client-logo-wrap { background: var(--mist); }

.client-logo-wrap {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: #fafbfd;
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease;
}
.client-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  width: auto;
  height: auto;
}
/* Placeholder shown when no real logo is set */
.client-logo-placeholder {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.04em;
}

.client-card-body {
  padding: 20px 18px 22px;
}
.client-card-body h3 {
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}
.client-card-body p {
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* Trusted-by eyebrow: dashes on both sides */
.trusted-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.trusted-eyebrow::before,
.trusted-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1.5px;
  background: var(--ink-soft);
  opacity: 0.4;
}

.client-pill.red-link {
  color: var(--red);
  font-weight: 800;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.client-pill.red-link:hover { opacity: 0.8; }

/* WBENC / certificate quick card */
.wbenc-cert-icon svg { width: 20px; height: 20px; }

@media (max-width: 980px) {
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .clients-grid { grid-template-columns: 1fr; }
}

/* ── section-head (used across pages) */
.section-label { margin-bottom: 0; }

/* ── btn-blue (used on customers page) */
.btn-blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  box-shadow: 0 6px 18px -8px rgba(8,61,138,0.45);
}
.btn-blue:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px rgba(8,61,138,0.55);
}

/* ── BUSINESS CARD TEAM GRID ──────────────────────────────────── */
.biz-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 50px;
}

/* Founders card — spans both columns, horizontal layout, shorter */
.biz-card-founders {
  grid-column: 1 / -1;
}
.biz-founders-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.biz-founders-text {
  flex: 1;
}

.biz-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 24px 26px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s ease;
}
.biz-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 44px -22px rgba(8,61,138,0.26);
  border-color: transparent;
}

/* Red accent bar across the top */
.biz-top-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--red);
}

.biz-avatar-wrap {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.biz-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-weight: 800;
  font-size: 13px;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid #fff;
}

.biz-name {
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 5px;
  color: var(--ink);
  line-height: 1.2;
}
.biz-role {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 14px;
}
.biz-bio {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.7;
  flex: 1; /* pushes bio to fill card evenly */
}

@media (max-width: 900px) {

  .biz-card-founders { grid-column: 1; }
  .biz-founders-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (max-width: 540px) {

}

/* ── LOGO COLLAGE — Clients Page ──────────────────────────── */
.logo-collage-primary {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.logo-collage-secondary {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

/* Empty secondary hides cleanly */
.logo-collage-secondary:empty { display: none; }

.logo-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 22px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s ease;
  aspect-ratio: 3 / 2;
  overflow: hidden;
}
.logo-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -18px rgba(8,61,138,0.24);
  border-color: transparent;
}
.logo-tile img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  /* grayscale on rest, color on hover — premium look */
  filter: grayscale(20%);
  transition: filter 0.3s ease, transform 0.3s ease;
}
.logo-tile:hover img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* SAP tile has black bg */
.logo-tile[style*="background:#000"] img { filter: none; }
.logo-tile[style*="background:#000"]:hover img { filter: none; transform: scale(1.05); }

.logo-tile-sm {
  padding: 18px 18px;
  border-radius: 6px;
}
.logo-tile-sm img { max-height: 52px; }

@media (max-width: 1100px) {
  .logo-collage-primary  { grid-template-columns: repeat(4, 1fr); }
  .logo-collage-secondary { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 760px) {
  .logo-collage-primary  { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .logo-collage-secondary { grid-template-columns: repeat(4, 1fr); gap: 10px; }
}
@media (max-width: 480px) {
  .logo-collage-primary  { grid-template-columns: repeat(2, 1fr); }
  .logo-collage-secondary { grid-template-columns: repeat(3, 1fr); }
}
