/* ==========================================================
   HILL SIDE EGODAWATTA — main stylesheet
   Theme colour tokens (RGB channels). DARK is the default.
   ========================================================== */
:root,
html.dark {
  --c-background: 19 19 21;
  --c-error: 255 180 171;
  --c-error-container: 147 0 10;
  --c-inverse-on-surface: 49 48 50;
  --c-inverse-primary: 115 92 0;
  --c-inverse-surface: 229 225 228;
  --c-on-background: 229 225 228;
  --c-on-error: 105 0 5;
  --c-on-error-container: 255 218 214;
  --c-on-primary: 60 47 0;
  --c-on-primary-container: 85 67 0;
  --c-on-primary-fixed: 36 26 0;
  --c-on-primary-fixed-variant: 87 69 0;
  --c-on-secondary: 49 49 45;
  --c-on-secondary-container: 183 181 175;
  --c-on-secondary-fixed: 28 28 24;
  --c-on-secondary-fixed-variant: 71 71 67;
  --c-on-surface: 229 225 228;
  --c-on-surface-variant: 208 197 175;
  --c-on-tertiary: 65 45 0;
  --c-on-tertiary-container: 91 64 0;
  --c-on-tertiary-fixed: 38 25 0;
  --c-on-tertiary-fixed-variant: 93 66 1;
  --c-outline: 153 144 124;
  --c-outline-variant: 77 70 53;
  --c-primary: 242 202 80;
  --c-primary-container: 212 175 55;
  --c-primary-fixed: 255 224 136;
  --c-primary-fixed-dim: 233 195 73;
  --c-secondary: 201 198 193;
  --c-secondary-container: 71 71 67;
  --c-secondary-fixed: 229 226 220;
  --c-secondary-fixed-dim: 201 198 193;
  --c-surface: 19 19 21;
  --c-surface-bright: 57 57 59;
  --c-surface-container: 32 31 33;
  --c-surface-container-high: 42 42 44;
  --c-surface-container-highest: 53 52 55;
  --c-surface-container-low: 27 27 29;
  --c-surface-container-lowest: 14 14 16;
  --c-surface-dim: 19 19 21;
  --c-surface-tint: 233 195 73;
  --c-surface-variant: 53 52 55;
  --c-tertiary: 241 201 125;
  --c-tertiary-container: 211 173 101;
  --c-tertiary-fixed: 255 222 165;
  --c-tertiary-fixed-dim: 233 193 118;
}

html.light {
  --c-background: 247 244 238;
  --c-error: 186 26 26;
  --c-error-container: 255 218 214;
  --c-inverse-on-surface: 244 240 234;
  --c-inverse-primary: 242 202 80;
  --c-inverse-surface: 49 48 50;
  --c-on-background: 26 26 29;
  --c-on-error: 255 255 255;
  --c-on-error-container: 65 0 2;
  --c-on-primary: 255 255 255;
  --c-on-primary-container: 60 47 0;
  --c-on-primary-fixed: 36 26 0;
  --c-on-primary-fixed-variant: 87 69 0;
  --c-on-secondary: 255 255 255;
  --c-on-secondary-container: 71 71 67;
  --c-on-secondary-fixed: 28 28 24;
  --c-on-secondary-fixed-variant: 71 71 67;
  --c-on-surface: 26 26 29;
  --c-on-surface-variant: 87 80 70;
  --c-on-tertiary: 255 255 255;
  --c-on-tertiary-container: 91 64 0;
  --c-on-tertiary-fixed: 38 25 0;
  --c-on-tertiary-fixed-variant: 93 66 1;
  --c-outline: 138 129 112;
  --c-outline-variant: 216 207 190;
  --c-primary: 159 116 9;
  --c-primary-container: 212 175 55;
  --c-primary-fixed: 255 224 136;
  --c-primary-fixed-dim: 233 195 73;
  --c-secondary: 95 94 90;
  --c-secondary-container: 229 226 220;
  --c-secondary-fixed: 229 226 220;
  --c-secondary-fixed-dim: 201 198 193;
  --c-surface: 247 244 238;
  --c-surface-bright: 255 255 255;
  --c-surface-container: 255 255 255;
  --c-surface-container-high: 239 233 222;
  --c-surface-container-highest: 230 223 209;
  --c-surface-container-low: 243 239 232;
  --c-surface-container-lowest: 250 248 245;
  --c-surface-dim: 237 232 223;
  --c-surface-tint: 159 116 9;
  --c-surface-variant: 230 223 209;
  --c-tertiary: 138 101 18;
  --c-tertiary-container: 233 211 166;
  --c-tertiary-fixed: 255 222 165;
  --c-tertiary-fixed-dim: 233 193 118;
}

/* ==========================================================
   BASE
   ========================================================== */
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  overscroll-behavior: none;
  transition: background-color .3s ease, color .3s ease;
}
main > :first-child { margin-top: 0 !important; }
main > :last-child { margin-bottom: 0 !important; }
[id] { scroll-margin-top: 6rem; }
body.menu-open { overflow: hidden; }

/* Slim gold scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgb(var(--c-surface-container-lowest)); }
::-webkit-scrollbar-thumb { background: rgb(var(--c-outline-variant)); border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: rgb(var(--c-primary)); }

/* Native form controls follow the theme */
html.dark { color-scheme: dark; }
html.light { color-scheme: light; }
select option { background: rgb(var(--c-surface-container)); color: rgb(var(--c-on-surface)); }

.material-symbols-outlined { user-select: none; }

