/* ==========================================================================
   BASE — reset, @font-face, global element styles
   ========================================================================== */

/* Body / UI font: Poppins, a clean geometric sans-serif — loaded from the
   local files already bundled in assets/fonts/, no external font service.
   Headings use --font-display, a refined serif system-font stack (see
   tokens.css), for a premium editorial contrast against the sans body. */
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Light.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Poppins';
  src: url('../assets/fonts/Poppins-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }

html {
  scroll-behavior: smooth;
  width: 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 {
  margin: 0;
  overflow-x: hidden;
  width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
  font-family: var(--font-base);
  font-weight: var(--weight-regular);
  font-size: var(--text-body);
  line-height: var(--leading-normal);
  color: var(--color-ink);
  background: var(--color-ivory);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-base);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  margin: 0;
  color: var(--color-ink);
}

/* Major display headings (page titles, section headlines) use a refined
   serif for premium editorial contrast against the sans-serif body and
   UI. Smaller functional headings (card titles, footer columns) stay in
   the clean sans-serif for readability in tight layouts. */
h1, h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
}

p { margin: 0; }

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

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

button {
  font-family: var(--font-base);
  cursor: pointer;
}

input, textarea, select {
  font-family: var(--font-base);
  font-size: var(--text-body);
}

/* Visible keyboard focus everywhere — accessibility floor */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-sand-500);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  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;
  left: var(--space-4);
  top: -100px;
  background: var(--color-ocean-900);
  color: var(--color-ink-on-dark);
  padding: var(--space-3) var(--space-5);
  z-index: 200;
  transition: top var(--duration-standard) var(--ease-standard);
}
.skip-link:focus {
  top: var(--space-4);
}

.container {
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

.eyebrow {
  font-size: var(--text-eyebrow);
  font-weight: var(--weight-medium);
  letter-spacing: 0.02em;
  color: var(--color-teal-800);
}

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

@media (max-width: 640px) {
  .section-band { padding-block: var(--space-7); }
}

/* ---------------------------------------------------------------------- *
 * Breadcrumbs
 * ---------------------------------------------------------------------- */
.breadcrumbs {
  background: var(--color-ivory);
  border-bottom: 1px solid var(--color-line);
  padding-block: var(--space-3);
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-eyebrow);
}
.breadcrumbs li { display: flex; align-items: center; gap: var(--space-2); }
.breadcrumbs li:not(:last-child)::after {
  content: "/";
  color: var(--color-line);
  margin-left: var(--space-2);
}
.breadcrumbs a { color: var(--color-ink-soft); font-weight: var(--weight-medium); }
.breadcrumbs a:hover { color: var(--color-teal-800); }
.breadcrumbs li[aria-current="page"] { color: var(--color-ink); font-weight: var(--weight-medium); }

/* ---------------------------------------------------------------------- *
 * Full-bleed photo band with caption (used on any page)
 * ---------------------------------------------------------------------- */
.photo-band { position: relative; }
.photo-band img { width: 100%; aspect-ratio: 21 / 9; max-height: 480px; object-fit: cover; display: block; }
.photo-band__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(8,37,57,0.85), transparent);
  color: var(--color-white);
  padding: var(--space-6) var(--content-pad) var(--space-5);
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
}

/* ---------------------------------------------------------------------- *
 * Card system — consistent rounded, shadow-elevated cards sitewide.
 * Every card type shares the same resting elevation, radius and hover
 * behaviour (lift + deeper shadow + gentle image zoom) so the site reads
 * as one coherent premium system rather than a patchwork of styles.
 * ---------------------------------------------------------------------- */
.service-card,
.tour-card,
.blog-card,
.difference-card,
.event-type-card,
.package-card,
.testimonial-card,
.vehicle-card__specs {
  border-radius: var(--radius-md);
}
.service-card,
.tour-card,
.blog-card,
.difference-card,
.event-type-card,
.package-card {
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border-color: var(--color-line) !important;
  transition: transform var(--duration-standard) var(--ease-out),
              box-shadow var(--duration-standard) var(--ease-out),
              border-color var(--duration-standard) var(--ease-standard);
}
.testimonial-card {
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration-standard) var(--ease-out),
              box-shadow var(--duration-standard) var(--ease-out);
}
.service-card:hover,
.tour-card:hover,
.blog-card:hover,
.difference-card:hover,
.event-type-card:hover,
.package-card:hover,
.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.service-card:hover,
.tour-card:hover,
.blog-card:hover,
.difference-card:hover,
.event-type-card:hover,
.package-card:hover {
  border-color: var(--color-teal-600) !important;
}

.tour-card__media,
.blog-card__media,
.package-card__media {
  overflow: hidden;
}
.tour-card__media img,
.blog-card__media img,
.package-card__media img {
  transition: transform var(--duration-standard) var(--ease-standard);
}
.tour-card:hover .tour-card__media img,
.blog-card:hover .blog-card__media img,
.package-card:hover .package-card__media img {
  transform: scale(1.05);
}

/* ---------------------------------------------------------------------- *
 * Floating WhatsApp button — sitewide, persistent conversion CTA
 * ---------------------------------------------------------------------- */
.floating-whatsapp {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 150;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-teal-700);
  border: 3px solid var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(8, 37, 57, 0.25);
  transition: transform var(--duration-fast) var(--ease-standard),
              background-color var(--duration-fast) var(--ease-standard),
              opacity var(--duration-standard) var(--ease-standard);
}
/* On mobile/tablet, only shown once the visitor has scrolled past the
   hero/filter-bar area — prevents it from ever sitting on top of a filter
   chip, sort control, or other above-the-fold interactive element while
   still being reliably available lower down the page. Desktop keeps it
   always visible, since there's no equivalent narrow-viewport collision. */
@media (max-width: 900px) {
  .floating-whatsapp {
    opacity: 0;
    pointer-events: none;
  }
  .floating-whatsapp.is-visible {
    opacity: 1;
    pointer-events: auto;
  }
}
.floating-whatsapp:hover {
  background: var(--color-teal-800);
  transform: scale(1.06);
}
.floating-whatsapp img { width: 30px; height: 30px; }

@media (max-width: 640px) {
  .floating-whatsapp {
    right: var(--space-4);
    bottom: var(--space-4);
    width: 54px;
    height: 54px;
  }
  .floating-whatsapp img { width: 26px; height: 26px; }
}
