/* Air, Land & Sea: the 2011 layout (gray backdrop, framed page, left sidebar,
   teal menu buttons, photo banner, teal-framed content) rebuilt to be responsive. */

:root {
  --teal: #046f97;
  --teal-dark: #0b4a66;
  --teal-light: #07779f;
  --sidebar: #e4e4e4;
  --text: #333;
  --muted: #5c5c5c;
  --yellow: #fff200;
  --page-width: 1080px;
  --sidebar-width: 270px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  font: 16px/1.6 Arial, Helvetica, sans-serif;
  background: #949494 linear-gradient(#3e3e3e, #949494 320px) no-repeat;
}

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

/* keyboard users: visible focus and a skip link past the menu */
:focus-visible { outline: 3px solid #f5c400; outline-offset: 2px; }
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--yellow);
  color: #000;
  font-weight: bold;
}
.skip-link:focus { top: 8px; }

a { color: var(--teal); }
a:hover { color: #000; }

.page {
  max-width: var(--page-width);
  margin: 0 auto 32px;
  background: var(--sidebar);
  box-shadow: 0 0 14px rgba(0, 0, 0, .55);
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
}

/* ---------- Sidebar ---------- */

.sidebar {
  padding: 18px 14px 24px;
  border-right: 2px solid var(--teal-dark);
  text-align: center;
}

.sidebar-logo { display: flex; justify-content: center; }
.logo img { display: block; width: 232px; margin: 6px 0 4px; }

.mobile-bar, .menu-toggle { display: none; }

.contacts {
  margin: 14px 0 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  padding-bottom: 4px;
  margin-bottom: 14px;
  border-bottom: 2px dashed #b5b5b5;
}
.contacts p { margin: 0 0 12px; }
.contacts strong { color: #4a4a4a; }
.office-note { font-size: 12.5px; font-style: italic; }
.contacts a { color: inherit; text-decoration: none; }
.contacts a:hover { color: var(--teal); text-decoration: underline; }

.cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 9px 10px;
  background: var(--yellow);
  color: #000;
  text-decoration: none;
  text-align: left;
  line-height: 1.15;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
}
.cta:hover { background-color: #ffe600; color: #000; }
.cta svg { flex: none; width: 30px; height: 30px; }
.cta span { font-size: 12.5px; font-weight: bold; }
.cta strong { display: block; font-size: 17px; letter-spacing: .3px; text-transform: uppercase; }

.menu-locations { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li + li { margin-top: 6px; }
.nav a {
  position: relative;
  display: block;
  padding: 6px 10px 6px 26px;
  border: 1px solid var(--teal-dark);
  background: linear-gradient(90deg, var(--teal-light), var(--teal) 55%, var(--teal-dark));
  color: #fff;
  font-size: 14.5px;
  font-weight: bold;
  text-align: left;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, .4);
}
.nav a::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  margin-top: -5px;
  border: 5px solid transparent;
  border-left: 7px solid #fff;
}
.nav a:hover,
.nav a[aria-current="page"] {
  background: var(--teal-dark);
  color: #fff;
}
.nav a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--yellow); }

/* ---------- Banner + content ---------- */

.main-col { background: var(--teal); display: flex; flex-direction: column; }

.banner {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 2px solid #fff;
}

.content {
  flex: 1;
  margin: 8px;
  padding: 26px 30px 32px;
  background: #fff;
  border-radius: 6px;
}
.content > :first-child { margin-top: 0; }

h1 {
  font-size: 24px;
  line-height: 1.3;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin: 0 0 18px;
}
h2 { font-size: 20px; line-height: 1.35; margin: 28px 0 10px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
p, ul { margin: 0 0 16px; }
li { margin-bottom: 6px; }

.lead { font-size: 19px; }
.notice { font-size: 20px; line-height: 1.4; font-weight: bold; }
.notice u { text-underline-offset: 3px; }

.photo-right {
  float: right;
  width: 200px;
  margin: 4px 0 14px 24px;
  border-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .3);
}

