/* BASE & RESET */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  overflow-x: hidden;
}

::selection {
  background-color: #047857;
  color: #fffbf0;
}

/* NAVBAR */
#navbar {
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  background: rgba(255, 251, 240, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(4, 78, 59, 0.1);
}

.nav-link {
  position: relative;
}

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

.nav-link:hover::after {
  width: 100%;
}

/* MOBILE MENU */
#mobile-menu {
  animation: slideDown 0.3s ease;
}

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

.mobile-nav-link {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.2s ease;
}

.mobile-nav-link:hover {
  padding-left: 12px;
  color: #047857;
}

.menu-line {
  transition: all 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
  transform: rotate(45deg) translate(4px, 4px);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
  opacity: 0;
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -4px);
  width: 1.4rem;
}

/* HERO GEO SHAPES */
.geo-shape {
  position: absolute;
  opacity: 0.08;
  pointer-events: none;
}

.shape-circle-1 {
  width: 400px;
  height: 400px;
  border: 3px solid #fff8e1;
  border-radius: 50%;
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
  width: 200px;
  height: 200px;
  background: #fff3cd;
  border-radius: 50%;
  bottom: 10%;
  left: 5%;
  animation: float 6s ease-in-out infinite reverse;
}

.shape-circle-3 {
  width: 120px;
  height: 120px;
  border: 3px solid #ffeeba;
  border-radius: 50%;
  top: 40%;
  right: 10%;
  animation: float 7s ease-in-out infinite;
}

.shape-square-1 {
  width: 100px;
  height: 100px;
  background: #fff3cd;
  top: 20%;
  left: 8%;
  transform: rotate(45deg);
  animation: spin 20s linear infinite;
}

.shape-square-2 {
  width: 60px;
  height: 60px;
  border: 3px solid #fff8e1;
  bottom: 25%;
  right: 15%;
  transform: rotate(30deg);
  animation: spin 15s linear infinite reverse;
}

.shape-triangle-1 {
  width: 0;
  height: 0;
  border-left: 60px solid transparent;
  border-right: 60px solid transparent;
  border-bottom: 100px solid #fff3cd;
  top: 60%;
  left: 15%;
  opacity: 0.06;
  animation: float 9s ease-in-out infinite;
}

.shape-ring-1 {
  width: 160px;
  height: 160px;
  border: 4px solid #fff8e1;
  border-radius: 50%;
  bottom: 15%;
  right: 5%;
  animation: float 5s ease-in-out infinite reverse;
}

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

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* SCROLL INDICATOR */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.scroll-mouse {
  width: 28px;
  height: 44px;
  border: 2px solid rgba(255, 251, 240, 0.5);
  border-radius: 14px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 4px;
  height: 10px;
  background: rgba(255, 251, 240, 0.7);
  border-radius: 2px;
  animation: scrollWheel 1.5s ease-in-out infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

/* MENU CARDS */
.menu-card {
  transform: translateY(0);
}

/* GALLERY */
.gallery-item {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 40px rgba(4, 78, 59, 0.15);
}

/* TESTIMONIAL CARDS */
.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  left: 24px;
  font-family: 'Fraunces', serif;
  font-size: 80px;
  font-weight: 900;
  color: #d1fae5;
  line-height: 1;
  pointer-events: none;
}

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

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

  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }
  .reveal-delay-5 { transition-delay: 0.5s; }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .shape-circle-1 { width: 250px; height: 250px; }
  .shape-circle-2 { width: 120px; height: 120px; }
  .shape-circle-3 { display: none; }
  .shape-square-1 { width: 60px; height: 60px; }
  .shape-square-2 { display: none; }
  .shape-triangle-1 { border-left-width: 40px; border-right-width: 40px; border-bottom-width: 65px; }
  .shape-ring-1 { width: 100px; height: 100px; }
}

/* FOCUS VISIBLE */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #047857;
  outline-offset: 2px;
  border-radius: 4px;
}
