/* =============================================================
   ProAlert — Main Stylesheet
   Style: Hayashi Telempu-inspired corporate B2B layout
   ============================================================= */

/* ===== VARIABLES ===== */
:root {
  --sidebar-bg:    #000000;
  --header-bg:     #000000;
  --footer-bg:     #000000;
  --accent:        #37ca37;
  --accent-dark:   #2aaa2a;
  --text-dark:     #1a1a1a;
  --text-mid:      #555555;
  --text-light:    #999999;
  --border:        #e8e8e8;
  --bg-alt:        #f7f7f6;
  --white:         #ffffff;
  --sidebar-width:   0px;     /* sidebar moved to bottom nav; kept for legacy calc references */
  --bottom-nav-height: 60px;
  --header-height:   72px;
  --site-max:        1160px;  /* content max-width */
  --scrollbar-width: 0px;     /* set by JS at runtime to fix 100vw vs clientWidth gap */
  --font-head:     'Montserrat', Arial, sans-serif;
  --font-body:     'Lato', Arial, sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-dark);
  background: url('../images/fabrication-background.webp') center center / cover fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ===== BOTTOM NAV (app-style icon bar) ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: max(0px, calc((100vw - var(--scrollbar-width) - var(--site-max)) / 2));
  right: max(0px, calc((100vw - var(--scrollbar-width) - var(--site-max)) / 2));
  height: var(--bottom-nav-height);
  background: var(--sidebar-bg);
  z-index: 300;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.bottom-nav a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s, background 0.2s;
  position: relative;
}

.bottom-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 0 0 3px 3px;
  transition: width 0.2s;
}

.bottom-nav a:hover,
.bottom-nav a.active {
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.05);
}

.bottom-nav a:hover::before,
.bottom-nav a.active::before {
  width: 32px;
}

.bottom-nav a i {
  font-size: 18px;
}

.bottom-nav a .nav-tip {
  font-size: 7.5px;
  font-family: var(--font-body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

/* ===== NAV MODAL OVERLAY ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 299;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(0,0,0,0);
  pointer-events: none;
  transition: background 0.3s ease;
  overflow-y: auto;
}

.nav-overlay.open {
  background: rgba(0,0,0,0.6);
  pointer-events: all;
}

/* Modal box */
.nav-overlay-inner {
  position: relative;
  display: flex;
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  background: #f0ede9;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(-18px) scale(0.97);
  transition: opacity 0.32s cubic-bezier(0.4,0,0.2,1), transform 0.32s cubic-bezier(0.4,0,0.2,1);
}

.nav-overlay.open .nav-overlay-inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Close button */
.nav-overlay-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.09);
  color: var(--text-dark);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 2;
  flex-shrink: 0;
}

.nav-overlay-close:hover { background: rgba(0,0,0,0.16); }

/* Left column: icon + primary link */
.nav-overlay-primary {
  width: 290px;
  flex-shrink: 0;
  border-right: 1px solid rgba(0,0,0,0.1);
  padding: 52px 0 32px;   /* top padding clears the close button */
  list-style: none;
}

.nav-overlay-primary li a {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 13px 32px;
  text-decoration: none;
  color: var(--text-dark);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.18s;
  border-left: 3px solid transparent;
}

.nav-overlay-primary li a:hover,
.nav-overlay-primary li a.active,
.nav-overlay-primary li.nop-active > a {
  color: var(--accent);
  border-left-color: var(--accent);
}

.nav-overlay-primary li.nop-active > a .nop-icon { color: var(--accent); }

.nop-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0,0,0,0.35);
  font-size: 16px;
  flex-shrink: 0;
  transition: color 0.18s;
}

.nav-overlay-primary li a:hover .nop-icon { color: var(--accent); }

.nop-arrow {
  margin-left: auto;
  font-size: 11px;
  color: rgba(0,0,0,0.4);
}

.nop-divider {
  height: 1px;
  background: rgba(0,0,0,0.1);
  margin: 10px 32px;
}

/* Right column: secondary grouped links */
.nav-overlay-secondary {
  flex: 1;
  padding: 52px 40px 32px;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-content: flex-start;
}

.nos-group { min-width: 160px; }

.nos-group h4 {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.4);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nos-group a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-mid);
  text-decoration: none;
  font-size: 13.5px;
  padding: 5px 0;
  transition: color 0.18s;
}

