/* =========================================
   Scott & Grace — Fiji 2026
   Custom styles beyond Tailwind
   ========================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&family=Inter:wght@300;400;500;600;700&family=Dancing+Script:wght@400;600;700&display=swap');

/* ---------- Root variables ---------- */
:root {
  --ocean-dark: #164e63;
  --ocean: #0891b2;
  --ocean-light: #06b6d4;
  --teal: #14b8a6;
  --coral: #f97316;
  --coral-light: #fb923c;
  --sand: #d4a574;
  --sand-light: #fef3c7;
  --palm: #059669;
  --palm-light: #10b981;
  --white: #ffffff;
  --bg: #fefdf8;
}

/* ---------- Global ---------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body.menu-open {
  overflow: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: #1e293b;
  background-color: var(--bg);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: 'Playfair Display', serif;
}

.font-script {
  font-family: 'Dancing Script', cursive;
}

/* ---------- Hero section ---------- */
.hero-section {
  position: relative;
  height: 100vh;
  min-height: 700px;
  background-size: cover;
  background-position: center 40%;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .hero-section {
    background-attachment: scroll;
    min-height: 100svh;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(22, 78, 99, 0.45) 0%,
    rgba(22, 78, 99, 0.35) 40%,
    rgba(22, 78, 99, 0.7) 100%
  );
}

/* ---------- Countdown ---------- */
.countdown-item {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 16px;
  padding: 16px 20px;
  min-width: 90px;
  text-align: center;
  transition: transform 0.3s ease;
}

.countdown-item:hover {
  transform: translateY(-4px);
}

.countdown-number {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 4px;
  font-family: 'Inter', sans-serif;
}

/* ---------- Sticky nav ---------- */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
}

.nav-bar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.08);
}

.nav-bar.scrolled .nav-link {
  color: #164e63;
}

.nav-bar.scrolled .nav-logo {
  color: #164e63;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(8, 145, 178, 0.15);
  color: var(--ocean);
}

.nav-bar:not(.scrolled) .nav-link:hover,
.nav-bar:not(.scrolled) .nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.nav-logo {
  color: #ffffff;
  font-family: 'Dancing Script', cursive;
  font-size: 1.4rem;
  font-weight: 700;
}

/* ---------- Section headers ---------- */
.section-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--ocean-dark);
}

.section-subtitle {
  font-family: 'Dancing Script', cursive;
  color: var(--coral);
}

/* ---------- Stat cards ---------- */
.stat-card {
  background: white;
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(8, 145, 178, 0.15);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ocean), var(--teal));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
  margin-top: 6px;
}

/* ---------- Timeline bar ---------- */
.timeline-bar {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  border-radius: 16px;
  overflow: hidden;
}

.timeline-segment {
  flex: 1;
  min-width: 60px;
  padding: 14px 12px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: white;
  position: relative;
  transition: all 0.3s ease;
}

.timeline-segment:hover {
  filter: brightness(1.1);
}

/* ---------- Day cards ---------- */
.day-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 32px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.day-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.day-hero {
  position: relative;
  height: 280px;
  background-size: cover;
  background-position: center;
  cursor: pointer;
}

.day-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(22, 78, 99, 0.3) 0%,
    rgba(22, 78, 99, 0.7) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px 32px;
}

.day-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: white;
  width: fit-content;
  margin-bottom: 8px;
}

.day-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.day-tagline {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 4px;
}

.collapse-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: transform 0.3s ease;
}

.day-card.collapsed .collapse-icon {
  transform: rotate(180deg);
}

.day-content {
  max-height: 10000px;
  overflow: hidden;
  transition: max-height 0.5s ease;
}

.day-card.collapsed .day-content {
  max-height: 0;
}

/* ---------- Activity cards ---------- */
.activity-card {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.2s ease;
}

.activity-card:hover {
  background: #fafbfc;
}

.activity-card:last-child {
  border-bottom: none;
}

.activity-time {
  min-width: 110px;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ocean);
  padding-top: 3px;
}

