:root {
  --paper: #f4efe7;
  --paper-2: #ede5d9;
  --white: #fffdf9;
  --ink: #1b222b;
  --muted: #726c62;
  --navy: #142536;
  --navy-2: #0d1b28;
  --brass: #b08a57;
  --brass-2: #93703f;
  --line: #ded3c4;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Karla", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shadow: 0 30px 70px -45px rgba(20, 37, 54, 0.55);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button { cursor: pointer; }

::selection { background: var(--brass); color: var(--navy-2); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--paper);
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

.wrap { width: min(1200px, calc(100% - 48px)); margin-inline: auto; }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
}

h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.35rem, 4.6vw, 3.9rem);
  line-height: 1.03;
  letter-spacing: -0.015em;
  margin-top: 14px;
}

/* ---------- header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-head.scrolled { border-color: var(--line); box-shadow: 0 12px 30px -28px rgba(20, 37, 54, 0.5); }

.head-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; }

.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); }
.logo svg { flex: none; }
.logo-word { font-family: var(--serif); font-size: 1.7rem; line-height: 1; letter-spacing: -0.02em; }
.logo-sub {
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line);
  padding-left: 9px;
  line-height: 1.2;
}

.nav { display: flex; gap: 26px; }
.nav a { font-size: 0.9rem; font-weight: 600; position: relative; padding: 6px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: 0;
  height: 1px;
  background: var(--brass);
  transition: right 0.25s var(--ease);
}
.nav a:hover::after { right: 0; }

.head-actions { display: flex; align-items: center; gap: 14px; }
.head-phone { display: grid; line-height: 1.25; text-align: right; }
.head-phone span { font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); }
.head-phone b { font-size: 0.85rem; color: var(--navy); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--navy); color: var(--paper); }
.btn.primary:hover { background: var(--navy-2); }
.btn.light { background: var(--paper); color: var(--navy); }
.btn.light:hover { background: #fff; }
.btn.ghost { border-color: var(--line); color: var(--navy); }
.btn.ghost:hover { background: var(--paper-2); }
.btn.full { width: 100%; }

.head-btn { min-height: 42px; padding: 0 18px; background: var(--navy); color: var(--paper); }
.head-btn:hover { background: var(--navy-2); }

.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: transparent; padding: 0; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--navy); margin: 4px auto; transition: transform 0.2s, opacity 0.2s; }

/* ---------- hero ---------- */

.hero { position: relative; }
.hero-media { position: relative; height: clamp(520px, 74vh, 720px); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 27, 40, 0.78) 0%, rgba(13, 27, 40, 0.52) 34%, rgba(13, 27, 40, 0.08) 68%, rgba(13, 27, 40, 0.18) 100%),
    linear-gradient(0deg, rgba(13, 27, 40, 0.5) 0%, rgba(13, 27, 40, 0) 30%);
}
.hero-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-bottom: 110px;
  pointer-events: none;
}
.hero-copy { color: var(--paper); max-width: 680px; pointer-events: auto; }
.hero-copy .eyebrow { color: #d8b98f; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.1rem, 6.6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 16px 0 20px;
}
.hero h1 em { font-style: italic; color: #dfc19b; }
.hero-lede { font-size: clamp(0.98rem, 1.3vw, 1.08rem); color: rgba(244, 239, 231, 0.8); max-width: 44ch; }
.hero-links { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 28px; }
.hero-wa { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); font-weight: 700; font-size: 0.9rem; border-bottom: 1px solid rgba(244, 239, 231, 0.4); padding-bottom: 3px; }
.hero-wa i { font-style: normal; transition: transform 0.2s; }
.hero-wa:hover i { transform: translateX(4px); }

.hero-note {
  pointer-events: auto;
  align-self: flex-start;
  margin-top: 46px;
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid rgba(244, 239, 231, 0.28);
  border-radius: 12px;
  background: rgba(13, 27, 40, 0.42);
  color: var(--paper);
}
.hero-note-label { font-size: 0.58rem; letter-spacing: 0.16em; text-transform: uppercase; color: #d8b98f; }
.hero-note strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 400; }
.hero-note span:last-child { font-size: 0.72rem; color: rgba(244, 239, 231, 0.65); }

/* ---------- search ---------- */

.search-panel {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  margin-top: -58px;
  padding: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.search-tabs { display: flex; gap: 4px; padding: 4px; background: var(--paper); border-radius: 10px; }
.tab {
  min-height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--muted);
}
.tab.on { background: var(--navy); color: var(--paper); }
.search-fields { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; }
.search-fields label { display: grid; gap: 3px; }
.search-fields label span { font-size: 0.6rem; letter-spacing: 0.13em; text-transform: uppercase; color: var(--muted); padding-left: 4px; }
.search-fields select {
  min-height: 46px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  font-size: 0.9rem;
}
.search-submit { min-height: 46px; border-radius: 9px; }

