/* VALOREN Design Tokens & Styles */

:root {
  /* Type Scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;

  /* Fonts */
  --font-display: 'Cabinet Grotesk', 'Helvetica Neue', sans-serif;
  --font-body: 'Satoshi', 'Inter', sans-serif;
}

/* VALOREN Brand Palette — Dark industrial/energy aesthetic */
:root,
[data-theme='light'] {
  --color-bg: #f8f9fa;
  --color-surface: #ffffff;
  --color-surface-2: #f1f3f5;
  --color-surface-offset: #e9ecef;
  --color-surface-dynamic: #dee2e6;
  --color-divider: #ced4da;
  --color-border: #adb5bd;

  --color-text: #1a1e23;
  --color-text-muted: #5c636a;
  --color-text-faint: #adb5bd;
  --color-text-inverse: #f8f9fa;

  /* VALOREN Cyan — from the logo */
  --color-primary: #0098b5;
  --color-primary-hover: #007a93;
  --color-primary-active: #005c6e;
  --color-primary-light: #e0f4f8;

  /* Dark navy for contrast sections */
  --color-dark: #0d1b2a;
  --color-dark-surface: #132238;
  --color-dark-lighter: #1b2d45;

  /* Shadows */
  --shadow-sm: 0 1px 2px oklch(0.2 0.01 240 / 0.06);
  --shadow-md: 0 4px 12px oklch(0.2 0.01 240 / 0.08);
  --shadow-lg: 0 12px 32px oklch(0.2 0.01 240 / 0.12);
}

[data-theme='dark'] {
  --color-bg: #0d1b2a;
  --color-surface: #132238;
  --color-surface-2: #1b2d45;
  --color-surface-offset: #1b2d45;
  --color-surface-dynamic: #243b56;
  --color-divider: #243b56;
  --color-border: #344e68;

  --color-text: #e0e6ed;
  --color-text-muted: #8b99a8;
  --color-text-faint: #5c6f82;
  --color-text-inverse: #0d1b2a;

  --color-primary: #00c4e0;
  --color-primary-hover: #33d4ea;
  --color-primary-active: #0098b5;
  --color-primary-light: rgba(0, 196, 224, 0.1);

  --color-dark: #070f18;
  --color-dark-surface: #0a1628;
  --color-dark-lighter: #0d1b2a;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0d1b2a;
    --color-surface: #132238;
    --color-surface-2: #1b2d45;
    --color-surface-offset: #1b2d45;
    --color-surface-dynamic: #243b56;
    --color-divider: #243b56;
    --color-border: #344e68;
    --color-text: #e0e6ed;
    --color-text-muted: #8b99a8;
    --color-text-faint: #5c6f82;
    --color-text-inverse: #0d1b2a;
    --color-primary: #00c4e0;
    --color-primary-hover: #33d4ea;
    --color-primary-active: #0098b5;
    --color-primary-light: rgba(0, 196, 224, 0.1);
    --color-dark: #070f18;
    --color-dark-surface: #0a1628;
    --color-dark-lighter: #0d1b2a;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.2);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.3);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.4);
  }
}

/* ======================== GLOBAL STYLES ======================== */

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}

/* ======================== LAYOUT ======================== */

.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ======================== HEADER ======================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow 0.3s var(--ease-out);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .header-inner {
    padding-inline: var(--space-8);
  }
}

.header-logo {
  height: 32px;
  width: auto;
}

@media (min-width: 768px) {
  .header-logo {
    height: 38px;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color var(--transition-interactive);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}

.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-offset);
}

/* Mobile nav */
.mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--color-text);
}

@media (min-width: 900px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  top: 56px;
  background: var(--color-bg);
  z-index: 99;
  padding: var(--space-8) var(--space-4);
  flex-direction: column;
  gap: var(--space-2);
}

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

.mobile-nav a {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.mobile-nav a:hover {
  color: var(--color-primary);
}

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

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  background: var(--color-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d1b2a 0%, #132238 40%, #0d2535 70%, #0a1f30 100%);
  background-image: url('./assets/building-dusk.jpg');
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13, 27, 42, 0.88) 0%, rgba(13, 27, 42, 0.7) 50%, rgba(13, 27, 42, 0.4) 100%);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(0, 180, 216, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 180, 216, 0.3) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding: var(--space-16) var(--space-4);
  width: 100%;
}

@media (min-width: 768px) {
  .hero-content {
    padding: var(--space-20) var(--space-8);
  }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #ffffff;
  max-width: 16ch;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.7);
  max-width: 52ch;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

/* ======================== BUTTONS ======================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition:
    background var(--transition-interactive),
    color var(--transition-interactive),
    transform var(--transition-interactive),
    box-shadow var(--transition-interactive);
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: #ffffff;
}

.btn-white {
  background: #ffffff;
  color: var(--color-dark);
}

.btn-white:hover {
  background: #f0f0f0;
  color: var(--color-dark);
}

.btn-arrow::after {
  content: '→';
  transition: transform var(--transition-interactive);
}

.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* ======================== VALUE PROPOSITION CARDS ======================== */

