/* ============================================================
   Aero InsightX — Shared Styles
   Light corporate theme. Navy #0A1E3C / Orange #FF6A28.
   Headings: Manrope. Body: Inter. No thin text anywhere.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --navy:#0A1E3C;
  --navy-deep:#071630;
  --navy-soft:#12294E;
  --orange:#FF6A28;
  --orange-hover:#F2570F;
  --orange-deep:#D24E08;   /* small orange text on white (contrast-safe) */
  --bg:#FFFFFF;
  --bg-alt:#F3F5F8;
  --ink:#152238;
  --body:#3A4657;
  --muted:#5B6A7E;
  --border:#C9D2DD;
  --border-dark:#26406B;

  --font-head:'Manrope','Segoe UI',Arial,sans-serif;
  --font-body:'Inter','Segoe UI',Arial,sans-serif;

  /* Fluid side padding: content reaches toward the edges at every width */
  --pad:clamp(20px, 4vw, 72px);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  font-size:16px;
  line-height:1.65;
  color:var(--body);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
img,svg{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{ font-family:var(--font-head); color:var(--ink); margin:0; font-weight:800; letter-spacing:-0.01em; }
p{ margin:0; }
button{ font-family:inherit; }

:focus-visible{ outline:3px solid var(--orange); outline-offset:2px; }

/* Content wrapper: fluid, generous, near-edge on every screen */
.wrap{
  width:100%;
  max-width:1720px;
  margin-inline:auto;
  padding-inline:var(--pad);
}

/* Small section label */
.label{
  font-family:var(--font-head);
  font-weight:700;
  font-size:13px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--orange-deep);
}
.on-dark .label, .section-dark .label{ color:var(--orange); }

/* ============================================================
   Header — logo hard left, nav hard right, full width
   ============================================================ */
.site-header{
  position:sticky; top:0; z-index:200;
  background:var(--bg);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  min-height:72px;
  padding-inline:var(--pad);
}
.logo{
  font-family:var(--font-head);
  font-weight:800;
  font-size:22px;
  letter-spacing:-0.01em;
  color:var(--navy);
  white-space:nowrap;
}
.logo span{ color:var(--orange); }

.main-nav{ display:flex; align-items:center; gap:36px; }
.main-nav ul{ display:flex; gap:32px; }
.main-nav ul a{
  font-weight:600;
  font-size:15.5px;
  color:var(--navy);
  padding:8px 2px;
  border-bottom:3px solid transparent;
  transition:color .15s ease, border-color .15s ease;
}
.main-nav ul a:hover{ color:var(--orange-deep); }
.main-nav ul a.active{ border-bottom-color:var(--orange); }

