:root {
    --dslBlue: #33c6f4;
    --dslBlueMedium: #70ddfe;
    --dslBlueLight: #d4f0fb;
    --dslBlueRGBA: 51, 198, 244;
    --white: #ffffff;
    --lightGrey: #e6e6e6;
    --darkGrey: #333333;
    --subtitleFontSize: clamp(0.8125rem, 1.6vw, 1rem); /* 13px - 16px */
    --bodyFontSize: 16px;
    --sectionPadding: clamp(3.75rem, 7.82vw, 6.25rem) 1rem; /* 60px - 100px top and bottom */
}

.roboto {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300; /* 100 to 900 */
  font-style: normal;
  font-variation-settings: "wdth" 100;
}
.roboto-condensed {
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300; /* 100 to 900 */
  font-style: normal;
}

html {
  color: var(--white);
  font-family: "Roboto", sans-serif;
  font-size: var(--bodyFontSize);
  font-weight: 300;
  background-color: var(--darkGrey);
  overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    background-image: url("../img/topographic-pattern.png");
    background-size: 1250px;
    background-repeat: repeat;
    background-attachment: fixed;
    overflow-x: hidden;
}

*, *:before, *:after {
    box-sizing: border-box; /* prevents padding from affecting height and width */
}

.dslBlue { color: var(--dslBlue); }

a {
  color: inherit;
  font-weight: 300;
}

h1, .h1 {
    margin: 0.5em auto;
    line-height: 1.2em;
    font-size: clamp(1.25em, 3vw, 3em);
    font-weight: 500;
}
h2, .h2 {
    font-size: clamp(1.2em, 3vw, 1.5em);
}

p {
  margin: 1em auto;
  max-width: 75ch;
  font-size: 0.9em;
  line-height: 1.25;
}
@media only screen and (min-width: 768px) {
  p {
    font-size: 1.1em;
  }
}

p.intro {
  line-height: 1.4;
}

.subtitle {
  display: block;
  margin-bottom: 0.25em;
  font-size: var(--subtitleFontSize);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2em;
}

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

section {
  position: relative;
  padding: var(--sectionPadding);
  padding-bottom: clamp(6.25rem, 8vw, 12.5rem); /* 100px - 200px */
  overflow: hidden;
  z-index: 1;
}

.container {
  max-width: 1280px;
  margin: auto;
}

.button-solid,
.button-outline {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0.75em 1.25em;
  font-size: 0.75em;
  letter-spacing: 0.1em;;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  line-height: 1.2;
  z-index: 1;
}
@media only screen and (min-width: 768px) {
  .button-solid,
  .button-outline {
    font-size: 0.9em;
  }
}
@media only screen and (min-width: 1280px) {
  .button-solid,
  .button-outline {
    padding: 1em;
    font-size: 1em;
  }
}

.button-solid {
  color: var(--darkGrey);
  font-weight: 500;
  background-color: var(--dslBlue);
  border: none;
}
.button-solid:hover {
  background-color: var(--dslBlueMedium);
}
.button-outline {
  color: var(--dslBlue);
  font-weight: 500;
  background-color: transparent;
  border: 1px solid var(--dslBlue);
  transition: background-color 0.3s;
}
.button-outline:hover {
  color: var(--darkGrey);
  background-color: var(--dslBlue);
}
.button-outline:hover:before {
  width: 100%;
}

.sr-only {
  clip: rect(1px, 1px, 1px, 1px); /* Clips the element to a 1x1 pixel area */
  clip-path: inset(50%); /* Alternative for clipping, ensuring full hiding */
  height: 1px; /* Sets height to 1 pixel */
  width: 1px; /* Sets width to 1 pixel */
  margin: -1px; /* Negative margin to prevent layout issues */
  overflow: hidden; /* Hides any content exceeding the 1x1 pixel area */
  padding: 0; /* Removes any padding */
  position: absolute; /* Positions the element out of the normal document flow */
  white-space: nowrap; /* Prevents text from wrapping */
  border: 0; /* Removes any border */
}



/*-- ---------- --->
<---    HOME    --->
<--- ---------- --*/

#home {
  height: 100vh;
  width: 100vw;
}

#home .home-nav-buttons {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 1rem;
  position: absolute;
  bottom: 2rem;
  bottom: max(2rem, env(safe-area-inset-bottom)); /* respects home indicator */
  left: auto;
  right: auto;
  width: calc(100% - 2rem);
  text-align: center;
}
#home .home-nav-buttons a {
  flex-grow: 1;
  flex-basis: auto;
  align-content: center;
  width: 100%;
}

#home .container {
  max-width: 800px;
}

#home .picture {
  width: 100%;
}
#home .picture img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-fit: cover;
}

