/* Custom styles for G&M Peak Performance Academy */

html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background-color: rgba(196, 146, 58, 0.3);
  color: #fff;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0a0a0a;
}
::-webkit-scrollbar-thumb {
  background: #c4923a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a9752f;
}

/* Header scroll effect */
#header.scrolled {
  background-color: rgba(10, 10, 10, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* Smooth transitions for language switch */
[data-i18n] {
  transition: opacity 0.15s ease;
}

/* Form select dark styling */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

select option {
  background-color: #121212;
  color: #f3f4f6;
}

/* Focus states */
input:focus, textarea:focus, select:focus {
  outline: none;
}

/* Mobile menu animation */
#mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
#mobile-menu.open {
  max-height: 420px;
}

/* Prevent body scroll when mobile menu open */
body.menu-open {
  overflow: hidden;
}

/* Subtle animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Logo hover glow */
.logo-glow:hover {
  filter: drop-shadow(0 0 20px rgba(196, 146, 58, 0.3));
}

/* ========== MOBILE OPTIMISATIONS ========== */
/* Reduce vertical space on phones so the site feels tighter and more premium */

@media (max-width: 767px) {
  /* Tighter section padding */
  section {
    padding-top: 3.5rem !important;
    padding-bottom: 3.5rem !important;
  }

  /* Hero should not be full viewport height on mobile */
  #home {
    min-height: auto !important;
    padding-top: 5.5rem !important;
    padding-bottom: 2.5rem !important;
  }

  /* Smaller headings on mobile for better balance */
  h1 {
    font-size: 1.85rem !important;
    line-height: 1.25 !important;
  }

  h2 {
    font-size: 1.6rem !important;
    line-height: 1.3 !important;
  }

  /* Reduce large gaps */
  .gap-12 {
    gap: 2rem !important;
  }

  /* Make cards breathe less */
  .p-8 {
    padding: 1.25rem !important;
  }

  /* Founders photos a bit smaller */
  .w-48.h-48 {
    width: 8.5rem !important;
    height: 8.5rem !important;
  }

  /* Floating WhatsApp button slightly smaller and higher to avoid home indicator */
  .fixed.bottom-6.right-6 {
    bottom: 1.25rem;
    right: 1rem;
    width: 3.25rem;
    height: 3.25rem;
  }
}

/* Very small phones */
@media (max-width: 380px) {
  h1 {
    font-size: 1.65rem !important;
  }
}
