/* ==========================================================================
   Darjeeling Wind Riders — custom CSS that supplements the compiled Tailwind
   (public_html/assets/css/tailwind.css). Fonts are self-hosted: there is no
   request to Google Fonts at runtime.
   ========================================================================== */

:root {
  --primary-color: #123653;
  --accent-color: #329844;
  --light-blue: #edf7fc;
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/lora-latin-600-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/lora-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/lora-latin-600-italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/lato-latin-400-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/lato-latin-700-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Material Symbols Outlined';
  font-style: normal;
  font-weight: 100 700;
  font-display: block;
  src: url('/assets/fonts/material-symbols-86c00384.woff2') format('woff2');
}

html, body {
  font-family: 'Lato', system-ui, sans-serif;
  font-weight: 400;
  color: var(--primary-color);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  background-color: #ffffff;
}

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
}

button, nav {
  font-family: 'Lato', system-ui, sans-serif;
}

.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  width: 1em;
  height: 1em;
  overflow: hidden;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  font-feature-settings: 'liga';
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined[data-weight="fill"] {
  font-variation-settings: 'FILL' 1;
}

/* Utility: hide scrollbars but keep scrolling (used by the carousel rows) */
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Safe-area padding helpers (iOS home indicator etc.) */
.pb-safe { padding-bottom: env(safe-area-inset-bottom); }

/* ==========================================================================
   Shared dimmed backdrop used behind the slide-over menu
   ========================================================================== */
#backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 54, 83, 0.5);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

#backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Slide-over panel (menu drawer)
   ========================================================================== */
.slide-over {
  position: fixed;
  inset-block: 0;
  right: 0;
  z-index: 65;
  height: 100%;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s linear 300ms;
  display: flex;
  flex-direction: column;
}

.slide-over.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 300ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s;
}

#menu-drawer {
  width: 100%;
  max-width: 320px;
}

/* Prevent background scroll while a drawer is open */
body.no-scroll {
  overflow: hidden;
}

/* ==========================================================================
   Hero slider (see public_html/assets/js/hero-slider.js). Without
   JavaScript the first slide simply stays visible.
   ========================================================================== */
.hero-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 600ms ease, visibility 0s linear 600ms;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 600ms ease, visibility 0s;
}

.hero-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 9999px;
  background: transparent;
  position: relative;
  transition: background-color 200ms ease;
}

/* Bigger invisible tap target than the 10px dot itself */
.hero-dot::after {
  content: '';
  position: absolute;
  inset: -10px -4px;
}

.hero-dot.is-active {
  background: #ffffff;
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide, .hero-slide.is-active, .slide-over, .slide-over.is-open, #backdrop {
    transition: none;
  }
}
