
/* =========================================
   MAS AVIATION - INDIVIDUAL SERVICE PAGES
   PREMIUM CORPORATE DESIGN
========================================= */

/* PAGE BASE */

.service-detail-page {
  background: #ffffff;
  color: #061632;
}

.service-detail-page main {
  overflow: clip;
}

/* =========================================
   01 - CINEMATIC HERO
========================================= */

.sd-hero {
  position: relative;
  display: flex;
  align-items: center;

  min-height: 650px;
  min-height: min(760px, 82svh);

  overflow: hidden;
  isolation: isolate;

  background: #061632;
  color: #ffffff;
}

/* HERO IMAGE */

.sd-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.sd-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;

  animation: sdHeroZoom 9s ease-out both;
}

@keyframes sdHeroZoom {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1);
  }
}

/* IMAGE OVERLAY */

.sd-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;

  background:
    linear-gradient(
      90deg,
      rgba(6,22,50,0.94) 0%,
      rgba(6,22,50,0.82) 37%,
      rgba(6,22,50,0.38) 72%,
      rgba(6,22,50,0.15) 100%
    ),
    linear-gradient(
      0deg,
      rgba(6,22,50,0.6),
      transparent 45%
    );
}

/* HERO CONTENT */

.sd-hero-content {
  position: relative;
  z-index: 2;

  padding-top: 95px;
  padding-bottom: 115px;
}

/* BREADCRUMB */

.sd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;

  margin-bottom: 32px;

  color: rgba(255,255,255,0.75);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;

  animation: sdFadeUp 0.75s ease both;
}

.sd-breadcrumb a {
  color: inherit;
  transition: color 0.25s ease;
}

.sd-breadcrumb a:hover {
  color: #ff5c72;
}

.sd-breadcrumb > span:nth-child(2) {
  color: #ff5c72;
}

/* EYEBROW */

.sd-hero-eyebrow {
  display: block;

  margin-bottom: 18px;

  color: #c71930;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;

  animation: sdFadeUp 0.8s 0.12s both;
}

/* MAIN TITLE */

.sd-hero h1 {
  max-width: 850px;
  margin: 0;

  color: #ffffff;

  font-size: clamp(48px, 6.5vw, 100px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -3px;

  animation: sdFadeUp 0.85s 0.22s both;
}

.sd-hero h1 span {
  display: block;
  color: #c71930;
}

/* DESCRIPTION */

.sd-hero-content > p {
  max-width: 610px;
  margin-top: 26px;

  color: #e1e7f0;

  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.85;

  animation: sdFadeUp 0.85s 0.35s both;
}

/* HERO BUTTONS */

.sd-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;

  margin-top: 35px;

  animation: sdFadeUp 0.85s 0.48s both;
}

.sd-primary-btn,
.sd-secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;

  min-height: 55px;
  padding: 15px 25px;

  border-radius: 9px;

  font-size: 14px;
  font-weight: 700;
  text-decoration: none;

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

/* PRIMARY BUTTON */

.sd-primary-btn {
  background: #c71930;
  color: #ffffff;
}

.sd-primary-btn:hover {
  background: #ffffff;
  color: #061632;
  transform: translateY(-3px);
}

/* SECONDARY BUTTON */

.sd-secondary-btn {
  border: 1px solid rgba(255,255,255,0.55);
  background: rgba(255,255,255,0.06);
  color: #ffffff;
}

.sd-secondary-btn:hover {
  background: #ffffff;
  color: #061632;
  transform: translateY(-3px);
}

/* BOTTOM HERO LABEL */

.sd-hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 20px 5%;

  border-top: 1px solid rgba(255,255,255,0.18);
  background: rgba(6,22,50,0.4);

  color: rgba(255,255,255,0.8);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
}

/* HERO ENTRANCE ANIMATION */

@keyframes sdFadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   02 - SERVICE INTRODUCTION
========================================= */

.sd-introduction {
  padding: 110px 0;
  background: #ffffff;

  scroll-margin-top: 90px;
}

.sd-intro-grid {
  display: grid;
  grid-template-columns: 43% minmax(0, 1fr);
  gap: 75px;
  align-items: start;
}

.sd-section-eyebrow {
  display: block;

  margin-bottom: 18px;

  color: #c71930;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.6px;
}

