/* ============================================================
   MANDRAX CONSULTING GROUP — Main Stylesheet
   ============================================================
   No Bootstrap. No frameworks. No purple gradients.
   ============================================================ */

/* ------------------------------------------------------------
   0. CSS VARIABLES
   ------------------------------------------------------------ */
:root {
  color-scheme: light;

  /* Backgrounds */
  --bg-primary: #F5F6FA;
  --bg-secondary: #E8EAF0;
  --bg-dark: #0F1F3D;
  --bg-dark-alt: #162B52;

  /* Brand — matches MCG logo */
  --gold: #CC2229;
  --gold-light: #E03038;
  --green: #1E3A6E;

  /* Text */
  --text-primary: #1A1A2E;
  --text-secondary: #4A4A5A;
  --text-muted: #8A8A9A;
  --text-white: #F5F6FA;

  /* Borders */
  --border: #D0D3DC;
  --border-dark: #1E3352;

  /* Status */
  --status-open: #1E6E3A;
  --status-closed: #5C5752;
  --status-awarded: #CC2229;
  --status-terminated: #8B2020;

  /* Typography families */
  --font-headline: "Cormorant Garamond", serif;
  --font-sub: "Outfit", sans-serif;
  --font-body: "Lora", serif;
  --font-mono: "JetBrains Mono", monospace;

  /* Typography sizes */
  --size-hero: 72px;
  --size-h1: 48px;
  --size-h2: 36px;
  --size-h3: 28px;
  --size-h4: 20px;
  --size-body: 17px;
  --size-label: 13px;

  /* Spacing */
  --section-pad: 100px;
  --container-max: 1320px;
  --container-pad: 40px;

  /* Transitions */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ------------------------------------------------------------
   1. RESET + BASE
   ------------------------------------------------------------ */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: var(--size-h1); }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); }
h4 { font-size: var(--size-h4); }

p + p {
  margin-top: 1em;
}

/* ------------------------------------------------------------
   2. CONTAINER
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

/* ------------------------------------------------------------
   3. SECTION LABEL
   ------------------------------------------------------------ */
