/* =============== Base / Tokens =============== */
:root{
  --bg: #fbfdff;
  --ink: #101319;
  --muted: #5c6677;

  --brand: #2563eb;        /* blue */
  --brand-2: #06b6d4;      /* cyan */
  --accent: #f59e0b;       /* amber */

  --card: #ffffff;
  --shadow: 0 14px 40px rgba(16,19,25,.10);
  --radius: 18px;
  --container: 1160px;

  --hero_h: min(96vh, 780px);

  /* Parallax drivers */
  --scroll_norm: 0;        /* 0..1 (hero visibility) */
  --scroll_px: 0;          /* absolute scroll Y in px (drives layers) */
  --mouse_x: 0;            /* −1..1 */
  --mouse_y: 0;            /* −1..1 */

  --scroll_drift_px: 0px;  /* horizontal cloud drift */

  --vv_off: 0px;           /* visual viewport offset compensation */
}

*{ box-sizing:border-box }
html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}
img,svg{
  display:block;
  max-width:100%;
  height:auto;
}
a{
  color:inherit;
  text-decoration:none;
}
.container{
  width:min(100% - 32px, var(--container));
  margin-inline:auto;
}

/* Ensure all content paints above the fixed SVG background */
body{
  position: relative;
  z-index: 0;
}

