/* ========== OUR SOLUTION PAGE ========== */

/* Anchor offset — clear fixed header */
#advanced-automation,
#building-automation {
  scroll-margin-top: var(--header-h);
}

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* Hero height — matches About Us (440px) */
.sol-hero { height: 440px; overflow: hidden; }

/* Two-slide crossfade */
.sol-hero .hero-slide { animation: hero-fade-2 6s ease-in-out infinite; }
.sol-hero .hero-slide:nth-child(1) { animation-delay: -0.3s; }
.sol-hero .hero-slide:nth-child(2) { animation-delay: 2.7s; }

@keyframes hero-fade-2 {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  50%  { opacity: 1; }
  60%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Left-aligned section title override */
.sol-title-left {
  text-align: left;
  margin-bottom: 1.2rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(138,33,43,0.07);
  padding: 4px 12px;
  margin-bottom: 20px;
  border-radius: 2px;
}

/* ---- Advanced Automation Intro ---- */
.sol-intro { background: var(--white); }
.sol-intro-desc {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.9;
  margin-top: 1rem;
  max-width: 100%;
}

/* ---- Advanced Automation Products ---- */
.sol-products { background: var(--bg-gray); }
.sol-product-row {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: start;
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
.sol-product-row:first-child { padding-top: 0; }
.sol-product-row:last-child { border-bottom: none; padding-bottom: 0; }

.sol-product-media { position: relative; }
.sol-num {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 52px;
  height: 52px;
  background: #fff0e6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--red);
  z-index: 1;
}
.sol-product-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.sol-product-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}
.sol-product-body p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.85;
}
.sol-product-body p + p { margin-top: 1rem; }
.sol-product-body .btn { margin-top: 28px; }

/* ---- Building Automation ---- */
.sol-building { background: var(--bg-gray); }
.sol-building .sol-intro-desc { margin-bottom: 48px; }
.sol-building-cards { }


/* ---- Responsive ---- */
@media (max-width: 900px) {
  .sol-product-row { grid-template-columns: 280px 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .sol-product-row { grid-template-columns: 1fr; gap: 24px; }
  .sol-num { top: -12px; left: -12px; }
  .tab-buttons { flex-wrap: wrap; }
  .tab-panel-grid { grid-template-columns: 1fr; gap: 28px; }
}
