
/* =========================================
   MAS AVIATION - OUR SERVICES PAGE
========================================= */

/* PAGE HERO */

.services-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;

  min-height: 410px;
  display: flex;
  align-items: center;

  background:
    radial-gradient(
      circle at 85% 35%,
      rgba(188, 195, 206, 0.38),
      transparent 38%
    ),
    linear-gradient(
      120deg,
      #ffffff 0%,
      #f4f5f7 60%,
      #e8edf4 100%
    );

  border-bottom: 3px solid #c71930;
}

.services-hero::before {
  content: "";
  position: absolute;
  z-index: -1;

  width: 520px;
  height: 520px;
  right: -100px;
  top: -280px;

  border: 1px solid rgba(6, 22, 50, 0.10);
  border-radius: 50%;
}

.services-hero::after {
  content: "";
  position: absolute;
  z-index: -1;

  width: 750px;
  height: 750px;
  right: -260px;
  top: -385px;

  border: 1px dashed rgba(199, 25, 48, 0.20);
  border-radius: 50%;
}

.services-hero-inner {
  padding: 85px 0;
}

.services-eyebrow {
  display: block;
  margin-bottom: 20px;

  color: #c71930;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
}

.services-hero h1 {
  color: #061632;
  font-size: clamp(52px, 6vw, 86px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1.1;
}

.services-hero h1 span {
  color: #c71930;
}

.services-hero p {
  max-width: 650px;
  margin-top: 23px;

  color: #49566a;
  font-size: 17px;
  line-height: 1.85;
}

.services-explore {
  display: inline-flex;
  gap: 22px;
  align-items: center;

  margin-top: 28px;
  padding: 14px 23px;

  background: #061632;
  color: #ffffff;
  border-radius: 7px;

  font-size: 13px;
  font-weight: 700;

  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.services-explore:hover {
  background: #c71930;
  transform: translateY(-3px);
}

/* SERVICE CARD AREA */

.services-container {
  padding: 100px 0;
  background: #f4f5f7;
}

.service-card {
  display: flex;
  align-items: stretch;

  width: 100%;
  margin-bottom: 38px;

  background: #ffffff;
  border: 1px solid #e2e7ee;
  border-radius: 17px;

  overflow: hidden;
  box-shadow: 0 16px 45px rgba(6, 22, 50, 0.045);

  transition:
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.service-card:last-child {
  margin-bottom: 0;
}

.service-card:hover {
  border-color: rgba(199, 25, 48, 0.25);
  box-shadow: 0 22px 55px rgba(6, 22, 50, 0.09);
}

/* Alternate image and text placement */

.service-card:nth-child(even) {
  flex-direction: row-reverse;
}

/* SERVICE IMAGE */

.service-visual {
  position: relative;
  flex: 0 0 39%;
  min-height: 410px;
  overflow: hidden;
  background: #e6eaf0;
}

.service-visual img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transition: transform 0.65s ease;
}

.service-card:hover .service-visual img {
  transform: scale(1.055);
}

/* Image dark gradient for the number */

.service-visual::after {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(6, 22, 50, 0.25),
    transparent 35%,
    transparent 75%,
    rgba(6, 22, 50, 0.12)
  );
  pointer-events: none;
}

/* SERVICE NUMBER */

.service-index {
  position: absolute;
  top: 23px;
  left: 23px;
  z-index: 2;

  padding: 9px 14px;

  color: white;
  background: rgba(6, 22, 50, 0.82);
  backdrop-filter: blur(8px);

  border-radius: 6px;

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

/* SERVICE DESCRIPTION */

.service-copy {
  flex: 1;
  min-width: 0;
  padding: clamp(32px, 4vw, 55px);
}

.service-eyebrow {
  display: block;
  margin-bottom: 15px;

  color: #c71930;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.1px;
}

.service-copy h2 {
  max-width: 690px;

  font-size: clamp(27px, 2.4vw, 38px);
  font-weight: 800;
  letter-spacing: -1.2px;

  color: #061632;
  line-height: 1.22;
}

.service-copy p {
  margin-top: 21px;

  color: #49566a;
  font-size: 15px;
  line-height: 1.9;
}

.service-copy h3 {
  display: flex;
  align-items: center;
  gap: 12px;

  margin-top: 29px;
  margin-bottom: 18px;

  color: #061632;
  font-size: 16px;
  font-weight: 800;
}

.service-copy h3::before {
  content: "";
  display: block;

  width: 4px;
  height: 22px;

  background: #c71930;
  border-radius: 3px;
}

/* SERVICE BULLET LIST */

.services-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;

  list-style: none;
  padding: 0;
  margin: 0;
}

.services-list li {
  position: relative;
  min-width: 0;

  padding: 11px 12px 11px 27px;

  background: #f4f5f7;
  color: #263c58;

  border: 1px solid #edf0f4;
  border-radius: 7px;

  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;

  transition:
    background 0.25s ease,
    border-color 0.25s ease;
}

.services-list li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 19px;

  width: 6px;
  height: 6px;

  background: #c71930;
  border-radius: 50%;
}

