/* =========================================
   HEADER.CSS - REDESIGNED
   Desktop-first approach with mobile responsive
   ========================================= */

/* =========================================
   BASE HEADER STYLES (DESKTOP)
   ========================================= */

header {
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  height: 100px;
  box-sizing: border-box;
  margin: 0;
  background-color: inherit; /* Inherits from body background */
  z-index: 3002;
}

.header-container {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
}

.header-left {
  flex: 0 0 auto;
}

.header-right {
  flex: 0 0 auto;
}

/* =========================================
   LOGO AND BRANDING
   ========================================= */

.header-link {
  display: flex;
  align-items: center;
  cursor: pointer;
  text-decoration: none;
}

.site-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.site-title p {
  margin: 0;
  padding: 0;
  font-weight: bold;
  font-size: 21px;
  color: white;
  line-height: 1;
}

header img {
  height: 50px;
  width: auto;
  cursor: pointer;
  padding-right: 10px;
}

header a {
  text-decoration: none;
}

/* =========================================
   SEARCH BAR SECTION
   ========================================= */

.search-bar-section {
  width: 100%;
  background-color: inherit;
  padding: 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 0;
  position: relative;
  z-index: 1;
}

/* =========================================
   NAVIGATION CONTAINER
   ========================================= */

.header-nav-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */

/* Large tablets and small laptops (1240px and below) */
@media (max-width: 1240px) {
  .header-container {
    margin: 0 20px;
    width: calc(100% - 40px);
  }
}

/* Tablets (992px and below) */
@media (max-width: 992px) {
  header {
    height: 90px;
  }

  .site-title p {
    font-size: 19px;
  }

  header img {
    height: 50px;
  }
}

/* Small tablets and large phones (768px and below) */
@media (max-width: 768px) {
  header {
    height: 80px;
  }

  .header-container {
    margin: 0 15px;
    width: calc(100% - 30px);
  }

  .site-title p {
    font-size: 17px;
  }

  header img {
    height: 50px;
    padding-right: 8px;
  }
}

/* Small phones (480px and below) */
@media (max-width: 480px) {
  header {
    height: 70px;
  }

  .header-container {
    margin: 0 10px;
    width: calc(100% - 20px);
  }

  .site-title p {
    font-size: 15px;
  }

  header img {
    height: 50px;
    padding-right: 6px;
  }
}

/* Very small phones (375px and below) */
@media (max-width: 375px) {
  header {
    height: 65px;
  }

  .site-title p {
    font-size: 14px;
  }

  header img {
    height: 40px;
  }
}