.value-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .value-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .value-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  background: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}

.value-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.value-card-icon {
  width: 40px;
  height: 40px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.value-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ======================== HOW WE ARE DIFFERENT ======================== */

.different-section {
  background: var(--color-dark);
  color: #ffffff;
}

.different-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

@media (min-width: 768px) {
  .different-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.different-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-6);
  color: #ffffff;
}

.different-text p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}

.different-text .highlight {
  color: var(--color-primary);
  font-weight: 600;
}

[data-theme="dark"] .different-text .highlight,
:root:not([data-theme]) .different-text .highlight {
  color: #00c4e0;
}

/* Logic Cascade Diagram */
.cascade-diagram {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
}

.cascade-step {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  opacity: 1;
}

.cascade-bar-wrapper {
  flex: 1;
}

.cascade-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-1);
  white-space: nowrap;
}

.cascade-bar {
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--color-primary), rgba(0, 180, 216, 0.4));
  transition: width 0.8s var(--ease-out);
  position: relative;
}

[data-theme="dark"] .cascade-bar,
:root:not([data-theme]) .cascade-bar {
  background: linear-gradient(90deg, #00c4e0, rgba(0, 196, 224, 0.4));
}

.cascade-bar-value {
  position: absolute;
  right: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #ffffff;
}

.cascade-arrow {
  display: flex;
  justify-content: center;
  padding-left: var(--space-10);
  color: var(--color-primary);
}

[data-theme="dark"] .cascade-arrow,
:root:not([data-theme]) .cascade-arrow {
  color: #00c4e0;
}

.cascade-bar--surplus {
  background: linear-gradient(90deg, #22c55e, rgba(34, 197, 94, 0.4)) !important;
}

[data-theme="dark"] .cascade-bar--surplus,
:root:not([data-theme]) .cascade-bar--surplus {
  background: linear-gradient(90deg, #4ade80, rgba(74, 222, 128, 0.4)) !important;
}

.cascade-result {
  margin-top: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: rgba(0, 180, 216, 0.1);
  border: 1px solid rgba(0, 180, 216, 0.2);
  border-radius: var(--radius-md);
  text-align: center;
}

.cascade-result p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: #ffffff;
  max-width: 100%;
}

.cascade-result span {
  color: var(--color-primary);
}

[data-theme="dark"] .cascade-result span,
:root:not([data-theme]) .cascade-result span {
  color: #00c4e0;
}

/* ======================== SECTORS ======================== */

.sector-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .sector-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sector-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.sector-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--text-sm);
  transition:
    border-color var(--transition-interactive),
    box-shadow var(--transition-interactive),
    transform var(--transition-interactive);
}

.sector-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  color: var(--color-primary);
}

.sector-card svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* ======================== CERTIFICATIONS BAR ======================== */

.certs-bar {
  background: var(--color-surface-2);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.06);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.certs-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-4) var(--space-8);
  padding-block: var(--space-6);
}

.cert-badge {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cert-badge svg {
  width: 18px;
  height: 18px;
  color: var(--color-primary);
}

/* ======================== SECTION HEADERS ======================== */

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: 1.7;
}

/* ======================== IMAGE BREAK ======================== */

.image-break {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  position: relative;
}

.image-break img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .image-break,
  .image-break img {
    max-height: 240px;
    height: 240px;
  }
}

/* ======================== FOOTER CTA ======================== */

.footer-cta {
  background: var(--color-dark);
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  text-align: center;
}

.footer-cta h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-4);
}

.footer-cta p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 48ch;
  margin-inline: auto;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}

/* ======================== SITE FOOTER ======================== */

.site-footer {
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-8);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    padding-inline: var(--space-8);
  }
}

.footer-logo {
  height: 28px;
  width: auto;
  opacity: 0.85;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: center;
}

.footer-links a {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.35);
}

/* ======================== PAGE HERO (Interior) ======================== */

.page-hero {
  background: var(--color-dark);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 80% 30%, rgba(0, 180, 216, 0.06) 0%, transparent 70%);
}

.page-hero--approach {
  background-image: url('./assets/building-envelope.jpg');
  background-size: cover;
  background-position: center 30%;
}

.page-hero--approach::before {
  background: linear-gradient(90deg, rgba(13, 27, 42, 0.92) 0%, rgba(13, 27, 42, 0.75) 50%, rgba(13, 27, 42, 0.5) 100%);
}

.page-hero--capabilities {
  background-image: url('./assets/curtain-wall-detail.jpg');
  background-size: cover;
  background-position: center;
}

.page-hero--capabilities::before {
  background: linear-gradient(90deg, rgba(13, 27, 42, 0.92) 0%, rgba(13, 27, 42, 0.75) 50%, rgba(13, 27, 42, 0.5) 100%);
}