/* =============== Header =============== */
header.site-header{
  position:sticky;
  top:0;
  z-index:60;
  background: color-mix(in srgb, var(--bg) 82%, white);
  backdrop-filter: saturate(1.05) blur(8px);
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: padding .3s ease, box-shadow .3s ease;
  padding: 14px 0;
}
header.site-header.header--scrolled{
  padding: 6px 0;
  box-shadow: 0 8px 28px rgba(16,19,25,.08);
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.brand__name{
  font-weight:900;
  letter-spacing:.2px;
  font-size: clamp(18px,2.2vw,22px);
}
.nav__links{
  display:flex;
  align-items:center;
  gap: clamp(10px,2.2vw,22px);
}
.nav__links a{
  color:var(--muted);
  font-weight:700;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:12px 18px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff;
  font-weight:800;
  border:0;
  box-shadow: var(--shadow);
}
.btn--ghost{
  background:transparent;
  color:var(--brand);
  border:1px solid color-mix(in srgb, var(--brand) 26%, #0000);
  box-shadow:none;
}

/* Small mascot in header/footer */
.cat-logo{
  width:40px;
  height:auto;
}
.brand:hover .cat-logo{
  filter: drop-shadow(0 4px 12px rgba(37,99,235,.20));
}

/* =============== Hero =============== */
.hero{
  position:relative;
  min-height: 100svh;
  min-height: calc(var(--vh, 1vh) * 100);
  z-index: 1;
}
.hero__content{
  position:relative;
  z-index:5;
  text-align:center;
  padding-top: clamp(12px,2vw,24px);
}
.eyebrow{
  display:inline-block;
  padding:8px 12px;
  border-radius:999px;
  margin-bottom:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  color: var(--brand);
  border:1px solid color-mix(in srgb, var(--brand) 22%, #0000);
}
h1.hero__title{
  font-size: clamp(30px, 6.5vw, 62px);
  line-height:1.02;
  letter-spacing:-.02em;
  margin:8px 0 10px;
}
.hero__lead{
  font-size: clamp(16px, 2.2vw, 20px);
  color:var(--muted);
  max-width:66ch;
  margin-inline:auto;
}
.hero__cta{
  margin-top:22px;
  display:flex;
  gap:12px;
  justify-content:center;
  flex-wrap:wrap;
}

/* CTA stacking on small screens */
@media (max-width:560px){
  .hero__cta{
    flex-direction:column;
    align-items:stretch;
  }
  .hero__cta .btn{
    width:100%;
  }
}

/* Fixed SVG scene */
.hero__art{
  position: fixed;
  inset:0;
  width: 100%;
  height: 100lvh;                 /* stable vs URL bar show/hide */
  z-index: -1;
  pointer-events: none;
  transform: translateY(var(--vv_off)) translateZ(0); /* lock to visual viewport */
  contain: layout paint size;
  backface-visibility: hidden;
}

/* Layers */
.layer{
  will-change: transform;
  transform: translate3d(0,0,0);
}
.layer--stars{
  transform: translateY(calc(var(--scroll_px) * -0.03));
}
.layer--far{
  transform: translateY(calc(var(--scroll_px) * -0.06));
}
.layer--mid{
  transform: translateY(calc(var(--scroll_px) * -0.12));
}

/* Clouds: horizontal drift only (mobile-friendly) */
.layer--clouds{
  transform:translateX(var(--scroll_drift_px));
  will-change: transform;
}
.layer--near{
  transform: translateY(calc(var(--scroll_px) * -0.20));
}

/* Big logo block in the hero */
.logo-wrap{
  width: clamp(140px, 40vw, 280px);
  max-height: 28vh;
  aspect-ratio: 1 / 1;
  margin: 20px auto 0;
}
.logo-wrap svg{
  width:100%;
  height:100%;
  display:block;
}

/* Floating paw particles */
.paws{
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:2;
}
.paws span{
  --x: 50vw;
  --d: 8s;
  --delay: 0s;
  --size: 12px;
  position:absolute;
  left:var(--x);
  bottom:-40px;
  width:var(--size);
  height:var(--size);
  background:
    radial-gradient(circle at 50% 30%, rgba(0,0,0,.28) 0 12%, #0000 13%),
    radial-gradient(circle at 68% 40%, rgba(0,0,0,.28) 0 10%, #0000 11%),
    radial-gradient(circle at 32% 40%, rgba(0,0,0,.28) 0 10%, #0000 11%),
    radial-gradient(circle at 50% 70%, rgba(0,0,0,.28) 0 28%, #0000 29%);
  filter: blur(.4px);
  opacity:.18;
  border-radius:50%;
  animation: float_up var(--d) linear var(--delay) infinite;
}
@keyframes float_up{
  0%{
    transform: translate(-50%, 0) scale(1);
    opacity:.05;
  }
  20%{
    opacity:.18;
  }
  100%{
    transform: translate(calc(-50% + (var(--mouse_x)*10px)), -110vh) scale(1.2);
    opacity:0;
  }
}

/* Subtle blink for logo symbol (uses hidden lids in <symbol>) */
.ox_eye{
  animation: ox_blink 6s infinite;
}
.ox_eye--r{
  animation-delay:.2s;
}
@keyframes ox_blink{
  0%, 2%, 60%, 62%, 100%{
    opacity:0;
    transform: scaleY(1);
  }
  1%, 61%{
    opacity:1;
    transform: scaleY(.1);
  }
}

/* Motion safety */
@media (prefers-reduced-motion: reduce){
  .layer,
  .paws span,
  .ox_eye{
    animation:none !important;
    transform:none !important;
    opacity:1 !important;
  }
}

/* =============== Sections / Reveal =============== */
section{
  padding: clamp(46px, 6vw, 96px) 0;
  position: relative;
  z-index: 1;
}
.section__head{
  text-align:center;
  margin-bottom: clamp(24px, 4vw, 42px);
}
.section__kicker{
  color:var(--brand-2);
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.section__title{
  font-size: clamp(24px, 4.4vw, 42px);
  letter-spacing:-.02em;
  margin: 8px 0 10px;
}
.section__lead{
  color:var(--muted);
  max-width: 70ch;
  margin: 0 auto;
}

/* Stable reveal: no removal, no flicker */
.reveal{
  opacity:0;
  transform: translateY(22px);
  filter: blur(4px);
  transition:
    opacity .8s cubic-bezier(.22,1,.36,1),
    transform .8s cubic-bezier(.22,1,.36,1),
    filter .8s cubic-bezier(.22,1,.36,1);
  will-change: opacity, transform, filter;
}
.reveal.is-visible{
  opacity:1;
  transform:none;
  filter:none;
  will-change: auto; /* release memory once shown */
}

/* Cards grid */
.grid{
  display:grid;
  gap: clamp(14px, 3vw, 24px);
  grid-template-columns: repeat(12, 1fr);
}
.grid--3 > *{
  grid-column: span 12;
}
@media (min-width: 720px){
  .grid--3 > *{
    grid-column: span 6;
  }
}
@media (min-width: 1024px){
  .grid--3 > *{
    grid-column: span 4;
  }
}
.card{
  background:var(--card);
  border-radius:var(--radius);
  border:1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
  padding: clamp(16px, 2.6vw, 22px);
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height: 220px;
  transition: transform .35s ease, box-shadow .35s ease;
  position: relative;
  z-index: 1; /* ensure above background on complex GPUs */
}
.card:hover{
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(16,19,25,.16);
}
.card__icon{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  margin-bottom:4px;
  background: conic-gradient(
    from 90deg at 60% 40%,
    color-mix(in srgb,var(--brand) 18%,#fff),
    color-mix(in srgb,var(--brand-2) 18%,#fff)
  );
}
.card__title{
  font-size: clamp(18px, 2.6vw, 20px);
  margin: 4px 0;
}
.card__body{
  color:var(--muted);
}
/* =============== Rooms / Locations =============== */
.rooms{
  display:flex;
  flex-direction:column;
  gap: clamp(16px, 3vw, 28px);
}

/* Centered location tabs */
.rooms__tabs{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  background: color-mix(in srgb, var(--brand) 4%, #fff);
  padding:6px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.06);
  align-self:center; /* center the whole pill group */
}

.rooms__tab{
  border:0;
  background:transparent;
  padding:8px 14px;
  border-radius:999px;
  font-weight:700;
  font-size:14px;
  color:var(--muted);
  cursor:pointer;
  transition:
    background .2s ease,
    color .2s ease,
    box-shadow .2s ease;
}

.rooms__tab--active{
  background:#fff;
  color:var(--brand);
  box-shadow: 0 8px 24px rgba(15,23,42,.12);
}

.rooms__panel{
  margin-top:12px;
  display:none;
}

.rooms__panel.is-active{
  display:block;
}

/* Layout: text + images side by side on desktop */
.rooms__layout{
  display:grid;
  gap: clamp(18px, 3vw, 32px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items:flex-start;
}

.rooms__text{
  display:flex;
  flex-direction:column;
  gap:10px;
  color:var(--muted);
}

.rooms__heading{
  font-size: clamp(18px, 2.4vw, 22px);
  font-weight:800;
  color:var(--ink);
  margin:0 0 4px;
}

/* Media / image area */
.rooms__media{
  display:grid;
  gap:12px;
}

.rooms__figure{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.rooms__image{
  border-radius:var(--radius);
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 8%, #e5f0ff),
    color-mix(in srgb, var(--brand-2) 10%, #e0faff)
  );
  border:1px solid rgba(0,0,0,.06);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
}

/* Slight emphasis for the primary image */
.rooms__image--primary{
  aspect-ratio: 16 / 9;
}

.rooms__caption{
  font-size:12px;
  color: color-mix(in srgb, var(--muted) 80%, #000);
  line-height:1.4;
}

/* Stack layout on smaller screens */
@media (max-width: 800px){
  .rooms__layout{
    grid-template-columns: 1fr;
  }
}

/* Hide desktop nav links on narrow screens; you can add a mobile menu later */
@media (max-width:768px){
  .nav__links{
    display: none;
  }
}

/* =============== CTA stripe =============== */
.cta{
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--brand) 8%, #fff),
    #fff
  );
  border-block:1px solid rgba(0,0,0,.05);
}
.cta__wrap{
  display:grid;
  gap:18px;
  align-items:center;
  justify-items:center;
  text-align:center;
}
.cta__title{
  font-size: clamp(22px, 3.8vw, 36px);
  letter-spacing:-.02em;
}
.cta__lead{
  color:var(--muted);
  max-width:70ch;
}

/* =============== Footer =============== */
footer{
  padding: 32px 0 48px;
  color:var(--muted);
  position: relative;
  z-index: 1;
}
.foot{
  display:flex;
  flex-direction:column;
  gap:14px;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.foot small{
  opacity:.9;
}


/* =============== Booking Form =============== */
.book-section{
  padding-top: clamp(60px, 7vw, 110px);
  padding-bottom: clamp(70px, 8vw, 120px);
}

.booking-form{
  max-width: 880px;
  margin: 0 auto;
}

.form-card{
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: var(--shadow);
  padding: clamp(18px, 3vw, 26px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 24px);
}

/* Field groups / legends */
.field-group{
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.field-group__legend{
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--muted) 80%, #000);
}
.field-group__hint{
  font-size: 13px;
  color: var(--muted);
  max-width: 60ch;
}

/* Grid layout for fields */
.form-grid{
  display: grid;
  gap: 14px;
}
.form-grid--2{
  grid-template-columns: minmax(0,1fr);
}
@media (min-width: 700px){
  .form-grid--2{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

/* Fields / inputs */
.field{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field--full{
  grid-column: 1 / -1;
}
.field__label{
  font-size: 14px;
  font-weight: 600;
  color: color-mix(in srgb, var(--ink) 90%, #000);
}
.field__input{
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, .12);
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #f9fbff;
  outline: none;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}
.field__input:focus{
  border-color: color-mix(in srgb, var(--brand) 65%, #0000);
  background: #ffffff;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 40%, #0000);
}
.field__textarea{
  border-radius: 18px;
  resize: vertical;
  min-height: 96px;
}
.field__hint{
  font-size: 12px;
  color: var(--muted);
}

/* Checkbox row */
.field--checkbox-row{
  flex-direction: column;
  gap: 4px;
}
.field__checkbox{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.field__checkbox input[type="checkbox"]{
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* Location toggle cards */
.location-toggle{
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0,1fr);
}
@media (min-width: 720px){
  .location-toggle{
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
}
.location-toggle__item{
  position: relative;
}
.location-toggle__input{
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.location-toggle__card{
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,.06);
  padding: 16px 16px 18px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--brand) 3%, #f8fafc),
    color-mix(in srgb, var(--brand-2) 3%, #f9fafb)
  );
  box-shadow: 0 6px 18px rgba(15,23,42,.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 140px;
  cursor: pointer;
  transition:
    transform .2s ease,
    box-shadow .2s ease,
    border-color .2s ease,
    background .2s ease;
}
.location-toggle__label{
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}
.location-toggle__hint{
  font-size: 13px;
  color: var(--muted);
}
.location-toggle__card:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(15,23,42,.10);
}

.location-toggle__input:focus-visible + .location-toggle__card{
  outline: 2px solid color-mix(in srgb, var(--brand) 70%, #0000);
  outline-offset: 2px;
}

/* Selected state */
.location-toggle__input:checked + .location-toggle__card{
  border-color: color-mix(in srgb, var(--brand) 70%, #0000);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 40px rgba(37,99,235,.38);
  color: #f9fafb;
}
.location-toggle__input:checked + .location-toggle__card .location-toggle__label,
.location-toggle__input:checked + .location-toggle__card .location-toggle__hint{
  color: #f9fafb;
}

/* Pickup extra */
.pickup-extra{
  margin-top: 10px;
  display: none;
  gap: 12px;
}
.pickup-extra.is-visible{
  display: grid;
}
@media (min-width: 700px){
  .pickup-extra.is-visible{
    grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
  }
}

/* Notes group & actions */
.field-group--notes{
  margin-top: 4px;
}
.booking-actions{
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.booking-submit{
  padding-inline: 22px;
}
.booking-footnote{
  font-size: 12px;
  color: var(--muted);
  max-width: 60ch;
}

.booking-confirm__card{
  margin-top: 8px;
}
.booking-confirm__header{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.booking-confirm__body{
  font-size: 14px;
  color: var(--muted);
}