.activity-body {
  flex: 1;
  min-width: 0;
}

.activity-image {
  width: 100%;
  max-width: 600px;
  border-radius: 14px;
  margin-top: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

/* ---------- Badges ---------- */
.badge-taxhawk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-cost {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--sand-light);
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.badge-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #d97706;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-who {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-scott {
  background: linear-gradient(135deg, #0891b2, #06b6d4);
  color: white;
}

.badge-grace {
  background: linear-gradient(135deg, #d946ef, #a855f7);
  color: white;
}

/* ---------- Book now button ---------- */
.btn-book {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--coral), var(--coral-light));
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
  filter: brightness(1.05);
}

.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--ocean), var(--ocean-light));
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(8, 145, 178, 0.3);
}

.btn-view:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(8, 145, 178, 0.4);
}

/* ---------- Options tabs ---------- */
.option-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 12px;
  width: fit-content;
  margin: 12px 0;
}

.option-tab {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
  border: none;
  background: none;
}

.option-tab.active {
  background: white;
  color: var(--ocean-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.option-content {
  display: none;
}

.option-content.active {
  display: block;
}

/* ---------- Split day columns ---------- */
.split-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 16px 24px;
}

@media (max-width: 768px) {
  .split-columns {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 12px 16px;
  }
}

.split-column {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  border: 2px solid transparent;
}

.split-column.scott-col {
  border-color: rgba(8, 145, 178, 0.2);
}

.split-column.grace-col {
  border-color: rgba(217, 70, 239, 0.2);
}

/* ---------- Restaurant cards ---------- */
.restaurant-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.restaurant-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}

.order-box {
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 10px;
}

.order-box.scott-order {
  background: linear-gradient(135deg, rgba(8, 145, 178, 0.08), rgba(6, 182, 212, 0.05));
  border-left: 3px solid var(--ocean);
}

.order-box.grace-order {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.08), rgba(168, 85, 247, 0.05));
  border-left: 3px solid #d946ef;
}

/* ---------- Stars ---------- */
.stars {
  display: inline-flex;
  gap: 2px;
}

.star {
  color: #fbbf24;
  font-size: 0.85rem;
}

.star.empty {
  color: #e2e8f0;
}

/* ---------- Packing checklist ---------- */
.packing-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: white;
  border-radius: 14px;
  margin-bottom: 8px;
  border: 1px solid #f1f5f9;
  transition: all 0.2s ease;
  cursor: pointer;
}

.packing-item:hover {
  border-color: var(--ocean-light);
  box-shadow: 0 2px 10px rgba(8, 145, 178, 0.1);
}

.packing-item.checked {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.packing-item.checked .packing-text {
  text-decoration: line-through;
  color: #94a3b8;
}

.packing-checkbox {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.packing-item.checked .packing-checkbox {
  background: var(--palm);
  border-color: var(--palm);
  color: white;
}

/* ---------- Gradient sections ---------- */
.gradient-ocean {
  background: linear-gradient(135deg, #164e63, #0891b2);
}

.gradient-sunset {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.gradient-sand {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
}

.gradient-palm {
  background: linear-gradient(135deg, #059669, #10b981);
}

/* ---------- TaxHawk covered card ---------- */
.taxhawk-card {
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.05), rgba(16, 185, 129, 0.08));
  border: 2px solid rgba(16, 185, 129, 0.2);
  border-radius: 24px;
  padding: 32px;
}

.taxhawk-check {
  color: var(--palm);
  font-size: 1.1rem;
}

/* ---------- Golf section ---------- */
.golf-card {
  position: relative;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.golf-image {
  height: 240px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.golf-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(22, 78, 99, 0.6));
}

/* ---------- Spa section ---------- */
.spa-card {
  background: linear-gradient(135deg, rgba(217, 70, 239, 0.06), rgba(168, 85, 247, 0.04));
  border: 1px solid rgba(217, 70, 239, 0.15);
  border-radius: 20px;
  padding: 28px;
}

.spa-amenity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: white;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: transform 0.2s ease;
}

.spa-amenity:hover {
  transform: translateX(4px);
}

/* ---------- Info grid ---------- */
.info-card {
  background: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease;
}

.info-card:hover {
  transform: translateY(-2px);
}

/* ---------- Footer ---------- */
.footer-section {
  position: relative;
  background-size: cover;
  background-position: center;
}

.footer-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    rgba(22, 78, 99, 0.9) 30%,
    rgba(22, 78, 99, 0.95) 100%
  );
}

