/* =============================================================
   SIG — Spółka Inwestycji Górniczych
   Design System — styles.css
   ============================================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* =============================================================
   1. CSS Variables
   ============================================================= */
:root {
  /* Colors */
  --color-black:       #0A0A0A;
  --color-white:       #FFFFFF;
  --color-graphite:    #1F2937;
  --color-steel:       #4B5563;
  --color-steel-light: #9CA3AF;
  --color-border:      #E5E7EB;
  --color-bg-soft:     #F8FAFC;
  --color-accent:      #2563EB;
  --color-accent-dark: #1D4ED8;

  /* Typography */
  --font-heading: 'Space Grotesk', 'Inter', sans-serif;
  --font-body:    'Inter', sans-serif;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */

  /* Spacing */
  --section-py-desktop: 96px;
  --section-py-mobile:  48px;
  --container-max:      1200px;
  --container-px:       24px;
  --grid-gap:           24px;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --border-width: 1px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* =============================================================
   2. Reset & Base
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-black);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-dark);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* =============================================================
   3. Focus States (Accessibility)
   ============================================================= */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

:focus:not(:focus-visible) {
  outline: none;
}

/* =============================================================
   4. Layout — Container & Grid
   ============================================================= */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-py-mobile);
}

.section--dark {
  background-color: var(--color-graphite);
  color: var(--color-white);
}

.section--soft {
  background-color: var(--color-bg-soft);
}

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

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }

/* =============================================================
   5. Typography
   ============================================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-black);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

h1, .h1 {
  font-size: clamp(2.25rem, 5vw, 4rem);
}

h2, .h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

h3, .h3 {
  font-size: var(--text-3xl);
}

h4, .h4 {
  font-size: var(--text-xl);
}

h5, .h5 {
  font-size: var(--text-lg);
}

.text-lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-steel);
}

.text-sm  { font-size: var(--text-sm); }
.text-xs  { font-size: var(--text-xs); }
.text-meta {
  font-size: var(--text-sm);
  color: var(--color-steel-light);
}

.text-center { text-align: center; }
.text-left   { text-align: left; }

.font-medium  { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold    { font-weight: 700; }

.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-header {
  margin-bottom: 48px;
}

.section-header p {
  margin-top: 16px;
  max-width: 640px;
}

.section-header.text-center p {
  margin-inline: auto;
}

/* =============================================================
   6. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary: black bg, white text */
.btn-primary {
  background-color: var(--color-black);
  color: var(--color-white);
  border: var(--border-width) solid var(--color-black);
}

.btn-primary:hover {
  background-color: var(--color-graphite);
  border-color: var(--color-graphite);
  color: var(--color-white);
}

/* Secondary: transparent, black border */
.btn-secondary {
  background-color: transparent;
  color: var(--color-black);
  border: var(--border-width) solid var(--color-black);
}

.btn-secondary:hover {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* Accent: blue */
.btn-accent {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: var(--border-width) solid var(--color-accent);
}

.btn-accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}

/* Ghost on dark backgrounds */
.btn-ghost-white {
  background-color: transparent;
  color: var(--color-white);
  border: var(--border-width) solid rgba(255,255,255,0.5);
}

.btn-ghost-white:hover {
  background-color: var(--color-white);
  color: var(--color-black);
  border-color: var(--color-white);
}

.btn-lg {
  padding: 16px 36px;
  font-size: var(--text-base);
}

.btn-sm {
  padding: 8px 20px;
  font-size: var(--text-xs);
}

/* =============================================================
   7. Cards
   ============================================================= */
.card {
  background-color: var(--color-white);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.card:hover {
  border-color: var(--color-steel-light);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--color-black);
}

.card-title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: 10px;
}

.card-body {
  font-size: var(--text-sm);
  color: var(--color-steel);
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-black);
  transition: color var(--transition-fast), gap var(--transition-fast);
}

.card-link:hover {
  color: var(--color-accent);
  gap: 10px;
}

/* Reference card */
.ref-card {
  background-color: var(--color-white);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ref-card-name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  color: var(--color-black);
}

.ref-card-meta {
  font-size: var(--text-sm);
  color: var(--color-steel-light);
}

/* =============================================================
   8. Badges & Chips
   ============================================================= */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 2px;
}

.badge-default {
  background-color: var(--color-bg-soft);
  color: var(--color-steel);
  border: var(--border-width) solid var(--color-border);
}

