/* ==========================================================================
   LŌKAHI SYSTEMS LLC (US) & LŌKAHI SYSTEMS KK (JAPAN)
   Complete Enterprise Bilingual Storefront Stylesheet
   ========================================================================== */

:root {
  --bg-header: #FFFFFF;
  --bg-dark: #0B111E;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --text-primary: #1F2937;
  --text-secondary: #374151;
  --text-muted: #4B5563;
  --text-white: #FFFFFF;
  --accent-teal: #14B8A6;
  --accent-teal-hover: #0D9488;
  --border-subtle: #E5E7EB;
  --max-width: 1280px;
  --header-height: 84px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --shadow-header: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-card: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Raleway', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, .nav-link, .btn, .lang-btn {
  font-family: 'Space Grotesk', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================================================
   STICKY WHITE BOS HEADER & EXACT 254x75 SVG LOGO
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--bg-header);
  height: var(--header-height);
  box-shadow: var(--shadow-header);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  width: 203px;
  height: 60px;
  flex-shrink: 0;
}

.brand-logo svg {
  width: 100%;
  height: 100%;
  display: block;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.4rem 0;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--accent-teal);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-teal);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--accent-teal);
}

/* Bilingual Switcher Pill (EN | 日本語) */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: #F3F4F6;
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 3px;
  flex-shrink: 0;
}

.lang-btn {
  background: transparent;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  line-height: 1.2;
}

.lang-btn.active {
  background-color: var(--bg-dark);
  color: var(--text-white);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.nav-cta {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid var(--bg-dark);
  white-space: nowrap;
  cursor: pointer;
}

.nav-cta:hover {
  background-color: var(--accent-teal);
  border-color: var(--accent-teal);
}

.mobile-menu-toggle {
  display: none;
  background: #F3F4F6;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  color: var(--text-secondary);
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 6.5rem 0;
  overflow: hidden;
  border-bottom: 4px solid var(--accent-teal);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.32;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(11, 17, 30, 0.93) 0%, rgba(11, 17, 30, 0.76) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(20, 184, 166, 0.18);
  border: 1px solid rgba(20, 184, 166, 0.45);
  color: #5EEAD4;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.1rem, 4.2vw, 3.35rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  letter-spacing: -0.015em;
}

.hero-subtitle {
  font-size: clamp(1.08rem, 1.9vw, 1.3rem);
  color: #E2E8F0;
  font-weight: 500;
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.hero-description {
  font-size: 1.02rem;
  color: #94A3B8;
  max-width: 780px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.85rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background-color: var(--accent-teal);
  color: var(--text-white);
  border: 2px solid var(--accent-teal);
  box-shadow: 0 4px 14px rgba(20, 184, 166, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-teal-hover);
  border-color: var(--accent-teal-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.35);
}

.btn-outline:hover {
  border-color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.08);
}

.btn-secondary-dark {
  background-color: var(--bg-dark);
  color: var(--text-white);
  border: 2px solid var(--bg-dark);
}

.btn-secondary-dark:hover {
  background-color: var(--text-secondary);
  border-color: var(--text-secondary);
  transform: translateY(-2px);
}

/* ==========================================================================
   20-MODULE BOS SOLUTIONS GRID
   ========================================================================== */
.section-modules {
  padding: 5.5rem 0;
  background-color: var(--bg-light);
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

.section-divider {
  width: 64px;
  height: 4px;
  background-color: var(--accent-teal);
  margin: 1rem auto 0 auto;
  border-radius: 2px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
  margin-bottom: 3.5rem;
}

.module-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.13);
}

.module-image-wrap {
  aspect-ratio: 1 / 1;
  width: 100%;
  overflow: hidden;
  background-color: var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
}

.module-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.module-card:hover .module-image-wrap img {
  transform: scale(1.03);
}

.module-body {
  padding: 1.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.module-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.module-tagline {
  display: block;
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 600;
  color: var(--accent-teal-hover);
  margin-bottom: 1.1rem;
}

.module-text {
  color: var(--text-secondary);
  font-size: 0.96rem;
  line-height: 1.7;
}

.section-cta-center {
  text-align: center;
}

/* ==========================================================================
   SPLIT SECTIONS (COMMITMENT & SHOP FLOOR)
   ========================================================================== */
.section-split {
  padding: 5.5rem 0;
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-subtle);
}

.section-split.alt-bg {
  background-color: var(--bg-light);
}

