﻿/*
 * Matchwell Engineering — Awards Section Redesign
 * awards.css | astra-matchwell child theme
 */

/* ─────────────────────────────────────────────────────────────────
   SECTION CONTAINER OVERRIDES
───────────────────────────────────────────────────────────────── */
.elementor-element-c6da0dc.elementor-section,
section.elementor-element-c6da0dc {
  background: #F8FAFC !important;
  padding: 96px 0 88px !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Hide original 2-column Elementor markup inside this section */
.elementor-element-c6da0dc .elementor-element-9108d78,
.elementor-element-c6da0dc .elementor-container:not(.mw-awards-active) {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────────────
   AWARDS WRAPPER & CENTERED HEADER
───────────────────────────────────────────────────────────────── */
.mw-awards-redesign {
  width: 100%;
  font-family: 'Inter', sans-serif;
  color: #1E293B;
}

.mw-awards__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .mw-awards__container {
    padding: 0 20px;
  }
}

/* ── Centered Header Block ── */
.mw-awards__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 52px;
}

.mw-awards__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(30, 58, 138, 0.08);
  color: #1E3A8A;
  padding: 6px 14px;
  border-radius: 9999px;
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.mw-awards__eyebrow svg {
  width: 15px;
  height: 15px;
  color: #D97706; /* Trophy gold */
}

.mw-awards__title {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(28px, 3.2vw, 42px) !important;
  font-weight: 700 !important;
  color: #0D1F3C !important;
  line-height: 1.25 !important;
  margin: 0 0 16px !important;
  letter-spacing: -0.02em !important;
}

.mw-awards__subtitle {
  font-size: 15.5px !important;
  line-height: 1.65 !important;
  color: #64748B !important;
  margin: 0 auto !important;
}

/* ─────────────────────────────────────────────────────────────────
   SLIDER VIEWPORT & TRACK
───────────────────────────────────────────────────────────────── */
.mw-awards__slider-box {
  position: relative;
  padding: 10px 0;
}

.mw-awards__viewport {
  overflow: hidden;
  border-radius: 16px;
  margin: 0 -12px;
}

.mw-awards__track {
  display: flex;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.mw-awards__slide {
  padding: 12px;
  box-sizing: border-box;
  flex: 0 0 25%;
  max-width: 25%;
  min-width: 0;
}

/* ─────────────────────────────────────────────────────────────────
   AWARD CARD
───────────────────────────────────────────────────────────────── */
.mw-awards__card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
  cursor: pointer;
  outline: none;
  position: relative;
}

.mw-awards__card:hover,
.mw-awards__card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(30, 58, 138, 0.12);
  border-color: rgba(30, 58, 138, 0.35);
}

.mw-awards__card:focus-visible {
  outline: 2px solid #1E3A8A;
  outline-offset: 3px;
}

/* Card Top: Image & Badge */
.mw-awards__card-top {
  position: relative;
  background: #F1F5F9;
  padding: 18px;
  border-bottom: 1px solid #F1F5F9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mw-awards__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: #0D1F3C;
  color: #FFFFFF;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.mw-awards__img-frame {
  position: relative;
  width: 100%;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border-radius: 8px;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.mw-awards__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 350ms ease;
  display: block;
}

.mw-awards__card:hover .mw-awards__img {
  transform: scale(1.05);
}

/* Image Hover Overlay */
.mw-awards__img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 60, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 250ms ease;
}

.mw-awards__card:hover .mw-awards__img-overlay {
  opacity: 1;
}

.mw-awards__zoom-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  color: #0D1F3C;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.mw-awards__zoom-btn svg {
  width: 14px;
  height: 14px;
}

/* Card Content / Name written below */
.mw-awards__card-content {
  padding: 20px 18px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mw-awards__category {
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1E3A8A;
  margin-bottom: 6px;
}

.mw-awards__card-name {
  font-family: 'Poppins', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #0D1F3C !important;
  line-height: 1.35 !important;
  margin: 0 0 8px !important;
}

.mw-awards__card-desc {
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  color: #64748B !important;
  margin: 0 !important;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────────
   SLIDER NAVIGATION BUTTONS (ARROWS)
───────────────────────────────────────────────────────────────── */
.mw-awards__nav-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #0D1F3C;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
  cursor: pointer;
  z-index: 10;
  transition: all 200ms ease;
  outline: none;
}

.mw-awards__nav-btn:hover:not(:disabled) {
  background: #1E3A8A;
  border-color: #1E3A8A;
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
  transform: translateY(-50%) scale(1.08);
}

.mw-awards__nav-btn:focus-visible {
  outline: 2px solid #1E3A8A;
  outline-offset: 2px;
}

.mw-awards__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.mw-awards__nav-btn svg {
  width: 20px;
  height: 20px;
}

.mw-awards__nav-btn--prev {
  left: -22px;
}

.mw-awards__nav-btn--next {
  right: -22px;
}

@media (max-width: 1340px) {
  .mw-awards__nav-btn--prev { left: -10px; }
  .mw-awards__nav-btn--next { right: -10px; }
}

@media (max-width: 768px) {
  .mw-awards__nav-btn--prev { left: 4px; }
  .mw-awards__nav-btn--next { right: 4px; }
}

/* ─────────────────────────────────────────────────────────────────
   PAGINATION DOTS
───────────────────────────────────────────────────────────────── */
.mw-awards__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.mw-awards__dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background: #CBD5E1;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 250ms ease;
}

.mw-awards__dot:hover {
  background: #94A3B8;
}

.mw-awards__dot.is-active {
  background: #1E3A8A;
  width: 28px;
}

.mw-awards__dot:focus-visible {
  outline: 2px solid #1E3A8A;
  outline-offset: 2px;
}

/* ─────────────────────────────────────────────────────────────────
   LIGHTBOX MODAL
───────────────────────────────────────────────────────────────── */
.mw-award-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.mw-award-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mw-award-lightbox.is-closing {
  opacity: 0;
}

.mw-award-lightbox__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 60, 0.78);
  backdrop-filter: blur(4px);
}

.mw-award-lightbox__dialog {
  position: relative;
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px 28px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
  transform: scale(0.95);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mw-award-lightbox.is-open .mw-award-lightbox__dialog {
  transform: scale(1);
}

.mw-award-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F1F5F9;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease;
}

.mw-award-lightbox__close:hover {
  background: #0D1F3C;
  color: #FFFFFF;
}

.mw-award-lightbox__media {
  max-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  width: 100%;
}

.mw-award-lightbox__img {
  max-height: 52vh;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mw-award-lightbox__title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #0D1F3C !important;
  margin: 0 0 8px !important;
}

.mw-award-lightbox__desc {
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  color: #64748B !important;
  margin: 0 !important;
}

body.mw-lightbox-open {
  overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────────
   REDUCED MOTION
───────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .mw-awards__track,
  .mw-awards__card,
  .mw-awards__img,
  .mw-awards__nav-btn,
  .mw-awards__dot,
  .mw-award-lightbox {
    transition: none !important;
    transform: none !important;
  }
}