/* base styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /*      color variables */
  --primary-color: #1b5936;
  --secondary-color: #b9d9a3;
  --accent-color: #3f803c5b;
  --text-dark: #2b2d42;
  --text-light: white;
  --bg-light: #f8f9fa;
  --overlay-dark: rgba(0, 0, 0, 0.5);

  /* layout */
  --max-width: 1200px;
  --header-height: 70px;
}

body {
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}
.fixed-header {
  height: var(--header-height);
}

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

a {
  text-decoration: none;
  color: inherit;
}
p {
  font-size: 1.05rem;
}
.homePage-title {
  color: red;
}
ul {
  list-style: none;
}

/* header and navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--primary-color);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo img {
  height: 50px; /* Adjust this value based on your logo size */
  width: auto;
  display: block;
}

.logo-text {
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: bold;
  white-space: nowrap;
}

/* hambuger menu button */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background-color: var(--text-light);
  transition: all 0.3s ease;
  border-radius: 2px;
}
/* used :nth-child() to select/rotate the 3
lines on hamburger menu */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* mobile nav menu */
.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 250px;
  height: 100vh;
  background-color: #123d25;
  transition: right 0.3s ease;
  padding-top: calc(var(--header-height) + 2rem);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.2);
}

.nav.active {
  right: 0;
}

.nav-list {
  display: flex;
  flex-direction: column;
  padding: 30px;
  gap: 0;
}

.nav-item {
  display: block;
  margin: 10px;
  border-radius: 10px;
}

.nav-link {
  display: block;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  color: #123d25;
  background-color: #b9d9a3;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}
.nav-link:hover {
  transform: scale(1.08);
  background-color: #8fc46f;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 500px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  /* the video file has black bars baked in (45px top and bottom of 360px),
     so scale it up just enough to push them outside the hero */
  transform: translate(-50%, -50%) scale(1.35);
  object-fit: cover;
  z-index: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--overlay-dark);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: var(--text-light);
  padding: 2rem;
  max-width: 800px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--accent-color);
  color: var(--text-light);
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 5px;
}

.hero-cta:hover {
  background-color: #076304;
}
.donation-button {
  border-radius: 5px;
  background-color: rgba(255, 166, 0, 0.928);
  color: #333;
  margin: 10px;
}
.donation-button:hover {
  background-color: orange;
  color: #333;
}
.man-on-bench-image {
  width: 100%;
  max-width: 250px;
  margin: 0 auto;
  height: auto;
  border-radius: 8px;
}

/* main content */
.main {
  margin-top: 0;
}
.home-button-wrapper {
  display: flex;
  justify-content: center;
}
.home-donate-button {
  display: block;
  padding: 0.75rem 2.25rem;
  margin-top: 20px;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 20px;
  background-color: #f2b61f;
  color: #333;
  box-shadow: 0 6px 10px #0a0a0a;
  border: none;
  transition: transform 0.3s ease;
}
.home-donate-button:hover {
  transform: scale(1.1);
}

.home-donate-button:active {
  transform: scale(0.9);
}

.section {
  padding: 4rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}
.home-section {
  background-color: rgba(25, 89, 30, 0.767);
  padding: 1.5rem;
  padding-bottom: 4rem;
  padding-left: 2rem;
  border-radius: 10px;
}

/* white text on the green boxes for contrast (dark text failed at 2.9:1) */
.home-section .section-text:not(.contact-info) {
  color: #ffffff;
}

.section:nth-child(even) {
  background-color: var(--bg-light);
}

.section:nth-child(odd) {
  background-color: #ffffff;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary-color);
  text-align: center;
}
.enjoy-visit-text {
  width: 90%; /* mobile default */
  margin: 0 auto;
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 2rem;
}
.regulation-text {
  font-size: larger;
  font-weight: bold;
  color: green;
  text-decoration: underline;
  cursor: pointer;
}

