/*
  Josh's Custom CSS Reset
  https://www.joshwcomeau.com/css/custom-css-reset/
*/

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

* {
  margin: 0;
}

body {
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

input, button, textarea, select {
  font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Variables */

:root {
  --background-black: hsl(210,8%,5%);
  --maritime-blue: #4f81bd;
  --light-grey: #ccc;
  --mid-grey: #999;
  --mint-green: #d6f9c7;
  --serif-font: Iowan Old Style, Apple Garamond, Baskerville, Times New Roman,
    Droid Serif, Times, Source Serif Pro, serif, Apple Color Emoji,
    Segoe UI Emoji, Segoe UI Symbol;
  --sans-serif-font: -apple-system, BlinkMacSystemFont, avenir next, avenir,
    segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial,
    sans-serif;
}

/* Element Styles */

body {
  font-family: var(--sans-serif-font);
  margin: 0;
}

dt {
  font-weight: bold;
  margin-bottom: 0.2rem;
}

dd {
  margin-bottom: 0.5rem;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 0.5rem;
}

h1 {
  font-family: var(--serif-font);
}

address, dl, ol, p, ul {
  margin-bottom: 1rem;
}

section {
  margin-bottom: 2rem;
}

/* Utility Classes */

.italic { font-style: italic; }

.items-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.font-serif {
  font-family: var(--serif-font);
}

.grid-cols-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mb-s { margin-bottom: 0.5rem !important; }
.mb-m { margin-bottom: 1rem !important; }
.mb-l { margin-bottom: 2rem !important; }

.text-sm {
  font-size: 0.875rem; /* 14px */
  line-height: 1.25rem; /* 20px */
}

.text-lg {
  font-size: 1.125rem !important; /* 18px */
  line-height: 1.75rem !important; /* 28px */
}
.text-2xl {
  font-size: 1.5rem !important; /* 24px */
  line-height: 2rem !important; /* 32px */
}
.text-4xl {
  font-size: 2.25rem !important; /* 36px */
  line-height: 2.5rem !important; /* 40px */
}

.text-center { text-align: center; }

/* Component Classes */

.collapsible-section:not(:first-of-type) {
  border-top: 1px dashed var(--mid-grey);
}

.collapsible-section__summary {
  cursor: pointer;
  list-style: none;
  padding-top: 0.5rem;
}

.content {
  flex-grow: 1;
  max-width: 1000px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
  width: 100%;
}

.footer {
  color: var(--light-grey);
  background-color: var(--background-black);
  font-family: var(--serif-font);
  padding: 1.5rem 1rem;
  width: 100%;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.footer-nav {
  display: flex;
  margin-bottom: 1rem;
}

.footer-nav-item {
  color: white;
  margin-bottom: 1rem;
  margin-right: 2rem;
  text-decoration: none;
}

.footer-nav-item:hover,
.footer-nav-item:focus,
.footer-nav-item:active {
  text-decoration: underline;
}

.google-map {
  border: 0;
  height: 400px;
  margin-bottom: 2rem;
  width: 100%;
}

.header {
  margin: 0 auto;
  max-width: 1000px;
  padding: 1rem;
  width: 100%;
}

.header-logo {
  max-height: 3rem;
  max-width: 90%;
}

.image-section {
  margin: 0 auto 2rem;
  width: 75%;
}

.maritime-list {
  padding-left: 2rem;
}

.maritime-list > li::marker {
  color: var(--maritime-blue);
}

.maritime-subheading {
  color: var(--maritime-blue);
  text-align: center;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-list {
  display: none;
  list-style: none;
  padding: 0;
  width: max-content;
}

.nav-dropdown:hover > .nav-dropdown-list,
.nav-dropdown:focus > .nav-dropdown-list,
.nav-dropdown:active > .nav-dropdown-list {
  background-color: white;
  box-shadow: 0px 2px 5px var(--mid-grey);
  display: block;
  position: absolute;
}

.nav-dropdown-item > .nav-item {
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;
}

.nav-item {
  align-items: center;
  color: inherit;
  display: flex;
  font-family: var(--serif-font);
  font-weight: 600;
  font-size: 1.125rem;
  padding: 1rem;
  text-decoration: none;
}

.nav-item:hover,
.nav-item:active,
.nav-item:focus,
.nav-dropdown:hover > .nav-item,
.nav-dropdown:focus > .nav-item,
.nav-dropdown:active > .nav-item {
  text-decoration: underline;
}

.page {
    align-items: center;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.text-logo {
  color: (--currentColor);
  font-family: sans-serif;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.25;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px var(--currentColor);
  -webkit-text-stroke-width: 2px;
}

.top-nav {
  align-items: center;
  display: flex;
  flex-grow: 1;
  height: 2.4rem;
  justify-content: center;
}

.value-icon {
  display: block;
  margin: 0 auto;
  max-height: 6rem;
}

.vessel-image {
  width: 100%;
}

@media (min-width: 780px) {
  .header {
    align-items: center;
    display: flex;
    margin-bottom: 2rem;
    padding-top: 2rem;
  }

  .image-section {
    display: block;
    margin: 2rem auto;
    max-width: 50%;
  }

  .md\:grid-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .md\:grid-cols-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
  }

  .top-nav { justify-content: end; }
}
