/* ═══════════════════════════════════════════════════════════════
   RANDU TOURS — GLOBAL STYLES (global.css)
   Resets, base elements, utilities, layout helpers
═══════════════════════════════════════════════════════════════ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.loading {
  overflow: hidden;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-32);
}

.container-md {
  width: 100%;
  max-width: var(--container-md);
  margin: 0 auto;
  padding: 0 var(--sp-32);
}

/* ── Typography Utilities ─────────────────────────────────── */
.font-serif   { font-family: var(--font-serif); }
.font-script  { font-family: var(--font-script); }
.font-sans    { font-family: var(--font-sans); }

.text-orange  { color: var(--orange); }
.text-teal    { color: var(--teal); }
.text-white   { color: var(--white); }
.text-mid     { color: var(--text-mid); }
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

/* ── Section Script Tag (handwritten accent above headline) ── */
.script-tag {
  display: inline-block;
  font-family: var(--font-script);
  font-size: var(--fs-lg);
  color: var(--orange);
  margin-bottom: var(--sp-8);
  line-height: 1;
}

/* ── Section Headings ─────────────────────────────────────── */
.section-heading {
  font-family: var(--font-serif);
  font-size: var(--fs-3xl);
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: var(--sp-16);
}

.section-heading.white {
  color: var(--white);
}

.section-heading .arrow-decor {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-12);
  color: var(--text-mid);
  font-size: var(--fs-xl);
}

.section-heading .arrow-decor::before,
.section-heading .arrow-decor::after {
  content: '→';
  font-size: 0.6em;
  opacity: 0.4;
}

.section-subtext {
  font-size: var(--fs-md);
  color: var(--text-mid);
  max-width: 540px;
  line-height: 1.7;
}

.section-subtext.white {
  color: hsla(0,0%,100%,0.75);
}

/* ── Section Header Layouts ─────────────────────────────────── */
.section-header-center {
  text-align: center;
  margin-bottom: var(--sp-64);
}

.section-header-center .section-subtext {
  margin: 0 auto;
}

.section-header-left {
  margin-bottom: var(--sp-48);
}

.section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-32);
  margin-bottom: var(--sp-48);
}

/* ── Button System ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  padding: 14px 28px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  transition: all var(--t-base) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Ripple effect container */
.btn::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: hsla(0,0%,100%,0.25);
  transform: translate(-50%, -50%);
  transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out), opacity 0.5s;
  opacity: 0;
  pointer-events: none;
}

.btn.ripple::after {
  width: 300px;
  height: 300px;
  opacity: 0;
}

.btn-primary {
  background: var(--orange-gradient);
  color: var(--white);
  box-shadow: var(--sh-orange);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px hsla(18,95%,54%,0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}

.btn-outline:hover {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--sh-orange);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--orange);
  box-shadow: var(--sh-lg);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-xl);
}

.btn-ghost {
  background: hsla(0,0%,100%,0.12);
  color: var(--white);
  border: 1.5px solid hsla(0,0%,100%,0.25);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: hsla(0,0%,100%,0.2);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  box-shadow: 0 8px 24px hsla(142,60%,40%,0.4);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px hsla(142,60%,40%,0.5);
}

.btn-whatsapp i {
  font-size: 1.1em;
}

.btn-sm {
  padding: 10px 20px;
  font-size: var(--fs-sm);
}

.btn-lg {
  padding: 18px 40px;
  font-size: var(--fs-md);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  width: 60px;
  height: 3px;
  background: var(--orange-gradient);
  border-radius: var(--r-pill);
  margin: var(--sp-16) 0;
}

.divider.center {
  margin: var(--sp-16) auto;
}

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.badge-orange {
  background: var(--orange);
  color: var(--white);
}

.badge-teal {
  background: var(--teal);
  color: var(--white);
}

.badge-glass {
  background: hsla(0,0%,100%,0.15);
  color: var(--white);
  border: 1px solid hsla(0,0%,100%,0.25);
  backdrop-filter: blur(8px);
}

/* ── Page Hero Banner ─────────────────────────────────────── */
.page-hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--teal-gradient);
}

.page-hero .container {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + var(--sp-64));
  padding-bottom: var(--sp-80);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  transform: scale(1.05);
  transition: transform 8s ease;
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, hsla(205,100%,10%,0.85) 0%, hsla(191,96%,23%,0.6) 100%);
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-16);
  font-size: 1.1rem;
  color: hsla(0,0%,100%,0.8);
  margin-top: var(--sp-32);
}

.page-hero-breadcrumb a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  transition: color var(--t-fast);
  text-decoration: none;
}

.page-hero-breadcrumb a:hover {
  color: #F59E0B;
}

.page-hero-breadcrumb span {
  color: #F59E0B;
  font-weight: 500;
  display: flex;
  align-items: center;
}

.page-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-hero h1 {
  font-family: var(--font-serif);
  font-size: var(--fs-hero);
  color: var(--white);
  line-height: 1.1;
  margin-top: var(--sp-12);
  margin-bottom: 0;
}

.page-hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.9);
  max-width: 680px;
  margin-top: var(--sp-16);
  margin-bottom: 0;
  text-align: center;
}

/* ── Floating WhatsApp Button ─────────────────────────────── */
.float-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9000;
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  box-shadow: 0 8px 32px hsla(142,60%,35%,0.45);
  transition: all var(--t-base) var(--ease-smooth);
  text-decoration: none;
}

.float-whatsapp i {
  font-size: 1.35rem;
}

.float-whatsapp:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 40px hsla(142,60%,35%,0.55);
}

.float-whatsapp .wa-label {
  font-size: var(--fs-sm);
}

/* Pulsing ring around WhatsApp button */
.float-whatsapp::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: var(--r-pill);
  border: 2px solid #25D366;
  opacity: 0;
  animation: waRing 2.5s ease-out infinite;
}

@keyframes waRing {
  0%   { inset: 0; opacity: 0.6; }
  100% { inset: -14px; opacity: 0; }
}

/* ── Form Styles ─────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
}

.form-group label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label i {
  color: var(--orange);
  font-size: 0.9em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--text-dark);
  font-size: var(--fs-base);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px var(--orange-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

/* ── Scroll to top ───────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 9000;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange-gradient);
  color: var(--white);
  border-radius: 50%;
  box-shadow: var(--sh-orange);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all var(--t-base) var(--ease-smooth);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  transform: translateY(-3px);
}

/* ── Utility ─────────────────────────────────────────────── */
.hidden        { display: none; }
.sr-only       { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.overflow-hidden { overflow: hidden; }
.relative      { position: relative; }
.absolute      { position: absolute; }
.w-full        { width: 100%; }
.h-full        { height: 100%; }
.flex          { display: flex; }
.items-center  { align-items: center; }
.justify-center { justify-content: center; }
.gap-8         { gap: var(--sp-8); }
.gap-16        { gap: var(--sp-16); }
.gap-24        { gap: var(--sp-24); }
.mt-auto       { margin-top: auto; }
.py-section    { padding: var(--sp-96) 0; }
.py-section-sm { padding: var(--sp-64) 0; }
