/* ==========================================================================
   Alberos Homestays — Hero
   Palette and type follow the Alberos brand guide (Aug 2026).
   ========================================================================== */

:root {
  /* Brand palette */
  --clay:       #D26B28;  /* Clay Orange — the brand */
  --ember:      #EA5E21;  /* Ember Orange — digital-only bright accent */
  --stone:      #54534F;  /* Stone Grey */
  --linen:      #F5F9EE;  /* Linen — warm off-white, never #FFF */
  --forest:     #275533;  /* Forest Green */
  --bark:       #292F2A;  /* Bark */
  --nightfall:  #171B16;  /* Nightfall — deepest background */

  /* Derived tokens */
  --bg:           var(--nightfall);
  --text:         var(--linen);
  --text-muted:   rgba(245, 249, 238, 0.68);
  --text-faint:   rgba(245, 249, 238, 0.42);
  --line:         rgba(245, 249, 238, 0.14);
  --accent:       var(--ember);
  --accent-deep:  var(--clay);

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --gutter: clamp(16px, 5vw, 72px);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection { background: var(--ember); color: var(--nightfall); }

/* ==========================================================================
   Hero shell
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(96px, 14vh, 160px) var(--gutter) clamp(96px, 12vh, 140px);
  isolation: isolate;
  overflow: hidden;
}

/* ---------- Background layers ---------- */

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(120% 90% at 85% 110%, rgba(210, 107, 40, 0.22) 0%, transparent 55%),
    radial-gradient(90% 70% at 0% 0%, rgba(39, 85, 51, 0.18) 0%, transparent 60%),
    linear-gradient(160deg, #1b201a 0%, var(--nightfall) 45%, #0e110d 100%);
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.75;
  will-change: transform;
  mix-blend-mode: screen;
}

.hero__glow--clay {
  width: 62vmax; height: 62vmax;
  right: -18vmax; bottom: -26vmax;
  background: radial-gradient(circle, var(--clay) 0%, transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}

.hero__glow--ember {
  width: 38vmax; height: 38vmax;
  right: 10vmax; top: -12vmax;
  background: radial-gradient(circle, var(--ember) 0%, transparent 62%);
  opacity: 0.45;
  animation: drift-b 28s ease-in-out infinite alternate;
}

.hero__glow--forest {
  width: 50vmax; height: 50vmax;
  left: -20vmax; top: 10vmax;
  background: radial-gradient(circle, var(--forest) 0%, transparent 65%);
  opacity: 0.35;
  animation: drift-c 32s ease-in-out infinite alternate;
}

@keyframes drift-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-8vmax, -6vmax, 0) scale(1.12); }
  100% { transform: translate3d(-3vmax, -12vmax, 0) scale(0.95); }
}
@keyframes drift-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-14vmax, 10vmax, 0) scale(1.2); }
}
@keyframes drift-c {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(10vmax, -8vmax, 0) scale(1.1); }
}

.hero__particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Fine film grain keeps the gradients from banding */
.hero__grain {
  position: absolute;
  inset: -50%;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 50%, transparent 40%, rgba(10, 12, 9, 0.65) 100%),
    linear-gradient(to bottom, transparent 70%, var(--nightfall) 100%);
}

/* ==========================================================================
   Content
   ========================================================================== */

.hero__content {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(20px, 3vh, 32px);
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__eyebrow-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--clay));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(234, 94, 33, 0.8);
}

.hero__title {
  margin: 0;
  line-height: 0.92;
  font-weight: 800;
}

.hero__name {
  display: block;
  font-size: clamp(3.4rem, 1.4rem + 10vw, 10.5rem);
  letter-spacing: -0.045em;
  color: var(--linen);
  text-shadow: 0 10px 60px rgba(0, 0, 0, 0.45);
}

.hero__sub {
  display: block;
  margin-top: clamp(10px, 1.6vw, 22px);
  padding-left: 0.2em;
  font-size: clamp(1.15rem, 0.7rem + 2.4vw, 2.9rem);
  font-weight: 400;
  letter-spacing: 0.55em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--ember) 0%, #f08a4b 45%, var(--clay) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

.hero__role {
  margin: clamp(28px, 5vh, 52px) 0 0;
  max-width: 22ch;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--linen);
}

