/* ==========================================================================
   Varna Security — Prototype Stylesheet
   ========================================================================== */

/* --- Fonts --- */
@font-face {
  font-family: 'APK Praktikal';
  src: url('../fonts/heading-regular.woff2') format('woff2'),
       url('../fonts/heading-regular.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'APK Praktikal';
  src: url('../fonts/heading-bold.woff2') format('woff2'),
       url('../fonts/heading-bold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ufficio';
  src: url('../fonts/body-regular.woff2') format('woff2'),
       url('../fonts/body-regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Custom Properties --- */
:root {
  --font-heading: 'APK Praktikal', Arial, sans-serif;
  --font-body: 'Ufficio', Arial, sans-serif;

  --color-accent: #e9fe66;
  --color-heading: #2b2c2f;
  --color-body: #2b2c2f;
  --color-surface: #ffffff;
  --color-surface-dark: #141416;
  --color-surface-dark-alt: #2b2c2f;
  --color-muted: #c6b6a8;
  --color-cream: #FBEFE0;
  --color-line: #b2aead;

  --px-container: 1.87rem;
  --gap-gutter: 0.938rem;
  --radius: 5px;
}

@media (min-width: 821px) {
  :root {
    --px-container: 2.5rem;
    --gap-gutter: 1.87rem;
  }
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--color-body);
  background: var(--color-surface);
  line-height: 1.5;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* --- Typography --- */
h1, h2, h3, h4, .heading {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-heading);
}

.text-display {
  font-size: clamp(2.25rem, 4.5vw, 4.5rem);
  line-height: 1.05;
}

.text-h2 {
  font-size: clamp(2.8125rem, 5.2vw, 5.625rem);
  line-height: 1;
}

.text-h3 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.05;
}

.text-h4 {
  font-size: 1.25rem;
  line-height: 1.25;
  font-family: var(--font-heading);
  font-weight: 700;
}

.text-body-lg {
  font-size: clamp(1.75rem, 2.5vw, 2.1875rem);
  line-height: 1.3;
}

.text-body {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.5;
}

.text-body-sm {
  font-size: 1rem;
  line-height: 1.25;
}

.text-chip {
  font-size: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.text-numbers {
  font-size: clamp(5rem, 3vw, 5.625rem);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1;
}

/* --- Colors --- */
.text-inverted { color: var(--color-surface); }
.text-muted { color: var(--color-muted); }
.text-accent { color: var(--color-accent); }
.text-heading { color: var(--color-heading); }

.bg-surface { background-color: var(--color-surface); }
.bg-surface-dark { background-color: var(--color-surface-dark); }
.bg-surface-dark-alt { background-color: var(--color-surface-dark-alt); }
.bg-cream { background-color: var(--color-cream); }
.bg-accent { background-color: var(--color-accent); }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: var(--px-container);
  padding-right: var(--px-container);
}

.container--narrow {
  max-width: 960px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0 var(--gap-gutter);
}

.col-full { grid-column: 1 / -1; }
.col-10 { grid-column: 1 / -1; }
.col-8 { grid-column: 1 / -1; }
.col-6 { grid-column: 1 / -1; }

@media (min-width: 821px) {
  .col-10 { grid-column: 2 / 12; }
  .col-8 { grid-column: 3 / 11; }
  .col-6 { grid-column: 4 / 10; }
}

/* --- Section Spacing --- */
section {
  padding: clamp(5rem, 10vw, 10rem) 0;
}

.section-sm {
  padding: clamp(3rem, 6vw, 6rem) 0;
}

/* --- Header / Nav --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
  transition: background 0.4s ease, padding 0.3s ease;
}

.site-header.scrolled {
  background: rgba(20, 20, 22, 0.92);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  padding: 1rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-header__logo img {
  height: 24px;
  width: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-header__nav a {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-surface);
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.site-header__nav a:hover {
  opacity: 0.7;
}

/* Dark header variant for light pages */
.site-header--dark .site-header__nav a {
  color: var(--color-heading);
}

.site-header--dark.scrolled {
  background: rgba(255, 255, 255, 0.92);
}

.site-header--dark.scrolled .site-header__nav a {
  color: var(--color-heading);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 0;
  z-index: 110;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-surface);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.site-header--dark .nav-toggle span {
  background: var(--color-heading);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: flex; }

  .site-header__nav {
    position: fixed;
    inset: 0;
    background: var(--color-surface-dark);
    flex-direction: column;
    justify-content: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .site-header__nav.open {
    transform: translateX(0);
  }

  .site-header__nav a {
    font-size: 2rem;
    color: var(--color-surface) !important;
  }
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(4rem, 8vw, 8rem);
  background: var(--color-surface-dark);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a1c 0%, #2b2c2f 50%, #1a1a1c 100%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.hero__content {
  position: relative;
  z-index: 2;
}

.hero__logo {
  display: block;
  width: clamp(16rem, 40vw, 32rem);
  height: auto;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.hero__tagline {
  color: var(--color-surface);
  max-width: 38rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.5;
}

.hero__video-toggle {
  position: absolute;
  bottom: 2rem;
  right: var(--px-container);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-surface);
  z-index: 2;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.hero__video-toggle:hover {
  background: rgba(0, 0, 0, 0.5);
}

.hero__video-toggle span {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-surface);
}

.hero__video-toggle svg {
  width: 18px;
  height: 18px;
}

/* --- Page Hero (subpages) --- */
.page-hero {
  padding: clamp(8rem, 14vw, 12rem) 0 clamp(4rem, 6vw, 6rem);
  background: var(--color-surface-dark);
}

.page-hero h1 {
  color: var(--color-surface);
}

.page-hero p {
  color: var(--color-muted);
}

.page-hero--cream {
  background: var(--color-cream);
}

.page-hero--cream h1 {
  color: var(--color-heading);
}

.page-hero--cream p {
  color: var(--color-body);
}

/* --- Chip / Badge --- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.chip__diamond {
  width: 0.375rem;
  height: 0.4375rem;
  background: var(--color-surface-dark);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex-shrink: 0;
}

.chip--inverted .chip__diamond {
  background: var(--color-surface);
}

.chip--accent .chip__diamond {
  background: var(--color-accent);
}

/* Pill-style tag variant */
.chip--tag {
  background: var(--color-cream);
  padding: 0.94rem;
  border-radius: var(--radius);
  gap: 0.94rem;
  margin-bottom: 0;
}

.chip--tag-light {
  background: var(--color-surface);
}

@media (min-width: 821px) {
  .chip--tag {
    padding: 1rem 1.25rem;
  }
}

/* --- Stats Row --- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 5rem);
}

@media (min-width: 821px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  border-top: 1px solid var(--color-line);
  padding-top: 1.25rem;
}

.stat__number {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(3.5rem, 5vw, 5rem);
  line-height: 1;
  color: var(--color-heading);
}

.stat__label {
  display: block;
  margin-top: 0.25rem;
  font-size: 1rem;
  color: var(--color-body);
}

.stat--inverted {
  border-color: rgba(255,255,255,0.2);
}

.stat--inverted .stat__number {
  color: var(--color-surface);
}

.stat--inverted .stat__label {
  color: var(--color-muted);
}

/* --- Company Cards --- */
.company-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-gutter);
  margin-top: clamp(2rem, 4vw, 4rem);
}

