/* ==========================================================================
   GLOBAL — Jirawala Tours & Travels brand system
   Teal (#087F8C) + Deep Navy (#123B5D) + Gold accent (#D9A441)
   ========================================================================== */

:root {
  /* ---------------------------------------------------- BRAND TOKENS ---- */
  --color-primary: #087f8c; /* teal / petrol blue — main action colour */
  --color-navy: #123b5d; /* deep navy — trust, headings, dark sections */
  --color-blue: #176b9b; /* secondary blue */
  --color-gold: #d9a441; /* premium gold — ACCENT ONLY */
  --color-white: #ffffff;
  --color-off-white: #f7f9fa;
  --color-text: #17212b;
  --color-muted: #64748b;
  --color-border: #e2e8f0;

  /* ------------------------------------------------- derived teal ------- */
  --teal-50: #e9f4f6;
  --teal-100: #c9e6ea;
  --teal-200: #9ad2d9;
  --teal-600: #077481;
  --teal-700: #066571;
  --teal-800: #054e58;

  /* ------------------------------------------------- derived navy ------- */
  --navy-50: #eef3f8;
  --navy-100: #d7e3ee;
  --navy-700: #16456b;
  --navy-800: #0d2c46;
  --navy-900: #091f33;

  /* ------------------------------------------------- derived gold ------- */
  --gold-100: #f9eed8;
  --gold-200: #f0dcae;
  --gold-600: #bf8d2e;
  --gold-700: #9a7124;

  /* ------------------------------------------------------ neutrals ------ */
  --slate-200: #cbd5e1;
  --slate-300: #b3c1d1;
  --surface: var(--color-white);
  --surface-2: var(--color-off-white);
  --surface-3: #eef2f5;

  /* ------------------------------------------------------- shadows ------ */
  --shadow-xs: 0 1px 2px rgba(18, 59, 93, 0.06);
  --shadow-sm: 0 1px 3px rgba(18, 59, 93, 0.07), 0 1px 2px rgba(18, 59, 93, 0.05);
  --shadow: 0 6px 18px -8px rgba(18, 59, 93, 0.16), 0 2px 6px rgba(18, 59, 93, 0.05);
  --shadow-md: 0 14px 32px -14px rgba(18, 59, 93, 0.22), 0 4px 10px -4px rgba(18, 59, 93, 0.07);
  --shadow-lg: 0 26px 60px -28px rgba(18, 59, 93, 0.32), 0 8px 20px -12px rgba(18, 59, 93, 0.12);
  --shadow-teal: 0 10px 24px -10px rgba(8, 127, 140, 0.45);
  --shadow-navy: 0 14px 30px -14px rgba(18, 59, 93, 0.5);

  /* -------------------------------------------------------- shapes ------ */
  /* Buttons 12px, cards 16px — never fully pill-shaped. */
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius-btn: 12px;
  --radius: 14px;
  --radius-card: 16px;
  --radius-lg: 18px;

  /* -------------------------------------------------------- layout ------ */
  --container: 1220px;
  --container-narrow: 840px;
  --nav-h: 78px;

  /* ---------------------------------------------------- typography ------ */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    sans-serif;
}

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

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

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

button {
  cursor: pointer;
  border: 0;
  background: none;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: var(--color-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ------------------------------------------------------------- typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-navy);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.021em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.1rem, 1.4rem + 2.8vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.6rem, 1.22rem + 1.65vw, 2.4rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.14rem, 1.03rem + 0.5vw, 1.35rem);
}

h4 {
  font-size: 1.05rem;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 650;
  color: var(--color-navy);
}

/* ---------------------------------------------------------------- layout */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(52px, 6vw, 96px);
}

.section--tight {
  padding-block: clamp(38px, 4vw, 64px);
}

.section--alt {
  background: var(--color-off-white);
}

/* Deep navy section — wedding, final CTA, footer. */
.section--navy {
  position: relative;
  overflow: hidden;
  background: var(--color-navy);
  color: var(--slate-200);
}

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