.badge-accent {
  background-color: rgba(37, 99, 235, 0.08);
  color: var(--color-accent);
  border: var(--border-width) solid rgba(37, 99, 235, 0.2);
}

/* Filter chips (References page) */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: var(--border-width) solid var(--color-border);
  background-color: var(--color-white);
  color: var(--color-steel);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}

.chip:hover {
  border-color: var(--color-black);
  color: var(--color-black);
}

.chip.active,
.chip[aria-pressed="true"] {
  background-color: var(--color-black);
  color: var(--color-white);
  border-color: var(--color-black);
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

/* =============================================================
   9. Navigation / Header
   ============================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-white);
  border-bottom: var(--border-width) solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

.header-logo {
  flex-shrink: 0;
}

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

.header-nav {
  display: none;
}

.header-nav ul {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header-nav a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-steel);
  transition: color var(--transition-fast);
  position: relative;
}

.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-black);
  transition: width var(--transition-fast);
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--color-black);
}

.header-nav a:hover::after,
.header-nav a[aria-current="page"]::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: var(--text-sm);
  font-weight: 500;
}

.lang-switch a {
  padding: 4px 8px;
  color: var(--color-steel-light);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.lang-switch a:hover,
.lang-switch a.active {
  color: var(--color-black);
  background-color: var(--color-bg-soft);
}

.lang-switch .separator {
  color: var(--color-border);
}

/* Hamburger button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.hamburger:hover {
  background-color: var(--color-bg-soft);
}

.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-black);
  transition: transform var(--transition-base), opacity var(--transition-fast);
  transform-origin: center;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  background-color: var(--color-white);
  display: flex;
  flex-direction: column;
  padding: 88px 24px 40px;
  transform: translateX(100%);
  transition: transform var(--transition-base);
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--color-black);
  border-bottom: var(--border-width) solid var(--color-border);
  transition: color var(--transition-fast);
}

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

.mobile-nav .btn-primary,
.mobile-nav .btn-primary:hover {
  color: var(--color-white);
  border-bottom: none;
  padding: 12px 28px;
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =============================================================
   10. Footer
   ============================================================= */
.site-footer {
  background-color: var(--color-graphite);
  color: var(--color-white);
  padding-block: 64px 32px;
}

.footer-grid {
  display: grid;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 36px;
  width: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--color-steel-light);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-steel-light);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-contact-item {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.footer-contact-item a {
  color: rgba(255,255,255,0.7);
}

.footer-contact-item a:hover {
  color: var(--color-white);
}

.footer-bottom {
  border-top: var(--border-width) solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-steel-light);
}

/* =============================================================
   11. Hero
   ============================================================= */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--color-graphite);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(31,41,55,0.7) 0%, rgba(10,10,10,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--section-py-mobile);
}

.hero-content h1 {
  color: var(--color-white);
  max-width: 720px;
  margin-bottom: 20px;
}

.hero-content .text-lead {
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* =============================================================
   12. Stats / Numbers Section
   ============================================================= */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background-color: var(--color-border);
}

@media (max-width: 399px) {
  .stats-grid { grid-template-columns: 1fr; }
}

.stat-item {
  background-color: var(--color-white);
  padding: 36px 28px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-black);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--color-steel);
  line-height: 1.4;
}

/* =============================================================
   13. Service Tiles
   ============================================================= */
.service-tile {
  display: block;
  padding: 32px 28px;
  background-color: var(--color-white);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.service-tile:hover {
  border-color: var(--color-black);
  transform: translateY(-2px);
}

.service-tile-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  color: var(--color-black);
  stroke-width: 1.5;
}

.service-tile-title {
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-black);
  margin-bottom: 8px;
}

.service-tile-desc {
  font-size: var(--text-sm);
  color: var(--color-steel);
  line-height: 1.6;
}

/* =============================================================
   14. Sector Icons
   ============================================================= */
.sector-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 32px 24px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--color-border);
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.sector-item:hover {
  border-color: var(--color-steel-light);
  transform: translateY(-2px);
}

.sector-icon {
  width: 52px;
  height: 52px;
  color: var(--color-black);
  stroke-width: 1.5;
}

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

/* =============================================================
   15. Client Ribbon (marquee)
   ============================================================= */
.client-ribbon {
  overflow: hidden;
  padding-block: 32px;
  border-block: var(--border-width) solid var(--color-border);
}

