/* ================================================================
   base.css — Reset, Typography, Layout Utilities, Animations
   Travelo-inspired Dark Navy Design System
   ================================================================ */

@import './variables.css';

/* ── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.7; overflow-x: clip; -webkit-font-smoothing: antialiased; }
img   { display: block; max-width: 100%; }
a     { text-decoration: none; color: inherit; }
ul    { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── SCROLLBAR ──────────────────────────────────────────────────── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy-mid); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ── CONTAINER ──────────────────────────────────────────────────── */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }

/* ── SECTION ────────────────────────────────────────────────────── */
.section     { padding: var(--section-y) 0; }
.section--alt { background: var(--off-white); }
.section--dark { background: var(--navy); color: var(--white); }
.section-header { text-align: center; margin-bottom: 56px; }

/* ── SECTION LABEL ──────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 28px;
  height: 1.5px;
  background: var(--teal);
  opacity: 0.6;
}
.section--dark .section-label { color: var(--teal-light); }
.section--dark .section-label::before,
.section--dark .section-label::after { background: var(--teal-light); }

/* ── SECTION TITLE ──────────────────────────────────────────────── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.7rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 14px;
}
.section-title em {
  font-style: italic;
  color: var(--teal-dark);
}
.section--dark .section-title { color: var(--white); }
.section--dark .section-title em { color: var(--teal-light); }
.section-sub  { max-width: 560px; margin: 0 auto; color: var(--color-text-muted); font-size: var(--text-lg); line-height: 1.75; }
.section-cta  { text-align: center; margin-top: 48px; }

/* ── DIVIDER ────────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0;
  color: var(--gold);
  font-size: 0.5rem;
  letter-spacing: 0.5em;
}
.divider::before,
.divider::after {
  content: '';
  flex: 1;
  max-width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(245,166,35,0.5));
}
.divider::after { background: linear-gradient(to left, transparent, rgba(245,166,35,0.5)); }

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-primary);
  color: var(--white);
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--dur-med) var(--ease);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(26,168,156,0.45);
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad-gold);
  color: var(--navy);
  padding: 13px 32px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: all var(--dur-med) var(--ease);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245,166,35,0.5);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 12px 30px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.35);
  transition: all var(--dur-med) var(--ease);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-2px);
}

.btn-outline-teal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--teal);
  padding: 11px 28px;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 2px solid var(--teal);
  transition: all var(--dur-med) var(--ease);
}
.btn-outline-teal:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
}

.btn-submit {
  width: 100%;
  background: var(--grad-primary);
  color: var(--white);
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: all var(--dur-med) var(--ease);
  box-shadow: var(--shadow-teal);
}
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(26,168,156,0.45);
}

/* ── ANIMATIONS ─────────────────────────────────────────────────── */
@keyframes fadeUp    { from { opacity:0; transform:translateY(28px); } to { opacity:1; transform:none; } }
@keyframes fadeIn    { from { opacity:0; } to { opacity:1; } }
@keyframes slideLeft { from { opacity:0; transform:translateX(-32px); } to { opacity:1; transform:none; } }
@keyframes slideRight{ from { opacity:0; transform:translateX(32px); } to { opacity:1; transform:none; } }
@keyframes marquee   { from { transform:translateX(0); } to { transform:translateX(-50%); } }
@keyframes pulse     { 0%,100%{transform:scale(1);} 50%{transform:scale(1.05);} }
@keyframes float     { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-10px);} }

.fade-up  { animation: fadeUp  0.7s var(--ease) both; }
.d1       { animation-delay: 0.1s; }
.d2       { animation-delay: 0.22s; }
.d3       { animation-delay: 0.34s; }

/* ── REVEAL (IntersectionObserver-driven) ─────────────────────── */
.reveal             { opacity:0; transform:translateY(28px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal.visible     { opacity:1; transform:none; }
.reveal-left        { opacity:0; transform:translateX(-36px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal-left.visible{ opacity:1; transform:none; }
.reveal-right       { opacity:0; transform:translateX(36px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); }
.reveal-right.visible{ opacity:1; transform:none; }

/* ── PAGE HERO (inner pages) ─────────────────────────────────── */
.page-hero {
  background: var(--grad-hero);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 80px) 24px 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(26,168,156,0.15) 0%, transparent 70%);
}
.page-hero-label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--teal-light);
  margin-bottom: 14px;
  position: relative;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}
.page-hero h1 em { font-style: italic; color: var(--teal-light); }
.page-hero > p {
  color: rgba(255,255,255,0.72);
  font-size: var(--text-lg);
  max-width: 540px;
  position: relative;
}

/* ── WHATSAPP FLOAT ──────────────────────────────────────────── */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 1000;
  width: 54px;
  height: 54px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: all var(--dur-med) var(--ease);
  animation: pulse 2.5s ease-in-out infinite;
}
.whatsapp-btn:hover { transform: scale(1.12); animation: none; }
.whatsapp-btn svg { width: 26px; height: 26px; fill: #fff; }
.whatsapp-tooltip {
  position: absolute;
  right: 62px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast);
}
.whatsapp-btn:hover .whatsapp-tooltip { opacity: 1; }

/* ── BACK TO TOP ─────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 92px;
  right: 30px;
  z-index: 999;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-med) var(--ease);
  border: 1px solid rgba(26,168,156,0.3);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--teal); transform: translateY(-3px); }

/* ── FORM ELEMENTS ───────────────────────────────────────────── */
.enquiry-form { background: var(--white); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: var(--text-sm); font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 11px 16px;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  color: var(--text-dark);
  background: var(--off-white);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26,168,156,0.12);
  background: var(--white);
}
.form-group textarea { resize: vertical; }
.form-note { font-size: var(--text-xs); color: var(--text-muted); text-align: center; margin-top: 12px; }

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .form-row { grid-template-columns: 1fr; }
  .section-title { font-size: 1.75rem; }
  .page-hero { min-height: 260px; padding: calc(var(--nav-h) + 32px) 20px 48px; }
}