/* ============================================
   ATALAYA BOUTIQUE DENIA — Custom Styles
   ============================================ */

/* ── Base & Typography ── */
html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: #b04018;
  color: #fdfbf7;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f4ebd0;
}
::-webkit-scrollbar-thumb {
  background: #c49e82;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #b08060;
}

/* ── Header ── */
#site-header {
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(196, 158, 130, 0.15);
}

#site-header.scrolled {
  background: rgba(253, 251, 247, 0.95);
  box-shadow: 0 1px 20px rgba(68, 42, 30, 0.06);
}

.nav-link {
  position: relative;
}

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

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

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

.mobile-link {
  transition: all 0.3s ease;
}

/* ── Hero ── */
.hero-eyebrow {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.1s;
}

.hero-title {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.25s;
}

.hero-subtitle {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.4s;
}

.hero-ctas {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.55s;
}

.hero-stats {
  opacity: 0;
  animation: fadeUp 0.8s ease forwards;
  animation-delay: 0.7s;
}

.hero-img {
  animation: floatSoft 6s ease-in-out infinite;
}

.hero-float-card {
  animation: floatCard 5s ease-in-out infinite;
}

@keyframes floatSoft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

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

/* ── Buttons ── */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
}

.btn-submit {
  background: #b04018;
  color: white;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-submit:hover {
  background: #8a3116;
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(176, 64, 24, 0.3);
}

.btn-submit:hover::before {
  opacity: 1;
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-cta-primary {
  transition: all 0.3s ease;
}

.btn-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.btn-cta-secondary {
  transition: all 0.3s ease;
}

.btn-cta-secondary:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.15);
}

/* ── Section Styles ── */
.section-eyebrow {
  animation: fadeUp 0.6s ease forwards;
}

.section-title {
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.1s;
}

.section-subtitle {
  animation: fadeUp 0.6s ease forwards;
  animation-delay: 0.2s;
}

/* ── Tags ── */
.tag-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f9dcc8;
  color: #8a3116;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.tag-muted {
  background: #f4ebd0;
  color: #7a503a;
}

/* ── Room Cards ── */
.room-card {
  transition: all 0.4s ease;
}

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

.room-card:hover .room-img {
  transform: scale(1.05);
}

.room-img-wrap {
  box-shadow: 0 4px 24px rgba(68, 42, 30, 0.08);
  transition: box-shadow 0.4s ease;
}

.room-card:hover .room-img-wrap {
  box-shadow: 0 12px 40px rgba(68, 42, 30, 0.15);
}

/* ── Features ── */
.feature-item {
  transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.05);
}

.feature-icon {
  transition: transform 0.3s ease;
}

/* ── Contact Cards ── */
.contact-card {
  transition: all 0.3s ease;
}

/* ── Gallery ── */
.gallery-item {
  cursor: pointer;
}

.gallery-item:hover .gallery-img {
  transform: scale(1.05);
}

/* ── Inputs ── */
.input-field {
  background: #faf8f6;
  border: 1.5px solid #e8d9cc;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  color: #442a1e;
  transition: all 0.25s ease;
  outline: none;
  font-family: inherit;
}

.input-field::placeholder {
  color: #c49e82;
}

.input-field:hover {
  border-color: #d8beaa;
}

.input-field:focus {
  border-color: #b04018;
  background: white;
  box-shadow: 0 0 0 3px rgba(176, 64, 24, 0.08);
}

/* ── Scroll Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  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; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.75rem;
  }

  .hero-float-card {
    position: relative;
    bottom: auto;
    left: auto;
    margin-top: 1rem;
    max-width: 100%;
  }

  .section-title {
    font-size: 2.25rem;
  }
}

@media (max-width: 640px) {
  .hero-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-stats > div {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}
