/* ============================================================
   TOP PRECISION MANUFACTURING SDN BHD
   Corporate Site Stylesheet — TF-AMD Pattern, Light Theme
   Accent: Steel Blue #1A56DB | Base: #FFFFFF / #F7F8FA
   ============================================================ */

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

/* ---------- CSS CUSTOM PROPERTIES ---------- */
:root {
  /* Colors */
  --bg: #ffffff;
  --bg-2: #f7f8fa;
  --bg-3: #eef1f5;
  --surface: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --accent: #1a56db;
  --accent-dark: #1e3a8a;
  --accent-light: #3b82f6;
  --accent-hover: #1d4ed8;
  --accent-bg: rgba(26, 86, 219, 0.06);
  --brand-red: #e31b23;

  --text: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-dim: #94a3b8;
  --white: #ffffff;

  --footer-bg: #0f172a;
  --cta-bg: #0f172a;

  /* Typography */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-heading: 'Montserrat', sans-serif;

  /* Layout */
  --header-h: 92px;
  --max-w: 1280px;
  --radius: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t: 0.25s var(--ease);
  --t-slow: 0.4s var(--ease);
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

#footer-placeholder {
  margin-top: auto;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  background: none;
}

address {
  font-style: normal;
}

input,
select,
textarea {
  font-family: inherit;
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 1440px) {
  .container {
    padding: 0 48px;
  }
}

/* ---------- TYPOGRAPHY ---------- */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-heading);
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
}

p {
  color: var(--text-body);
  line-height: 1.7;
}

.accent {
  color: var(--accent);
}

.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  font-family: var(--font-sans);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
    transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-d1 {
  transition-delay: 0.1s;
}
.reveal-d2 {
  transition-delay: 0.2s;
}
.reveal-d3 {
  transition-delay: 0.3s;
}
.reveal-d4 {
  transition-delay: 0.4s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px; /* Updated to pill shape */
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--t);
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn-white {
  background: #fff;
  color: var(--accent);
  border: 2px solid #fff;
}

.btn-white:hover {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn-sm {
  padding: 9px 20px;
  font-size: 0.82rem;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ============================================================
   TOP UTILITY BAR (Disabled/Hidden)
   ============================================================ */
.utility-bar {
  display: none !important;
}

.utility-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.utility-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.utility-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.utility-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--t);
  font-size: 0.78rem;
}

.utility-link:hover {
  color: #fff;
}

.utility-link svg {
  width: 13px;
  height: 13px;
}

/* Language Toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none !important;
  background: transparent !important;
  border-radius: 0 !important;
  overflow: visible !important;
}

.lang-btn {
  padding: 0 !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  min-width: unset !important;
  transition: color var(--t);
  font-family: var(--font-sans);
  text-transform: uppercase;
}

/* Dark theme toggle (default, e.g. for footer) */
.lang-toggle .lang-btn {
  color: rgba(255, 255, 255, 0.45);
}

.lang-toggle .lang-btn.active {
  color: #fff;
}

.lang-toggle .lang-btn:hover:not(.active) {
  color: #fff;
  background: transparent !important;
}

.lang-toggle .lang-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.85rem;
  font-weight: 400;
  user-select: none;
}

/* Light theme toggle (e.g. for header and mobile menu) */
.nav-lang-item {
  margin-left: 24px;
  display: flex;
  align-items: center;
}

.nav-lang-item .lang-toggle,
.mobile-cta .lang-toggle {
  border: none !important;
  background: transparent !important;
}

.nav-lang-item .lang-btn,
.mobile-cta .lang-btn {
  color: var(--text-muted);
}

.nav-lang-item .lang-btn.active,
.mobile-cta .lang-btn.active {
  color: var(--accent) !important;
  background: transparent !important;
}

.nav-lang-item .lang-btn:hover:not(.active),
.mobile-cta .lang-btn:hover:not(.active) {
  color: var(--text);
  background: transparent !important;
}

.nav-lang-item .lang-divider,
.mobile-cta .lang-divider {
  color: var(--border);
}

/* ============================================================
   SITE HEADER & NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition:
    top var(--t),
    box-shadow var(--t),
    background var(--t);
}

.site-header.scrolled {
  top: 0;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom-color: transparent;
}

.site-header.utility-hidden {
  top: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 0;
}

/* Logo */
.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: 40px;
}

.site-logo img {
  height: 64px;
  width: auto;
  display: block;
}

.logo-wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--brand-red);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.logo-wordmark span {
  color: var(--brand-red);
}

.logo-wordmark .logo-sub-text {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #000000;
  display: block;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Main Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  height: 100%;
}
.nav-items {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

.nav-items > li {
  position: static;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 18px;
  height: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  transition: color var(--t);
  white-space: nowrap;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

.nav-link .chevron {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  transition: transform var(--t);
  flex-shrink: 0;
}

.nav-items > li:hover .nav-link .chevron,
.nav-items > li.open .nav-link .chevron {
  transform: rotate(180deg);
}

/* Active underline */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 18px;
  right: 18px;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
  border-radius: 2px 2px 0 0;
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: scaleX(1);
}

/* Header CTA */
.nav-cta-item {
  margin-left: 24px;
}

.btn-header-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  font-size: 0.85rem;
  background: var(--accent) !important;
  color: #ffffff !important;
  border-radius: 9999px !important;
  border: none !important;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3) !important;
  transition:
    background-color var(--t),
    box-shadow var(--t);
}

.btn-header-cta:hover {
  background: var(--accent-dark) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 20px rgba(26, 86, 219, 0.45) !important;
}

/* ---- MEGA MENUS ---- */
.has-mega {
  position: static;
}
.mega-menu-wrapper {
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 3px solid var(--accent);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition:
    opacity 0.2s var(--ease),
    visibility 0.2s,
    transform 0.2s var(--ease);
  z-index: 999;
  pointer-events: none;
}
.site-header.scrolled + * .mega-menu-wrapper,
.site-header.scrolled .mega-menu-wrapper {
  top: var(--header-h);
}
.has-mega:hover .mega-menu-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}
/* Keep menu open when mouse moves from link to menu */
.mega-menu-wrapper:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.mega-inner {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 0;
  min-height: 340px;
}

.mega-preview {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}

.mega-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}

.mega-preview-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.mega-links {
  padding: 32px 40px;
}

.mega-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mega-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mega-list.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 32px;
}

.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  transition:
    background var(--t),
    transform var(--t);
  cursor: pointer;
}

.mega-item:hover {
  background: var(--bg-2);
}

.mega-item:hover .mega-item-title {
  color: var(--accent);
}

.mega-item-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.mega-item-icon svg {
  width: 16px;
  height: 16px;
}

.mega-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
  transition: color var(--t);
}

.mega-item-desc {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ---- HAMBURGER & MOBILE NAV ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background var(--t);
  cursor: pointer;
  border: none;
  background: none;
  margin-left: auto;
}

.hamburger:hover {
  background: var(--bg-2);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--t);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  overflow-y: auto;
  z-index: 998;
  padding: 16px 0 48px;
  border-top: 3px solid var(--accent);
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
}

.mobile-nav.open {
  transform: none;
}

.mobile-nav-section {
  padding: 8px 24px;
}

.mobile-nav-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 12px 0 8px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}

.mobile-nav-sublink {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 0.88rem;
  color: var(--text-body);
  border-radius: var(--radius-md);
  margin: 2px 0;
  transition:
    background var(--t),
    color var(--t);
}

