/* Sections - Homepage-Specific Layout Rules */

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    display: flex !important;
    min-height: 100vh !important;
    padding-top: 70px !important;
    position: relative !important;
    overflow: visible !important;
    background: #080808 !important;
}

.hero-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 4rem !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 2rem !important;
    align-items: start !important;
    justify-content: flex-start !important;
}

@media (min-width: 1280px) {
    .hero-content {
        padding: 0 3rem !important;
    }
}

.hero-text {
    width: 100% !important;
    max-width: 100% !important;
    position: relative !important;
    z-index: 1 !important;
    margin-bottom: 2rem !important;
}

.hero-title,
.hero-subtitle {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: none !important;
    text-shadow: none !important;
}

/* Add spacing above "automation. intelligence. precision." line */
.hero-subtitle,
.hero-text p:first-of-type,
.hero-text > p:first-child {
    margin-top: 1.5rem !important;
    padding-top: 0.5rem !important;
}

.hero-visual,
.hero-video-container {
    width: 100% !important;
    max-width: 100% !important;
}

/* Video backgrounds */
.hero-video-bg {
    display: flex !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 0 !important;
}

.hero-bg-video {
    display: block !important;
    opacity: 0.5 !important;
    width: 80vw !important;
    object-fit: cover !important;
}

.hero-background {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
}

.bg-pattern {
    display: block !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0.08 !important;
    z-index: 1 !important;
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 90vh !important;
    }
}

/* ============================================
   PRODUCTS SECTION
   ============================================ */

.how-it-works {
    background: #080808 !important;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.section-title {
    position: relative !important;
    margin-bottom: 3rem !important;
}

.section-title::after,
.section-title::before {
    display: none !important;
}

.industries-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    overflow: visible !important;
    margin-bottom: 4rem !important;
    align-items: stretch !important;
    width: 100% !important;
}

@media (max-width: 1023px) and (min-width: 768px) {
    .industries-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 767px) {
    .industries-grid {
        grid-template-columns: 1fr !important;
    }
}

.industry-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 0 !important;
    padding: 2rem !important;
    overflow: visible !important;
    height: 100% !important;
    min-height: auto !important;
    align-items: flex-start !important;
    align-self: stretch !important;
    background: #111111 !important;
    border: 1px solid #191919 !important;
}

.industry-header {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 1rem !important;
}

.industry-icon {
    display: block !important;
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0 !important;
}

.industry-icon svg {
    width: 100% !important;
    height: 100% !important;
    stroke: #ffffff !important;
    fill: none !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.industry-header h3 {
    margin: 0 !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
}

.industry-description {
    margin-bottom: 1rem !important;
    line-height: 1.6 !important;
    max-height: 3.2em !important;
    overflow: hidden !important;
    font-size: 0.95rem !important;
}

.industry-applications {
    margin-top: auto !important;
}

.industry-applications h4 {
    display: none !important;
}

.industry-applications ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0.5rem !important;
}

.industry-applications li {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0.875rem !important;
    color: #bbbbbb !important;
    position: relative !important;
    padding-left: 1rem !important;
    line-height: 1.4 !important;
}

.industry-applications li::before {
    content: "•" !important;
    position: absolute !important;
    left: 0 !important;
    color: #ffffff !important;
}

.industry-applications li:nth-child(n+4) {
    display: none !important;
}

.industry-card video {
    display: none !important;
}

.industry-card .btn {
    margin-top: 2rem !important;
    width: auto !important;
    max-width: 200px !important;
}

.industry-card:before {
    display: none !important;
}

/* Industry icons are visible and styled - see components.css */

@media (max-width: 1023px) {
    .industry-card {
        margin-bottom: 0 !important;
        height: 100% !important;
    }
}

