*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink, #1a1410);
  background: var(--page, #f7f1e8);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark, #9a5a28); text-decoration: none; }
a:hover { color: var(--accent, #c4783a); }
h1,h2,h3,h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--ink); margin: 0 0 .5em; }
.display, .hero-title, .listing-title {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251,247,241,.92);
  backdrop-filter: saturate(1.2) blur(12px);
  border-bottom: 1px solid var(--line, #e6dcd0);
  height: var(--header-h);
}
.site-header .bar {
  height: var(--header-h);
  display: flex; align-items: center; gap: 24px;
}
.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.logo span.com { font-weight: 600; color: var(--accent-dark); text-transform: lowercase; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); font-size: .92rem; font-weight: 500; }
.nav a:hover, .nav a.current { color: var(--accent-dark); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: .9rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--accent-dark); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

/* Hero */
.hero {
  position: relative; min-height: min(86vh, 820px);
  display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
  background: #1a1410 center/cover no-repeat;
}
.hero img.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, var(--hero-scrim, rgba(26,20,16,.55)) 70%); }
.hero-inner { position: relative; z-index: 1; padding: 80px 0 72px; width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.hero-kicker {
  font-family: var(--font-heading); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; font-size: .78rem; color: var(--accent);
  margin-bottom: 14px;
}
.hero-title { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 16ch; color: #fff; margin-bottom: 16px; }
.hero-lede { max-width: 42rem; font-size: 1.08rem; color: rgba(255,255,255,.9); margin-bottom: 28px; font-weight: 400; }
.hero .btn-primary { background: var(--accent); color: #1a1410; }
.hero .btn-primary:hover { background: #fff; color: #1a1410; }

/* Portfolio */
.portfolio { padding: 72px 0 40px; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-head h2 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 600; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 7px 14px; font-size: .82rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.pill[aria-pressed="true"], .pill.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
  color: inherit;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(26,20,16,.1); color: inherit; }
.card-photo { aspect-ratio: 4/3; overflow: hidden; background: #ddd; position: relative; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-price { font-family: var(--font-heading); font-weight: 700; font-size: 1.15rem; color: var(--accent-dark); }
.card-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin: 0; color: var(--ink); }
.card-loc, .card-specs { color: var(--muted); font-size: .88rem; }
.card-specs { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 4px; }
.card-type { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.92); color: var(--ink); font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; }
.empty-port { padding: 40px; text-align: center; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }

/* Editorial */
.editorial { padding: 24px 0 80px; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ed-card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.ed-card img { width: 100%; height: 260px; object-fit: cover; }
.ed-card .txt { padding: 24px; }
.ed-card h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.ed-card p { color: var(--muted); margin: 0; }
.band { padding: 56px 0; }
.band.alt { background: #fff; border-block: 1px solid var(--line); }
.band h2 { font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; }
.band p { max-width: 46rem; color: var(--muted); font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--footer, #2a2320); color: #efe8df; padding: 56px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.site-footer a { color: #efe8df; }
.site-footer a:hover { color: var(--accent); }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer .logo { color: #fff; font-size: 1.15rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer p { color: #cfc6ba; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.08); background: var(--footer2, #1a1410); padding: 16px 0; font-size: .82rem; color: #b6aea4; }
.foot-bottom .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Listing */
.crumbs { font-size: .82rem; color: var(--muted); padding: 22px 0 8px; }
.crumbs a { color: var(--muted); }
.listing-head { padding: 8px 0 20px; display: grid; gap: 8px; }
.listing-title { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.listing-price { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; color: var(--accent-dark); }
.listing-loc { color: var(--muted); }
.listing-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.gallery { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; margin-bottom: 28px; }
.gallery .main, .gallery .side img, .gallery .main img { border-radius: 12px; overflow: hidden; }
.gallery .main img { width: 100%; height: 520px; object-fit: cover; }
.gallery .side { display: grid; gap: 8px; }
.gallery .side img { width: 100%; height: 256px; object-fit: cover; cursor: pointer; }
.meta-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; margin-bottom: 16px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px 24px;
}
.meta-card dt { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.meta-card dd { margin: 0; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 36px; }
.tags span { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: .8rem; font-weight: 600; }
.listing-grid { display: grid; grid-template-columns: 1.5fr .9fr; gap: 32px; align-items: start; padding-bottom: 72px; }
.overview h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.overview .content { font-size: 1.02rem; color: #3a322c; }
.overview .content p { margin: 0 0 1em; }
.inquiry { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 92px; }
.inquiry h2 { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; }
.inquiry p.fine { font-size: .85rem; color: var(--muted); }
.inquiry label { display: block; font-size: .8rem; font-weight: 700; margin: 12px 0 4px; }
.inquiry input, .inquiry textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px;
  font: inherit; background: var(--cream);
}
.inquiry textarea { min-height: 110px; resize: vertical; }
.inquiry .btn { width: 100%; margin-top: 14px; }

/* Save / Share */
.btn-save, .btn-share {
  background: #fff; border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .88rem;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-family: inherit;
}
.btn-save svg, .btn-share svg { width: 16px; height: 16px; fill: currentColor; }
.btn-save:hover, .btn-save.is-on {
  background: #c62828; border-color: #c62828; color: #fff;
}
.btn-save:hover svg, .btn-save.is-on svg { fill: #fff; color: #fff; }
.btn-share:hover { border-color: var(--ink); }
.share-menu {
  position: absolute; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 8px; display: none; z-index: 20; min-width: 180px;
}
.share-wrap { position: relative; }
.share-menu.is-open { display: grid; }
.share-menu button, .share-menu a {
  background: none; border: 0; text-align: left; padding: 8px 10px; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--ink); border-radius: 8px;
}
.share-menu button:hover, .share-menu a:hover { background: var(--cream); }

/* Pages */
.page-hero { padding: 48px 0 20px; }
.page-hero h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 600; }
.page-hero p { max-width: 44rem; color: var(--muted); font-size: 1.08rem; }
.packages { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 12px 0 56px; }
.pkg { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.pkg.featured { border-color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,.06); }
.pkg h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 600; }
.pkg .price { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--accent-dark); margin: 8px 0 16px; }
.pkg .price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.pkg ul { margin: 0 0 22px; padding-left: 1.1em; color: #3a322c; flex: 1; }
.pkg li { margin: 0 0 8px; }
.prose { padding-bottom: 72px; max-width: 44rem; }
.prose p { color: #3a322c; }
.notice { background: #e8f6ec; color: #1b5e20; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }
.error { background: #fdecea; color: #8a1f11; padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; }

@media (max-width: 860px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    background: var(--cream); padding: 16px 20px 20px; border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .editorial-grid, .listing-grid, .packages, .foot-grid, .gallery { grid-template-columns: 1fr; }
  .gallery .main img { height: 280px; }
  .gallery .side { grid-template-columns: 1fr 1fr; }
  .gallery .side img { height: 140px; }
  .inquiry { position: static; }
  .hero { min-height: 70vh; }
}
.inquiry .hp, .inquiry .cp-hp { position:absolute !important; left:-10000px !important; top:auto !important; width:1px !important; height:1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; }
.inquiry .lc-card { display:flex; gap:14px; align-items:center; border:1px solid var(--line); border-radius:12px; padding:14px; margin:12px 0 14px; background:var(--cream); }
.inquiry .lc-photo { width:72px; height:72px; border-radius:50%; object-fit:cover; flex:0 0 72px; background:#fff; border:1px solid var(--line); }
.inquiry .lc-initials { display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:1.5rem; font-weight:600; color:var(--ink); }
.inquiry .lc-body { min-width:0; }
.inquiry .lc-body p { margin:0; }
.inquiry .lc-role { font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; font-weight:700; color:var(--muted); }
.inquiry .lc-name { font-weight:700; font-size:1.02rem; overflow-wrap:anywhere; }
.inquiry .lc-co { font-size:.85rem; color:var(--muted); overflow-wrap:anywhere; }
.inquiry .lc-links { display:flex; flex-wrap:wrap; gap:6px 12px; margin-top:6px !important; font-size:.88rem; font-weight:600; }
.inquiry .lc-links a { text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere; }