.mobile-nav-sublink:hover {
  background: var(--bg-2);
  color: var(--accent);
}

.mobile-nav-sublink svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

.mobile-cta {
  margin: 20px 24px 0;
}

.mobile-cta .btn {
  width: 100%;
  border-radius: 8px !important;
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: block;
  }

  .site-logo {
    margin-right: auto;
  }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  max-height: 900px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--text);
  margin-top: var(--header-h);
}

@media (max-width: 768px) {
  .hero {
    margin-top: var(--header-h);
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(10, 15, 30, 0.82) 0%, rgba(10, 20, 50, 0.6) 55%, rgba(10, 20, 50, 0.3) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 20px 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 8px;
}

.hero-headline-sub {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
  font-style: italic;
}

.hero-body {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%,
  100% {
    opacity: 1;
    transform: scaleY(1);
  }

  50% {
    opacity: 0.3;
    transform: scaleY(0.6);
  }
}

@media (max-width: 768px) {
  .hero {
    max-height: 680px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-scroll {
    display: none;
  }
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 52px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 0 40px;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.stat-sublabel {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stat-item {
    padding: 0;
  }

  .stat-item + .stat-item::before {
    display: none;
  }

  .stats-bar {
    padding: 40px 0;
  }
}

/* ============================================================
   INTRO SPLIT SECTION
   ============================================================ */
.intro-split {
  padding: 80px 0;
  background: var(--bg-2);
}

.intro-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.intro-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}

.intro-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--t-slow);
}

.intro-image-wrap:hover img {
  transform: scale(1.03);
}

.intro-text h2 {
  margin-bottom: 20px;
}

.intro-text p {
  color: var(--text-body);
  margin-bottom: 16px;
  font-size: 1.05rem;
}

.intro-text .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 8px;
  transition:
    gap var(--t),
    color var(--t);
}

.intro-text .read-more svg {
  width: 16px;
  height: 16px;
}

.intro-text .read-more:hover {
  gap: 10px;
  color: var(--accent-dark);
}

@media (max-width: 900px) {
  .intro-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* ============================================================
   CAPABILITIES GRID
   ============================================================ */
.capabilities-section {
  padding: 80px 0;
  background: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cap-tile {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.cap-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}

.cap-tile:hover .cap-tile-img {
  transform: scale(1.06);
}

.cap-tile-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 20, 50, 0.88) 0%, rgba(10, 20, 50, 0.3) 50%, transparent 100%);
  transition: background var(--t-slow);
}

.cap-tile:hover .cap-tile-overlay {
  background: linear-gradient(to top, rgba(26, 86, 219, 0.9) 0%, rgba(26, 86, 219, 0.4) 50%, transparent 100%);
}

.cap-tile-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 24px 20px;
}

.cap-tile-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.2;
}

.cap-tile-arrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  transition:
    gap var(--t),
    color var(--t);
}

.cap-tile:hover .cap-tile-arrow {
  gap: 10px;
  color: #fff;
}