#home .content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  width: 100%;
  text-align: center;
  z-index: 3;
}
#home .content p {
  max-width: 700px;
  font-size: clamp(1.2em, 3vw, 2em);
  font-weight: 100;
  line-height: 1.3;
}
#home .content p strong {
  font-weight: 700;
}

@media only screen and (min-width: 768px) {
  #home .home-nav-buttons {
    flex-direction: row;
  }
  #home .home-nav-buttons a {
    max-width: 300px;
  }
}

@media only screen and (min-width: 1280px) {
  #home .container {
    position: relative;
    height: 100%;
    width: 90vw;
    max-width: 1800px;
  }

  #home .container .logo,
  #home .container .content {
    position: absolute;
    top: 50%;
  }

  #home .logo {
    left: 0;
    transform: translateY(-50%);
    width: 75%;
    text-align: left;
  }

  #home .content {
    right: 0;
    transform: translateY(-70%);
    width: 28%;
    text-align: left;
  }
  #home .content p {
    font-size: 2.1em;
  }
}



/*-- ----------------------- --->
<---    AMERICAN PANORAMA    --->
<--- ----------------------- --*/

#american-panorama {
  background-color: var(--white);
}

@media only screen and (min-width: 2000px) {
  #american-panorama .container {
    max-width: 1500px;
  }
}

#american-panorama .container > a {
  display: block;
  height: auto;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
#american-panorama h2 {
  font-size: 0;
  text-indent: -999999999px;
}
#american-panorama h2 + p {
  color: var(--darkGrey);
  margin-top: 1rem;
  margin-bottom: 3rem;
}

@media only screen and (max-width: 2000px) {
  .glide {
    margin: 0 auto;
    max-width: 900px;
  }
}

.glide__track {
    overflow: visible;
}
.glide__slide {
  position: relative;
  margin-bottom: -5px;
  /* opacity: 0.25; */
  /* transition: opacity 500ms ease-in-out; */
  /* transition-delay: 0; */
}
/* .glide__slide--active {
  opacity: 1;
} */
.glide__slide img {
  height: auto;
  width: 100%;
  max-width: 100%;
}

.glide__slide a {
  position: absolute;
  top: 25vw;
  left: 50%;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
}
@media only screen and (min-width: 768px) {
  .glide__slide a {
    top: auto;
    bottom: 2rem;
    left: 1rem;
    width: calc(33.3% - 2rem);
    transform: none;
  }
}
@media only screen and (min-width: 2000px) {
  .glide__slide a {
    bottom: 3rem;
    left: 2rem;
    width: calc(33.3% - 4rem);
  }
}

.glide__slide .description {
  color: var(--darkGrey);
  text-align: center;
}
@media only screen and (min-width: 768px) {
  .glide__slide .description {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 33.3%;
    padding: 1rem;
    color: var(--white);
    text-align: left;
    background-color: rgba(0,0,0,0.5);
  }
}
@media only screen and (min-width: 2000px) {
  .glide__slide .description {
    padding: 2rem;
  }
  .glide__slide .description h3 {
    font-size: 1.75em;
  }
  .glide__slide .description h4 {
    font-size: 1.3em;
  }
  .glide__slide .description p {
    font-size: 1.2em;
  }
}

.glide__arrow {
  top: 25vw;
  height: 60px;
  width: 60px;
  text-decoration: none;
  border: none;
  outline: none;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  text-shadow: none;
  box-shadow: none;
  transition: all 150ms ease, border 300ms ease-in-out;
}
.glide__arrow span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 7px;
  color: transparent;
  font-size: 0;
  border: solid var(--white);
  border-width: 0 3px 3px 0;
}
.glide__arrow--left span {
  transform: translate(-50%, -50%) rotate(135deg);
  -webkit-transform: translate(-50%, -50%) rotate(135deg);
}
.glide__arrow--right span {
  transform: translate(-50%, -50%) rotate(-45deg);
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
}

.glide__arrow:hover, .glide__arrow:focus {
  background-color: rgba(0,0,0,0.75);
}
.glide__arrow--left {
  left: -1rem;
}
.glide__arrow--right {
  right: -1rem;
}
@media only screen and (min-width: 768px) {
  .glide__arrow {
    top: 50%;
  }
  .glide__arrow--left {
    left: auto;
    right: 4rem;
  }
}
@media only screen and (min-width: 1024px) {
  .glide__arrow--left {
    left: -33px;
    right: auto;
    transform: translate(-50%, -50%);
  }
  .glide__arrow--right {
    left: auto;
    right: -33px;
    transform: translate(50%, -50%);
  }
}
@media only screen and (min-width: 1100px) {
  .glide__arrow--left {
    left: -50px;
  }
  .glide__arrow--right {
    right: -50px;
  }
}

.glide__slide h4 {
  margin-top: -0.75em;
}
.glide__slide p {
  line-height: 1.3;
}