.nos-group a::after {
  content: '›';
  font-size: 15px;
  line-height: 1;
  opacity: 0.4;
}

.nos-group a:hover { color: var(--accent); }

/* backdrop now handled by .nav-overlay itself */
.nav-backdrop { display: none !important; }

/* ===== TOP HEADER ===== */
.page-header {
  position: fixed;
  top: 0;
  left: max(0px, calc((100vw - var(--scrollbar-width) - var(--site-max)) / 2));
  right: max(0px, calc((100vw - var(--scrollbar-width) - var(--site-max)) / 2));
  height: var(--header-height);
  background: var(--header-bg);
  z-index: 298;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 0 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-tagline {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.02em;
  transition: opacity 0.4s ease, transform 0.4s ease;
  margin-left: 18px;
}

.logo-tagline.fading {
  opacity: 0;
  transform: translateY(-6px);
}

.logo-text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
}

.logo-text .logo-pro  { color: var(--white); }
.logo-text .logo-alert { color: var(--accent); }

.logo-img {
  height: 44px;
  width: auto;
}

/* Header hamburger button */
.header-hamburger {
  flex-shrink: 0;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background 0.2s;
}

.header-hamburger:hover {
  background: rgba(255,255,255,0.07);
}

.header-hamburger .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, width 0.3s;
}

.header-hamburger .menu-word {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: rgba(255,255,255,0.70);
  margin-top: 2px;
}

/* Open state — X */
.header-hamburger.is-open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header-hamburger.is-open .bar:nth-child(2) { opacity: 0; width: 0; }
.header-hamburger.is-open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (hover: hover) and (pointer: fine) {
  .header-hamburger:not(.is-open):hover .bar:nth-child(1) { transform: translateY(-2px); }
  .header-hamburger:not(.is-open):hover .bar:nth-child(3) { transform: translateY(2px); }
}

/* ===== MAIN WRAPPER ===== */
.main-wrapper {
  max-width: var(--site-max);
  margin: 0 auto;
  padding-top: var(--header-height);
  padding-bottom: var(--bottom-nav-height);
  min-height: 100vh;
}

.content-area {
  background: var(--white);
}