.hero__tagline {
  margin: 16px 0 0;
  max-width: 46ch;
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.12rem);
  font-weight: 300;
  color: var(--text-muted);
}

/* ---------- Buttons ---------- */

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: clamp(32px, 5vh, 48px);
}

.btn {
  --pad-y: 16px;
  --pad-x: 28px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    background-color 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out),
    color 0.35s var(--ease-out);
}

.btn:focus-visible {
  outline: 2px solid var(--linen);
  outline-offset: 4px;
}

.btn__icon {
  width: 18px;
  height: 18px;
  transition: transform 0.35s var(--ease-out);
}

/* Primary — ember fill, black text */
.btn--primary {
  background: linear-gradient(135deg, var(--ember) 0%, var(--clay) 100%);
  color: var(--nightfall);
  font-weight: 600;
  box-shadow:
    0 0 0 1px rgba(234, 94, 33, 0.6),
    0 10px 30px -8px rgba(234, 94, 33, 0.6);
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(245, 249, 238, 0.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.8s var(--ease-out);
}

.btn--primary > * { position: relative; }

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(234, 94, 33, 0.9),
    0 18px 40px -10px rgba(234, 94, 33, 0.85),
    0 0 60px -10px rgba(234, 94, 33, 0.6);
}
.btn--primary:hover::before { transform: translateX(120%); }
.btn--primary:hover .btn__icon { transform: translateX(4px); }

/* Ghost — electric black glass with ember edge on hover */
.btn--ghost {
  background: rgba(14, 17, 13, 0.55);
  color: var(--linen);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(234, 94, 33, 0.7);
  color: var(--ember);
  box-shadow: 0 0 0 1px rgba(234, 94, 33, 0.25), 0 0 30px -8px rgba(234, 94, 33, 0.55);
}

.btn:active { transform: translateY(0) scale(0.98); }

/* ---------- Scroll cue ---------- */

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(20px, 4vh, 40px);
  transform: translateX(-50%);
  padding: 8px;
  color: var(--text-faint);
}

.hero__scroll-track {
  display: block;
  width: 24px;
  height: 40px;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  position: relative;
}

.hero__scroll-dot {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
  animation: scroll-dot 2s var(--ease-out) infinite;
}

@keyframes scroll-dot {
  0%   { transform: translateY(0); opacity: 0; }
  20%  { opacity: 1; }
  80%  { transform: translateY(14px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Entrance animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out),
    filter 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 110ms + 150ms);
}

.hero__scroll.reveal { transform: translate(-50%, 24px); }

.is-loaded .reveal {
  opacity: 1;
  transform: none;
  filter: none;
}

.is-loaded .hero__scroll.reveal { transform: translateX(-50%); }

/* No-JS fallback */
.no-js .reveal { opacity: 1; transform: none; filter: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 560px) {
  .hero__sub { letter-spacing: 0.38em; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; }
  .hero__scroll { display: none; }
}

@media (max-height: 640px) and (min-width: 561px) {
  .hero__scroll { display: none; }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .hero__glow,
  .hero__grain,
  .hero__sub,
  .hero__scroll-dot { animation: none; }

  .reveal {
    transition: opacity 0.4s linear;
    transform: none;
    filter: none;
  }
  .hero__scroll.reveal { transform: translateX(-50%); }
}

/* ==========================================================================
   Content sections (About, Amenities)
   Shared tokens and accents with the hero.
   ========================================================================== */

.section {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--gutter);
  isolation: isolate;
  overflow: hidden;
}

.section__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 clamp(18px, 2.5vw, 26px);
  font-size: clamp(0.72rem, 0.68rem + 0.2vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
}

.section__eyebrow-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--ember), var(--clay));
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(234, 94, 33, 0.8);
}

.section__title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 1.2rem + 3.4vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--linen);
}

.text-accent {
  background: linear-gradient(90deg, var(--ember) 0%, #f08a4b 50%, var(--clay) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section__lede {
  margin: 18px 0 0;
  max-width: 46ch;
  font-size: clamp(0.98rem, 0.92rem + 0.3vw, 1.12rem);
  font-weight: 300;
  color: var(--text-muted);
}

/* ---------- About ---------- */

.about {
  background:
    radial-gradient(60% 70% at 100% 20%, rgba(39, 85, 51, 0.16) 0%, transparent 70%),
    var(--nightfall);
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.about__quote {
  position: relative;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--ember);
  max-width: 34ch;
}

.about__quote p {
  margin: 0;
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.15rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.6;
  color: var(--text-muted);
}

.about__body {
  padding-top: clamp(0px, 4vw, 56px);
}

.about__body p {
  margin: 0 0 1.4em;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.12rem);
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-muted);
}

