/* The Army Catering Training Trust — site styles */

@font-face {
  font-family: "Ostrich";
  src: url("../fonts/ostrich-regular.otf") format("opentype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Ostrich";
  src: url("../fonts/ostrich-regular.eot");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0 0 110px;
  background-image: url("../images/small_steps.png");
  background-repeat: repeat;
  background-position: center;
  color: #000;
  font-family: "Ostrich", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.3;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* Desktop: two columns like the original 1000px layout */
.page {
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  padding: 56px 50px 0;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 60px;
}

.page__left {
  width: 350px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page__right {
  width: 500px;
  flex-shrink: 0;
  text-align: left;
}

.logo {
  width: 100%;
  max-width: 350px;
  align-self: stretch;
}

/* Map, badges, and policy share one centred 300px column under the logo */
.map,
.badges,
.policy {
  width: 300px;
  max-width: 100%;
}

.map {
  margin-top: 30px;
}

.map iframe {
  width: 300px;
  height: 300px;
  border: 0;
  display: block;
}

.badges {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  height: 100px;
}

.badges__logo {
  height: 100px;
  width: auto;
}

.policy {
  margin: 30px 0 0;
  text-align: center;
  font-weight: bold;
}

.policy a {
  cursor: pointer;
}

.mission {
  margin-top: 0;
}

.about {
  margin-top: 28px;
}

/* Space before each section (not the heading-to-detail gap below) */
.page__right .contact {
  padding-top: 42px;
}

.page__right .find-us {
  padding-top: 36px;
}

.text-block {
  margin: 0;
  text-align: left;
}

.text-block--bold strong {
  font-weight: bold;
}

.about .text-block + .text-block {
  margin-top: 14px;
}

/* Top navigation */
.top-nav {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.55);
}

.top-nav__inner {
  width: 1000px;
  max-width: 100%;
  margin: 0 auto;
  padding: 10px 50px;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
}

.top-nav__link {
  padding: 8px 28px;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.top-nav__link + .top-nav__link {
  border-left: 1px solid rgba(0, 0, 0, 0.28);
}

.top-nav__link[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.info-intro {
  margin: 0;
}

.page--assessments .mission + .info-intro {
  margin-top: 28px;
}

.info-intro + .info-section {
  padding-top: 28px;
}

.info-section + .info-section {
  padding-top: 42px;
}

.info-section__heading {
  margin: 0 0 0.5em;
  font-size: inherit;
  font-weight: bold;
  text-transform: none;
}

.info-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-list li + li {
  margin-top: 0.35em;
}

.info-list--links a {
  color: #1a4d8c;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.info-list--links a:hover {
  color: #0f3561;
}

.info-list--links a:focus-visible {
  outline-color: #1a4d8c;
}

/* Narrow desktop: keep two columns but flex widths */
@media (max-width: 1000px) and (min-width: 801px) {
  .page {
    width: 100%;
    padding: 48px 24px 0;
    gap: 32px;
  }

  .page__left {
    width: 38%;
    max-width: 350px;
  }

  .page__right {
    width: 58%;
    max-width: 500px;
  }

  .logo {
    width: 100%;
  }

  .map iframe {
    width: 100%;
    max-width: 300px;
    height: auto;
    aspect-ratio: 1;
  }

  .map,
  .badges,
  .policy {
    width: min(300px, 100%);
  }
}

/* Mobile: stacked, centred (matches original phone stylesheet) */
@media (max-width: 800px) {
  body {
    padding-bottom: 40px;
    font-size: 15px;
  }

  .page {
    width: 80%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 48px 10% 0;
  }

  /* Flatten columns so logo → content → map → badges on mobile */
  .page__left {
    display: contents;
  }

  .page__right {
    width: 100%;
    text-align: center;
    margin-top: 32px;
    order: 2;
  }

  .logo {
    order: 1;
    width: 60%;
    min-width: 280px;
    max-width: 400px;
    margin: 0 auto;
  }

  .map {
    order: 3;
    margin-top: 48px;
    width: 80%;
    max-width: 300px;
  }

  .map iframe {
    width: 80%;
    max-width: 300px;
    height: 280px;
    margin: 0 auto;
  }

  .badges {
    order: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    width: 80%;
    max-width: 320px;
    height: auto;
    margin: 32px auto 0;
    position: static;
  }

  .badges__logo {
    position: static;
    height: 100px;
  }

  .policy {
    padding-left: 0;
    text-align: center;
    margin-top: 24px;
    padding-bottom: 30px;
  }

  .about {
    margin-top: 0;
  }

  .page__right .contact {
    padding-top: 32px;
  }

  .page__right .find-us {
    padding-top: 28px;
  }

  .text-block {
    text-align: center;
    padding-bottom: 20px;
  }

  .about .text-block + .text-block {
    margin-top: 0;
    padding-bottom: 30px;
  }

  .info-section + .info-section {
    padding-top: 32px;
  }

  .page--assessments .page__right,
  .page--assessments .mission,
  .page--assessments .info-intro,
  .page--assessments .info-section {
    text-align: center;
  }

  .info-list--links {
    padding-bottom: 30px;
  }

  .top-nav__inner {
    flex-direction: column;
    align-items: stretch;
    padding: 0;
  }

  .top-nav__link {
    display: block;
    text-align: center;
    padding: 12px 16px;
    line-height: 1.35;
  }

  .top-nav__link + .top-nav__link {
    border-left: none;
    border-top: 1px solid rgba(0, 0, 0, 0.28);
  }
}

@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .page {
    width: 92%;
    padding-left: 4%;
    padding-right: 4%;
  }

  .logo {
    min-width: 0;
    width: 85%;
  }
}