.glide__bullets {
  bottom: -2em;
}
.glide__bullet {
  height: 12px;
  width: 12px;
  margin: 0 0.5em;
  background-color: rgba(0,0,0,0.3);
  border: none;
  box-shadow: none;
}
.glide__bullet:hover, .glide__bullet:focus {
    border: none;
    background-color: rgba(0,0,0,0.7);
}
.glide__bullet--active {
    background-color: rgba(0,0,0,0.7);
}



/*-- -------------- --->
<---    PROJECTS    --->
<--- -------------- --*/

#projects {
  background-color: var(--lightGrey);
}
#projects * {
  color: var(--darkGrey);
}
#projects .project-gallery {
  padding: 0;
}
#projects .project-gallery .project {
  margin-bottom: 1em;
}
#projects .project-gallery .project * {
  text-decoration: none;
}
#projects .project-gallery .project h4 {
  margin-top: 0;
  margin-bottom: 0.5em;
}
#projects .project-gallery .project p {
  margin-top: 0;
  font-size: 0.9em;
}

#projects .project-gallery.dsl-projects {
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  margin: 2rem 0 5rem 0;
}
#projects .project-gallery.dsl-projects .project {
  background-color: var(--white);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 5px 10px -5px;
}
#projects .project-gallery.dsl-projects .project img {
  width: 100%;
}
#projects .project-gallery.dsl-projects .project .text {
  padding: 1em;
}

#projects .project-gallery.dh-projects {
  grid-template-columns: repeat(auto-fill, minmax(25rem, 1fr));
  margin: 2rem 0;
}
#projects .project-gallery.dh-projects .project a {
  display: flex;
  flex-direction: row;
  gap: 1em;
  padding: 1em;
  background-color: var(--white);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 5px 10px -5px;
}
#projects .project-gallery.dh-projects .project img {
  display: block;
  height: 25%;
  width: 25%;
  max-height: 150px;
  max-width: 150px;
}
#projects .project-gallery.dh-projects .project .text {
  flex-grow: 1;
}

#projects .project-gallery.dsl-projects .project,
#projects .project-gallery.dh-projects .project a {
  /* outline: rgb(181, 221, 255) solid 0px; */
  transition: 0.2s ease-in-out;
}
#projects .project-gallery.dsl-projects .project:hover,
#projects .project-gallery.dh-projects .project a:hover {
  /* outline: rgb(181, 221, 255) solid 2px; */
  background-color: var(--dslBlueLight);
}

@media only screen and (min-width: 480px) {
  #projects .project-gallery {
    display: grid;
    grid-gap: 3rem;
  }
  #projects .project-gallery .project {
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 768px) {
  #projects .project-gallery.dsl-projects .project {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}
@media only screen and (max-width: 1000px) {
  #projects .project-gallery.dh-projects .project {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}



/*-- ---------- --->
<---    TEAM    --->
<--- ---------- --*/

#team .container {
  max-width: 1900px;
}
@media only screen and (min-width: 1024px) {
  #team .container {
    max-width: calc(90%);
  }
}
@media only screen and (min-width: 1920px) {
  #team .container {
    max-width: 1900px;
  }
}

#team .bios {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  justify-content: space-evenly;
  align-items: stretch;
  gap: 75px 50px;
  margin-top: 4rem;
}

#team .bio {
  flex: 1;
  flex-basis: 100%;
  max-width: 500px;
}
@media only screen and (min-width: 576px) {
  #team .bio {
    flex-basis: 40%;
    max-width: 40%;
    font-size: 14px;
  }
}
@media only screen and (min-width: 1200px) {
  #team .bio {
    flex-basis: 25%;
    max-width: 25%;
  }
}
@media only screen and (min-width: 1440px) {
  #team .bio {
    flex-basis: 20%;
    max-width: 20%;
    font-size: 15px;
  }
}

#team .bio img {
  height: 120px;
  width: 120px;
  border-radius: 50%;
}
#team .bio h4 {
  margin-bottom: -1em;
}
#team .bio h5 {
  margin-bottom: 1em;
}

#team .bio span {
  display: inline-block;
  max-width: 75ch;
  font-size: 13px;
  line-height: 1.3;
}
@media only screen and (min-width: 768px) {
  #team .bio span {
    font-size: 14px;
  }
}
@media only screen and (min-width: 1440px) {
  #team .bio span {
    font-size: 15px;
  }
}



/*-- ------------- --->
<---    CONTACT    --->
<--- ------------- --*/

#contact .container {
  padding: 2rem 1rem;
  background-color: rgba(0,0,0,0.3);
}

#contact .container h4 {
  margin-bottom: -0.5em;
}

#contact .container p.address {
  margin-bottom: 3rem;
  font-size: 0.9em;
  line-height: 1.5;
}

#contact .container form {
  margin: 0 auto;
  width: 100%;
  max-width: 600px;
}