.section-label {
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

/* ------------------------------------------------------------
   4. SECTION WATERMARK
   ------------------------------------------------------------ */
.section-watermark {
  font-family: var(--font-headline);
  font-size: 180px;
  font-weight: 700;
  position: absolute;
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   4b. SPLIT LAYOUTS & SECTION IMAGES
   ------------------------------------------------------------ */
.split-layout {
  display: grid;
  gap: 48px;
  align-items: start;
}

.split-58-42 {
  grid-template-columns: 58fr 42fr;
}

.split-55-45 {
  grid-template-columns: 55fr 45fr;
}

.split-left p {
  margin-bottom: 16px;
}

.split-right {
  position: relative;
}

.sticky-wrapper {
  position: sticky;
  top: 100px;
}

.about-image-wrapper {
  position: relative;
}

.about-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.about-est-card {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: #fff;
  padding: 16px 24px;
  border-radius: 4px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(204, 34, 41, 0.3);
}

.est-label {
  display: block;
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.est-year {
  display: block;
  font-family: var(--font-headline);
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}

.section-image {
  width: 100%;
  height: auto;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

@media (max-width: 992px) {
  .split-58-42,
  .split-55-45 {
    grid-template-columns: 1fr;
  }

  .about-est-card {
    right: 16px;
    bottom: -16px;
  }

  .sticky-wrapper {
    position: static;
  }
}

/* ------------------------------------------------------------
   5. GRAIN OVERLAY
   ------------------------------------------------------------ */
.grain::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.025;
  z-index: 1000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

/* ------------------------------------------------------------
   6. TOP BAR
   ------------------------------------------------------------ */
.top-bar {
  background-color: var(--bg-dark);
  color: var(--text-muted);
  font-family: var(--font-sub);
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-dark);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.top-bar a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.top-bar a:hover {
  color: var(--gold-light);
}

/* ------------------------------------------------------------
   7. MAIN NAV
   ------------------------------------------------------------ */
.main-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  height: 70px;
  display: flex;
  align-items: center;
  background-color: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.main-nav.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

.main-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

/* ------------------------------------------------------------
   8. NAV LOGO
   ------------------------------------------------------------ */
.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-img {
  height: 52px;
  width: auto;
}

/* ------------------------------------------------------------
   9. NAV LINKS
   ------------------------------------------------------------ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  font-family: var(--font-sub);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--gold);
  transition: width 0.3s var(--ease);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--gold-light);
}

/* EPC highlighted nav link */
.nav-link-cta {
  color: var(--gold) !important;
  font-weight: 600 !important;
}
.nav-link-cta::after {
  background-color: var(--gold);
  width: 100%;
}

/* ------------------------------------------------------------
   10. DROPDOWN (MEGA)
   ------------------------------------------------------------ */
.nav-item {
  position: relative;
}

.nav-item .dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background-color: #fff;
  border: 1px solid var(--border);
  padding: 16px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s, visibility 0.25s;
  z-index: 1000;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

/* Hover bridge: invisible area between link and dropdown */
.nav-item.has-dropdown::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}

.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nav-item .dropdown a {
  display: block;
  padding: 8px 20px;
  font-family: var(--font-sub);
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-item .dropdown a:hover {
  color: var(--gold);
  background: rgba(204, 34, 41, 0.04);
}

.dropdown-heading {
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  padding: 0 20px;
}

/* ------------------------------------------------------------
   11. HAMBURGER + MOBILE NAV
   ------------------------------------------------------------ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--text-primary);
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s, visibility 0.4s;
  overflow-y: auto;
}

.mobile-nav.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 36px;
  cursor: pointer;
  z-index: 1003;
  line-height: 1;
  padding: 8px;
}

.mobile-nav-close:hover {
  color: var(--gold-light);
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.mobile-nav-links a {
  font-family: var(--font-headline);
  font-size: 28px;
  color: var(--text-white);
  padding: 12px 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s, transform 0.4s, color 0.2s;
}

.mobile-nav.open .mobile-nav-links a {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav.open .mobile-nav-links a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.open .mobile-nav-links a:nth-child(2) { transition-delay: 0.1s; }
.mobile-nav.open .mobile-nav-links a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.open .mobile-nav-links a:nth-child(4) { transition-delay: 0.2s; }
.mobile-nav.open .mobile-nav-links a:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav.open .mobile-nav-links a:nth-child(6) { transition-delay: 0.3s; }
.mobile-nav.open .mobile-nav-links a:nth-child(7) { transition-delay: 0.35s; }
.mobile-nav.open .mobile-nav-links a:nth-child(8) { transition-delay: 0.4s; }
.mobile-nav.open .mobile-nav-links a:nth-child(9) { transition-delay: 0.45s; }
.mobile-nav.open .mobile-nav-links a:nth-child(10) { transition-delay: 0.5s; }

.mobile-nav-links a:hover {
  color: var(--gold-light);
}

/* ------------------------------------------------------------
   12. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-dark);
}

/* ------------------------------------------------------------
   13. HERO SLIDE
   ------------------------------------------------------------ */
.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(13, 27, 42, 0.88) 0%, rgba(13, 27, 42, 0.4) 60%, transparent 100%);
}

/* ------------------------------------------------------------
   14. HERO CONTENT
   ------------------------------------------------------------ */
.hero-content {
  position: absolute;
  bottom: 120px;
  left: var(--container-pad);
  max-width: 600px;
  z-index: 2;
  color: var(--text-white);
}

.hero-content .section-label {
  margin-bottom: 16px;
}

.hero-content h1 {
  font-size: var(--size-hero);
  color: var(--text-white);
  margin-bottom: 20px;
  line-height: 1.05;
}

.hero-content p {
  font-size: 18px;
  color: rgba(248, 245, 239, 0.7);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   15. HERO PROGRESS BAR
   ------------------------------------------------------------ */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: 3;
}

.hero-progress-bar {
  height: 100%;
  width: 0;
  background-color: var(--gold);
  transition: width 0.1s linear;
}

.hero-progress-bar.running {
  animation: heroProgress 6s linear forwards;
}

@keyframes heroProgress {
  from { width: 0; }
  to { width: 100%; }
}

/* ------------------------------------------------------------
   16. HERO ARROWS
   ------------------------------------------------------------ */
.hero-arrows {
  position: absolute;
  right: var(--container-pad);
  bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 3;
}

.hero-arrow {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(248, 245, 239, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.25s, background-color 0.25s;
  background: transparent;
}

.hero-arrow svg {
  width: 18px;
  height: 18px;
  stroke: var(--text-white);
  fill: none;
  stroke-width: 2;
}

.hero-arrow:hover {
  border-color: var(--gold);
  background-color: rgba(176, 138, 46, 0.1);
}

/* ------------------------------------------------------------
   17. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sub);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 12px 28px;
  border: 1px solid var(--gold);
  border-radius: 3px;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
  text-transform: uppercase;
}

.btn:hover {
  background-color: var(--gold);
  color: var(--text-white);
}

.btn-primary {
  background-color: var(--gold);
  color: var(--text-white);
  border-color: var(--gold);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  border-color: var(--gold-light);
}

.btn-dark {
  border-color: var(--text-white);
  color: var(--text-white);
}

.btn-dark:hover {
  background-color: var(--text-white);
  color: var(--bg-dark);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 12px;
}

/* ------------------------------------------------------------
   18. SECTIONS
   ------------------------------------------------------------ */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

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

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

.section-dark p {
  color: rgba(248, 245, 239, 0.7);
}

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

/* ------------------------------------------------------------
   19. PAGE HERO
   ------------------------------------------------------------ */
.page-hero {
  height: 300px;
  background-color: var(--bg-dark);
  display: flex;
  align-items: flex-end;
  padding-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(13, 27, 42, 0.95), rgba(13, 27, 42, 0.5));
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  color: var(--text-white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(248, 245, 239, 0.6);
  font-size: 18px;
  max-width: 540px;
}

/* ------------------------------------------------------------
   20. BREADCRUMB
   ------------------------------------------------------------ */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sub);
  font-size: 13px;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.breadcrumb .breadcrumb-sep {
  color: var(--text-muted);
  opacity: 0.4;
}

.breadcrumb .breadcrumb-current {
  color: var(--gold);
}

/* ------------------------------------------------------------
   21. STATS ROW
   ------------------------------------------------------------ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  text-align: center;
  padding: 40px 24px;
  border-right: 1px solid var(--border);
}

.stat-item:last-child {
  border-right: none;
}

.section-dark .stat-item {
  border-color: var(--border-dark);
}

.stat-number {
  font-family: var(--font-headline);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-sub);
  font-size: var(--size-label);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.section-dark .stat-label {
  color: var(--text-muted);
}

/* ------------------------------------------------------------
   22. CARDS
   ------------------------------------------------------------ */
.card {
  background-color: #fff;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

.card-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.card-body {
  padding: 28px;
}

.card-body h3 {
  margin-bottom: 12px;
}

.card-body p {
  color: var(--text-secondary);
  font-size: 15px;
}

.card-meta {
  font-family: var(--font-sub);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------
   23. PURPOSE CARD
   ------------------------------------------------------------ */
.purpose-card {
  background-color: var(--bg-dark);
  border-left: 3px solid var(--gold);
  padding: 32px;
  color: var(--text-white);
}

.purpose-card h4 {
  color: var(--text-white);
  margin-bottom: 12px;
}

.purpose-card p {
  color: rgba(248, 245, 239, 0.65);
  font-size: 15px;
  line-height: 1.7;
}

/* ------------------------------------------------------------
   24. ACCORDION
   ------------------------------------------------------------ */
.accordion-item {
  border-bottom: 1px solid var(--border);
}

.section-dark .accordion-item {
  border-color: var(--border-dark);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 20px 0;
  font-family: var(--font-sub);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  text-align: left;
}

.section-dark .accordion-header {
  color: var(--text-white);
}

.accordion-header:hover {
  color: var(--gold);
}

.accordion-icon {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.accordion-item.open .accordion-icon {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.accordion-item.open .accordion-content {
  max-height: 600px;
}

.accordion-content-inner {
  padding-bottom: 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.section-dark .accordion-content-inner {
  color: rgba(248, 245, 239, 0.6);
}

/* ------------------------------------------------------------
   25. TENDER ROW + FILTER
   ------------------------------------------------------------ */
.tender-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.tender-filter .filter-btn {
  font-family: var(--font-sub);
  font-size: 13px;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.tender-filter .filter-btn:hover,
.tender-filter .filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
}

.tender-row {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.2s;
  gap: 24px;
}

.tender-row:nth-child(even) {
  background-color: var(--bg-secondary);
}

.tender-row:hover {
  background-color: rgba(176, 138, 46, 0.04);
}

.tender-ref {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  min-width: 120px;
  flex-shrink: 0;
}

.tender-title {
  flex: 1;
  font-family: var(--font-sub);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.tender-deadline {
  font-family: var(--font-sub);
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 140px;
  text-align: right;
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   26. STATUS BADGE
   ------------------------------------------------------------ */
.status-badge {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}

.status-badge-open {
  background-color: rgba(42, 92, 63, 0.1);
  color: var(--status-open);
}

.status-badge-closed {
  background-color: rgba(92, 87, 82, 0.1);
  color: var(--status-closed);
}

.status-badge-awarded {
  background-color: rgba(176, 138, 46, 0.1);
  color: var(--status-awarded);
}

.status-badge-terminated {
  background-color: rgba(139, 32, 32, 0.1);
  color: var(--status-terminated);
}

/* ------------------------------------------------------------
   27. PROJECT GRID + CARD
   ------------------------------------------------------------ */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.project-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.project-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.project-card:hover .project-cover img {
  transform: scale(1.05);
}

.project-info {
  padding: 20px 24px 24px;
}

.project-category-chip {
  display: inline-block;
  font-family: var(--font-sub);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(204, 34, 41, 0.08);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.project-info h3 {
  font-family: var(--font-headline);
  font-size: var(--size-h4);
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.3;
}

.project-info h3 a {
  color: var(--text-primary);
  transition: color 0.2s;
}

.project-info h3 a:hover {
  color: var(--gold);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-family: var(--font-sub);
  font-size: 13px;
  color: var(--text-muted);
}

.project-card-large {
  grid-column: span 2;
}

.project-card-large .project-cover {
  aspect-ratio: 21 / 9;
}

/* ------------------------------------------------------------
   27b. EXPLAINER VIDEO POPUP
   ------------------------------------------------------------ */
.video-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(15, 31, 61, 0.75);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.video-popup-overlay.open {
  display: flex;
}

.video-popup {
  background: var(--bg-primary);
  border-radius: 8px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.4);
  position: relative;
  animation: videoPopIn 0.35s var(--ease);
}

@keyframes videoPopIn {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: none; }
}

.video-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--text-muted);
  cursor: pointer;
  z-index: 2;
  line-height: 1;
  padding: 4px;
}

.video-popup-close:hover {
  color: var(--text-primary);
}

.video-popup-header {
  padding: 28px 32px 16px;
}

.video-popup-header h3 {
  font-family: var(--font-headline);
  font-size: var(--size-h3);
  color: var(--text-primary);
  margin: 0 0 8px;
}

.video-popup-header p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.video-popup-body {
  padding: 0 32px;
}

.video-popup-player {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
}

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

.video-popup-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px 24px;
}

.video-popup-dismiss {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sub);
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
}

.video-popup-dismiss input {
  width: auto;
  margin: 0;
}

@media (max-width: 576px) {
  .video-popup-header { padding: 20px 20px 12px; }
  .video-popup-body { padding: 0 20px; }
  .video-popup-footer { padding: 12px 20px 20px; flex-direction: column; gap: 12px; }
}

/* ------------------------------------------------------------
   28. REVIEW CARD + MASONRY
   ------------------------------------------------------------ */
.review-grid {
  columns: 2;
  column-gap: 24px;
}

.review-card {
  break-inside: avoid;
  margin-bottom: 24px;
  background-color: #fff;
  padding: 36px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.05);
  position: relative;
}

.review-quote {
  font-family: var(--font-headline);
  font-size: 80px;
  color: var(--gold);
  line-height: 1;
  position: absolute;
  top: 20px;
  left: 28px;
  opacity: 0.3;
  pointer-events: none;
  user-select: none;
}

.review-text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.review-author {
  font-family: var(--font-sub);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.review-role {
  font-family: var(--font-sub);
  font-size: 12px;
  color: var(--text-muted);
}

/* Masonry layout */
.reviews-masonry {
  columns: 2;
  column-gap: 24px;
}

.reviews-masonry .review-card {
  break-inside: avoid;
  margin-bottom: 24px;
}

/* Review meta with avatar */
.review-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.review-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 600;
  flex-shrink: 0;
}

.review-author-name {
  display: block;
  font-family: var(--font-sub);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.review-author-role {
  display: block;
  font-family: var(--font-sub);
  font-size: 12px;
  color: var(--text-muted);
}

.review-date {
  font-family: var(--font-sub);
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
}

/* Review stats bar */
.review-stats-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 24px 0;
}

.review-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.review-stat-number {
  font-family: var(--font-headline);
  font-size: 42px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.review-stat-stars {
  display: flex;
  gap: 2px;
}

.review-stat-label {
  font-family: var(--font-sub);
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Review form card */
.review-form-card {
  max-width: 720px;
  background: #fff;
  padding: 40px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
  border-radius: 4px;
}

/* Public star rating */
.public-star-rating {
  display: flex;
  gap: 4px;
}

.pub-star {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--border);
  transition: color 0.15s, transform 0.15s;
}

.pub-star.active {
  color: var(--gold);
}

.pub-star.hover {
  color: var(--gold-light);
  transform: scale(1.15);
}

.form-hint {
  display: block;
  font-family: var(--font-sub);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

@media (max-width: 1024px) {
  .reviews-masonry { columns: 1; }
  .review-stats-bar { gap: 32px; }
}

@media (max-width: 576px) {
  .review-stats-bar {
    flex-direction: column;
    gap: 20px;
  }
  .review-form-card {
    padding: 24px;
  }
}

/* ------------------------------------------------------------
   29. TABS
   ------------------------------------------------------------ */
.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.tab-btn {
  font-family: var(--font-sub);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 14px 24px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.section-dark .tab-btn {
  color: var(--text-muted);
}

.section-dark .tab-btn.active {
  color: var(--gold);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* ------------------------------------------------------------
   30. GALLERY GRID
   ------------------------------------------------------------ */
.gallery-grid {
  columns: 4;
  column-gap: 8px;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

/* ------------------------------------------------------------
   31. LIGHTBOX
   ------------------------------------------------------------ */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox-overlay.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-white);
  font-size: 24px;
  background: none;
  border: none;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  cursor: pointer;
  color: var(--text-white);
  transition: border-color 0.2s;
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  border-color: var(--gold);
}

/* ------------------------------------------------------------
   32. NEWS GRID
   ------------------------------------------------------------ */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.news-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.news-card:hover .news-cover img {
  transform: scale(1.05);
}

.news-body {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-date {
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-bottom: 8px;
}

.news-body h3 {
  font-family: var(--font-headline);
  font-size: var(--size-h4);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}

.news-body h3 a {
  color: var(--text-primary);
  transition: color 0.2s;
}

.news-body h3 a:hover {
  color: var(--gold);
}

.news-body > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.news-card-featured {
  grid-column: span 1;
}

/* ------------------------------------------------------------
   33. DOCUMENT LIST
   ------------------------------------------------------------ */
.doc-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.doc-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.doc-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-secondary);
  flex-shrink: 0;
}

.doc-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.doc-info {
  flex: 1;
}

.doc-title {
  font-family: var(--font-sub);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.doc-meta {
  font-family: var(--font-sub);
  font-size: 12px;
  color: var(--text-muted);
}

.doc-download {
  flex-shrink: 0;
}

/* ------------------------------------------------------------
   34. CTA SECTION
   ------------------------------------------------------------ */
.cta-section {
  background-color: var(--bg-dark);
  padding: var(--section-pad) 0;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.cta-card {
  border: 1px solid var(--border-dark);
  padding: 48px;
  text-align: center;
}

.cta-card h3 {
  color: var(--text-white);
  margin-bottom: 16px;
}

.cta-card p {
  color: rgba(248, 245, 239, 0.6);
  margin-bottom: 28px;
  font-size: 15px;
}

/* ------------------------------------------------------------
   35. CONTACT GRID
   ------------------------------------------------------------ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info h3 {
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-detail-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.contact-detail-text {
  font-size: 15px;
  color: var(--text-secondary);
}

.contact-detail-text strong {
  display: block;
  font-family: var(--font-sub);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 2px;
}

/* ------------------------------------------------------------
   36. FORMS
   ------------------------------------------------------------ */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-sub);
  font-size: var(--size-label);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form-label {
  display: block;
  font-family: var(--font-sub);
  font-size: var(--size-label);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="date"],
input[type="url"],
select,
textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background-color: #fff;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 12px 16px;
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(176, 138, 46, 0.08);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235C5752' fill='none' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ------------------------------------------------------------
   37. FLASH MESSAGES
   ------------------------------------------------------------ */
.flash {
  padding: 16px 20px;
  border-left: 4px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-sub);
  font-size: 14px;
  margin-bottom: 24px;
  background-color: var(--bg-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  animation: flashIn 0.4s ease;
}
.flash button {
  background: none; border: none; font-size: 18px; cursor: pointer; color: inherit; padding: 0 0 0 16px; line-height: 1;
}
@keyframes flashIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.flash-success {
  border-left-color: var(--green);
  background-color: rgba(42, 92, 63, 0.06);
  color: var(--green);
}

.flash-error {
  border-left-color: var(--status-terminated);
  background-color: rgba(139, 32, 32, 0.06);
  color: var(--status-terminated);
}

.flash-warning {
  border-left-color: var(--gold);
  background-color: rgba(176, 138, 46, 0.06);
  color: var(--gold);
}

/* ------------------------------------------------------------
   38. PAGINATION
   ------------------------------------------------------------ */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 48px;
  justify-content: center;
}

.page-link {
  font-family: var(--font-sub);
  font-size: 14px;
  font-weight: 500;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none;
  background: transparent;
}

.page-link:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.page-link.active {
  background-color: var(--gold);
  border-color: var(--gold);
  color: var(--text-white);
}

.page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* ------------------------------------------------------------
   39. TEAM GRID + CARD
   ------------------------------------------------------------ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.team-card {
  text-align: center;
}

.team-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  margin-bottom: 16px;
  filter: grayscale(0.15);
  transition: filter 0.3s;
}

.team-card:hover .team-photo {
  filter: grayscale(0);
}

.team-name {
  font-family: var(--font-headline);
  font-size: var(--size-h4);
  margin-bottom: 4px;
}

.team-role {
  font-family: var(--font-sub);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ------------------------------------------------------------
   40. MODAL
   ------------------------------------------------------------ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background-color: #fff;
  width: 90%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease);
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 20px;
  background: none;
  border: none;
  transition: color 0.2s;
}

.modal-close:hover {
  color: var(--text-primary);
}

/* ------------------------------------------------------------
   41. ANIMATE ON SCROLL
   ------------------------------------------------------------ */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.animate.revealed {
  opacity: 1;
  transform: none;
}

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

/* ------------------------------------------------------------
   42. CAREER ITEM
   ------------------------------------------------------------ */
.career-item {
  border-bottom: 1px solid var(--border);
}

.career-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  cursor: pointer;
  transition: color 0.2s;
}

.career-header:hover {
  color: var(--gold);
}

.career-header h4 {
  flex: 1;
}

.career-location {
  font-family: var(--font-sub);
  font-size: 13px;
  color: var(--text-muted);
  margin-right: 24px;
}

.career-toggle {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
  transition: transform 0.3s;
}

.career-item.open .career-toggle {
  transform: rotate(45deg);
}

.career-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.career-item.open .career-body {
  max-height: 800px;
}

.career-body-inner {
  padding-bottom: 32px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.career-body-inner ul {
  list-style: disc;
  padding-left: 20px;
  margin: 12px 0;
}

.career-body-inner li {
  margin-bottom: 6px;
}

/* ------------------------------------------------------------
   43. PARTNER STRIP
   ------------------------------------------------------------ */
.partner-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 40px 0;
}

.partner-logo {
  height: 40px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.5;
  transition: filter 0.3s, opacity 0.3s;
}

.partner-logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ------------------------------------------------------------
   44. FOOTER
   ------------------------------------------------------------ */
.footer,
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-muted);
  padding: 80px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 60px;
}