.split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.split-grid.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.split-content h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  line-height: 1.3;
}

.split-content p {
  font-size: 1.02rem;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
  line-height: 1.75;
}

.split-image-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

/* ==========================================================================
   PORTFOLIO PAGE & INNER PAGE STYLES
   ========================================================================== */
.page-hero-compact {
  background-color: var(--bg-dark);
  color: var(--text-white);
  padding: 4.5rem 0;
  text-align: center;
  border-bottom: 4px solid var(--accent-teal);
}

.page-hero-title {
  font-size: clamp(2rem, 3.8vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-hero-sub {
  max-width: 760px;
  margin: 0 auto;
  color: #CBD5E1;
  font-size: 1.1rem;
}

.section-portfolio {
  padding: 4.5rem 0 6rem 0;
  background-color: var(--bg-light);
}

.portfolio-featured-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3rem;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  margin-bottom: 3.5rem;
  align-items: center;
}

.portfolio-featured-img {
  height: 100%;
  min-height: 360px;
  background-color: var(--bg-dark);
  overflow: hidden;
}

.portfolio-featured-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-featured-card:hover .portfolio-featured-img img {
  transform: scale(1.03);
}

.portfolio-featured-body {
  padding: 2.5rem 2.5rem 2.5rem 0;
}

.portfolio-meta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portfolio-badge {
  background-color: rgba(20, 184, 166, 0.14);
  color: var(--accent-teal-hover);
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portfolio-featured-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.portfolio-featured-title a:hover,
.module-title a:hover {
  color: var(--accent-teal-hover);
}

.portfolio-featured-excerpt {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.75rem;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.25rem;
}

.portfolio-link {
  margin-top: auto;
  padding-top: 1.25rem;
  display: inline-block;
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-teal-hover);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.portfolio-link:hover {
  color: var(--text-primary);
  transform: translateX(3px);
}

/* ==========================================================================
   OPERATIONAL READINESS AUDIT PAGE STYLES
   ========================================================================== */
.section-audit {
  padding: 5rem 0 6rem 0;
  background-color: var(--bg-white);
}

.audit-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: start;
}

.audit-section-heading {
  font-size: clamp(1.45rem, 2.3vw, 1.85rem);
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.25rem 0 1rem 0;
  line-height: 1.3;
}

.audit-content .audit-section-heading:first-child {
  margin-top: 0;
}

.audit-content p {
  font-size: 1.04rem;
  color: var(--text-secondary);
  margin-bottom: 1.35rem;
  line-height: 1.75;
}

.audit-deliverable-card {
  background-color: var(--bg-light);
  border-left: 4px solid var(--accent-teal);
  border-top: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 2rem;
  margin: 2.25rem 0;
  box-shadow: var(--shadow-card);
}

.deliverable-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.deliverable-intro {
  font-size: 0.98rem !important;
  margin-bottom: 1rem !important;
}

.deliverable-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.deliverable-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.85rem;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.deliverable-list li:last-child {
  margin-bottom: 0;
}

.deliverable-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent-teal-hover);
  font-weight: 800;
}

.audit-cta-wrap {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.audit-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.audit-image-card {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-subtle);
}

.audit-image-card img {
  width: 100%;
  height: auto;
  display: block;
}

.audit-image-caption {
  padding: 1.5rem;
  color: #CBD5E1;
  font-size: 0.92rem;
  line-height: 1.6;
}

.caption-tag {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5EEAD4;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   CONTACT PAGE EXECUTIVE ROUTING CARD
   ========================================================================== */
.contact-routing-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-teal);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.85rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-card);
}

.routing-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.routing-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.routing-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.routing-label {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  min-width: 190px;
  font-size: 0.95rem;
}

.routing-value {
  color: var(--accent-teal-hover);
  font-weight: 600;
  font-size: 0.98rem;
  cursor: pointer;
}

.routing-value:hover {
  text-decoration: underline;
}

.routing-text {
  color: var(--text-secondary);
  font-size: 0.96rem;
}

/* ==========================================================================
   CASE STUDY DOSSIER PAGE (case-study.html) & TESTIMONIALS PAGE
   ========================================================================== */
.cs-hero {
  text-align: left;
  padding: 3.5rem 0 4rem 0;
}

.cs-hero .page-hero-sub {
  margin: 0;
  max-width: 860px;
}

