/*--------------------------------------------------------------
# Custom Overrides for Joseph M. Siegmann Site
--------------------------------------------------------------*/

/* Add more spacing above section headers */
.section-header h3 {
  margin-top: 20px;
}

/* Fix header/navigation layout to prevent overlap */
#header {
  height: auto;
  min-height: 80px;
  padding: 15px 0;
}

#header.header-scrolled,
#header.header-pages {
  height: auto;
  min-height: 60px;
  padding: 10px 0;
}

/* Make logo smaller to fit better with navigation */
#header .logo h1 {
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: 2px;
  margin: 0;
  padding: 5px 0;
}

/* Adjust navigation menu to fit better */
.main-nav {
  margin-top: 5px;
}

.main-nav a {
  padding: 8px 12px;
  font-size: 13px;
}

/* Ensure intro section doesn't overlap with header */
#intro {
  padding-top: 220px;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 1200px) {
  #header .logo h1 {
    font-size: 24px;
    letter-spacing: 1px;
  }

  .main-nav a {
    padding: 8px 10px;
    font-size: 12px;
  }
}

@media (max-width: 991px) {
  #header .logo h1 {
    font-size: 28px;
  }

  #intro {
    padding-top: 180px;
  }
}

/* Add spacing for sections without the section-bg class */
section:not(#intro) {
  padding-top: 10px;
  padding-bottom: 60px;
}

/* Additional spacing for section-bg sections */
.section-bg {
  padding-top: 80px;
  padding-bottom: 80px;
}
