/* Aviation Courses Limited — site stylesheet.
 *
 * The merge, in CSS terms: ACL-AI.Master gave the structure (Bootstrap grid, navbar,
 * footer columns) and ACL.css gave the identity. Every colour below is either taken
 * from ACL/ACL.css or derived from it, and each one says which.
 *
 * ACL.css is 479 lines of fixed pixel widths with no media query anywhere, so it is
 * not carried across verbatim — the values are, the layout is not.
 */

:root {
  /* --- Straight from ACL/ACL.css --- */
  --acl-link: #3300ff;          /* a:link / a:visited */
  --acl-link-hover: #6699ff;    /* a:hover */
  --acl-ink: #333366;           /* ACL.Master body color */
  --acl-title: #141424;         /* .title */
  --acl-muted: #999999;         /* .copyright */

  /* --- Derived from --acl-ink, to give the header and footer the classic site's
         navy rather than Bootstrap's default blue and near-black --- */
  --acl-navy: #2b2d55;
  --acl-navy-dark: #191a33;
  --acl-navy-light: #3d4079;

  --acl-surface: #ffffff;
  --acl-page: #f4f5f9;

  /* Bootstrap's primary, repointed at the ACL navy so buttons, links and focus rings
     match the chrome instead of fighting it. */
  --bs-primary: var(--acl-navy);
  --bs-primary-rgb: 43, 45, 85;
  --bs-link-color: var(--acl-link);
  --bs-link-hover-color: var(--acl-link-hover);
  --bs-link-color-rgb: 51, 0, 255;
}

body {
  background-color: var(--acl-page);
  color: var(--acl-ink);
  font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; /* ACL.css's stack */
  font-size: 1rem; /* ACL.css set 18px on body; that is the h1 size here instead */
}

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

a:hover {
  color: var(--acl-link-hover);
  text-decoration: underline; /* ACL.css set text-align:right on a:hover, which is
                                 not a hover effect — it reflowed the link. Dropped. */
}

h1, h2, h3, h4, h5, h6 {
  color: var(--acl-title);
  font-weight: 700;
}

.skip-link {
  position: absolute;
  z-index: 1080;
  padding: 0.5rem 1rem;
  background: var(--acl-navy);
  color: #fff;
}

/* --- Header ---------------------------------------------------------------- */

.acl-header {
  background-color: var(--acl-navy);
  color: #fff;
  padding: 0.75rem 0;
}

.acl-header__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.acl-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #fff;
  text-decoration: none;
}

.acl-brand:hover {
  color: #fff;
  text-decoration: none;
}

.acl-brand__logo {
  height: 56px;
  width: auto;
  object-fit: contain; /* ACL-AI.css's .fixed-logo rule, which existed for this reason */
}

.acl-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.acl-brand__name {
  font-size: 1.35rem;
  font-weight: 700;
}

.acl-brand__tagline {
  font-size: 0.8rem;
  color: #c9cbe4;
}

.acl-account {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.acl-account__welcome {
  font-weight: 700;
}

/* --- Banner ---------------------------------------------------------------- */
/* ACL.Master set Mechanicsbanner.jpg as the background of a 76px-high table row on a
   1300px-wide table. Below 1300px the .NET site simply clipped it. */

.acl-banner {
  height: 96px;
  background-image: url("/static/images/legacy/Mechanicsbanner.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 3px solid var(--acl-navy-light);
}

@media (max-width: 576px) {
  .acl-banner { height: 60px; }
}

/* --- Navigation ------------------------------------------------------------ */

.acl-nav {
  background-color: var(--acl-navy-dark);
  padding: 0;
}

.acl-nav .nav-link {
  color: #e7e8f4;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;  /* the classic menu was ALL CAPS in the markup itself */
  font-size: 0.82rem;
  padding: 0.85rem 0.9rem;
}

.acl-nav .nav-link:hover,
.acl-nav .nav-link:focus {
  color: #fff;
  background-color: var(--acl-navy-light);
  text-decoration: none;
}

.acl-nav .dropdown-menu {
  border: 0;
  border-radius: 0;
  background-color: var(--acl-navy-dark);
}

.acl-nav .dropdown-item {
  color: #e7e8f4;
  font-size: 0.9rem;
}

.acl-nav .dropdown-item:hover,
.acl-nav .dropdown-item:focus {
  color: #fff;
  background-color: var(--acl-navy-light);
}

.acl-nav .navbar-toggler {
  margin: 0.5rem 0;
  border-color: rgba(255, 255, 255, 0.4);
}

.acl-nav .navbar-toggler-icon {
  filter: invert(1) grayscale(1) brightness(2);
}

/* --- Main ------------------------------------------------------------------ */
/* ACL-AI.css styled <main> as a white card with a soft shadow. Kept. */

main {
  background: var(--acl-surface);
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- Footer ---------------------------------------------------------------- */

.acl-footer {
  background-color: var(--acl-navy-dark);
  color: #d8d9ea;
  padding: 1.75rem 0 1rem;
  font-size: 0.9rem;
}

.acl-footer a {
  color: #fff;
  text-decoration: none;
}

.acl-footer a:hover {
  color: var(--acl-link-hover);
  text-decoration: underline;
}

.acl-footer__heading {
  text-transform: uppercase;
  font-weight: 700;
  color: #fff;
}

.acl-footer__legal {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  text-align: center;
  color: var(--acl-muted);
}

/* --- Port scaffolding ------------------------------------------------------ */
/* Delete this block with the last stub. */

.acl-stub {
  border: 1px dashed var(--acl-navy-light);
  border-radius: 6px;
  padding: 1.25rem;
  background: #fbfbfe;
}

.acl-stub__source {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--acl-title);
}