/* ==========================================================
   LIGHT MODE REFINEMENTS
   (colours swap automatically through the variables above;
    these rules only soften shadows and add card edges)
   ========================================================== */
html.light [class^="shadow"]:not(.shadow-inner),
html.light [class*=" shadow"]:not(.shadow-inner) {
  box-shadow: 0 10px 30px -14px rgba(70, 52, 10, .22) !important;
}
html.light .bg-surface-container,
html.light .bg-surface-container-low.rounded-xl,
html.light .bg-surface.rounded-xl {
  outline: 1px solid rgba(159, 116, 9, .14);
  outline-offset: -1px;
}
html.light header { box-shadow: 0 1px 10px rgba(0, 0, 0, .08) !important; }
html.light footer { box-shadow: 0 -1px 12px rgba(0, 0, 0, .05) !important; }

/* Theme toggle icon spin */
[data-theme-toggle] .material-symbols-outlined { transition: transform .4s ease; }
[data-theme-toggle]:hover .material-symbols-outlined { transform: rotate(25deg); }

/* ==========================================================
   MOBILE MENU
   ========================================================== */
#mobile-menu {
  position: fixed;
  top: 5rem; left: 0; right: 0; bottom: 0;
  z-index: 49;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
#mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

/* ==========================================================
   TOAST
   ========================================================== */
#site-toast {
  position: fixed;
  left: 50%; bottom: 1.5rem;
  z-index: 100;
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease;
  width: min(92vw, 34rem);
}
#site-toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ==========================================================
   HOME HERO SLIDER
   The slide track used "-z-10", which pushed the images behind
   the <main> background. Keep it at layer 0 inside the hero,
   with the text / controls / booking bar (z-10, z-20) above it.
   ========================================================== */
#hero-slider-track { z-index: 0 !important; }
#hero-slider-track .slide { will-change: opacity; }
/* Slow "Ken Burns" zoom on the visible slide */
#hero-slider-track .slide > div:first-child {
  transform: scale(1.05);
  transition: transform 8s ease-out;
}
#hero-slider-track .slide.opacity-100 > div:first-child { transform: scale(1.12); }

/* ==========================================================
   CUSTOM (your additions)
   ========================================================== */
   


.hotel-typewriter {
    display: inline-block;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    vertical-align: bottom;
    border-right: 2px solid currentColor;
    animation: hotelTyping 10s steps(27, end) infinite,
               hotelBlink 1s step-end infinite;
	letter-spacing: 2px;		   
}

@keyframes hotelTyping {
    0% {
        width: 0;
    }
    55% {
        width: 26ch;
    }
    75% {
        width: 26ch;
    }
    100% {
        width: 0;
    }
}

@keyframes hotelBlink {
    50% {
        border-color: transparent;
    }
}

.hero-title {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.55em);
  filter: blur(8px);
  animation: heroWordIn .9s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 200ms);
}

.hero-gold {
  padding-bottom: .08em; /* keep italic descenders inside the gradient */
  background-image: linear-gradient(100deg,
      rgb(var(--c-primary)) 0%,
      rgb(var(--c-primary)) 38%,
      rgb(var(--c-primary-fixed)) 50%,
      rgb(var(--c-primary)) 62%,
      rgb(var(--c-primary)) 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation:
    heroWordIn .9s cubic-bezier(.2, .7, .2, 1) forwards,
    heroShimmer 5s ease-in-out infinite;
  animation-delay:
    calc(var(--i, 0) * 110ms + 200ms),
    2.2s;
}

.hero-text {
  opacity: 0;
  transform: translateY(18px);
  animation: heroFadeUp 1s cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: var(--hero-text-delay, 1.1s);
}

@keyframes heroWordIn {
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heroShimmer {
  0%   { background-position: 100% 0; }
  45%  { background-position: 0% 0; }
  100% { background-position: 0% 0; }
}

/* Respect users who turn animations off */
@media (prefers-reduced-motion: reduce) {
  .hero-title .word, .hero-text {
    animation: none !important;
    opacity: 1; transform: none; filter: none;
  }
}
   
   
/* Large logo that hangs below the header bar */
.main-logo {
  height: 7rem;
  margin-top: 45px;
  border: 1px solid #f2ca50;
}

.main-navigation .nav-link {
  font-size: 12px;
}

/* ===== Laravel additions ===== */
/* Rich text from the admin (custom pages, About story) */
.cms-content > * + * { margin-top: 1rem; }
.cms-content h2 { font-family: 'Playfair Display', serif; font-size: 1.75rem; line-height: 2.25rem; color: rgb(var(--c-on-surface)); margin-top: 2rem; }
.cms-content h3 { font-family: 'Playfair Display', serif; font-size: 1.375rem; line-height: 1.875rem; color: rgb(var(--c-on-surface)); margin-top: 1.5rem; }
.cms-content a { color: rgb(var(--c-primary)); text-decoration: underline; }
.cms-content ul { list-style: disc; padding-left: 1.5rem; }
.cms-content ol { list-style: decimal; padding-left: 1.5rem; }
.cms-content blockquote { border-left: 3px solid rgb(var(--c-primary)); padding-left: 1rem; font-style: italic; }
.cms-content img { border-radius: 0.5rem; max-width: 100%; height: auto; }
.cms-content strong { color: rgb(var(--c-on-surface)); }

/* Form validation messages on booking / auth pages */
.field-error { color: rgb(var(--c-error)); font-size: 0.8125rem; margin-top: 0.25rem; }
