/* =========================================
   Precision Aviation – Main Stylesheet
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ---- Custom Properties ---- */
:root {
  --nav-bg:     #000000;
  --nav-text:   #ffffff;
  --nav-hover:  #f2d75d;
  --primary:    #248CC8;
  --primary-dk: #1a6fa0;
  --footer-bg:  #000000;
  --white:      #ffffff;
  --off-white:  #f5f5f5;
  --bg:         #000000;
  --bg-alt:     #111111;
  --text:       #e0e0e0;
  --text-muted: #999999;
  --border:     #2d2d2d;
  --max-w:      1200px;
  --nav-h:      70px;
  --radius:     3px;
  --shadow:     0 2px 16px rgba(0,0,0,.6);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}
img { max-width: 100%; height: auto; display: block; }
a   { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dk); }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; }
ul  { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ---- Layout ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===================================
   HEADER / NAVIGATION
   =================================== */

.site-header {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.logo-link { display: flex; align-items: center; }
.logo-link img { height: 52px; width: auto; }

.main-nav ul { display: flex; }

.main-nav a {
  display: block;
  color: var(--nav-text);
  font-size: 14px;
  font-weight: 600;
  padding: 26px 14px;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: color .2s;
}

.main-nav a:hover,
.main-nav a.active { color: var(--nav-hover); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 20px;
  background: none;
  border: none;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 3px;
  background: var(--nav-text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8.5px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8.5px) rotate(-45deg); }

/* ===================================
   HERO SLIDER  (home page only)
   =================================== */

.hero-slider {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #1a2a3a;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.slide.active { opacity: 1; }

/* Full-bleed background image */
.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Subtle gradient overlay — lightens image, darkens only left for text legibility */
.slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.35) 0%, rgba(0,0,0,.10) 55%, rgba(0,0,0,0) 100%);
  z-index: 1;
}

/* Caption (used in HTML) */
.slide-caption,
.slide-body {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding: 0 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.slide-caption h1,
.slide-body h1 {
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,.6);
  line-height: 1.1;
  margin-bottom: .75rem;
}

.slide-caption p,
.slide-body p {
  font-size: 1.05rem;
  opacity: .9;
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

/* Slide button (used in HTML) and hero CTA */
.slide-btn,
.hero-cta {
  display: none;
  background: var(--primary);
  color: var(--white);
  padding: 12px 32px;
  font-size: .9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: var(--radius);
  transition: background .2s, transform .2s;
}
.slide-btn:hover,
.hero-cta:hover {
  background: var(--primary-dk);
  transform: translateY(-2px);
  color: var(--white);
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0,0,0,.35);
  border: none;
  color: var(--white);
  width: 44px;
  height: 56px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.slider-btn:hover { background: rgba(0,0,0,.7); }
.slider-btn.slider-prev,
.slider-prev { left: 0; }
.slider-btn.slider-next,
.slider-next { right: 0; }

.slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.45);
  padding: 0;
  cursor: pointer;
  transition: background .2s;
}
.dot.active { background: var(--white); }

/* ===================================
   PAGE BANNER  (inner pages)
   =================================== */

.page-banner {
  position: relative;
  height: 460px;
  background:
    linear-gradient(rgba(0,0,0,.52), rgba(0,0,0,.52)),
    url('../assets/uploads/2023/06/Banner-3.jpg') center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}

