/* =======================================
   1. Base / Reset
======================================= */
html {
  scroll-behavior: smooth;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Lato', system-ui, sans-serif;
  color: #373A36;
  background-color: #DDE5ED;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

/* =======================================
   2. Typography
======================================= */
h1, h2, h3 {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  color: #007A33;
  margin: 0;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0.5rem 0;
}

a {
  text-decoration: none;
  color: #373A36;
}

dl {
  display: grid;
  grid-template-columns: max-content 1fr;
}

dt {
  font-weight: bolder;
}

/* =======================================
   3. Layout / Sections
======================================= */
div, section, footer {
  padding: 2rem;
}

.bgimg-1 {
  height: calc(100vh - 3.5rem);
  background-image: url("/images/bernardo-lorena-ponte-cEp2Tow6XKk-unsplash.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
}

.headercolor {
  color: #DDE5ED;
}

/* =======================================
   4. Navigation
======================================= */
.topnav {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 1.5rem;
  background-color: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  z-index: 1000;
  padding: 1.5rem 2rem;
}

.topnav a {
  color: #DDE5ED;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.3s ease;
}

.topnav a:hover {
  color: #ffffff;
}

/* =======================================
   5. Section Color
======================================= */

#contact {
  background-color: #A1D884;
}

footer {
  background-color: #007A33;
  color: #DDE5ED;
  text-align: right;
}

/* =======================================
   6. Responsive Adjustments
======================================= */
@media (max-width: 768px) {
  .topnav {
    overflow-x: auto;
    white-space: nowrap;
    justify-content: flex-start;
    flex-wrap: nowrap;
    padding: 1rem;
    gap: 1rem;
    text-align: center;
    -webkit-overflow-scrolling: touch;
  }

  .topnav a {
    display: inline-block;
    flex-shrink: 0;
    font-size: 0.95rem;
    padding: 0.25rem 0.5rem;
  }

  .bgimg-1 {
    height: calc(100vh - 4rem);
  }

  dl {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  dt, dd {
    grid-column: 1 / -1;
  }

  dt {
    margin-bottom: 0.25rem;
  }
  .topnav::after {
  content: '';
  flex-shrink: 0;
  width: 1rem;
  }
}
