/* Header-2: Site-2 (Stouffville Snow Removal Masters) */
/* Two-row header: top contact bar + main navigation */

/* Site-2 Specific Colors */
:root {
  --site2-accent: rgb(120, 104, 230);      /* Purple/blue accent */
  --site2-dark: rgba(26, 27, 31, 1);       /* Dark gray/black */
  --site2-text: #232325;                   /* Dark text */
  --site2-hover: rgb(45, 46, 50);          /* Button hover */
}

.header-2 {
  width: 100%;
  position: relative;
  z-index: 1000;
}

/* ===========================
   TOP BAR
   =========================== */

.header-2__top-bar {
  background: var(--color-white);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

.header-2__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

/* Social Icons */
.header-2__social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-2__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--site2-accent);
  transition: all 0.3s ease;
  text-decoration: none;
}

.header-2__social-link:hover {
  color: var(--site2-hover);
  transform: translateY(-2px);
}

.header-2__social-icon {
  width: 18px;
  height: 18px;
}

/* Contact Items */
.header-2__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-2__contact-icon {
  width: 24px;
  height: 24px;
  color: var(--site2-accent);
  flex-shrink: 0;
}

.header-2__contact-link {
  color: var(--site2-accent);
  text-decoration: none;
  font-size: 15px;
  font-weight: 400;
  font-family: 'Mulish', sans-serif;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.header-2__contact-link:hover {
  color: var(--site2-hover);
}

/* ===========================
   MAIN HEADER
   =========================== */

.header-2__main {
  background: var(--color-white);
  padding: 20px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Logo */
.header-2__logo {
  flex-shrink: 0;
}

.header-2__logo img {
  height: 60px;
  width: auto;
  display: block;
}

/* Navigation */
.header-2__nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.header-2__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 40px;
}

.header-2__menu-item {
  position: relative;
}

.header-2__menu-link {
  color: var(--site2-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Mulish', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.header-2__menu-link:hover {
  color: var(--site2-accent);
}

.header-2__dropdown-icon {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.header-2__menu-item--has-dropdown:hover .header-2__dropdown-icon {
  transform: rotate(180deg);
}

/* Submenu */
.header-2__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.header-2__menu-item--has-dropdown:hover .header-2__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-2__submenu-item {
  margin: 0;
}

.header-2__submenu-link {
  display: block;
  padding: 12px 20px;
  color: var(--site2-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  font-family: 'Mulish', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}

.header-2__submenu-link:hover {
  background: rgba(120, 104, 230, 0.05);
  color: var(--site2-accent);
  padding-left: 25px;
}

/* Hamburger Menu */
.header-2__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.header-2__hamburger span {
  width: 25px;
  height: 3px;
  background: var(--site2-text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header-2__hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

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

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

/* CTA Button */
.header-2__cta {
  flex-shrink: 0;
}

.header-2__cta-button {
  display: inline-block;
  padding: 0;
  background: #e4fbff;
  border: 1px solid #b8b5ff;
  border-radius: 50px;
  color: var(--site2-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  line-height: 22px;
  height: 54px;
  min-width: 240px;
  max-width: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.header-2__cta-button:hover {
  background: var(--site2-accent);
  border-color: var(--site2-accent);
  color: var(--color-white);
}

/* ===========================
   RESPONSIVE - TABLET
   =========================== */

@media (max-width: 1024px) {
  .header-2__top-bar {
    padding: 10px 0;
  }

  .header-2__container {
    padding: 0 30px;
    gap: 20px;
  }

  .header-2__social {
    gap: 12px;
  }

  .header-2__contact-link {
    font-size: 14px;
  }

  .header-2__menu {
    gap: 30px;
  }

  .header-2__menu-link {
    font-size: 14px;
  }

  .header-2__cta-button {
    padding: 10px 24px;
    font-size: 15px;
  }
}

/* ===========================
   RESPONSIVE - MOBILE
   =========================== */

@media (max-width: 768px) {
  /* Top Bar - Stack Items */
  .header-2__top-bar {
    padding: 8px 0;
  }

  .header-2__container {
    padding: 0 20px;
    flex-wrap: wrap;
  }

  .header-2__top-bar .header-2__container {
    justify-content: center;
    gap: 15px;
  }

  .header-2__social {
    order: 1;
    flex: 1 1 100%;
    justify-content: center;
    gap: 15px;
  }

  .header-2__contact-item {
    order: 2;
    flex: 1 1 auto;
    justify-content: center;
  }

  .header-2__contact-link {
    font-size: 13px;
  }

  .header-2__contact-icon {
    width: 20px;
    height: 20px;
  }

  /* Main Header */
  .header-2__main {
    padding: 15px 0;
  }

  .header-2__main .header-2__container {
    position: relative;
  }

  .header-2__logo {
    flex: 1;
  }

  .header-2__logo img {
    height: 50px;
  }

  /* Hamburger Menu */
  .header-2__hamburger {
    display: flex;
    order: 3;
  }

  /* Navigation Menu - Mobile Overlay */
  .header-2__nav {
    order: 2;
  }

  .header-2__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 80px 20px 20px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
  }

  .header-2__menu.active {
    right: 0;
  }

  .header-2__menu-item {
    width: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .header-2__menu-link {
    width: 100%;
    padding: 15px 0;
    font-size: 14px;
  }

  /* Submenu - Mobile */
  .header-2__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0 0 10px 20px;
    min-width: auto;
    background: rgba(120, 104, 230, 0.02);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .header-2__menu-item--has-dropdown.active .header-2__submenu {
    max-height: 300px;
  }

  .header-2__submenu-link {
    padding: 10px 0;
    font-size: 13px;
  }

  .header-2__submenu-link:hover {
    background: transparent;
    padding-left: 0;
  }

  /* Mobile Submenu Toggle */
  .header-2__menu-item--has-dropdown .header-2__menu-link {
    cursor: pointer;
  }

  /* CTA Button - Mobile */
  .header-2__cta {
    order: 4;
    width: 100%;
    margin-top: 15px;
  }

  .header-2__cta-button {
    width: 100%;
    max-width: 100%;
    min-width: auto;
    height: 50px;
    font-size: 15px;
  }

  /* Body scroll lock when menu open */
  body.header-2-menu-open {
    overflow: hidden;
  }

  /* Overlay */
  .header-2__menu.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
  }
}

@media (max-width: 480px) {
  .header-2__logo img {
    height: 40px;
  }

  .header-2__contact-link {
    font-size: 12px;
  }

  .header-2__menu {
    width: 90%;
  }
}