.section-content {
  display: flex;
  flex-direction: column;
  /* background-color: rgb(20, 113, 20); */
  gap: 2rem;
}
.google-section {
  position: relative;
  margin: auto;
  border: 0;
  height: 500px;
  width: auto;
}
.map-title {
  text-decoration: underline;
}

.section-text {
  font-size: 1.1rem;
  line-height: 1.8;
}

.section-image {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.what-we-do {
  max-width: 100%;
  height: auto;
}
.google-maps {
  border: none;
  bottom: 0;
  height: 100%;
  left: 0;
  margin: 0;
  overflow: hidden;
  padding: 0;
  right: 0;
  top: 0;
  width: 100%;
}
.hashtags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 4rem;
}
.two-dogs-owner-image {
  width: 100%;
  margin: 0 auto;
  height: auto;
  border-radius: 8px;
}
/* about page*/
.bg-image {
  background-image: url("media/potts_park.png");
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
}

.dr-potts {
  color: rgb(255, 255, 255);
  background-color: rgba(9, 11, 8, 0.575);
  width: 80%;
  margin: 0 auto;
  margin-bottom: 1rem;
}
.potts-selfie {
  width: 40rem;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
}

.about-text {
  max-width: 40rem; /* same width as the photo above it */
  margin: 1.5rem auto;
  color: rgb(255, 255, 255);
  background-color: rgba(14, 10, 10, 0.536);
  padding: 1.25rem 1.5rem;
  border-radius: 8px;
}
/* contact page */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 17px;
  max-width: 600px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  align-self: center;
  text-align: center;
  color: black;
  background-color: rgba(5, 4, 4, 0.324);
  border-radius: 5px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.contact-anchor-text {
  color: rgb(67, 193, 98);
  cursor: pointer;
  text-decoration: underline;
}
.contact-anchor-text:hover {
  color: blue;
}
.contact-info strong {
  margin-right: 0.2em; /* adjust value as needed */
}
.contact-title {
  font-size: 2rem;
  width: 50%;
  margin: 0 auto;
  border-radius: 5px;
  color: rgb(232, 236, 233);
  background-color: rgba(5, 4, 4, 0.561);
  margin-bottom: 0.5rem;
  text-align: center;
}
.contact-titles {
  text-decoration: none;
  text-underline-offset: 4px;
  color: rgb(243, 237, 237);
}

.contact-title-message {
  color: rgb(220, 233, 220);
}
.contact-text {
  color: white;
}
.contact-text-fb {
  color: white;
  text-decoration: underline;
  text-underline-offset: 8px;
  line-height: 42px;
}

/* signup page */
.signup-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height));
  padding: 2rem 1rem;
}

.signup-box {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 900px;
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
/* ── donate overlay that shows credit card form ── */
.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.overlay.active {
  display: flex;
}

.overlay-content {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 460px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: overlaySlideIn 0.3s ease;
}
.get-involved-title-text {
  position: relative;
  margin: 20px auto 0.5rem auto;
  border-radius: 5px;
  padding: 0.75rem;
  font-size: 1.4rem;
  color: white;
  background-color: rgba(0, 0, 0, 0.66);
  width: 90%; /* mobile view fix */
  text-align: center;
}

.get-involved-subText {
  position: relative;
  margin: 0 auto 1.7rem auto;
  font-size: 1rem;
  color: white;
  width: 90%; /* mobile default */
}
.get-involved {
  color: #ffffff;
  line-height: 1.5;
  margin-top: 1rem;
}

@keyframes overlaySlideIn {
  from {
    transform: translateY(-30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.overlay-content h2 {
  font-size: 1.6rem;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-align: center;
}

.close-btn {
  position: absolute;
  top: 0.85rem;
  right: 1.1rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: #666;
  line-height: 1;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #111;
}

.overlay-content label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
  margin-top: 1rem;
  text-indent: 0;
}

.overlay-content input {
  width: 100%;
  padding: 11px 12px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.overlay-content input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(27, 89, 54, 0.12);
}

.donate-row {
  display: flex;
  gap: 1rem;
}

.donate-row > div {
  flex: 1;
}

.submit-btn {
  display: block;
  width: 100%;
  margin-top: 1.75rem;
  padding: 14px;
  background-color: #f2b61f;
  color: #333;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.submit-btn:hover {
  background-color: #e0a518;
  transform: translateY(-2px);
}

.submit-btn:active {
  transform: translateY(0);
}

.donate-success {
  display: none;
  text-align: center;
  padding: 1rem 0;
}

.donate-success h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 0.75rem;
}

.donate-success p {
  font-size: 1rem;
  text-indent: 0;
  color: var(--text-dark);
}

.donate-btn:hover,
.submit-btn:hover {
  opacity: 0.9;
}
/* Social Icons */
.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  background-color: rgb(35, 35, 184);
  color: white;
  border-radius: 50%;
  font-size: 1.2rem;
  transition:
    transform 0.3s ease,
    background-color 0.3s ease,
    box-shadow 0.3s ease;
}

.social-icon:hover {
  background-color: #1877f2; /* official Facebook blue */
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* left side of form */
.signup-image-side {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  object-fit: contain;
}

.signup-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signup-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.4)
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 3rem;
}