.page-hero--markets {
  background-image: url('./assets/school-solar.jpg');
  background-size: cover;
  background-position: center 40%;
}

.page-hero--markets::before {
  background: linear-gradient(90deg, rgba(13, 27, 42, 0.92) 0%, rgba(13, 27, 42, 0.75) 50%, rgba(13, 27, 42, 0.5) 100%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

@media (min-width: 768px) {
  .page-hero-content {
    padding-inline: var(--space-8);
  }
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: #ffffff;
  max-width: 20ch;
  letter-spacing: -0.02em;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.65);
  max-width: 60ch;
  margin-top: var(--space-4);
  line-height: 1.7;
}

/* ======================== APPROACH PAGE ======================== */

.methodology-steps {
  display: grid;
  gap: var(--space-10);
}

.step {
  display: grid;
  gap: var(--space-6);
  align-items: start;
}

@media (min-width: 768px) {
  .step {
    grid-template-columns: 80px 1fr;
    gap: var(--space-8);
  }
}

.step-number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.step-content p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ======================== CAPABILITIES ======================== */

.service-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}

.service-card .license-tag {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-3);
}

.service-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Licenses grid */
.licenses-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .licenses-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.license-group h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.license-list {
  list-style: none;
  padding: 0;
}

.license-list li {
  padding: var(--space-3) 0;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.license-list li strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ======================== MARKETS ======================== */

.market-block {
  padding-block: var(--space-12);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

.market-block:last-child {
  border-bottom: none;
}

.market-header {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}

@media (min-width: 768px) {
  .market-header {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
  }
}

.market-header h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}

.market-tagline {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.7;
}

.market-body p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.why-valoren {
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin-top: var(--space-6);
}

.why-valoren h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.why-valoren ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.why-valoren li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: var(--space-6);
  position: relative;
  line-height: 1.6;
}

.why-valoren li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 2px;
  background: var(--color-primary);
}

/* ======================== ABOUT ======================== */

.story-section {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .story-section {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.story-text p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

/* Team */
.team-grid {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-member {
  text-align: left;
}

.team-member.featured {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--space-6);
  align-items: center;
  background: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

@media (min-width: 768px) {
  .team-member.featured {
    grid-template-columns: 200px 1fr;
    padding: var(--space-8);
  }
}

.team-photo {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: center top;
}

@media (min-width: 768px) {
  .team-photo {
    width: 200px;
    height: 200px;
  }
}

.team-member h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

.team-member .team-role {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-2);
}

.team-member .team-bio {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-top: var(--space-3);
}

.team-member:not(.featured) h3 {
  font-size: var(--text-base);
}

.team-member:not(.featured) .team-role {
  font-size: var(--text-xs);
}

.team-member .team-email {
  font-size: var(--text-xs);
  margin-top: var(--space-1);
}

.team-member .team-email a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.team-member .team-email a:hover {
  color: var(--color-primary);
}

/* Veteran certifications */
.vet-certs {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .vet-certs {
    grid-template-columns: 1fr 1fr;
  }
}

.vet-cert-card {
  background: var(--color-surface);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
}

.vet-cert-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.vet-cert-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ======================== CONTACT ======================== */

.contact-grid {
  display: grid;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: var(--space-3) var(--space-4);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.12);
  border-radius: var(--radius-md);
  font-size: var(--text-base);
  color: var(--color-text);
  transition: border-color var(--transition-interactive), box-shadow var(--transition-interactive);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c636a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-8);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-detail h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.contact-detail p,
.contact-detail a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.8;
}

.contact-detail a {
  color: var(--color-primary);
}

.procurement-links {
  margin-top: var(--space-6);
}

.procurement-links h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}

.procurement-links p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.6;
}

.procurement-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.procurement-links li a {
  font-size: var(--text-sm);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.procurement-links li a svg {
  width: 16px;
  height: 16px;
}

/* ======================== SCROLL REVEAL ======================== */

.fade-in {
  opacity: 1;
}

@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }
}

@keyframes reveal-fade {
  to {
    opacity: 1;
  }
}

/* Fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    transition: opacity 0.6s var(--ease-out);
  }
  .fade-in.visible {
    opacity: 1;
  }
}

/* ======================== RESULT BOX ======================== */

.result-box {
  background: var(--color-primary-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  text-align: center;
  margin-top: var(--space-10);
}

.result-box h3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

.result-box p {
  color: var(--color-text-muted);
  max-width: 48ch;
  margin-inline: auto;
  line-height: 1.7;
}

/* ======================== PRIME CONTRACTOR BOX ======================== */

.prime-box {
  background: var(--color-dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-top: var(--space-10);
}

.prime-box h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: var(--space-3);
}

.prime-box p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
}

/* ======================== APPROACH INTRO TEXT ======================== */

.approach-intro {
  max-width: 72ch;
}

.approach-intro p {
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-4);
}

.approach-intro p strong {
  color: var(--color-text);
}