.about__body p:first-child {
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  font-weight: 400;
  color: var(--linen);
}

.about__body p:last-child { margin-bottom: 0; }

/* ---------- Amenities ---------- */

.amenities {
  background:
    radial-gradient(70% 60% at 0% 100%, rgba(210, 107, 40, 0.14) 0%, transparent 70%),
    linear-gradient(180deg, var(--nightfall) 0%, #121510 100%);
}

/* Hairline divider between About and Amenities */
.amenities::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.section__header { margin-bottom: clamp(40px, 6vw, 72px); }

.amenities__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: clamp(14px, 1.6vw, 20px);
}

.amenity {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(41, 47, 42, 0.7) 0%, rgba(14, 17, 13, 0.75) 100%);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

/* Ember glow that follows the card on hover */
.amenity::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, rgba(234, 94, 33, 0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}

.amenity:hover {
  transform: translateY(-4px);
  border-color: rgba(234, 94, 33, 0.55);
  box-shadow:
    0 0 0 1px rgba(234, 94, 33, 0.2),
    0 20px 40px -20px rgba(0, 0, 0, 0.8),
    0 0 40px -12px rgba(234, 94, 33, 0.45);
}

.amenity:hover::before { opacity: 1; }

.amenity__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  color: var(--ember);
  background: rgba(234, 94, 33, 0.1);
  border: 1px solid rgba(234, 94, 33, 0.28);
  transition: background-color 0.45s var(--ease-out), color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.amenity__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.amenity:hover .amenity__icon {
  background: linear-gradient(135deg, var(--ember), var(--clay));
  color: var(--nightfall);
  box-shadow: 0 8px 24px -8px rgba(234, 94, 33, 0.8);
}

.amenity__title {
  position: relative;
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--linen);
}

.amenity__text {
  position: relative;
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--text-muted);
}

/* ---------- Scroll reveal ---------- */

.js-scroll .scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out),
    border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}

.js-scroll .scroll-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Keep the hover lift working after the card has revealed */
.js-scroll .amenity.scroll-reveal.is-visible:hover { transform: translateY(-4px); }

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__body { padding-top: 0; }
}

@media (max-width: 560px) {
  .amenity { padding: 24px 22px 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .js-scroll .scroll-reveal {
    transform: none;
    transition: opacity 0.4s linear;
  }
  .amenity,
  .amenity:hover,
  .js-scroll .amenity.scroll-reveal.is-visible:hover { transform: none; }
}

/* ==========================================================================
   Smooth anchor scrolling (hero buttons → sections)
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ==========================================================================
   Listings
   ========================================================================== */

.listings {
  background:
    radial-gradient(60% 60% at 100% 0%, rgba(234, 94, 33, 0.12) 0%, transparent 70%),
    linear-gradient(180deg, #121510 0%, var(--nightfall) 100%);
}

.listings::before,
.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
}

.listings__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

.listing {
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(41, 47, 42, 0.7) 0%, rgba(14, 17, 13, 0.8) 100%);
  border: 1px solid var(--line);
  transition:
    transform 0.45s var(--ease-out),
    border-color 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.listing:hover,
.js-scroll .listing.scroll-reveal.is-visible:hover {
  transform: translateY(-6px);
  border-color: rgba(234, 94, 33, 0.55);
  box-shadow:
    0 0 0 1px rgba(234, 94, 33, 0.2),
    0 30px 60px -30px rgba(0, 0, 0, 0.9),
    0 0 50px -16px rgba(234, 94, 33, 0.45);
}

/* Illustrated placeholder until real photography is added */
.listing__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.listing__media--dusk {
  background: linear-gradient(180deg, #3a2316 0%, #7a3a17 55%, #c4602a 100%);
  --sun: #f5c08a;
  --far: rgba(41, 47, 42, 0.55);
  --mid: rgba(41, 47, 42, 0.85);
  --near: #171B16;
}

.listing__media--forest {
  background: linear-gradient(180deg, #16231a 0%, #275533 60%, #3d6b45 100%);
  --sun: #EA5E21;
  --far: rgba(23, 27, 22, 0.35);
  --mid: rgba(23, 27, 22, 0.7);
  --near: #171B16;
}

.listing__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 1.2s var(--ease-out);
}

.listing:hover .listing__scene { transform: scale(1.05); }

.scene-sun  { fill: var(--sun); opacity: 0.85; filter: blur(1px); }
.scene-far  { fill: var(--far); }
.scene-mid  { fill: var(--mid); }
.scene-near { fill: var(--near); }

.listing__tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--linen);
  background: rgba(14, 17, 13, 0.6);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.listing__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(24px, 2.6vw, 34px);
}

