/* Header Styles */
.site-header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* New unified header layout similar to Rheal's design */
.unified-header {
  background-color: #fff;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}

.unified-header .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

/* Logo and Brand Name */
.logo-container {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-container img {
  height: 50px;
  width: auto;
}

.brand-name {
  color: #ffc107;
  font-size: 24px;
  font-weight: 700;
  margin-left: 10px;
  letter-spacing: 1px;
}

/* Header navigation centered like Rheal */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.menu a {
  color: #333;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s;
  padding: 10px 0;
}

.menu a:hover {
  color: #ffc107;
}

.menu a::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffc107;
  transition: width 0.3s;
}

.menu a:hover::after {
  width: 100%;
}

/* Phone number positioned on the right like Rheal's action buttons */
.phone-number {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.phone-number i {
  color: #ffc107;
  margin-right: 8px;
  font-size: 18px;
}

.phone-number a {
  color: #ffc107;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
  transition: color 0.3s;
}

.phone-number a:hover {
  color: #e6ac00;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.3s;
}

/* X animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: auto;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #fff;
  overflow: hidden;
  transition: height 0.3s ease;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transform-origin: top;
}

.mobile-menu.active {
  height: auto;
  max-height: calc(100vh - 60px);
  opacity: 1;
  visibility: visible;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.mobile-menu-container {
  padding: 30px 20px;
}

.mobile-menu-items {
  list-style: none;
  margin: 0 0 30px 0;
  padding: 0;
}

.mobile-menu-items li {
  margin-bottom: 20px;
}

.mobile-menu-items a {
  color: #333;
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

.mobile-menu-items a:hover {
  color: #ffc107;
}

.mobile-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

.mobile-phone i {
  color: #ffc107;
  margin-right: 8px;
  font-size: 20px;
}

.mobile-phone a {
  color: #ffc107;
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .unified-header .container {
    justify-content: space-between;
    gap: 10px; /* reduced gap to fit phone number */
  }

  .header-nav {
    display: none;
  }

  .phone-number {
    flex-shrink: 0;
  }

  .phone-number a {
    font-size: 16px; /* slightly smaller font size for mobile */
  }

  .phone-number i {
    font-size: 16px; /* slightly smaller icon for mobile */
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .brand-name {
    font-size: 20px;
  }

  .logo-container img {
    height: 40px;
  }
}

@media (max-width: 480px) {
  .unified-header .container {
    gap: 8px; /* even smaller gap for very small screens */
  }

  .brand-name {
    font-size: 18px;
  }

  .logo-container img {
    height: 35px;
  }

  .phone-number a {
    font-size: 14px; /* smaller phone number for very small screens */
  }

  .phone-number i {
    font-size: 14px; /* smaller icon for very small screens */
    margin-right: 6px;
  }
}
