/* ============================================================
   Trinity River Boat Launch — Custom Styles
   Supplements Tailwind CSS (Play CDN)
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --forest-950: #060e09;
  --forest-900: #0f1a14;
  --forest-800: #1a3a2a;
  --forest-700: #2d5a3d;
  --forest-600: #3d7a52;
  --forest-500: #4d9a67;
  --river-900:  #0d2d40;
  --river-700:  #1e5f8a;
  --amber-700:  #c8860a;
  --amber-600:  #d4890a;
  --amber-500:  #e8a020;
  --amber-400:  #f0b840;
  --parchment:  #f5f0e8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: #1c1c1e;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Typography ---------- */
.font-display, h1, h2, h3 { font-family: 'Oswald', sans-serif; }

/* ---------- Nav links ---------- */
.nav-link {
  display: inline-block;
  color: rgba(255,255,255,0.85);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.375rem 0.625rem;
  border-radius: 4px;
  transition: color 0.15s, background-color 0.15s;
  text-decoration: none;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,0.1); }

.mobile-nav-link {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  transition: color 0.15s, background-color 0.15s;
}
.mobile-nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }

/* ---------- Footer links ---------- */
.footer-link {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.15s;
}
.footer-link:hover { color: #f0b840; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--amber-600);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.btn-primary:hover { background: var(--amber-500); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: transparent;
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.75rem 2rem;
  border-radius: 4px;
  border: 2px solid rgba(255,255,255,0.6);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-forest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--forest-800);
  color: #fff;
  font-family: 'Oswald', sans-serif;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.625rem 1.5rem;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-forest:hover { background: var(--forest-700); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    160deg,
    var(--forest-950) 0%,
    #0f2018 25%,
    #12293a 55%,
    var(--river-900) 100%
  );
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 50%, rgba(30,95,138,0.2) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 20% 70%, rgba(45,90,61,0.25) 0%, transparent 60%);
}

/* Animated water ripples */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(0deg, rgba(13,45,64,0.8) 0%, transparent 100%);
}

.hero-content { position: relative; z-index: 1; }

/* ---------- Section headings ---------- */
.section-label {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--forest-800);
}

.section-title-light { color: #fff; }

/* ---------- Cards ---------- */
.unit-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s, transform 0.2s;
}
.unit-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,0.14); transform: translateY(-3px); }

.unit-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: linear-gradient(135deg, var(--forest-800) 0%, var(--river-700) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-family: 'Oswald', sans-serif;
  font-size: 1.25rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Booking widget ---------- */
.booking-widget {
  background: rgba(10, 20, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 2px;
}
.badge-amber { background: var(--amber-600); color: #fff; }
.badge-forest { background: var(--forest-700); color: #fff; }
.badge-river  { background: var(--river-700); color: #fff; }

/* ---------- Price tag ---------- */
.price-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest-800);
}
.price-tag .per { font-size: 0.875rem; font-weight: 400; color: #6b7280; font-family: 'Open Sans', sans-serif; }

/* ---------- Rating stars ---------- */
.stars { color: #f59e0b; letter-spacing: -1px; }

/* ---------- Image placeholder ---------- */
.img-placeholder {
  width: 100%;
  background: linear-gradient(135deg, var(--forest-800) 0%, var(--river-900) 60%, var(--forest-900) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 40%, rgba(45,106,143,0.4) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 70%, rgba(26,58,42,0.5) 0%, transparent 50%);
}

.img-placeholder-icon {
  position: relative;
  z-index: 1;
  opacity: 0.2;
}

/* ---------- Form inputs ---------- */
.form-input {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-family: 'Open Sans', sans-serif;
  color: #1c1c1e;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
}
.form-input:focus { border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(45,90,61,0.15); }
.form-input::placeholder { color: #9ca3af; }

.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.375rem;
  letter-spacing: 0.02em;
}

.form-select {
  width: 100%;
  padding: 0.625rem 2.25rem 0.625rem 0.875rem;
  border: 1.5px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.9375rem;
  font-family: 'Open Sans', sans-serif;
  color: #1c1c1e;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.875rem center;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.form-select:focus { border-color: var(--forest-700); box-shadow: 0 0 0 3px rgba(45,90,61,0.15); }

/* ---------- Divider ---------- */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

/* ---------- Alert / Notice ---------- */
.alert-success { background: #ecfdf5; border-left: 4px solid #10b981; color: #065f46; padding: 1rem; border-radius: 0 6px 6px 0; }
.alert-error   { background: #fef2f2; border-left: 4px solid #ef4444; color: #991b1b; padding: 1rem; border-radius: 0 6px 6px 0; }
.alert-info    { background: #eff6ff; border-left: 4px solid #3b82f6; color: #1e40af; padding: 1rem; border-radius: 0 6px 6px 0; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding-top: 80px;
  background: linear-gradient(160deg, var(--forest-900) 0%, var(--forest-800) 50%, var(--river-900) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(0deg, #fff 0%, transparent 100%);
}

/* ---------- Flatpickr theme tweaks ---------- */
.flatpickr-calendar { font-family: 'Open Sans', sans-serif !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover { background: var(--forest-800) !important; border-color: var(--forest-800) !important; }
.flatpickr-day.inRange { background: rgba(45,90,61,0.15) !important; border-color: transparent !important; }
.flatpickr-day.startRange, .flatpickr-day.endRange { background: var(--forest-800) !important; border-color: var(--forest-800) !important; }
.flatpickr-day:hover { background: rgba(45,90,61,0.1) !important; }

/* ---------- Tailwind config colors (defined via JS) ---------- */
/* These are referenced in HTML via x-data/Alpine and inline styles */

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.6s ease both; }
.fade-in-up-delay-1 { animation: fadeInUp 0.6s 0.15s ease both; }
.fade-in-up-delay-2 { animation: fadeInUp 0.6s 0.3s  ease both; }
.fade-in-up-delay-3 { animation: fadeInUp 0.6s 0.45s ease both; }

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

/* ---------- Utility ---------- */
.text-balance { text-wrap: balance; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
