/* ---------- Tokens ---------- */
:root {
  --ink: #fff;
  --ink-soft: rgba(255, 255, 255, 0.82);
  --accent: #f2a65a;          /* firelight amber */
  --accent-deep: #e48a34;
  --glass: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.28);
  --gutter: clamp(20px, 4vw, 56px);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: #14110f;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Hero shell ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  padding: 0 var(--gutter) clamp(20px, 3vw, 36px);
  overflow: hidden;
  isolation: isolate;
  z-index: 5;
}

/* Slideshow */
.hero__slides, .slide, .hero__shade { position: absolute; inset: 0; }
.hero__slides { z-index: -2; }
.slide {
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.6s var(--ease);
}
.slide.is-active {
  opacity: 1;
  animation: drift 14s linear forwards;
}
@keyframes drift {
  from { transform: scale(1.04); }
  to   { transform: scale(1.14); }
}

/* Legibility: dark at top (nav) and bottom-left (copy), clear in the middle-right */
.hero__shade {
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 8, 6, 0.55) 0%, rgba(10, 8, 6, 0) 24%),
    linear-gradient(90deg, rgba(10, 8, 6, 0.62) 0%, rgba(10, 8, 6, 0.18) 55%, rgba(10, 8, 6, 0) 80%),
    linear-gradient(0deg, rgba(10, 8, 6, 0.7) 0%, rgba(10, 8, 6, 0) 40%);
}

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-block: clamp(16px, 2.4vw, 28px);
}
/* Logo lockup: mark + name, all live text so it stays sharp at any size */
.nav__logo { flex: 0 0 auto; margin-right: auto; }
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
  line-height: 1;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.85; }
.logo__mark { width: 54px; height: 54px; flex: none; color: #fff; }
.logo__text { display: grid; gap: 7px; }
.logo__name { font-family: var(--serif); font-weight: 500; font-size: 29px; letter-spacing: 0.01em; text-transform: uppercase; }
.logo__sub { font-size: 11.5px; font-weight: 600; letter-spacing: 0.5em; text-transform: uppercase; color: var(--accent); }
.nav__links { display: flex; align-items: baseline; gap: clamp(14px, 2.2vw, 36px); }
.nav__links a { white-space: nowrap; }
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-block: 6px;
  transition: color 0.2s;
}
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

/* Properties dropdown (desktop) */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle {
  position: relative; display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 0; border: 0; background: none; cursor: pointer;
  font-family: var(--sans); font-size: 14px; font-weight: 500; line-height: normal; color: var(--ink-soft);
  transition: color 0.2s;
}
.nav__dropdown-toggle::after {
  content: ""; position: absolute; left: 0; right: 17px; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav__dropdown-toggle svg { flex: none; transition: transform 0.25s var(--ease); }
.nav__dropdown:hover .nav__dropdown-toggle, .nav__dropdown.is-open .nav__dropdown-toggle, .nav__dropdown-toggle.is-current { color: var(--ink); }
.nav__dropdown:hover .nav__dropdown-toggle::after, .nav__dropdown.is-open .nav__dropdown-toggle::after, .nav__dropdown-toggle.is-current::after { transform: scaleX(1); }
.nav__dropdown.is-open .nav__dropdown-toggle svg { transform: rotate(180deg); }

.nav__submenu {
  position: absolute; top: 100%; left: -18px; z-index: 5;
  min-width: 260px; margin: 12px 0 0; padding: 8px; list-style: none;
  background: rgba(20, 17, 15, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}
/* keeps the menu open while the mouse crosses the small gap */
.nav__submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__dropdown.is-open .nav__submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: hover) {
  .nav__dropdown:hover .nav__submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
}
.nav__links .nav__submenu a {
  display: block; padding: 12px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink);
}
.nav__links .nav__submenu a::after { display: none; }
.nav__links .nav__submenu a small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--ink-soft); }
.nav__links .nav__submenu a:hover, .nav__links .nav__submenu a:focus-visible { background: rgba(255, 255, 255, 0.09); }
.nav__links .nav__submenu a[aria-current="page"] { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  font: 600 14px/1 var(--sans);
  border-radius: 999px;
  padding: 14px 24px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn--ghost {
  color: var(--ink);
  background: var(--glass);
  border-color: var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.26); }
