/* ============================================================
   Loyalist Property — Design System
   "Quietly premium": warm editorial, teal + terracotta.
   Fonts: Fraunces (display serif) + Inter (UI/body)
   ============================================================ */

:root {
  --paper: #faf7f2;
  --card: #ffffff;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --ink-faint: #9ca3af;
  --brand: #0f766e;
  --brand-dark: #115e59;
  --brand-pale: #99f6e4;
  --brand-wash: #ecfdf5;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --accent-pale: #ffedd5;
  --neutral: #f1f5f9;
  --line: #e5e7eb;
  --shadow-sm: 0 1px 3px rgba(31, 41, 55, .07), 0 1px 2px rgba(31, 41, 55, .05);
  --shadow-md: 0 6px 24px -6px rgba(31, 41, 55, .14);
  --shadow-lg: 0 20px 50px -12px rgba(31, 41, 55, .22);
  --radius: 14px;
  --radius-lg: 22px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--accent);
  margin-bottom: .75rem;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
@media (max-width: 640px) { section { padding: 52px 0; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; display: grid; place-items: center;
  font-size: 1.05rem; font-weight: 700; font-family: var(--font-body);
}
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { padding: .55rem 1.2rem !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .25s; }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: var(--paper);
    padding: 20px 24px 28px;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem;
  padding: .8rem 1.6rem; border-radius: 999px;
  border: 0; cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--brand-wash); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex; align-items: flex-end;
  color: #fff;
  isolation: isolate;
}
.hero img.hero-bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
}
/* ----- Hero slider (home page) ----- */
.hero-slider {
  position: absolute; inset: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute; inset: 0; z-index: 0;
  opacity: 0; transition: opacity 1.2s ease;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 7s ease-out;
}
.hero-slide.active img { transform: scale(1); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15,23,42,.25) 0%, rgba(15,23,42,.05) 40%, rgba(15,23,42,.78) 100%);
}
.hero-inner { padding: 120px 0 84px; max-width: 720px; position: relative; z-index: 2; }
.hero h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero .lede { color: rgba(255,255,255,.92); margin: 1.2rem 0 2rem; }
.hero-slide-tag {
  position: absolute; top: 110px; right: 0;
  background: rgba(15,23,42,.62); backdrop-filter: blur(4px);
  color: rgba(255,255,255,.92);
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  padding: .45rem .95rem; border-radius: 999px 0 0 999px;
}
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5; width: 46px; height: 46px; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 1.6rem; cursor: pointer; display: grid; place-items: center;
  transition: background .2s ease; backdrop-filter: blur(2px);
}
.hero-arrow:hover { background: rgba(255,255,255,.28); }
.hero-prev { left: 18px; }
.hero-next { right: 18px; }
.hero-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 5;
}
.hero-dot {
  width: 9px; height: 9px; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.45); transition: all .25s ease; padding: 0;
}
.hero-dot.active { background: #fff; width: 26px; }
.hero-eyebrow {
  color: var(--brand-pale);
  font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .8rem;
  margin-bottom: 1rem;
}
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Trust bar ---------- */
.trust-bar { border-bottom: 1px solid var(--line); background: var(--card); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding: 26px 0; }
.trust-item { text-align: center; padding: 0 8px; }
.trust-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--brand); }
.trust-label { font-size: .82rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 720px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Property cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--card); border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 3 / 2; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card-chip {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px);
  color: var(--accent-dark); font-weight: 700; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .32rem .7rem; border-radius: 999px;
}
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-city { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }
.card-body p { color: var(--ink-soft); font-size: .95rem; }
.card-link { margin-top: auto; font-weight: 600; color: var(--brand); }

