/* =================================================================
   PPT HEADER COMPONENT - Transparent/Solid Header
   ================================================================= */

/* ===== Header Container ===== */
.ppt-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 1rem 0;
  font-family: Manrope, "Manrope Fallback", system-ui, -apple-system, sans-serif;
  transform: translateY(0);
}

/* Hide header when scrolling down */
.ppt-header.is-hidden {
  transform: translateY(-100%);
}

/* Default state — light frosted glass */
.ppt-header {
  background: rgba(255, 255, 255, 0.633);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Scrolled / hover state — light frosted glass */
.ppt-header.is-scrolled,
.ppt-header:hover {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 6px 24px rgba(0, 0, 0, 0.07);
}

.ppt-header__container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* ===== Logo ===== */
.ppt-header__logo {
  flex-shrink: 0;
}

.ppt-header__logo-link {
  display: flex;
  align-items: center;
  position: relative;
  height: 56px;
}

.ppt-header__logo-light,
.ppt-header__logo-dark {
  height: 50px;
  width: auto;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
}

/* Show dark logo by default (whitish header) */
.ppt-header__logo-light {
  opacity: 0;
}

.ppt-header__logo-dark {
  opacity: 1;
}

/* ===== Navigation ===== */
.ppt-header__nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.ppt-header__menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ppt-header__menu-item {
  position: relative;
}

.ppt-header__link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 0.5rem 0;
  position: relative;
}

/* Link colors — dark on whitish header */
.ppt-header__link {
  color: #0f172a;
  text-shadow: none;
  font-weight: 600;
}

/* Hover effect */
.ppt-header__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--wp--preset--color--accent-erp);
  transition: width 0.3s ease;
}

.ppt-header__link:hover::after {
  width: 100%;
}

/* Dropdown icon */
.ppt-header__dropdown-icon {
  transition: transform 0.2s ease;
}

.ppt-header__menu-item--has-dropdown:hover .ppt-header__dropdown-icon {
  transform: rotate(180deg);
}

/* ===== Submenu (Dropdown) ===== */
.ppt-header__submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 250px;
  padding: 0.75rem 0;
  margin: 0;
  list-style: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.ppt-header__menu-item--has-dropdown:hover .ppt-header__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ppt-header__submenu li {
  margin: 0;
}

.ppt-header__submenu a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
}

.ppt-header__submenu a:hover {
  background: #f8fafc;
  color: var(--wp--preset--color--accent-erp);
  padding-left: 2rem;
}

/* ===== Contact / Company Button ===== */
.ppt-header__cta {
  flex-shrink: 0;
}

/* Company dropdown in CTA area */
.ppt-header__cta--company {
  position: relative;
}

.ppt-header__cta--company .ppt-header__submenu {
  right: 0;
  left: auto;
  min-width: 180px;
  top: calc(100% + 6px);
}

.ppt-header__cta--company:hover .ppt-header__submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ppt-header__contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--wp--preset--color--brand-secondary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.ppt-header__contact-btn:hover {
  background: #64a2f2;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

.ppt-header__contact-btn svg {
  transition: transform 0.3s ease;
}

.ppt-header__contact-btn:hover svg {
  transform: translateX(4px);
}

/* ===== Mobile Menu Toggle ===== */
.ppt-header__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.ppt-header__hamburger {
  width: 24px;
  height: 2px;
  background: #0c1222;
  transition: all 0.3s ease;
}

/* Mobile menu open state */
.ppt-header__mobile-toggle[aria-expanded="true"] .ppt-header__hamburger:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.ppt-header__mobile-toggle[aria-expanded="true"] .ppt-header__hamburger:nth-child(2) {
  opacity: 0;
}

.ppt-header__mobile-toggle[aria-expanded="true"] .ppt-header__hamburger:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
  .ppt-header__menu {
    gap: 1.5rem;
  }

  .ppt-header__link {
    font-size: 0.9375rem;
  }
}

@media (max-width: 768px) {
  .ppt-header__mobile-toggle {
    display: flex;
  }

  .ppt-header__nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    padding: 1rem 2rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .ppt-header__nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .ppt-header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .ppt-header__menu-item {
    width: 100%;
    border-bottom: 1px solid #e2e8f0;
  }

  .ppt-header__link {
    color: #0f172a;
    padding: 1rem 0;
    width: 100%;
  }

  .ppt-header__link::after {
    display: none;
  }

  .ppt-header__submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding-left: 1rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .ppt-header__menu-item--has-dropdown.is-open .ppt-header__submenu {
    max-height: 500px;
  }

  .ppt-header__submenu a {
    padding: 0.75rem 0;
  }

  .ppt-header__submenu a:hover {
    background: none;
    padding-left: 0.5rem;
  }

  .ppt-header__cta {
    display: flex;
    align-items: center;
  }

  .ppt-header__contact-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }
}

/* ===== Accessibility ===== */
.ppt-header__link:focus-visible,
.ppt-header__contact-btn:focus-visible,
.ppt-header__mobile-toggle:focus-visible {
  outline: 2px solid var(--wp--preset--color--accent-erp);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-link:focus {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.5rem;
  background: var(--wp--preset--color--accent-erp);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0.375rem;
}