.cs-back-row {
  margin-bottom: 1.5rem;
}

.cs-back-link {
  display: inline-flex;
  align-items: center;
  color: #94A3B8;
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
}

.cs-back-link:hover {
  color: #5EEAD4;
  transform: translateX(-3px);
}

.section-cs-dossier,
.section-testimonials {
  padding: 4.5rem 0 6rem 0;
  background-color: var(--bg-light);
}

.cs-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3.5rem;
  align-items: start;
}

.cs-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

.test-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 3rem;
}

.cs-kpi-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--accent-teal);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-card);
}

.cs-kpi-val {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--bg-dark);
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.cs-kpi-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.4;
}

.cs-block {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-card);
}

.cs-security-box {
  border-left: 4px solid var(--accent-teal);
  background: linear-gradient(to right, rgba(20, 184, 166, 0.04), #FFFFFF 25%);
}

.cs-step-tag {
  display: inline-block;
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-teal-hover);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.cs-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cs-prose p {
  font-size: 1.03rem;
  color: var(--text-secondary);
  line-height: 1.78;
}

.cs-prose code {
  background: #F1F5F9;
  color: #0F172A;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
}

.cs-bottom-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}

.cs-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.cs-visual-card,
.cs-nav-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.cs-img-wrap {
  aspect-ratio: 1 / 1;
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border-subtle);
}

.cs-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cs-spec-sheet {
  padding: 1.5rem;
}

.cs-spec-title,
.cs-nav-title {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.cs-spec-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.88rem;
}

.cs-spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cs-spec-label {
  font-weight: 700;
  color: var(--text-muted);
}

.cs-spec-val {
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
}

.cs-nav-card {
  padding: 1.5rem;
}

.cs-prev-next {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cs-nav-item {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.cs-nav-item:hover {
  border-color: var(--accent-teal);
  background: rgba(20, 184, 166, 0.05);
}

.cs-nav-dir {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-teal-hover);
  margin-bottom: 0.2rem;
}

.cs-nav-name {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ==========================================================================
   TESTIMONIAL SPOTLIGHT CARD & FAULT LEDGER STYLES
   ========================================================================== */
.testimonial-spotlight-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-left: 6px solid var(--accent-teal);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.testimonial-quote-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  gap: 1rem;
}

.testimonial-client-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.testimonial-doc-ref {
  font-family: 'Space Grotesk', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.testimonial-quote-icon {
  font-family: Georgia, serif;
  font-size: 4.5rem;
  line-height: 0.7;
  color: rgba(20, 184, 166, 0.22);
  user-select: none;
}

.testimonial-blockquote {
  font-size: clamp(1.12rem, 1.8vw, 1.32rem);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.75;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.testimonial-author-name {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bg-dark);
}

.testimonial-author-role {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-teal-hover);
}

.testimonial-asset-pill {
  background: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.85rem;
}

.asset-pill-label {
  font-weight: 700;
  color: var(--text-muted);
  margin-right: 0.35rem;
}

.asset-pill-val {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  color: var(--text-primary);
}

.phase-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.phase-header-row .cs-step-tag {
  margin-bottom: 0;
}

.phase-status-badge {
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent-teal-hover);
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.fault-ledger-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fault-ledger-list li {
  background: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-teal);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
}

.fault-code {
  display: block;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-teal-hover);
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.fault-desc {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* ==========================================================================
   NATIVE BOS AUDIT & WALKTHROUGH SCHEDULER MODAL STYLES
   (SINGLE-SCREEN FIT + ROUNDED CORNER CLIPPING + INTERACTIVE SLOT PILLS)
   ========================================================================== */
.exec-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: rgba(11, 17, 30, 0.8);
  backdrop-filter: blur(5px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.exec-modal-backdrop.active {
  display: flex;
}

.exec-modal-card {
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border-top: 5px solid var(--accent-teal);
  max-width: 620px;
  width: 100%;
  padding: 1.4rem 1.75rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
  position: relative;
  text-align: left;
  max-height: 95vh;
  overflow-x: hidden;
  overflow-y: auto;
  clip-path: inset(0 round var(--radius-lg));
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.exec-modal-card::-webkit-scrollbar {
  width: 6px;
}

.exec-modal-card::-webkit-scrollbar-track {
  background: transparent;
  margin-block: 14px;
}

.exec-modal-card::-webkit-scrollbar-thumb {
  background-color: #CBD5E1;
  border-radius: 999px;
}

.exec-modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.95rem;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.exec-modal-close:hover {
  color: var(--text-primary);
}

.exec-modal-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0.4rem 0 0.25rem 0;
  line-height: 1.25;
}

.exec-modal-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}

.contact-embedded-form-card {
  background: var(--bg-white);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--accent-teal);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-card);
  overflow-x: hidden;
}

