/* =========================================================
   Wave Kashi Tour and Travel — Base Styles
   Design tokens, reset, typography, layout & utilities
   ========================================================= */

:root {
  /* ---------------------------------------------------------------
     Brand palette — derived directly from the Wave Kashi logo.
     Logo navy  #00499D  ·  Logo orange  #FA7A0B
     Every text/background pairing below is WCAG 2.1 AA validated.
     --------------------------------------------------------------- */
  --color-primary: #00499d;         /* logo navy — white text 8.6:1 */
  --color-primary-dark: #003576;
  --color-primary-darker: #002454;
  --color-primary-light: #1c64be;
  --color-secondary: #e4eef9;       /* pale navy tint */

  --color-accent: #fa7a0b;          /* logo orange — ink text 6.4:1 */
  --color-accent-deep: #c25800;     /* legible orange for text on white 4.5:1 */
  --color-accent-mid: #e36a00;
  --color-accent-light: #ff9a3d;    /* on ink 8.2:1 */

  --color-dark: #0b1b33;            /* navy-tinted ink */
  --color-bg: #ffffff;
  --color-surface: #f3f7fc;
  --color-surface-2: #e4eef9;
  --color-text: #0b1b33;            /* 17.2:1 on white */
  --color-text-muted: #4e5f78;      /* 6.5:1 on white */
  --color-text-soft: #5c6b84;       /* 5.4:1 on white */
  --color-border: #dbe6f3;
  --color-white: #ffffff;
  --color-success: #0f7a3d;
  --color-star: #c67c00;            /* amber that clears 3:1 on white & surface */
  --color-whatsapp: #25d366;        /* brand green — pairs with ink text 8.7:1 */

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #00499d 0%, #1c64be 100%);
  --gradient-accent: linear-gradient(135deg, #fa7a0b 0%, #ff9a3d 100%);
  /* Text-safe accent ramp: every stop clears 3:1 for large headings */
  --gradient-accent-text: linear-gradient(135deg, #c25800 0%, #e36a00 100%);
  --gradient-dark: linear-gradient(180deg, rgba(11, 27, 51, 0) 0%, rgba(11, 27, 51, 0.94) 100%);
  --gradient-dark-full: linear-gradient(135deg, #0b1b33 0%, #002454 100%);

  /* Back-compat alias — older rules referenced --gradient-luxury */
  --gradient-luxury: var(--gradient-brand);

  /* Typography */
  --font-heading: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 2.5rem;
  --space-8: 3rem;
  --space-9: 4rem;
  --space-10: 5rem;
  --space-11: 6rem;
  --space-12: 8rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(11, 27, 51, 0.06);
  --shadow-md: 0 8px 24px rgba(11, 27, 51, 0.09);
  --shadow-lg: 0 16px 48px rgba(11, 27, 51, 0.13);
  --shadow-xl: 0 24px 64px rgba(11, 27, 51, 0.18);
  --shadow-brand: 0 12px 32px rgba(0, 73, 157, 0.28);
  --shadow-accent: 0 12px 32px rgba(250, 122, 11, 0.32);
  /* Back-compat alias */
  --shadow-gold: var(--shadow-brand);

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease);
  --transition-base: 0.4s var(--ease);
  --transition-slow: 0.7s var(--ease);

  /* Layout */
  --container-max: 1300px;
  --container-narrow: 860px;
  --header-height: 84px;
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 400;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 1 auto;
}

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

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

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

input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

svg {
  display: inline-block;
  fill: none;
  stroke: currentColor;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  stroke-width: 2;
  flex-shrink: 0;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--color-dark);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
}

h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}

h4 {
  font-size: 1.25rem;
}

p {
  color: var(--color-text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gradient-accent);
  border-radius: var(--radius-full);
}

/* Highlight span inside headings. Uses the text-safe accent ramp so it stays
   legible on white; on dark sections the brighter ramp is swapped in below. */
.text-gradient {
  background: var(--gradient-accent-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-dark .text-gradient,
.page-hero .text-gradient,
.cta-banner .text-gradient,
.hero .text-gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-title {
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.section-title h2 {
  margin-top: var(--space-3);
}

.section-title p {
  margin-top: var(--space-4);
  font-size: 1.05rem;
}

.section-title.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

.section {
  padding-block: var(--space-11);
}

.section-sm {
  padding-block: var(--space-9);
}

.section-surface {
  background: var(--color-surface);
}

.section-dark {
  background: var(--gradient-dark-full);
  color: var(--color-secondary);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--color-white);
}

.section-dark p {
  color: rgba(245, 230, 211, 0.75);
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 980px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.flex {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-wrap {
  flex-wrap: wrap;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

.text-center { text-align: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none !important; }

@media (max-width: 860px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 861px) {
  .hide-desktop { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  will-change: transform;
}

.btn:active {
  transform: scale(0.97);
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 73, 157, 0.38);
}

/* Orange call-to-action — ink text keeps it accessible on bright orange */
.btn-accent {
  background: var(--gradient-accent);
  color: var(--color-dark);
  box-shadow: var(--shadow-accent);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(250, 122, 11, 0.42);
}

.btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
}

.btn-dark:hover {
  background: #000;
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-outline-light {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-dark);
}

.btn-whatsapp:hover {
  background: #1ec25d;
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.4);
}

.btn-sm {
  padding: 0.6rem 1.3rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.1rem 2.4rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

/* ---------- Badges & Pills ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--color-secondary);
  color: var(--color-primary-dark);
}

.badge-dark {
  background: var(--color-dark);
  color: var(--color-secondary);
}

/* Accent badge — logo orange with ink text (6.4:1). Used for "Most Popular",
   duration pills and other high-attention labels. */
.badge-gold,
.badge-accent {
  background: var(--gradient-accent);
  color: var(--color-dark);
}

.badge-navy {
  background: var(--gradient-brand);
  color: var(--color-white);
}

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

[data-reveal="scale"] {
  transform: scale(0.92);
}

[data-reveal="scale"].is-visible {
  transform: scale(1);
}

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="left"].is-visible {
  transform: translateX(0);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="right"].is-visible {
  transform: translateX(0);
}

/* stagger children via inline --d custom property */
[data-reveal] {
  transition-delay: var(--d, 0ms);
}

/* ---------- Keyframes ---------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  100% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.float-anim {
  animation: float-y 5s ease-in-out infinite;
}

/* ---------- Focus & selection ---------- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

::selection {
  background: var(--color-accent);
  color: var(--color-dark);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-light);
  border-radius: var(--radius-full);
}
