/**
 * Styles for PHP shortcodes / CPT helpers only.
 * Page layout, radius, overflow, and section styling live in Elementor
 * (edit widgets in Elementor — Site Settings / Advanced > Custom CSS).
 */

/* Hide retired Team + old static project sections (CSS class toggles in Elementor) */
.ibr-hide-team,
.ibr-hide-old-projects {
  display: none !important;
}

/* [ibr_projects] shortcode gallery */
.ibr-projects {
  --ibr-bg: #07151C;
  --ibr-surface: #0E2430;
  --ibr-ink: #F4F8FA;
  --ibr-muted: #9BB3BF;
  --ibr-teal: #004D6D;
  --ibr-teal-bright: #0A6B8F;
  --ibr-yellow: #FFD500;
  background: var(--ibr-bg);
  color: var(--ibr-ink);
  padding: 88px 24px;
}
.ibr-projects__inner { max-width: 1180px; margin: 0 auto; }
.ibr-projects__header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.ibr-projects__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ibr-yellow);
  font-weight: 600;
}
.ibr-projects__eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--ibr-yellow);
}
.ibr-projects__title {
  color: var(--ibr-ink) !important;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
}
.ibr-projects__intro {
  margin: 0;
  color: var(--ibr-muted);
  font-size: 1rem;
  line-height: 1.6;
}
.ibr-projects__filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 36px;
}
.ibr-projects__filter {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .12);
  background: var(--ibr-surface);
  color: #fff;
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.ibr-projects__filter.is-active {
  background: var(--ibr-yellow);
  color: var(--ibr-teal);
  border-color: var(--ibr-yellow);
}
.ibr-projects__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.ibr-projects__card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 240px;
  background: var(--ibr-surface);
}
.ibr-projects__card.is-hidden { display: none; }
.ibr-projects__card-link {
  display: block;
  height: 100%;
  min-height: 240px;
  text-decoration: none;
  color: inherit;
  position: relative;
}
.ibr-projects__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.ibr-projects__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: linear-gradient(180deg, rgba(7, 21, 28, 0) 35%, rgba(7, 21, 28, .88) 100%);
}
.ibr-projects__cat {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ibr-yellow);
  font-weight: 700;
  margin-bottom: 6px;
}
.ibr-projects__card-title {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
  color: #fff;
  font-weight: 700;
}
.ibr-projects__empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ibr-muted);
}
@media (max-width: 900px) {
  .ibr-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .ibr-projects { padding: 64px 16px; }
  .ibr-projects__grid { grid-template-columns: 1fr; }
}

.ibr-whatsapp-btn {
  display: inline-block;
  background: #25D366;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 22px;
  border-radius: 999px;
}

.ibr-project-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}
.ibr-project-terms__item {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #DCE9EF;
  color: #004D6D;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ibr-project-meta { display: grid; gap: 22px; }
.ibr-project-meta__row {
  display: grid;
  gap: 8px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E3E8EC;
}
.ibr-project-meta__row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.ibr-project-meta__label {
  color: #5E7480;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.ibr-project-meta__value,
.ibr-project-meta__value a {
  color: #0F1720;
  font-size: 16px;
  line-height: 1.6;
  text-decoration: none;
}

.ibr-project-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.ibr-project-gallery__item {
  display: block;
  border-radius: 16px;
  overflow: hidden;
}
.ibr-project-gallery img,
.ibr-project-gallery__image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
@media (max-width: 767px) {
  .ibr-project-gallery { grid-template-columns: 1fr; }
}

/* ibr-video-flow-fix */
.ibr-project-video { width: 100%; margin: 0 0 24px; display: block; }
.ibr-project-video__frame {
  position: relative;
  display: block;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 — keeps height in document flow */
  overflow: hidden;
  border-radius: 10px;
  background: #07151C;
}
.ibr-project-video__frame iframe,
.ibr-project-video__frame video,
.ibr-project-video__html5,
.ibr-project-video__player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
  background: #000;
}

/* Prevent Elementor shortcode widget from collapsing in flex containers */
.elementor-widget-shortcode.ibr-project-video-widget,
.elementor-element-ibrvid01.elementor-widget-shortcode,
.elementor-element-ibrvid01 {
  height: auto !important;
  min-height: auto !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  align-self: stretch !important;
  line-height: normal !important;
  overflow: visible !important;
}
.elementor-element-ibrvid01 .elementor-shortcode,
.elementor-element-ibrvid01 .elementor-widget-container {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  line-height: normal !important;
}

@media (max-width: 767px) {
  .ibr-project-gallery {
    grid-template-columns: 1fr;
    margin-top: 12px;
  }
}