/* ============================================================
   Buttons — equal padding, visible borders, big touch targets
   ============================================================ */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-family:var(--font-head);
  font-weight:700;
  font-size:15.5px;
  padding:13px 28px;
  min-height:50px;
  border-radius:5px;
  border:2px solid transparent;
  cursor:pointer;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
  white-space:nowrap;
}
.btn .arrow{ font-weight:700; }
.btn-primary{
  background:var(--orange);
  border-color:var(--orange-hover);
  color:#FFFFFF;
}
.btn-primary:hover{ background:var(--orange-hover); }
.btn-outline{                 /* on light backgrounds */
  background:#FFFFFF;
  border-color:var(--navy);
  color:var(--navy);
}
.btn-outline:hover{ background:var(--navy); color:#FFFFFF; }
.btn-outline-light{           /* on dark backgrounds */
  background:transparent;
  border-color:#FFFFFF;
  color:#FFFFFF;
}
.btn-outline-light:hover{ background:#FFFFFF; color:var(--navy); }

/* Mobile nav */
.nav-toggle{
  display:none;
  width:48px; height:48px;
  background:none; border:2px solid var(--border); border-radius:5px;
  cursor:pointer; position:relative;
}
.nav-toggle span{
  position:absolute; left:12px; right:12px; height:2.5px; border-radius:2px;
  background:var(--navy);
  transition:transform .2s ease;
}
.nav-toggle span:nth-child(1){ top:17px; }
.nav-toggle span:nth-child(2){ top:26px; }
.nav-toggle.open span:nth-child(1){ transform:translateY(4.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ transform:translateY(-4.5px) rotate(-45deg); }

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero{
  background:var(--navy);
  color:#FFFFFF;
  padding:clamp(56px,7vw,96px) 0;
  border-bottom:4px solid var(--orange);
}
.page-hero h1{
  color:#FFFFFF;
  font-size:clamp(32px,4vw,52px);
  line-height:1.12;
  margin:14px 0 18px;
  max-width:900px;
}
.page-hero .lede{
  font-size:clamp(16px,1.4vw,18.5px);
  line-height:1.7;
  color:rgba(255,255,255,0.82);
  max-width:720px;
}

/* ============================================================
   Sections
   ============================================================ */
section{ padding:clamp(56px,7vw,96px) 0; }
.section-alt{ background:var(--bg-alt); }
.section-dark{ background:var(--navy); }
.section-dark h2, .section-dark h3{ color:#FFFFFF; }
.section-dark p{ color:rgba(255,255,255,0.8); }

.section-head{ max-width:820px; margin-bottom:clamp(32px,4vw,52px); }
.section-head h2{
  font-size:clamp(26px,2.8vw,38px);
  line-height:1.18;
  margin-top:12px;
}

.grid-2{ display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(20px,2.5vw,36px); }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(20px,2.5vw,36px); }

.card{
  background:#FFFFFF;
  border:1.5px solid var(--border);
  border-radius:6px;
  padding:clamp(24px,2.5vw,36px);
}
.card h3{ font-size:20px; margin-bottom:12px; }
.card p{ font-size:15.5px; line-height:1.7; }
.card .label{ display:block; margin-bottom:12px; }

.section-dark .card{
  background:var(--navy-soft);
  border-color:var(--border-dark);
}

/* Stats */
.stats-row{ display:grid; grid-template-columns:repeat(3,1fr); gap:clamp(20px,2.5vw,36px); }
.stat{
  border:1.5px solid var(--border);
  border-radius:6px;
  background:#FFFFFF;
  padding:26px 28px;
}
.stat h3{ font-size:clamp(30px,3vw,40px); color:var(--navy); }
.stat p{ font-size:15px; font-weight:500; margin-top:6px; }

/* Offices */
.office-grid{ display:grid; grid-template-columns:repeat(5,1fr); gap:clamp(14px,1.6vw,24px); }
.office-card{
  border:1.5px solid var(--border);
  border-radius:6px;
  background:#FFFFFF;
  padding:22px 24px;
}
.office-card h3{ font-size:18px; margin-bottom:4px; }
.office-card p{ font-size:14px; font-weight:500; color:var(--muted); }

/* Team */
.team-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:clamp(20px,2.5vw,36px); }
.team-card{
  background:#FFFFFF;
  border:1.5px solid var(--border);
  border-radius:6px;
  padding:clamp(26px,2.5vw,38px);
}
.team-card .role{
  display:block;
  font-family:var(--font-head);
  font-weight:700;
  font-size:13px;
  letter-spacing:0.1em;
  text-transform:uppercase;
  color:var(--orange-deep);
  margin-bottom:4px;
}
.team-card h3{ font-size:22px; margin-bottom:12px; }
.team-card p{ font-size:15.5px; line-height:1.75; }

/* Asset blocks (Aircraft / Engines pages) */
.asset-block{
  display:grid;
  grid-template-columns:minmax(260px,0.8fr) 1.2fr;
  gap:clamp(24px,3.5vw,56px);
  align-items:stretch; /* panel now matches the height of the text/table column, so it never falls short of it */
  padding:clamp(36px,4.5vw,56px) 0;
  border-bottom:1.5px solid var(--border);
}
.asset-block:first-of-type{ padding-top:0; }
.asset-block:last-of-type{ border-bottom:none; padding-bottom:0; }

/* Asset panel: a static photo behind a translucent navy "window", same
   treatment as the home page hero (.home-hero-img / .home-overlay). If an
   image is missing, onerror hides the <img> and the plain navy background
   below shows on its own — nothing looks broken either way. */
.asset-panel{
  position:relative;
  overflow:hidden;
  background:var(--navy);
  border-radius:6px;
  padding:clamp(28px,3vw,44px);
  min-height:220px;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:8px;
}
.asset-panel-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
}
.asset-panel-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(160deg, rgba(7,22,48,0.85) 25%, rgba(7,22,48,0.55) 100%);
}
.asset-panel .panel-type{
  position:relative;
  z-index:2;
  font-family:var(--font-head);
  font-weight:700;
  font-size:13px;
  letter-spacing:0.12em;
  text-transform:uppercase;
  color:var(--orange);
}
.asset-panel .panel-name{
  position:relative;
  z-index:2;
  font-family:var(--font-head);
  font-weight:800;
  font-size:clamp(26px,2.6vw,36px);
  line-height:1.15;
  color:#FFFFFF;
  text-shadow:0 2px 12px rgba(0,0,0,0.35);
}
.asset-block h3{ font-size:clamp(22px,2.2vw,28px); margin-bottom:14px; }
.asset-block > div > p{ font-size:16px; line-height:1.75; margin-bottom:22px; }