.listing__title {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--linen);
}

.listing__text {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--text-muted);
}

.listing__meta {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
}

.listing__meta li {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
  border: 1px solid var(--line);
  background: rgba(245, 249, 238, 0.03);
}

.listing__btn {
  align-self: flex-start;
  margin-top: auto;
}

.listing__meta + .listing__btn { margin-top: 28px; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact {
  background:
    radial-gradient(70% 70% at 0% 100%, rgba(210, 107, 40, 0.16) 0%, transparent 70%),
    radial-gradient(50% 50% at 100% 0%, rgba(39, 85, 51, 0.14) 0%, transparent 70%),
    var(--nightfall);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 7vw, 120px);
  align-items: start;
}

.contact__intro { margin-bottom: 0; }

.contact-form {
  padding: clamp(24px, 3vw, 40px);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(41, 47, 42, 0.7) 0%, rgba(14, 17, 13, 0.8) 100%);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.field { margin-bottom: 20px; }

.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.field__input {
  display: block;
  width: 100%;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(14, 17, 13, 0.7);
  color: var(--linen);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  transition: border-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}

.field__input::placeholder { color: var(--text-faint); }

.field__input:hover { border-color: rgba(245, 249, 238, 0.24); }

.field__input:focus {
  outline: none;
  border-color: var(--ember);
  background: rgba(14, 17, 13, 0.9);
  box-shadow: 0 0 0 3px rgba(234, 94, 33, 0.22), 0 0 30px -10px rgba(234, 94, 33, 0.6);
}

.field__input--area {
  resize: vertical;
  min-height: 140px;
}

.field.is-invalid .field__input {
  border-color: #ff7a6b;
  box-shadow: 0 0 0 3px rgba(255, 122, 107, 0.15);
}

.field__error {
  margin: 8px 0 0;
  min-height: 0;
  font-size: 0.82rem;
  color: #ff9a8d;
}

.field__error:empty { display: none; }

.contact-form__submit {
  width: 100%;
  margin-top: 8px;
  border: 0;
}

.contact-form__submit[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.contact-form__status {
  margin: 16px 0 0;
  font-size: 0.92rem;
  text-align: center;
  color: var(--text-muted);
}

.contact-form__status:empty { display: none; }

.contact-form__status.is-success { color: var(--linen); }
.contact-form__status.is-success::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 10px var(--ember);
  vertical-align: middle;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .contact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .listings__grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .listing__btn { align-self: stretch; }
}

@media (prefers-reduced-motion: reduce) {
  .listing:hover,
  .js-scroll .listing.scroll-reveal.is-visible:hover { transform: none; }
  .listing:hover .listing__scene { transform: none; }
}

/* ==========================================================================
   Global refinements — typography & rhythm
   ========================================================================== */

:root {
  --nav-h: 76px;
  --radius-card: 22px;
}

h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.section { padding-block: clamp(88px, 11vw, 150px); }

.section__header { margin-bottom: clamp(44px, 6vw, 72px); }
.section__title { line-height: 1.04; }
.section__lede { line-height: 1.75; }

.amenity,
.listing,
.contact-form { border-radius: var(--radius-card); }

.amenity__title { margin-bottom: 10px; }
.listing__text { line-height: 1.75; }

/* ==========================================================================
   Skip link
   ========================================================================== */

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--nightfall);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease-out);
}
.skip-link:focus { transform: none; outline: 2px solid var(--linen); outline-offset: 3px; }

