/* ==========================================================================
   Terotech Engineers - Design System & Global Styles
   ========================================================================== */

:root {
  /* Brand Colors */
  --color-primary: #A43A12;
  --color-primary-hover: #862E0E;
  --color-primary-light: #FDF4F0;
  
  --color-secondary: #0B2033;
  --color-secondary-light: #1A3B5C;
  --color-secondary-dark: #071522;
  
  /* Backgrounds */
  --bg-main: #FFFFFF;
  --bg-hero-light: #ECECEC;
  --bg-hero-dark: #0B2033;
  --bg-hero-accent: #A43A12;
  --bg-card: #FFFFFF;
  --bg-card-alt: #F8FAFC;
  
  /* Typography Colors */
  --text-main: #0B2033;
  --text-muted: #526374;
  --text-light: #FFFFFF;
  
  /* Borders & Shadows */
  --border-subtle: #E2E8F0;
  --border-focus: #A43A12;
  --shadow-sm: 0 1px 3px rgba(11, 32, 51, 0.08);
  --shadow-md: 0 4px 14px rgba(11, 32, 51, 0.08);
  --shadow-lg: 0 10px 28px rgba(11, 32, 51, 0.12);
}

/* Base resets & typography */
html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-secondary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Utilities */
.text-navy {
  color: var(--color-secondary) !important;
}

.text-rust {
  color: var(--color-primary) !important;
}

.bg-navy {
  background-color: var(--color-secondary) !important;
  color: #ffffff !important;
}

.bg-hero-light {
  background-color: var(--bg-hero-light) !important;
}

.bg-hero-dark {
  background-color: var(--bg-hero-dark) !important;
  color: #ffffff !important;
}

.bg-rust {
  background-color: var(--color-primary) !important;
  color: #ffffff !important;
}

/* ==========================================================================
   Navigation Bar Styles
   ========================================================================== */

.terotech-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(11, 32, 51, 0.06);
  border-bottom: 1px solid #ECECEC;
  transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
}

.terotech-navbar {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  background-color: #ffffff !important;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  padding: 0.2rem 0;
  margin-right: 1.5rem;
}

.navbar-brand-logo {
  height: 64px;
  width: 64px;
  max-width: 100%;
  object-fit: contain;
  transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s ease;
  flex-shrink: 0;
}

.navbar-brand-wrapper:hover .navbar-brand-logo {
  transform: scale(1.04);
}

.navbar-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.brand-title {
  font-size: 1.95rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: 0.035em;
  line-height: 0.95;
  text-transform: uppercase;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.navbar-brand-wrapper:hover .brand-title {
  color: var(--color-primary-hover);
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-secondary);
  letter-spacing: 0.085em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-top: 3px;
  white-space: nowrap;
  transition: font-size 0.3s cubic-bezier(0.4, 0, 0.2, 1), margin-top 0.3s ease;
}

/* ==========================================================================
   Header Scrolled / Compact Sticky State
   ========================================================================== */

.terotech-header.header-scrolled {
  box-shadow: 0 4px 20px rgba(11, 32, 51, 0.12);
  border-bottom-color: rgba(226, 232, 240, 0.85);
}

.terotech-header.header-scrolled .terotech-navbar {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}

.terotech-header.header-scrolled .navbar-brand-logo {
  height: 48px;
  width: 48px;
}

.terotech-header.header-scrolled .brand-title {
  font-size: 1.5rem;
}

.terotech-header.header-scrolled .brand-subtitle {
  font-size: 0.6rem;
  margin-top: 1px;
}

.terotech-header.header-scrolled .nav-link {
  padding: 0.45rem 0.95rem !important;
}

.terotech-header.header-scrolled .nav-link.active::after {
  bottom: 0.1rem;
}

@media (max-width: 991.98px) {
  .navbar-brand-logo {
    height: 54px;
    width: 54px;
  }
  .brand-title {
    font-size: 1.6rem;
  }
  .brand-subtitle {
    font-size: 0.62rem;
    letter-spacing: 0.07em;
  }
  .terotech-header.header-scrolled .navbar-brand-logo {
    height: 44px;
    width: 44px;
  }
  .terotech-header.header-scrolled .brand-title {
    font-size: 1.35rem;
  }
  .terotech-header.header-scrolled .brand-subtitle {
    font-size: 0.54rem;
  }
}

