/* Industry-page styles (K-12, Government, Religious, Medical) — rules not in
   global.css. Color tokens, INCLUDING the dark-mode flips, are owned by
   global.css. Do NOT redefine them in a :root block here: this stylesheet loads
   after global.css, so a duplicate :root wins over global's [data-theme="dark"]
   overrides (equal specificity, later source) and breaks dark mode. */

/* Page Header */
.page-header {
  margin-top: 120px;
  padding: 5rem 0;
  background: linear-gradient(
    135deg,
    #64d2ff 0%,
    var(--blue-600) 50%,
    var(--teal-600) 100%
  );
  color: white;
  text-align: center;
}

.page-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.page-header p {
  font-size: 1.2rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.header-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.header-stat {
  text-align: center;
}

.header-stat .stat-number {
  font-family: "Montserrat", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  display: block;
}

.header-stat .stat-label {
  font-size: 0.95rem;
  opacity: 0.85;
  display: block;
  margin-top: 0.25rem;
}

/* Features Section */
.features-section {
  padding: 5rem 0;
  background: white;
}

.section-header p {
  font-size: 1.2rem;
  color: var(--neutral-700);
  max-width: 650px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  border: 1px solid var(--neutral-200);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  position: relative;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #64d2ff, var(--blue-600));
  border-radius: 12px 12px 0 0;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.icon-blue {
  background: linear-gradient(135deg, #64d2ff, var(--blue-500));
  color: white;
}

.icon-teal {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  color: white;
}

.icon-green {
  background: linear-gradient(135deg, var(--green-500), #25b53d);
  color: white;
}

.icon-orange {
  background: linear-gradient(135deg, var(--orange-500), #d48400);
  color: white;
}

.icon-red {
  background: linear-gradient(135deg, #ff6b6b, var(--red-500));
  color: white;
}

.icon-safe {
  background: linear-gradient(135deg, var(--safe-500), var(--blue-700));
  color: white;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--neutral-700);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
  padding: 5rem 0;
  background: var(--neutral-50);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-600));
  color: white;
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.step h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 0.75rem;
}

.step p {
  color: var(--neutral-700);
  font-size: 0.95rem;
  line-height: 1.6;
}

.step-connector {
  position: absolute;
  top: 28px;
  left: calc(50% + 36px);
  width: calc(100% - 72px);
  height: 2px;
  background: var(--neutral-200);
}

.step:last-child .step-connector {
  display: none;
}

/* Case Study Section */
.case-study {
  padding: 5rem 0;
  background: white;
}

.case-study-card {
  background: var(--neutral-50);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--neutral-200);
}

.case-study-header {
  background: linear-gradient(135deg, var(--blue-700) 0%, var(--teal-700) 100%);
  padding: 3rem;
  color: white;
}

.case-study-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}

.case-study-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.case-study-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
}

.case-study-body {
  padding: 3rem;
}

.case-study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.case-study-narrative h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 1rem;
}

.case-study-narrative p {
  color: var(--neutral-700);
  line-height: 1.8;
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.case-study-narrative blockquote {
  border-left: 4px solid var(--teal-600);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: white;
  border-radius: 0 8px 8px 0;
}

.case-study-narrative blockquote p {
  font-style: italic;
  color: var(--neutral-800);
  margin-bottom: 0.5rem;
}

.case-study-narrative blockquote cite {
  font-style: normal;
  font-weight: 600;
  color: var(--teal-600);
  font-size: 0.9rem;
}

.case-study-video {
  margin-top: 2rem;
}

.case-study-video h3 {
  font-size: 1.3rem;
  color: var(--neutral-900);
  margin-bottom: 1rem;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.case-study-outcomes h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 1.25rem;
}

.outcome-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: white;
  border-radius: 10px;
  border: 1px solid var(--neutral-200);
  margin-bottom: 1rem;
  transition: box-shadow 0.3s ease;
}

.outcome-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.outcome-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-700));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.outcome-icon svg {
  width: 20px;
  height: 20px;
  color: white;
}

.outcome-text h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--neutral-900);
  margin-bottom: 0.25rem;
}

.outcome-text p {
  font-size: 0.9rem;
  color: var(--neutral-700);
  line-height: 1.5;
  margin-bottom: 0;
}

/* CTA Section */
.cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--teal-600) 100%);
  color: white;
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
footer {
  background: var(--neutral-900);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 0;
}

/* Responsive - Tablet */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.25rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .step-connector {
    display: none;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem 20px;
    gap: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--neutral-200);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--neutral-100);
  }

  .logo img {
    height: 80px;
  }

  .page-header {
    margin-top: 100px !important;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .header-stats {
    gap: 1.5rem;
  }

  .header-stat .stat-number {
    font-size: 1.8rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .step-connector {
    display: none;
  }

  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .case-study-header {
    padding: 2rem;
  }

  .case-study-body {
    padding: 2rem;
  }

  .cta-section h2 {
    font-size: 1.8rem;
  }

  .container {
    padding: 0 16px;
  }

  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

/* Responsive - Small Mobile */
@media (max-width: 480px) {
  .page-header h1 {
    font-size: 1.75rem;
  }

  .header-stats {
    gap: 1rem;
  }

  .header-stat .stat-number {
    font-size: 1.5rem;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }
}

[data-theme="dark"] .features-section {
  background: #121214;
}

[data-theme="dark"] .how-it-works {
  background: #1c1c1e;
}

[data-theme="dark"] .steps-section {
  background: #1c1c1e;
}

[data-theme="dark"] .step-card {
  background: #2c2c2e;
}

[data-theme="dark"] .case-study-card {
  background: #1c1c1e;
  border-color: #3a3a3c;
}

[data-theme="dark"] .case-study-header {
  background: linear-gradient(135deg, #1a3a4a 0%, #0d2a3d 100%);
}

[data-theme="dark"] .case-study-narrative blockquote {
  background: #2c2c2e;
  border-left-color: var(--teal-500);
}

[data-theme="dark"] .outcome-item {
  background: #2c2c2e;
}

[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #0d3d3c 0%, #0d2a4a 100%);
}