/* ==========================================================================
   Sticky navigation
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  transition: height 0.4s var(--ease-out);
}

/* Glass layer lives on a pseudo-element so the mobile menu (position: fixed)
   is not trapped inside backdrop-filter's containing block */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 17, 13, 0);
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  pointer-events: none;
}

.site-header.is-scrolled { --nav-h: 66px; }

.site-header.is-scrolled::before {
  background: rgba(14, 17, 13, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: content-box;
}

.nav__brand {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  line-height: 1;
  text-decoration: none;
  color: var(--linen);
}

.nav__brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.nav__brand-sub {
  margin-top: 4px;
  font-size: 0.56rem;
  font-weight: 400;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--ember);
}

.nav__brand:focus-visible,
.nav__link:focus-visible,
.nav__toggle:focus-visible,
.footer__links a:focus-visible,
.footer__top:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 4px;
  border-radius: 6px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 10px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ember), var(--clay));
  box-shadow: 0 0 10px rgba(234, 94, 33, 0.7);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.nav__link:hover,
.nav__link.is-active { color: var(--linen); }

.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.btn--sm {
  --pad-y: 11px;
  --pad-x: 22px;
  font-size: 0.86rem;
}

.nav__toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(14, 17, 13, 0.55);
  color: var(--linen);
  cursor: pointer;
  transition: border-color 0.3s var(--ease-out);
}

.nav__toggle:hover { border-color: rgba(234, 94, 33, 0.7); }

.nav__toggle-bar {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  margin-left: -9px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}
.nav__toggle-bar:nth-child(1) { top: 17px; }
.nav__toggle-bar:nth-child(2) { top: 25px; }

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { top: 21px; transform: rotate(-45deg); }

/* ---------- Mobile menu ---------- */

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .site-header.is-scrolled { --nav-h: 60px; }

  .nav__toggle { display: inline-block; }

  .nav__menu {
    position: fixed;
    inset: 0;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    padding: 96px var(--gutter) 48px;
    background:
      radial-gradient(80% 60% at 100% 100%, rgba(210, 107, 40, 0.22) 0%, transparent 70%),
      rgba(14, 17, 13, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s var(--ease-out), visibility 0s linear 0.4s;
  }

  .nav__menu.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s var(--ease-out), visibility 0s;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav__links li {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
  }

  .nav__menu.is-open .nav__links li { opacity: 1; transform: none; }
  .nav__menu.is-open .nav__links li:nth-child(2) { transition-delay: 60ms; }
  .nav__menu.is-open .nav__links li:nth-child(3) { transition-delay: 120ms; }
  .nav__menu.is-open .nav__links li:nth-child(4) { transition-delay: 180ms; }

  .nav__link {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--linen);
  }

  .nav__link::after { left: 0; right: auto; width: 48px; bottom: -1px; }

  .nav__cta { --pad-y: 16px; font-size: 1rem; }

  body.menu-open { overflow: hidden; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  position: relative;
  padding: clamp(56px, 7vw, 88px) var(--gutter) 28px;
  background:
    radial-gradient(60% 120% at 100% 0%, rgba(210, 107, 40, 0.1) 0%, transparent 60%),
    var(--bark);
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  align-items: start;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer__brand .nav__brand-name { font-size: 1.6rem; }

.footer__tagline {
  margin: 18px 0 0;
  max-width: 32ch;
  font-size: 0.95rem;
  font-weight: 300;
  color: var(--text-muted);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 12px 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer__links a {
  padding-bottom: 2px;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-decoration: none;
  background: linear-gradient(var(--ember), var(--ember)) left bottom / 0 1px no-repeat;
  transition: color 0.3s var(--ease-out), background-size 0.4s var(--ease-out);
}

.footer__links a:hover {
  color: var(--linen);
  background-size: 100% 1px;
}

.footer__top {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--linen);
  text-decoration: none;
  transition: border-color 0.3s var(--ease-out), color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.footer__top svg {
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--ease-out);
}

.footer__top:hover {
  border-color: rgba(234, 94, 33, 0.7);
  color: var(--ember);
  box-shadow: 0 0 24px -8px rgba(234, 94, 33, 0.6);
}
.footer__top:hover svg { transform: translateY(-3px); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  max-width: 1200px;
  margin: clamp(40px, 6vw, 64px) auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-faint);
}