@media (max-width: 480px) {
  .navbar-brand-wrapper {
    gap: 0.6rem;
  }
  .navbar-brand-logo {
    height: 46px;
    width: 46px;
  }
  .brand-title {
    font-size: 1.35rem;
  }
  .brand-subtitle {
    font-size: 0.52rem;
    letter-spacing: 0.05em;
  }
  .terotech-header.header-scrolled .navbar-brand-logo {
    height: 38px;
    width: 38px;
  }
  .terotech-header.header-scrolled .brand-title {
    font-size: 1.15rem;
  }
  .terotech-header.header-scrolled .brand-subtitle {
    font-size: 0.46rem;
  }
}

/* Nav links */
.terotech-navbar .nav-link {
  color: var(--color-secondary) !important;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.75rem 0.95rem !important;
  position: relative;
  transition: color 0.2s ease-in-out, padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.terotech-navbar .nav-link:hover {
  color: var(--color-primary) !important;
}

/* Active Link & Indicator Underline */
.terotech-navbar .nav-link.active {
  color: var(--color-primary) !important;
}

.terotech-navbar .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0.25rem;
  left: 0.95rem;
  right: 0.95rem;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 3px;
  transition: bottom 0.3s ease;
}

/* Navbar Toggle Button (Mobile) */
.terotech-toggler {
  border: 1.5px solid var(--color-secondary);
  border-radius: 6px;
  padding: 0.4rem 0.65rem;
  color: var(--color-secondary);
  transition: all 0.2s ease;
}

.terotech-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(164, 58, 18, 0.35);
  outline: none;
}

.terotech-toggler-icon {
  display: inline-block;
  width: 1.4em;
  height: 1.4em;
  vertical-align: middle;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%230B2033' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100%;
}

@media (max-width: 991.98px) {
  .terotech-navbar .navbar-collapse {
    background-color: #ffffff;
    border-top: 1px solid #f0f0f0;
    margin-top: 0.75rem;
    padding: 0.75rem 0.5rem;
    border-radius: 6px;
  }
  
  .terotech-navbar .nav-link {
    padding: 0.65rem 1rem !important;
    justify-content: flex-start;
  }
  
  .terotech-navbar .nav-link.active::after {
    left: 1rem;
    right: auto;
    width: 36px;
    bottom: 0.2rem;
  }
}

/* ==========================================================================
   Hero Banner Section
   ========================================================================== */

.hero-banner-section {
  position: relative;
  background-color: var(--color-secondary);
  background-image: 
    linear-gradient(90deg, rgba(11, 32, 51, 0.95) 0%, rgba(11, 32, 51, 0.88) 45%, rgba(11, 32, 51, 0.5) 75%, rgba(11, 32, 51, 0.1) 100%),
    url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 5.5rem 0 5rem 0;
  min-height: 520px;
  display: flex;
  align-items: center;
}

@media (max-width: 991.98px) {
  .hero-banner-section {
    background-image: 
      linear-gradient(180deg, rgba(11, 32, 51, 0.96) 0%, rgba(11, 32, 51, 0.86) 100%),
      url('../images/hero-banner.jpg');
    padding: 3.5rem 0 3rem 0;
    min-height: auto;
  }
}

.hero-content {
  max-width: 660px;
}

