
/* =========================================
   MAS AVIATION - CORPORATE AVIATION THEME
========================================= */

:root {
  --navy: #061632;
  --navy-light: #17365d;
  --red: #c71930;
  --silver: #bcc3ce;
  --white: #ffffff;
  --light: #f4f5f7;
  --text: #49566a;
  --border: #e2e7ee;
  --shadow: 0 18px 50px rgba(6, 22, 50, 0.07);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--white);
  color: var(--navy);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.container {
  width: min(1180px, 90%);
  margin-inline: auto;
}

.section {
  padding: 110px 0;
}

::selection {
  color: white;
  background: var(--red);
}


/* =========================================
   HEADER
========================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 88px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 30px rgba(6, 22, 50, 0.07);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.brand img {
  width: 155px;
  max-height: 67px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

.nav-link,
.nav-pending {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-link {
  position: relative;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-pending {
  color: #8590a0;
  cursor: default;
}

.menu-toggle {
  display: none;
}


/* =========================================
   HERO
========================================= */

.hero {
  position: relative;
  min-height: min(720px, 85vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #f5f7fa;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.97) 0%,
    rgba(255,255,255,0.90) 27%,
    rgba(255,255,255,0.38) 53%,
    rgba(255,255,255,0.02) 84%
  );
}

.hero-content {
  position: relative;
  padding: 110px 0;
}

.hero-text {
  max-width: 650px;
}

.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 28px;
}

.hero h1 {
  max-width: 680px;
  font-size: clamp(44px, 5.7vw, 82px);
  line-height: 1.07;
  letter-spacing: -2.8px;
  font-weight: 800;
  color: var(--navy);
}

.hero h1 span {
  display: block;
  color: var(--red);
}

.hero-button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 38px;
  padding: 16px 24px;
  color: white;
  background: var(--navy);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  transition:
    background 0.3s ease,
    transform 0.3s ease;
}

.hero-button span {
  font-size: 21px;
}

.hero-button:hover {
  background: var(--red);
  transform: translateY(-3px);
}

.hero-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--navy),
    var(--red),
    transparent
  );
}


/* =========================================
   SECTION HEADINGS
========================================= */

.section-label {
  display: block;
  font-size: 11px;
  letter-spacing: 2.7px;
  font-weight: 800;
  color: var(--red);
  margin-bottom: 17px;
}

.section-heading h2,
.purpose-card h2 {
  font-size: clamp(35px, 4vw, 53px);
  letter-spacing: -1.8px;
  line-height: 1.15;
  font-weight: 800;
}

.section-heading h2 span,
.purpose-card h2 span {
  color: var(--red);
}

.red-line {
  width: 55px;
  height: 3px;
  background: var(--red);
  margin-top: 23px;
}

.centered {
  text-align: center;
  margin-bottom: 60px;
}

.centered .red-line {
  margin-inline: auto;
}


/* =========================================
   ABOUT US
========================================= */

.about-section {
  background: var(--white);
}

.about-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 80px;
  align-items: start;
}

.about-content {
  max-width: 800px;
}

.about-content p {
  font-size: 16px;
  line-height: 1.95;
  color: var(--text);
  margin-bottom: 24px;
}

.about-content p strong {
  color: var(--navy);
  font-weight: 750;
}

.about-content .about-highlight {
  border-left: 4px solid var(--red);
  padding: 22px 26px;
  background: var(--light);
  border-radius: 0 8px 8px 0;
  color: var(--navy);
  font-weight: 700;
  margin-top: 34px;
  margin-bottom: 0;
}


/* =========================================
   OUR PORTFOLIO
========================================= */

.portfolio-section {
  background: var(--light);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.portfolio-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 28px 60px rgba(6, 22, 50, 0.12);
  border-color: rgba(199, 25, 48, 0.25);
}