.lokahi-audit-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
}

.audit-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.75rem;
  width: 100%;
}

.audit-form-field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  min-width: 0;
  width: 100%;
}

.audit-form-field label {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audit-form-field input,
.audit-form-field select,
.audit-form-field textarea {
  font-family: 'Raleway', 'Noto Sans JP', sans-serif;
  font-size: 0.88rem;
  color: var(--text-primary);
  background-color: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-overflow: ellipsis;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.audit-form-field textarea {
  min-height: 50px;
  max-height: 95px;
  resize: vertical;
}

.audit-form-field input:focus,
.audit-form-field select:focus,
.audit-form-field textarea:focus {
  outline: none;
  border-color: var(--accent-teal);
  background-color: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

/* Native BOS Walkthrough Date & Time-Slot Picker Box */
.bos-scheduler-box {
  background: #F8FAFC;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent-teal);
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.bos-scheduler-header {
  margin-bottom: 0.45rem;
}

.bos-scheduler-title {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-teal-hover);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bos-slot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.bos-slot-pill {
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.38rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bos-slot-pill:hover:not(.booked) {
  border-color: var(--accent-teal);
  color: var(--accent-teal-hover);
}

.bos-slot-pill.active {
  background-color: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #5EEAD4;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.2);
}

.bos-slot-pill.booked {
  background-color: #F1F5F9;
  color: #94A3B8;
  text-decoration: line-through;
  cursor: not-allowed;
}

.audit-form-status {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.audit-form-status.success {
  background-color: rgba(20, 184, 166, 0.12);
  border: 1px solid var(--accent-teal);
  color: #0F172A;
}

.audit-form-status.fallback {
  background-color: #FEF3C7;
  border: 1px solid #F59E0B;
  color: #78350F;
}

.exec-full-btn {
  width: 100%;
  padding: 0.75rem 1.25rem;
}

.exec-modal-footer {
  margin-top: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.exec-copy-inline-btn {
  background: #F1F5F9;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.28rem 0.65rem;
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
}

.exec-copy-inline-btn:hover {
  border-color: var(--accent-teal);
  color: var(--accent-teal-hover);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--bg-white);
  color: var(--text-secondary);
  padding: 4.5rem 0 2.5rem 0;
  border-top: 2px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand .brand-logo {
  margin-bottom: 1rem;
}

.footer-heading {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-link {
  color: var(--accent-teal-hover);
  font-weight: 600;
  cursor: pointer;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-bottom-links a:hover {
  color: var(--accent-teal-hover);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS (TABLET & MOBILE HEADER CONTAINMENT)
   ========================================================================== */
@media (max-width: 992px) {
  .modules-grid {
    grid-template-columns: 1fr;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .split-grid,
  .split-grid.reverse,
  .audit-grid,
  .cs-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .audit-sidebar,
  .cs-sidebar {
    position: static;
    max-width: 560px;
    margin: 0 auto;
  }

  .portfolio-featured-card {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .portfolio-featured-body {
    padding: 2rem;
  }

  .portfolio-grid,
  .test-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 70px;
  }

  .header-inner {
    padding: 0 0.85rem;
    gap: 0.5rem;
  }

  .brand-logo {
    width: 148px;
    height: 44px;
  }

  .header-right {
    gap: 0.45rem;
    flex-shrink: 0;
  }

  .lang-btn {
    padding: 0.3rem 0.55rem;
    font-size: 0.74rem;
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem 0.6rem;
    font-size: 0.76rem;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.15rem;
    border-bottom: 2px solid var(--accent-teal);
    box-shadow: var(--shadow-card);
  }

  .main-nav.active {
    display: flex;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero-section {
    padding: 4.5rem 0;
  }

  .testimonial-spotlight-card {
    padding: 1.75rem;
  }

  .exec-modal-card {
    padding: 1.25rem 1.15rem;
  }
}

@media (max-width: 680px) {
  .portfolio-grid,
  .cs-kpi-strip,
  .test-kpi-grid,
  .audit-form-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   UNIFORM 38PX HEADER BUTTONS, DETERMINISTIC LANG TOGGLE & 2x2 DEMO GRID
   ========================================================================== */

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand-logo {
  width: 170px;
  height: 50px;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 1;
  min-width: 0;
}

/* Side-by-side persistent CTA container with guaranteed horizontal padding between buttons */
.header-persistent-ctas {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.nav-link {
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.22;
  padding: 0.25rem 0.2rem;
  position: relative;
  text-align: center;
  max-width: 128px;
  white-space: normal !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Live Pulsing Emerald Dot */
.live-pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  margin-right: 0.45rem;
  flex-shrink: 0;
  animation: lokahiPulse 2s infinite;
}

@keyframes lokahiPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* UNIFORM 38PX HEIGHT FOR ALL HEADER CONTROLS (Live Demo, Request Consultation, EN|日本語, Menu) */
.nav-sandbox-btn,
.nav-cta,
.lang-switcher,
.mobile-menu-toggle {
  height: 38px !important;
  box-sizing: border-box !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
  flex-shrink: 0;
}

.nav-sandbox-btn {
  background-color: rgba(20, 184, 166, 0.12);
  color: #0F766E;
  border: 1.5px solid var(--accent-teal);
  padding: 0 0.85rem !important;
  border-radius: 8px;
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap !important;
  transition: all 0.2s ease;
}

.nav-sandbox-btn:hover {
  background-color: var(--bg-dark);
  color: var(--text-white);
  border-color: var(--bg-dark);
  transform: translateY(-1px);
}

.nav-cta {
  padding: 0 0.9rem !important;
  border-radius: 8px;
  font-size: 0.76rem;
  white-space: nowrap !important;
}

/* Unified 1-Click Language Toggle Pill (Exact 38px Height) */
.lang-switcher {
  cursor: pointer !important;
  user-select: none;
  padding: 3px !important;
  border-radius: 999px;
  background-color: #F3F4F6;
  border: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease;
}

.lang-switcher:hover {
  border-color: var(--accent-teal);
}

.lang-switcher .lang-btn {
  pointer-events: none;
  height: 30px;
  padding: 0 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  line-height: 1 !important;
  border-radius: 999px;
  white-space: nowrap !important;
}

.mobile-menu-toggle {
  display: none;
  padding: 0 0.75rem !important;
  font-size: 0.76rem;
}

/* Tier 1 Hero Demo Spotlight Box */
.hero-demo-spotlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 620px;
}

.btn-sandbox-hero {
  background-color: #FFFFFF;
  color: var(--bg-dark);
  border: 2px solid #5EEAD4;
  padding: 1.05rem 2.1rem;
  font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(20, 184, 166, 0.35);
}

.btn-sandbox-hero:hover {
  background-color: #5EEAD4;
  color: var(--bg-dark);
  border-color: #5EEAD4;
  transform: translateY(-2px);
}

.hero-sandbox-microcopy {
  margin-top: 0.6rem;
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  color: #5EEAD4;
  letter-spacing: 0.02em;
}

/* Mid-Page 4-Card "Choose a Shop-Floor Bottleneck" 2x2 Grid */
.section-sandbox-showcase {
  padding: 5.5rem 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
}

.sandbox-section-subtitle {
  max-width: 780px;
  margin: 0.75rem auto 0 auto;
  font-size: 1.04rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.sandbox-bottleneck-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.sandbox-bottleneck-card {
  background: var(--bg-light);
  border: 1px solid var(--border-subtle);
  border-top: 4px solid var(--accent-teal);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sandbox-bottleneck-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  border-color: var(--accent-teal);
}

.sandbox-step-pill {
  display: inline-block;
  font-family: 'Space Grotesk', 'Noto Sans JP', sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-teal-hover);
  margin-bottom: 0.6rem;
}

.sandbox-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: 0.85rem;
}

.sandbox-card-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.72;
}

.sandbox-card-cta {
  width: 100%;
  text-align: center;
}

/* At 175% & 200% zoom (<= 1180px effective width), tuck ONLY the 4 text links into MENU
   while keeping LIVE DEMO, REQUEST CONSULTATION, and EN | 日本語 side-by-side at 38px height */
@media (max-width: 1180px) {
  .mobile-menu-toggle {
    display: inline-flex !important;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.15rem;
    border-bottom: 2px solid var(--accent-teal);
    box-shadow: var(--shadow-card);
  }

  .main-nav.active {
    display: flex;
  }

  .nav-link {
    max-width: none;
    font-size: 0.95rem;
  }
}

@media (max-width: 992px) {
  .sandbox-bottleneck-grid {
    grid-template-columns: 1fr;
  }
}

/* Clean 2-Tier Mobile Header (<= 860px):
   Row 1: Lōkahi Logo (Left) + EN|日本語 & MENU (Right)
   Row 2: 50/50 Symmetrical Split Bar for LIVE DEMO + REQUEST CONSULTATION */
@media (max-width: 860px) {
  .site-header {
    height: auto !important;
    min-height: 98px;
    padding: 0.5rem 0 0.55rem 0;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 0 0.85rem;
    gap: 0.45rem 0.5rem;
  }

  .brand-logo {
    width: 138px;
    height: 41px;
    order: 1;
  }

  /* Dissolve .header-right wrapper on mobile so its children participate directly in the 2-row flex layout */
  .header-right {
    display: contents;
  }

  .lang-switcher {
    order: 2;
    margin-left: auto;
    height: 34px !important;
  }

  .lang-switcher .lang-btn {
    height: 26px;
    padding: 0 0.55rem;
    font-size: 0.7rem;
  }

  .mobile-menu-toggle {
    order: 3;
    height: 34px !important;
    padding: 0 0.65rem !important;
    font-size: 0.72rem;
  }

  /* Row 2: Full-Width 50/50 Action Deck for Live Demo & Request Consultation */
  .header-persistent-ctas {
    order: 4;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--border-subtle);
  }

  .nav-sandbox-btn,
  .nav-cta {
    width: 100%;
    height: 36px !important;
    padding: 0 0.5rem !important;
    font-size: 0.72rem;
    justify-content: center;
  }

  .main-nav {
    top: 100% !important;
  }
}

/* ==========================================================================
   EQUAL WIDTH & HEIGHT ENFORCEMENT FOR PAIRED CTA BUTTONS
   (operation-readiness-audit.html, testimonials.html, case-study.html, index.html)
   ========================================================================== */

.audit-cta-wrap,
.cs-bottom-cta {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  width: 100%;
  margin-top: 2.25rem;
}

.audit-cta-wrap > .btn,
.cs-bottom-cta > .btn {
  width: 100% !important;
  height: 100% !important;
  min-height: 54px;
  padding: 0.9rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  box-sizing: border-box;
}

/* Keep Hero secondary action pair equal width & height as well */
.hero-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
  max-width: 760px;
  width: 100%;
  margin: 0 auto;
}

.hero-actions > .btn {
  width: 100% !important;
  height: 100% !important;
  min-height: 54px;
  text-align: center;
  line-height: 1.3;
}

/* When stacked on narrower viewports, both buttons still match 100% width and height */
@media (max-width: 768px) {
  .audit-cta-wrap,
  .cs-bottom-cta,
  .hero-actions {
    grid-template-columns: 1fr;
  }
}

/* Synchronize Home Page Hero top/bottom padding (4.5rem) with all inner pages (.page-hero-compact) */
.hero-section {
  padding: 4.5rem 0 !important;
}

/* ==========================================================================
   CONSULTATION MODAL UI FIXES:
   1. Single-Line Top Badge Clearance
   2. iOS Safari <input type="date"> Strict Width Containment
   3. Zero-Truncation Field Labels & 5-Line Minimum Floor Notes Textarea
   ========================================================================== */

/* Keep top modal badge compact and clear of the close 'X' button */
.exec-modal-card > .portfolio-badge {
  display: inline-block;
  max-width: calc(100% - 2.5rem);
  font-size: 0.72rem;
  line-height: 1.3;
  white-space: normal;
}

/* Never truncate form field labels or scheduler headers with '...' */
.audit-form-field label,
.bos-scheduler-title {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.35;
}

/* Prevent iOS Safari <input type="date"> from bleeding outside .bos-scheduler-box */
.bos-scheduler-box {
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.bos-scheduler-box input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  min-height: 40px;
  text-align: left;
}

/* Enforce 5-line minimum height on "What's Going On Out on the Floor?" textarea */
.audit-form-field textarea {
  min-height: 120px !important;
  max-height: 260px !important;
  line-height: 1.55;
  padding: 0.65rem 0.75rem !important;
  resize: vertical;
}