/* Tenders & Procurement — public pages */

.tenders-page {
  background: #f7f8f4;
  color: #526257;
}

.tenders-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #0f2418;
}

.tenders-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 29, 20, 0.94), rgba(12, 29, 20, 0.7) 48%, rgba(12, 29, 20, 0.35)),
    url('/website/assets/images/photos/h_5.jpeg') center / cover no-repeat;
  z-index: -2;
}

.tenders-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, #f7f8f4, rgba(247, 248, 244, 0));
  z-index: -1;
}

.tenders-hero__inner {
  width: 100%;
  padding: 120px 0 64px;
}

.tenders-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #d9a441;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tenders-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #ffffff;
}

.tenders-hero h1 {
  color: #ffffff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  margin: 0 0 14px;
  max-width: 18ch;
}

.tenders-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 42rem;
  margin: 0;
}

.tenders-list {
  padding: 28px 0 100px;
}

.tenders-list__intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}

.tenders-list__intro h2 {
  color: #15271d;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 900;
  margin: 8px 0 8px;
}

.tenders-list__intro p {
  margin: 0;
  max-width: 36rem;
  line-height: 1.6;
}

.tenders-list__count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  color: #15271d;
}

.tenders-list__count strong {
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 900;
  color: #006088;
}

.tenders-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.tender-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(16, 32, 22, 0.08);
  border-radius: 4px;
  padding: 28px;
  box-shadow: 0 14px 36px rgba(22, 52, 34, 0.07);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  color: inherit;
  text-decoration: none;
  min-height: 100%;
}

.tender-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 96, 136, 0.28);
  box-shadow: 0 22px 48px rgba(22, 52, 34, 0.12);
  color: inherit;
}

.tender-card__top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tender-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  background: #e8f2f6;
  color: #006088;
}

.tender-badge--open {
  background: #e6f4ea;
  color: #1b6b3a;
}

.tender-badge--closed,
.tender-badge--cancelled {
  background: #f3e8e8;
  color: #8a2f2f;
}

.tender-badge--awarded {
  background: #f4edd9;
  color: #8a6a1b;
}

.tender-card h3 {
  color: #15271d;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 900;
  margin: 0 0 10px;
}

.tender-card__ref {
  color: #006088;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.tender-card__summary {
  color: #5a6b66;
  line-height: 1.65;
  margin: 0 0 18px;
  flex: 1;
}

.tender-card__meta {
  display: grid;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(16, 32, 22, 0.08);
  font-size: 0.9rem;
  color: #3f5248;
}

.tender-card__meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tender-card__meta i {
  color: #d9a441;
  width: 14px;
}

.tender-card__cta {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #006088;
  font-weight: 800;
}

.tenders-empty {
  text-align: center;
  padding: 64px 24px;
  background: #ffffff;
  border: 1px dashed rgba(16, 32, 22, 0.16);
  border-radius: 4px;
}

.tenders-empty i {
  font-size: 2rem;
  color: #006088;
  margin-bottom: 12px;
}

.tenders-empty h3 {
  color: #15271d;
  font-weight: 900;
  margin: 0 0 8px;
}

/* Detail */
.tender-detail {
  padding: 12px 0 100px;
}

.tender-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.tender-detail__main,
.tender-detail__side {
  background: #ffffff;
  border: 1px solid rgba(16, 32, 22, 0.08);
  border-radius: 4px;
  padding: 28px;
  box-shadow: 0 14px 36px rgba(22, 52, 34, 0.06);
}

.tender-detail__main h1 {
  color: #15271d;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 900;
  line-height: 1.15;
  margin: 12px 0 14px;
}

.tender-detail__body {
  color: #44564c;
  line-height: 1.75;
  font-size: 1.02rem;
}

.tender-detail__body p {
  margin: 0 0 1rem;
}

.tender-detail__side h2 {
  color: #15271d;
  font-size: 1.15rem;
  font-weight: 900;
  margin: 0 0 16px;
}

.tender-facts {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.tender-facts li {
  display: grid;
  gap: 2px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(16, 32, 22, 0.08);
}

.tender-facts strong {
  color: #15271d;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tender-facts span {
  color: #44564c;
  line-height: 1.45;
}

.tender-bid-form label {
  display: block;
  font-weight: 700;
  color: #15271d;
  margin: 0 0 6px;
}

.tender-bid-form input,
.tender-bid-form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(16, 32, 22, 0.16);
  border-radius: 4px;
  background: #fbfcf8;
  color: #15271d;
}

.tender-bid-form input:focus,
.tender-bid-form textarea:focus {
  outline: 2px solid rgba(0, 96, 136, 0.25);
  border-color: #006088;
}

.tender-bid-form .hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.tender-alert {
  padding: 12px 14px;
  border-radius: 4px;
  margin-bottom: 16px;
  font-weight: 650;
}

.tender-alert--ok {
  background: #e6f4ea;
  color: #1b6b3a;
}

.tender-alert--err {
  background: #f3e8e8;
  color: #8a2f2f;
}

.tender-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  background: #006088;
  color: #ffffff;
  font-weight: 800;
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.tender-btn:hover {
  background: #004e6e;
  color: #ffffff;
  transform: translateY(-1px);
}

.tender-btn--ghost {
  background: transparent;
  color: #006088;
  border: 1px solid rgba(0, 96, 136, 0.35);
}

.tender-btn--ghost:hover {
  background: #e8f2f6;
  color: #006088;
}

.tender-btn--gold {
  background: #d9a441;
  color: #15271d;
}

.tender-btn--gold:hover {
  background: #c8942f;
  color: #15271d;
}

.tender-closed-note {
  padding: 14px;
  background: #f4f1ea;
  border-radius: 4px;
  color: #5a6b66;
  line-height: 1.55;
}

@media (max-width: 991px) {
  .tenders-grid,
  .tender-detail__layout {
    grid-template-columns: 1fr;
  }

  .tenders-list__intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .tenders-list__count {
    align-items: flex-start;
  }

  .tenders-hero h1 {
    max-width: none;
  }
}