.footer-about p {
  font-size: 14px;
  line-height: 1.8;
  color: rgba(248, 245, 239, 0.5);
  margin-top: 16px;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 64px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 5px 10px;
}

.footer-tagline {
  font-family: var(--font-sub);
  font-size: 14px;
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 8px;
}

.footer-desc {
  font-family: var(--font-sub);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(248, 245, 239, 0.5);
}

.footer-heading {
  font-family: var(--font-sub);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-white);
  margin-bottom: 20px;
}

.footer-address {
  font-style: normal;
}

.footer-address p {
  font-family: var(--font-sub);
  font-size: 14px;
  color: rgba(248, 245, 239, 0.5);
  line-height: 1.8;
}

.footer-address a {
  color: rgba(248, 245, 239, 0.5);
  transition: color 0.2s;
}

.footer-address a:hover {
  color: var(--gold-light);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  color: rgba(248, 245, 239, 0.5);
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--gold-light);
}

.footer-badges {
  display: flex;
  gap: 8px;
  font-family: var(--font-sub);
  font-size: 12px;
  color: rgba(248, 245, 239, 0.3);
}

.footer-sep {
  color: rgba(248, 245, 239, 0.15);
}

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

.footer-links a {
  font-family: var(--font-sub);
  font-size: 14px;
  color: rgba(248, 245, 239, 0.5);
  transition: color 0.2s;
}

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