.cap-tile-arrow svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 900px) {
  .cap-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .cap-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FEATURE SECTION (Image + Value Props)
   ============================================================ */
.feature-section {
  background: var(--bg-2);
  padding: 80px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.feature-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-height: 560px;
  box-shadow: var(--shadow-lg);
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-text h2 {
  margin-bottom: 16px;
}

.feature-text > p {
  color: var(--text-body);
  margin-bottom: 36px;
  font-size: 1.05rem;
}

.value-props {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.value-prop {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.value-prop-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: var(--accent-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.value-prop-icon svg {
  width: 20px;
  height: 20px;
}

.value-prop-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.value-prop p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .feature-image {
    aspect-ratio: 16/9;
    max-height: 360px;
  }

  .value-props {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--cta-bg);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(26, 86, 219, 0.12) 0%, transparent 70%);
}

.cta-band-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.cta-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.cta-headline-outline {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.3);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.cta-headline-solid {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.cta-body {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 600px) {
  .cta-band {
    padding: 72px 0;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================================
   CAPABILITIES PAGE — Service Cards
   ============================================================ */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  padding: 80px 0;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.service-card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-card-img {
  transform: scale(1.05);
}

.service-card-img-wrapper {
  overflow: hidden;
  width: 100%;
  height: 280px;
}

.service-card-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 6px 12px;
  border-radius: 999px;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 16px;
}

.service-card h2 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.service-card p {
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 32px;
  flex: 1;
  font-size: 1.05rem;
}

.service-card .btn {
  align-self: flex-start;
}

@media (max-width: 768px) {
  .service-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0;
  }

  .service-card-img-wrapper {
    height: 220px;
  }

  .service-card-img {
    height: 220px;
  }

  .service-card-body {
    padding: 24px;
  }

  .service-card h2 {
    font-size: 1.5rem;
  }
}

/* Text side */
.cap-detail-text {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.cap-service-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.cap-service-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.cap-detail-text h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.cap-detail-text > p {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.detail-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-body);
  line-height: 1.55;
}

.detail-list li::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}

.detail-list li strong {
  color: var(--text);
  font-weight: 600;
}

.cap-icon-large {
  width: 56px;
  height: 56px;
  background: var(--accent-bg);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  margin-bottom: 24px;
  flex-shrink: 0;
}

.cap-icon-large svg {
  width: 28px;
  height: 28px;
}

/* Spec pills row */
.cap-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.cap-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.77rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.cap-spec-pill svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

/* Image side */
.cap-detail-image {
  position: relative;
  border-radius: var(--radius-xl, 20px);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
  background: var(--bg-3);
}

.cap-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.cap-detail-image:hover img {
  transform: scale(1.04);
}

/* Image badge overlay */
.cap-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.cap-img-badge-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.cap-img-badge-icon svg {
  width: 16px;
  height: 16px;
}

.cap-img-badge-text {
  display: flex;
  flex-direction: column;
}

.cap-img-badge-text strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.cap-img-badge-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.2;
}

/* Responsive */
@media (max-width: 960px) {
  .cap-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .cap-detail-grid.reverse {
    direction: ltr;
  }
  .cap-detail-image {
    aspect-ratio: 16/9;
  }
  .service-detail-section {
    padding: 64px 0;
  }
}

@media (max-width: 600px) {
  .service-detail-section {
    padding: 48px 0;
  }
  .cap-detail-text h2 {
    font-size: 1.6rem;
  }
}

/* ============================================================
   INDUSTRIES SECTION (Premium redone layout)
   ============================================================ */
.industries-section {
  padding: 120px 0;
  background-color: var(--bg-2);
  background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScyMDAnIGhlaWdodD0nMjAwJyB2aWV3Qm94PScwIDAgMjAwIDIwMCc+PGxpbmUgeDE9JzAnIHkxPScwJyB4Mj0nMjAwJyB5Mj0nMCcgc3Ryb2tlPSdyZ2JhKDI2LCA4NiwgMjE5LCAwLjAxMiknIHN0cm9rZS13aWR0aD0nMScvPjxsaW5lIHgxPScwJyB5MT0nMCcgeDI9JzAnIHkyPScyMDAnIHN0cm9rZT0ncmdiYSgyNiwgODYsIDIxOSwgMC4wMTIpJyBzdHJva2Utd2lkdGg9JzEnLz48bGluZSB4MT0nMCcgeTE9JzEwMCcgeDI9JzIwMCcgeTI9JzEwMCcgc3Ryb2tlPSdyZ2JhKDI2LCA4NiwgMjE5LCAwLjAxOCknIHN0cm9rZS13aWR0aD0nMScgc3Ryb2tlLWRhc2hhcnJheT0nMiA0Jy8+PGxpbmUgeDE9JzEwMCcgeTE9JzAnIHgyPScxMDAnIHkyPScyMDAnIHN0cm9rZT0ncmdiYSgyNiwgODYsIDIxOSwgMC4wMTgpJyBzdHJva2Utd2lkdGg9JzEnIHN0cm9rZS1kYXNoYXJyYXk9JzIgNCcvPjxjaXJjbGUgY3g9JzEwMCcgY3k9JzEwMCcgcj0nNDAnIGZpbGw9J25vbmUnIHN0cm9rZT0ncmdiYSgyNiwgODYsIDIxOSwgMC4wMScnIHN0cm9rZS13aWR0aD0nMC43NScgc3Ryb2tlLWRhc2hhcnJheT0nMyAzJy8+PGNpcmNsZSBjeD0nMTAwJyBjeT0nMTAwJyByPSc4MCcgZmlsbD0nbm9uZScgc3Ryb2tlPSdyZ2JhKDI2LCA4NiwgMjE5LCAwLjAwNyknIHN0cm9rZS13aWR0aD0nMC41Jy8+PGNpcmNsZSBjeD0nMTAwJyBjeT0nMTAwJyByPScxLjUnIGZpbGw9J3JnYmEoMjYsIDg2LCAyMTksIDAuMDQpJy8+PHBhdGggZD0nTSA5NSAxMDAgTCAxMDUgMTAwIE0gMTAwIDk1IEwgMTAwIDEwNScgc3Ryb2tlPSdyZ2JhKDI2LCA4NiwgMjE5LCAwLjAzKScgc3Ryb2tlLXdpZHRoPScxJy8+PHBhdGggZD0nTSAwIDEwIEwgNSAxMCBNIDAgMjAgTCA1IDIwIE0gMCAzMCBMIDUgMzAgTSAwIDQwIEwgNSA0MCBNIDAgNTAgTCA4IDUwIE0gMCA2MCBMIDUgNjAgTSAwIDcwIEwgNSA7MCBNIDAgODAgTCA1IDgwIE0gMCA5MCBMIDUgOTAgTSAwIDEwMCBMIDEyIDEwMCcgc3Ryb2tlPSdyZ2JhKDI2LCA4NiwgMjE5LCAwLjAxNSknIHN0cm9rZS13aWR0aD0nMC43NScvPjxwYXRoIGQ9J00gMTAgMCBMIDEwIDUgTSAyMCAwIEwgMjAgNSBNIDMwIDAgTCAzMCA1IE0gNDAgMCBMIDQwIDUgTSA1MCAwIEwgNTAgOCBNIDYwIDAgTCA2MCA1IE0gNzAgMCBMIDcwIDUgTSA4MCAwIEwgODAgNSBNIDkwIDAgTCA5MCA1IE0gMTAwIDAgTCAxMDAgMTInIHN0cm9rZT0ncmdiYSgyNiwgODYsIDIxOSwgMC4wMTUpJyBzdHJva2Utd2lkdGg9JzAuNzUnLz48L3N2Zz4=');
  background-size: 200px 200px;
  background-position: center center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.industries-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}

.industries-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}

.industries-header {
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}

.industries-header .section-tag {
  color: var(--accent);
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.industries-header h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-top: 8px;
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.industries-header p {
  color: var(--text-body);
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.65;
}

.industries-marquee-container {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 2;
}

.marquee-row {
  display: flex;
  width: 100%;
  overflow: hidden;
  user-select: none;
}

.marquee-track {
  display: flex;
  gap: 28px;
  flex-shrink: 0;
  min-width: 100%;
  padding-right: 28px;
}

/* Disabled auto-scrolling animations */
.marquee-rtl .marquee-track,
.marquee-ltr .marquee-track {
  animation: none !important;
}

/* Center and wrap cards on screens larger than mobile */
@media (min-width: 601px) {
  .marquee-row {
    justify-content: center;
    flex-wrap: wrap;
    overflow: visible;
  }
  .marquee-track {
    justify-content: center;
    flex-wrap: wrap;
    min-width: unset;
    padding-right: 0;
  }
  .marquee-track[aria-hidden='true'] {
    display: none !important;
  }
}

@keyframes marquee-scroll-rtl {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes marquee-scroll-ltr {
  0% {
    transform: translate3d(-50%, 0, 0);
  }
  100% {
    transform: translate3d(0, 0, 0);
  }
}

/* Industrial Editorial Cards */
.marquee-card {
  width: 330px;
  height: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); /* Clean, precise 4px corner radius */
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition:
    border-color var(--t),
    box-shadow var(--t),
    transform var(--t-slow);
  flex-shrink: 0;
  text-decoration: none;
  position: relative;
}

/* Hover Accent Borders */
.marquee-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  transition: width var(--t) var(--ease);
  z-index: 10;
}

.marquee-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.marquee-card:hover::before {
  width: 100%;
}

/* Angled Image crop */
.card-img-wrap {
  width: 100%;
  height: 175px; /* ~41% height */
  overflow: hidden;
  position: relative;
  background: var(--bg-3);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 0 100%);
  transition: clip-path var(--t-slow);
}

.marquee-card:hover .card-img-wrap {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.marquee-card:hover .card-img-wrap img {
  transform: scale(1.06);
}

/* Card Body Details */
.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.card-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--t);
}

.card-icon svg {
  width: 12px;
  height: 12px;
  stroke-width: 1.75;
  transition: stroke var(--t);
}

.marquee-card:hover .card-icon {
  background: var(--accent-bg);
  border-color: var(--accent);
  color: var(--accent);
}

.card-title-row h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.01em;
  font-family: var(--font-heading);
}

.card-body p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.55;
  margin: 0;
  flex-grow: 1;
}

/* Explore link slide-in */
.card-explore {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-top: 18px;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity var(--t),
    transform var(--t) var(--ease);
}

.marquee-card:hover .card-explore {
  opacity: 1;
  transform: translateX(0);
}

.card-explore svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t);
}

.marquee-card:hover .card-explore svg {
  transform: translateX(3px);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .industries-section {
    padding: 90px 0;
  }
  .marquee-card {
    width: 290px;
    height: 380px;
  }
  .card-img-wrap {
    height: 155px;
  }
  .marquee-rtl .marquee-track {
    animation-duration: 38s;
  }
  .marquee-ltr .marquee-track {
    animation-duration: 44s;
  }
}

@media (max-width: 600px) {
  .industries-section {
    padding: 70px 0;
  }
  .industries-marquee-container {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    left: auto;
    right: auto;
    gap: 16px;
    overflow: visible;
  }

  .marquee-row {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 4px 24px 20px;
    margin: 0 -24px;
    width: calc(100% + 48px);
  }

  .marquee-row::-webkit-scrollbar {
    display: none;
  }

  .marquee-track {
    animation: none !important;
    gap: 16px;
    padding-right: 24px;
  }

  /* Disable duplicate tracks on mobile to avoid duplicates in scroll list */
  .marquee-track[aria-hidden='true'] {
    display: none;
  }

  .marquee-card {
    width: 270px;
    height: 360px;
    scroll-snap-align: start;
  }

  .card-img-wrap {
    height: 145px;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }

  .card-explore {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.65);
}