/* ===== FLY-IN ANIMATIONS ===== */
@keyframes flyInFromRight {
  from { opacity: 0; transform: translateX(70px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes flyInFromLeft {
  from { opacity: 0; transform: translateX(-70px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Base state — hidden until JS triggers them */
.fly-in {
  opacity: 0;
}
.fly-in.visible.fly-in-right {
  animation: flyInFromRight 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.fly-in.visible.fly-in-left {
  animation: flyInFromLeft  0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 540px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/fabrication-background.webp') center center / cover no-repeat;
  filter: brightness(0.38);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 64px;
  max-width: 680px;
  text-align: center;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 9999px;
  border: 1.5px solid;
}

.hero-badge i { font-size: 10px; }

.hero-badge-green {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(55, 202, 55, 0.12);
}

.hero-badge-cyan {
  color: #22d3ee;
  border-color: #22d3ee;
  background: rgba(34, 211, 238, 0.10);
}

.hero h1 {
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
}

/* Two-column hero layout with feature image */
.hero-split {
  height: auto;
  min-height: 540px;
  padding: 60px 0;
  justify-content: space-between;
  gap: 0;
}

.hero-split .hero-content {
  flex: 0 0 auto;
  width: 50%;
}

.hero-img-wrap {
  flex: 0 0 auto;
  width: 44%;
  padding-right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-img-wrap img {
  width: 100%;
  max-width: 460px;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.55);
  display: block;
}

.hero-img-caption {
  text-align: center;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  font-style: italic;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.03em;
  text-shadow: 0 1px 6px rgba(0,0,0,0.7), 0 2px 16px rgba(0,0,0,0.5);
}

/* Rounded corners utility for other images */
.rounded-img {
  border-radius: 14px;
  overflow: hidden;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 9999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.1s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,0.45);
  color: white;
}
.btn-ghost:hover {
  border-color: white;
  background: rgba(255,255,255,0.08);
}

.btn-dark {
  background: var(--sidebar-bg);
  border-color: var(--sidebar-bg);
  color: white;
}
.btn-dark:hover {
  background: #2c2a29;
  border-color: #2c2a29;
}

/* ===== SECTION EYEBROW (like "Who We Are" in Hayashi) ===== */
.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
  margin-bottom: 14px;
}

/* ===== SECTIONS ===== */
.section {
  padding: 72px 64px;
}

.section-alt { background: var(--bg-alt); }

.section h2 {
  font-family: var(--font-head);
  font-size: 36px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section h3 {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.section p {
  color: var(--text-mid);
  margin-bottom: 14px;
}

.view-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  margin-top: 24px;
  transition: color 0.2s;
}
.view-more:hover { color: var(--accent); }
.view-more i { font-size: 10px; }

/* ===== CONTENT CENTERING ===== */
/* Center eyebrows and headings in standalone sections */
.section > .eyebrow    { display: block; text-align: center; }
.section > h2          { text-align: center; }
.section > h3          { text-align: center; }
/* Paragraph blocks: centered layout, left-aligned reading text */
.section > p {
  text-align: left;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 14px;
}
/* Reset for nested layout components that need left-alignment */
.split-content            { text-align: left; }
.split-content .eyebrow   { text-align: left; }
.split-content h2,
.split-content h3         { text-align: left; }
.split-content p          { max-width: none; margin-left: 0; margin-right: 0; }
.split-content .view-more { justify-content: flex-start; }
.feature-card             { text-align: left; }
.industry-card            { text-align: left; }
.page-hero                { text-align: left; }
.edgesense-block          { text-align: left; }

/* ===== AT-A-GLANCE STATS (Hayashi style) ===== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-card {
  padding: 38px 28px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.stat-card:last-child { border-right: none; }

/* Rotated "At a Glance" label — Hayashi signature */
.stat-rotated-label {
  position: absolute;
  top: 50%;
  left: -26px;
  transform: translateY(-50%) rotate(-90deg);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d0d0d0;
  white-space: nowrap;
  font-family: var(--font-body);
  user-select: none;
}

.stat-num {
  font-family: var(--font-head);
  font-size: 52px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-num .unit {
  font-size: 22px;
  font-weight: 400;
  color: var(--text-light);
}

.stat-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.5;
}

/* ===== SPLIT SECTION ===== */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }

.split-img-wrap {
  overflow: hidden;
  min-height: 380px;
}

.split-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-img-wrap img.rounded-img {
  border-radius: 14px;
  object-fit: contain;
  padding: 24px;
  background: #f5f4f2;
  height: auto;
}

.split-content {
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* ===== FEATURE CARDS ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}

.feature-card {
  background: var(--white);
  padding: 36px 28px;
  transition: background 0.2s;
}
.feature-card:hover { background: #fafafa; }

.feature-icon {
  width: 46px;
  height: 46px;
  background: rgba(55, 202, 55, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 19px;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-mid);
  margin: 0;
}

/* ===== CTA BAND ===== */
.cta-band {
  background: var(--sidebar-bg);
  padding: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-band h2 {
  font-family: var(--font-head);
  font-size: 28px;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

.cta-band p {
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
  font-size: 14px;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--sidebar-bg);
  padding: 56px 64px 50px;
  border-bottom: 3px solid var(--accent);
}

.page-hero .eyebrow { color: rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.2); }

.page-hero h1 {
  font-family: var(--font-head);
  font-size: 38px;
  font-weight: 800;
  color: white;
  line-height: 1.18;
  max-width: 600px;
  margin-bottom: 14px;
}

.page-hero p {
  color: rgba(255,255,255,0.65);
  max-width: 540px;
  font-size: 15px;
}

/* ===== ICON LIST ===== */
.icon-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.icon-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-mid);
  font-size: 14px;
  line-height: 1.55;
}

.icon-list li i {
  color: var(--accent);
  margin-top: 3px;
  flex-shrink: 0;
  font-size: 13px;
}

/* ===== INDUSTRIES CARDS ===== */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.industry-card {
  border: 1px solid var(--border);
  padding: 36px 32px;
  border-radius: 3px;
  display: flex;
  gap: 22px;
  align-items: flex-start;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.industry-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(55,202,55,0.08);
}

.industry-card-icon {
  width: 52px;
  height: 52px;
  background: rgba(55,202,55,0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 22px;
  flex-shrink: 0;
}

.industry-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 13.5px;
  color: var(--text-mid);
  margin: 0;
  line-height: 1.6;
}

/* ===== GHL FORM EMBED ===== */
.form-embed-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  min-height: 600px;
}

.form-embed-wrap iframe {
  width: 100%;
  min-height: 580px;
  border: none;
  display: block;
}

/* ===== CONTACT INFO ===== */
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}

.contact-detail i {
  color: var(--accent);
  font-size: 16px;
  margin-top: 3px;
  flex-shrink: 0;
  width: 18px;
}

.contact-detail strong {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 3px;
}

.contact-detail span,
.contact-detail a {
  font-size: 15px;
  color: var(--text-dark);
  text-decoration: none;
}

.contact-detail a:hover { color: var(--accent); }

/* ===== FOOTER ===== */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,0.5);
  padding: 56px 64px 32px;
  /* Footer is inside .main-wrapper which already has padding-left for the sidebar.
     The footer background therefore starts at the sidebar's right edge — correct. */
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo-img {
  height: 52px;
  width: auto;
  display: block;
  margin-bottom: 20px;
}

.footer-brand .footer-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 22px;
  color: white;
  margin-bottom: 14px;
  display: block;
}

