/* ============================================================
   Time To Get Away — Hilo Bungalow
   Palette: rainforest green, warm tungsten, cream, wet charcoal
   ============================================================ */

:root {
  --green-deep: #1d3a2a;
  --green-ink: #12271b;
  --cream: #f4efe6;
  --cream-dim: #e7dfd1;
  --coral: #e8735a;
  --coral-dark: #d75f46;
  --charcoal: #191c1a;
  --text-dark: #24312a;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Inter", -apple-system, sans-serif;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Lenis owns scrolling — native smooth-behavior must stay OFF or they fight */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

.container {
  width: min(1100px, calc(100% - 48px));
  margin-inline: auto;
}

/* ---------- Typography ---------- */

h1, h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }

.overline {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: 0.85;
}

.subline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-top: 1rem;
  opacity: 0.95;
}

.lede {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.65;
  max-width: 34em;
  margin-top: 1.25rem;
  opacity: 0.95;
}

.lede-dark { opacity: 0.8; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: clamp(20px, 4vw, 48px);
  z-index: 100;
  color: var(--cream);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled {
  background: rgba(18, 39, 27, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(244, 239, 230, 0.08);
}

.wordmark {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav { display: flex; gap: clamp(1rem, 2.5vw, 2rem); }

.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.site-nav a:hover { opacity: 1; }

@media (max-width: 720px) {
  .site-nav { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.9em 1.9em;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn-solid { background: var(--coral); color: #fff; }
.btn-solid:hover { background: var(--coral-dark); }

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  color: #fff;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.12); }

.btn-outline-light {
  border: 1.5px solid rgba(244, 239, 230, 0.6);
  color: var(--cream);
}
.btn-outline-light:hover { background: rgba(244, 239, 230, 0.1); }

.btn-small { padding: 0.6em 1.4em; font-size: 0.85rem; }

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}

/* ---------- Instagram glyph ---------- */

.ig-icon {
  width: 1.15em;
  height: 1.15em;
  flex-shrink: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
  justify-content: center;
}

/* ---------- Full-bleed panels ---------- */

.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--cream);
  text-align: center;
  padding: calc(var(--header-h) + 3rem) 24px 4rem;
}

.panel-short { min-height: 72vh; }

.panel-media {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
  will-change: transform; /* GPU-composite the parallax layer */
}

.panel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.panel-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom, rgba(15, 24, 18, 0.55), rgba(15, 24, 18, 0.15) 35%, rgba(15, 24, 18, 0.55) 85%);
}

.panel-scrim-left {
  background:
    linear-gradient(to right, rgba(15, 24, 18, 0.78) 0%, rgba(15, 24, 18, 0.45) 45%, rgba(15, 24, 18, 0.1) 80%);
}

.panel-content { max-width: 820px; }

.panel-content-left {
  text-align: left;
  align-self: flex-start;
  margin-left: clamp(24px, 8vw, 120px);
  max-width: 560px;
}

.panel-content-left .lede { margin-inline: 0; }
.panel-content .lede { margin-inline: auto; }

.hero-content h1 { text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35); }

.hero-proof {
  position: absolute;
  bottom: 4.5rem;
  display: flex;
  gap: 0.7rem;
  align-items: center;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

.hero-proof i { font-style: normal; opacity: 0.5; }

.scroll-cue {
  position: absolute;
  bottom: 1.4rem;
  width: 22px;
  height: 36px;
  border: 1.5px solid rgba(244, 239, 230, 0.7);
  border-radius: 12px;
  display: flex;
  justify-content: center;
}

.scroll-cue span {
  width: 3px;
  height: 8px;
  margin-top: 6px;
  border-radius: 2px;
  background: rgba(244, 239, 230, 0.85);
  animation: cue 1.8s ease-in-out infinite;
}

@keyframes cue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(10px); opacity: 0.2; }
}

/* ---------- Glass cards ---------- */

.card-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2.5rem;
}

.glass-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  font-size: 0.95rem;
}

.glass-card strong { font-weight: 600; }
.glass-card span { font-size: 0.82rem; opacity: 0.8; }

/* ---------- Feature list ---------- */

.feature-list {
  list-style: none;
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.95;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

/* ---------- Solid sections ---------- */

.section-solid {
  background: var(--cream);
  color: var(--text-dark);
  padding: clamp(5rem, 10vw, 8rem) 0;
  text-align: center;
}

.section-tint { background: var(--cream-dim); }

.section-solid .overline { color: var(--coral-dark); }
.section-solid .lede { margin-inline: auto; }

.section-green {
  background: var(--green-deep);
  color: var(--cream);
  padding: clamp(5rem, 10vw, 8rem) 0;
  text-align: center;
}

.section-green .overline { color: var(--coral); }

/* ---------- Gallery ---------- */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 3rem;
}