/* Photo credit / license attribution for Wikimedia (or other sourced)
   images — small, always legible, sits in the corner of whichever
   container it's placed in (.home-main or .asset-panel both already
   have position:relative). */
.photo-credit{
  position:absolute;
  z-index:3;
  right:12px;
  bottom:10px;
  max-width:75%;
  font-family:var(--font-body);
  font-size:11px;
  font-weight:500;
  line-height:1.4;
  text-align:right;
  color:rgba(255,255,255,0.62);
  text-decoration:underline;
  text-decoration-color:rgba(255,255,255,0.3);
  text-underline-offset:2px;
}
.photo-credit:hover, .photo-credit:focus-visible{
  color:rgba(255,255,255,0.95);
  text-decoration-color:rgba(255,255,255,0.7);
}

.spec-table{ width:100%; border-collapse:collapse; font-size:15px; border:1.5px solid var(--border); border-radius:6px; overflow:hidden; }
.spec-table th, .spec-table td{ text-align:left; padding:13px 18px; border-bottom:1.5px solid var(--border); }
.spec-table tr:last-child th, .spec-table tr:last-child td{ border-bottom:none; }
.spec-table th{
  width:38%;
  font-family:var(--font-head);
  font-weight:700;
  font-size:13.5px;
  color:var(--navy);
  background:var(--bg-alt);
}
.spec-table td{ font-weight:500; color:var(--body); }

