/**
 * industries.css
 * Styling definitions for the Industries We Serve page template.
 *
 * @package Srushti_Theme
 */

.page-industries-wrapper {
  background-color: var(--color-midnight);
}

/* ─────────────────────────────────────────────
   SECTOR ALTERNATING ROWS
   ───────────────────────────────────────────── */
.sector-row {
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.sector-row-even {
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAFC 100%);
  border-bottom: 1px solid var(--color-border-subtle);
}

.sector-row-odd {
  background: var(--color-surface-2) !important;
  color: var(--text-secondary) !important;
  border-bottom: 1px solid var(--color-border-tech) !important;
}

.sector-row-odd h2 {
  color: var(--text-primary) !important;
}

.sector-row-odd p {
  color: var(--text-secondary) !important;
}

.sector-row-odd .sector-focus-list li {
  color: var(--text-secondary) !important;
}

/* ─────────────────────────────────────────────
   VISUALS COLUMN (IMAGE FRAMES)
   ───────────────────────────────────────────── */
.sector-image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-tech);
  background: var(--color-surface-2);
  padding: 0;
  box-shadow: 0 24px 48px rgba(10, 10, 15, 0.05);
  overflow: hidden;
  height: 380px;
  display: flex;
}

.sector-row-odd .sector-image-wrap {
  border-color: var(--color-border-tech) !important;
  box-shadow: 0 24px 48px rgba(10, 10, 15, 0.05) !important;
}

.sector-img-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.9) contrast(1.02);
  transition: transform 0.6s var(--ease-out);
}

.sector-image-wrap:hover .sector-img-element {
  transform: scale(1.04);
}

/* ─────────────────────────────────────────────
   HEADER & INTERACTIVE ICONS
   ───────────────────────────────────────────── */
.sector-header-inline {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-2);
}

.sector-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(204, 0, 0, 0.08);
  border: 1px solid var(--color-border-tech);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand-red-bright);
  transition: all 0.3s var(--ease-out);
}

.sector-row-odd .sector-icon-badge {
  background: rgba(204, 0, 0, 0.04);
  border-color: var(--color-border-tech);
  color: var(--color-brand-red-bright);
}

/* Interactive hover micro-animations */
.sector-row:hover .sector-icon-badge {
  background: var(--color-brand-red);
  color: #FFFFFF;
  border-color: var(--color-brand-red);
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(204, 0, 0, 0.25);
}

.sector-icon {
  transition: transform 0.4s var(--ease-out);
}

.sector-row:hover .sector-icon {
  transform: scale(1.1);
}

/* ─────────────────────────────────────────────
   OUTCOME KPI BOXES
   ───────────────────────────────────────────── */
.sector-outcome-box {
  margin-top: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-tech);
  width: 100%;
  background: var(--glass-base);
  box-shadow: 0 8px 20px rgba(10, 10, 15, 0.03);
  text-align: left;
}

.sector-row-odd .sector-outcome-box {
  background: var(--glass-base) !important;
  border: 1px solid var(--color-border-tech) !important;
  box-shadow: 0 8px 20px rgba(10, 10, 15, 0.02) !important;
}

.outcome-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.sector-row-odd .outcome-label {
  color: var(--text-tertiary) !important;
}

.outcome-value {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary) !important;
}

.sector-row-odd .outcome-value {
  color: var(--text-primary) !important;
}

/* ─────────────────────────────────────────────
   SECTOR FOCUS LISTS & CHECKLISTS
   ───────────────────────────────────────────── */
.sector-focus-list {
  list-style: none !important;
  padding: 0 !important;
  margin: var(--space-6) 0 !important;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3) var(--space-6);
  width: 100%;
}

.sector-focus-list li {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-secondary);
}

.sector-row-odd .sector-focus-list li {
  color: var(--text-secondary) !important;
}

.sector-focus-list li svg {
  color: var(--color-brand-red-bright);
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-right: var(--space-3);
  transition: transform 0.3s ease;
}

.sector-row:hover .sector-focus-list li svg {
  transform: scale(1.15);
}