.footer-top {
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

/* Logo in footer */
.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  text-decoration: none;
}

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

.footer-logo-text {
  display: flex;
  flex-direction: column;
}

.footer-logo-wordmark {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.footer-logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}

.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
  margin: 12px 0;
}

.footer-reg {
  font-size: 0.73rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.6;
  margin-bottom: 16px;
}

.footer-reg strong {
  color: rgba(255, 255, 255, 0.45);
}

.footer-social {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.4);
  transition: all var(--t);
}

.social-btn svg {
  width: 16px;
  height: 16px;
}

.social-btn:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: rgba(26, 86, 219, 0.15);
}

.footer-col-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--t);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: #fff;
}

.footer-address-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-office-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.footer-address {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.7;
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.footer-contact-link {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color var(--t);
}

.footer-contact-link:hover {
  color: #fff;
}

.footer-bottom {
  padding: 20px 0;
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-inner p {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.25);
}

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

.footer-bottom-links a {
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.25);
  transition: color var(--t);
}

.footer-bottom-links a:hover {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-top {
    padding: 48px 0 36px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  min-height: 520px;
  height: auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: var(--header-h);
  padding-top: 80px;
  padding-bottom: 80px;
}

@media (max-width: 768px) {
  .page-hero {
    margin-top: var(--header-h);
    min-height: 340px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10, 20, 50, 0.88) 0%, rgba(10, 20, 50, 0.5) 60%, transparent 100%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding-bottom: 40px;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 10px;
}

.page-hero-breadcrumb a {
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--t);
}

.page-hero-breadcrumb a:hover {
  color: #fff;
}

.page-hero-breadcrumb svg {
  width: 12px;
  height: 12px;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ============================================================
   PAGE CONTENT WRAPPER
   ============================================================ */
.page-content {
  padding: 72px 0;
}

.page-content-alt {
  padding: 72px 0;
  background: var(--bg-2);
}

@media (max-width: 768px) {
  .page-content,
  .page-content-alt {
    padding: 48px 0;
  }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-section {
  padding: 80px 0 100px;
}

/* Section intro */
.contact-intro {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 64px;
}

.contact-intro h2 {
  margin: 8px 0 16px;
}

.contact-intro-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* Main two-column grid */
.contact-main-grid {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 64px;
  align-items: start;
}

/* ── LEFT PANEL: Info ────────────────────────── */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Office stack */
.contact-offices-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-office-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition:
    border-color var(--t),
    box-shadow var(--t);
}

.contact-office-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.contact-office-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}

.contact-office-icon svg {
  width: 18px;
  height: 18px;
}

.contact-office-body h3 {
  font-size: 0.78rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.contact-office-body address {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Divider */
.contact-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 28px;
}

/* Contact channels */
.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: inherit;
  transition:
    background var(--t),
    color var(--t);
}

.contact-channel-item:hover {
  background: var(--bg-2);
  color: var(--accent);
}

.contact-channel-item:hover .contact-channel-value {
  color: var(--accent);
}

.contact-channel-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
  transition:
    background var(--t),
    border-color var(--t);
}

.contact-channel-item:hover .contact-channel-icon {
  background: var(--accent-bg);
  border-color: var(--accent);
}

.contact-channel-icon--accent {
  background: var(--accent-bg);
  border-color: rgba(26, 86, 219, 0.2);
}

.contact-channel-icon svg {
  width: 16px;
  height: 16px;
}

.contact-channel-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.contact-channel-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.contact-channel-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color var(--t);
}

.contact-rfq-badge {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Response promise */
.contact-promise {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(26, 86, 219, 0.04);
  border: 1px solid rgba(26, 86, 219, 0.12);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.contact-promise svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-promise p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-promise strong {
  color: var(--text);
}

/* ── RIGHT PANEL: Form ───────────────────────── */
.contact-form-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.contact-form-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.contact-form-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 10px;
}

.contact-form-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Form structure */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.form-required {
  color: var(--accent);
}

.form-group input,
.form-group textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 0.9rem;
  color: var(--text);
  transition:
    border-color var(--t),
    box-shadow var(--t),
    background var(--t);
  appearance: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08);
  background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

/* Custom select wrapper */
.select-wrap {
  position: relative;
}

.select-wrap select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 38px 11px 14px;
  font-size: 0.9rem;
  color: var(--text);
  transition:
    border-color var(--t),
    box-shadow var(--t),
    background var(--t);
  appearance: none;
  cursor: pointer;
  font-family: inherit;
}

.select-wrap select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08);
  background: #fff;
}

.select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

/* File drop */
.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--t),
    background var(--t);
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.file-drop:hover,
.file-drop.dragging {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.drop-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  opacity: 0.6;
  margin-bottom: 4px;
}

.file-drop span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.file-drop small {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.file-drop strong {
  color: var(--accent);
  font-weight: 600;
}

/* Live Estimate Panel */
.live-estimate-panel {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.live-estimate-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.live-estimate-header svg {
  width: 14px;
  height: 14px;
  color: #f59e0b;
}

.live-estimate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.live-estimate-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.live-estimate-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}

.live-estimate-value {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  font-family: var(--font-heading);
}

.live-estimate-total {
  color: var(--accent);
  font-size: 1.05rem;
}

.live-estimate-note {
  font-size: 0.72rem;
  color: var(--text-dim);
  line-height: 1.5;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 4px;
}

/* Form utility */
.btn-full {
  width: 100%;
}

.form-note {
  font-size: 0.74rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.5;
}

/* ── RESPONSIVE ──────────────────────────────── */
@media (max-width: 1024px) {
  .contact-main-grid {
    gap: 48px;
  }
}

@media (max-width: 860px) {
  .contact-section {
    padding: 56px 0 72px;
  }

  .contact-main-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info-panel {
    /* Show offices side by side on tablet */
  }

  .contact-offices-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-panel {
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .contact-intro {
    margin-bottom: 40px;
  }

  .contact-offices-stack {
    grid-template-columns: 1fr;
  }

  .contact-form-panel {
    padding: 20px;
  }

  .live-estimate-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .contact-channel-value {
    font-size: 0.82rem;
  }
}

.rfq-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.rfq-info h2 {
  margin-bottom: 8px;
}

.rfq-info p {
  color: var(--text-body);
}

.rfq-contact-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rfq-contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.88rem;
}

.rfq-contact-item svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.rfq-contact-item a {
  color: var(--text-body);
  transition: color var(--t);
}

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

.rfq-form-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.form-group label .req {
  color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 11px 14px;
  font-size: 0.9rem;
  color: var(--text);
  transition:
    border-color var(--t),
    box-shadow var(--t);
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.08);
  background: #fff;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color var(--t),
    background var(--t);
  background: var(--bg-2);
}

.file-drop:hover {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.file-drop svg {
  width: 32px;
  height: 32px;
  color: var(--accent);
  opacity: 0.6;
  margin: 0 auto 8px;
}

.file-drop span {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
}

.file-drop strong {
  color: var(--accent);
}

.file-drop small {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
  display: block;
}

.form-note {
  font-size: 0.76rem;
  color: var(--text-dim);
  text-align: center;
}

.file-drop.dragging {
  border-color: var(--accent);
  background: var(--accent-bg);
}

.contact-offices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 24px;
}