/* service list on the home page */
.services { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.services li { margin: 0; }
.services a {
  display: block;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd8dd;
  border-left: 4px solid var(--teal);
  border-radius: 4px;
  color: var(--text);
  text-decoration: none;
}
.services a:hover { border-color: var(--teal); background: #f3f8fa; }
.services strong { display: block; color: var(--teal); font-size: 17px; }
.services span { font-size: 14.5px; color: var(--muted); }

.button {
  display: inline-block;
  padding: 10px 18px;
  background: var(--teal);
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
}
.button:hover { background: var(--teal-dark); color: #fff; }

/* FAQ */
.answer { margin-bottom: 18px; }
.answer p { margin-bottom: 8px; }
h2 + h3 { margin-top: 10px; }

/* helpful links */
.link-list { list-style: none; padding: 0; }
.link-list li { margin-bottom: 14px; }
.link-list strong { display: block; }

/* contact page */
.offices { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 24px; }
.offices h2 { margin-top: 0; font-size: 18px; }
.contact-form {
  max-width: 520px;
  padding: 18px 20px;
  margin-bottom: 28px;
  background: #e4e4e4;
  border: 1px solid #666;
}
.contact-form label { display: block; font-weight: bold; margin: 0 0 4px; }
.contact-form .req { color: #c00; font-style: italic; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  margin-bottom: 14px;
  padding: 8px 10px;
  font: inherit;
  border: 1px solid #999;
  border-radius: 3px;
  background: #fff;
}
.contact-form button { font: inherit; border: 0; cursor: pointer; }
.trap { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.map { width: 100%; height: 340px; border: 0; margin-bottom: 24px; }

.scheduler { width: 100%; min-height: 800px; border: 0; }

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

.site-footer {
  grid-column: 1 / -1;
  padding: 8px 14px;
  background: var(--teal);
  border-top: 2px solid #fff;
  color: #fff;
  font-size: 12.5px;
  text-align: right;
}
.site-footer p { margin: 0; }
.footer-contacts { display: none; }

/* ---------- Phones and small tablets ---------- */

@media (max-width: 820px) {
  .page { display: block; margin: 0; box-shadow: none; }

  /* slim bar with the logo and menu button stays pinned to the top while scrolling */
  html { scroll-padding-top: 66px; }
  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 58px;
    padding: 0 14px;
    background: var(--sidebar);
    border-bottom: 1px solid #c9c9c9;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
  }
  .logo img { width: 180px; margin: 0; }
  .sidebar-logo { display: none; }
  .bar-actions { display: flex; align-items: center; gap: 8px; }
  .book {
    padding: 8px 14px;
    border: 1px solid #b3a700;
    border-radius: 4px;
    background: var(--yellow);
    color: #000;
    font: bold 15px Arial, Helvetica, sans-serif;
    text-decoration: none;
  }
  .book:hover { background: #ffe600; color: #000; }
  /* hidden (but still taking its space, so Menu doesn't jump) until the big button scrolls away */
  .js .book { visibility: hidden; opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .js .mobile-bar.show-book .book { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .sidebar { padding: 10px 14px 12px; border-right: 0; border-bottom: 2px solid var(--teal-dark); }
  .sidebar:not(:has(.cta)) { padding: 0; border-bottom: 0; } /* booking page: nothing to show above the photo */

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--teal-dark);
    border-radius: 4px;
    background: var(--teal);
    color: #fff;
    font: bold 15px Arial, Helvetica, sans-serif;
    cursor: pointer;
  }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
    display: block; width: 18px; height: 2px; background: #fff; position: relative;
  }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle .bars::before { top: -6px; }
  .menu-toggle .bars::after { top: 6px; }

  .sidebar .contacts { display: none; }
  .cta { margin: 0; justify-content: center; }

  /* the menu drops down from the pinned bar, wherever the page is scrolled to */
  .js .menu-panel { display: none; }
  .js .menu-panel.open {
    display: block;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    z-index: 19;
    max-height: calc(100vh - 58px);
    max-height: calc(100dvh - 58px);
    overflow-y: auto;
    padding: 10px 14px 14px;
    background: var(--sidebar);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .3);
  }
  .nav { margin-top: 10px; }

  /* both offices at the top of the phone menu: tap to call or get directions */
  .menu-locations { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .location {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 10px;
    background: #fff;
    border: 1px solid #c9c9c9;
    border-left: 4px solid var(--teal);
    border-radius: 4px;
    font-size: 13.5px;
    line-height: 1.35;
  }
  .location strong { font-size: 14.5px; }
  .location-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; }
  .location-actions a {
    flex: 1;
    padding: 7px 4px;
    background: var(--teal);
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
  }
  .location-actions a:hover { background: var(--teal-dark); color: #fff; }
  .nav a { padding-top: 10px; padding-bottom: 10px; font-size: 16px; }

  .content { margin: 6px; padding: 20px 18px 24px; }
  h1 { font-size: 22px; }
  .notice { font-size: 18px; }
  .photo-right { width: 140px; margin-left: 16px; }

  .site-footer { text-align: left; padding: 16px 18px; }
  .footer-contacts { display: grid; gap: 4px 24px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); font-size: 14.5px; line-height: 1.5; color: #fff; }
  .footer-contacts p { margin: 0 0 12px; }
  .footer-contacts a { color: #fff; }
}

@media print {
  body { background: none; }
  .sidebar, .banner, .site-footer { display: none; }
  .page, .main-col { display: block; background: none; box-shadow: none; }
}

a[href^="tel:"] { white-space: nowrap; }

/* narrow phones: shrink the logo so Book and Menu still fit in the pinned bar */
@media (max-width: 380px) {
  .mobile-bar { padding: 0 10px; }
  .mobile-bar .logo img { width: 150px; }
}
@media (max-width: 340px) {
  .mobile-bar .logo img { width: 122px; }
  .book { padding: 8px 10px; }
  .menu-toggle { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .book, .js .mobile-bar.show-book .book { transition: none; }
}

@media (max-width: 360px) {
  .menu-locations { grid-template-columns: 1fr; }
}
