/* Custom styles for Heart on My Sleeve Movement */

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

/* Base font */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Display fonts */
h1, h2, h3, h4, .font-display {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Gold accent underline on hover */
.gold-underline {
  position: relative;
  display: inline-block;
}

.gold-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #d4901a;
  transition: width 0.3s ease;
}

.gold-underline:hover::after {
  width: 100%;
}

/* Button shine effect */
.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.btn-shine:hover::before {
  left: 125%;
}

/* Card hover lift */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* Navbar shadow on scroll */
.navbar-scrolled {
  box-shadow: 0 4px 20px rgba(26, 45, 71, 0.1);
}

/* Mobile menu transitions */
#mobile-menu {
  transition: max-height 0.35s ease, opacity 0.3s ease;
}

#mobile-menu.open {
  max-height: 400px;
  opacity: 1;
}

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

/* Scroll reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }

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

  .reveal-delay-1 { transition-delay: 0.12s; }
  .reveal-delay-2 { transition-delay: 0.24s; }
  .reveal-delay-3 { transition-delay: 0.36s; }
  .reveal-delay-4 { transition-delay: 0.48s; }
}

/* Default state: content is visible (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
  }
}

/* Image hover zoom */
img {
  transition: transform 0.4s ease;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
  background: #1a2d47;
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid #d4901a;
  outline-offset: 2px;
}

/* Form input transitions */
input:focus,
select:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(212, 144, 26, 0.15);
}

/* Mobile link hover */
.mobile-link {
  transition: background-color 0.2s ease;
}

.mobile-link:hover {
  background-color: rgba(26, 45, 71, 0.05);
}

/* Hero image subtle parallax on scroll */
.hero-img {
  will-change: transform;
}

/* Gold gradient text effect for special headings */
.gold-gradient-text {
  background: linear-gradient(135deg, #d4901a, #e5a832, #b07010);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Print styles */
@media print {
  .fixed, #navbar, .btn-shine::before {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    color: #000;
    text-decoration: underline;
  }
}