.page-banner h1 {
  font-size: 2.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* ===================================
   GENERIC SECTION WRAPPERS
   =================================== */

.section     { padding: 64px 0; background: var(--bg); }
.section-alt { padding: 64px 0; background: var(--bg-alt); }

.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .75rem;
}
.section-head p {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Prose / rich text body */
.prose p {
  font-size: 1rem;
  /* color: var(--text-muted); */
  margin-bottom: 1.25rem;
  line-height: 1.8;
}
.prose h2 {
  font-size: 1.65rem;
  text-transform: uppercase;
  margin: 2rem 0 .75rem;
  color: var(--text);
}
.prose h3 {
  font-size: 1.2rem;
  text-transform: uppercase;
  color: var(--primary);
  margin: 1.5rem 0 .5rem;
}

/* ===================================
   HOME – INTRO BAND
   =================================== */

.intro-band {
  padding: 64px 0;
  background: var(--bg);
  text-align: center;
}
.intro-band h2 {
  font-size: 1.9rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.intro-band p {
  max-width: 880px;
  margin: 0 auto 1rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}

/* ===================================
   SERVICE CARDS  (home page)
   =================================== */

.services-band { padding: 64px 0; background: var(--bg-alt); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.svc-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.svc-card .svc-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.svc-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: .75rem;
}
.svc-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.svc-card .btn-sm,
.svc-link {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 8px 20px;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: background .2s;
}
.svc-card .btn-sm:hover,
.svc-link:hover { background: var(--primary-dk); color: var(--white); }

/* ===================================
   CTA BAND
   =================================== */

.cta-band {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 56px 24px;
}
.cta-band h2 { font-size: 2rem; text-transform: uppercase; margin-bottom: .5rem; }
.cta-band p  { font-size: 1.05rem; opacity: .9; margin-bottom: 1.5rem; }

.cta-phone {
  display: inline-block;
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 700;
  border: 2px solid rgba(255,255,255,.8);
  padding: 10px 32px;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  transition: background .2s;
}
.cta-phone:hover { background: rgba(255,255,255,.15); color: var(--white); }
.cta-sub {
  display: block;
  font-size: .9rem;
  opacity: .85;
  margin-top: 8px;
}
.cta-sub a { color: inherit; text-decoration: underline; }

.btn-outline {
  display: inline-block;
  border: 2px solid rgba(255,255,255,.8);
  color: var(--white);
  padding: 8px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s;
}
.btn-outline:hover { background: rgba(255,255,255,.15); color: var(--white); }

/* ===================================
   AIRCRAFT HEADING (charter page)
   =================================== */

.aircraft-heading {
  text-align: center;
  text-transform: uppercase;
  font-size: 1.5rem;
  letter-spacing: .05em;
  margin-bottom: 2rem;
  color: var(--white);
}

/* ===================================
   TWO-COLUMN LAYOUT
   =================================== */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.two-col img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ===================================
   CHECK LIST
   =================================== */

.check-list { margin: 1rem 0; }
.check-list li {
  padding: .45rem 0 .45rem 1.75rem;
  position: relative;
  color: var(--text-muted);
  font-size: .975rem;
}
.check-list li::before {
  content: '\f072';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: .85rem;
}

/* ===================================
   CARD GRID
   =================================== */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 2rem;
}
.info-card {
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.info-card h3 {
  font-size: 1rem;
  text-transform: uppercase;
  margin-bottom: .6rem;
}
.info-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================================
   AIRCRAFT GALLERY
   =================================== */

.aircraft-section { padding: 48px 0; border-top: 1px solid var(--border); }
.aircraft-section:first-of-type { border-top: none; }

.aircraft-meta h3 {
  font-size: 1.5rem;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.aircraft-meta p {
  font-size: .975rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: .75rem;
}

.aircraft-photos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 1.5rem;
}
.aircraft-photos img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
}

/* ===================================
   DOCUMENT LINKS
   =================================== */

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 1.25rem;
}
.doc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 16px;
  color: var(--text);
  font-size: .875rem;
  font-weight: 600;
  transition: all .2s;
}
.doc-link i { color: var(--primary); font-size: 1.1rem; }
.doc-link:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.doc-link:hover i { color: var(--white); }

/* ===================================
   FLIGHTS TABLE
   =================================== */

.table-wrap { overflow-x: auto; margin-top: 1.5rem; }

