/* ============================================================
   Stațiunea Vizantea — Stiluri personalizate (peste Tailwind)
   ============================================================ */

html {
  scroll-behavior: smooth;
}

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

/* Selectie text */
::selection {
  background: #b8794d;
  color: #faf8f3;
}

/* ========== NAVBAR ========== */
/* Topbar fix sus cu datele de contact — mereu vizibil */
#topbar {
  /* înălțimea efectivă o setează main.js în --topbar-h, ca să o folosească navbar-ul */
}

#navbar {
  background: transparent;
}
#navbar.is-scrolled {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(26, 29, 28, 0.06);
}
#navbar.is-scrolled .nav-brand,
#navbar.is-scrolled .nav-sub,
#navbar.is-scrolled .nav-links {
  color: #1a1d1c;
}
#navbar.is-scrolled .nav-links a {
  color: #2a2e2d;
}
#navbar.is-scrolled .nav-links a:hover {
  color: #b8794d;
}
#navbar.is-scrolled #menuToggle {
  color: #1a1d1c;
}

/* ========== HERO ========== */
.hero-bg img {
  animation: kenburns 22s ease-in-out infinite alternate;
  transform-origin: center center;
}
@keyframes kenburns {
  0%   { transform: scale(1.05); }
  100% { transform: scale(1.18); }
}

.scroll-line {
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #c8916a, transparent);
  animation: scrollDot 2.4s ease-in-out infinite;
}
@keyframes scrollDot {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ========== ANIMAȚIE REVEAL LA SCROLL ========== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger pentru elemente vecine */
.reveal:nth-child(1) { transition-delay: 0ms;   }
.reveal:nth-child(2) { transition-delay: 80ms;  }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }
.reveal:nth-child(5) { transition-delay: 320ms; }
.reveal:nth-child(6) { transition-delay: 400ms; }
.reveal:nth-child(7) { transition-delay: 480ms; }
.reveal:nth-child(8) { transition-delay: 560ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-bg img { animation: none; }
  .scroll-line::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* ========== TREATMENT CARDS ========== */
.treatment-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(26, 29, 28, 0.06);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}
.treatment-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(31, 61, 42, 0.18);
}

/* ========== FACILITY CARDS ========== */
.facility-card {
  background: white;
  border: 1px solid rgba(31, 61, 42, 0.06);
  border-radius: 1rem;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}
.facility-card:hover {
  transform: translateY(-4px);
  border-color: #c8916a;
  box-shadow: 0 18px 36px -12px rgba(31, 61, 42, 0.12);
}
.facility-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  filter: grayscale(0.1);
}
.facility-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #1f3d2a;
  margin-bottom: 0.5rem;
}
.facility-card p {
  font-size: 0.85rem;
  color: rgba(42, 46, 45, 0.7);
  line-height: 1.45;
}

/* ========== ATTRACTION CARDS ========== */
.attraction-card .overflow-hidden {
  box-shadow: 0 12px 32px -16px rgba(31, 61, 42, 0.25);
  transition: box-shadow 0.5s ease;
}
.attraction-card:hover .overflow-hidden {
  box-shadow: 0 24px 48px -16px rgba(31, 61, 42, 0.4);
}

/* ========== UTILITĂȚI ========== */
.tracking-mega {
  letter-spacing: 0.3em;
}

/* ========== FORMULAR REZERVARE ========== */
.form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2a2e2d;
  margin-bottom: 0.4rem;
}
.form-field {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid #ebe2d2;
  border-radius: 0.625rem;
  background: white;
  font-size: 0.95rem;
  font-family: inherit;
  color: #1a1d1c;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field:focus {
  outline: none;
  border-color: #b8794d;
  box-shadow: 0 0 0 3px rgba(184, 121, 77, 0.15);
}
textarea.form-field {
  resize: vertical;
  line-height: 1.55;
  min-height: 5rem;
}

.field-error {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #b91c1c;
  min-height: 1px;
}
.field-error:empty {
  display: none;
}

.contact-radio {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border: 1px solid #ebe2d2;
  border-radius: 0.625rem;
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.contact-radio:hover {
  border-color: #dab199;
  background: #faf8f3;
}
.contact-radio:has(input:checked) {
  background: #f3e2d3;
  border-color: #b8794d;
  color: #1f3d2a;
  font-weight: 500;
}
.contact-radio input[type="radio"] {
  accent-color: #b8794d;
  width: 1rem;
  height: 1rem;
}

/* ===================== Secțiuni formular rezervare (calc proformă) ===================== */
.rez-section {
  border: 1px solid #ebe2d2;
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
  background: white;
}
.rez-legend {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1f3d2a;
  padding: 0 0.4rem;
  margin-bottom: 0.5rem;
}
details.rez-section[open] > summary {
  margin-bottom: 0.5rem;
}
.rez-row {
  border: 1px solid #ebe2d2;
  border-radius: 0.625rem;
  padding: 0.7rem 0.85rem;
  background: #faf8f3;
}
.rez-input {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid #ebe2d2;
  border-radius: 0.4rem;
  background: white;
  font-size: 0.85rem;
  color: #1a1d1c;
}
.rez-input:focus {
  outline: none;
  border-color: #b8794d;
  box-shadow: 0 0 0 2px rgba(184, 121, 77, 0.18);
}
.rez-input-sm {
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
}
.rez-input-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #2a2e2d;
  margin-bottom: 0.2rem;
  display: block;
}

/* ===================== Cronometru deschidere (hero) ===================== */
.countdown-box {
  min-width: 78px;
  padding: 0.7rem 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.75rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: border-color 0.3s;
}
.countdown-box:hover { border-color: rgba(218, 177, 153, 0.5); }
.countdown-num {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.4rem;
  font-weight: 500;
  color: white;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}
.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(218, 177, 153, 0.85);
  margin-top: 0.35rem;
}
@media (min-width: 640px) {
  .countdown-box { min-width: 92px; padding: 0.85rem 1.1rem; }
  .countdown-num { font-size: 3rem; }
  .countdown-label { font-size: 0.7rem; }
}