/* ------------------------------------------------------------
   45. FOOTER BOTTOM
   ------------------------------------------------------------ */
.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-family: var(--font-sub);
  font-size: 12px;
  color: rgba(248, 245, 239, 0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  font-family: var(--font-sub);
  font-size: 12px;
  color: rgba(248, 245, 239, 0.35);
  transition: color 0.2s;
}

.footer-bottom-links a:hover {
  color: var(--gold-light);
}

/* ------------------------------------------------------------
   46. SPINNER
   ------------------------------------------------------------ */
.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(248, 245, 239, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

/* ------------------------------------------------------------
   PARTNERS GRID
   ------------------------------------------------------------ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

.partner-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.partner-logo-wrapper {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.partner-logo-wrapper img {
  max-height: 80px;
  max-width: 100%;
  object-fit: contain;
}

.partner-card h4 {
  font-family: var(--font-sub);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.partner-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ------------------------------------------------------------
   EPC GRID
   ------------------------------------------------------------ */
.epc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.epc-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.epc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.epc-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: rgba(204, 34, 41, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.epc-card h3 {
  font-family: var(--font-headline);
  font-size: var(--size-h4);
  margin-bottom: 16px;
}

.epc-card ul {
  list-style: none;
  padding: 0;
}

.epc-card ul li {
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.epc-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ------------------------------------------------------------
   CAPTCHA
   ------------------------------------------------------------ */
.captcha-group {
  margin-top: 8px;
}

.captcha-group label {
  font-weight: 600;
  color: var(--gold) !important;
  font-size: 14px;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--text-white); }
.text-center { text-align: center; }
.text-right { text-align: right; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   RESPONSIVE — 1200px
   ============================================================ */
@media (max-width: 1200px) {
  :root {
    --size-hero: 60px;
    --size-h1: 42px;
    --size-h2: 32px;
    --container-pad: 32px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-link {
    font-size: 13px;
  }

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

  .gallery-grid {
    columns: 3;
  }

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

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

/* ============================================================
   RESPONSIVE — 992px
   ============================================================ */
@media (max-width: 992px) {
  :root {
    --size-hero: 48px;
    --size-h1: 36px;
    --size-h2: 28px;
    --size-h3: 24px;
    --section-pad: 60px;
  }

  /* Show hamburger, hide desktop nav */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Layout adjustments */
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }

  .project-card-large {
    grid-column: span 2;
  }

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

  .news-stacked .card {
    flex-direction: row;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

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

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

  .stat-item:nth-child(2) {
    border-right: none;
  }

  .review-grid {
    columns: 1;
  }

  .hero-content {
    max-width: 480px;
    bottom: 100px;
  }

  .hero-arrows {
    bottom: 100px;
  }

  .gallery-grid {
    columns: 2;
  }

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

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

  .dropdown-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    transform: none;
    min-width: auto;
    border: none;
    border-top: 1px solid var(--border-dark);
  }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --size-hero: 40px;
    --size-h1: 32px;
    --size-h2: 26px;
    --size-h3: 22px;
    --size-h4: 18px;
    --container-pad: 24px;
    --section-pad: 60px;
  }

  .page-hero {
    height: 240px;
    padding-bottom: 32px;
  }

  .hero-content {
    bottom: 80px;
    max-width: 100%;
    padding-right: 24px;
  }

  .hero-arrows {
    flex-direction: row;
    right: auto;
    left: var(--container-pad);
    bottom: 24px;
  }

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

  .project-card-large {
    grid-column: span 1;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .tender-row {
    flex-wrap: wrap;
    gap: 8px;
    padding: 16px;
  }

  .tender-ref {
    min-width: auto;
    width: 100%;
  }

  .tender-deadline {
    text-align: left;
    min-width: auto;
  }

  .partner-strip {
    gap: 32px;
  }

  .partner-logo {
    height: 32px;
  }

  .modal-content {
    padding: 32px 24px;
    width: 95%;
  }

  .news-stacked .card {
    flex-direction: column;
  }

  .news-stacked .card-img {
    width: 100%;
    min-height: auto;
    aspect-ratio: 16 / 10;
  }

  .section-watermark {
    font-size: 100px;
  }

  .cta-card {
    padding: 32px;
  }
}

/* ============================================================
   RESPONSIVE — 576px
   ============================================================ */
@media (max-width: 576px) {
  :root {
    --size-hero: 34px;
    --size-h1: 28px;
    --size-h2: 24px;
    --size-h3: 20px;
    --size-body: 16px;
    --container-pad: 16px;
  }

  .stats-row {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 24px 16px;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  .stat-number {
    font-size: 36px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .gallery-grid {
    columns: 1;
  }

  .tab-nav {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .tab-btn {
    white-space: nowrap;
    padding: 12px 16px;
    font-size: 13px;
  }

  .btn {
    padding: 10px 22px;
    font-size: 12px;
    width: 100%;
    justify-content: center;
  }

  .hero-content h1 {
    font-size: var(--size-hero);
  }

  .hero-content p {
    font-size: 16px;
  }

  .section-watermark {
    font-size: 72px;
  }

  .review-card {
    padding: 24px;
  }

  .review-quote {
    font-size: 60px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .page-link {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }
}

/* ------------------------------------------------------------
   COOKIE CONSENT BANNER
   ------------------------------------------------------------ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--bg-dark);
  color: var(--text-white);
  padding: 0;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.3);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 24px var(--container-pad);
  display: flex;
  align-items: center;
  gap: 32px;
}

.cookie-banner-text {
  flex: 1;
}

.cookie-banner-text strong {
  font-family: var(--font-headline);
  font-size: var(--size-h4);
  display: block;
  margin-bottom: 6px;
}

.cookie-banner-text p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  color: #C0C4D0;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-banner .btn-outline {
  background: transparent;
  border: 1px solid var(--border-dark);
  color: var(--text-white);
  padding: 10px 24px;
  cursor: pointer;
  font-family: var(--font-sub);
  font-size: 0.9rem;
  border-radius: 3px;
  transition: background 0.2s, border-color 0.2s;
}

.cookie-banner .btn-outline:hover {
  background: var(--bg-dark-alt);
  border-color: var(--text-muted);
}

@media (max-width: 768px) {
  .cookie-banner-inner {
    flex-direction: column;
    text-align: center;
    padding: 20px 20px;
    gap: 16px;
  }

  .cookie-banner-actions {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Cookie Preferences Modal */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 31, 61, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal-overlay.open {
  display: flex;
}

.cookie-modal {
  background: var(--bg-primary);
  border-radius: 6px;
  max-width: 600px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.cookie-modal-header strong {
  font-family: var(--font-headline);
  font-size: var(--size-h3);
  color: var(--text-primary);
}

.cookie-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 1;
  padding: 0 4px;
}

.cookie-modal-close:hover {
  color: var(--text-primary);
}

.cookie-modal-body {
  padding: 24px;
}

.cookie-modal-body > p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.cookie-option {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}

.cookie-option-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.cookie-option-header strong {
  font-family: var(--font-sub);
  font-size: 0.95rem;
  color: var(--text-primary);
}

.cookie-option p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.cookie-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: var(--font-sub);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
  vertical-align: middle;
}

.cookie-badge-required {
  background: var(--status-open);
  color: #fff;
}

/* Toggle switch */
.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 24px;
  transition: background 0.25s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--gold);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
  transform: translateX(20px);
}

.cookie-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}

@media (max-width: 480px) {
  .cookie-modal-footer {
    flex-direction: column;
  }
  .cookie-modal-footer .btn {
    width: 100%;
    text-align: center;
  }
}

/* ------------------------------------------------------------
   ALTCHA CAPTCHA
   ------------------------------------------------------------ */
.altcha-group {
  margin-top: 8px;
  margin-bottom: 8px;
}

altcha-widget {
  --altcha-max-width: 100%;
}

/* ============================================================
   ADDITIONAL RESPONSIVE FIXES
   ============================================================ */

/* Purpose grid (about page, homepage) */
.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Doc list items — wrap on mobile */
@media (max-width: 768px) {
  .purpose-grid {
    grid-template-columns: 1fr;
  }

  .doc-item {
    flex-wrap: wrap;
    gap: 12px;
  }

  .doc-item .doc-info {
    min-width: 100%;
  }

  .doc-item .btn {
    width: auto;
  }

  /* Top bar — stack or hide */
  .top-bar .container {
    flex-direction: column;
    gap: 6px;
    padding: 8px var(--container-pad);
  }

  .top-bar-left,
  .top-bar-right {
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }

  /* EPC grid cards */
  .epc-grid {
    grid-template-columns: 1fr !important;
  }

  /* Inline grid forms */
  [style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Contact page grid */
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  /* Split layout on supplier portal landing */
  .split-layout {
    grid-template-columns: 1fr !important;
  }

  /* Flash messages */
  .flash {
    font-size: 12px;
    padding: 10px 12px;
  }
}

@media (max-width: 576px) {
  .purpose-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .purpose-card {
    padding: 20px;
  }

  /* Top bar — single row, scroll */
  .top-bar-right {
    font-size: 11px;
  }

  .top-bar-left {
    font-size: 11px;
  }

  .top-bar-sep {
    display: none;
  }

  /* Doc items fully stacked */
  .doc-item {
    padding: 16px;
  }

  .doc-icon {
    display: none;
  }

  /* Services grid */
  .services-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Breadcrumb wrap */
  .breadcrumb {
    flex-wrap: wrap;
    font-size: 12px;
  }

  /* Page hero tighter */
  .page-hero {
    height: auto;
    min-height: 180px;
    padding: 60px 0 24px;
  }

  .page-hero h1 {
    font-size: 1.5rem;
  }

  .page-hero p {
    font-size: 14px;
  }
}