@media (min-width: 600px) {
  .company-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .company-cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1440px) {
  .company-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

.company-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-surface-dark);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 2rem;
  min-height: 20rem;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: var(--color-surface);
  position: relative;
  overflow: hidden;
}

.company-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 22, 0.55);
  transition: background 0.5s;
  z-index: 1;
}

.company-card:hover::before {
  background: rgba(20, 20, 22, 0.75);
}

.company-card__top,
.company-card__bottom {
  position: relative;
  z-index: 2;
}

.company-card .company-card__name {
  color: var(--color-surface);
}

.company-card .chip__diamond {
  background: var(--color-surface);
}

.company-card .company-card__arrow svg {
  fill: var(--color-surface);
}

.company-card__logo {
  height: 2rem;
  width: auto;
  max-width: 12rem;
  object-fit: contain;
  object-position: left;
  filter: brightness(0) saturate(100%) invert(1);
  opacity: 0.85;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
}

.company-card__top {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.company-card__name {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  line-height: 1.2;
  color: var(--color-surface);
  transition: color 0.5s;
}

.company-card__meta {
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

.company-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 2rem;
}

.company-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.company-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 1rem;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
}

.company-card__arrow svg {
  width: 22px;
  height: 22px;
  fill: var(--color-heading);
  transition: fill 0.5s;
}