.btn--primary { background: var(--accent); color: #2a1a0a; }
.btn--primary:hover { background: var(--accent-deep); transform: translateY(-1px); }

/* ---------- Copy ---------- */
.hero__content {
  align-self: end;
  max-width: 760px;
  padding-block: clamp(40px, 8vh, 96px) clamp(24px, 4vh, 40px);
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin: 0 0 20px;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }

.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 7.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero__title span { display: block; }
.hero__title span:last-child { font-style: italic; color: #ffe2bf; }

.hero__sub {
  margin: 24px 0 0;
  max-width: 480px;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.6;
  color: var(--ink-soft);
}

/* Entrance */
.eyebrow, .hero__title span, .hero__sub, .booking, .hero__meta {
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s var(--ease) forwards;
}
.eyebrow            { animation-delay: 0.15s; }
.hero__title span:nth-child(1) { animation-delay: 0.3s; }
.hero__title span:nth-child(2) { animation-delay: 0.5s; }
.hero__sub          { animation-delay: 0.75s; }
.booking            { animation-delay: 0.95s; }
.hero__meta         { animation-delay: 1.2s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Booking bar ---------- */
.booking {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr auto;
  align-items: stretch;
  gap: 4px;
  padding: 8px;
  max-width: 980px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  color: #1d1814;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.field {
  display: flex; flex-direction: column; gap: 4px;
  padding: 10px 18px;
  border-radius: 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.field:hover, .field:focus-within { background: #f4efe9; }
.field + .field { box-shadow: -1px 0 0 #ece5dc; }
.field:hover + .field, .field:focus-within + .field { box-shadow: none; }
.field__label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #8a7d70;
}
.field select, .field input {
  appearance: none; -webkit-appearance: none;
  border: 0; outline: 0; background: transparent;
  padding: 0;
  font: 500 15px/1.3 var(--sans);
  color: #1d1814;
  width: 100%;
  cursor: pointer;
}
.booking .btn--primary { border-radius: 16px; padding-inline: 28px; font-size: 15px; }

/* ---------- Caption + dots ---------- */
.hero__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  margin-top: clamp(18px, 3vw, 30px);
}
.caption {
  display: flex; align-items: center; gap: 10px;
  margin: 0;
  font-size: 13px; color: var(--ink-soft);
  letter-spacing: 0.02em;
}
.caption__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.dots { display: flex; gap: 6px; }
.dot {
  position: relative;
  width: clamp(10px, 2vw, 26px); height: 3px; padding: 0; border: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px; cursor: pointer;
}
.dot::before { content: ""; position: absolute; inset: -16px -3px; }
.dot::after {
  content: ""; position: absolute; inset: 0;
  background: #fff; transform: scaleX(0); transform-origin: left; border-radius: 3px;
}
.dot.is-active::after { animation: fill var(--slide-ms, 7000ms) linear forwards; }
.dot.is-done::after { transform: scaleX(1); }
@keyframes fill { to { transform: scaleX(1); } }

/* Simple booking bar: choose a home, then go to its booking section */
.booking--simple { grid-template-columns: 1fr auto; max-width: 620px; }

/* Copyright line (home page) */
.site-copy { padding: 22px var(--gutter); background: #14110f; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.site-copy p { margin: 0; font-size: 13px; color: rgba(255, 255, 255, 0.5); }

/* Copyright strip links (home page) */
.site-copy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; }
.site-copy__links { display: flex; flex-wrap: wrap; gap: 6px 24px; }
.site-copy a { color: rgba(255, 255, 255, 0.75); }
.site-copy a:hover { color: #fff; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .nav__links a, .nav__dropdown-toggle { font-size: 13px; }
}
@media (max-width: 900px) {
  .booking { grid-template-columns: 1fr 1fr; max-width: 560px; }
  .booking--simple { grid-template-columns: 1fr; }
  .booking .field:first-child { grid-column: 1 / -1; }
  .field + .field { box-shadow: none; }
  .booking .btn--primary { grid-column: 1 / -1; padding-block: 16px; }
}
@media (max-width: 560px) {
  .logo { gap: 10px; }
  .logo__mark { width: 42px; height: 42px; }
  .logo__name { font-size: 22px; }
  .logo__sub { font-size: 9.5px; letter-spacing: 0.44em; }
  .hero__shade {
    background:
      linear-gradient(180deg, rgba(10, 8, 6, 0.55) 0%, rgba(10, 8, 6, 0) 22%),
      linear-gradient(0deg, rgba(10, 8, 6, 0.8) 0%, rgba(10, 8, 6, 0.25) 60%, rgba(10, 8, 6, 0.1) 100%);
  }
  .booking { grid-template-columns: 1fr; }
  .caption { display: none; }
  .hero__meta { justify-content: center; }
}

/* ---------- Mobile menu ---------- */
.nav__toggle, .nav__panel-cta, .nav__panel-contact { display: none; }

@media (max-width: 900px) {
  .nav { position: relative; z-index: 90; gap: 12px; }
  .nav__logo, .nav__cta, .nav__toggle { position: relative; z-index: 2; }
  .nav__cta { margin-left: 0; }

  .nav__toggle {
    display: block; flex: none; width: 46px; height: 46px; padding: 0;
    border-radius: 50%; cursor: pointer;
    background: var(--glass); border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
  }
  .nav__toggle span {
    position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px;
    background: #fff; transition: transform 0.3s var(--ease), top 0.3s var(--ease);
  }
  .nav__toggle span:first-child { top: 17px; }
  .nav__toggle span:last-child { top: 26px; }
  .nav.is-open .nav__toggle span:first-child { top: 21.5px; transform: rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { top: 21.5px; transform: rotate(-45deg); }

  /* The link list becomes a full-screen panel */
  .nav__links {
    position: fixed; inset: 0; height: 100vh; height: 100dvh; z-index: 1;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 112px var(--gutter) 40px;
    overflow-y: auto; overscroll-behavior: contain;
    background: #14110f;
    opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; pointer-events: auto; }
  .nav__links li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
  .nav__links a {
    display: block; padding: 18px 0;
    font-family: var(--serif); font-size: clamp(1.6rem, 6.4vw, 2.2rem); font-weight: 400;
    color: var(--ink);
  }
  .nav__links a::after { display: none; }
  .nav__links a[aria-current="page"] { color: var(--accent); }
  .nav__links .nav__dropdown { border-bottom: 0; }
  .nav__dropdown-toggle { display: none; }
  .nav__dropdown::before {
    content: "Properties"; display: block; padding-top: 22px;
    font: 600 12px/1 var(--sans); letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent);
  }
  .nav__links .nav__submenu {
    position: static; min-width: 0; margin: 0; padding: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    opacity: 1; visibility: inherit; transform: none; transition: none;   /* "inherit", not "visible": a closed menu must stay untappable */
  }
  .nav__submenu::before { display: none; }
  .nav__links .nav__submenu a {
    padding: 18px 0; border-radius: 0;
    font-family: var(--serif); font-size: clamp(1.6rem, 6.4vw, 2.2rem); font-weight: 400;
  }
  .nav__links .nav__submenu a { padding: 16px 0; }
  .nav__links .nav__submenu a small { display: block; margin-top: 6px; font: 400 14px/1.3 var(--sans); letter-spacing: 0.01em; color: var(--ink-soft); }
  .nav__links .nav__submenu a:hover, .nav__links .nav__submenu a:focus-visible { background: none; }
  .nav__links .nav__panel-cta { display: block; margin-top: 28px; border: 0; }
  .nav__links .nav__panel-cta a { display: block; padding: 17px 28px; text-align: center; font: 600 16px/1 var(--sans); color: #2a1a0a; }
  .nav__links .nav__panel-contact { display: grid; gap: 4px; margin-top: 20px; border: 0; }
  .nav__links .nav__panel-contact a { padding: 8px 0; font: 500 16px/1.3 var(--sans); color: var(--ink-soft); word-break: break-word; }

  body.nav-open { overflow: hidden; }
  body.nav-open .float-bar { opacity: 0; pointer-events: none; }

  /* 16px inputs stop iOS from zooming in when a field is tapped */
  .field select, .field input { font-size: 16px; }
}
@media (max-width: 560px) {
  .nav__cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .eyebrow, .hero__title span, .hero__sub, .booking, .hero__meta { opacity: 1; transform: none; }
}

/* ---------- Rotating hero photos on phones ----------
   On a tall, narrow screen "cover" crops a wide photo down to a thin vertical
   strip. Here each photo shows at full width instead, with a soft blurred copy
   of the same photo filling the space behind the headline. Desktop and tablet
   (768px and up) keep the original full-bleed look. */
@media (max-width: 767px) {
  :root { --hero-photo-h: calc(100vw * 2 / 3); }
  .hero--rotating .hero__content { padding-top: calc(var(--hero-photo-h) + 6px); }
  .hero__slides--rotating .slide {
    background-size: 0 0;            /* the slide's own paint is replaced by the two layers below */
    transform: none;
  }
  .hero__slides--rotating .slide.is-active { animation: none; }   /* no zoom, so edges are never cropped */

  /* back layer: the same photo, filling the screen, blurred and dimmed */
  .hero__slides--rotating .slide::before {
    content: ""; position: absolute; inset: -40px;
    background-image: inherit; background-size: cover; background-position: center;
    filter: blur(26px) brightness(0.55) saturate(1.1);
  }
  /* front layer: the whole photo at full width, just below the menu bar */
  .hero__slides--rotating .slide::after {
    content: ""; position: absolute; left: 0; right: 0; top: 84px;
    height: var(--hero-photo-h);
    background-image: inherit; background-repeat: no-repeat;
    background-size: contain; background-position: center top;
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
            mask-image: linear-gradient(180deg, #000 80%, transparent);
  }
  /* a tall (portrait) photo fills the width and crops the top, keeping the lower part */
  .hero__slides--rotating .slide--portrait::after {
    background-size: cover; background-position: center 80%;
  }
}