.client-ribbon-track {
  display: flex;
  gap: 64px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.client-ribbon:hover .client-ribbon-track {
  animation-play-state: paused;
}

.client-ribbon-item {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-steel-light);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.client-ribbon-item:hover {
  color: var(--color-black);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =============================================================
   16. CTA Section
   ============================================================= */
.cta-section {
  background-color: var(--color-black);
  color: var(--color-white);
  text-align: center;
  padding-block: var(--section-py-mobile);
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 16px;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  max-width: 560px;
  margin-inline: auto;
  font-size: var(--text-lg);
}

/* =============================================================
   17. Forms
   ============================================================= */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

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

.form-label .required {
  color: var(--color-accent);
  margin-left: 2px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: var(--text-sm);
  color: var(--color-black);
  background-color: var(--color-white);
  border: var(--border-width) solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #DC2626;
}

.form-error-msg {
  font-size: var(--text-xs);
  color: #DC2626;
  display: none;
}

.form-error-msg.visible {
  display: block;
}

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

.form-select-wrapper {
  position: relative;
}

.form-select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--color-steel);
  pointer-events: none;
}

/* Checkboxes */
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: var(--border-width) solid var(--color-border);
  border-radius: 3px;
  cursor: pointer;
  accent-color: var(--color-accent);
  margin-top: 2px;
}

.checkbox-item label {
  font-size: var(--text-sm);
  color: var(--color-steel);
  cursor: pointer;
  line-height: 1.5;
}

/* =============================================================
   18. FAQ Accordion
   ============================================================= */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: var(--border-width) solid var(--color-border);
}

details.faq-item {
  border-bottom: var(--border-width) solid var(--color-border);
}

summary.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-black);
  cursor: pointer;
  list-style: none;
  gap: 20px;
}

summary.faq-question::-webkit-details-marker { display: none; }
summary.faq-question::marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--color-steel-light);
  transition: transform var(--transition-fast);
}

details[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--color-black);
}

.faq-answer {
  padding-bottom: 22px;
  font-size: var(--text-sm);
  color: var(--color-steel);
  line-height: 1.75;
  max-width: 720px;
}

/* =============================================================
   19. Scroll Animations (via JS Intersection Observer)
   ============================================================= */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* =============================================================
   20. Utility Classes
   ============================================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.d-none { display: none !important; }
.d-flex { display: flex; }
.d-grid { display: grid; }

@media (min-width: 1024px) {
  .d-flex-lg { display: inline-flex !important; }
  .d-none-lg { display: none !important; }
}

.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0; }
.mt-8    { margin-top: 8px; }
.mt-16   { margin-top: 16px; }
.mt-24   { margin-top: 24px; }
.mt-32   { margin-top: 32px; }
.mb-8    { margin-bottom: 8px; }
.mb-16   { margin-bottom: 16px; }
.mb-24   { margin-bottom: 24px; }
.mb-32   { margin-bottom: 32px; }
.mb-48   { margin-bottom: 48px; }

.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.flex-wrap    { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

.w-full { width: 100%; }

/* =============================================================
   21. Breadcrumb
   ============================================================= */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm);
  color: var(--color-steel-light);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--color-steel-light);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-black);
}

.breadcrumb-sep {
  color: var(--color-border);
}

/* =============================================================
   22. Page Hero (subpages)
   ============================================================= */
.page-hero {
  background-color: var(--color-bg-soft);
  border-bottom: var(--border-width) solid var(--color-border);
  padding-block: 64px;
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-hero .text-lead {
  max-width: 600px;
}

/* =============================================================
   23. Media Queries
   ============================================================= */

/* 640px — sm */
/* 640px — sm */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

/* 768px — md */
@media (min-width: 768px) {
  .section { padding-block: 80px; }
  .cta-section { padding-block: 80px; }

  .hero-content { padding-block: 120px; }
  .page-hero { padding-block: 80px; }

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

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* 1024px — lg */
@media (min-width: 1024px) {
  .section { padding-block: var(--section-py-desktop); }
  .cta-section { padding-block: var(--section-py-desktop); }

  .hero-content { padding-block: 160px; }

  .header-nav { display: flex; }
  .hamburger  { display: none; }

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

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

/* 1280px — xl */
@media (min-width: 1280px) {
  :root {
    --container-px: 40px;
  }
}