/* Subtle depth for navy sections — not a huge gradient. */
.section--navy::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 420px at 12% -10%, rgba(23, 107, 155, 0.35), transparent 70%),
    radial-gradient(700px 380px at 92% 110%, rgba(8, 127, 140, 0.28), transparent 72%);
  pointer-events: none;
}

.section--navy > * {
  position: relative;
}

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 26px);
}

.grid--2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr));
}

.grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.stack > * + * {
  margin-top: 1rem;
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  padding: 13px 26px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.96rem;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition:
    transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

/*
 * Buttons are flex containers, so an inline icon is shrinkable by default. In a
 * narrow grid cell — the mobile CTA bar, or a full-width button on a small
 * phone — the label squeezed the WhatsApp/phone glyph into a flattened oval.
 */
.btn svg {
  flex-shrink: 0;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

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

/* Primary — teal background, white text. */
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: var(--shadow-teal);
}

.btn--primary:hover {
  background: var(--teal-700);
  box-shadow: 0 14px 28px -10px rgba(8, 127, 140, 0.55);
}

/* Secondary — white background, navy text, grey border. */
.btn--secondary {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--slate-200);
  box-shadow: var(--shadow-xs);
}

.btn--secondary:hover {
  border-color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

/* Luxury — deep navy with a gold hairline. Used in wedding + final CTA. */
.btn--luxury {
  background: var(--color-navy);
  color: var(--color-white);
  border-color: rgba(217, 164, 65, 0.55);
  box-shadow: var(--shadow-navy);
}

.btn--luxury:hover {
  background: var(--navy-800);
  border-color: var(--color-gold);
}

/* On navy backgrounds. */
.btn--outline-light {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.34);
}

.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(217, 164, 65, 0.85);
}

/* WhatsApp keeps a recognisable green, deepened so it is not neon. */
.btn--whatsapp {
  background: #128c4a;
  color: var(--color-white);
  box-shadow: 0 10px 24px -12px rgba(18, 140, 74, 0.6);
}

.btn--whatsapp:hover {
  background: #0f7540;
}

.btn--ghost {
  background: transparent;
  color: var(--color-navy);
}

.btn--ghost:hover {
  background: var(--navy-50);
  color: var(--color-primary);
}

.btn--sm {
  min-height: 42px;
  padding: 9px 19px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn--lg {
  min-height: 56px;
  padding: 16px 32px;
  font-size: 1.02rem;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ------------------------------------------------------------ brand bits */
/* Small gold rule used as a premium accent under eyebrows and headings. */
.accent-rule {
  display: block;
  width: 54px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-gold);
}

.accent-rule--center {
  margin-inline: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-gold);
}

.section--navy .eyebrow {
  color: var(--color-gold);
}

.section--navy .eyebrow::before {
  background: var(--color-gold);
}

.lead {
  font-size: clamp(1.02rem, 0.97rem + 0.32vw, 1.16rem);
  color: var(--color-muted);
  line-height: 1.7;
}

.muted {
  color: var(--color-muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  background: var(--teal-50);
  color: var(--teal-800);
  border: 1px solid var(--teal-100);
  font-size: 0.8rem;
  font-weight: 600;
}

.note {
  padding: 15px 19px;
  border-radius: var(--radius-sm);
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-left: 3px solid var(--color-primary);
  color: var(--navy-800);
  font-size: 0.92rem;
}

.note--warn {
  background: var(--gold-100);
  border-color: var(--gold-200);
  border-left-color: var(--color-gold);
  color: var(--gold-700);
}

.divider {
  height: 1px;
  background: var(--color-border);
  border: 0;
}

/* ------------------------------------------------------------ a11y utils */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 2000;
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  background: var(--color-navy);
  color: var(--color-white);
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------- motion */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes road-dash {
  to {
    transform: translateX(-40px);
  }
}

@keyframes wheel-spin {
  to {
    transform: rotate(360deg);
  }
}

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

@keyframes pulse-ring {
  0% {
    transform: scale(0.9);
    opacity: 0.6;
  }
  70% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.animate-in {
  animation: fade-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