/* --- CTA Link --- */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.cta-link:hover { opacity: 0.7; }

.cta-link svg {
  width: 22px;
  height: 22px;
}

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: all 0.3s ease;
}

.btn--accent {
  background: var(--color-accent);
  color: var(--color-heading);
}

.btn--accent:hover {
  background: #d4eb52;
}

.btn--outline {
  border: 1px solid var(--color-line);
  color: var(--color-body);
}

.btn--outline:hover {
  background: var(--color-surface-dark);
  color: var(--color-surface);
  border-color: var(--color-surface-dark);
}

.btn--outline-light {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--color-surface);
}

.btn--outline-light:hover {
  background: var(--color-surface);
  color: var(--color-heading);
}

/* --- Impact / Full-width statement --- */
.impact {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--color-surface-dark);
  overflow: hidden;
}

.impact__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #1a1a1c 0%, #2b2c2f 100%);
}

.impact__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
}

.impact__content {
  position: relative;
  z-index: 2;
}

/* --- News Cards --- */
.news-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-gutter);
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 821px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.news-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s ease;
  text-decoration: none;
  color: var(--color-body);
}

.news-card:hover {
  border-color: var(--color-heading);
}

.news-card__image {
  aspect-ratio: 16 / 10;
  background: var(--color-cream);
  overflow: hidden;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.news-card:hover .news-card__image img {
  transform: scale(1.04);
}

.news-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.news-card__date {
  font-size: 0.875rem;
  color: #5e5e60;
  margin-bottom: 0.5rem;
}

.news-card__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  text-transform: uppercase;
  line-height: 1.15;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}

.news-card__excerpt {
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-body);
  opacity: 0.7;
  flex: 1;
}

.news-card__read-more {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
}

.news-card__read-more svg {
  width: 18px;
  height: 18px;
}

/* --- News article --- */
.article-header {
  padding: clamp(8rem, 14vw, 12rem) 0 clamp(2rem, 4vw, 4rem);
  background: var(--color-surface-dark);
}

.article-content {
  padding: clamp(2rem, 4vw, 4rem) 0 clamp(4rem, 8vw, 8rem);
}

.article-content .wysiwyg h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.75rem;
  text-transform: uppercase;
  margin: 2.5rem 0 1rem;
}

.article-content .wysiwyg p {
  margin-bottom: 1.25rem;
  line-height: 1.65;
}

.article-content .wysiwyg p:last-child {
  margin-bottom: 0;
}

.article-image {
  max-width: 1100px;
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.article-image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
}

/* --- Contact Section --- */
.contact-section a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: opacity 0.2s;
}

.contact-section a:hover {
  opacity: 0.7;
}

/* --- Join / Entrepreneur section --- */
.join-section {
  background: var(--color-cream);
}

/* --- Values grid --- */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: clamp(2rem, 4vw, 4rem);
}

@media (min-width: 821px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1025px) {
  .values-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.value-card {
  border-top: 1px solid var(--color-line);
  padding-top: 1.5rem;
}

.value-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.value-card p {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.75;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  padding-left: 2rem;
  margin-top: clamp(2rem, 4vw, 4rem);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-line);
}

.timeline__item {
  position: relative;
  padding-bottom: 3rem;
  padding-left: 1.5rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 0.35rem;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-heading);
  border-radius: 50%;
}

.timeline__year {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--color-heading);
  display: block;
  margin-bottom: 0.25rem;
}

.timeline__text {
  font-size: 1rem;
  line-height: 1.5;
}

/* --- Company Detail Page --- */
.company-detail__hero {
  padding: clamp(8rem, 14vw, 12rem) 0 clamp(4rem, 6vw, 6rem);
}

.company-detail__info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: clamp(2rem, 4vw, 4rem);
}

@media (min-width: 821px) {
  .company-detail__info {
    grid-template-columns: 1fr 1fr;
  }
}

.info-block {
  border-top: 1px solid var(--color-line);
  padding-top: 1rem;
}

.info-block__label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 0.25rem;
}

.info-block__value {
  font-size: 1.125rem;
  color: var(--color-heading);
}

/* --- Entrepreneur page --- */
.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: clamp(2rem, 4vw, 4rem);
  counter-reset: step;
}