/* ---------- sections ---------- */

.section { padding: clamp(72px, 9vw, 116px) 0; }
.portfolio { padding-top: clamp(60px, 7vw, 86px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: clamp(34px, 5vw, 54px); }
.section-head > div:first-child { max-width: 640px; }
.section-side { max-width: 330px; color: var(--muted); font-size: 0.92rem; padding-bottom: 6px; }
.count { display: inline-block; margin-top: 10px; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brass); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.chip:hover { border-color: var(--brass); color: var(--ink); }
.chip.on { background: var(--navy); border-color: var(--navy); color: var(--paper); }

.listing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.listing {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s;
}
.listing:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.listing[hidden] { display: none; }
.listing-media { position: relative; overflow: hidden; }
.listing-media img { width: 100%; aspect-ratio: 4 / 2.7; object-fit: cover; transition: transform 0.7s var(--ease); }
.listing:hover .listing-media img { transform: scale(1.03); }
.badge {
  position: absolute;
  top: 14px; left: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(13, 27, 40, 0.82);
  color: var(--paper);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.badge.rent { background: rgba(176, 138, 87, 0.92); color: var(--navy-2); }
.price {
  position: absolute;
  left: 16px; bottom: 14px;
  padding: 6px 11px;
  border-radius: 7px;
  background: var(--paper);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.price small { font-weight: 500; color: var(--muted); }
.listing-body { padding: 18px 20px 20px; }
.listing-loc { font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brass); }
.listing h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; margin: 2px 0 8px; letter-spacing: -0.01em; }
.listing-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.listing-meta span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.7rem;
  color: var(--muted);
}
.empty { margin-top: 22px; font-size: 0.9rem; color: var(--muted); }

/* ---------- services ---------- */

.services { background: var(--paper-2); }
.service-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.service { padding: 26px 22px 30px; border-left: 1px solid var(--line); }
.service:first-child { border-left: none; padding-left: 0; }
.service span { font-family: var(--serif); font-size: 1rem; color: var(--brass); }
.service h3 { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; margin: 12px 0 8px; }
.service p { font-size: 0.86rem; color: var(--muted); }

/* ---------- about ---------- */

