@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,500&family=Karla:wght@400;500;600;700&display=swap');

html {
  scroll-behavior: smooth;
}

[x-cloak] {
  display: none !important;
}

body {
  background-color: #FFFDF9;
  color: #241A14;
  font-family: 'Karla', 'Segoe UI', sans-serif;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Fraunces', Georgia, serif;
}

/* Small-caps eyebrow label used above section headings site-wide */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #9C4A0C;
}
.eyebrow::before {
  content: "";
  display: block;
  height: 1px;
  width: 1.5rem;
  background-color: #A9762F;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 2px;
  background-color: #C2610F;
  padding: 0.9rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FFFDF9;
  box-shadow: 0 2px 10px -2px rgba(28, 19, 13, 0.18);
  transition: background-color .3s ease, box-shadow .3s ease, transform .3s ease;
  cursor: pointer;
}
.btn-primary:hover {
  background-color: #9C4A0C;
  box-shadow: 0 8px 30px -12px rgba(28, 19, 13, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 2px;
  border: 1px solid #3E2B1C;
  padding: 0.9rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #3E2B1C;
  transition: background-color .3s ease, color .3s ease;
  cursor: pointer;
}
.btn-secondary:hover {
  background-color: #3E2B1C;
  color: #FFFDF9;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 2px;
  border: 1px solid rgba(255, 253, 249, 0.4);
  padding: 0.9rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FFFDF9;
  transition: background-color .3s ease, color .3s ease;
  cursor: pointer;
}
.btn-ghost:hover {
  background-color: #FFFDF9;
  color: #2A1D14;
}

.btn-bottle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 2px;
  background-color: #164C3B;
  padding: 0.9rem 1.6rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #EAF3EF;
  box-shadow: 0 2px 10px -2px rgba(28, 19, 13, 0.18);
  transition: background-color .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.btn-bottle:hover {
  background-color: #0F3C2E;
}

/* Scroll-reveal fallback — GSAP (assets/js/main.js) drives these in JS for a
   nicer easing curve; this class only matters if GSAP fails to load. */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Image wipe-reveal — GSAP animates clip-path on these as they enter view */
.reveal-clip {
  clip-path: inset(0 0 100% 0);
}
.no-js .reveal-clip,
.reveal-clip.is-visible {
  clip-path: inset(0 0 0% 0);
}

/* Arch frame — echoes the building's own arched balcony windows instead of a
   generic rounded-rectangle card */
.arch-frame {
  border-radius: 42% 42% 5px 5px / 20% 20% 0 0;
}

/* Tilt cards — mouse-driven 3D tilt, applied via GSAP in main.js */
.tilt-card {
  perspective: 1000px;
}
.tilt-card-inner {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Fixed film-grain wash for tactile depth. Pure decoration, never intercepts input. */
.grain-overlay {
  position: fixed;
  inset: -60px;
  z-index: 45;
  opacity: 0.05;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Curtain intro — two panels in the guest house's own bottle-green, echoing
   the balcony curtains in the facade photo. JS animates them open once per
   session, then removes the element. */
.curtain-intro {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
}
.curtain-intro .curtain-panel {
  flex: 1 1 50%;
  background: linear-gradient(160deg, #1F5C48, #0B2E23);
}
.curtain-intro .curtain-panel + .curtain-panel {
  border-left: 1px solid rgba(233, 243, 239, 0.15);
}
.curtain-intro .curtain-mark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #E4C87A;
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.75rem;
}

/* Scroll progress indicator */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 250;
  background: linear-gradient(90deg, #A9762F, #C2610F);
}

/* Custom cursor — desktop pointer devices only; JS gates activation */
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 260;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  will-change: transform;
  opacity: 0;
}
.cursor-dot {
  width: 6px;
  height: 6px;
  background: #C2610F;
}
.cursor-ring {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(194, 97, 15, 0.55);
  transition: width .25s ease, height .25s ease, border-color .25s ease;
}
html.has-custom-cursor.cursor-ready .cursor-dot,
html.has-custom-cursor.cursor-ready .cursor-ring {
  opacity: 1;
}
html.has-custom-cursor.cursor-ready {
  cursor: none;
}
html.has-custom-cursor.cursor-ready a,
html.has-custom-cursor.cursor-ready button {
  cursor: none;
}
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* Amenity marquee ticker */
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Abstracted geometric motif — a quiet nod to jaali lattice work, used as a
   section divider rather than literal wallpaper pattern */
.motif-band {
  background-image: repeating-linear-gradient(135deg, #A9762F 0 1px, transparent 1px 22px),
                     repeating-linear-gradient(45deg, #A9762F 0 1px, transparent 1px 22px);
  background-size: 22px 22px;
  opacity: 0.08;
}

.text-balance {
  text-wrap: balance;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .reveal-clip {
    clip-path: inset(0 0 0% 0) !important;
  }
  .curtain-intro, .cursor-dot, .cursor-ring {
    display: none !important;
  }
  .marquee-track {
    animation: none !important;
  }
  html {
    scroll-behavior: auto;
  }
}