@media (min-width: 821px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step {
  border-top: 1px solid var(--color-line);
  padding: 2rem 1.5rem 2rem 0;
  counter-increment: step;
}

.process-step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 3rem;
  color: #8a7b6e;
  line-height: 1;
  margin-bottom: 1rem;
}

.process-step h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.process-step p {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.75;
}

/* --- Quotes --- */
.quote {
  border-left: 3px solid var(--color-accent);
  padding-left: 2rem;
  margin: clamp(2rem, 4vw, 4rem) 0;
}

.quote__text {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.35;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading);
}

.quote__author {
  margin-top: 1rem;
  font-size: 1rem;
  color: #5e5e60;
}

/* --- Contact Grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 821px) {
  .contact-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.contact-block p {
  font-size: 1rem;
  line-height: 1.5;
}

.contact-block a {
  transition: color 0.2s;
}

.contact-block a:hover {
  color: var(--color-heading);
  opacity: 0.7;
}

/* --- People Grid --- */
.people-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-top: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 821px) {
  .people-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.person-card__photo {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.person-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.person-card__name {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.person-card__title {
  font-size: 1rem;
  color: #5e5e60;
  margin-bottom: 0.75rem;
}

.person-card__contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.875rem;
}

.person-card__contact a {
  text-decoration: underline;
  transition: color 0.2s;
}

.person-card__contact a:hover {
  color: var(--color-heading);
  opacity: 0.7;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-line);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.site-footer__logo {
  max-width: 280px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
}

.site-footer__links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-heading);
  transition: opacity 0.2s;
}

.site-footer__links a:hover {
  opacity: 0.7;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-line);
  font-size: 0.875rem;
  color: #5e5e60;
}

.site-footer__legal {
  display: flex;
  gap: 1.5rem;
}

.site-footer__legal a {
  color: #5e5e60;
  transition: color 0.2s;
}

.site-footer__legal a:hover {
  color: var(--color-heading);
}

/* --- Dark footer variant --- */
.site-footer--dark {
  background: var(--color-surface-dark);
  border-top-color: rgba(255,255,255,0.1);
}

.site-footer--dark .site-footer__links a {
  color: var(--color-surface);
}

.site-footer--dark .site-footer__bottom {
  border-top-color: rgba(255,255,255,0.1);
  color: var(--color-muted);
}

.site-footer--dark .site-footer__legal a {
  color: var(--color-muted);
}

.site-footer--dark .site-footer__legal a:hover {
  color: var(--color-surface);
}

/* --- Utility --- */
.mt-section { margin-top: clamp(4rem, 8vw, 8rem); }
.mb-section { margin-bottom: clamp(4rem, 8vw, 8rem); }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.max-w-prose { max-width: 42rem; }
.max-w-narrow { max-width: 56rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Image placeholder --- */
.img-placeholder {
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Breadcrumb --- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: var(--color-muted);
  transition: color 0.2s;
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb span {
  color: rgba(255,255,255,0.3);
}

.breadcrumb .current {
  color: var(--color-surface);
}

.breadcrumb--dark a:hover {
  color: var(--color-heading);
}

.breadcrumb--dark span {
  color: var(--color-muted);
}

.breadcrumb--dark .current {
  color: var(--color-heading);
}

/* ==========================================================================
   WCAG Accessibility
   ========================================================================== */

/* --- Focus styles (WCAG 2.4.7) --- */
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.company-card:focus-visible,
.news-card:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.site-header__nav a:focus-visible {
  outline-color: var(--color-accent);
  outline-offset: 4px;
}

/* --- Skip link (WCAG 2.4.1) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-accent);
  color: var(--color-heading);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  border-radius: var(--radius);
  z-index: 200;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* --- Reduced motion (WCAG 2.3.3) --- */
@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;
  }
}

/* --- Ensure muted text meets AA on light backgrounds --- */
/* #c6b6a8 on #ffffff = 2.7:1 (fails AA for body text)
   Using #8a7b6e on #ffffff = 4.56:1 (passes AA) for small text */
.info-block__label {
  color: #6b5d52;
}

/* Dark-background overrides for elements that use hardcoded light-mode colors */
.bg-surface-dark .news-card__date {
  color: var(--color-accent);
}

.bg-surface-dark .quote__author {
  color: var(--color-muted);
}

