/**
 * Header + mobile drawer — loaded after site.css so layout stays correct
 * even if Tailwind utilities are missing or cached.
 *
 * Note: keep page-critical rules between .glass-nav and .site-page-start;
 * some browsers stop parsing this file after .site-page-start.
 */

.glass-nav {
  background: linear-gradient(90deg, #065f46 0%, #047857 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-nav-wa {
  background: #ffffff;
  color: #047857;
  border-radius: 9999px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
}

.btn-nav-wa:hover {
  background: #ecfdf5;
  color: #065f46;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.2);
}

.btn-nav-wa i {
  color: #047857;
}

header.site-header.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
  box-sizing: border-box;
  display: block !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible;
  border: none !important;
  border-bottom: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.site-header::before,
.site-header::after {
  display: none !important;
  border: none !important;
  box-shadow: none !important;
}

header.site-header.glass-nav > nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between;
  width: 100%;
  height: auto !important;
  min-height: 0;
  margin: 0;
  padding-top: 0.625rem !important;
  padding-bottom: 0.625rem !important;
}

@media (min-width: 1024px) {
  header.site-header.glass-nav > nav {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
  }
}

.site-header-brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  gap: 0.1rem;
}

.site-header-brand .site-header-title {
  line-height: 1.1;
}

.site-header-brand .site-header-tagline {
  line-height: 1.2;
}

.site-header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

header.site-header > nav > * {
  flex-shrink: 0;
}

.site-nav-links {
  flex-wrap: nowrap;
  align-items: center;
}

.site-nav-links a {
  white-space: nowrap;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  color: #fef3c7;
  font-weight: 500;
}

.site-nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fde68a;
}

.site-nav-links a.text-amber-300 {
  color: #fcd34d;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
}

@media (max-width: 1023.98px) {
  .site-nav-links {
    display: none !important;
  }

  #mobileMenuBtn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: #fef3c7;
    font-size: 1.5rem;
    line-height: 1;
  }

  .btn-nav-wa {
    min-height: 44px;
  }
}

@media (min-width: 1024px) {
  .site-nav-links {
    display: flex !important;
  }

  #mobileMenuBtn {
    display: none !important;
  }
}

#menuBackdrop {
  position: fixed;
  top: var(--site-header-offset, 64px);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 55;
  display: none;
}

#menuBackdrop.show {
  display: block;
}

#mobileMenu {
  position: fixed;
  top: var(--site-header-offset, 64px);
  left: 0;
  width: min(50%, 320px);
  max-height: calc(100vh - var(--site-header-offset, 64px));
  background: linear-gradient(180deg, #047857 0%, #065f46 35%, #064e3b 100%);
  border-right: 1px solid rgba(6, 95, 70, 0.95);
  border-top: none;
  padding: 0;
  margin: 0;
  z-index: 60;
  overflow-y: auto;
  display: none !important;
  box-shadow: 8px 8px 24px rgba(0, 0, 0, 0.28);
  border-bottom-right-radius: 24px;
}

#mobileMenu.show {
  display: block !important;
}

#mobileMenu a {
  display: block;
  padding: 16px 24px;
  color: #fef3c7;
  margin: 0;
  transition: background 0.2s ease, color 0.2s ease;
  border-bottom: 1px solid rgba(254, 243, 199, 0.12);
  text-decoration: none;
}

#mobileMenu a:last-of-type {
  border-bottom: none;
}

#mobileMenu a:hover {
  background: rgba(0, 0, 0, 0.18);
  color: #fde68a;
}

#mobileMenu a.text-amber-300 {
  color: #fcd34d;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
}

body[data-menu-open="true"] {
  overflow: hidden;
}

body[data-menu-open="true"] * {
  touch-action: pan-x;
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .site-header-title {
    font-size: 1.5rem !important;
  }
}

body.has-site-header {
  padding-top: var(--site-header-offset, 64px) !important;
}

@media (min-width: 1024px) {
  body.has-site-header {
    padding-top: var(--site-header-offset, 72px) !important;
  }
}

/* Page layout + homepage visuals (must stay before .site-page-start) */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Merriweather', Georgia, serif;
  font-weight: 700;
}

.warm-bg {
  background: linear-gradient(135deg, #fffbf5 0%, #fff9f3 100%);
}

.hero-gradient {
  background: linear-gradient(135deg, #fffbf5 0%, #f0fdf4 100%);
}

.personal-badge {
  background: linear-gradient(135deg, #E0E7FF 0%, #F0E7FE 100%);
}

.warm-accent {
  background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
}

.btn-warm {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  border-radius: 9999px;
  transition: all 0.3s ease;
}

.btn-warm:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

.btn-primary {
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  border-radius: 50px;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.section-divider {
  position: relative;
  overflow: hidden;
}

.animate-on-scroll {
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-hidden {
  opacity: 0;
  transform: translateY(20px);
}

.animate-visible {
  opacity: 1;
  transform: translateY(0);
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
}

#backToTop {
  transition: opacity 0.3s ease;
}

.site-page-start {
  margin-top: 0 !important;
}
