/* Custom styles for FeatherLight static website */

/* Smooth scrolling for navigation */
html {
  scroll-behavior: smooth;
}

/* Custom focus styles */
input:focus,
textarea:focus,
button:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(246, 183, 60, 0.1);
}

/* Button hover effects */
button,
a {
  transition: all 0.3s ease;
}

/* Notion form integration styles */
.notion-form-container {
  position: relative;
  background: #fff;
}

.notion-form-iframe {
  border: none;
  width: 100%;
  min-height: 600px;
  background: transparent;
}

/* Override Notion form styles to match FeatherLight theme */
.notion-form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1;
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #f6b73c;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e6a532;
}

/* Ensure smooth scrolling offset for fixed header */
section {
  scroll-margin-top: 80px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .notion-form-iframe {
    min-height: 500px;
  }

  /* Adjust contact section layout on mobile */
  #contact .grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .notion-form-iframe {
    min-height: 450px;
  }

  /* Stack hero buttons on very small screens */
  .hero-buttons {
    flex-direction: column;
  }
}

/* Loading animation for sections */
.animate-fade-in {
  animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive image styles */
img {
  max-width: 100%;
  height: auto;
}

/* Enhanced mobile menu */
#mobile-menu {
  transition: all 0.3s ease;
}

#mobile-menu.hidden {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
}

#mobile-menu:not(.hidden) {
  opacity: 1;
  max-height: 200px;
}

/* Scroll to top button styles */
.scroll-to-top {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced card hover effects */
.border-feather-amber\/30:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(246, 183, 60, 0.1);
}

/* Notion form responsive adjustments */
@media (max-width: 1024px) {
  .notion-form-container {
    margin: 0 -1rem;
  }
}

/* Print styles */
@media print {
  .notion-form-container,
  #mobile-menu-button,
  .scroll-to-top {
    display: none !important;
  }

  body {
    background: white !important;
  }

  section {
    page-break-inside: avoid;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .bg-feather-amber {
    background-color: #000 !important;
    color: #fff !important;
  }

  .text-feather-amber {
    color: #000 !important;
  }

  .border-feather-amber {
    border-color: #000 !important;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .animate-fade-in {
    animation: none;
    opacity: 1 !important;
    transform: none !important;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}

/* Focus visible for better accessibility */
button:focus-visible,
a:focus-visible {
  outline: 2px solid #f6b73c;
  outline-offset: 2px;
}

/* Ensure proper contrast for text */
.text-gray-600 {
  color: #4b5563;
}

.text-gray-700 {
  color: #374151;
}

/* Enhanced iframe loading state */
.notion-form-iframe {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

.notion-form-iframe[data-loaded="true"] {
  background: transparent;
  animation: none;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