.services-list li:hover {
  background: #ffffff;
  border-color: rgba(199, 25, 48, 0.3);
}

/* RESPONSIVE - TABLETS */

@media (max-width: 950px) {

  .services-container {
    padding: 65px 0;
  }

  .service-card,
  .service-card:nth-child(even) {
    flex-direction: column;
  }

  .service-visual {
    flex: none;
    width: 100%;
    min-height: 0;
    height: 310px;
  }

  .service-copy {
    padding: 35px;
  }
}

/* RESPONSIVE - MOBILE */

@media (max-width: 600px) {

  .services-hero {
    min-height: 355px;
  }

  .services-hero-inner {
    padding: 65px 0;
  }

  .services-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }

  .services-hero h1 {
    font-size: 52px;
    letter-spacing: -2px;
  }

  .services-hero p {
    font-size: 15px;
  }

  .services-container {
    padding: 40px 0 65px;
  }

  .service-card {
    margin-bottom: 25px;
    border-radius: 12px;
  }

  .service-visual {
    height: 240px;
  }

  .service-copy {
    padding: 27px 22px;
  }

  .service-copy h2 {
    font-size: 28px;
    letter-spacing: -0.8px;
  }

  .service-copy p {
    font-size: 14px;
  }

  .services-list {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .services-list li {
    font-size: 13px;
  }
}

/* =========================================
   SERVICES HERO BACKGROUND VIDEO
========================================= */

.services-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

/* Background video */

.services-hero-video {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  z-index: 0;
  pointer-events: none;
}

/* White overlay for text readability */

.services-hero-overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.95) 0%,
    rgba(255,255,255,0.78) 50%,
    rgba(255,255,255,0.45) 100%
  );

  z-index: 1;
  pointer-events: none;
}

/* Keep heading and button above video */

.services-hero-inner {
  position: relative;
  z-index: 2;
}

/* Mobile adjustments */

@media (max-width: 600px) {

  .services-hero-video {
    object-position: center;
  }

  .services-hero-overlay {
    background: rgba(255,255,255,0.80);
  }

}

/* HIDE NUMBERING BADGES ON SERVICE IMAGES */
.service-index {
  display: none !important;
}

/* =========================================
   MAS AVIATION - SERVICES CATEGORY NAV
========================================= */

.services-category-nav {
  position: relative;
  padding: 48px 0 55px;
  background: #061632;
  border-top: 3px solid #c71930;
  overflow: hidden;
}

/* SECTION HEADING */

.services-category-heading {
  margin-bottom: 26px;
}

.services-category-heading > span {
  display: block;
  color: #ef6072;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 9px;
}

.services-category-heading p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.6px;
}

/* FOUR-COLUMN GRID */

