/* =====================================================
   WHERE TO STAY — Main Stylesheet
   Damerax Cloud Solutions
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,300;9..144,400;9..144,500;9..144,600&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Color tokens */
  --void: #0B0B0A;
  --void-lift: #141412;
  --void-card: #181714;
  --parchment: #F7F3EC;
  --parchment-dim: #C9C4B8;
  --amber: #C98A4B;
  --amber-bright: #E0A766;
  --moss: #3A4036;
  --moss-bright: #5C6651;
  --stone: #8A8378;
  --hairline: rgba(247, 243, 236, 0.1);
  --hairline-strong: rgba(247, 243, 236, 0.18);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout */
  --max-width: 1320px;
  --gutter: 32px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img, video { max-width: 100%; display: block; }

::selection { background: var(--amber); color: var(--void); }

:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------------------------------------------------
   Typography
   --------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 300; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: 1.5rem; font-weight: 500; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}

.lede {
  font-size: 1.15rem;
  color: var(--parchment-dim);
  font-weight: 400;
  line-height: 1.7;
}

.data-strip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--stone);
  text-transform: uppercase;
}

/* ---------------------------------------------------
   Navigation
   --------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 28px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(11,11,10,0.85) 0%, transparent 100%);
  backdrop-filter: blur(2px);
}

.site-header .logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.01em;
}

.site-header .logo span { color: var(--amber); }

.site-nav {
  display: flex;
  gap: 36px;
  align-items: center;
}

.site-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--parchment-dim);
  transition: color 0.25s ease;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--parchment);
  border-bottom-color: var(--amber);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--parchment);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ---------------------------------------------------
   Buttons
   --------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  color: var(--parchment);
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.btn-solid {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--void);
  font-weight: 500;
}

.btn-solid:hover {
  background: transparent;
  color: var(--amber);
}

/* ---------------------------------------------------
   Hero
   --------------------------------------------------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,11,10,0.95) 0%, rgba(11,11,10,0.35) 45%, rgba(11,11,10,0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--gutter) 90px;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 {
  max-width: 920px;
  margin: 18px 0 28px;
}

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ---------------------------------------------------
   Category navigation strip
   --------------------------------------------------- */
.category-strip {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow-x: auto;
  scrollbar-width: none;
}

.category-strip::-webkit-scrollbar { display: none; }

.category-strip-inner {
  display: flex;
  max-width: var(--max-width);
  margin: 0 auto;
}

.category-strip a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 22px 28px;
  white-space: nowrap;
  color: var(--stone);
  border-right: 1px solid var(--hairline);
  transition: color 0.25s ease, background 0.25s ease;
}

.category-strip a:hover,
.category-strip a.active {
  color: var(--amber);
  background: var(--void-lift);
}

/* ---------------------------------------------------
   Section headers
   --------------------------------------------------- */
.section {
  padding: 100px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}

.section-header h2 { margin-top: 14px; }

.section-header .lede { max-width: 460px; }

/* ---------------------------------------------------
   Property grid + cards
   --------------------------------------------------- */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--hairline);
}

.property-card {
  background: var(--void);
  position: relative;
  display: block;
  overflow: hidden;
}

.property-card .thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--void-card);
}

.property-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.property-card:hover .thumb img {
  transform: scale(1.06);
}

.property-card .thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,11,10,0.92) 0%, rgba(11,11,10,0.1) 55%, transparent 100%);
}

.property-card .card-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px;
  z-index: 2;
}

.property-card .card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
  display: block;
}

.property-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.property-card .card-data {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--parchment-dim);
  letter-spacing: 0.02em;
  padding-top: 10px;
  border-top: 1px solid var(--hairline-strong);
  margin-top: 14px;
}

.property-card .card-data .price { color: var(--amber); }

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 20px;
  color: var(--stone);
}

/* ---------------------------------------------------
   Property detail page
   --------------------------------------------------- */
.detail-hero {
  position: relative;
  height: 86vh;
  min-height: 560px;
}

.detail-body {
  max-width: 880px;
  margin: -120px auto 0;
  position: relative;
  z-index: 3;
  background: var(--void);
  padding: 56px var(--gutter) 0;
}

.detail-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin: 32px 0 48px;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.detail-meta-item .label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  display: block;
  margin-bottom: 6px;
}

.detail-meta-item .value {
  font-size: 1.05rem;
  color: var(--parchment);
}

.detail-description {
  font-size: 1.1rem;
  line-height: 1.85;
  color: var(--parchment-dim);
  max-width: 720px;
}

.amenity-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.amenity-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--hairline-strong);
  padding: 8px 16px;
  color: var(--parchment-dim);
}

.detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  margin: 60px 0;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

.detail-contact {
  background: var(--void-card);
  padding: 40px var(--gutter);
  margin: 0 calc(-1 * var(--gutter));
  text-align: center;
}

/* ---------------------------------------------------
   Footer
   --------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: 70px 0 40px;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 18px;
  font-weight: 400;
}

.footer-grid a {
  display: block;
  color: var(--parchment-dim);
  margin-bottom: 10px;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-grid a:hover { color: var(--amber); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--stone);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------------------------------------------------
   Newsletter / capture form
   --------------------------------------------------- */
.capture-form {
  display: flex;
  gap: 0;
  max-width: 460px;
  border: 1px solid var(--hairline-strong);
}

.capture-form input[type="email"] {
  flex: 1;
  background: transparent;
  border: none;
  padding: 16px 18px;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.capture-form input[type="email"]:focus { outline: none; }

.capture-form button {
  border: none;
  border-left: 1px solid var(--hairline-strong);
  background: var(--amber);
  color: var(--void);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 24px;
  cursor: pointer;
}

.form-success, .form-error {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-top: 14px;
}

.form-success { color: var(--moss-bright); }
.form-error { color: var(--amber); }

/* ---------------------------------------------------
   Teaser / Coming soon
   --------------------------------------------------- */
.teaser-page {
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.teaser-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.countdown {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin: 48px 0;
}

.countdown-unit {
  font-family: var(--font-mono);
}

.countdown-unit .num {
  font-size: clamp(2rem, 5vw, 3.6rem);
  color: var(--amber);
  font-weight: 500;
  line-height: 1;
}

.countdown-unit .label {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 8px;
}

/* ---------------------------------------------------
   Responsive
   --------------------------------------------------- */
@media (max-width: 980px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .detail-gallery { grid-template-columns: 1fr; }
  .site-nav { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  .property-grid { grid-template-columns: 1fr; }
  :root { --gutter: 20px; }
  .detail-body { margin-top: -60px; padding-top: 36px; }
  .countdown { gap: 16px; }
  .detail-contact { margin: 0 -20px; }
}