/* CTA banner */
.cta-banner{
  background:var(--navy);
  border-top:4px solid var(--orange);
  padding:clamp(52px,6vw,80px) 0;
}
.cta-banner .wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
}
.cta-banner h2{ color:#FFFFFF; font-size:clamp(24px,2.6vw,34px); margin-bottom:8px; }
.cta-banner p{ color:rgba(255,255,255,0.8); font-size:16px; max-width:560px; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer{
  background:var(--navy-deep);
  color:rgba(255,255,255,0.75);
  padding:clamp(44px,5vw,64px) 0 24px;
}
.footer-grid{
  display:grid;
  grid-template-columns:1.6fr 1fr 1fr 1.2fr;
  gap:clamp(28px,3vw,48px);
  padding-bottom:36px;
  border-bottom:1px solid rgba(255,255,255,0.16);
}
.footer-brand .logo{ color:#FFFFFF; display:inline-block; margin-bottom:14px; }
.footer-brand p{ font-size:14.5px; line-height:1.7; max-width:320px; }
.footer-col h4{
  color:#FFFFFF;
  font-size:14px;
  font-weight:700;
  letter-spacing:0.08em;
  text-transform:uppercase;
  margin-bottom:16px;
}
.footer-col li{ margin-bottom:10px; font-size:15px; }
.footer-col a{ transition:color .15s ease; }
.footer-col a:hover{ color:var(--orange); }
.footer-bottom{
  padding-top:22px;
  font-size:13.5px;
  color:rgba(255,255,255,0.55);
}

/* ============================================================
   Inquiry modal
   ============================================================ */
.modal-overlay{
  position:fixed; inset:0;
  background:rgba(7,22,48,0.7);
  z-index:1000;
  display:flex; align-items:center; justify-content:center;
  padding:20px;
  opacity:0; pointer-events:none;
  transition:opacity .2s ease;
}
.modal-overlay.open{ opacity:1; pointer-events:auto; }
.modal-box{
  background:#FFFFFF;
  width:100%; max-width:540px;
  border:1.5px solid var(--border);
  border-radius:8px;
  padding:clamp(28px,4vw,44px);
  position:relative;
  max-height:92vh; overflow-y:auto;
}
.modal-close{
  position:absolute; top:14px; right:14px;
  width:44px; height:44px;
  background:#FFFFFF;
  border:2px solid var(--border);
  border-radius:5px;
  cursor:pointer;
  color:var(--navy);
  font-size:22px; line-height:1;
}
.modal-close:hover{ border-color:var(--navy); }
.modal-box h3{ font-size:24px; margin-bottom:6px; }
.modal-box .modal-sub{ font-size:15px; margin-bottom:24px; }

.form-row{ margin-bottom:16px; }
.form-row label{
  display:block;
  font-weight:600;
  font-size:14px;
  color:var(--navy);
  margin-bottom:6px;
}
.form-row input, .form-row textarea, .form-row select{
  width:100%;
  border:1.5px solid var(--border);
  border-radius:5px;
  padding:12px 14px;
  min-height:48px;
  font-family:var(--font-body);
  font-size:15.5px;
  color:var(--ink);
  background:#FFFFFF;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus{
  border-color:var(--orange);
  outline:none;
}
.form-row textarea{ resize:vertical; min-height:110px; }
.form-honeypot{ position:absolute; left:-9999px; opacity:0; }
.form-status{ font-size:14.5px; font-weight:500; margin-top:10px; min-height:20px; }
.form-status.ok{ color:#177A50; }
.form-status.err{ color:#C43030; }
.form-submit{ width:100%; margin-top:4px; }
.form-submit:disabled{ opacity:0.6; cursor:not-allowed; }

@media (prefers-reduced-motion: reduce){
  *{ transition:none !important; animation:none !important; }
  html{ scroll-behavior:auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width:1100px){
  .office-grid{ grid-template-columns:repeat(3,1fr); }
  .grid-3{ grid-template-columns:1fr 1fr; }
}
@media (max-width:860px){
  .grid-2, .grid-3, .team-grid, .stats-row{ grid-template-columns:1fr; }
  .office-grid{ grid-template-columns:repeat(2,1fr); }
  .asset-block{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
  .cta-banner .wrap{ flex-direction:column; align-items:flex-start; }

  .nav-toggle{ display:block; }
  .main-nav{
    position:fixed;
    top:72px; left:0; right:0;
    background:#FFFFFF;
    border-bottom:1.5px solid var(--border);
    flex-direction:column;
    align-items:stretch;
    padding:20px var(--pad) 28px;
    gap:0;
    transform:translateY(-130%);
    transition:transform .25s ease;
    z-index:190;
  }
  .main-nav.open{ transform:translateY(0); }
  .main-nav ul{ flex-direction:column; gap:0; }
  .main-nav ul a{
    display:block;
    padding:14px 2px;
    font-size:17px;
    border-bottom:1.5px solid var(--border);
  }
  .main-nav ul a.active{ border-bottom-color:var(--orange); }
  .main-nav .btn{ margin-top:20px; width:100%; }
}
@media (max-width:520px){
  .office-grid{ grid-template-columns:1fr; }
  .footer-grid{ grid-template-columns:1fr; }
}
