/* ==========================================================================
   LAYMAP FOODEK SOLUTIONS - Main Stylesheet
   Theme: Bold & Editorial - "Blueprint meets Food-Tech"
   Fonts: Poppins (Headings), Inter (Body)
   ========================================================================== */

/* Google Fonts Import */
/* Google Fonts moved to HTML <link> for non-blocking parallel delivery */


/* CSS Variables */
:root {
  /* Colors */
  --bg: #ffffff;
  --primary: #0b3a8a;
  /* Deep Blue */
  --primary-dark: #0a2a5e;
  /* Darker Navy */
  --accent: #f47a20;
  /* Laymap Orange */
  --accent-hover: #d36110;
  /* Darker Orange */
  --text: #1a2233;
  /* Slate Navy */
  --muted: #5a6472;
  /* Cool Muted Gray */
  --section-light: #eef3fb;
  /* Light Blue Section BG */
  --white: #ffffff;
  --border: #dbeafe;
  /* Light Blue Border */

  /* Transparency States & Shadows */
  --accent-glow: rgba(244, 122, 32, 0.15);
  --primary-glow: rgba(11, 58, 138, 0.1);
  --shadow-sm: 0 2px 4px rgba(10, 42, 94, 0.05);
  --shadow-md: 0 10px 30px rgba(10, 42, 94, 0.06);
  --shadow-lg: 0 20px 45px rgba(10, 42, 94, 0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

  /* Fonts */
  --font-heading: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Container Width */
  --container-width: 1200px;
}

/* ==========================================================================
   1. Reset & Global Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ==========================================================================
   2. Typography & Layout Utilities
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--primary-dark);
}

h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
  color: var(--muted);
}

p.lead {
  font-size: 1.15rem;
  line-height: 1.7;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 6rem 0;
}

.section-light {
  background-color: var(--section-light);
}

.section-dark {
  background-color: var(--primary-dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.8);
}

/* Blueprint Texture utility */
.blueprint-texture {
  background-image: url('../images/blueprint-grid.svg');
  background-repeat: repeat;
  background-position: center;
}

.text-center {
  text-align: center;
}

.text-accent {
  color: var(--accent);
}

/* Eyebrow / Technical kicker label */
.kicker {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

/* ==========================================================================
   3. Buttons & Interactive Elements
   ========================================================================== */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  /* Enhanced button readability */
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  padding: 0.9rem 2.25rem;
  border-radius: 4px;
  border: 2px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 42, 94, 0.16);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(244, 122, 32, 0.25);
}

.btn-outline {
  border-color: var(--primary);
  color: var(--primary);
  background-color: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 42, 94, 0.16);
}

.btn-outline-white {
  border-color: var(--white);
  color: var(--white);
  background-color: transparent;
}

.btn-outline-white:hover {
  background-color: var(--white);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

/* Floating WhatsApp Button - Clean Professional Design */
.whatsapp-float {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  background-color: #25D366;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
  border: none;
  z-index: 1000;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  outline: none;
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: #ffffff;
  display: block;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.04);
  background-color: #22bf5b;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22), 0 3px 8px rgba(0, 0, 0, 0.1);
}

.whatsapp-float:focus-visible {
  outline: 3px solid #25D366;
  outline-offset: 3px;
}

.whatsapp-float:active {
  transform: scale(0.98);
}

@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 27px;
    height: 27px;
  }
}

/* Accessibility: Skip to Main Content */
.skip-link {
  position: absolute;
  top: -120px;
  left: 1.5rem;
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid var(--accent);
  border-radius: 4px;
  z-index: 10000;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  transition: top 0.2s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Global Accessible Keyboard Focus Rings (WCAG 2.4.7 & 2.4.11) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 3px !important;
}

.nav-link:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 4px !important;
  border-radius: 2px;
}

.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--accent) !important;
  outline-offset: 2px !important;
}

/* ==========================================================================
   4. Header & Navigation
   ========================================================================== */
.header-wrapper {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 999;
  transition: box-shadow 0.3s ease;
}

.top-bar {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 0.5rem 0;
  font-size: 0.85rem;
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-info {
  display: flex;
  gap: 1.5rem;
}

.top-bar-info li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.main-header {
  padding: 0.55rem 0;
  /* Compact premium header padding: reduces height by ~12-14% */
  transition: padding 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  position: relative;
}

.logo-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  min-width: 180px;
}

.logo-wrapper a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  /* Seamless lockup */
  text-decoration: none;
}

