/* 
    INDUSTRIES SERVED PAGE STYLES
    Vibe: Editorial / Luxury (Whitespace, Serif-led, Structured)
*/

/* Inherit some base variables from style.css */
.page-industries {
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* Base resets for lists */
.ind-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Main Wrapper */
.industries {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 5vw;
  position: relative;
  z-index: 10;
}

/* ─── HERO ───────────────────────────────────────────────────────── */
.industries__hero {
  padding-top: 8vh;
  padding-bottom: 15vh;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 10vh;
}

.industries__title {
  font-family: "Playfair Display", serif;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 1.1;
  font-weight: 400;
  margin: 0 0 2rem 0;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  visibility: hidden; /* For SplitText */
}

.industries__intro {
  font-family: "CS Briseis", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  line-height: 1.5;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.8);
  max-width: 800px;
  visibility: hidden; /* For ScrollTrigger fade */
}

/* ─── INDUSTRY SECTIONS (STICKY LAYOUT) ──────────────────────────── */
/* Page Layout Tweaks */
.industries .page-content {
  padding-top: 2rem;
  padding-bottom: 2rem;
  margin-bottom: 4rem;
}

.industries .glass-hero {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.industries__layout {
  display: flex;
  flex-direction: column;
  gap: clamp(4rem, 10vh, 8rem);
  padding-bottom: 20vh;
}

.ind-section {
  display: grid;
  grid-template-columns: 4fr 6fr;
  gap: 4rem;
  position: relative;
}

/* Left side (Sticky) */
.ind-section__index {
  position: sticky;
  top: 20vh;
  height: fit-content;
  padding: 2.5rem 3rem;
  background: #ffffff;
  border-radius: 1.5rem;
}

.ind-section__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  text-transform: uppercase;
  margin: 0;
  color: #000000;
}

/* Right side (Scrolling lists) */
.ind-section__content {
  padding-top: 2rem;
}

.ind-list li {
  font-family: "CS Briseis", sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 500;
  line-height: 1.4;
  color: #1a1a1a;

  /* Liquid Glassmorphism */
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.8);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 4rem; /* Pill shape */
  padding: 1.5rem 3rem;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.2);

  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
  touch-action: manipulation;
}

/* Liquid shine sweep on hover */
.ind-list li::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.6) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  transition: all 0.7s ease;
}

/* Micro-interaction (Hover) */
@media (hover: hover) {
  .ind-list li:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow:
      0 15px 40px rgba(0, 0, 0, 0.08),
      inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.4);
    color: var(--color-accent);
  }

  .ind-list li:hover::after {
    left: 200%;
  }
}

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .industries .page-content {
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    padding-left: var(--spacing-edge);
    padding-right: var(--spacing-edge);
  }

  .ind-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ind-section__index {
    position: relative;
    top: 0;
    padding: 1.5rem 2rem;
    border-radius: 1rem;
  }

  /* Issue #8: Disable costly glassmorphism blur on mobile for performance */
  .ind-list li {
    font-size: 1.2rem;
    padding: 1rem 1.5rem;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.5);
  }
}

@media (max-width: 600px) {
  .ind-section__index {
    padding: 1.25rem 1.25rem;
  }
  .ind-list li {
    font-size: 1.05rem;
    padding: 0.85rem 1.15rem;
    word-break: break-word;
  }
}