.office-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--t);
}

.office-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.office-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 8px;
  font-family: var(--font-heading);
}

.office-card address {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-body);
  line-height: 1.5;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-body);
  font-weight: 600;
  transition: color var(--t);
  text-decoration: none;
}

.contact-link svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex-shrink: 0;
}

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

.email-tag {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 900px) {
  .rfq-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .rfq-form-wrap {
    padding: 24px;
  }

  .contact-offices {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ============================================================
   MAP EMBED
   ============================================================ */
.map-section {
  padding: 0;
  line-height: 0;
}

.map-section iframe {
  display: block;
  width: 100%;
  height: 400px;
  border: none;
}

/* ============================================================
   ABOUT PAGE — TIMELINE
   ============================================================ */
.timeline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 40px 0;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.timeline::-webkit-scrollbar {
  display: none;
}

.timeline::before {
  display: none;
}

.timeline-entry {
  flex: 0 0 calc(100% / 6);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 540px;
  margin-bottom: 0;
}

.timeline-entry::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 2px;
  background: var(--border);
  transform: translateY(-50%);
  z-index: 0;
}

.timeline-entry:last-child::before {
  display: none !important;
}

.timeline-empty {
  display: none !important;
}

.timeline-dot {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px rgba(26, 86, 219, 0.12);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}

.timeline-dot::after {
  display: none;
}

.timeline-text {
  position: absolute;
  width: 100%;
  text-align: center !important;
  padding: 0 20px;
}

.timeline-entry:nth-child(odd) .timeline-text {
  bottom: calc(50% + 36px);
}

.timeline-entry:nth-child(even) .timeline-text {
  top: calc(50% + 36px);
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

@media (max-width: 900px) and (min-width: 601px) {
  .timeline-entry {
    flex: 0 0 50%;
  }
  .timeline-entry {
    height: 340px;
  }
  .timeline-entry:nth-child(2n)::before {
    display: none;
  }
}

@media (max-width: 600px) {
  .timeline {
    padding: 20px 24px 40px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    margin-left: -24px;
    margin-right: -24px;
  }
  .timeline::-webkit-scrollbar {
    display: none;
  }
  .timeline-entry {
    flex: 0 0 80%;
    scroll-snap-align: center;
    height: 320px;
  }
  .timeline-entry::before {
    display: block;
    width: 100%;
  }
  .timeline-entry:last-child::before {
    display: none !important;
  }
}

/* ============================================================
   MACHINE TABLE
   ============================================================ */
.machine-table-wrap {
  overflow-x: auto;
}

.machine-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
  font-size: 0.88rem;
}

.machine-table th {
  background: var(--text);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.machine-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}

.machine-table tr:nth-child(even) td {
  background: var(--bg-2);
}

.machine-table tr:hover td {
  background: var(--accent-bg);
}

.machine-table .spec-mono {
  font-family: 'Courier New', monospace;
  font-size: 0.82rem;
  color: var(--text);
}

/* ============================================================
   QUALITY — CERT BADGES
   ============================================================ */
.cert-grid {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.cert-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  width: 200px;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--t),
    transform var(--t);
}

.cert-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cert-badge-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--accent-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-align: center;
}

.cert-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.cert-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ============================================================
   PRODUCT SHOWCASE GRID
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--t),
    transform var(--t);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.product-card-img {
  aspect-ratio: 1;
  background: var(--bg-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-heading);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  padding: 20px;
}

.product-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.product-spec {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.product-spec strong {
  color: var(--text);
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   CAREERS PAGE
   ============================================================ */
.job-board {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow var(--t),
    border-color var(--t);
}

.job-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.job-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.job-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.job-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
  color: var(--accent);
  background: var(--accent-bg);
  border: 1px solid rgba(26, 86, 219, 0.15);
}

.job-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.job-location svg {
  width: 13px;
  height: 13px;
}

@media (max-width: 600px) {
  .job-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .job-card .btn {
    width: 100%;
  }
}

/* ============================================================
   GENERAL UTILITIES
   ============================================================ */
.visually-hidden {
  position: absolute;
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.text-center {
  text-align: center;
}

/* Legacy icon size classes (used in capabilities.html, quality.html) */
.cap-icon-large {
  width: 56px;
  height: 56px;
  color: var(--accent);
  margin-bottom: 20px;
  flex-shrink: 0;
}
.cap-icon-large svg {
  width: 100%;
  height: 100%;
}
.why-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  flex-shrink: 0;
}
.why-icon svg {
  width: 100%;
  height: 100%;
}

/* --- WHY US / QUALITY METRICS GRID --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.why-item {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--t),
    box-shadow var(--t);
}
.why-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}
.why-item h3 {
  font-size: 1.25rem;
  margin: 16px 0 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text);
}
.why-item p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- FACTORY OVERVIEW LAYOUT --- */
.factory-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}
.factory-visual {
  width: 100%;
}
.factory-image-frame {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.factory-svg {
  width: 100%;
  height: auto;
  display: block;
}
.factory-text h2 {
  margin-bottom: 20px;
}
.factory-text p {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 24px;
}
.facility-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.facility-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.95rem;
  color: var(--text-body);
}
.facility-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Responsive adjustments for quality/factory elements */
@media (max-width: 900px) {
  .why-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
  }
  .factory-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .factory-visual {
    order: -1;
  }
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-40 {
  margin-top: 40px;
}

.mb-8 {
  margin-bottom: 8px;
}

.mb-24 {
  margin-bottom: 24px;
}

.gap-section {
  padding: 80px 0;
}

/* ============================================================
   TICKER / MARQUEE ANIMATION
   ============================================================ */
.industries-ticker {
  overflow: visible;
  white-space: normal;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
  width: 100%;
}

.ticker-track {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  animation: none !important;
  white-space: normal;
}

.ticker-track span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0;
}

.ticker-track .ticker-dot {
  display: none !important;
}

/* ============================================================
   CAPABILITY CARDS & ICONS
   ============================================================ */
.cap-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--t),
    box-shadow var(--t),
    border-color var(--t);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.cap-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.cap-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-bg);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 8px;
}

.cap-icon svg {
  width: 24px;
  height: 24px;
}

.cap-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.cap-card p {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   TECHNICAL SPECIFICATION MODALS
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--t),
    visibility var(--t);
  z-index: 2000;
  padding: 24px;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 600px;
  position: relative;
  overflow: hidden;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: modal-appear 0.3s var(--ease);
}

@keyframes modal-appear {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-2);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--t);
  border: none;
  z-index: 10;
}

.modal-close:hover {
  background: var(--border);
  color: var(--text);
}

.modal-body {
  padding: 40px;
  overflow-y: auto;
}

