﻿/* ============================================================
   NABUGABO HOLIDAY CENTER — MAIN STYLES
   Global layout, typography scale, utility classes, animations
   ============================================================ */

/* ── LAYOUT ── */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--padding-page);
}

.container--sm  { max-width: var(--container-sm);  }
.container--md  { max-width: var(--container-md);  }
.container--lg  { max-width: var(--container-lg);  }
.container--2xl { max-width: var(--container-2xl); }

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.section--sm  { padding-block: clamp(2rem, 4vw, 3rem); }
.section--lg  { padding-block: clamp(5rem, 10vw, 8rem); }

/* ── GRID ── */
.grid { display: grid; }
.grid--2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
.grid--3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.grid--4 { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-8); }
.grid--auto-lg { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: var(--space-8); }

/* ── FLEX ── */
.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--col { flex-direction: column; }
.flex--wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* ── TYPOGRAPHY ── */
.display-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: var(--weight-light);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.display-1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, var(--text-5xl));
  font-weight: var(--weight-semibold);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, var(--text-4xl));
  font-weight: var(--weight-semibold);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.heading-1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, var(--text-3xl));
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

.heading-2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, var(--text-2xl));
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
}

.heading-3 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
}

.body-lg  { font-size: var(--text-md); line-height: var(--leading-relaxed); }
.body-base{ font-size: var(--text-base); line-height: var(--leading-normal); }
.body-sm  { font-size: var(--text-sm); line-height: var(--leading-normal); }
.body-xs  { font-size: var(--text-xs); line-height: var(--leading-normal); }

.label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.italic { font-style: italic; }
.text-balance { text-wrap: balance; }

/* ── TEXT COLORS ── */
.text-primary-color { color: var(--color-primary); }
.text-accent        { color: var(--color-accent); }
.text-muted         { color: var(--text-muted); }
.text-inverse       { color: var(--text-inverse); }
.text-lake          { color: var(--color-lake-bright); }
.text-forest        { color: var(--color-forest-light); }
.text-sand          { color: var(--color-sand-mid); }

/* ── SECTION HEADINGS ── */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-lake-bright);
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-4);
  background: rgba(107,50,184,0.10);
  border-radius: var(--radius-pill);
  border: 1px solid rgba(107,50,184,0.20);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--weight-semibold);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.section-subtitle {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: var(--leading-relaxed);
  font-weight: var(--weight-light);
}

.section-divider {
  width: 48px;
  height: 3px;
  background: var(--gradient-sunset);
  border-radius: var(--radius-pill);
  margin-bottom: var(--space-6);
}

.section-divider--center {
  margin-inline: auto;
}

/* ── DECORATIVE ELEMENTS ── */
.leaf-accent {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 0 50% 50% 50%;
  transform: rotate(45deg);
  margin-inline: var(--space-2);
  vertical-align: middle;
}

/* ── BACKGROUNDS ── */
.bg-lake     { background: var(--gradient-lake); }
.bg-forest   { background: var(--gradient-forest); }
.bg-sand     { background: var(--color-sand-pale); }
.bg-dark     { background: var(--color-lake-deep); }
.bg-white    { background: var(--bg-surface); }
.bg-pattern  {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(107,50,184,0.08) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(160,130,80,0.06) 0%, transparent 50%);
}