.about { background: var(--navy); color: var(--paper); }
.about .eyebrow { color: #d8b98f; }
.about h2 { color: var(--paper); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.about-copy > p { color: rgba(244, 239, 231, 0.72); max-width: 46ch; margin-top: 14px; font-size: 0.96rem; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; color: var(--paper); font-weight: 700; font-size: 0.88rem; border-bottom: 1px solid rgba(244, 239, 231, 0.4); padding-bottom: 3px; }
.text-link i { font-style: normal; transition: transform 0.2s; }
.text-link:hover i { transform: translateX(4px); }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(244, 239, 231, 0.16); border: 1px solid rgba(244, 239, 231, 0.16); border-radius: 14px; overflow: hidden; }
.about-stats div { background: var(--navy); padding: 26px 22px; display: grid; gap: 2px; }
.about-stats strong { font-family: var(--serif); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 400; color: #dfc19b; line-height: 1; }
.about-stats span { font-size: 0.76rem; color: rgba(244, 239, 231, 0.62); }

/* ---------- quotes ---------- */

.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.quote { border-top: 1px solid var(--line); padding-top: 24px; }
.stars { color: var(--brass); letter-spacing: 0.1em; font-size: 0.82rem; }
.quote blockquote { font-family: var(--serif); font-size: 1.32rem; line-height: 1.4; margin: 14px 0 18px; }
.quote figcaption { display: flex; align-items: baseline; gap: 9px; font-size: 0.8rem; }
.quote figcaption span { font-weight: 700; }
.quote figcaption small { color: var(--muted); }

/* ---------- contact ---------- */

.contact { padding: clamp(72px, 9vw, 116px) 0; background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact-copy > p { color: var(--muted); max-width: 40ch; margin-top: 14px; }
.contact-info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; margin: 28px 0 24px; }
.contact-info div, .contact-info a { display: grid; gap: 2px; }
.contact-info span { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.contact-info b { font-size: 0.9rem; }
.contact-info a:hover b { color: var(--brass-2); }
.map-box {
  position: relative;
  height: 170px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(20, 37, 54, 0.12) 49.5%, rgba(20, 37, 54, 0.12) 50.5%, transparent 50.5%),
    linear-gradient(0deg, transparent 49.5%, rgba(20, 37, 54, 0.12) 49.5%, rgba(20, 37, 54, 0.12) 50.5%, transparent 50.5%),
    #e4d9ca;
  background-size: 84px 84px, 84px 84px, auto;
}
.map-box::before {
  content: "";
  position: absolute;
  left: 12%; right: 26%; top: 18%; bottom: 16%;
  border: 1px solid rgba(20, 37, 54, 0.16);
  border-radius: 55% 40% 60% 45%;
  transform: rotate(6deg);
}
.map-pin {
  position: absolute;
  left: 52%; top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
  box-shadow: 0 10px 22px -14px rgba(20, 37, 54, 0.8);
}
.map-pin::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brass); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3.4vw, 34px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.contact-form h3 { font-family: var(--serif); font-size: 1.55rem; font-weight: 400; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.field label span { font-weight: 400; letter-spacing: 0; text-transform: none; }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 78px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(176, 138, 87, 0.16);
}
.form-note { font-size: 0.7rem; color: var(--muted); text-align: center; }
.form-success { padding: 10px 12px; border-radius: 9px; background: rgba(20, 37, 54, 0.07); color: var(--navy); font-size: 0.82rem; text-align: center; }

/* ---------- footer ---------- */

.site-foot { background: var(--navy-2); color: var(--paper); padding: 56px 0 30px; }
.foot-inner { display: grid; grid-template-columns: 1.2fr 0.8fr 1fr; gap: 32px; }
.foot-brand .logo-word { color: var(--paper); font-size: 2rem; }
.foot-brand .logo-sub { color: rgba(244, 239, 231, 0.55); border-color: rgba(244, 239, 231, 0.22); }
.foot-brand p { color: rgba(244, 239, 231, 0.62); font-size: 0.84rem; margin-top: 10px; }
.foot-links { display: grid; gap: 9px; font-size: 0.86rem; }
.foot-links a { color: rgba(244, 239, 231, 0.78); }
.foot-links a:hover { color: #fff; }
.foot-meta { display: grid; gap: 6px; font-size: 0.8rem; color: rgba(244, 239, 231, 0.62); }
.demo-note { margin-top: 10px; font-size: 0.68rem; color: rgba(244, 239, 231, 0.38); }

/* ---------- mobile bar & toast ---------- */

.mobile-bar { display: none; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 10px);
  z-index: 80;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.82rem;
  box-shadow: 0 16px 34px -18px rgba(20, 37, 54, 0.8);
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1040px) {
  .head-phone { display: none; }
  .nav { gap: 18px; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service:nth-child(3) { border-left: none; padding-left: 0; }
  .service:nth-child(odd) { border-left: none; }
}

@media (max-width: 900px) {
  .wrap { width: min(1200px, calc(100% - 36px)); }
  .hero-inner { padding-bottom: 130px; }
  .hero-note { display: none; }
  .search-panel { grid-template-columns: 1fr; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-submit { grid-column: 1 / -1; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .section-side { max-width: 100%; }
  .listing-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .head-inner { min-height: 66px; }
  .nav {
    position: fixed;
    inset: 66px 0 auto;
    z-index: 55;
    display: grid;
    gap: 0;
    padding: 10px 18px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    transition: transform 0.3s var(--ease), visibility 0.3s;
    pointer-events: none;
    visibility: hidden;
    box-shadow: 0 30px 50px -40px rgba(20, 37, 54, 0.6);
  }
  .nav.open { transform: translateY(0); pointer-events: auto; visibility: visible; }
  .nav a { padding: 14px 6px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav a:last-child { border-bottom: none; }
  .menu-btn { display: block; }
  .head-btn { display: none; }
  .menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-2.5px) rotate(-45deg); }
  .hero-media { height: 70vh; min-height: 480px; }
  .hero-inner { padding-bottom: 140px; }
  .hero h1 { font-size: clamp(2.9rem, 13vw, 4rem); }
  .hero-links { gap: 16px; }
  .search-panel { margin-top: -44px; padding: 12px; }
  .search-fields { grid-template-columns: 1fr; }
  .tabs { width: 100%; }
  .tab { flex: 1; }
  .service-grid { grid-template-columns: 1fr; border-top: none; }
  .service, .service:first-child, .service:nth-child(3) { border-left: none; border-top: 1px solid var(--line); padding: 22px 0; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  .contact-info { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; gap: 24px; }
  body { padding-bottom: 72px; }
  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 70;
    display: grid;
    grid-template-columns: 0.8fr 1fr 1fr;
    gap: 1px;
    background: var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    display: grid;
    place-items: center;
    min-height: 54px;
    background: var(--paper);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
  }
  .mobile-bar .wa { background: var(--navy); color: var(--paper); }
  .mobile-bar .book { background: var(--brass); color: var(--navy-2); }
  .toast { bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
