/* Custom styles for The Nook - complementary to Tailwind */

/* Smooth scroll offset for fixed navbar */
section[id] {
  scroll-margin-top: 80px;
}

/* Geometric shape animations */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0) rotate(15deg); }
  50% { transform: translateY(-15px) rotate(25deg); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.05); }
}

.float-1 { animation: float 6s ease-in-out infinite; }
.float-2 { animation: float2 7s ease-in-out infinite; }
.float-3 { animation: float3 5s ease-in-out infinite; }

/* Reveal animations - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Button hover effects */
.btn-primary {
  background: #f59e0b;
  color: #1a1a1a;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 60px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary:hover {
  background: #92400e;
  color: #fff;
  transform: scale(1.05);
}

.btn-secondary {
  background: transparent;
  color: #831443;
  border: 3px solid #831443;
  font-weight: 700;
  padding: 13px 37px;
  border-radius: 60px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: #831443;
  color: #fff;
  transform: scale(1.05);
}

.btn-white {
  background: #fff;
  color: #831443;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 60px;
  transition: all 0.3s ease;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-white:hover {
  background: #fbcfe8;
  transform: scale(1.05);
}

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

.menu-card:hover {
  transform: translateY(-4px);
}

/* Image zoom */
.img-zoom {
  overflow: hidden;
  border-radius: 16px;
}

.img-zoom img {
  transition: transform 0.6s ease;
}

.img-zoom:hover img {
  transform: scale(1.08);
}

/* Form inputs */
.form-input {
  border: 2px solid #e5d4e8;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  width: 100%;
  background: #fff;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
}

.form-input:focus {
  outline: none;
  border-color: #831443;
}

.form-input::placeholder {
  color: #b8a0b4;
}

.form-input:hover {
  border-color: #f9a8d4;
}

/* Form success */
.form-success {
  display: none;
  background: #dcfce7;
  border: 2px solid #86efac;
  border-radius: 12px;
  padding: 16px 20px;
  color: #166534;
  font-weight: 600;
  margin-top: 16px;
}

.form-success.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #831443;
  border-radius: 5px;
}

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

/* Mobile menu */
.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.4s ease;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Mobile link animation */
.mobile-link {
  animation: slideIn 0.3s ease forwards;
  opacity: 0;
}

.mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-link:nth-child(5) { animation-delay: 0.3s; }

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

/* Hamburger */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: #831443;
  margin: 5px 0;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Testimonial cards */
.testimonial-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: 0 12px 40px rgba(131,20,67,0.12);
}

/* Section divider */
.section-divider {
  height: 6px;
  background: linear-gradient(90deg, #831443, #f59e0b, #831443);
}

/* Navbar scroll effect */
.navbar.scrolled {
  background: rgba(255,255,255,0.95) !important;
  box-shadow: 0 4px 30px rgba(131,20,67,0.1);
}

/* Geometric background patterns */
.geo-pattern {
  background-image: radial-gradient(circle, rgba(131,20,67,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Focus visible for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Print styles */
@media print {
  .navbar, .mobile-menu, .hamburger { display: none; }
  body { color: #000; background: #fff; }
  .hero-grid { min-height: auto; }
}