/* ── CARD/SURFACE ── */
.surface {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.surface--elevated {
  box-shadow: var(--shadow-lg);
}

/* ── BADGES & PILLS ── */
.badge {
  display: inline-block;
  padding: 2px var(--space-3);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.8;
}

.badge--lake    { background: rgba(107,50,184,0.12); color: var(--color-lake-mid); }
.badge--forest  { background: rgba(160,130,80,0.12);  color: var(--color-forest-mid); }
.badge--sand    { background: rgba(196,154,53,0.12); color: var(--color-sand-dark); }
.badge--terra   { background: rgba(192,82,42,0.12);  color: var(--color-terracotta); }
.badge--success { background: rgba(39,174,96,0.12);  color: #1d8348; }
.badge--warning { background: rgba(243,156,18,0.12); color: #9a6d05; }
.badge--error   { background: rgba(192,57,43,0.12);  color: #c0392b; }
.badge--info    { background: rgba(41,128,185,0.12); color: #1a5276; }

/* ── STATUS BADGES ── */
.status { display: inline-flex; align-items: center; gap: var(--space-2); }
.status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status--pending::before   { background: var(--status-pending); }
.status--confirmed::before { background: var(--status-confirmed); }
.status--checked-in::before{ background: var(--status-checked-in); }
.status--checked-out::before{ background: var(--status-checked-out); }
.status--cancelled::before { background: var(--status-cancelled); }
.status--placed::before    { background: var(--status-placed); }
.status--preparing::before { background: var(--status-preparing); }
.status--ready::before     { background: var(--status-ready); }
.status--delivered::before { background: var(--status-delivered); }

/* ── DIVIDERS ── */
.divider { border: none; border-top: var(--border-thin); }
.divider--thick { border-top-width: 2px; }

/* ── TAGS ── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--color-pale);
  border: var(--border-thin);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: var(--weight-medium);
}

/* ── PRICE DISPLAY ── */
.price {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
}
.price--lg { font-size: var(--text-2xl); }
.price--xl { font-size: var(--text-3xl); }
.price-currency { font-size: 0.65em; vertical-align: super; font-weight: var(--weight-regular); }
.price-period { font-size: var(--text-sm); font-family: var(--font-body); font-weight: var(--weight-regular); color: var(--text-muted); }

/* ── MEDIA RATIO ── */
.ratio { position: relative; overflow: hidden; }
.ratio::before { content: ''; display: block; }
.ratio--16-9::before  { padding-bottom: 56.25%; }
.ratio--4-3::before   { padding-bottom: 75%; }
.ratio--3-2::before   { padding-bottom: 66.67%; }
.ratio--1-1::before   { padding-bottom: 100%; }
.ratio--portrait::before { padding-bottom: 120%; }
.ratio > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── VISIBILITY ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.hidden { display: none !important; }
.invisible { visibility: hidden; }

/* ── SPACING UTILITIES ── */
.mt-4  { margin-top: var(--space-4); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

/* ── ANIMATIONS ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

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

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-32px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes ripple {
  0%   { transform: scale(0); opacity: 0.6; }
  100% { transform: scale(2.5); opacity: 0; }
}

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

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

@keyframes wave {
  0%, 100% { transform: scaleX(1); }
  50%       { transform: scaleX(1.05); }
}

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

@keyframes carouselFade {
  0%   { opacity: 0; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}

/* ── ANIMATION CLASSES ── */
.animate-fade-in    { animation: fadeIn    var(--duration-slow) var(--ease-out) both; }
.animate-fade-up    { animation: fadeUp    var(--duration-slow) var(--ease-out) both; }
.animate-scale-in   { animation: scaleIn   var(--duration-slow) var(--ease-spring) both; }
.animate-slide-left { animation: slideInLeft var(--duration-slow) var(--ease-out) both; }
.animate-float      { animation: float 4s ease-in-out infinite; }
.animate-pulse      { animation: pulse-soft 2s ease-in-out infinite; }
.animate-spin       { animation: spin 1s linear infinite; }

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-700 { animation-delay: 700ms; }

/* ── SCROLL-TRIGGERED ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-xslow) var(--ease-out),
              transform var(--duration-xslow) var(--ease-out);
}

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

.reveal--left  { transform: translateX(-32px); }
.reveal--right { transform: translateX(32px); }
.reveal--left.visible, .reveal--right.visible { transform: translateX(0); }

/* ── LOADING SKELETON ── */
.skeleton {
  background: linear-gradient(90deg, var(--color-pale) 25%, var(--color-light) 50%, var(--color-pale) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  color: var(--text-muted);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

/* ── LAKE WAVE DECORATION ── */
.wave-divider {
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
}

/* ── STICKY ELEMENT ── */
.sticky { position: sticky; top: 80px; }

/* ── OVERLAY ── */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 16, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-overlay);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-base) var(--ease-standard),
              visibility var(--duration-base) var(--ease-standard);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ── BACK TO TOP ── */
#back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  background: var(--color-lake-mid);
  color: white;
  border-radius: var(--radius-circle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard),
              background var(--duration-fast) var(--ease-standard);
  z-index: var(--z-raised);
  border: none;
}

#back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

#back-to-top:hover {
  background: var(--color-lake-deep);
}

/* ── NOTIFICATION BADGE ── */
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: var(--color-terracotta);
  color: white;
  font-size: 10px;
  font-weight: var(--weight-bold);
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 4px;
  border: 2px solid var(--bg-surface);
}

/* ── TEXT ALIGNMENT ── */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
