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

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

/* ===== VARIABLES ===== */
:root {
  --sidebar-bg:    #3d3938;
  --header-bg:     #3d3938;
  --footer-bg:     #4a4846;
  --accent:        #37ca37;
  --accent-dark:   #2aaa2a;
  --text-dark:     #1a1a1a;
  --text-mid:      #555555;
  --text-light:    #999999;
  --border:        #e8e8e8;
  --bg-alt:        #f7f7f6;
  --white:         #ffffff;
  --sidebar-width:   80px;
  --header-height:   72px;
  --site-max:        1160px;  /* sidebar (80px) + content (1080px) */
  --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;
}

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0;
  /* Track the left edge of the centered container (subtract scrollbar so 100vw aligns with clientWidth) */
  left: max(0px, calc((100vw - var(--scrollbar-width) - var(--site-max)) / 2));
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--sidebar-bg);
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Hamburger button — same height as header to align */
.sidebar-hamburger {
  width: 100%;
  height: var(--header-height);
  border: none;
  background: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  flex-shrink: 0;
}

.sidebar-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;
}

.sidebar-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;
}

/* Hover state — bars angle to form a ">" pointing right (mouse/pointer devices only) */
@media (hover: hover) and (pointer: fine) {
  .sidebar-hamburger:not(.is-open):hover .bar:nth-child(1) {
    transform: translateY(7px) rotate(-40deg);
    transform-origin: right center;
  }
  .sidebar-hamburger:not(.is-open):hover .bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .sidebar-hamburger:not(.is-open):hover .bar:nth-child(3) {
    transform: translateY(-7px) rotate(40deg);
    transform-origin: right center;
  }
}

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

/* Divider under hamburger */
.sidebar-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.12);
  flex-shrink: 0;
}

/* Nav icons */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 8px 0;
  flex: 1;
  gap: 2px;
}

.sidebar-nav a {
  width: 100%;
  height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  color: rgba(255,255,255,0.62);
  transition: color 0.2s, background 0.2s;
  position: relative;
}

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

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

.sidebar-nav a:hover::before,
.sidebar-nav a.active::before {
  height: 28px;
}

.sidebar-nav a i {
  font-size: 17px;
}

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

/* Second group separator */
.sidebar-nav .nav-sep {
  width: 36px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 6px 0;
  pointer-events: none;
}

/* Scroll indicators at bottom of sidebar */
.sidebar-scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 10px 0 14px;
  flex-shrink: 0;
}

.scroll-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.52);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  font-family: var(--font-body);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s, opacity 0.3s;
  user-select: none;
  width: 100%;
  opacity: 1;
}

.scroll-btn i {
  font-size: 15px;
}

.scroll-btn:hover {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.07);
}

.scroll-btn.scroll-down i {
  animation: scrollBounce 1.8s ease-in-out infinite;
}

.scroll-btn.scroll-up i {
  animation: scrollBounceUp 1.8s ease-in-out infinite;
}

.scroll-btn.hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0);  opacity: 0.4; }
  50%       { transform: translateY(3px); opacity: 0.9; }
}

@keyframes scrollBounceUp {
  0%, 100% { transform: translateY(0);   opacity: 0.4; }
  50%       { transform: translateY(-3px); opacity: 0.9; }
}

/* ===== FULL-WIDTH NAV OVERLAY (Hayashi-style, slides down from top) ===== */
.nav-overlay {
  position: fixed;
  top: 0;
  /* Aligns with the content area — same left/right as the header */
  left: max(var(--sidebar-width), calc((100vw - var(--scrollbar-width) - var(--site-max)) / 2 + var(--sidebar-width)));
  right: max(0px, calc((100vw - var(--scrollbar-width) - var(--site-max)) / 2));
  height: 100vh;
  background: #ece9e5;          /* warm light gray — Hayashi's overlay tone */
  z-index: 299;                  /* below sidebar (300) so icon bar stays visible */
  /* Hides above viewport — translateY(-100%) always works regardless of left position */
  transform: translateY(-102%); /* extra 2% to hide box-shadow */
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
}

.nav-overlay.open {
  transform: translateY(0);
}

/* Inner layout: two columns */
.nav-overlay-inner {
  display: flex;
  min-height: 100%;
  padding-top: var(--header-height);
}

/* Left column: icon + primary link (mirrors sidebar) */
.nav-overlay-primary {
  width: 290px;
  flex-shrink: 0;
  border-right: 1px solid rgba(0,0,0,0.1);
  padding: 20px 0 40px;
  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: 32px 52px 40px;
  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 — covers stone-texture area outside the container when menu is open */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 200;
}
.nav-backdrop.open { display: block; }

/* ===== TOP HEADER ===== */
.page-header {
  position: fixed;
  top: 0;
  /* Start at right edge of sidebar within the container */
  left: max(var(--sidebar-width), calc((100vw - var(--scrollbar-width) - var(--site-max)) / 2 + var(--sidebar-width)));
  /* End at right edge of the container */
  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: flex-end;
  padding: 0 36px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.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;
}

.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;
}

/* ===== MAIN WRAPPER ===== */
.main-wrapper {
  max-width: var(--site-max);
  margin: 0 auto;          /* centers the container; stone texture shows on both sides */
  padding-top: var(--header-height);
  padding-left: var(--sidebar-width); /* reserve space for the fixed sidebar */
  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;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--accent);
}

.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;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: 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: inline-flex;
  align-items: 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; }

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

.stat-card {
  padding: 38px 28px 38px 40px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.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-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;
}

.trusted-by-logos {
  display: flex;
  align-items: center;
  gap: 48px;
  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;
}

.trusted-by-logos img:hover {
  opacity: 1;
  filter: grayscale(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;
  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;
}

/* ===== 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 {
    --sidebar-width: 64px;
    --header-height: 64px;
  }

  /* Cascade the narrower sidebar into the wrapper padding */
  .main-wrapper      { padding-left: 64px; }

  .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 mobile the overlay goes full-width; sidebar (z:300) stays on top so hamburger is reachable */
@media (max-width: 960px) {
  .nav-overlay {
    left: 0;
    right: 0;
  }
  .nav-overlay-secondary { display: none; }
  .nav-overlay-primary {
    width: 100%;
    border-right: none;
    /* push list content so it starts to the right of the sidebar */
    padding-left: var(--sidebar-width);
  }
  /* hide icon — it would sit under the sidebar on mobile */
  .nav-overlay-primary li a .nop-icon { display: none; }
  .nav-overlay-primary li a {
    padding: 16px 28px;
    font-size: 16px;
    gap: 0;
    border-left: none;           /* no left-border accent on mobile */
    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: 32px;          /* subtle indent on active/hover instead */
  }
  /* make the chevron clearly visible on the light background */
  .nop-arrow {
    color: rgba(0,0,0,0.45);
    font-size: 13px;
  }
}

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

  .main-wrapper      { padding-left: 52px; }

  .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; }
  .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; }
}