/* ---------- Feature grid (amenities/services) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--card); border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--brand-wash); color: var(--brand);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px;
}
.feature p { color: var(--ink-soft); font-size: .92rem; margin-top: .4rem; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 100%);
  border-radius: var(--radius-lg);
  color: #fff; padding: 56px 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: .4rem; max-width: 52ch; }

/* ---------- Property detail ---------- */
.prop-hero {
  position: relative; min-height: 52vh; display: flex; align-items: flex-end;
  color: #fff; isolation: isolate; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden; margin-bottom: 8px;
}
.prop-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.prop-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(15,23,42,.1) 0%, rgba(15,23,42,.72) 100%);
}
.prop-hero .wrap { padding: 90px 24px 44px; width: 100%; }
.prop-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); }
.prop-hero .city-chip {
  display: inline-block; background: rgba(255,255,255,.92); color: var(--accent-dark);
  font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .75rem; border-radius: 999px; margin-bottom: .9rem;
}
.prop-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .prop-layout { grid-template-columns: 1fr; } }
.prop-rail {
  position: sticky; top: 96px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 1.1rem;
}
@media (max-width: 900px) { .prop-rail { position: static; } }
.rail-block h3 {
  font-family: var(--font-body); font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em; color: var(--brand);
  margin-bottom: .5rem;
}
.rail-list { list-style: none; display: flex; flex-direction: column; gap: .45rem; }
.rail-list li { padding-left: 1.4rem; position: relative; font-size: .93rem; color: var(--ink-soft); }
.rail-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700;
}
.rail-contact {
  border-top: 1px solid var(--line); padding-top: 1.1rem;
  display: flex; flex-direction: column; gap: .6rem;
}
.rail-phone { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.section-block { margin-bottom: 48px; }
.section-block h2 { margin-bottom: 1rem; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
.gallery-grid a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; position: relative; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-grid a:hover img { transform: scale(1.06); }
.gallery-grid a::after {
  content: "⤢"; position: absolute; right: 10px; bottom: 8px;
  color: #fff; font-size: .95rem; opacity: 0; transition: opacity .2s ease;
  background: rgba(15,23,42,.55); border-radius: 999px; padding: .25rem .5rem;
}
.gallery-grid a:hover::after { opacity: 1; }
.gallery-hint { font-size: .8rem; font-weight: 400; color: var(--ink-soft); letter-spacing: 0; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15, 23, 42, .92);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; flex-direction: column; gap: 12px; }
.lightbox img { max-width: 88vw; max-height: 78vh; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lb-count {
  position: fixed; top: 24px; left: 24px;
  color: rgba(255,255,255,.85); font-size: .85rem; font-weight: 600;
  background: rgba(255,255,255,.1); padding: .3rem .75rem; border-radius: 999px;
}
.lb-caption {
  color: rgba(255,255,255,.85); font-size: .9rem; max-width: 80vw;
  text-align: center; margin-top: 2px;
}
.lightbox button {
  position: fixed; background: rgba(255,255,255,.12); border: 0; color: #fff;
  font-size: 2rem; cursor: pointer; border-radius: 999px;
  width: 52px; height: 52px; display: grid; place-items: center;
}
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
label { font-weight: 600; font-size: .88rem; color: var(--ink); display: block; margin-bottom: .35rem; }
input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%; padding: .75rem .9rem;
  border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: var(--card);
  transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, .15);
}
textarea { min-height: 130px; resize: vertical; }
.field-hint { font-size: .8rem; color: var(--ink-faint); margin-top: .3rem; }
.hp-field { position: absolute; left: -9999px; opacity: 0; } /* spam trap */
.form-note { font-size: .82rem; color: var(--ink-faint); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.75);
  padding: 64px 0 32px; margin-top: 40px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: #fff; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .12em; margin-bottom: .9rem;
}
.site-footer a { color: rgba(255,255,255,.75); }
.site-footer a:hover { color: var(--brand-pale); }
.footer-list { list-style: none; display: flex; flex-direction: column; gap: .5rem; font-size: .92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding-top: 22px;
  font-size: .82rem; color: rgba(255,255,255,.45);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Utilities & motion ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head .lede { margin-top: .6rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.mt-2 { margin-top: 2rem; }
.badge-avail {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--accent-pale); color: var(--accent-dark);
  font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em;
  padding: .35rem .8rem; border-radius: 999px;
}
.badge-avail::before { content: "●"; font-size: .6rem; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}