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

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

body {
  overflow-x: hidden;
}

::selection {
  background: #B85C38;
  color: white;
}

/* ===== NAVIGATION ===== */
.nav {
  background: rgba(253, 248, 243, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(44, 36, 32, 0.06);
}

.nav.scrolled {
  box-shadow: 0 1px 20px rgba(44, 36, 32, 0.08);
}

.nav-link {
  position: relative;
}

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

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

/* Mobile menu */
.mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.menu-line:last-child {
  width: 1.4rem;
}

.mobile-menu-btn.active .menu-line:first-child {
  transform: rotate(45deg) translate(3px, 3px);
}

.mobile-menu-btn.active .menu-line:last-child {
  opacity: 0;
  transform: translateX(8px);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, #FDF8F3 0%, #F5E6DC 50%, #EDCCB4 100%);
  position: relative;
}

.hero-img-1 {
  animation: slowZoom 20s ease-in-out infinite alternate;
}

.hero-img-2 {
  animation: slowZoom 15s ease-in-out infinite alternate-reverse;
}

@keyframes slowZoom {
  from { transform: scale(1); }
  to { transform: scale(1.08); }
}

/* Scroll indicator */
.scroll-indicator {
  opacity: 0.6;
}

.scroll-dot {
  animation: scrollDown 1.5s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: 0; opacity: 0; }
  50% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: #B85C38;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: #9E4A2B;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(184, 92, 56, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: #2C2420;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  text-decoration: none;
  border: 2px solid rgba(44, 36, 32, 0.2);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  border-color: #B85C38;
  color: #B85C38;
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: white;
  color: #B85C38;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-white:hover {
  background: #FDF8F3;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 100px;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.btn-ghost-white:hover {
  border-color: white;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* ===== PROGRAM CARDS ===== */
.program-card {
  opacity: 1;
}

/* ===== SCROLL REVEAL ===== */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }

  .reveal-up.visible,
  .reveal-left.visible,
  .reveal-right.visible {
    opacity: 1;
    transform: none;
  }
}

/* ===== FORM ===== */
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232C2420' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 70px;
  }

  .hero {
    padding-top: 60px;
  }
}