#contact .form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

#contact input,
#contact textarea,
#contact select,
#contact input:not(:placeholder-shown),
#contact textarea:not(:placeholder-shown),
#contact select:not([value=""]):not([multiple]),
#contact input:-webkit-autofill,
#contact input:-webkit-autofill:hover,
#contact input:-webkit-autofill:focus,
#contact input:-webkit-autofill:active,
#contact textarea:-webkit-autofill,
#contact select:-webkit-autofill {
  width: 100%;
  padding: 0.75rem;
  font: inherit;
  border: 1px solid white;
  outline: 0 solid var(--dslBlueMedium);
  outline-offset: 2px;
  -webkit-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
  background-color: var(--white) !important;
  -webkit-box-shadow: 0 0 0 1000px var(--white) inset !important;
  box-shadow: 0 0 0 1000px var(--white) inset !important;
}
#contact .form-group input:focus,
#contact .form-group textarea:focus {
  outline: 3px solid var(--dslBlueMedium);
}
#contact input:invalid:focus,
#contact textarea:invalid:focus {
  outline: 3px solid #d32f2f;
}

/* Keep visible focus indicators */
#contact button:focus-visible,
#contact input:focus-visible,
#contact textarea:focus-visible {
  background-color: rgba(255,255,255,1);
  outline: 3px solid var(--dslBlueMedium);
}
  
#contact .container form button {
  display: block;
  width: 100%;
  margin: 1.5rem auto 0 auto;  
}
@media only screen and (min-width: 480px) {
  #contact .container form button {
    max-width: 200px;
  }
}

/* Success message */
#contact .container form #form-message {
  margin-top: 1em;
  text-align: center;
}
#contact .container form #form-message strong {
  font-size: 16px !important;
} 

/* Error styling */
#contact .error-message {
  color: #d32f2f;
  font-size: 12px !important;
  margin-top: 0.25rem;
  min-height: 1.2em;
}


/*-- ------------------------ --->
<---    SHOW/HIDE ELEMENTS    --->
<--- ------------------------ --*/

.show-hide {
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  /* cursor: pointer; */
  z-index: 100;
}

/* Visually hidden but still accessible to screen readers */
.visually-hidden {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}



/*-- ---------------- --->
<---    STICKY NAV    --->
<--- ---------------- --*/

#dropdown-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  text-align: right;
}

@media only screen and (min-width: 480px) {
  #dropdown-nav {
    padding: 10px 1.5rem;
  }
}

#toggle {
  display: none;
}

#dropdown-nav .logo,
#dropdown-nav .shield {
  position: absolute;
  top: 10px;
}
#dropdown-nav .logo {
  left: 50%;
  transform: translateX(-50%);
  -webkit-transform: translateX(-50%);
}
#dropdown-nav .shield {
  left: 1em;
}

.hamburger {
  display: inline-block;
  height: 30px;
  /* margin: 10px; */
  text-align: center;
  z-index: 120;
  cursor: pointer;
}
.hamburger div {
  background-color: var(--white);
  position: relative;
  width: 30px;
  height: 2px;
  margin-top: 7px;
  -webkit-transition: all 0.2s ease-in-out;
  transition: all 0.2s ease-in-out;
}
#toggle:checked + .hamburger .top {
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  /* margin-top: 22.5px; */
  margin-top: 50%;
}
#toggle:checked + .hamburger .meat {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  margin-top: -2px;
}
#toggle:checked + .hamburger .bottom {
  -webkit-transform: scale(0);
  transform: scale(0);
}

.dropdown-nav-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  height: 0px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
  overflow: hidden;
  /* transition: height .4s ease; */
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.dropdown-nav-buttons a {
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 10px 0;
  text-decoration: none;
}
#toggle:checked ~ .dropdown-nav-buttons {
  height: 240px;
  margin-top: 1em;
}

@media only screen and (min-width: 1000px) {
  .dropdown-nav-buttons {
    flex-direction: row;
    justify-content: center;
  }
  .dropdown-nav-buttons a {
    margin: 0;
  }
  #toggle:checked ~ .dropdown-nav-buttons {
    height: 60px;
  }
}



/*-- -------------------------- --->
<---    SCROLL-TO-TOP BUTTON    --->
<--- -------------------------- --*/

.top-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  height: 60px;
  width: 60px;
  text-decoration: none;
  border: none;
  outline: none;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
}
.top-button:hover, .top-button:focus {
  background-color: rgba(0, 0, 0, 0.75);
}

.top-button span {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 7px;
  color: transparent;
  font-size: 0;
  border: solid var(--white);
  border-width: 0 3px 3px 0;
  transform: translate(-50%, -50%) rotate(-135deg);
  -webkit-transform: translate(-50%, -40%) rotate(-135deg);
}