.modal-header-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-bg);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.modal-lead {
  color: var(--text-body);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.spec-box {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 16px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-val {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.spec-val.accent {
  color: var(--accent);
}

.modal-section {
  margin-bottom: 28px;
}

.modal-section h3 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-pill {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 12px;
  background: var(--bg-3);
  color: var(--text-body);
  border-radius: 100px;
}

.equipment-list,
.applications-list {
  padding-left: 20px;
  list-style-type: disc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.equipment-list li,
.applications-list li {
  font-size: 0.95rem;
  color: var(--text-body);
}

.modal-footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.btn-full {
  width: 100%;
}

/* ============================================================
   GLOBAL RESPONSIVE — ALL PAGES
   ============================================================ */

/* ── Tablet (≤ 1024px) ────────────────────────────────────── */
@media (max-width: 1024px) {
  /* Hero */
  .hero-headline {
    font-size: clamp(2.6rem, 7vw, 4rem);
  }

  /* Utility bar — hide email on tablet */
  .utility-bar .utility-link:nth-child(2) {
    display: none;
  }

  /* Page hero */
  .page-hero {
    min-height: 220px;
  }
}

/* ── Mid (≤ 900px) ────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Stats bar */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* CTA band */
  .cta-inner {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  /* Cap detail */
  .cap-detail-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .cap-detail-grid.reverse .cap-detail-text {
    order: 0;
  }

  .cap-detail-grid.reverse .cap-detail-image {
    order: 1;
  }

  /* Features / Value Props */
  .value-props {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  /* About vision/values grid */
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Facilities grid */
  .facilities-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Quality certs */
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Modal */
  .modal-specs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Mobile (≤ 768px) ─────────────────────────────────────── */
@media (max-width: 768px) {
  /* Container padding */
  .container {
    padding: 0 16px;
  }

  /* Hero */
  .hero {
    min-height: 90vh;
  }

  .hero-headline {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .hero-headline-sub {
    font-size: clamp(1rem, 4vw, 1.3rem);
  }

  .hero-body {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* Stats */
  .stats-bar {
    padding: 36px 0;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .stat-number {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  /* Intro split */
  .intro-split {
    padding: 56px 0;
  }

  .intro-split-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Capabilities section */
  .capabilities-section {
    padding: 56px 0;
  }

  .section-header {
    margin-bottom: 36px;
  }

  /* Feature section */
  .feature-section {
    padding: 56px 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .feature-image {
    aspect-ratio: 16/9;
    max-height: 300px;
  }

  /* CTA band */
  .cta-band {
    padding: 64px 0;
  }

  .cta-headline {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  /* Industries */
  .industries-section {
    padding: 56px 0;
  }

  /* Page hero text */
  .page-hero-content h1 {
    font-size: clamp(1.8rem, 6vw, 2.8rem);
  }

  /* Cap detail page */
  .page-content,
  .page-content-alt {
    padding: 40px 0;
  }

  .cap-detail-text h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }

  .cap-spec-pills {
    flex-wrap: wrap;
    gap: 6px;
  }

  /* About page */
  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Facilities */
  .facilities-grid {
    grid-template-columns: 1fr;
  }

  /* Quality */
  .cert-grid {
    grid-template-columns: 1fr 1fr;
  }

  .quality-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Utility bar hidden on small mobile */
  .utility-bar {
    display: none;
  }

  /* Header height smaller */
  :root {
    --header-h: 64px;
  }

  .site-header {
    height: var(--header-h);
  }

  .logo-img {
    height: 32px;
  }

  .logo-wordmark {
    font-size: clamp(0.75rem, 3.5vw, 1rem);
  }

  .logo-sub-text {
    font-size: 0.55rem;
  }

  /* Mobile nav enhancements */
  .mobile-nav {
    padding-top: var(--header-h);
  }

  /* Modal */
  .modal-inner {
    max-height: 92vh;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    margin: auto 0 0;
  }

  .modal-body {
    padding: 24px;
  }

  .modal-specs-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Small Mobile (≤ 480px) ───────────────────────────────── */
@media (max-width: 480px) {
  /* Container */
  .container {
    padding: 0 14px;
  }

  /* Stats — single column */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Cap grid — 1 col */
  .cap-grid {
    grid-template-columns: 1fr;
  }

  /* Cert badges — 1 col */
  .cert-grid {
    grid-template-columns: 1fr;
  }

  /* Team grid */
  .team-grid {
    grid-template-columns: 1fr;
  }

  /* Quality stats */
  .quality-stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Modal specs */
  .modal-specs-grid {
    grid-template-columns: 1fr;
  }

  /* About values */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* CTA actions */
  .cta-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .cta-actions .btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  /* Industries section heading */
  .industries-header h2 {
    font-size: clamp(1.6rem, 7vw, 2.2rem);
  }

  /* Page hero shrink */
  .page-hero {
    min-height: 160px;
  }

  /* Cap spec pills smaller */
  .cap-spec-pill {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}

/* ============================================================
   CAPABILITIES / SERVICES SECTION (index.html & capabilities.html)
   ============================================================ */

/* Home Page Capabilities Section */
.capabilities-section {
  padding: 80px 0;
  background: var(--bg);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.cap-tile {
  position: relative;
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-card);
  transition:
    transform var(--t),
    box-shadow var(--t);
  background: #000;
  cursor: pointer;
}

.cap-tile:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.cap-tile-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}

.cap-tile:hover .cap-tile-img {
  transform: scale(1.08);
}

.cap-tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  pointer-events: none;
}

.cap-tile-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px 24px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cap-tile-title {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  transition: color var(--t);
}

.cap-tile:hover .cap-tile-title {
  color: var(--accent-light);
}

.cap-tile-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--t);
}

.cap-tile-arrow svg {
  width: 16px;
  height: 16px;
}

.cap-tile:hover .cap-tile-arrow {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   PAGE HERO (Inner pages)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 120px 0 80px;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
  background: var(--footer-bg);
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.4) 100%);
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
}

.page-hero-content h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-top: 16px;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
}

.page-hero-breadcrumb a {
  transition: color var(--t);
}

.page-hero-breadcrumb a:hover {
  color: #fff;
}

.page-hero-breadcrumb svg {
  width: 14px;
  height: 14px;
}

/* ============================================================
   SERVICE DETAILS (capabilities.html)
   ============================================================ */
.service-detail-section {
  padding: 100px 0;
  background: var(--bg);
}

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

.cap-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.cap-detail-grid.reverse .cap-detail-text {
  order: 2;
}
.cap-detail-grid.reverse .cap-detail-image {
  order: 1;
}

@media (max-width: 991px) {
  .cap-detail-grid,
  .cap-detail-grid.reverse {
    grid-template-columns: 1fr;
  }
  .cap-detail-grid.reverse .cap-detail-text,
  .cap-detail-grid.reverse .cap-detail-image {
    order: unset;
  }
}

.cap-service-tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 9999px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.cap-icon-large {
  width: 64px;
  height: 64px;
  color: var(--accent);
  margin-bottom: 24px;
}

.cap-icon-large svg {
  width: 100%;
  height: 100%;
}

.cap-detail-text h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 20px;
}

.cap-detail-text p {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 32px;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.detail-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
}

.detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A56DB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E")
    no-repeat center;
  background-size: contain;
}

.cap-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.cap-spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--t),
    box-shadow var(--t);
}

.cap-spec-pill:hover {
  border-color: var(--accent-light);
  box-shadow: 0 4px 12px rgba(26, 86, 219, 0.1);
}

.cap-spec-pill svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

.cap-detail-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cap-detail-image img {
  width: 100%;
  display: block;
  transition: transform var(--t-slow);
}

.cap-detail-image:hover img {
  transform: scale(1.05);
}

.cap-img-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translate(-40px, -40px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform var(--t);
}

.cap-detail-image:hover .cap-img-badge {
  transform: translate(-45px, -45px);
}

.cap-img-badge-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cap-img-badge-icon svg {
  width: 24px;
  height: 24px;
}

.cap-img-badge-text {
  display: flex;
  flex-direction: column;
}

.cap-img-badge-text strong {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.2;
}

.cap-img-badge-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================================
   INDIVIDUAL SERVICE PAGES
   ============================================================ */
.service-detail-page {
  padding: 80px 0;
}

.service-detail-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  margin-bottom: 80px;
}

@media (max-width: 991px) {
  .service-detail-container {
    grid-template-columns: 1fr;
  }
}

.service-main-info h2 {
  font-size: clamp(2rem, 3vw, 2.5rem);
  margin-bottom: 24px;
}

.service-main-info p {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 24px;
}

.service-main-info h3 {
  font-size: 1.5rem;
  margin: 40px 0 20px;
}

.service-sidebar {
  background: var(--bg-2);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  align-self: start;
  box-shadow: var(--shadow-sm);
}

.service-sidebar h4 {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--text);
}