.footer__bottom p { margin: 0; }

.footer__note {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* ==========================================================================
   Hover refinements — buttons & cards
   ========================================================================== */

/* Ghost button: warm glow rising from below */
.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(120% 140% at 50% 120%, rgba(234, 94, 33, 0.22) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.btn--ghost > * { position: relative; }
.btn--ghost:hover::before { opacity: 1; }

/* Cursor-following spotlight on cards (position set in JS) */
.amenity::before {
  background: radial-gradient(280px circle at var(--mx, 0%) var(--my, 0%), rgba(234, 94, 33, 0.2) 0%, transparent 65%);
}

.listing { position: relative; }

.listing::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(234, 94, 33, 0.12) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.45s var(--ease-out);
  pointer-events: none;
}
.listing:hover::after { opacity: 1; }
.listing__media,
.listing__body { position: relative; z-index: 1; }

.listing__tag { transition: border-color 0.4s var(--ease-out), color 0.4s var(--ease-out); }
.listing:hover .listing__tag {
  border-color: rgba(234, 94, 33, 0.6);
  color: var(--ember);
}

.amenity__icon svg { transition: transform 0.45s var(--ease-out); }
.amenity:hover .amenity__icon svg { transform: scale(1.08) rotate(-4deg); }

.contact-form { transition: border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out); }
.contact-form:focus-within {
  border-color: rgba(234, 94, 33, 0.35);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 50px -20px rgba(234, 94, 33, 0.35);
}

/* Touch screens: no "stuck" hover lifts after a tap */
@media (hover: none) {
  .btn--primary:hover,
  .btn--ghost:hover,
  .amenity:hover,
  .listing:hover,
  .js-scroll .amenity.scroll-reveal.is-visible:hover,
  .js-scroll .listing.scroll-reveal.is-visible:hover { transform: none; }
  .listing:hover .listing__scene { transform: none; }
}

/* ==========================================================================
   Responsive refinements
   ========================================================================== */

@media (max-width: 860px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__top { grid-column: 1 / -1; justify-self: start; }
  .about__quote { max-width: none; }
}

@media (max-width: 560px) {
  .section { padding-block: 76px; }
  .section__header { margin-bottom: 36px; }
  .section__title { font-size: clamp(1.85rem, 1.2rem + 3.6vw, 2.4rem); }

  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero__role { margin-top: 28px; }

  .about__quote { padding-left: 18px; }

  .amenities__grid { gap: 12px; }
  .amenity {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    align-items: start;
  }
  .amenity__icon { grid-row: span 2; width: 46px; height: 46px; margin-bottom: 0; }
  .amenity__title { margin-top: 2px; }

  .listing__body { padding: 24px 22px 26px; }
  .contact-form { padding: 22px 18px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__links { gap: 14px 40px; }
  .footer__bottom { flex-direction: column; }
}

@media (max-width: 380px) {
  .hero__eyebrow,
  .section__eyebrow { letter-spacing: 0.2em; gap: 10px; }
  .hero__eyebrow-line,
  .section__eyebrow-line { width: 28px; }
  .hero__sub { letter-spacing: 0.3em; }
  .listing__meta li { font-size: 0.76rem; padding: 4px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header::before,
  .nav__menu,
  .nav__links li { transition: none; }
  .amenity:hover .amenity__icon svg { transform: none; }
}

/* Contact form error state (network / server failure) */
.contact-form__status.is-error { color: #ff9a8d; }

/* Footer links on one straight horizontal line at every width */
.footer__links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(18px, 3vw, 36px);
}

.footer__links a { white-space: nowrap; }

@media (max-width: 560px) {
  .footer__links { gap: clamp(14px, 5vw, 24px); }
}

/* ---------- Header logo mark ---------- */
.nav__brand--logo {
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.nav__brand-text {
  display: inline-flex;
  flex-direction: column;
}

.nav__brand-mark {
  display: block;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
  .nav__brand--logo:hover .nav__brand-mark { transform: rotate(-8deg) scale(1.04); }
}

@media (max-width: 560px) {
  .nav__brand--logo { gap: 10px; }
  .nav__brand-mark { width: 38px; height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav__brand-mark { transition: none; }
}
