/* آژانس مسافرتی دریا — استایل اصلی */

:root {
  --primary: #0B7285;
  --primary-dark: #04404b;
  --primary-darker: #01232a;
  --accent: #FF8C42;
  --accent-muted: rgba(255,140,66,0.15);
  --surface: #f0f9fb;
  --ink: #1A2332;
  --ink-muted: #64748b;
  --border: rgba(11,114,133,0.12);
  --shadow-card: 0 2px 8px rgba(11,114,133,0.08);
  --shadow-lift: 0 8px 24px rgba(11,114,133,0.14);
  --shadow-heavy: 0 16px 48px rgba(11,114,133,0.18);
  --transition: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Vazirmatn', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ====== Header Scroll Behavior ====== */
#header.scrolled {
  background: rgba(255,255,255,0.96) !important;
  backdrop-filter: blur(12px) !important;
  box-shadow: 0 1px 0 rgba(11,114,133,0.1), 0 4px 16px rgba(11,114,133,0.06);
}

.nav-link {
  position: relative;
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 2px;
  transition: color 200ms;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 0;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

/* ====== Hero Animations ====== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hero-badge { animation: fadeUp 0.6s var(--transition) both; }
.hero-title { animation: fadeUp 0.7s 0.1s var(--transition) both; }
.hero-sub   { animation: fadeUp 0.7s 0.22s var(--transition) both; }
.hero-ctas  { animation: fadeUp 0.7s 0.36s var(--transition) both; }
.hero-stats { animation: fadeUp 0.7s 0.5s var(--transition) both; }

/* ====== Scroll Reveal ====== */
.reveal-up, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s var(--transition), transform 0.65s var(--transition);
}
.reveal-left  { transform: translateX(40px); }
.reveal-right { transform: translateX(-40px); }

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

/* Stagger delays via CSS custom properties */
.reveal-up[style*='--delay'] {
  transition-delay: var(--delay, 0ms);
}

/* ====== Tour Cards ====== */
.tour-card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s var(--transition), box-shadow 0.3s var(--transition);
}
.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(11,114,133,0.15);
}

/* ====== WhatsApp Float ====== */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  left: 1.75rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  z-index: 50;
  transition: transform 0.2s var(--transition), box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}

/* ====== Inputs ====== */
input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(11,114,133,0.12);
}

/* ====== Responsive ====== */
@media (max-width: 640px) {
  .hero-title { font-size: clamp(2rem, 9vw, 3rem) !important; }
}

/* ====== Prefers Reduced Motion ====== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}