/* ============================================
   Quality Air Services — Main Stylesheet
   Palette: Patriotic red/white/blue + black
   ============================================ */

:root {
  --red: #B22234;
  --red-dark: #8B1A28;
  --blue: #002868;
  --blue-dark: #001A45;
  --blue-light: #1A4B8C;
  --white: #FFFFFF;
  --off-white: #F5F5F5;
  --light-gray: #E8E8E8;
  --gray: #666666;
  --dark-gray: #333333;
  --black: #1A1A1A;
  --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --max-width: 1100px;
  --header-height: 70px;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--dark-gray);
  line-height: 1.6;
  background: var(--white);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
}

/* ---- Container ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  line-height: 1.2;
}

.site-logo span {
  display: block;
  font-size: 0.7rem;
  color: var(--gray);
  font-weight: 400;
  letter-spacing: 0.5px;
}

.site-logo:hover {
  text-decoration: none;
}

/* ---- Navigation ---- */
.main-nav ul {
  display: flex;
  gap: 8px;
}

.main-nav a {
  color: var(--dark-gray);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--dark-gray);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  color: #FFFFFF;
  padding: 80px 20px;
  text-align: center;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 25s infinite;
}

.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 5s; }
.hero-slide:nth-child(3) { animation-delay: 10s; }
.hero-slide:nth-child(4) { animation-delay: 15s; }
.hero-slide:nth-child(5) { animation-delay: 20s; }

@keyframes heroFade {
  0%   { opacity: 0; }
  4%   { opacity: 1; }
  20%  { opacity: 1; }
  24%  { opacity: 0; }
  100% { opacity: 0; }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 26, 69, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 auto 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 16px;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Inner Page Hero ---- */
.page-hero {
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 360px;
  padding: 60px 20px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}

.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--blue);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  text-decoration: none;
}

/* ---- Sections ---- */
section {
  padding: 60px 0;
}

section:nth-child(even) {
  background: var(--off-white);
}

.section-title {
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 20px;
  text-align: center;
}

.section-intro {
  max-width: 700px;
  margin: 0 auto 32px;
  text-align: center;
  color: var(--gray);
  font-size: 1.05rem;
}

/* ---- Trust Bar ---- */
.trust-bar {
  background: var(--red);
  padding: 16px 0;
}

.trust-bar ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 32px;
}

.trust-bar li {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---- Services Grid ---- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-top: 3px solid var(--red);
  padding: 28px 24px;
  border-radius: 4px;
}

.service-card h3 {
  font-size: 1.1rem;
  color: var(--blue);
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ---- Split Section ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.split-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  padding: 36px 28px;
  border-radius: 4px;
  text-align: center;
  overflow: hidden;
}

.split-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 4px 4px 0 0;
  margin: -36px -28px 20px -28px;
  width: calc(100% + 56px);
}

.split-card h3 {
  font-size: 1.3rem;
  color: var(--blue);
  margin-bottom: 12px;
}

.split-card p {
  color: var(--gray);
  margin-bottom: 20px;
}

/* ---- Work Gallery ---- */
.work-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.gallery-item {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

/* ---- Emergency Banner ---- */
.emergency-banner {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 48px 20px;
}

.emergency-banner h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.emergency-banner p {
  max-width: 650px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.9);
}

.emergency-banner .btn-secondary {
  border-color: var(--white);
}

/* ---- Why Choose Us / Check List ---- */
.check-list {
  max-width: 600px;
  margin: 0 auto;
}

.check-list li {
  padding: 10px 0 10px 32px;
  position: relative;
  font-size: 1.05rem;
  color: var(--dark-gray);
}

.check-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ---- Closing CTA ---- */
.closing-cta {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 48px 20px;
}

.closing-cta h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.closing-cta p {
  max-width: 600px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.9);
}

.closing-cta .hero-ctas {
  margin-top: 20px;
}

/* ---- About / Content Sections ---- */
.content-section {
  max-width: 750px;
  margin: 0 auto;
}

.content-section p {
  margin-bottom: 16px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---- Values Grid ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.value-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-left: 4px solid var(--red);
  border-radius: 4px;
}

.value-card h3 {
  color: var(--blue);
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.value-card p {
  color: var(--gray);
  font-size: 0.95rem;
}

/* ---- Services List (inner pages) ---- */
.services-list {
  max-width: 750px;
  margin: 0 auto;
}

.services-list .service-item {
  padding: 28px 0;
  border-bottom: 1px solid var(--light-gray);
}

.services-list .service-item:last-child {
  border-bottom: none;
}

.services-list h3 {
  font-size: 1.15rem;
  color: var(--blue);
  margin-bottom: 8px;
}

.services-list p {
  color: var(--gray);
  font-size: 1rem;
}

/* ---- Emergency List ---- */
.emergency-list {
  max-width: 650px;
  margin: 0 auto;
}

.emergency-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 1.05rem;
}

.emergency-list li::before {
  content: "\26A0";
  position: absolute;
  left: 0;
  color: var(--red);
}

/* ---- Steps ---- */
.steps {
  max-width: 650px;
  margin: 0 auto;
  counter-reset: step;
}

.step {
  padding: 20px 0 20px 56px;
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 18px;
  width: 36px;
  height: 36px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.step p {
  font-size: 1.05rem;
}

/* ---- Contact Details ---- */
.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 800px;
  margin: 0 auto;
}

.contact-info h3 {
  color: var(--blue);
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 1rem;
}

.contact-info a {
  color: var(--blue);
  font-weight: 500;
}

.contact-form-placeholder {
  background: var(--off-white);
  border: 2px dashed var(--light-gray);
  border-radius: 4px;
  padding: 32px;
  text-align: center;
}

.contact-form-placeholder h3 {
  color: var(--blue);
  margin-bottom: 12px;
}

.contact-form-placeholder p {
  color: var(--gray);
  margin-bottom: 16px;
}

/* ---- Footer ---- */
.site-footer {
  background: var(--blue-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 40px 0 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
}

.footer-col h4 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1rem;
}

.footer-col p,
.footer-col a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-col a:hover {
  color: var(--white);
}

.footer-col ul li {
  margin-bottom: 4px;
}

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 32px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ---- Phone link ---- */
.phone-link {
  font-weight: 700;
  color: var(--red);
  font-size: 1.1rem;
}

.phone-link:hover {
  color: var(--red-dark);
}

/* ---- Header phone/CTA ---- */
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  font-weight: 700;
  color: var(--red);
  font-size: 1rem;
  white-space: nowrap;
}

.header-phone:hover {
  text-decoration: none;
  color: var(--red-dark);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 3px solid var(--red);
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .main-nav a {
    display: block;
    padding: 10px 12px;
  }

  .hero {
    min-height: 400px;
    padding: 60px 20px;
  }

  .hero-badge {
    width: 100px;
    height: 100px;
  }

  .hero h1 {
    font-size: 1.7rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .work-gallery {
    grid-template-columns: 1fr;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .header-cta {
    display: none;
  }

  .trust-bar li {
    font-size: 0.8rem;
  }

  .section-title {
    font-size: 1.35rem;
  }
}