table.flights {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
table.flights th {
  background: #1a1a1a;
  color: var(--white);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  text-transform: uppercase;
  font-size: .8rem;
  letter-spacing: .5px;
}
table.flights td {
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
table.flights tr:hover td { background: #1a1a1a; }

/* ===================================
   CONTACT PAGE
   =================================== */

.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-details h2 {
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.cinfo {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: .9rem;
  font-size: .95rem;
  color: var(--text-muted);
}
.cinfo i { color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.cinfo a { color: var(--text); font-weight: 600; }
.cinfo a:hover { color: var(--primary); }
.cinfo-divider { border: none; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* Contact form box */
.cform-box {
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.cform-box h2 {
  font-size: 1.35rem;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.frm_form_fields .form-row { margin-bottom: 1.1rem; }
.frm_form_fields .form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
label.frm_primary_label {
  display: block;
  font-weight: 600;
  font-size: .875rem;
  margin-bottom: 5px;
}
.frm_required { color: #c0392b; }

.frm_form_fields input[type="text"],
.frm_form_fields input[type="email"],
.frm_form_fields textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  background: #0d0d0d;
  transition: border-color .2s, box-shadow .2s;
}
.frm_form_fields input:focus,
.frm_form_fields textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(36,140,200,.15);
}
.frm_form_fields textarea { resize: vertical; min-height: 110px; }

.frm_submit { margin-top: 1.25rem; }
.frm_submit button {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 11px 30px;
  font-size: .95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  border-radius: var(--radius);
  transition: background .2s;
}
.frm_submit button:hover { background: var(--primary-dk); }
.frm_submit button:disabled { opacity: .6; cursor: not-allowed; }

.frm_response {
  padding: 9px 13px;
  border-radius: var(--radius);
  font-size: .9rem;
  margin-bottom: 1rem;
  min-height: 1px;
}
.frm_response:empty { display: none; }
.frm_loading { background: #0d2233; color: #62b8f0; border: 1px solid #1a6fa0; }
.frm_success { background: #0d2211; color: #5cb85c; border: 1px solid #2d6a2d; }
.frm_error   { background: #2a0d0d; color: #e07070; border: 1px solid #6a2d2d; }

.frm_sent {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: #0d2211;
  border: 1px solid #2d6a2d;
  border-radius: var(--radius);
}
.frm_sent_icon {
  font-size: 2.5rem;
  color: #5cb85c;
  line-height: 1;
  margin-bottom: .75rem;
}
.frm_sent_msg {
  font-size: 1.1rem;
  font-weight: 600;
  color: #5cb85c;
  margin: 0 0 .4rem;
}
.frm_sent_sub {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
}

.frm_description { font-size: .76rem; color: var(--text-muted); margin-top: 2px; }
.frm_verify { display: none !important; }

.contact-map-row { margin-top: 3rem; }
.contact-map-row h2 {
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  text-align: center;
}

/* ===================================
   FOOTER
   =================================== */

.site-footer {
  background: var(--footer-bg);
  color: rgba(255,255,255,.8);
  padding: 52px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 160px 1fr 260px;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-col h4 {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.4);
  margin-bottom: 14px;
  font-weight: 700;
}

.footer-nav-list a {
  display: block;
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  padding: 4px 0;
  transition: color .2s;
}
.footer-nav-list a:hover { color: var(--nav-hover); }

.footer-contact-list { font-size: .875rem; }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-contact-list i { color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.footer-contact-list a { color: rgba(255,255,255,.8); transition: color .2s; }
.footer-contact-list a:hover { color: var(--nav-hover); }

.footer-col iframe { border: none; border-radius: var(--radius); width: 100%; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.35);
}

/* ===================================
   BACK TO TOP
   =================================== */

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 900;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--primary-dk); }

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 1024px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .aircraft-photos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:last-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  /* Mobile nav */
  .hamburger { display: flex; }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--nav-bg);
    border-top: 1px solid rgba(255,255,255,.1);
    z-index: 999;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a {
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-size: 14px;
  }

  /* Slider */
  .hero-slider { height: 360px; }
  .slide-caption h1,
  .slide-body h1 { font-size: 1.75rem; }
  .slide-caption,
  .slide-body { padding: 0 28px; }

  /* Page banner */
  .page-banner { height: 180px; }
  .page-banner h1 { font-size: 1.7rem; }

  /* Sections */
  .section, .section-alt { padding: 44px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 1.5rem; }

  /* Grids → 1 col */
  .two-col,
  .contact-wrap,
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid .footer-col:last-child { grid-column: auto; }

  .services-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .aircraft-photos { grid-template-columns: 1fr 1fr; }
  .frm_form_fields .form-row-half { grid-template-columns: 1fr; }
  .cta-band h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .doc-links { flex-direction: column; }
  .cta-phone { font-size: 1.2rem; }
}
