/* ==========================================================================
   APONIA.RO - CANONICAL RESPONSIVE HEADER & MOBILE NAVIGATION
   Zero external dependencies. Accessible, high-contrast, touch-optimized.
   ========================================================================== */

.aponia-header {
  background: #ffffff;
  border-bottom: 1px solid #e2ded4;
  width: 100%;
  position: relative;
  z-index: 1000;
  box-sizing: border-box;
}

.aponia-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  gap: 16px;
}

.aponia-logo {
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a2e22;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.aponia-logo span {
  color: #2e5c46;
}

/* DESKTOP NAV */
.aponia-desktop-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 16px;
}

.aponia-desktop-nav a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #2d3748;
  transition: color 0.15s ease;
}

.aponia-desktop-nav a.highlight {
  color: #2e5c46;
  font-weight: 600;
}

.aponia-desktop-nav a:hover {
  color: #2e5c46;
}

/* RIGHT ACTIONS (Desktop) */
.aponia-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.aponia-lang-switch {
  font-size: 13px;
  color: #718096;
  white-space: nowrap;
}

.aponia-lang-switch a {
  color: #718096;
  text-decoration: none;
}

.aponia-lang-switch strong {
  color: #1a2e22;
}

.aponia-header-cta {
  background: #2e5c46;
  color: #ffffff !important;
  padding: 9px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
  transition: background-color 0.15s ease;
}

.aponia-header-cta:hover {
  background: #234735;
}

/* MOBILE CONTROLS */
.aponia-mobile-controls {
  display: none;
  align-items: center;
  gap: 14px;
}

.aponia-hamburger-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin: -6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a2e22;
  border-radius: 4px;
  width: 44px;
  height: 44px;
  -webkit-tap-highlight-color: transparent;
}

.aponia-hamburger-btn:focus-visible {
  outline: 2px solid #2e5c46;
}

.aponia-hamburger-icon {
  width: 24px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.aponia-hamburger-line {
  width: 100%;
  height: 2.2px;
  background-color: #1a2e22;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* Hamburger animation when active */
.aponia-hamburger-btn[aria-expanded="true"] .aponia-hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.aponia-hamburger-btn[aria-expanded="true"] .aponia-hamburger-line:nth-child(2) {
  opacity: 0;
}
.aponia-hamburger-btn[aria-expanded="true"] .aponia-hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* MOBILE DRAWER / FLYOUT */
.aponia-mobile-drawer {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid #e2ded4;
  padding: 1.25rem 1.5rem 1.75rem;
  box-shadow: 0 16px 32px rgba(26,46,34,0.08);
}

.aponia-mobile-drawer.is-open {
  display: block;
  animation: aponiaSlideDown 0.2s ease-out forwards;
}

@keyframes aponiaSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.aponia-mobile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem 0;
}

.aponia-mobile-menu-link {
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: #1a2e22;
  text-decoration: none;
  padding: 0.8rem 0.5rem;
  border-bottom: 1px solid #f3efe6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  box-sizing: border-box;
}

.aponia-mobile-menu-link.highlight {
  color: #2e5c46;
  font-weight: 700;
}

.aponia-mobile-menu-link:hover,
.aponia-mobile-menu-link:active {
  color: #2e5c46;
  background: #faf8f5;
  border-radius: 4px;
}

.aponia-mobile-drawer-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: #2e5c46;
  color: #ffffff !important;
  font-family: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.95rem 1.2rem;
  border-radius: 6px;
  text-decoration: none;
  box-sizing: border-box;
  margin-top: 0.5rem;
}

/* RESPONSIVE BREAKPOINT (< 960px) */
@media (max-width: 960px) {
  .aponia-desktop-nav {
    display: none !important;
  }
  .aponia-header-actions .aponia-header-cta {
    display: none !important;
  }
  .aponia-header-actions {
    display: none !important;
  }
  .aponia-mobile-controls {
    display: flex !important;
  }
}

@media (max-width: 480px) {
  .aponia-header-inner {
    padding: 12px 18px;
  }
  .aponia-logo {
    font-size: 20px;
  }
}

/* Clear Floating Action Button on mobile so it doesn't overlap Hero CTAs */
@media (max-width: 640px) {
  .floating-tihna-btn {
    bottom: 20px !important;
    right: 18px !important;
    width: 78px !important;
    height: 78px !important;
    padding: 4px !important;
    opacity: 0.94;
  }
  .floating-tihna-btn svg {
    width: 20px !important;
    height: 20px !important;
    margin-bottom: 2px !important;
  }
  .floating-tihna-btn span {
    font-size: 8px !important;
    line-height: 1.1 !important;
  }
  #hero {
    padding-bottom: 4rem !important;
  }
}