.logo-wrapper img {
  height: 101px;
  /* Proportional 10% increase from 92px preserved */
  width: auto;
  object-fit: contain;
  display: block;
  transition: height 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.logo-subtitle {
  font-family: var(--font-heading);
  font-weight: 800;
  /* Bold crisp typography */
  font-size: 1.05rem;
  color: var(--primary-dark);
  letter-spacing: 3.2px;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  margin-top: -8px;
  /* Tightly couples subtitle with logo artwork, eliminating empty gap while keeping text 100% visible */
  display: block;
}

.main-nav {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-list {
  display: flex;
  gap: 2.5rem;
  /* Balanced horizontal spacing between navigation items */
}

.header-cta-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.02rem;
  /* Increased slightly for enhanced legibility */
  color: var(--text);
  padding: 0.5rem 0;
  position: relative;
  white-space: nowrap;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Sticky Header Scrolled State */
.header-wrapper.scrolled {
  box-shadow: var(--shadow-md);
}

/* Maintain stable header height to prevent document height shift and scroll bouncing */
.main-header {
  min-height: 122px;
}

.header-wrapper.scrolled .main-header {
  padding: 0.55rem 0;
}

.header-wrapper.scrolled .logo-wrapper img {
  height: 101px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--primary-dark);
  cursor: pointer;
}

/* ==========================================================================
   5. Hero Section
   ========================================================================== */
.hero {
  background-color: var(--primary-dark);
  background-image: linear-gradient(rgba(10, 42, 94, 0.65), rgba(10, 42, 94, 0.70)), url('../images/hero-truth.webp');
  background-size: cover;
  background-position: center;
  color: var(--white);
  min-height: 540px;
  display: flex;
  align-items: center;
  position: relative;
  padding: 3.25rem 0;
}

/* Homepage Hero: Attached Reference Source of Truth */
.hero-home {
  background-image: linear-gradient(to right,
      rgba(10, 42, 94, 0) 0%,
      rgba(10, 42, 94, 0) 46%,
      rgba(10, 42, 94, 0.45) 56%,
      rgba(10, 42, 94, 0.80) 70%,
      rgba(10, 42, 94, 0.90) 100%),
    url('../images/hero-truth.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 540px;
  height: auto;
  padding: 3.25rem 0;
}

/* ==========================================================================
   Internal Pages Hero System (1600x600 Visual Source of Truth)
   ========================================================================== */
.hero-internal {
  min-height: 380px;
  height: 380px;
  padding: 0;
  display: flex;
  align-items: center;
  position: relative;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  color: var(--white);
  overflow: hidden;
}

.hero-internal::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* Subtle dark-blue scrim focused on text-safe left zone, keeping center and right photo details completely clear */
  background: linear-gradient(90deg,
      rgba(6, 21, 46, 0.88) 0%,
      rgba(6, 21, 46, 0.72) 36%,
      rgba(6, 21, 46, 0.32) 58%,
      rgba(6, 21, 46, 0.05) 78%,
      rgba(6, 21, 46, 0) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-internal .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-internal-content {
  max-width: 600px;
  text-align: left;
}

.hero-internal .hero-eyebrow,
.hero-internal .kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero-internal .hero-heading,
.hero-internal h1 {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-internal .hero-desc,
.hero-internal p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0;
  max-width: 560px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.hero-internal .hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Individual Page Hero Backgrounds */
.hero-services {
  background-image: url('../images/hero-services.webp');
}

.hero-projects {
  background-image: url('../images/hero-projects.webp');
}

.hero-about {
  background-image: url('../images/hero-about.webp');
}

.hero-contact {
  background-image: url('../images/hero-contact.webp');
}

.hero-blog {
  background-image: url('../images/hero-blog.webp');
}

.hero-machines {
  background-image: url('../images/hero-machines.webp');
}

.hero-container {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  position: relative;
  z-index: 10;
}

.hero-home .hero-content {
  width: 46%;
  max-width: 580px;
  margin-left: auto;
  position: relative;
  z-index: 15;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

.hero-eyebrow {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 0.85rem;
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-heading {
  font-family: var(--font-heading);
  color: var(--white);
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 2rem;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
  opacity: 1 !important;
  visibility: visible !important;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 20;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Trust Indicators */
.hero-trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 0;
  list-style: none;
}

.trust-item {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-item span {
  color: var(--accent);
  font-weight: bold;
}

/* Hero Stats Grid (Glassmorphism) */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  width: 100%;
  margin-top: auto;
}

.hero-stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.hero-stat-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.stat-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Content Presentation */
.anim-fade-up {
  opacity: 1;
}

/* Responsive Hero Overrides */
@media (max-width: 992px) {
  .hero {
    height: auto;
    min-height: 520px;
  }

  .hero-home {
    background-image:
      linear-gradient(180deg,
        rgba(7, 26, 56, 0.40) 0%,
        rgba(7, 26, 56, 0.78) 40%,
        rgba(6, 21, 46, 0.94) 100%),
      url('../images/hero-truth.webp');
    background-position: right top;
    padding: 4.25rem 0 3.25rem 0;
  }

  .hero-container {
    justify-content: center;
  }

  .hero-home .hero-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .hero-heading {
    font-size: 2.75rem;
  }

  .hero-internal {
    min-height: 340px;
    height: auto;
    padding: 3.5rem 0;
    background-position: 70% center;
  }

  .hero-internal-content {
    max-width: 520px;
  }

  .hero-internal .hero-heading,
  .hero-internal h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .hero {
    height: auto;
    padding: 3.5rem 0 2.5rem 0;
  }

  .hero-home {
    background-image:
      linear-gradient(180deg,
        rgba(7, 26, 56, 0.55) 0%,
        rgba(7, 26, 56, 0.85) 35%,
        rgba(6, 21, 46, 0.96) 100%),
      url('../images/hero-truth.webp');
    background-position: 70% top;
    padding: 3.5rem 0 2.5rem 0;
  }

  .hero-internal {
    min-height: 300px;
    height: auto;
    padding: 3.25rem 0 2.75rem 0;
    background-position: center;
  }

  .hero-internal::before {
    background: linear-gradient(180deg,
        rgba(6, 21, 46, 0.82) 0%,
        rgba(6, 21, 46, 0.92) 100%);
  }

  .hero-internal-content {
    max-width: 100%;
    text-align: left;
  }

  .hero-internal .hero-heading,
  .hero-internal h1 {
    font-size: 1.85rem;
  }

  .hero-internal .hero-desc,
  .hero-internal p {
    font-size: 0.95rem;
  }

  .hero-heading {
    font-size: 2.15rem;
  }

  .hero-desc {
    font-size: 1.05rem;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

/* ==========================================================================
   6. Value-Prop Cards Row
   ========================================================================== */
.value-cards-row {
  margin-top: -4rem;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.value-prop-card {
  background-color: var(--white);
  padding: 2.25rem;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
  border-top: 4px solid var(--accent);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.value-prop-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.value-prop-card h3 {
  font-size: 1.15rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
}

.value-prop-card p {
  font-size: 0.9rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ==========================================================================
   7. Intro / Who We Are
   ========================================================================== */
.intro-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

/* ==========================================================================
   8. Credibility / Stats Band
   ========================================================================== */
.stats-band {
  background-color: var(--primary);
  color: var(--white);
  padding: 3rem 0;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-item p {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* ==========================================================================
   9. Services Card Grid (Challenge -> Approach Layout)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--primary-dark);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 2.5rem;
  border-radius: 4px;
  border-top: 4px solid var(--accent);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.service-card-1 {
  background-image: linear-gradient(to bottom, rgba(10, 42, 94, 0.88), rgba(10, 42, 94, 0.96)), url('../images/service-central-kitchen-bg.webp');
}

.service-card-2 {
  background-image: linear-gradient(to bottom, rgba(10, 42, 94, 0.88), rgba(10, 42, 94, 0.96)), url('../images/service-kitchen-revamp-bg.webp');
}

.service-card-3 {
  background-image: linear-gradient(to bottom, rgba(10, 42, 94, 0.88), rgba(10, 42, 94, 0.96)), url('../images/service-mep-consulting-bg.webp');
}

.service-card-4 {
  background-image: linear-gradient(to bottom, rgba(10, 42, 94, 0.88), rgba(10, 42, 94, 0.96)), url('../images/service-yield-optimization-bg.webp');
}

.service-card-5 {
  background-image: linear-gradient(to bottom, rgba(10, 42, 94, 0.88), rgba(10, 42, 94, 0.96)), url('../images/service-custom-machinery-bg.webp');
}

.service-card-6 {
  background-image: linear-gradient(to bottom, rgba(10, 42, 94, 0.88), rgba(10, 42, 94, 0.96)), url('../images/service-automation-control-bg.webp');
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  font-size: 1.35rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.services-grid .service-challenge,
.services-grid .service-approach {
  color: rgba(255, 255, 255, 0.9);
}

.services-grid .service-challenge strong {
  color: #ff6b6b;
  /* High contrast red */
}

.services-grid .service-approach strong {
  color: #60a5fa;
  /* High contrast blue */
}

.services-grid .service-card-bullets {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.services-grid .service-card-bullets li {
  color: rgba(255, 255, 255, 0.85);
}

.service-challenge,
.service-approach {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.service-challenge strong,
.service-approach strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.service-challenge strong {
  color: #c92a2a;
  /* Muted warning red for challenge */
}

.service-approach strong {
  color: #0b3a8a;
}

.service-card-bullets {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.service-card-bullets li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.service-card-bullets li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ==========================================================================
   10. The LAYMAP Approach (Connected Steps Grid Flow)
   ========================================================================== */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  position: relative;
}

.approach-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2.25rem 2rem;
  border-radius: 6px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.approach-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--accent);
}

.approach-step-num {
  display: none;
  /* Removed step numbers for clean premium presentation */
}

.approach-card h3 {
  font-size: 1.42rem;
  /* Increased heading size ~13% for better hierarchy */
  color: var(--white);
  margin-top: 0;
  margin-bottom: 0.85rem;
  font-family: var(--font-heading);
  font-weight: 700;
}

.approach-card p {
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   11. Audience Segments Band & Why Choose Us
   ========================================================================== */
/* ==========================================================================
   11. Interactive Depth Carousel — Sectors We Serve
   ========================================================================== */
.industry-carousel-section {
  position: relative;
  background-color: var(--white);
  overflow: hidden;
}

.depth-carousel-wrapper {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

.depth-carousel-stage {
  position: relative;
  width: 100%;
  height: 315px;
  perspective: 1200px;
  perspective-origin: 50% 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.depth-card {
  position: absolute;
  width: 560px;
  max-width: 86vw;
  height: 275px;
  border-radius: 8px;
  transition: transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1),
    opacity 0.55s cubic-bezier(0.2, 0.9, 0.3, 1),
    box-shadow 0.55s cubic-bezier(0.2, 0.9, 0.3, 1),
    filter 0.55s cubic-bezier(0.2, 0.9, 0.3, 1);
  will-change: transform, opacity;
  cursor: pointer;
}

/* Card inner styling - Industrial Engineering Slate/Navy Aesthetic */
.depth-card-inner {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #091e3d 0%, #051429 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 1.85rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

/* Subtle blueprint CAD grid overlay inside card */
.depth-card-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(244, 122, 32, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 122, 32, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  opacity: 0.7;
}

/* Subtle technical corner marks */
.depth-card-inner::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 22px;
  height: 22px;
  border-top: 1.5px solid rgba(244, 122, 32, 0.6);
  border-right: 1.5px solid rgba(244, 122, 32, 0.6);
  pointer-events: none;
}

.depth-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 2;
  margin-bottom: 0.5rem;
}

.depth-card-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1px;
  line-height: 1;
}

.depth-card-tag {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.25rem 0.65rem;
  border-radius: 3px;
  text-transform: uppercase;
}

.depth-card-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.3;
  position: relative;
  z-index: 2;
}

.depth-card-desc {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.1rem;
  position: relative;
  z-index: 2;
}

.depth-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  position: relative;
  z-index: 2;
  margin-bottom: 0;
}

.depth-spec-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(10, 42, 94, 0.65);
  border: 1px solid rgba(244, 122, 32, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
}

.depth-spec-item .spec-dot {
  width: 5px;
  height: 5px;
  background-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
}

.depth-card-footer {
  position: relative;
  z-index: 2;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.depth-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: gap 0.25s ease, color 0.25s ease;
}

.depth-card-cta:hover {
  color: #ff9142;
  gap: 0.75rem;
}

/* 3D Depth Card States */

/* Active / Center Card: Dominant, fully readable */
.depth-card.is-active {
  transform: translate3d(0, 0, 70px) scale(1);
  opacity: 1;
  z-index: 10;
  cursor: default;
  filter: none;
  box-shadow: 0 25px 50px -12px rgba(7, 28, 61, 0.55),
    0 0 0 1.5px rgba(244, 122, 32, 0.45),
    0 0 35px rgba(244, 122, 32, 0.15);
}

.depth-card.is-active .depth-card-inner {
  border-color: rgba(244, 122, 32, 0.45);
}

/* Previous Card (Left): partially visible behind center */
.depth-card.is-prev {
  transform: translate3d(-52%, 0, -60px) scale(0.84) rotateY(12deg);
  opacity: 0.6;
  z-index: 5;
  filter: brightness(0.75);
  box-shadow: 0 15px 30px -10px rgba(7, 28, 61, 0.35);
}

.depth-card.is-prev:hover {
  opacity: 0.85;
  filter: brightness(0.9);
  transform: translate3d(-50%, 0, -40px) scale(0.86) rotateY(9deg);
}

/* Next Card (Right): partially visible behind center */
.depth-card.is-next {
  transform: translate3d(52%, 0, -60px) scale(0.84) rotateY(-12deg);
  opacity: 0.6;
  z-index: 5;
  filter: brightness(0.75);
  box-shadow: 0 15px 30px -10px rgba(7, 28, 61, 0.35);
}

.depth-card.is-next:hover {
  opacity: 0.85;
  filter: brightness(0.9);
  transform: translate3d(50%, 0, -40px) scale(0.86) rotateY(-9deg);
}

/* Hidden Card (Receded in background) */
.depth-card.is-hidden {
  transform: translate3d(0, 0, -180px) scale(0.68);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

/* Carousel Controls & Indicators */
.depth-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.depth-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-sm);
}

.depth-nav-btn:hover {
  background: var(--primary-dark);
  color: var(--white);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(7, 28, 61, 0.15);
}

.depth-indicators {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.depth-indicator-dot {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.depth-indicator-dot.is-active {
  background: var(--accent);
  width: 44px;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .depth-carousel-stage {
    height: 335px;
  }

  .depth-card {
    width: 500px;
    height: 295px;
  }

  .depth-card.is-prev {
    transform: translate3d(-46%, 0, -40px) scale(0.82) rotateY(8deg);
  }

  .depth-card.is-next {
    transform: translate3d(46%, 0, -40px) scale(0.82) rotateY(-8deg);
  }
}

@media (max-width: 680px) {
  .depth-carousel-stage {
    height: 345px;
  }

  .depth-card {
    width: 86vw;
    height: 305px;
  }

  .depth-card-inner {
    padding: 1.75rem 1.5rem;
  }

  .depth-card-title {
    font-size: 1.25rem;
  }

  .depth-card-desc {
    font-size: 0.88rem;
  }

  .depth-card.is-prev {
    transform: translate3d(-72%, 0, -30px) scale(0.85);
    opacity: 0.45;
  }

  .depth-card.is-next {
    transform: translate3d(72%, 0, -30px) scale(0.85);
    opacity: 0.45;
  }
}

/* ==========================================================================
   11b. Advantages Section (Subtle Architectural CAD Kitchen Layout Background)
   ========================================================================== */
.section-advantages {
  background-color: #F7F4EF;
  background-image: radial-gradient(ellipse 75% 65% at 65% 50%, #FAF8F4 0%, #F5F1EB 55%, #ECE7DD 100%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid #E5E0D6;
  border-bottom: 1px solid #E5E0D6;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.02), inset 0 -2px 10px rgba(0, 0, 0, 0.02);
  padding: 3.5rem 0;
  scroll-margin-top: 90px;
}

.advantages-unified-container {
  display: grid;
  grid-template-columns: 40fr 60fr;
  align-items: center;
  gap: 0;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* LEFT ZONE: Editorial Content (40%) */
.adv-content-zone {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 3rem 1rem 0.5rem;
  background: transparent;
  border: none;
  box-shadow: none;
}

.adv-content-zone .adv-kicker {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: #FF4B17;
  letter-spacing: 0.16em;
  margin-bottom: 0.85rem;
  display: block;
}

.adv-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2rem, 2.4vw, 2.65rem);
  line-height: 1.2;
  color: #0F254A;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.adv-heading .highlight-orange {
  color: #FF4B17;
}

.adv-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #475569;
  line-height: 1.65;
  margin-bottom: 0.95rem;
}

.adv-sub {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: #64748B;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.adv-action {
  margin-bottom: 2rem;
}

.adv-action .adv-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  background: #FF4B17;
  color: #FFFFFF;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 75, 23, 0.28);
  transition: all 0.2s ease;
}

.adv-action .adv-cta-btn:hover {
  background: #E03E0F;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 75, 23, 0.35);
  color: #FFFFFF;
}

/* Left Bottom Engineering Metadata */
.adv-meta {
  padding-top: 1.5rem;
  border-top: 1px solid #E5E0D6;
}

.adv-meta-line {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #64748B;
  line-height: 1.55;
  font-weight: 500;
}

.adv-meta-motto {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  color: #FF4B17;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

/* RIGHT ZONE: 3D Staircase Hero Visual (60%) */
.adv-visual-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.adv-staircase-img {
  width: 100%;
  height: auto;
  max-height: 600px;
  object-fit: contain;
  display: block;
}

/* Tablet (1024px and below) */
@media (max-width: 1024px) {
  .advantages-unified-container {
    grid-template-columns: 45fr 55fr;
    padding: 0 1.5rem;
  }

  .adv-content-zone {
    padding: 1rem 2rem 1rem 0;
  }

  .adv-staircase-img {
    max-height: 520px;
  }
}

/* Mobile (860px and below) */
@media (max-width: 860px) {
  .section-advantages {
    padding: 3rem 0;
  }

  .advantages-unified-container {
    display: flex;
    flex-direction: column;
    padding: 0 1.25rem;
  }

  .adv-content-zone {
    width: 100%;
    padding: 0 0 2rem 0;
    order: 1;
  }

  .adv-visual-zone {
    width: 100%;
    padding: 0;
    order: 2;
  }

  .adv-staircase-img {
    max-height: 460px;
    height: auto;
  }
}

/* ==========================================================================
   12. Asymmetric Alternating Layout Rows (Details / Product Pages)
   ========================================================================== */
.asymmetric-row {
  display: flex;
  flex-direction: row;
  gap: 4.5rem;
  align-items: center;
  margin-bottom: 6rem;
}

.asymmetric-row:nth-child(even) {
  flex-direction: row-reverse;
}

.asymmetric-text-col,
.asymmetric-image-col {
  flex: 1;
  width: 50%;
}

.asymmetric-row:last-child {
  margin-bottom: 0;
}

.asymmetric-image-col {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  background-color: var(--primary-dark);
  width: 100%;
  aspect-ratio: 3 / 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.asymmetric-image-col img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
  display: block;
}

.asymmetric-row:hover .asymmetric-image-col img {
  transform: none;
}

.capabilities-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

.capabilities-list li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.capabilities-list li::before {
  content: '▪';
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* ==========================================================================
   12b. Sticky Services Storytelling Experience (services.html)
   Controlled Matte Industrial System: #071a38 Matte + Elevated Info Objects
   ========================================================================== */
.services-story-section {
  position: relative;
  background-color: #071a38;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #ffffff;
  padding: 3.5rem 0 5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.services-story-section .container {
  max-width: 1280px;
}

.services-story-wrapper {
  display: grid;
  grid-template-columns: 4.6fr 5.4fr;
  /* Fractional units preserving 46:54 ratio without gap overflow */
  gap: 3.5rem;
  align-items: start;
  position: relative;
}

/* Left Content Column */
.services-story-content-col {
  display: flex;
  flex-direction: column;
}

.service-story-block {
  padding: 4.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-story-block:first-child {
  padding-top: 1rem;
}

.service-story-block:last-child {
  border-bottom: none;
  padding-bottom: 3rem;
}

.story-block-header {
  margin-bottom: 1.25rem;
}

.story-block-header .kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 0.35rem;
}

.story-title {
  font-family: var(--font-heading);
  font-size: 2.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

/* Brief Challenge/Approach Box */
.story-brief-box {
  background: rgba(11, 47, 107, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 1.75rem;
}

.story-brief-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.story-brief-row:last-child {
  margin-bottom: 0;
}

.brief-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 3px;
  text-transform: uppercase;
  flex-shrink: 0;
  min-width: 78px;
  text-align: center;
}

.challenge-label {
  background: rgba(239, 68, 68, 0.15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.approach-label {
  background: rgba(255, 106, 0, 0.18);
  color: #ff9d5c;
  border: 1px solid rgba(255, 106, 0, 0.4);
}

.brief-text {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.story-action-row {
  margin-top: 2rem;
}

/* Right Sticky Column */
.services-story-sticky-col {
  position: sticky;
  top: 110px;
  height: calc(100vh - 140px);
  max-height: 620px;
  min-height: 480px;
  display: flex;
  align-items: center;
}

.services-sticky-stage {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.15);
  background-color: #040e1f;
}

.sticky-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.sticky-service-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.sticky-service-img.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Engineering metadata badge on sticky image */
.sticky-image-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: linear-gradient(to top, rgba(4, 14, 31, 0.96) 0%, rgba(4, 14, 31, 0.7) 65%, transparent 100%);
  padding: 1.75rem 2rem 1.35rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.sticky-meta-index {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 1.8px;
}

.sticky-meta-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.service-mobile-img {
  display: none;
}

/* ==========================================================================
   INFOGRAPHIC 01: Hexagonal / Faceted Interlocking CAD Flow Matrix (Ref 01)
   Layout -> Zoning -> Flow -> Capacity
   ========================================================================== */
.ref1-hex-matrix {
  position: relative;
  margin: 1.75rem 0 0.5rem 0;
}

.ref1-matrix-track {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}

.ref1-hex-card {
  position: relative;
  background: linear-gradient(145deg, #0e2752 0%, #081a38 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid #1a5fb4;
  padding: 1.15rem 1.15rem 1.15rem 3.6rem;
  border-radius: 6px;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.ref1-hex-card:hover {
  transform: translateY(-3px);
  border-left-color: var(--accent);
  border-color: rgba(255, 106, 0, 0.4);
  box-shadow: 0 14px 28px -6px rgba(0, 0, 0, 0.6), 0 0 15px rgba(255, 106, 0, 0.15);
}

.ref1-hex-badge {
  position: absolute;
  top: 1.15rem;
  left: 0.95rem;
  width: 32px;
  height: 36px;
  background: linear-gradient(135deg, var(--accent) 0%, #d85700 100%);
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 4px 10px rgba(255, 106, 0, 0.4);
}

.ref1-hex-body h4 {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: 0.3px;
}

.ref1-hex-body p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   INFOGRAPHIC 02: Kitchen Revamp Transformation Pods (Ref 02)
   As-Is Diagnostic -> Modernization Roadmap -> Re-Engineered To-Be
   ========================================================================== */
.ref2-revamp-flow {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.75rem 0 0.5rem 0;
}

.ref2-stage-pod {
  background: linear-gradient(145deg, #0d244c 0%, #091a36 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 1.25rem 1.4rem;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.45);
}

.ref2-stage-pod.stage-asis {
  border-left: 4px solid #64748b;
}

.ref2-stage-pod.stage-tobe {
  border-left: 4px solid var(--accent);
  background: linear-gradient(145deg, #102d5c 0%, #0a1f42 100%);
  box-shadow: 0 14px 30px -6px rgba(0, 0, 0, 0.55), 0 0 18px rgba(255, 106, 0, 0.12);
}

.ref2-pod-tag {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #94a3b8;
  margin-bottom: 0.9rem;
  display: inline-block;
  padding-bottom: 0.35rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
  width: 100%;
}

.ref2-pod-tag.tag-accent {
  color: var(--accent);
  border-bottom-color: rgba(255, 106, 0, 0.35);
}

.ref2-pod-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.15rem;
}

.ref2-step {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.ref2-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.ref2-step-num.accent {
  background: var(--accent);
  color: #ffffff;
  border-color: #ff8533;
  box-shadow: 0 2px 8px rgba(255, 106, 0, 0.4);
}

.ref2-step h5 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.ref2-step p {
  font-size: 0.81rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin: 0;
}

.ref2-transform-divider {
  display: flex;
  justify-content: center;
  position: relative;
  margin: -0.25rem 0;
}

.ref2-arrow-track {
  background: #06152d;
  border: 1px solid rgba(255, 106, 0, 0.4);
  border-radius: 20px;
  padding: 0.35rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.ref2-arrow-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.ref2-transform-badge {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ffffff;
}

/* ==========================================================================
   INFOGRAPHIC 03: Central Spine & Alternating Utility Riser (Ref 03)
   Electrical -> Plumbing -> HVAC -> Drainage
   ========================================================================== */
.ref3-mep-spine {
  position: relative;
  margin: 1.75rem 0 0.5rem 0;
  padding: 0.5rem 0;
}

.ref3-central-trunk {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: linear-gradient(180deg, #1a5fb4 0%, var(--accent) 50%, #1a5fb4 100%);
  box-shadow: 0 0 10px rgba(26, 95, 180, 0.5);
  border-radius: 2px;
}

.ref3-branch {
  position: relative;
  width: 47%;
  margin-bottom: 1.15rem;
}

.ref3-branch:last-child {
  margin-bottom: 0;
}

.ref3-branch.branch-left {
  margin-right: auto;
  padding-right: 1.25rem;
}

.ref3-branch.branch-right {
  margin-left: auto;
  padding-left: 1.25rem;
}

.ref3-branch.branch-left::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  z-index: 3;
}

.ref3-branch.branch-right::after {
  content: '';
  position: absolute;
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  z-index: 3;
}

.ref3-node-card {
  background: linear-gradient(145deg, #0d244c 0%, #081a38 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 1.1rem 1.2rem;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.ref3-node-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 0, 0.4);
}

.ref3-node-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.ref3-node-code {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
  background: rgba(255, 106, 0, 0.12);
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid rgba(255, 106, 0, 0.3);
}

.ref3-node-icon {
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ref3-node-card h4 {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.ref3-node-card p {
  font-size: 0.81rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   INFOGRAPHIC 04: Stepped 3D Ascending Staircase Progression (Ref 04)
   Process -> Flow -> Bottleneck -> Optimization -> Yield
   ========================================================================== */
.ref4-staircase {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin: 1.75rem 0 0.5rem 0;
}

.ref4-step-item {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: linear-gradient(145deg, #0c234a 0%, #081a38 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 8px 20px -6px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.ref4-step-item:hover {
  transform: translateX(4px);
  border-color: rgba(255, 106, 0, 0.4);
}

.ref4-step-item.step-1 {
  margin-left: 0;
}

.ref4-step-item.step-2 {
  margin-left: 12px;
}

.ref4-step-item.step-3 {
  margin-left: 24px;
}

.ref4-step-item.step-4 {
  margin-left: 36px;
}

.ref4-step-item.step-5 {
  margin-left: 48px;
  background: linear-gradient(145deg, #133364 0%, #0d254c 100%);
  border: 1px solid rgba(255, 106, 0, 0.5);
  border-left: 4px solid var(--accent);
  box-shadow: 0 12px 30px -6px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 106, 0, 0.2);
}

.ref4-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 0.35rem 0.5rem;
  background: rgba(26, 95, 180, 0.25);
  border: 1px solid rgba(26, 95, 180, 0.4);
  border-radius: 4px;
  flex-shrink: 0;
}

.ref4-step-marker.target-marker {
  background: linear-gradient(135deg, var(--accent) 0%, #d85700 100%);
  border-color: #ff8533;
  box-shadow: 0 4px 10px rgba(255, 106, 0, 0.4);
}

.ref4-step-marker .step-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.92rem;
  color: #ffffff;
  line-height: 1;
}

.ref4-step-marker .step-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #93c5fd;
  margin-top: 2px;
}

.ref4-step-marker.target-marker .step-tag {
  color: #ffffff;
}

.ref4-step-body h4 {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.ref4-step-body p {
  font-size: 0.81rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   INFOGRAPHIC 05: Layered CAD Specification Hierarchy Stack (Ref 05)
   Design -> Engineering -> Documentation -> Execution
   ========================================================================== */
.ref5-spec-hierarchy {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.75rem 0 0.5rem 0;
}

.ref5-tier-card {
  position: relative;
  background: linear-gradient(145deg, #0e2752 0%, #081a38 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #1a5fb4;
  border-radius: 6px;
  padding: 1.1rem 1.35rem;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.ref5-tier-card:hover {
  transform: translateY(-2px);
  border-left-color: var(--accent);
}

.ref5-tab-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(26, 95, 180, 0.25);
  border: 1px solid rgba(26, 95, 180, 0.4);
  padding: 2px 8px;
  border-radius: 3px;
  margin-bottom: 0.55rem;
}

.ref5-tab-flag.highlight-flag {
  background: rgba(255, 106, 0, 0.2);
  border-color: rgba(255, 106, 0, 0.4);
}

.ref5-tab-flag .tab-index {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent);
}

.ref5-tab-flag .tab-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #ffffff;
}

.ref5-card-inner h4 {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.ref5-card-inner p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  margin: 0;
}

/* ==========================================================================
   INFOGRAPHIC 06: Circular Ecosystem Hub & Orbiting Control Pods (Ref 06)
   Sensors -> Control -> PLC -> HMI -> Automation -> Monitoring
   ========================================================================== */
.ref6-automation-ecosystem {
  margin: 1.75rem 0 0.5rem 0;
}

.ref6-hub-center {
  background: linear-gradient(135deg, #102d5c 0%, #091c3b 100%);
  border: 1px solid rgba(255, 106, 0, 0.45);
  border-radius: 50px;
  padding: 0.85rem 1.75rem;
  text-align: center;
  margin-bottom: 1.15rem;
  box-shadow: 0 10px 30px -6px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 106, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.ref6-hub-center::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.08), transparent);
}

.ref6-hub-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ref6-hub-inner .hub-code {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
}

.ref6-hub-inner h4 {
  font-family: var(--font-heading);
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.4px;
}

.ref6-hub-inner .hub-status {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #4ade80;
}

.ref6-nodes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.ref6-node-box {
  background: linear-gradient(145deg, #0c234a 0%, #081a38 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 1.1rem;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.ref6-node-box:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 106, 0, 0.4);
}

.ref6-node-box .node-tag {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ref6-node-box .node-tag::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.ref6-node-box h5 {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.ref6-node-box p {
  font-size: 0.81rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  margin: 0;
}

/* ==========================================================================
   Mobile & Tablet Responsive System (services.html)
   ========================================================================== */
@media (max-width: 992px) {
  .services-story-wrapper {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .services-story-sticky-col {
    display: none;
    /* Mobile stacks naturally: Content -> Image */
  }

  .service-story-block {
    min-height: auto;
    padding: 3rem 0;
  }

  .service-mobile-img {
    display: block;
    width: 100%;
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
  }

  .service-mobile-img img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
  }

  .ref1-matrix-track,
  .ref2-pod-content,
  .ref6-nodes-grid {
    grid-template-columns: 1fr;
  }

  .ref3-central-trunk {
    left: 14px;
    transform: none;
  }

  .ref3-branch {
    width: 100%;
    padding-left: 2.25rem !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .ref3-branch.branch-left::after,
  .ref3-branch.branch-right::after {
    left: 10px;
    right: auto;
  }

  .ref4-step-item.step-1,
  .ref4-step-item.step-2,
  .ref4-step-item.step-3,
  .ref4-step-item.step-4,
  .ref4-step-item.step-5 {
    margin-left: 0;
  }

  .ref6-hub-inner {
    flex-direction: column;
    gap: 0.4rem;
  }
}

/* ==========================================================================
   13. Gallery Grid (2 Columns Desktop / 1 Column Mobile)
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.gallery-card {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background-color: var(--white);
  transition: var(--transition);
}

.gallery-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.gallery-card-img {
  height: 320px;
  overflow: hidden;
  background-color: var(--primary-dark);
}

@media (max-width: 992px) {
  .gallery-card-img {
    height: 260px;
  }
}

@media (max-width: 576px) {
  .gallery-card-img {
    height: 220px;
  }
}

.gallery-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-card:hover .gallery-card-img img {
  transform: none;
}

.gallery-card-caption {
  padding: 1.25rem 1.5rem;
}

.gallery-card-caption h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-dark);
  margin-bottom: 0.25rem;
}

.gallery-card-caption p {
  font-size: 0.8rem;
  margin-bottom: 0;
  color: var(--muted);
}

/* ==========================================================================
   14. Testimonials (3 Unattributed Representative Outputs + Empty Quote Cards)
   ========================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.testimonial-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.testimonial-card::before {
  content: '“';
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1;
  color: rgba(244, 122, 32, 0.15);
  position: absolute;
  top: 15px;
  left: 20px;
}

.testimonial-result {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.testimonial-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.testimonial-label {
  display: inline-block;
  background-color: var(--section-light);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.5px;
}

.testimonial-card-empty {
  border: 2px dashed var(--border);
  background-color: var(--section-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  min-height: 250px;
}

.testimonial-card-empty span {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-dark);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.testimonial-card-empty p {
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 220px;
  margin-bottom: 0;
}

/* ==========================================================================
   15. Prestigious Clients Logo Strip
   ========================================================================== */
.logo-strip-wrapper {
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ==========================================================================
   15. Partners & Clients Marquee Infinite Carousel
   ========================================================================== */
.clients-section-heading {
  font-size: 2.65rem;
  /* Increased section heading size slightly */
  color: var(--primary-dark);
  margin-bottom: 1.25rem;
  font-weight: 800;
}

.logo-section {
  padding: 5.5rem 0;
  /* Increased vertical spacing around the heading and carousel */
}

.logo-marquee-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1.75rem 0;
}

.logo-marquee-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: marqueeInfinite 30s linear infinite;
}

.logo-marquee-track:hover {
  animation-play-state: paused;
}

@keyframes marqueeInfinite {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.logo-item {
  width: 280px;
  /* Significantly increased logo container size */
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.logo-item:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(10, 42, 94, 0.12);
  transform: translateY(-3px);
}

.logo-item img {
  max-width: 100%;
  max-height: 80px;
  /* Substantially enlarged logo artwork display height */
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  opacity: 1 !important;
  filter: none !important;
}

@media (max-width: 1024px) {
  .logo-marquee-track {
    gap: 1.5rem;
  }

  .logo-item {
    width: 240px;
    height: 98px;
    padding: 0.75rem 1.25rem;
  }

  .logo-item img {
    max-height: 68px;
  }
}

@media (max-width: 640px) {
  .logo-marquee-track {
    gap: 1rem;
  }

  .logo-item {
    width: 195px;
    height: 84px;
    padding: 0.5rem 0.9rem;
  }

  .logo-item img {
    max-height: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo-marquee-track {
    animation: none;
    overflow-x: auto;
  }
}

/* Footer 3-Line Address Formatting */
.footer-address-block {
  display: block;
  line-height: 1.6;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 2px;
}

/* ==========================================================================
   16. Blog & News Articles
   ========================================================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.blog-card {
  background-color: var(--white);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.blog-img-box {
  height: 200px;
  overflow: hidden;
  background-color: var(--primary-dark);
}

.blog-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.blog-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-title {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.blog-card-intro {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-read-more {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   17. Contact Form & Maps
   ========================================================================== */
.contact-section-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
}

.contact-info-panel {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 3rem;
  border-radius: 4px;
  border-left: 4px solid var(--accent);
}

.contact-info-panel h2,
.contact-info-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-details-list li {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-icon {
  font-size: 1.25rem;
  color: var(--accent);
}

.contact-text h5 {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.contact-text p,
.contact-text a {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.contact-text a:hover {
  color: var(--white);
  text-decoration: underline;
}

.contact-form-box {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary-dark);
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background-color: var(--section-light);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background-color: var(--white);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

textarea.form-control {
  resize: vertical;
}

.map-container {
  height: 400px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 4rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   18. Footer
   ========================================================================== */
.footer {
  background-color: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 0 38px 0;
  /* Premium spacious top/bottom padding */
  border-top: 4px solid var(--accent);
}

.footer-container {
  max-width: 1280px;
  /* Centered container width for optimal proportion */
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 3.5fr 1.8fr 2fr 2.7fr;
  /* Fractional units preserving exact 35:18:20:27 proportions and preventing horizontal gap overflow */
  gap: 45px;
  /* Spacious gap between columns */
  margin-bottom: 2.5rem;
  align-items: flex-start;
  /* Perfect top alignment across all 4 columns */
}

.footer-col-title {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
  /* Aligned header spacing */
}

.footer-logo-wrapper {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  margin-bottom: 22px;
}

.footer-logo {
  height: 84px;
  /* Significantly larger logo (~30% increase) as visual anchor */
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}

.footer-logo-subtitle {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.94rem;
  /* Clear readable subtitle under footer logo */
  color: var(--white);
  letter-spacing: 3.2px;
  text-transform: uppercase;
  line-height: 1;
  margin-top: -3px;
}

.footer-about-desc {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 22px;
  /* Group spacing */
  max-width: 340px;
}

.footer-about-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
  /* Group spacing */
}

.footer-about-contact li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
  font-size: 0.92rem;
}

.footer-about-contact a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-about-contact a:hover {
  color: var(--accent);
}

.footer-icon {
  color: var(--accent);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 13px;
  /* Clean link vertical spacing */
}

.footer-links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.98rem;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent);
  /* Brand orange hover */
  transform: translateX(6px);
  /* Smooth slide-right transition */
}

.footer-contact-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-info-list li {
  display: flex;
  align-items: flex-start;
  /* Aligns icon with top line of text */
  gap: 0.85rem;
  margin-bottom: 18px;
  /* Clean group gap */
}

.footer-contact-svg {
  color: var(--accent);
  /* Brand orange accent */
  width: 16px;
  height: 16px;
  stroke-width: 2.25px;
  flex-shrink: 0;
}

.footer-contact-info-list .footer-contact-svg {
  margin-top: 3px;
  /* Precise baseline offset to align with first text line */
}

.footer-contact-info-list li strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  color: var(--white);
  opacity: 0.6;
  margin-bottom: 0.25rem;
}

.footer-contact-info-list li span {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-contact-info-list li a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact-info-list li a:hover {
  color: var(--accent);
}

/* Modern Circular Social Icons */
.footer-social-icons {
  display: flex;
  gap: 12px;
  /* Equal spacing between icons */
}

.footer-social-icons a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  /* Circular icons */
  background-color: rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--white);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), background-color 0.3s ease, color 0.3s ease;
}

.footer-social-icons a:hover {
  background-color: var(--accent);
  /* Orange background on hover */
  color: var(--white);
  /* White icon */
  transform: translateY(-3px);
  /* Lift slightly on hover */
}

.footer-divider {
  border: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.12);
  /* Thin divider line */
  margin: 28px 0 22px 0;
  /* Reduced gap between divider and copyright */
}

.footer-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-copyright,
.footer-attribution {
  font-family: var(--font-heading);
}

.footer-attribution {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.footer-attribution .credit-sep {
  opacity: 0.35;
}

.footer-attribution .dev-credit {
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.01em;
}

.footer-attribution .dev-credit strong {
  color: #FF4B17;
  /* Digital Orange accent */
  font-weight: 600;
}

/* Home Final CTA Section - Technical Engineering Visual Enhancement */
.home-final-cta {
  position: relative;
  background-color: #0F254A;
  /* Deep Navy */
  border-top: 2px solid #FF4B17;
  /* Digital Orange */
  border-bottom: 2px solid #0F254A;
  overflow: hidden;
  padding: 6.5rem 0 5.5rem 0;
  scroll-margin-top: 100px;
}

.home-final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(135deg, rgba(15, 37, 74, 0.94) 0%, rgba(10, 42, 94, 0.91) 50%, rgba(26, 51, 255, 0.32) 100%),
    url('../images/service-01-central-kitchen.webp');
  background-size: cover;
  background-position: center right;
  opacity: 0.42;
  filter: contrast(1.15) saturate(1.1);
  pointer-events: none;
}

.home-final-cta::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/blueprint-grid.svg');
  background-repeat: repeat;
  background-position: center;
  opacity: 0.35;
  pointer-events: none;
}

.home-final-cta-inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
  margin: 0 auto;
}

.home-final-cta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  background: rgba(26, 51, 255, 0.18);
  border: 1px solid rgba(26, 51, 255, 0.4);
  border-radius: 999px;
  color: #93c5fd;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.home-final-cta-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #FF4B17;
  /* Digital Orange dot */
  box-shadow: 0 0 8px #FF4B17;
}

@media (max-width: 768px) {
  .home-final-cta {
    padding: 5rem 0 4rem 0;
    scroll-margin-top: 80px;
  }
}

/* Footer Responsive Overrides */
@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 60px 0 30px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .footer-logo {
    margin: 0 auto 1.5rem auto;
  }

  .footer-about-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-about-contact li {
    justify-content: center;
  }

  .footer-contact-info-list li {
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
  }

  .footer-social-icons {
    justify-content: center;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   19. Responsive Styling & Media Queries
   ========================================================================== */
@media (max-width: 1100px) {
  .logo-wrapper img {
    height: 77px;
    /* 10% proportional increase (70 * 1.10 = 77px) */
  }
}

@media (max-width: 992px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .intro-grid,
  .contact-section-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .asymmetric-row,
  .asymmetric-row:nth-child(even) {
    flex-direction: column;
    gap: 2.5rem;
  }

  .asymmetric-text-col,
  .asymmetric-image-col {
    width: 100%;
  }

  .approach-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1025px) and (max-width: 1200px) {
  .nav-list {
    gap: 1.5rem;
    /* Compact horizontal spacing preventing crowding on compact desktop */
  }

  .nav-link {
    font-size: 0.95rem;
  }

  .header-cta-wrapper .btn {
    padding: 0.55rem 1.15rem !important;
    font-size: 0.82rem !important;
  }
}

/* Tablet & Mobile Navigation Breakpoint (1024px) */
@media (max-width: 1024px) {
  .top-bar {
    display: none;
    /* Hide for clean space optimization */
  }

  .main-header {
    padding: 0.5rem 0;
  }

  .main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo-wrapper {
    flex: 0 0 auto;
    order: 1;
    min-width: auto;
  }

  .logo-wrapper img {
    height: 64px;
  }

  .logo-subtitle {
    font-size: 0.75rem;
    letter-spacing: 2px;
  }

  .header-cta-wrapper {
    display: flex;
    order: 2;
    margin-left: auto;
    margin-right: 1.25rem;
    flex: 0 0 auto;
  }

  .header-cta-wrapper .btn {
    padding: 0.55rem 1.15rem !important;
    font-size: 0.84rem !important;
    white-space: nowrap;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 3;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: #F8FAFC;
    color: var(--primary-dark);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .mobile-menu-btn:hover {
    background-color: rgba(26, 51, 255, 0.08);
    border-color: var(--primary);
    color: var(--primary);
  }

  .main-nav {
    display: none;
    /* Toggle state managed by main.js */
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12), 0 4px 10px rgba(0, 0, 0, 0.08);
    padding: 1.25rem 1.75rem;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid var(--border);
    z-index: 1000;
  }

  .main-nav.active {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
    margin-bottom: 0;
    width: 100%;
  }

  .nav-link {
    width: 100%;
    padding: 0.75rem 0.5rem;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .nav-link:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 0.8rem 1.4rem;
  }

  .logo-wrapper img {
    height: 52px;
  }

  .logo-subtitle {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
    margin-top: -4px;
  }

  .header-cta-wrapper {
    margin-right: 0.75rem;
  }

  .header-cta-wrapper .btn {
    padding: 0.42rem 0.75rem !important;
    font-size: 0.76rem !important;
  }

  .mobile-menu-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    font-size: 1.35rem;
  }
}

@media (max-width: 768px) {

  .hero {
    padding: 5rem 0;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .value-cards-row {
    margin-top: 0;
    padding-top: 2rem;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .capabilities-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .contact-form-box {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   20. Machines Page Grid & Card Styles
   ========================================================================== */
.machines-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

.machine-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.machine-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.machine-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: #f7fafc;
  border-bottom: 1px solid var(--border);
}

.machine-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.machine-card:hover .machine-image-wrapper img {
  transform: none;
}

.machine-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.machine-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.machine-desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.machine-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* ==========================================================================
   21. Featured Machines Section (Homepage)
   ========================================================================== */
.featured-machines-section {
  background-color: #F8FAFC;
  padding: 6rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  /* Large spacing between cards */
  margin-bottom: 4rem;
}

.featured-card {
  background-color: var(--white);
  border-radius: 16px;
  /* Rounded corners 16px */
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(10, 42, 94, 0.05);
  /* Soft shadow */
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(10, 42, 94, 0.04);
}

.featured-card:hover {
  transform: translateY(-8px);
  /* Lift 8px */
  box-shadow: 0 16px 36px rgba(10, 42, 94, 0.12);
  /* Slight shadow increase */
}

.featured-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  /* Consistent aspect ratio */
  overflow: hidden;
  background-color: #f7fafc;
}

.featured-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.featured-card:hover .featured-img-wrapper img {
  transform: none;
}

.featured-card-content {
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.featured-card-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.featured-card-desc {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  /* Short 2-line description */
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.95rem;
  /* Forces 2-line height alignment */
}

/* Key feature chips */
.featured-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding: 0;
  list-style: none;
}

.feature-chip {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-dark);
  background-color: var(--section-light);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  border: 1px solid var(--border);
}

.feature-chip span {
  color: var(--accent);
  font-weight: bold;
}

.featured-card .btn {
  align-self: flex-start;
  margin-top: auto;
  width: 100%;
  text-align: center;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .featured-machines-section {
    padding: 4rem 0;
  }

  .featured-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ==========================================================================
   22. Food Processing Machines Page CSS Tokens
   ========================================================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

.category-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.25rem 2rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(10, 42, 94, 0.05);
}

.category-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.category-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.category-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.category-desc {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}

.machines-catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.catalog-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 20px rgba(10, 42, 94, 0.05);
}

.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.catalog-img-wrapper {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.catalog-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.catalog-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.catalog-desc {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.95rem;
  /* Aligns description height */
}

.catalog-specs {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.catalog-specs li {
  font-size: 0.88rem;
  margin-bottom: 0.5rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
}

.catalog-specs li strong {
  color: var(--primary-dark);
}

.catalog-app-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.catalog-app-chip {
  font-size: 0.72rem;
  font-weight: 600;
  background-color: var(--section-light);
  color: var(--primary-dark);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid var(--border);
}

.catalog-card .btn {
  margin-top: auto;
  width: 100%;
  text-align: center;
}


/* Engineering Process Timeline */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1.5rem;
  position: relative;
  margin-top: 3.5rem;
}

.timeline-step {
  position: relative;
  padding-top: 1.25rem;
}

.timeline-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: var(--border);
  z-index: 1;
}

.timeline-step::after {
  content: '';
  position: absolute;
  top: -3px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--border);
  z-index: 2;
}

.timeline-step.active::before {
  background-color: var(--accent);
}

.timeline-step.active::after {
  background-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 122, 32, 0.2);
}

.step-num {
  display: none;
  /* Step numbers removed completely */
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  /* Increased heading size ~14% for enhanced hierarchy */
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  margin-top: 0.25rem;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}

/* FAQ Accordion Details summary */
.faq-details {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1.25rem 1.75rem;
  transition: var(--transition);
}

.faq-details[open] {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.faq-summary {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.05rem;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: bold;
}

.faq-details[open] .faq-summary::after {
  content: '−';
}

.faq-answer {
  margin-top: 1rem;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

/* Full Width CTA Banner */
.cta-banner {
  background-color: var(--primary-dark);
  background-image: linear-gradient(rgba(10, 42, 94, 0.9), rgba(10, 42, 94, 0.95)), url('../images/machine-conveyor.webp');
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 6rem 0;
  text-align: center;
}

/* Responsive Overrides */
@media (max-width: 1100px) {
  .timeline-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .timeline-step::before {
    display: none;
    /* Hide line connection in wrap layout */
  }
}

@media (max-width: 992px) {
  .machines-catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .machines-catalog-grid {
    grid-template-columns: 1fr;
  }

  .timeline-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .timeline-step {
    padding-left: 3.5rem;
    padding-top: 0;
    min-height: 80px;
  }

  .timeline-step::before {
    display: block;
    left: 14px;
    top: 14px;
    bottom: -14px;
    width: 4px;
    height: auto;
    right: auto;
  }

  .timeline-step:last-child::before {
    display: none;
  }

  .step-num {
    left: 0;
    top: 0;
  }
}

/* ==========================================================================
   Global Scroll Reveal Animation System
   ========================================================================== */
.reveal-init {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.reveal-init.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger utilities for card and element groups */
.reveal-stagger-1 {
  transition-delay: 80ms;
}

.reveal-stagger-2 {
  transition-delay: 160ms;
}

.reveal-stagger-3 {
  transition-delay: 240ms;
}

/* ==========================================================================
   Micro-Interaction Polish (Navigation, Buttons, Cards, Images)
   ========================================================================== */

/* Button Hover Micro-Interactions */
.btn {
  transition: background-color 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.btn:hover {
  transform: translateY(-2px);
}

/* Where text arrow or icon exists inside button, move 3px right smoothly */
.btn-primary:hover,
.btn-accent:hover,
.btn-outline:hover,
.btn-outline-white:hover {
  letter-spacing: 0.01em;
}

/* Card Hover Micro-Interactions (translateY -3px, subtle shadow & border clarity) */
.service-card,
.catalog-card,
.gallery-card,
.value-prop-card,
.category-card {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s ease;
}

.service-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px -4px rgba(10, 42, 94, 0.18) !important;
  border-left-color: rgba(255, 255, 255, 0.22) !important;
  border-right-color: rgba(255, 255, 255, 0.22) !important;
  border-bottom-color: rgba(255, 255, 255, 0.22) !important;
}

.catalog-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px -4px rgba(10, 42, 94, 0.12) !important;
  border-color: rgba(11, 58, 138, 0.28) !important;
}

.gallery-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 12px 28px -4px rgba(10, 42, 94, 0.14) !important;
  border-color: rgba(11, 58, 138, 0.28) !important;
}

.value-prop-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 14px 32px -4px rgba(10, 42, 94, 0.12) !important;
  border-color: rgba(11, 58, 138, 0.28) !important;
  border-top-color: var(--accent) !important;
}

.category-card:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 10px 24px -4px rgba(10, 42, 94, 0.10) !important;
  border-color: rgba(11, 58, 138, 0.25) !important;
}

/* Card Images: Contained overflow */
.catalog-img-wrapper,
.gallery-card-img {
  overflow: hidden;
}

/* Accessibility: Immediate visibility without movement if reduced motion is requested */
@media (prefers-reduced-motion: reduce) {
  .reveal-init {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .nav-link::after,
  .btn,
  .service-card,
  .catalog-card,
  .gallery-card,
  .value-prop-card,
  .category-card,
  .catalog-img-wrapper img,
  .gallery-card-img img {
    transition: none !important;
    transform: none !important;
  }

  .nav-link:hover::after,
  .nav-link.active::after {
    transform: none !important;
    width: 100% !important;
  }
}