.hero-title {
  font-size: clamp(2rem, 4.3vw, 3.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #ffffff;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero-title-highlight {
  color: #E25822; /* Vivid Rust-Orange highlight */
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

.hero-desc {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #cbd5e1;
  margin-bottom: 1.85rem;
  max-width: 540px;
}

.btn-hero-primary {
  background-color: var(--color-primary);
  border: 2px solid var(--color-primary);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.6rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-hero-primary:hover,
.btn-hero-primary:focus {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(164, 58, 18, 0.45);
}

.btn-hero-outline {
  background-color: rgba(11, 32, 51, 0.35);
  backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.6rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  transition: all 0.25s ease;
}

.btn-hero-outline:hover,
.btn-hero-outline:focus {
  background-color: #ffffff;
  border-color: #ffffff;
  color: var(--color-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

/* ==========================================================================
   Hero Metrics / Trust Bar
   ========================================================================== */

.hero-metrics-bar {
  background-color: var(--color-primary);
  color: #ffffff;
  padding: 1.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.5rem 0.8rem;
}

.metric-icon-box {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.metric-icon-box svg {
  width: 36px;
  height: 36px;
}

.metric-text {
  display: flex;
  flex-direction: column;
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.25;
}

.metric-val {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  line-height: 1.25;
  text-transform: uppercase;
}

.metric-divider {
  border-right: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 991.98px) {
  .metric-divider {
    border-right: none;
  }
  .hero-metrics-bar .metric-col {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0.75rem 0.5rem;
  }
  .hero-metrics-bar .metric-col:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   Railway Solutions / Services Grid Section
   ========================================================================== */

.solutions-section {
  padding: 5rem 0 5.5rem 0;
  background-color: #FFFFFF;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.section-title-line {
  width: 45px;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-secondary);
  text-transform: uppercase;
  margin: 0;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 500;
  margin-top: 0.4rem;
}

/* Service Card Component */
.service-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 2px 10px rgba(11, 32, 51, 0.04);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  text-decoration: none;
  color: inherit;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(11, 32, 51, 0.12);
  border-color: #cbd5e1;
  text-decoration: none;
  color: inherit;
}

.service-img-wrapper {
  position: relative;
  width: 100%;
  height: 185px;
  overflow: hidden;
  background-color: #0B2033;
}

.service-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.service-icon-badge {
  position: absolute;
  bottom: 12px;
  left: 14px;
  width: 44px;
  height: 44px;
  background-color: var(--color-primary);
  border: 2px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
  z-index: 2;
}

.service-icon-badge svg {
  width: 22px;
  height: 22px;
}

.service-body {
  padding: 1.4rem 1.25rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--color-secondary);
  text-transform: uppercase;
  line-height: 1.35;
  margin-bottom: 0.65rem;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.service-card:hover .service-title {
  color: var(--color-primary);
}

.service-desc {
  font-size: 0.88rem;
  color: #526374;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: gap 0.2s ease, color 0.2s ease;
}

.service-card:hover .service-link {
  gap: 0.65rem;
  color: var(--color-primary-hover);
}

/* ==========================================================================
   Service Detail Page Styles
   ========================================================================== */

.service-detail-hero {
  background-color: var(--color-secondary);
  color: #ffffff;
  padding: 4rem 0 3.5rem 0;
  position: relative;
}

.service-breadcrumb {
  margin-bottom: 1.5rem;
}

.service-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.service-breadcrumb a:hover {
  color: #ffffff;
}

.service-breadcrumb span {
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0.5rem;
}

.service-detail-title {
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.service-spec-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.spec-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.spec-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
}

.spec-list li:last-child {
  border-bottom: none;
}

/* ==========================================================================
   General Buttons & Components
   ========================================================================== */

.btn-primary-rust {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.btn-primary-rust:hover, 
.btn-primary-rust:focus {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(164, 58, 18, 0.25);
}

.btn-outline-rust {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
  font-weight: 600;
  padding: 0.6rem 1.3rem;
  border-radius: 6px;
  transition: all 0.2s ease-in-out;
}

.btn-outline-rust:hover,
.btn-outline-rust:focus {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* ==========================================================================
   Industrial Coating Solutions Section (Secondary Navy Background)
   ========================================================================== */

.coating-section {
  background-color: var(--color-secondary);
  padding: 5rem 0 5.5rem 0;
  color: #ffffff;
  position: relative;
}

.coating-section .section-title {
  color: #ffffff;
}

.coating-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.28);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.coating-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  color: inherit;
}

.coating-card-inner {
  display: flex;
  align-items: center;
}

.coating-img-box {
  width: 260px;
  height: 145px;
  flex-shrink: 0;
  overflow: hidden;
  background: #f8fafc;
}

.coating-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.coating-content-box {
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-grow: 1;
}

.coating-badge-icon {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #A43A12 0%, #D35400 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(164, 58, 18, 0.35);
}

.coating-badge-icon svg {
  width: 28px;
  height: 28px;
}

.coating-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-secondary);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.coating-card:hover .coating-title {
  color: var(--color-primary);
}

.coating-desc {
  font-size: 0.95rem;
  color: #526374;
  margin-bottom: 0;
}

.coating-action-box {
  padding: 1.5rem 2.75rem;
  border-left: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.coating-link-btn {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.coating-card:hover .coating-link-btn {
  gap: 0.75rem;
  color: var(--color-primary-hover);
}

@media (max-width: 991.98px) {
  .coating-card-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .coating-img-box {
    width: 100%;
    height: 190px;
  }
  .coating-content-box {
    padding: 1.25rem;
  }
  .coating-action-box {
    border-left: none;
    border-top: 1px solid #e2e8f0;
    padding: 1.1rem 1.25rem;
    justify-content: flex-start;
  }
}

/* ==========================================================================
   Infrastructure Strength & Technology Partners Section
   ========================================================================== */

.infra-partners-section {
  background-color: #FFFFFF;
  padding: 5rem 0 5.5rem 0;
}

.infra-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.15rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  height: 100%;
  box-shadow: 0 2px 8px rgba(11, 32, 51, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.infra-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(11, 32, 51, 0.08);
  border-color: #cbd5e1;
}

.infra-stat-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.infra-stat-icon svg {
  width: 38px;
  height: 38px;
}

.infra-stat-content {
  display: flex;
  flex-direction: column;
}

.infra-stat-number {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-secondary);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.infra-stat-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin-top: 0.2rem;
}

/* Partner Cards */
.partner-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 110px;
  box-shadow: 0 2px 8px rgba(11, 32, 51, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.partner-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(11, 32, 51, 0.08);
  border-color: #cbd5e1;
}

.partner-country {
  font-size: 0.84rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 0.45rem;
}

/* ==========================================================================
   Trusted Across Railway Projects Section
   ========================================================================== */

.trusted-projects-section {
  padding: 4.5rem 0 5rem 0;
  background-color: #FFFFFF;
}

.trusted-projects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  align-items: flex-start;
}

@media (max-width: 1199.98px) {
  .trusted-projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .trusted-projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 575.98px) {
  .trusted-projects-grid {
    grid-template-columns: 1fr;
  }
}

.trusted-project-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.28s ease;
  height: 100%;
}

.trusted-project-card:hover {
  transform: translateY(-4px);
  text-decoration: none;
  color: inherit;
}

.trusted-project-img-box {
  width: 100%;
  height: 132px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(11, 32, 51, 0.08);
  background-color: #0B2033;
  transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.trusted-project-card:hover .trusted-project-img-box {
  box-shadow: 0 8px 24px rgba(11, 32, 51, 0.16);
}

.trusted-project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

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

.trusted-project-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-secondary);
  text-align: center;
  margin-top: 0.75rem;
  margin-bottom: 0;
  line-height: 1.35;
  transition: color 0.2s ease;
}

.trusted-project-card:hover .trusted-project-title {
  color: var(--color-primary);
}

/* CTA Card */
.trusted-cta-card {
  background-color: var(--color-primary);
  border-radius: 8px;
  padding: 1.25rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #ffffff;
  text-decoration: none;
  height: 132px;
  box-shadow: 0 4px 14px rgba(164, 58, 18, 0.28);
  transition: all 0.28s ease;
}

.trusted-cta-card:hover {
  background-color: var(--color-primary-hover);
  color: #ffffff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(164, 58, 18, 0.42);
  text-decoration: none;
}

.trusted-cta-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trusted-cta-icon svg {
  width: 44px;
  height: 44px;
  color: #ffffff;
}

.trusted-cta-text {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.trusted-cta-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  transition: transform 0.2s ease;
}

.trusted-cta-card:hover .trusted-cta-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.terotech-footer {
  background-color: var(--color-secondary);
  color: #cbd5e1;
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
  margin-top: auto;
}

/* Footer Brand */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
  margin-bottom: 0.85rem;
}

.footer-brand:hover {
  text-decoration: none;
}

.footer-brand-logo {
  height: 66px;
  width: 66px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.footer-brand:hover .footer-brand-logo {
  transform: scale(1.05);
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.footer-brand-title {
  font-size: 1.85rem;
  font-weight: 900;
  color: #E25822; /* Vivid Rust highlight on dark navy */
  letter-spacing: 0.035em;
  line-height: 0.95;
  text-transform: uppercase;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', Arial, sans-serif;
  transition: color 0.2s ease;
}

.footer-brand:hover .footer-brand-title {
  color: #F97316;
}

.footer-brand-subtitle {
  font-size: 0.68rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: 0.085em;
  text-transform: uppercase;
  line-height: 1.15;
  margin-top: 3px;
  white-space: nowrap;
}

.footer-brand-tagline {
  font-size: 0.76rem;
  font-weight: 500;
  color: #cbd5e1;
  line-height: 1.35;
  margin-top: 5px;
  letter-spacing: 0.01em;
}

.terotech-footer h5 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.terotech-footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 2.5px;
  background-color: var(--color-primary);
  border-radius: 2px;
}

.terotech-footer a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

.terotech-footer a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
  margin-top: 2.5rem;
  font-size: 0.88rem;
  color: #94a3b8;
}