/* ATPL Flight Director: shared styles from the Forest and Yellow brand kit.
   Section layout and colours are inline in each page, as on the design boards. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: #FFFFFF; overflow-x: hidden; }
img { max-width: 100%; }
[hidden] { display: none !important; }

a { color: #1F6F5C; }
a:hover { color: #12352C; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid #0E1A16; outline-offset: 3px; }
.dark a:focus-visible, .dark button:focus-visible { outline-color: #F4F1EA; }
input:focus, select:focus, textarea:focus { outline: 2px solid #1F6F5C; outline-offset: 1px; border-color: #1F6F5C; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.disp { font-family: 'Archivo', sans-serif; font-stretch: 115%; font-variation-settings: "wdth" 115; font-weight: 700; letter-spacing: -0.025em; }
.mono { font-family: 'JetBrains Mono', monospace; font-weight: 500; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }

/* Hover states for the pill buttons on the boards */
/* Lift, soft shadow and a light sweep across the button; presses down on click */
a[style*="border-radius: 999px"], button[style*="border-radius: 999px"] {
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s ease, filter .15s ease, background-color .2s ease, color .2s ease;
  will-change: transform;
}
a[style*="border-radius: 999px"]::after, button[style*="border-radius: 999px"]::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .14), transparent);
  transform: skewX(-20deg); pointer-events: none; z-index: -1; opacity: 0;
}
a[style*="border-radius: 999px"]:hover, button[style*="border-radius: 999px"]:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -10px rgba(14, 26, 22, .45);
}
a[style*="border-radius: 999px"]:hover::after, button[style*="border-radius: 999px"]:hover::after {
  opacity: 1; left: 120%; transition: left .9s ease;
}
a[style*="border-radius: 999px"]:active, button[style*="border-radius: 999px"]:active {
  transform: translateY(0) scale(.97); box-shadow: none; transition-duration: .08s;
}
@media (prefers-reduced-motion: reduce) {
  a[style*="border-radius: 999px"], button[style*="border-radius: 999px"] { transition: background-color .2s ease, color .2s ease; }
  a[style*="border-radius: 999px"]:hover, button[style*="border-radius: 999px"]:hover { transform: none; }
  a[style*="border-radius: 999px"]::after, button[style*="border-radius: 999px"]::after { display: none; }
}
a[style*="background: #F2C230"]:hover { filter: brightness(1.06); color: #0E1A16; }
.dark a[style*="border: 1px solid #4B7468"]:hover { background: #18443A; color: #F4F1EA; }
a[style*="border: 1.5px solid #12352C"]:hover { background: #12352C; color: #F4F1EA !important; }
button[type="submit"]:hover { background: #1F6F5C !important; }
button[disabled] { opacity: .7; cursor: progress !important; }
header .dark a:hover, header nav a[style*="color: #DCE6E1"]:hover { color: #FFFFFF !important; }
footer a:hover { color: #F2C230 !important; }

/* Quick answers on Contact */
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.qa-sign::before { content: "+"; font-size: 20px; line-height: 1; }
details[open] .qa-sign::before { content: "\2212"; }

/* Phones: 44px touch targets in the nav, and the hero graphic below the text */
@media (max-width: 640px) {
  header nav a { min-height: 44px; display: inline-flex; align-items: center; }
  header nav a[style*="background: #F2C230"] { padding-top: 0 !important; padding-bottom: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