/* ---------- Alternative section ---------- */
.alt-section {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.05), rgba(251, 146, 60, 0.03));
  border: 2px dashed rgba(249, 115, 22, 0.25);
  border-radius: 20px;
  padding: 24px;
  margin: 16px 24px 24px;
}

/* ---------- Restaurant tabs ---------- */
.restaurant-tab {
  padding: 10px 24px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  background: #f1f5f9;
  color: #64748b;
}

.restaurant-tab.active {
  background: white;
  color: var(--ocean-dark);
  border-color: var(--ocean);
  box-shadow: 0 2px 12px rgba(8, 145, 178, 0.15);
}

/* ---------- Note callout ---------- */
.note-callout {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(245, 158, 11, 0.05));
  border-left: 4px solid #f59e0b;
  border-radius: 0 12px 12px 0;
  padding: 12px 16px;
  margin-top: 10px;
  font-size: 0.82rem;
  color: #92400e;
}

/* ---------- Included tag list ---------- */
.included-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.included-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
}

/* ---------- Mobile nav toggle ---------- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: inherit;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 1024px) {
  .mobile-menu-btn {
    display: block;
    color: var(--ocean-dark);
    z-index: 1002;
  }

  .nav-bar:not(.scrolled) .mobile-menu-btn {
    color: #ffffff;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    border: 1px solid rgba(22, 78, 99, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 999;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links .nav-link {
    color: var(--ocean-dark) !important;
    padding: 12px 16px;
  }

  .countdown-item {
    min-width: 70px;
    padding: 12px 14px;
  }

  .countdown-number {
    font-size: 1.8rem;
  }

  .day-hero {
    height: 200px;
  }

  .day-title {
    font-size: 1.4rem;
  }

  .activity-card {
    flex-direction: column;
    gap: 8px;
    padding: 16px;
  }

  .activity-time {
    min-width: auto;
  }

  .day-hero-overlay {
    padding: 20px;
  }
}

/* ---------- Scroll animation ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Shimmer pulse for countdown ---------- */
@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.shimmer {
  animation: shimmer 2s ease-in-out infinite;
}

/* ---------- Wave decorative ---------- */
.wave-divider {
  width: 100%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23fefdf8' d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,50 1440,40 L1440,60 L0,60 Z'/%3E%3C/svg%3E");
  background-size: cover;
  margin-top: -1px;
}

.wave-divider-ocean {
  width: 100%;
  height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23164e63' d='M0,40 C360,80 720,0 1080,40 C1260,60 1380,50 1440,40 L1440,60 L0,60 Z'/%3E%3C/svg%3E");
  background-size: cover;
  margin-top: -1px;
}

/* ---------- Subtle texture overlay ---------- */
.texture-overlay {
  position: relative;
}

.texture-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23000000' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to right, var(--ocean), var(--teal), var(--coral));
  z-index: 1001;
  width: 0%;
  transition: width 0.1s linear;
}

/* ---------- CTA hero button ---------- */
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--coral), var(--coral-light));
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.4);
  border: none;
  cursor: pointer;
}

.btn-hero:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(249, 115, 22, 0.5);
}

/* ---------- Print-friendly ---------- */
@media print {
  .nav-bar, .scroll-progress, .mobile-menu-btn { display: none !important; }
  .day-card { break-inside: avoid; opacity: 1 !important; transform: none !important; }
  .day-card.collapsed .day-content { max-height: 10000px !important; }
}