.service-sidebar ul {
  margin-bottom: 32px;
}

.service-sidebar li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.service-sidebar li span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.service-sidebar li strong {
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ============================================================
   BENTO BOX GRIDS & PREMIUM SERVICE PAGES
   ============================================================ */

.service-detail-container {
  grid-template-columns: 1fr 340px;
  margin-top: -80px; /* Floating layout */
  position: relative;
  z-index: 10;
}

@media (max-width: 991px) {
  .service-detail-container {
    grid-template-columns: 1fr;
    margin-top: 40px;
  }
}

.service-main-info {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
  .service-main-info {
    padding: 24px;
  }
}

.service-sidebar {
  position: sticky;
  top: 120px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-md);
  align-self: start;
}

/* Bento Box Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  margin-top: 24px;
}

.bento-card {
  background: var(--bg-2);
  padding: 32px 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: all var(--t);
  display: flex;
  flex-direction: column;
  gap: 16px;
  cursor: pointer;
}

.bento-card:hover {
  background: #fff;
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-light);
}

.bento-card-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-bg);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t);
}

.bento-card:hover .bento-card-icon {
  transform: scale(1.1) rotate(5deg);
}

.bento-card-icon svg {
  width: 24px;
  height: 24px;
}

.bento-card h4 {
  font-size: 1.15rem;
  font-family: var(--font-heading);
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.bento-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
}
/* --- NEW POLICIES & CERTIFICATIONS DESIGNS --- */
.policy-card {
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}
.policies-dark-bg .policy-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  backdrop-filter: blur(10px);
}
.policies-dark-bg .policy-card-header {
  color: rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}
.policies-dark-bg .policy-card-title {
  color: #fff;
}
.policies-dark-bg .policy-card-body p {
  color: rgba(255, 255, 255, 0.7);
}
.policies-dark-bg .policy-card-footer {
  color: rgba(255, 255, 255, 0.5);
  border-top-color: rgba(255, 255, 255, 0.1);
}
.policies-dark-bg .policy-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.4),
    0 0 0 1px var(--accent);
  border-color: transparent;
}
.policies-dark-bg .section-tag {
  color: var(--accent);
  background: rgba(4, 91, 230, 0.1);
}
.policies-dark-bg h2 {
  color: #fff;
}
.policies-dark-bg .intro-text {
  color: rgba(255, 255, 255, 0.8) !important;
}

.cert-quick-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  margin-top: -60px;
  position: relative;
  z-index: 10;
  padding: 0 20px;
}
.cert-stat-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.cert-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.cert-stat-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 91, 230, 0.05);
  border-radius: 12px;
}
.cert-stat-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-dark);
  font-family: var(--font-heading);
  margin-bottom: 8px;
}
.cert-stat-desc {
  font-size: 0.95rem;
  color: var(--text-body);
}

.cert-stat-icon svg {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Timeline CSS */
.timeline-scroll-wrapper {
  overflow-x: auto;
  padding: 20px 0 60px;
  scroll-behavior: smooth;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.timeline-scroll-wrapper::-webkit-scrollbar {
  display: none;
}
.timeline-track {
  display: flex;
  flex-wrap: nowrap;
  min-width: min-content;
  padding: 0 40px;
  position: relative;
  gap: 40px;
}
.timeline-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--border-color);
  z-index: 1;
}
.timeline-card {
  position: relative;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  min-width: 300px;
  max-width: 350px;
  flex: 0 0 auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}
.timeline-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}
.timeline-year {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}
.timeline-card h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.timeline-card p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* --- ORIGINAL QUALITY CSS --- */
/* ---------- POLICY & CERTIFICATION COMPONENTS ---------- */
.policy-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 48px;
}
.policy-card {
  width: 240px;
  height: 340px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--t);
  position: relative;
  overflow: hidden;
}
.policy-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.policy-card-header {
  background: var(--brand-red, #e31b23);
  color: #fff;
  padding: 8px 12px;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.policy-card-body {
  padding: 24px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 4px double rgba(227, 27, 35, 0.2);
  margin: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(247, 248, 250, 1) 100%);
}
.policy-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  text-transform: uppercase;
  line-height: 1.3;
}
.policy-card-body p {
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-body);
}
.policy-card-footer {
  padding: 8px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.timeline-scroll-wrapper {
  overflow-x: auto;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  margin: 40px 0;
  border-left: 1px solid transparent; /* prevents clipping of first item */
  border-right: 1px solid transparent;
}
.timeline-scroll-wrapper::-webkit-scrollbar {
  height: 8px;
}
.timeline-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}
.timeline-scroll {
  display: flex;
  min-width: max-content;
  position: relative;
}
.timeline-scroll .timeline-entry {
  width: 220px;
  flex-shrink: 0;
  height: 400px;
}
.timeline-scroll .timeline-entry:last-child::before {
  display: none !important;
}

@media (max-width: 900px) {
  .timeline-scroll .timeline-entry {
    height: 340px;
  }
}
@media (max-width: 600px) {
  .timeline-scroll .timeline-entry {
    height: 280px;
  }
}

.sijil-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 60px;
}
.sijil-card {
  width: 260px;
  background: #fff;
  border: 1px solid var(--border);
  padding: 12px;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all var(--t);
}
.sijil-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.sijil-image {
  width: 100%;
  aspect-ratio: 1 / 1.414; /* A4 aspect ratio */
  background: var(--bg-3);
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}
.sijil-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.sijil-year {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 600;
}

