/* =========================================================
   Industries page – design enhancements
   ========================================================= */

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

.page-header-dark {
  position: relative;
  padding: 160px 0 72px;
  background: var(--navy-950);
  overflow: hidden;
  isolation: isolate;
}

.page-header-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  z-index: 0;
}

.page-header-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 55% at 50% -5%, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
  z-index: 0;
}

.page-header-dark .container {
  position: relative;
  z-index: 1;
}

.page-header-dark h1 {
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.page-header-dark h1 span,
.page-header-dark h1 em {
  color: var(--cyan-400);
  font-style: normal;
}

.page-header-dark p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1.125rem;
  line-height: 1.65;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* === INDUSTRY QUICKNAV CARDS ================================== */

.section-header h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.industries-grid {
  gap: 1.125rem;
}

.industry-card {
  background: white;
  border: 1.5px solid var(--slate-200);
  border-radius: 16px;
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition:
    transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.22s ease,
    border-color 0.22s ease;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
}

.industry-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--industry-accent, var(--cyan-500));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.industry-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.1);
  border-color: color-mix(in srgb, var(--industry-accent, var(--cyan-500)) 40%, transparent);
}

.industry-card:hover::before {
  opacity: 1;
}

.industry-icon {
  background: var(--industry-accent-bg, rgba(11,35,58,0.06));
  color: var(--industry-accent, var(--cyan-500));
  border-radius: 12px;
  width: 64px;
  height: 64px;
  font-size: 1.875rem;
  transition: transform 0.22s ease, background 0.22s ease;
}

.industry-card:hover .industry-icon {
  transform: scale(1.1);
  background: var(--industry-accent-bg-hover, rgba(11,35,58,0.1));
}

.industry-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.industry-card p {
  font-size: 0.85rem;
  color: var(--slate-500);
  line-height: 1.5;
  margin: 0;
}

/* Per-industry color variables */
.industries-grid a:nth-child(1) { /* Electrical */
  --industry-accent: #f59e0b;
  --industry-accent-bg: rgba(245, 158, 11, 0.1);
  --industry-accent-bg-hover: rgba(245, 158, 11, 0.16);
}

.industries-grid a:nth-child(2) { /* Plumbing */
  --industry-accent: #3b82f6;
  --industry-accent-bg: rgba(59, 130, 246, 0.1);
  --industry-accent-bg-hover: rgba(59, 130, 246, 0.16);
}

.industries-grid a:nth-child(3) { /* HVAC */
  --industry-accent: #0ea5e9;
  --industry-accent-bg: rgba(14, 165, 233, 0.1);
  --industry-accent-bg-hover: rgba(14, 165, 233, 0.16);
}

.industries-grid a:nth-child(4) { /* Construction */
  --industry-accent: #f97316;
  --industry-accent-bg: rgba(249, 115, 22, 0.1);
  --industry-accent-bg-hover: rgba(249, 115, 22, 0.16);
}

.industries-grid a:nth-child(5) { /* Painting */
  --industry-accent: #ec4899;
  --industry-accent-bg: rgba(236, 72, 153, 0.1);
  --industry-accent-bg-hover: rgba(236, 72, 153, 0.16);
}

.industries-grid a:nth-child(6) { /* Landscaping */
  --industry-accent: #22c55e;
  --industry-accent-bg: rgba(34, 197, 94, 0.1);
  --industry-accent-bg-hover: rgba(34, 197, 94, 0.16);
}

.industries-grid a:nth-child(7) { /* Cleaning */
  --industry-accent: #14b8a6;
  --industry-accent-bg: rgba(20, 184, 166, 0.1);
  --industry-accent-bg-hover: rgba(20, 184, 166, 0.16);
}

.industries-grid a:nth-child(8) { /* Professional */
  --industry-accent: #8b5cf6;
  --industry-accent-bg: rgba(139, 92, 246, 0.1);
  --industry-accent-bg-hover: rgba(139, 92, 246, 0.16);
}

/* === STICKY NAVIGATION STRIP ================================== */

.ind-nav-strip {
  position: sticky;
  top: 72px;
  z-index: 40;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}

.ind-nav-list {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  list-style: none;
}

