:root {
  --dark-background: #082d3f;
  --accent-color: #d19b5d;
  --gentler-contrast-text: #404041;
  --fancy-blue: #1d485c;
  --bluish-gray: #637e8c;
  --hamburger-line-offset: 10px;
}

@font-face {
  font-family: "Avenir LT W01 35 Light";
  src: url("assets/fonts/avenir-lt-w01_35-light.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Avenir LT W01 85 Heavy";
  src: url("assets/fonts/avenir-lt-w01_85-heavy.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Adam Medium";
  src: url("assets/fonts/adam-medium.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Brandon Grot";
  src: url("assets/fonts/brandon-grot-w01-light.woff2") format("woff2");
  font-display: swap;
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  scroll-padding-top: 99px; /* Height of the sticky header (desktop only) */
}

html.hamburger-lock-scroll {
  overscroll-behavior: contain;
}

body {
  margin: 0;
  font-family: "Avenir LT W01 35 Light", sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.dd-edit-hint {
  position: absolute;
  top: -2em;
  padding: 2px;
  border: 2px solid white;
  border-radius: 3px;
  background-color: #3582c4;
  color: white;
}

.dd-header-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-background);
  border-bottom: 5px solid var(--accent-color);
}

.dd-header-logo {
  margin-top: 11px;
  margin-bottom: 4px;
}

.dd-vertical-separator {
  background-color: var(--accent-color);
  width: 2px;
  height: 48px;
  margin-left: 16px;
  margin-right: 10px;
}

.dd-nav {
  margin-left: 23px;
}

.dd-nav-list {
  display: flex;
  gap: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dd-nav-list li a {
  padding: 15px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  transition: var(--trans, color 0.4s ease 0s);
}

.dd-nav-list li.no-fragment-link.current-menu-item a {
  color: var(--accent-color);
}

.dd-nav-list li a:hover {
  color: var(--accent-color);
}

.sub-menu {
  display: none;
}

/* Hamburger Button */
.dd-hamburger {
  display: none; /* Hidden by default, shown on mobile */
  background: none;
  border: none;
  cursor: pointer;
  position: absolute;
  top: 17px;
  right: 13px;
  z-index: 1002;
  padding: 18px;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.dd-hamburger-line {
  display: block;
  width: 30px;
  height: 2px;
  background-color: var(--accent-color);
  transition: all 0.3s ease;
  transform-origin: center;
}

.dd-hamburger.active .dd-hamburger-line {
  background-color: white;
}

/* Hamburger Animation to X */
.dd-hamburger.active .dd-hamburger-line:nth-child(1) {
  transform: translateY(var(--hamburger-line-offset)) rotate(-45deg);
}

.dd-hamburger.active .dd-hamburger-line:nth-child(2) {
  opacity: 0;
}

.dd-hamburger.active .dd-hamburger-line:nth-child(3) {
  transform: translateY(calc(-1 * var(--hamburger-line-offset))) rotate(45deg);
}

/* Mobile Navigation Overlay */
.dd-mobile-nav-overlay {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-color: var(--fancy-blue);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateX(100%);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
  pointer-events: none;
}

.dd-mobile-nav-overlay.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.dd-mobile-nav {
  padding: 40px; /* Provide mis-clicking protection around links */
}

.dd-mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.dd-mobile-nav-list li a {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 21px;
  font-weight: 400;
  transition: color 0.3s ease;
  padding: 15px; /* Increase clickable area */
}

.dd-mobile-nav-list li.no-fragment-link.current-menu-item a {
  color: var(--bluish-gray);
}

.dd-mobile-nav-list li a:hover {
  color: var(--accent-color);
}

/* Footer */
.dd-footer {
  background-color: var(--dark-background);
  color: #fff;
  padding-left: 20px;
  padding-right: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
  font-size: 18px;
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dd-footer-inner {
  display: flex;
  margin-top: 29px;
  gap: 90px;
}

.dd-contact-info .wp-block-group.is-layout-flex {
  gap: 5px;
}

.dd-contact-info p {
  margin-top: 9.5px;
  margin-bottom: 9.5px;
  letter-spacing: 0.9px;
}

.dd-footer h1 {
  margin-top: 9.5px;
  margin-bottom: 28px;
  color: var(--accent-color);
  font-family: "Adam Medium";
  font-weight: 400;
  font-size: 50px;
}

.dd-footer h2 {
  margin-top: 0px;
  font-size: 22px;
  font-family: "Brandon Grot";
  font-weight: 400;
}

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

.dd-contact-info .fa-icon {
  color: var(--accent-color);
  font-size: 1.25em;
}

.dd-footer-copyright {
  font-size: 15px;
  margin-top: 44px;
  font-style: italic;
  color: var(--accent-color);
  margin-bottom: 30px;
  font-weight: 400;
  letter-spacing: 0.05em;
}

.dd-footer-copyright a {
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.dd-footer-copyright a:hover {
  outline: var(--accent-color) solid 1px;
  background: var(--accent-color);
  color: var(--dark-background);
}

.dd-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto 1fr;
  gap: 30px;
  font-size: 17px;
}

.dd-contact-form label {
  display: block;
}

.dd-contact-form .dd-form-required::after {
  content: " *";
}

.dd-contact-form input,
.dd-contact-form select,
.dd-contact-form textarea {
  all: unset;
  margin-top: 5px;
  background-color: transparent;
  border-bottom: 1px solid var(--accent-color);
  --base-bottom-padding: 7px;
  /* add 2px padding to keep the border from shifting on hover/focus */
  padding: 3px;
  padding-bottom: calc(var(--base-bottom-padding) + 2px);
}

.dd-contact-form select {
  width: 100%;
}

.dd-contact-form option {
  color: black;
}

.dd-contact-form textarea {
  display: block;
  height: 83px;
  width: 100%;
}

.dd-contact-form input:hover,
.dd-contact-form select:hover,
.dd-contact-form textarea:hover {
  /* add 1px padding */
  padding-bottom: calc(var(--base-bottom-padding) + 1px);
  border-bottom: 2px solid var(--accent-color);
}

.dd-contact-form input:focus,
.dd-contact-form select:focus,
.dd-contact-form textarea:focus {
  padding-bottom: var(--base-bottom-padding);
  border-bottom: 3px solid white;
}

.dd-contact-form .dd-form-message {
  grid-column: 1 / -1; /* Span both columns */
}

@media (max-width: 1005px) {
  .dd-hamburger {
    display: flex;
  }

  .dd-header-bar {
    position: relative;
    justify-content: space-between;
    padding: 0 20px;
  }

  .dd-vertical-separator {
    display: none;
  }

  .dd-nav {
    display: none;
  }
}

@media (max-width: 925px) {
  .dd-footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 490px) {
  .dd-contact-form {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Scroll to Top Button */
.dd-scroll-to-top {
  display: none; /* Hidden by default, shown only on mobile */
  position: fixed;
  bottom: 54px;
  right: 27px;
  z-index: 999;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--accent-color);
  color: white;
  border: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    background-color 0.3s ease;
  pointer-events: none;
}

.dd-scroll-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1005px) {
  .dd-scroll-to-top {
    display: flex;
  }
}