/* --- FLEXIBLE CAP GRID OVERRIDES --- */
div.cap-grid {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

div.cap-grid .cap-tile {
  width: calc(33.333% - 16px) !important;
}

div.cap-grid.cap-grid-4 .cap-tile {
  width: calc(25% - 18px) !important;
}

@media (max-width: 900px) {
  div.cap-grid .cap-tile,
  div.cap-grid.cap-grid-4 .cap-tile {
    width: calc(50% - 12px) !important;
  }
}

@media (max-width: 600px) {
  div.cap-grid .cap-tile,
  div.cap-grid.cap-grid-4 .cap-tile {
    width: 100% !important;
  }
}

/* --- RESPONSIVE GRID UTILITIES --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 64px;
}
.about-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.intro-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.facilities-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.facilities-gallery-grid-2 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.facilities-gallery-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .intro-split-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .facilities-gallery-grid-3 {
    grid-template-columns: 1fr;
  }
  .facilities-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .facilities-gallery-grid-2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
}

@media (max-width: 600px) {
  .facilities-stats-grid {
    grid-template-columns: 1fr;
  }
}

/* --- MOBILE GLOBAL SCALING --- */
@media (max-width: 768px) {
  h1 {
    font-size: clamp(2rem, 8vw, 2.5rem) !important;
  }
  h2 {
    font-size: clamp(1.6rem, 6vw, 2rem) !important;
  }
  h3 {
    font-size: clamp(1.2rem, 5vw, 1.5rem) !important;
  }
  .page-content,
  section {
    padding: 60px 0 !important;
  }
  .hero-home {
    padding: 100px 0 60px !important;
  }
  .hero-inner {
    padding: 80px 0 40px !important;
  }
  .container {
    padding: 0 20px !important;
  }
}
/* Extracted from index.ejs */
.home-capabilities-container {
  max-width: 96% !important;
  padding: 0 2% !important;
}
@media (max-width: 768px) {
  .home-capabilities-container {
    max-width: 100% !important;
    padding: 0 24px !important;
  }
}
div.home-capabilities-container div.cap-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 32px !important;
}
div.home-capabilities-container div.cap-grid .cap-tile {
  width: 100% !important;
  max-width: 360px !important;
  aspect-ratio: 4/5 !important;
  border-radius: var(--radius-lg) !important;
}
.home-capabilities-container .cap-tile-title {
  font-size: 1.6rem !important;
  margin-bottom: 12px !important;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
@media (max-width: 992px) {
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .sectors-grid {
    grid-template-columns: 1fr;
  }
}
.sector-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/2;
  display: block;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}
.sector-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.sector-card:hover img {
  transform: scale(1.05);
}
.sector-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(10, 20, 30, 0.9) 0%, rgba(10, 20, 30, 0.6) 50%, transparent 100%);
  padding: 40px 16px 16px;
  text-align: center;
}
.sector-overlay h3 {
  color: #ffffff;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
}
.sector-overlay p {
  color: rgba(255, 255, 255, 0.9);
  margin: 8px 0 0 0;
  font-size: 0.9rem;
  font-weight: 400;
}

/* ============================================================
   MOBILE RESPONSIVE IMPROVEMENTS
   ============================================================ */

/* -- Stats bar: 2-col on mobile instead of stacking to 1 -- */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0 !important;
  }

  .stat-item {
    padding: 24px 16px !important;
    border-bottom: 1px solid var(--border);
  }

  .stat-item + .stat-item::before {
    display: block !important;
    top: 15%;
    height: 70%;
  }

  .stats-bar {
    padding: 0 !important;
  }

  .stat-number {
    font-size: 2.2rem !important;
  }
}

/* -- Hero: reduce padding, smaller text, inline buttons -- */
@media (max-width: 768px) {
  .hero-actions {
    flex-direction: row !important;
    flex-wrap: wrap;
    gap: 12px !important;
  }

  .hero-actions .btn {
    width: auto !important;
    flex: 1 1 140px;
    text-align: center;
    justify-content: center;
    padding: 13px 20px !important;
    font-size: 0.9rem !important;
  }
}

/* -- Page hero: better title sizing on mobile -- */
@media (max-width: 768px) {
  .page-hero {
    min-height: 360px !important;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .page-hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem) !important;
  }

  .page-hero-content {
    padding-bottom: 0 !important;
  }
}

/* -- Section padding: reduce on mobile -- */
@media (max-width: 768px) {
  .page-content,
  .page-content-alt {
    padding-top: 60px !important;
    padding-bottom: 60px !important;
  }

  .intro-split {
    padding: 60px 0 !important;
  }

  .intro-split-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .feature-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

/* -- Capabilities/services cards: single column on mobile -- */
@media (max-width: 600px) {
  div.home-capabilities-container div.cap-grid {
    gap: 16px !important;
  }

  div.home-capabilities-container div.cap-grid .cap-tile {
    max-width: 100% !important;
  }
}

/* -- CTA band: smaller padding on mobile -- */
@media (max-width: 768px) {
  .cta-band {
    padding: 72px 0 !important;
  }

  .cta-headline-outline,
  .cta-headline-solid {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }

  .cta-actions {
    flex-direction: column !important;
    align-items: center !important;
    gap: 12px !important;
  }

  .cta-actions .btn {
    width: 100% !important;
    max-width: 320px;
    justify-content: center;
  }
}

/* -- Contact / form: full-width on mobile -- */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
}

/* -- Service detail floating stats card: stack vertically -- */
@media (max-width: 600px) {
  .container > div[style*="flex-wrap: wrap"] {
    flex-direction: column;
  }
}

/* -- Section header: center-align on mobile -- */
@media (max-width: 768px) {
  .section-header {
    text-align: center !important;
  }

  .section-header p {
    margin: 0 auto !important;
  }
}

/* ============================================================
   ADMIN PORTAL LINK
   ============================================================ */
.admin-portal-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-dim);
  text-decoration: none;
  transition: var(--t);
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  margin-left: auto;
}

.admin-portal-link:hover {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.05);
}

/* ============================================================
   ABOUT PAGE COMPONENTS
   ============================================================ */

/* Value / Mission / Vision Card */
.value-card {
  background: #fff;
  padding: clamp(16px, 4vw, 40px);
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.value-card.centered {
  text-align: center;
  padding: clamp(16px, 4vw, 36px) clamp(16px, 4vw, 28px);
}

.value-card-icon {
  width: clamp(40px, 8vw, 52px);
  height: clamp(40px, 8vw, 52px);
  background: var(--accent-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(12px, 3vw, 24px);
  color: var(--accent);
}

.value-card.centered .value-card-icon {
  margin: 0 auto clamp(12px, 3vw, 20px);
}

.value-card-icon i {
  font-size: clamp(20px, 5vw, 26px);
}

.value-card-title {
  margin-bottom: clamp(8px, 2vw, 14px);
  font-size: clamp(1.05rem, 3.5vw, 1.25rem);
  font-weight: 700;
  color: var(--text);
}

.value-card.centered .value-card-title {
  margin-bottom: 8px;
  font-size: clamp(0.95rem, 3.5vw, 1.05rem);
}

.value-card-text {
  font-size: clamp(0.85rem, 3vw, 0.97rem);
  line-height: 1.6;
  color: var(--text-body);
}

.value-card.centered .value-card-text {
  font-size: clamp(0.8rem, 3vw, 0.92rem);
}

/* Core Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

/* Timeline specific text alignment */
.timeline-text.align-right {
  text-align: right;
}

/* Environmental Section */
.intro-split-grid.wide-gap {
  gap: 48px;
}

.env-body-text {
  margin-top: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}

/* ============================================================
   GOOGLE TRANSLATE OVERRIDES
   ============================================================ */
/* Hide the old and new versions of the Google Translate banner */
.goog-te-banner-frame.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.VIpgJd-ZVi9od-aZ2wEe-wOHMyf,
.VIpgJd-ZVi9od-ORHb-OEVmcd,
.skiptranslate > iframe.skiptranslate { 
    display: none !important; 
    visibility: hidden !important;
}

/* Prevent Google from shifting the body down */
html, body { 
    top: 0px !important; 
    position: static !important;
}

/* Hide hover tooltips and highlights */
.goog-tooltip { display: none !important; }
.goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background-color: transparent !important; border: none !important; box-shadow: none !important; }

/* Hide the hidden widget container */
div#google_translate_hidden {
    display: none !important;
    visibility: hidden !important;
}