.sd-intro-heading h2 {
  margin: 0;

  font-size: clamp(34px, 3.7vw, 55px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.6px;
}

.sd-intro-heading h2 span {
  display: block;
  color: #c71930;
}

.sd-red-line {
  width: 60px;
  height: 3px;

  margin-top: 24px;

  background: #c71930;
}

/* INTRO TEXT */

.sd-intro-content > p {
  margin: 0 0 22px;

  color: #49566a;
  font-size: 16px;
  line-height: 1.95;
}

/* HIGHLIGHT BLOCK */

.sd-intro-highlight {
  margin-top: 30px;
  padding: 28px 30px;

  border-left: 4px solid #c71930;
  border-radius: 0 12px 12px 0;

  background: #f4f5f7;
}

.sd-intro-highlight > span {
  display: block;
  margin-bottom: 10px;

  color: #c71930;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
}

.sd-intro-highlight p {
  margin: 0;

  color: #061632;
  font-size: 17px;
  font-weight: 650;
  line-height: 1.65;
}

/* =========================================
   03 - SERVICE CAPABILITIES
========================================= */

.sd-capabilities {
  padding: 100px 0 115px;

  background: #f4f5f7;
}

.sd-section-heading {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.sd-section-heading h2 {
  margin: 0;

  color: #061632;
  font-size: clamp(34px, 3.8vw, 50px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.3px;
}

.sd-section-heading h2 span {
  color: #c71930;
}

.sd-section-heading > p {
  max-width: 620px;
  margin: 18px auto 0;

  color: #586579;
  font-size: 15px;
  line-height: 1.8;
}

.sd-section-heading .sd-red-line {
  margin: 22px auto 0;
}

/* CAPABILITY GRID */

.sd-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* INDIVIDUAL CARD */

.sd-capability-card {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;

  min-height: 205px;
  padding: 30px;

  overflow: hidden;

  border: 1px solid #e2e7ee;
  border-radius: 15px;

  background: #ffffff;

  box-shadow: 0 10px 30px rgba(6,22,50,0.035);

  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    background 0.35s ease;
}

/* TOP RED ACCENT */

.sd-capability-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;

  width: 0;
  height: 3px;

  background: #c71930;

  transition: width 0.4s ease;
}

.sd-capability-card:hover::before {
  width: 100%;
}

/* NUMBER */

.sd-capability-number {
  color: #c71930;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

/* CARD TITLE */

.sd-capability-card h3 {
  position: relative;
  z-index: 1;

  max-width: 260px;
  margin: 28px 0 0;

  color: #061632;
  font-size: 21px;
  font-weight: 750;
  line-height: 1.35;

  transition: color 0.3s ease;
}

/* DECORATIVE ARROW */

.sd-card-arrow {
  position: absolute;
  right: 25px;
  bottom: 22px;

  color: #bcc3ce;
  font-size: 24px;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

/* CARD HOVER */

.sd-capability-card:hover {
  transform: translateY(-7px);

  background: #061632;
  border-color: #061632;

  box-shadow: 0 20px 42px rgba(6,22,50,0.15);
}

.sd-capability-card:hover h3 {
  color: #ffffff;
}

.sd-capability-card:hover .sd-capability-number,
.sd-capability-card:hover .sd-card-arrow {
  color: #c71930;
}

.sd-capability-card:hover .sd-card-arrow {
  transform: translate(4px, -4px);
}

/* =========================================
   04 - CORPORATE CONTACT SECTION
========================================= */

.sd-contact-section {
  position: relative;
  overflow: hidden;

  padding: 95px 0;

  background: #ffffff;
  border-top: 1px solid #e2e7ee;
  border-bottom: 1px solid #e2e7ee;

  color: #061632;
}
/* DECORATIVE CIRCLE */

.sd-contact-section::after {
  display: none;
}
.sd-contact-inner {
  position: relative;
  z-index: 1;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.sd-contact-inner > div {
  min-width: 0;
}

.sd-contact-eyebrow {
  display: block;

  margin-bottom: 16px;

  color: #c71930;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
}

.sd-contact-inner h2 {
  max-width: 730px;
  margin: 0;

  color: #061632;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1.3px;
}
.sd-contact-inner h2 span {
  display: block;
  color: #c71930;
}
.sd-contact-inner p {
  max-width: 620px;
  margin-top: 20px;

  color: #49566a;
  font-size: 15px;
  line-height: 1.85;
}
/* CONTACT BUTTON */

.sd-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;

  flex-shrink: 0;

  min-height: 58px;
  padding: 16px 27px;

  border-radius: 9px;

  background: #061632;
  color: #ffffff;

  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.sd-contact-btn:hover {
  background: #c71930;
  color: #ffffff;
  transform: translateY(-4px);
}
/* =========================================
   05 - BACK NAVIGATION
========================================= */

.sd-back-navigation {
  padding: 26px 0;

  border-bottom: 1px solid #e2e7ee;
  background: #ffffff;
}

.sd-back-navigation a {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  color: #061632;
  font-size: 13px;
  font-weight: 700;

  transition:
    color 0.25s ease,
    gap 0.25s ease;
}

.sd-back-navigation a:hover {
  color: #c71930;
  gap: 18px;
}

/* =========================================
   TABLET RESPONSIVENESS
========================================= */

@media (max-width: 1000px) {

  .sd-hero {
    min-height: 620px;
  }

  .sd-intro-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .sd-capabilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sd-contact-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 30px;
  }
}

/* =========================================
   MOBILE RESPONSIVENESS
========================================= */

@media (max-width: 650px) {

  /* HERO */

  .sd-hero {
    min-height: 620px;
    min-height: 78svh;
  }

  .sd-hero-image img {
    object-position: 56% center;
  }

  .sd-hero-overlay {
    background:
      linear-gradient(
        0deg,
        rgba(6,22,50,0.96) 0%,
        rgba(6,22,50,0.77) 55%,
        rgba(6,22,50,0.3) 100%
      );
  }

  .sd-hero-content {
    padding-top: 85px;
    padding-bottom: 100px;
  }

  .sd-breadcrumb {
    gap: 9px;
    margin-bottom: 25px;
    font-size: 9px;
    letter-spacing: 1px;
  }

  .sd-hero-eyebrow {
    font-size: 10px;
    letter-spacing: 1.8px;
  }

  .sd-hero h1 {
    font-size: clamp(42px, 11vw, 65px);
    line-height: 1.1;
    letter-spacing: -1.5px;
    overflow-wrap: anywhere;
  }

  .sd-hero-content > p {
    margin-top: 19px;
    font-size: 14px;
    line-height: 1.75;
  }

  .sd-hero-actions {
    gap: 10px;
    margin-top: 25px;
  }

  .sd-primary-btn,
  .sd-secondary-btn {
    min-height: 49px;
    padding: 13px 15px;
    font-size: 12px;
    gap: 10px;
  }

  .sd-hero-bottom {
    padding: 15px 5%;
    font-size: 8px;
    letter-spacing: 1px;
  }

  /* INTRODUCTION */

  .sd-introduction {
    padding: 65px 0;
  }

  .sd-intro-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sd-intro-heading h2 {
    font-size: 35px;
  }

  .sd-intro-content > p {
    font-size: 14px;
    line-height: 1.85;
  }

  .sd-intro-highlight {
    padding: 22px;
  }

  .sd-intro-highlight p {
    font-size: 15px;
  }

  /* CAPABILITIES */

  .sd-capabilities {
    padding: 65px 0 75px;
  }

  .sd-section-heading {
    margin-bottom: 32px;
  }

  .sd-section-heading h2 {
    font-size: 32px;
  }

  .sd-capabilities-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .sd-capability-card {
    min-height: 155px;
    padding: 23px;
  }

  .sd-capability-card h3 {
    margin-top: 23px;
    font-size: 19px;
  }

  /* CONTACT */

  .sd-contact-section {
    padding: 65px 0;
  }

  .sd-contact-inner {
    gap: 28px;
  }

  .sd-contact-inner h2 {
    font-size: 32px;
  }

  .sd-contact-inner p {
    font-size: 14px;
  }

  .sd-contact-btn {
    width: 100%;
    justify-content: space-between;
    padding: 17px 20px;
  }

  /* BACK NAVIGATION */

  .sd-back-navigation {
    padding: 22px 0;
  }
}

/* =========================================
   ACCESSIBILITY
========================================= */

.service-detail-page .sd-primary-btn:focus-visible,
.service-detail-page .sd-secondary-btn:focus-visible,
.service-detail-page .sd-contact-btn:focus-visible,
.service-detail-page .sd-back-navigation a:focus-visible {
  outline: 3px solid #c71930;
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

  .sd-hero-image img,
  .sd-breadcrumb,
  .sd-hero-eyebrow,
  .sd-hero h1,
  .sd-hero-content > p,
  .sd-hero-actions {
    animation: none !important;
  }

  .sd-capability-card,
  .sd-capability-card::before,
  .sd-card-arrow,
  .sd-primary-btn,
  .sd-secondary-btn,
  .sd-contact-btn {
    transition: none !important;
  }
}