@media (max-width: 768px) {
    .industry-card {
        padding: 1.5rem !important;
        margin-bottom: 2rem !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .industry-card {
        padding: 1rem !important;
        margin-bottom: 2rem !important;
    }
}

/* ============================================
   INDUSTRIES SECTION
   ============================================ */

.industries {
    background: #080808 !important;
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.industries-cta {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Industries intro text - left align and natural wrapping */
.industries .section-title p,
.industries-intro {
    text-align: left !important;
    white-space: normal !important;
    word-wrap: break-word !important;
}

/* CTA content - left align */
.cta-content p,
.industries-cta p {
    text-align: left !important;
}

/* ============================================
   SECTION FLOW
   ============================================ */

section + section {
    margin-top: 0 !important;
    padding-top: 4rem !important;
}

/* ============================================
   LIST STYLING
   ============================================ */

ul, ol {
    padding-left: 1.5rem !important;
    margin-bottom: 1.5rem !important;
}

li {
    margin-bottom: 0.5rem !important;
}

/* ============================================
   PRODUCT ORDER (if needed via CSS)
   ============================================ */

[class*="robometer"],
[data-product="robometer"] {
    order: 1 !important;
}

[class*="robomapper"],
[data-product="robomapper"] {
    order: 2 !important;
}

[class*="idle"],
[class*="iDLE"],
[data-product="idle"],
[data-product="iDLE"] {
    order: 3 !important;
}

/* ============================================
   PRODUCTS SECTION HARD LOCK
   ============================================ */

#products,
.products,
.section-products {
  width: 100%;
}

#products .products-row,
.products .products-row,
.section-products .products-row,
#products .solutions-grid,
.products .solutions-grid,
.section-products .solutions-grid,
#products .products-grid,
.products .products-grid,
.section-products .products-grid {
  display: flex !important;
  flex-direction: row !important;
  width: 100% !important;
  grid-template-columns: none !important;
  gap: 0 !important;
}

#products .product-box,
.products .product-box,
.section-products .product-box {
  flex: 1 0 33.333% !important;
  box-sizing: border-box;
  padding: 24px;
  min-height: 240px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 1px solid #1f2933;
}

#products .product-box:last-child,
.products .product-box:last-child,
.section-products .product-box:last-child {
  border-right: none;
}

/* === FORCE ARROWS BETWEEN PRODUCT COLUMNS === */

#products .products-row > * {
  position: relative;
}

#products .products-row > *:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  background: #000000;
  padding: 0 4px;
  z-index: 3;
  pointer-events: none;
}

/* === FIX PRODUCT ORDER === */

#products .products-row > *:nth-child(1) {
  order: 2;
}

#products .products-row > *:nth-child(2) {
  order: 1;
}

#products .products-row > *:nth-child(3) {
  order: 3;
}

/* Video constraints (NAVIQ-M / ROBOMETER) */
#products .product-box video,
.products .product-box video,
.section-products .product-box video,
#products .product-box iframe,
.products .product-box iframe,
.section-products .product-box iframe {
  width: 100% !important;
  height: 120px !important;
  object-fit: cover !important;
  display: block !important;
  margin-bottom: 12px !important;
}

/* === SOLUTIONS / PRODUCTS HARD LOCK === */

.solutions-grid {
  display: flex !important;
  flex-direction: row !important;
  width: 100%;
}

.solutions-card {
  flex: 1 0 33.333% !important;
  box-sizing: border-box;
  min-height: 240px;
  padding: 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-right: 1px solid #1f2933;
}

.solutions-card:last-child {
  border-right: none;
}

/* === WHITE ARROWS BETWEEN SOLUTIONS === */

.solutions-card:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  background: #000000;
  padding: 0 4px;
  z-index: 5;
  pointer-events: none;
}

/* === FIX SOLUTION ORDER === */

.solutions-card:nth-child(1) {
  order: 2;
}

.solutions-card:nth-child(2) {
  order: 1;
}

.solutions-card:nth-child(3) {
  order: 3;
}

/* ============================================
   BLACK THEME SEPARATION (READABILITY FIX)
   ============================================ */

section {
  border-top: 1px solid #1f2933;
}

section:nth-of-type(even) {
  background: #0b0f14;
}