.gallery-grid figure {
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-grid figure:hover img { transform: scale(1.05); }

@media (max-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Reviews ---------- */

/* Big rating centerpiece with laurels */
.rating-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  margin-top: 3rem;
}

.laurel {
  width: clamp(26px, 4vw, 38px);
  height: auto;
  color: rgba(244, 239, 230, 0.5);
  flex-shrink: 0;
}

.laurel-right { transform: scaleX(-1); }

.rating-hero-num {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.rating-hero-num strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  line-height: 1;
}

.rating-hero-num span {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.75;
}

.rating-sub {
  margin-top: 1.4rem;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* Six category sub-scores */
.category-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  max-width: 860px;
  margin: 2.75rem auto 0;
  padding-top: 2.25rem;
  border-top: 1px solid rgba(244, 239, 230, 0.16);
}

.category { display: flex; flex-direction: column; gap: 0.3rem; }

.category strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.5rem;
}

.category span { font-size: 0.78rem; opacity: 0.7; }

@media (max-width: 860px) {
  .category-row { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 1rem; }
}

/* "Most mentioned" chips */
.mention-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 2.25rem;
}

.mention-chip {
  font-size: 0.82rem;
  padding: 0.45em 1.1em;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 230, 0.25);
  background: rgba(244, 239, 230, 0.06);
}

.rating-asof {
  margin-top: 2rem;
  font-size: 0.75rem;
  opacity: 0.5;
}

.quote-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
  text-align: left;
}

.quote-row blockquote {
  background: rgba(244, 239, 230, 0.06);
  border: 1px solid rgba(244, 239, 230, 0.14);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.quote-row p {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.5;
}

.quote-row cite {
  font-style: normal;
  font-size: 0.82rem;
  opacity: 0.7;
}

@media (max-width: 860px) {
  .quote-row { grid-template-columns: 1fr; }
}

/* ---------- Good to know ---------- */

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem 2.5rem;
  margin-top: 3.5rem;
  text-align: left;
}

.info-item strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.info-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.85;
}

@media (max-width: 860px) {
  .info-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ---------- Instagram ---------- */

.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 3rem;
}

.insta-grid a {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
}

.insta-grid .tile-ig {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 20px;
  height: 20px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.insta-grid a:hover .tile-ig,
.insta-grid a:focus-visible .tile-ig { opacity: 1; }

.insta-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s ease;
}

.insta-grid a:hover img { transform: scale(1.06); opacity: 0.9; }

@media (max-width: 720px) {
  .insta-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--green-ink);
  color: var(--cream);
  padding: 4rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1.1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(244, 239, 230, 0.12);
}

.footer-ig {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5em;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.footer-heading {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.footer-grid a {
  display: block;
  color: var(--cream);
  text-decoration: none;
  opacity: 0.85;
  margin-bottom: 0.45rem;
}

.footer-grid a:hover { opacity: 1; }

.footer-grid p { opacity: 0.8; line-height: 1.6; }

.footer-legal { margin-top: 0.75rem; font-size: 0.82rem; opacity: 0.6 !important; }

.footer-fineprint {
  padding-top: 1.75rem;
  font-size: 0.78rem;
  opacity: 0.5;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Scroll progress rail (right edge) ---------- */

.scroll-rail {
  position: fixed;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

.rail-track {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
  background: rgba(244, 239, 230, 0.22);
  overflow: hidden;
}

.rail-fill {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: var(--coral);
  transform: scaleY(0);
  transform-origin: top;
}

.rail-dot {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244, 239, 230, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s ease, transform 0.25s ease;
}

.rail-dot:hover { transform: scale(1.4); }

.rail-dot.is-active {
  background: var(--coral);
  transform: scale(1.35);
}

/* On light sections the rail needs darker neutrals */
.scroll-rail.on-light .rail-track { background: rgba(36, 49, 42, 0.18); }
.scroll-rail.on-light .rail-dot { background: rgba(36, 49, 42, 0.35); }
.scroll-rail.on-light .rail-dot.is-active { background: var(--coral); }

@media (max-width: 900px) {
  .scroll-rail { display: none; }
}

/* ---------- Reveal animation base ---------- */

.reveal { opacity: 0; transform: translateY(28px); }

/* If JS fails or reduced motion: show everything */
.no-motion .reveal,
html.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .scroll-cue span { animation: none; }
}