.services-category-links {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* CATEGORY BUTTONS */

.service-category-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;

  min-height: 116px;
  min-width: 0;
  padding: 19px 20px;

  background: #17365d;
  color: #ffffff;

  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;

  font-size: 15px;
  font-weight: 650;
  text-decoration: none;

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* CATEGORY NUMBER */

.service-category-link .category-number {
  color: #ef8d9b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

/* ARROW */

.service-category-link::after {
  content: "↗";
  position: absolute;
  right: 19px;
  top: 16px;

  color: #ffffff;
  font-size: 20px;
  font-weight: 400;

  transition: transform 0.3s ease;
}

/* HOVER EFFECT */

.service-category-link:hover {
  background: #c71930;
  border-color: #c71930;
  transform: translateY(-5px);

  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.service-category-link:hover::after {
  transform: translate(3px, -3px);
}

.service-category-link:hover .category-number {
  color: #ffffff;
}

/* KEYBOARD ACCESSIBILITY */

.service-category-link:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
}

/* TABLET */

@media (max-width: 950px) {

  .services-category-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-category-nav {
    padding: 42px 0;
  }
}

/* MOBILE */

@media (max-width: 600px) {

  .services-category-nav {
    padding: 35px 0 40px;
  }

  .services-category-heading {
    margin-bottom: 20px;
  }

  .services-category-links {
    gap: 10px;
  }

  .service-category-link {
    min-height: 110px;
    padding: 15px 13px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 10px;
  }

  .service-category-link::after {
    top: 10px;
    right: 11px;
    font-size: 17px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  .service-category-link,
  .service-category-link::after {
    transition: none;
  }

  .service-category-link:hover {
    transform: none;
  }
}

/* =========================================
   MAS AVIATION - COMPACT SERVICE NAVIGATION
========================================= */

/* WHITE SECTION BACKGROUND */

.services-category-nav {
  background: #ffffff !important;
  border-top: none !important;
  border-bottom: 1px solid #e2e7ee;
  padding: 28px 0 !important;
  overflow: hidden;
}

/* COMPACT HEADING */

.services-category-heading {
  margin-bottom: 14px !important;
}

.services-category-heading > span {
  color: #c71930;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.8px;
}

/* REMOVE LARGE TITLE */

.services-category-heading p {
  display: none;
}

/* COMPACT HORIZONTAL BUTTONS */

.services-category-links {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px !important;
}

/* NAVY BUTTONS */

.service-category-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;

  width: auto !important;
  min-height: 0 !important;
  height: auto !important;

  padding: 13px 22px !important;

  border: none !important;
  border-radius: 9px !important;

  background: #061632 !important;
  color: #ffffff !important;

  font-size: 14px !important;
  font-weight: 650;
  white-space: nowrap;
  line-height: 1.4;

  box-shadow: none !important;

  transition:
    background 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* HIDE CATEGORY NUMBERS */

.service-category-link .category-number {
  display: none !important;
}

/* HIDE OLD ARROWS */

.service-category-link::after {
  display: none !important;
}

/* HOVER TURNS RED */

.service-category-link:hover {
  background: #c71930 !important;
  color: #ffffff !important;

  transform: translateY(-3px);

  box-shadow:
    0 8px 20px rgba(199, 25, 48, 0.18) !important;
}

/* KEYBOARD FOCUS */

.service-category-link:focus-visible {
  outline: 3px solid #c71930;
  outline-offset: 3px;
}

/* MOBILE */

@media (max-width: 600px) {

  .services-category-nav {
    padding: 24px 0 !important;
  }

  .services-category-links {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 9px !important;
    scrollbar-width: thin;
  }

  .service-category-link {
    flex-shrink: 0;
    padding: 12px 17px !important;
    font-size: 12px !important;
  }

}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
  .service-category-link {
    transition: none;
  }

  .service-category-link:hover {
    transform: none;
  }
}

/* =========================================
   MOBILE SERVICE CATEGORIES - ONE ROW
========================================= */

@media (max-width: 600px) {

  .services-category-nav {
    padding: 22px 0 !important;
  }

  .services-category-heading {
    margin-bottom: 12px !important;
  }

  .services-category-heading > span {
    font-size: 10px;
    letter-spacing: 1px;
  }

  /* FOUR BUTTONS IN ONE ROW */

  .services-category-links {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;

    width: 100%;
    overflow: visible !important;
    flex-wrap: nowrap !important;
    padding: 0 !important;
  }

  /* COMPACT BUTTONS */

  .service-category-link {
    display: flex !important;
    align-items: center;
    justify-content: center;

    min-width: 0 !important;
    width: 100% !important;
    min-height: 52px !important;
    height: auto !important;

    padding: 9px 4px !important;

    font-size: clamp(9px, 2.5vw, 11px) !important;
    font-weight: 650;

    line-height: 1.3;
    text-align: center;
    white-space: normal !important;

    border-radius: 7px !important;
  }

  .service-category-link span {
    min-width: 0;
  }

  .service-category-link .category-number {
    display: none !important;
  }

  .service-category-link::after {
    display: none !important;
  }

}

/* =========================================
   MAS AVIATION - SERVICE GROUP HEADINGS
========================================= */

.service-group-heading {
  width: 100%;
  margin: 85px 0 35px;
  padding-top: 32px;

  border-top: 1px solid #e2e7ee;

  scroll-margin-top: 110px;
}

/* FIRST CATEGORY */

.service-group-heading:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

/* CATEGORY LABEL */

.service-group-heading .section-label {
  display: block;
  margin-bottom: 12px;

  color: #c71930;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

/* MAIN HEADING */

.service-group-heading h2 {
  margin: 0;

  color: #061632;
  font-size: clamp(30px, 3.5vw, 43px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
}

.service-group-heading h2 span {
  color: #c71930;
}

/* RED UNDERLINE */

.service-group-heading .red-line {
  width: 55px;
  height: 3px;
  margin: 17px 0 0;

  background: #c71930;
}

/* MOBILE */

@media (max-width: 600px) {

  .service-group-heading {
    margin: 55px 0 25px;
    padding-top: 25px;
    scroll-margin-top: 85px;
  }

  .service-group-heading h2 {
    font-size: 29px;
    letter-spacing: -0.7px;
  }

  .service-group-heading .section-label {
    font-size: 10px;
  }
}