.footer-brand .footer-logo span { color: var(--accent); }

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 13px;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.footer-contact a:hover { color: var(--accent); }
.footer-contact a i { font-size: 12px; color: var(--accent); width: 14px; }

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 18px;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-col ul li a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { color: rgba(255,255,255,0.7); }

/* ===== TRUSTED BY STRIP ===== */
.trusted-by {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 36px 64px;
  background: var(--white);
}

.trusted-by-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  font-family: var(--font-body);
  margin-bottom: 24px;
  display: block;
  text-align: center;
}

.trusted-by-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.trusted-by-logos img {
  height: 36px;
  width: auto;
  opacity: 0.65;
  filter: grayscale(100%);
  transition: opacity 0.2s, filter 0.2s;
  object-fit: contain;
  display: block;
}

.trusted-by-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* Anchor-wrapped logos (e.g. ABI Tape) — behave identically to bare img siblings */
.trusted-by-logos a {
  display: flex;
  align-items: center;
  line-height: 0;
}

/* Highlight the Hayashi joint-venture logos */
.trusted-by-logos .logo-hayashi-jv {
  opacity: 0.8;
}

.trusted-by-highlight {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  font-family: var(--font-body);
}

.trusted-by-highlight i {
  color: var(--accent);
  font-size: 11px;
}

.trusted-by-highlight strong {
  color: var(--text-mid);
}

/* ===== EDGESENSE FEATURE BLOCK ===== */
.edgesense-block {
  background: #111;
  padding: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.edgesense-block h2 {
  color: white;
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.edgesense-block .eyebrow {
  color: var(--accent);
  border-color: var(--accent);
}

.edgesense-block p {
  color: rgba(255,255,255,0.6);
}

.edgesense-block .icon-list li {
  color: rgba(255,255,255,0.7);
}

.edgesense-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  border-radius: 6px;
  padding: 40px;
  border: 1px solid rgba(255,255,255,0.08);
}

.edgesense-logo-wrap img {
  max-width: 280px;
  width: 100%;
  height: auto;
}

/* ===== GHL FORM MODALS ===== */
.ghl-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 24px;
  overflow-y: auto;
}

.ghl-modal[hidden] { display: none; }

.ghl-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(3px);
  cursor: pointer;
}

.ghl-modal-box {
  position: relative;
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 620px;
  margin-top: 60px; /* clear the fixed header */
  margin-bottom: 40px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
  overflow: visible;
  z-index: 1;
}

.ghl-modal-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  padding: 20px 24px 0 24px;
}

.ghl-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.07);
  color: var(--text-dark);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  z-index: 2;
}

.ghl-modal-close:hover { background: rgba(0,0,0,0.14); }

.ghl-modal-body {
  overflow: hidden;
  border-radius: 0 0 14px 14px;
}

.ghl-modal-body iframe {
  display: block;
  width: 100%;
  border: none;
}

/* ===== TESTIMONIAL ===== */
.testimonial-card {
  max-width: 760px;
  margin-top: 36px;
  margin-left: auto;
  margin-right: auto;
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 32px 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}