.portfolio-logo {
  height: 230px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 35px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.portfolio-logo img {
  width: 100%;
  max-width: 270px;
  max-height: 165px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-logo img {
  transform: scale(1.06);
}

.portfolio-content {
  padding: 35px;
}

.portfolio-content h3 {
  font-size: 24px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.card-line {
  width: 42px;
  height: 3px;
  background: var(--red);
  margin: 21px 0;
}

.portfolio-content p {
  color: var(--text);
  font-size: 15px;
  line-height: 1.9;
}

.portfolio-content p strong {
  color: var(--navy);
}


/* =========================================
   OUR MISSION AND VISION
========================================= */

.mission-section {
  background: var(--white);
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.purpose-card {
  position: relative;
  padding: 55px 45px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.purpose-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--navy);
}

.purpose-card:nth-child(2)::before {
  background: var(--red);
}

.purpose-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.purpose-number {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 72px;
  font-weight: 800;
  line-height: 1;
  color: #f0f2f6;
  pointer-events: none;
}

.purpose-card .section-label,
.purpose-card h2,
.purpose-card .red-line,
.purpose-card p {
  position: relative;
  z-index: 1;
}

.purpose-card p {
  margin-top: 30px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.95;
}


/* =========================================
   FOOTER
========================================= */

.site-footer {
  background: var(--light);
  border-top: 1px solid var(--border);
  padding: 38px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.footer-inner img {
  width: 130px;
  max-height: 60px;
  object-fit: contain;
}

.footer-inner p {
  color: var(--text);
  font-size: 12px;
}


/* =========================================
   SCROLL REVEAL ANIMATIONS
========================================= */

.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.75s ease,
    transform 0.75s ease;
}

.js .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* =========================================
   TABLET AND MOBILE
========================================= */

@media (max-width: 900px) {

  .about-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .section {
    padding: 80px 0;
  }

  .portfolio-content {
    padding: 28px;
  }

  .purpose-card {
    padding: 45px 32px;
  }
}

@media (max-width: 700px) {

  .site-header {
    height: 75px;
  }

  .brand img {
    width: 125px;
    max-height: 55px;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    border: 0;
    background: none;
    padding: 10px;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: transform 0.3s ease;
  }

  .nav {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 28px 5%;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .hero {
    min-height: 650px;
  }

  .hero-background {
    object-position: 65% center;
  }

  .hero-overlay {
    background: linear-gradient(
      90deg,
      rgba(255,255,255,0.97),
      rgba(255,255,255,0.78)
    );
  }

  .hero-content {
    padding: 90px 0;
  }

  .hero h1 {
    font-size: clamp(43px, 10vw, 62px);
    letter-spacing: -1.7px;
  }

  .eyebrow {
    letter-spacing: 2px;
    font-size: 10px;
  }

  .portfolio-grid,
  .mission-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-logo {
    height: 200px;
  }

  .section-heading h2,
  .purpose-card h2 {
    font-size: 38px;
  }

  .about-content p,
  .purpose-card p {
    font-size: 15px;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================================
   FULL-WIDTH HEADER AND HERO ALIGNMENT
========================================= */

/* Move logo and navigation toward screen edges */
.site-header .header-inner {
  width: auto;
  max-width: none;
  margin-left: clamp(20px, 2vw, 36px);
  margin-right: clamp(20px, 2vw, 36px);
}

/* Move hero heading and button toward left edge */
.hero .hero-content {
  width: auto;
  max-width: none;
  margin-left: clamp(20px, 2vw, 36px);
  margin-right: clamp(20px, 2vw, 36px);
}

/* Keep navigation aligned to extreme right */
.site-header .nav {
  margin-left: auto;
  justify-content: flex-end;
}

/* Maintain clean spacing on mobile */
@media (max-width: 700px) {
  .site-header .header-inner,
  .hero .hero-content {
    margin-left: 20px;
    margin-right: 20px;
  }
}

/* =========================================
   MAS HERO - ANIMATED AVIATION BORDER
========================================= */

.hero-animated-border {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
  border: 1px solid rgba(6, 22, 50, 0.15);
}

.hero-animated-border span {
  position: absolute;
  display: block;
  overflow: hidden;
}

/* Top and bottom tracks */
.border-top,
.border-bottom {
  left: 0;
  width: 100%;
  height: 3px;
}

.border-top {
  top: 0;
}

.border-bottom {
  bottom: 0;
}

/* Left and right tracks */
.border-left,
.border-right {
  top: 0;
  height: 100%;
  width: 3px;
}

.border-left {
  left: 0;
}

.border-right {
  right: 0;
}

/* Moving red highlights */
.hero-animated-border span::after {
  content: "";
  position: absolute;
  display: block;
  opacity: 0;
  background: linear-gradient(
    90deg,
    transparent,
    #c71930,
    #ff5268,
    #c71930,
    transparent
  );
}

/* Horizontal highlight */
.border-top::after,
.border-bottom::after {
  width: 25%;
  height: 100%;
}

/* Vertical highlight */
.border-left::after,
.border-right::after {
  width: 100%;
  height: 25%;
  background: linear-gradient(
    180deg,
    transparent,
    #c71930,
    #ff5268,
    #c71930,
    transparent
  );
}

/* Animate clockwise around hero */
.border-top::after {
  animation: mas-top 12s linear infinite;
}

.border-right::after {
  animation: mas-right 12s linear 3s infinite;
}

.border-bottom::after {
  animation: mas-bottom 12s linear 6s infinite;
}

.border-left::after {
  animation: mas-left 12s linear 9s infinite;
}

/* Top: left to right */
@keyframes mas-top {
  0% {
    transform: translateX(-100%);
    opacity: 1;
  }
  24.9% {
    transform: translateX(400%);
    opacity: 1;
  }
  25%, 100% {
    transform: translateX(400%);
    opacity: 0;
  }
}

/* Right: top to bottom */
@keyframes mas-right {
  0% {
    transform: translateY(-100%);
    opacity: 1;
  }
  24.9% {
    transform: translateY(400%);
    opacity: 1;
  }
  25%, 100% {
    transform: translateY(400%);
    opacity: 0;
  }
}

/* Bottom: right to left */
@keyframes mas-bottom {
  0% {
    transform: translateX(400%);
    opacity: 1;
  }
  24.9% {
    transform: translateX(-100%);
    opacity: 1;
  }
  25%, 100% {
    transform: translateX(-100%);
    opacity: 0;
  }
}

/* Left: bottom to top */
@keyframes mas-left {
  0% {
    transform: translateY(400%);
    opacity: 1;
  }
  24.9% {
    transform: translateY(-100%);
    opacity: 1;
  }
  25%, 100% {
    transform: translateY(-100%);
    opacity: 0;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-animated-border span::after {
    animation: none;
  }
}

/* =========================================
   MAS AVIATION - OUR VALUED CLIENTS
========================================= */

.clients-section {
  padding: 100px 0 110px;
  background: #f4f5f7;
  border-top: 1px solid #e2e7ee;
}

/* SECTION HEADING */

.clients-heading {
  text-align: center;
  margin-bottom: 65px;
}

.clients-heading h2 {
  font-size: clamp(36px, 4vw, 54px);
  font-weight: 800;
  color: #061632;
  letter-spacing: -1.5px;
  line-height: 1.2;
}

.clients-heading h2 span {
  color: #c71930;
}

.clients-heading .red-line {
  margin: 23px auto 0;
}

/* CLIENT LOGOS GRID */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 30px 24px;
  align-items: center;
}

/* First row: four logos */

.client-logo {
  grid-column: span 3;
  min-width: 0;
  min-height: 135px;

  display: flex;
  justify-content: center;
  align-items: center;

  padding: 20px;
  border-radius: 12px;

  transition:
    transform 0.35s ease,
    background 0.35s ease;
}

/* Second row: three logos */

.client-logo:nth-child(n+5) {
  grid-column: span 4;
}

/* LOGO IMAGE */

.client-logo img {
  width: 100%;
  max-width: 245px;
  height: 90px;
  object-fit: contain;

  transition:
    transform 0.35s ease,
    filter 0.35s ease;
}

/* SUBTLE HOVER EFFECT */

.client-logo:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-4px);
}

.client-logo:hover img {
  transform: scale(1.06);
}

/* TABLETS */

@media (max-width: 900px) {

  .clients-section {
    padding: 80px 0;
  }

  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .client-logo,
  .client-logo:nth-child(n+5) {
    grid-column: auto;
  }

  .client-logo:last-child {
    grid-column: 1 / -1;
  }
}

/* MOBILE */

@media (max-width: 600px) {

  .clients-section {
    padding: 65px 0;
  }

  .clients-heading {
    margin-bottom: 40px;
  }

  .clients-heading h2 {
    font-size: 35px;
  }

  .clients-grid {
    gap: 12px;
  }

  .client-logo {
    min-height: 105px;
    padding: 12px;
  }

  .client-logo img {
    height: 70px;
    max-width: 170px;
  }

  .client-logo:last-child {
    grid-column: 1 / -1;
  }
}

/* =========================================
   MAS AVIATION - NEW CORPORATE FOOTER
========================================= */

.site-footer {
  background: #061632;
  border-top: 3px solid #c71930;
  padding: 45px 20px;
}

.site-footer .footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-footer .footer-brand {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  background: #ffffff;
  padding: 14px 24px;
  border-radius: 10px;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.site-footer .footer-brand img {
  width: 150px;
  height: auto;
  max-height: none;
  object-fit: contain;
}

.site-footer .footer-brand:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(199, 25, 48, 0.2);
}

@media (max-width: 600px) {
  .site-footer {
    padding: 35px 15px;
  }

  .site-footer .footer-brand img {
    width: 125px;
  }
}

/* =========================================
   MAS AVIATION - HOMEPAGE SOCIAL FOOTER
========================================= */

/* Center logo and social icons vertically */
.home-footer .footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

/* Social links container */
.home-social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

/* Individual social icons */
.home-social-links .social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 46px;
  height: 46px;

  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);

  color: #ffffff;
  background: rgba(255,255,255,0.06);

  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Hover effect */
.home-social-links .social-icon:hover {
  background: #c71930;
  border-color: #c71930;

  transform: translateY(-5px);

  box-shadow:
    0 8px 25px rgba(199,25,48,0.3);
}

.home-social-links .social-icon:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}

/* Responsive mobile styling */
@media (max-width: 600px) {

  .home-footer .footer-inner {
    gap: 18px;
  }

  .home-social-links {
    gap: 15px;
  }

  .home-social-links .social-icon {
    width: 43px;
    height: 43px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-social-links .social-icon {
    transition: none;
  }
}
