/* Header 1 - One Continuous Pill Design */

/* Header Container */
.site-header.header-1 {
  width: 100%;
  padding: var(--spacing-lg) var(--spacing-2xl);
  position: relative;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Hamburger Menu (Mobile Only) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--color-nav-bg);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

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

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

/* Logo Section (Gray) - Part of continuous pill on desktop */
.logo-section {
  background-color: var(--color-logo-bg);
  padding: var(--spacing-md) var(--spacing-2xl) var(--spacing-md) var(--spacing-xl);
  flex-shrink: 0;
  border-radius: var(--radius-full) 0 0 var(--radius-full);
  position: relative;
  display: flex;
  align-items: center;
  height: 100px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* One Continuous Pill Wrapper */
.header-pill-wrapper {
  display: flex;
  align-items: stretch;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  height: 100px;
  flex-grow: 1;
}

/* Pill Sections */
.pill-section {
  display: flex;
  align-items: center;
  padding: 0 var(--spacing-2xl);
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 70px;
  width: auto;
  display: block;
}

/* Navigation Section (Green) - Complete pill, sits between logo and CTA */
.nav-section {
  background-color: var(--color-nav-bg);
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--spacing-2xl);
  gap: var(--spacing-2xl);
  border-radius: var(--radius-full);
  position: relative;
  z-index: 2;
  margin: 0 -30px;
}

/* Navigation */
.main-navigation {
  flex-shrink: 0;
}

.nav-container {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl);
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--color-nav-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: var(--font-weight-normal);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 0.8;
}

.dropdown-icon {
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Dropdown Menu */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 20px);
  left: 0;
  background: var(--color-white);
  list-style: none;
  margin: 0;
  padding: var(--spacing-md) 0;
  min-width: 220px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.has-dropdown:hover .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown li {
  margin: 0;
}

.nav-dropdown a {
  display: block;
  padding: var(--spacing-sm) var(--spacing-lg);
  color: var(--color-nav-bg);
  text-decoration: none;
  font-size: 15px;
  font-weight: var(--font-weight-normal);
  transition: background-color 0.2s ease;
}

.nav-dropdown a:hover {
  background-color: var(--color-3);
}

/* Social Icons */
.social-icons {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  flex-shrink: 0;
}

.social-icons a {
  color: var(--color-nav-text);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.social-icons a:hover {
  opacity: 0.7;
}

.social-icons svg {
  width: 20px;
  height: 20px;
}

/* CTA Section (Beige) - Fuses into green on left, rounded right only */
.cta-section {
  background-color: var(--color-cta-bg);
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md) var(--spacing-2xl) var(--spacing-md) var(--spacing-2xl);
  flex-shrink: 0;
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  position: relative;
}

.phone-icon-circle {
  background-color: var(--color-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.phone-icon-circle a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-cta-icon);
}

.phone-icon-circle svg {
  width: 28px;
  height: 28px;
  fill: var(--color-cta-icon);  /* Use dedicated icon color for white circle */
}

.phone-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cta-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-cta-text);
  line-height: 1.2;
}

.cta-number {
  font-size: 17px;
  font-weight: var(--font-weight-bold);
  color: var(--color-cta-text);
  line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .nav-container {
    gap: var(--spacing-lg);
  }

  .nav-section {
    gap: var(--spacing-lg);
    padding: 0 var(--spacing-lg);
  }

  .social-icons {
    gap: var(--spacing-md);
  }

  .nav-link {
    font-size: 15px;
  }
}

@media (max-width: 1024px) {
  .hamburger {
    display: flex;
  }

  .site-header.header-1 {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .header-container {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
  }

  /* Logo stays visible and centered */
  .logo-section {
    width: auto;
    height: auto;
    border-radius: var(--radius-full);
    margin: 0;
    padding: var(--spacing-md) var(--spacing-xl);
    background-color: var(--color-logo-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    justify-content: center;
  }

  .logo-img {
    height: 60px;
  }

  /* Menu wrapper (nav + cta only) */
  .header-pill-wrapper {
    flex-direction: column;
    height: auto;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 350px;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: none;
    flex-grow: 0;
  }

  .header-pill-wrapper.active {
    max-height: 800px;
    opacity: 1;
    visibility: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .pill-section {
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    margin: 0;
    z-index: auto;
  }

  .nav-section {
    flex-direction: column;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
  }

  .nav-container {
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.1);
    margin-top: var(--spacing-sm);
    display: none;
  }

  .has-dropdown:hover .nav-dropdown,
  .has-dropdown:focus-within .nav-dropdown {
    display: block;
  }

  .nav-dropdown a {
    color: var(--color-nav-text);
    padding: var(--spacing-sm) var(--spacing-md);
  }

  .nav-dropdown a:hover {
    background-color: rgba(255, 255, 255, 0.15);
  }

  .cta-section {
    justify-content: center;
    border-radius: var(--radius-md);
  }
}

@media (min-width: 1025px) {
  .hamburger {
    display: none !important;
  }

  .header-pill-wrapper {
    display: flex !important;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: static !important;
    width: auto !important;
  }
}

@media (max-width: 768px) {
  .site-header.header-1 {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .logo-img {
    height: 50px;
  }

  .nav-link {
    font-size: 14px;
  }

  .phone-icon-circle {
    width: 50px;
    height: 50px;
  }

  .phone-icon-circle svg {
    width: 24px;
    height: 24px;
  }

  .cta-label {
    font-size: 13px;
  }

  .cta-number {
    font-size: 15px;
  }
}