@media (max-width: 576px) {
  .sector-focus-list {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

/* ─────────────────────────────────────────────
   SVG INTERACTIVE MICRO-ANIMATIONS
   ───────────────────────────────────────────── */
/* Twinkle for Hospitality stars */
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.25); }
}

.sector-row:hover .svg-hospitality .star-1 {
  animation: twinkle 1s infinite alternate ease-in-out;
  transform-box: fill-box;
  transform-origin: center;
}
.sector-row:hover .svg-hospitality .star-2 {
  animation: twinkle 1.2s infinite alternate ease-in-out 0.2s;
  transform-box: fill-box;
  transform-origin: center;
}
.sector-row:hover .svg-hospitality .star-3 {
  animation: twinkle 0.8s infinite alternate ease-in-out 0.4s;
  transform-box: fill-box;
  transform-origin: center;
}

/* Swing for Education tassel */
@keyframes swing {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(20deg); }
}
.sector-row:hover .svg-education .tassel {
  animation: swing 0.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: top center;
}

/* Rotate wheels for Social Commerce cart */
@keyframes wheel-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.sector-row:hover .svg-commerce .wheel-1,
.sector-row:hover .svg-commerce .wheel-2 {
  animation: wheel-spin 1.5s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

/* Pulse WiFi waves for Smart Home */
@keyframes wave-pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.05); }
}
.sector-row:hover .svg-smarthome .wave-1 {
  animation: wave-pulse 1s infinite ease-in-out;
  transform-box: fill-box;
  transform-origin: center;
}
.sector-row:hover .svg-smarthome .wave-2 {
  animation: wave-pulse 1s infinite ease-in-out 0.25s;
  transform-box: fill-box;
  transform-origin: center;
}
.sector-row:hover .svg-smarthome .wave-3 {
  animation: wave-pulse 1s infinite ease-in-out 0.5s;
  transform-box: fill-box;
  transform-origin: center;
}

/* Lid lift for FMCG package box */
@keyframes lid-lift {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-2.5px) rotate(-3deg); }
}
.sector-row:hover .svg-fmcg .lid {
  animation: lid-lift 0.9s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: left bottom;
}

/* Vertical shifts/expansions for Real Estate and Corporate */
@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2.5px); }
}
.sector-row:hover .svg-realestate .roof,
.sector-row:hover .svg-corporate .handle {
  animation: float-up 1s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.sector-row:hover .svg-realestate .window {
  fill: var(--color-brand-red-bright);
  transition: fill 0.3s ease;
}

/* ─────────────────────────────────────────────
   RESPONSIVE BREAKPOINTS
   ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .sector-image-wrap {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .sector-row {
    padding: var(--space-12) 0 !important;
  }

  .sector-row .grid-12 {
    display: flex !important;
    flex-direction: column-reverse !important;
    gap: var(--space-8) !important;
  }

  /* Even rows: put image at the top */
  .sector-row-even .grid-12 {
    flex-direction: column-reverse !important; /* image is first in HTML, so reverse puts text below it */
  }

  /* Odd rows: since image is second in HTML, reverse puts image at the top and text below it */
  .sector-row-odd .grid-12 {
    flex-direction: column !important;
  }

  .sector-row .col-5,
  .sector-row .col-7 {
    width: 100% !important;
    max-width: 100% !important;
  }

  .sector-image-wrap {
    height: 240px;
    width: 100%;
  }
  
  .sector-header-inline {
    width: 100%;
  }

  .sector-outcome-box {
    padding: var(--space-4);
  }
}

.sector-grid {
  gap: var(--space-16) !important;
}

@media (max-width: 992px) {
  .sector-grid {
    gap: var(--space-8) !important;
  }
}

/* Extracted from page-industries.php inline styles */
.sector-text-col .label-eyebrow {
  color: var(--color-brand-red-bright);
  font-weight: 700;
}

.sector-header-inline {
  margin-top: var(--space-2);
  margin-bottom: var(--space-4) !important;
}

.sector-header-inline h2.h2 {
  margin: 0 !important;
  font-size: 28px !important;
}

.sector-text-col p.body {
  line-height: 1.8;
  margin-bottom: var(--space-4) !important;
  font-size: 15px !important;
}