.signup-donate-btn {
  padding: 15px 40px;
  margin-top: 130px;
  background-color: #1b5936cc;
  color: var(--text-light);
  font-size: 1.3rem;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 14px 10px rgba(0, 0, 0, 0.3);
}

.signup-donate-btn:hover {
  background-color: #d1870f;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* form- right side */
.signup-form-side {
  padding: 3rem 2rem;
  background-color: #ffffff;
}

.signup-title {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  text-align: center;
}

.signup-subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2rem;
  text-align: center;
}

.signup-success {
  display: none;
  padding: 2rem;
  background-color: #d4edda;
  border: 2px solid #c3e6cb;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 2rem;
}

.signup-success.show {
  display: block;
}

.signup-success h2 {
  color: #155724;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}

.signup-success p {
  color: #155724;
  margin: 0;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.signup-form-group {
  display: flex;
  flex-direction: column;
}

.signup-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.signup-input {
  padding: 14px;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.signup-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(27, 89, 54, 0.1);
}

.signup-input.error {
  border-color: #dc3545;
}

.signup-error {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.signup-error.show {
  display: block;
}

.signup-submit-btn {
  width: 100%;
  padding: 16px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 6px;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
  margin-top: 2.5rem;
}

.signup-submit-btn:hover {
  background-color: #143d26;
  transform: translateY(-2px);
}

.signup-submit-btn:active {
  transform: translateY(0);
}

/* form */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
}

.form-label.required::after {
  content: " *";
  color: #dc3545;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  font-family: inherit;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(27, 89, 54, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #dc3545;
}

.error-message {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.error-message.show {
  display: block;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-submit {
  width: 100%;
  padding: 15px;
  background-color: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    transform 0.2s ease;
}

.form-submit:hover {
  background-color: #143d26;
  transform: translateY(-2px);
}

.form-submit:active {
  transform: translateY(0);
}

.success-message {
  display: none;
  padding: 2rem;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  border-radius: 5px;
  color: #155724;
  text-align: center;
  margin-bottom: 2rem;
}

.success-message.show {
  display: block;
}

/* footer */
.hashtags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hashtags a {
  padding: 6px 12px;
  background-color: rgb(193, 230, 193);
  color: var(--primary-color);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.hashtags a:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.footer {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 3rem 1rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  text-align: center;
}

.footer-section {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.95rem;
  line-height: 1.6;
  text-indent: 0px;
}

.footer-link {
  color: var(--secondary-color);
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
}
.footer-anchors {
  color: rgb(152, 233, 152);
  text-decoration: underline;
}
.footer-anchors:hover {
  color: blue;
}
.footer-fb-icon {
  display: flex;
  align-items: center;
  justify-content: flex;
}
.contact-link-title {
  color: rgb(235, 240, 236);
  font-size: larger;
}

/* spacing variables */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.text-center {
  text-align: center;
}
/* mobile responsive variables */
.mt-sm {
  margin-top: 1rem;
}
.mt-md {
  margin-top: 2rem;
}
.mt-lg {
  margin-top: 3rem;
}

.mb-sm {
  margin-bottom: 1rem;
}
.mb-md {
  margin-bottom: 2rem;
}
.mb-lg {
  margin-bottom: 3rem;
}

/* tablet screens */
@media screen and (min-width: 768px) {
  :root {
    --header-height: 80px;
  }
  /* navbar background color on desktop*/
  .header {
    background-color: #1b5936;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .section {
    padding: 5rem 2rem;
  }

  .section-content {
    flex-direction: row;
    align-items: center;
  }

  .section-content.reverse {
    flex-direction: row-reverse;
  }

  .enjoy-visit-text {
    width: 50%;
  }

  .section-text,
  .section-image {
    flex: 1;
  }
  .section-content.reverse {
    align-items: center;
  }

  .section-content.reverse .section-text {
    flex: 60%;
  }

  .what-we-do-image {
    flex: 40%;
    max-width: 400px; /* prevents it from stretching too wide */
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .footer-section {
    flex: 1;
  }

  .form-row {
    flex-direction: row;
  }

  .form-row .form-group {
    flex: 1;
  }

  /* signup page */
  .signup-box {
    flex-direction: row;
    min-height: 600px;
  }

  .signup-image-side {
    width: 50%;
    height: auto;
  }

  .signup-image-overlay {
    align-items: center;
    padding-bottom: 0;
  }

  .signup-form-side {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-cta {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    transition:
      background-color 0.3s ease,
      transform 0.3s ease;
  }

  .hero-cta:hover {
    background-color: #076304;
    transform: translateX(-10px) translateY(-5px) scale(1);
  }
  .donation-button {
    border-radius: 5px;
    background-color: rgba(255, 166, 0, 0.928);
    color: #333;
    transition: transform 0.3s ease;
    margin-left: 10px;
  }
  .donation-button:hover {
    transform: translateX(10px) translateY(-5px) scale(1);
    background-color: orange;
    color: #333;
  }
}

/* desktop */
@media screen and (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .nav {
    position: static;
    width: auto;
    height: auto;
    background-color: transparent;
    padding-top: 0;
    box-shadow: none;
  }

  .nav-list {
    flex-direction: row;
    gap: 1rem;
  }

  .nav-item {
    border-bottom: none;
    background-color: transparent;
    margin: 0;
  }

  .nav-link,
  .nav-link:visited {
    padding: 0.5rem 0.25rem;
    border-radius: 0;
    font-size: 1rem;
    color: var(--text-light);
    background-color: transparent;
    border-bottom: 2px solid transparent;
  }

  .nav-link:hover,
  .nav-link.active {
    transform: none;
    background-color: transparent;
    box-shadow: none;
    border-bottom-color: var(--secondary-color);
  }

  /* fixed backgrounds only on desktop; phones fall back badly */
  .bg-image {
    background-attachment: fixed;
  }

  .section {
    padding: 5rem 3rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .hero-title {
    font-size: 4rem;
  }
}

/* large desktops */
@media screen and (min-width: 1440px) {
  .container,
  .section {
    padding-left: 4rem;
    padding-right: 4rem;
  }
}

/* Z-Layout for regulations page */
/* in mobile stacks vertically */
.z-layout,
.z-layout-reverse {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* tablet and up is the z layout */
@media screen and (min-width: 768px) {
  .z-layout {
    flex-direction: row;
    align-items: center;
  }

  .z-layout-reverse {
    flex-direction: row-reverse;
    align-items: center;
  }

  .z-layout .section-text,
  .z-layout .section-image,
  .z-layout-reverse .section-text,
  .z-layout-reverse .section-image {
    flex: 1;
  }
}