.ind-nav-list::-webkit-scrollbar { display: none; }

.ind-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.875rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.ind-nav-link:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
}

.ind-nav-link.active {
  background: var(--cyan-500);
  color: var(--navy-950);
  font-weight: 700;
}

/* === INDUSTRY SECTIONS ======================================== */

.ind-section {
  padding: 5rem 0;
  position: relative;
}

.ind-section:nth-child(even) {
  background: #f8fafc;
}

/* Per-section top accent bar */
#electrical { border-top: 3px solid #f59e0b; }
#plumbing   { border-top: 3px solid #3b82f6; }
#hvac       { border-top: 3px solid #0ea5e9; }
#construction { border-top: 3px solid #f97316; }
#painting   { border-top: 3px solid #ec4899; }
#landscaping { border-top: 3px solid #22c55e; }
#cleaning   { border-top: 3px solid #14b8a6; }
#professional { border-top: 3px solid #8b5cf6; }

/* Section icon per-industry */
#electrical   .ind-section-icon { background: rgba(245,158,11,0.12); color: #f59e0b; }
#plumbing     .ind-section-icon { background: rgba(59,130,246,0.12); color: #3b82f6; }
#hvac         .ind-section-icon { background: rgba(14,165,233,0.12); color: #0ea5e9; }
#construction .ind-section-icon { background: rgba(249,115,22,0.12); color: #f97316; }
#painting     .ind-section-icon { background: rgba(236,72,153,0.12); color: #ec4899; }
#landscaping  .ind-section-icon { background: rgba(34,197,94,0.12); color: #22c55e; }
#cleaning     .ind-section-icon { background: rgba(20,184,166,0.12); color: #14b8a6; }
#professional .ind-section-icon { background: rgba(139,92,246,0.12); color: #8b5cf6; }

/* Per-section eyebrow */
#electrical   .ind-eyebrow { background: rgba(245,158,11,0.1); border-color: rgba(245,158,11,0.25); color: #b45309; }
#plumbing     .ind-eyebrow { background: rgba(59,130,246,0.1); border-color: rgba(59,130,246,0.25); color: #1d4ed8; }
#hvac         .ind-eyebrow { background: rgba(14,165,233,0.1); border-color: rgba(14,165,233,0.25); color: #0369a1; }
#construction .ind-eyebrow { background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.25); color: #c2410c; }
#painting     .ind-eyebrow { background: rgba(236,72,153,0.1); border-color: rgba(236,72,153,0.25); color: #be185d; }
#landscaping  .ind-eyebrow { background: rgba(34,197,94,0.1); border-color: rgba(34,197,94,0.25); color: #15803d; }
#cleaning     .ind-eyebrow { background: rgba(20,184,166,0.1); border-color: rgba(20,184,166,0.25); color: #0f766e; }
#professional .ind-eyebrow { background: rgba(139,92,246,0.1); border-color: rgba(139,92,246,0.25); color: #6d28d9; }

/* Feature cards */
.ind-feature-card {
  border: 1.5px solid var(--slate-200);
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ind-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  border-color: var(--slate-300);
}

.ind-feature-card h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ind-section-meta h2 {
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Demo strip */
.ind-demo-strip {
  background: var(--navy-950);
  border-radius: 14px;
  padding: 1.375rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  border: 1px solid rgba(0, 212, 255, 0.15);
}

.ind-demo-strip p {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  margin: 0;
  line-height: 1.5;
}

.ind-demo-strip p strong {
  color: white;
}

/* === COMPLIANCE SECTION ======================================= */

.feature-showcase {
  position: relative;
  overflow: hidden;
}

.feature-showcase::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* === SCREENSHOT GALLERY ======================================= */

.gallery-grid {
  gap: 1rem;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--slate-200);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.1);
}

.gallery-item-label {
  font-size: 0.8125rem;
  font-weight: 600;
  background: white;
  padding: 0.625rem 0.875rem;
  color: var(--navy-900);
  border-top: 1px solid var(--slate-200);
}

/* === REDUCED MOTION =========================================== */

@media (prefers-reduced-motion: reduce) {
  .industry-card,
  .page-header-dark::before {
    animation: none;
  }
}