.testimonial-card blockquote {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-attr {
  display: flex;
  align-items: center;
  gap: 20px;
}

.testimonial-logo {
  height: 36px;
  width: auto;
  opacity: 0.85;
}

.testimonial-attr strong {
  display: block;
  font-family: var(--font-head);
  font-size: 14px;
  color: var(--text-dark);
}

.testimonial-attr span {
  font-size: 12px;
  color: var(--text-light);
}

/* ===== BST PARENT COMPANY BLOCK ===== */
.bst-block {
  display: flex;
  align-items: center;
  gap: 60px;
}

.bst-block > div:first-child { flex: 1; }

.bst-logo-wrap {
  flex-shrink: 0;
}

.bst-logo-wrap img {
  max-width: 220px;
  width: 100%;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.bst-logo-wrap img:hover { opacity: 1; }

/* ===== FOOTER BST ===== */
.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.bst-logo {
  height: 36px;
  width: auto;
  opacity: 0.75;
  transition: opacity 0.2s;
}

.bst-link:hover .bst-logo { opacity: 0.9; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .trusted-by          { padding: 28px 36px; }
  .trusted-by-logos    { gap: 28px; }
  .edgesense-block     { grid-template-columns: 1fr; padding: 44px 36px; }
}

@media (max-width: 960px) {
  :root {
    --header-height:     64px;
    --bottom-nav-height: 56px;
  }

  .hero h1           { font-size: 32px; }
  .hero-content      { padding: 0 36px; }
  /* Stack hero image below text on tablets */
  .hero-split        { flex-direction: column; height: auto; padding: 44px 0 36px; }
  .hero-split .hero-content { width: 100%; }
  .hero-img-wrap     { width: 80%; padding: 24px 36px 0; }
  .section           { padding: 52px 36px; }
  .split-section     { grid-template-columns: 1fr; }
  .split-content     { padding: 44px 36px; }
  .stats-row         { grid-template-columns: 1fr 1fr; }
  .features-grid     { grid-template-columns: 1fr 1fr; }
  .industry-grid     { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .cta-band          { flex-direction: column; text-align: center; padding: 50px 36px; }
  .page-hero         { padding: 44px 36px 38px; }
  .page-hero h1      { font-size: 28px; }
  .site-footer       { padding: 44px 36px 28px; }
}

/* On tablet/mobile: modal shows only primary nav, full width inside box */
@media (max-width: 960px) {
  .nav-overlay-secondary { display: none; }
  .nav-overlay-primary {
    width: 100%;
    border-right: none;
    padding-left: 0;
  }
  .nav-overlay-primary li a .nop-icon { display: none; }
  .nav-overlay-primary li a {
    padding: 15px 28px;
    font-size: 15px;
    gap: 0;
    border-left: none;
    border-bottom: 1px solid rgba(0,0,0,0.07);
  }
  .nav-overlay-primary li a:hover,
  .nav-overlay-primary li.nop-active > a {
    border-left: none;
    padding-left: 36px;
  }
  .nop-arrow { color: rgba(0,0,0,0.45); font-size: 13px; }
}

@media (max-width: 640px) {
  :root {
    --header-height:     58px;
    --bottom-nav-height: 52px;
  }

  .bottom-nav a i        { font-size: 15px; }
  .bottom-nav a .nav-tip { font-size: 6.5px; }

  .hero-img-wrap     { width: 90%; padding: 20px 24px 0; }
  .hero h1           { font-size: 24px; }
  .hero-content      { padding: 0 24px; }
  .hero-sub          { font-size: 14px; }
  .logo-tagline      { font-size: 10px; }
  .section           { padding: 44px 24px; }
  .stats-row         { grid-template-columns: 1fr; }
  .features-grid     { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr; }
  .footer-bottom     { flex-direction: column; text-align: center; }
  .footer-bottom-left { justify-content: center; }
  .bst-block         { flex-direction: column; gap: 32px; }
  .bst-logo-wrap img { max-width: 160px; }
  .testimonial-card  { padding: 24px; }
  .testimonial-card blockquote { font-size: 16px; }
  .section h2        { font-size: 24px; }
  .cta-band          { padding: 40px 24px; }
  .page-hero         { padding: 36px 24px 30px; }
  .page-hero h1      { font-size: 24px; }
  .split-content     { padding: 36px 24px; }
  .site-footer       { padding: 36px 24px 24px; }
}
