/* ==========================================================================
   ReluxeBnB — luxury short-stay portfolio
   Palette: charcoal base, warm ivory, single gold accent
   Type: Cormorant Garamond (display) + Inter (body)
   ========================================================================== */

:root {
  --charcoal:   #1A1815;
  --charcoal-2: #221F1B;
  --ivory:      #F5E8C8;
  --ivory-dim:  #d9cdb0;
  --gold:       #D69E23;
  --gold-soft:  #e2b84e;
  --stone:      #8f877a;
  --line:       rgba(214, 158, 35, 0.28);

  --maxw: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--charcoal);
  color: var(--ivory);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ---- Header --------------------------------------------------------------*/
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
  transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(26, 24, 21, 0.92);
  backdrop-filter: blur(10px);
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--ivory);
}
.brand span { color: var(--gold); }
.nav { display: flex; gap: 34px; align-items: center; }
.nav a {
  font-size: 0.82rem; letter-spacing: 0.06em; color: var(--ivory-dim);
  transition: color 0.25s var(--ease);
}
.nav a:hover { color: var(--gold); }
.nav-cta {
  border: 1px solid var(--gold);
  padding: 9px 20px; border-radius: 2px;
  color: var(--gold) !important; letter-spacing: 0.1em; font-size: 0.75rem;
  text-transform: uppercase; transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: var(--gold); color: var(--charcoal) !important; }

/* ---- Hero ----------------------------------------------------------------*/
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center;
  background:
    linear-gradient(180deg, rgba(26,24,21,0.55) 0%, rgba(26,24,21,0.35) 40%, var(--charcoal) 100%),
    radial-gradient(120% 80% at 70% 20%, rgba(214,158,35,0.10), transparent 60%),
    var(--charcoal-2);
  overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: url('../img/hero.jpg') center/cover no-repeat;
  opacity: 0.32; z-index: 0; mix-blend-mode: luminosity;
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-eyebrow { margin-bottom: 22px; opacity: 0; animation: rise 0.9s var(--ease) 0.1s forwards; }
.hero h1 {
  font-size: clamp(3rem, 8vw, 6.4rem);
  max-width: 15ch; margin-bottom: 26px;
  opacity: 0; animation: rise 1s var(--ease) 0.22s forwards;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero p {
  font-size: 1.08rem; color: var(--ivory-dim); max-width: 46ch;
  margin-bottom: 40px; opacity: 0; animation: rise 1s var(--ease) 0.38s forwards;
}
.hero-actions { display: flex; gap: 18px; opacity: 0; animation: rise 1s var(--ease) 0.52s forwards; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 30px; border-radius: 2px;
  font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase;
  transition: all 0.3s var(--ease); cursor: pointer; border: 1px solid transparent;
}
.btn-gold { background: var(--gold); color: var(--charcoal); font-weight: 600; }
.btn-gold:hover { background: var(--gold-soft); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ivory); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.hero-eyebrow, .hero h1, .hero p, .hero-actions { transform: translateY(26px); }

/* ---- Section shell -------------------------------------------------------*/
.section { padding: 120px 0; }
.section-head { max-width: 60ch; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); margin: 16px 0 18px; }
.section-head p { color: var(--stone); font-size: 1.05rem; }

/* ---- Listings grid -------------------------------------------------------*/
.listings {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.card {
  position: relative; border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; background: var(--charcoal-2);
  transition: transform 0.5s var(--ease), border-color 0.4s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--gold); }
.card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #14120f; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease); filter: saturate(1.02);
}
.card:hover .card-media img { transform: scale(1.06); }
.card-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(20,18,15,0.85) 100%);
}
.card-city {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ivory); background: rgba(26,24,21,0.6); backdrop-filter: blur(4px);
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 2px;
}
.card-body { padding: 22px 24px 26px; }
.card-body h3 {
  font-size: 1.5rem; margin-bottom: 10px; color: var(--ivory);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
  display: flex; gap: 18px; color: var(--stone);
  font-size: 0.82rem; letter-spacing: 0.02em; margin-bottom: 18px;
}
.card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; color: var(--gold); }
.card-price small { font-family: 'Inter'; font-size: 0.7rem; color: var(--stone); letter-spacing: 0.06em; }
.card-link {
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ivory-dim); border-bottom: 1px solid var(--line); padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.card:hover .card-link { color: var(--gold); border-color: var(--gold); }

/* loading + empty states */
.state { text-align: center; padding: 80px 20px; color: var(--stone); grid-column: 1 / -1; }
.skeleton { grid-column: auto; }
.skeleton .card-media { background: linear-gradient(90deg,#1c1a16,#26231e,#1c1a16); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton .sk-line { height: 14px; background: #26231e; border-radius: 3px; margin: 12px 24px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---- Value strip ---------------------------------------------------------*/
.values { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--charcoal-2); }
.values .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-top: 70px; padding-bottom: 70px; }
.value h3 { font-size: 1.7rem; margin: 14px 0 10px; }
.value p { color: var(--stone); font-size: 0.95rem; }
.value .num { font-family: 'Cormorant Garamond', serif; font-size: 1rem; color: var(--gold); letter-spacing: 0.2em; }

/* ---- Footer --------------------------------------------------------------*/
.site-footer { padding: 70px 0 40px; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer p { color: var(--stone); font-size: 0.88rem; max-width: 34ch; }
.foot-links { display: flex; gap: 40px; }
.foot-col h4 { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--ivory-dim); font-size: 0.9rem; margin-bottom: 10px; transition: color 0.25s; }
.foot-col a:hover { color: var(--gold); }
.copyright { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--stone); font-size: 0.8rem; }

/* ---- Responsive ----------------------------------------------------------*/
@media (max-width: 860px) {
  .nav { display: none; }
  .values .wrap { grid-template-columns: 1fr; gap: 30px; }
  .section { padding: 84px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
  .hero-eyebrow, .hero h1, .hero p, .hero-actions { opacity: 1; transform: none; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