/* On dark backgrounds, #c6b6a8 on #141416 = 6.3:1 (passes AA) - OK as-is */

/* --- Ensure opacity text still meets contrast --- */
.news-card__excerpt,
.value-card p,
.process-step p {
  opacity: 1;
  color: #5e5e60;
}

/* --- Selection --- */
::selection {
  background: var(--color-accent);
  color: var(--color-heading);
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

/* Prevent horizontal overflow */
html, body {
  overflow-x: hidden;
}

@media (max-width: 820px) {

  /* --- Smaller base font on mobile --- */
  body {
    font-size: 1rem;
  }

  /* --- Typography scale down --- */
  .text-display {
    font-size: 2rem;
  }

  .text-h2 {
    font-size: 2rem;
    line-height: 1.05;
  }

  .text-h3 {
    font-size: 1.625rem;
  }

  .text-body-lg {
    font-size: 1.125rem;
    line-height: 1.4;
  }

  /* --- Tighter section spacing --- */
  section {
    padding: 3.5rem 0;
  }

  .section-sm {
    padding: 2.5rem 0;
  }

  /* --- Hero --- */
  .hero {
    min-height: 100svh;
    padding-bottom: 6rem;
  }

  .hero__logo {
    width: 14rem;
    margin-bottom: 1.25rem;
  }

  .hero__tagline {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero__video-toggle {
    bottom: 1.25rem;
    right: var(--px-container);
    padding: 0.4rem 0.75rem;
  }

  .hero__video-toggle span {
    display: none;
  }

  .hero__video-toggle {
    padding: 0.5rem;
  }

  /* --- Page Hero --- */
  .page-hero {
    padding: 7rem 0 2.5rem;
  }

  /* --- Stats --- */
  .stat__number {
    font-size: 2.5rem;
  }

  .stats {
    gap: 1.25rem;
  }

  /* --- Company cards --- */
  .company-card {
    min-height: auto;
    padding: 1.5rem;
  }

  .company-card__name {
    font-size: 1.375rem;
  }

  /* --- Impact --- */
  .impact {
    min-height: auto;
    padding: 4rem 0;
  }

  /* --- Process steps --- */
  .process-step::before {
    font-size: 2.25rem;
  }

  .process-step {
    padding: 1.5rem 0;
  }

  /* --- Quote --- */
  .quote {
    padding-left: 1.25rem;
  }

  .quote__text {
    font-size: 1.25rem;
  }

  /* --- Contact email --- */
  .contact-section a {
    font-size: 1.25rem;
    word-break: break-all;
  }

  /* --- Footer --- */
  .site-footer__top {
    flex-direction: column;
    gap: 2rem;
  }

  .site-footer__logo {
    max-width: 200px;
  }

  .site-footer__links {
    flex-direction: column;
    gap: 1rem;
  }

  .site-footer__bottom {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* --- Article --- */
  .article-header {
    padding: 7rem 0 2rem;
  }

  .article-image {
    padding-left: 0;
    padding-right: 0;
  }

  .article-image img {
    border-radius: 0;
  }

  .article-content .wysiwyg h2 {
    font-size: 1.375rem;
  }

  /* --- Breadcrumb --- */
  .breadcrumb {
    font-size: 0.8125rem;
  }

  /* --- Buttons: ensure min tap target 44px --- */
  .btn {
    min-height: 2.75rem;
    padding: 0.75rem 1.5rem;
  }

  .cta-link {
    min-height: 2.75rem;
    padding: 0.5rem 0;
  }

  /* --- Two-column info grids stack on mobile --- */
  .company-detail__info {
    grid-template-columns: 1fr;
  }

  /* Fix order on stacked layouts */
  .company-detail__info > [style*="order:2"],
  .company-detail__info > [style*="order:1"] {
    order: unset !important;
  }

  /* --- News grid: 1 column on mobile --- */
  .news-grid {
    grid-template-columns: 1fr;
  }

  /* --- Values grid: 1 column on mobile --- */
  .values-grid {
    grid-template-columns: 1fr;
  }

  /* --- Timeline compact --- */
  .timeline {
    padding-left: 1.5rem;
  }

  .timeline__item {
    padding-bottom: 2rem;
    padding-left: 1rem;
  }

  .timeline__item::before {
    left: -1.5rem;
  }

  .timeline__year {
    font-size: 1.25rem;
  }
}
