/* Palatia — stately museum-editorial luxury real estate
   Palette: deep bordeaux/wine (dominant) + champagne-ivory + warm stone,
   antique-brass hairline rules. No gradients. */

:root {
  --bordeaux: #5a1726;
  --bordeaux-deep: #441019;
  --bordeaux-soft: #6e2231;
  --ivory: #f5efe2;
  --ivory-pure: #faf6ed;
  --stone: #c9bfa9;
  --stone-warm: #8c8169;
  --brass: #b7975a;
  --brass-soft: #c8a96a;
  --ink: #2b2622;
  --ink-soft: #4f463d;

  --serif: "Tenor Sans", Georgia, "Times New Roman", serif;
  --sans: "Spline Sans", system-ui, -apple-system, sans-serif;

  --maxw: 1180px;
  --hair: 1px solid rgba(183,151,90,0.55);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  font-size: 17px;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.15; letter-spacing: 0.01em; }

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

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

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-weight: 400;
  color: var(--brass);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ivory);
  border-bottom: var(--hair);
}
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 32px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; justify-self: start; }
.brand svg { width: 34px; height: 34px; }
.brand-name {
  font-family: var(--serif);
  font-size: 23px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--bordeaux);
}
.main-nav { justify-self: center; display: flex; gap: 38px; }
.main-nav a {
  font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); position: relative; padding-bottom: 4px;
}
.main-nav a:hover { color: var(--bordeaux); }
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px;
  background: var(--brass); transition: width .35s ease;
}
.main-nav a:hover::after { width: 100%; }

.header-right { justify-self: end; display: flex; align-items: center; gap: 22px; }

.lang-switch { display: flex; align-items: center; gap: 2px; }
.lang-switch button {
  background: none; border: none; cursor: pointer; font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.12em; color: var(--stone-warm);
  padding: 4px 7px; text-transform: uppercase; transition: color .2s;
}
.lang-switch button:hover { color: var(--bordeaux); }
.lang-switch button.active { color: var(--bordeaux); border-bottom: 1px solid var(--brass); }
.lang-sep { color: var(--stone); font-size: 11px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--bordeaux); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 96px 0 84px;
  border-bottom: var(--hair);
}
.hero-frame {
  max-width: 760px; margin: 0 auto;
  border-top: var(--hair); border-bottom: var(--hair);
  padding: 54px 24px;
  position: relative;
}
.hero-frame::before, .hero-frame::after {
  content: ""; position: absolute; top: 14px; bottom: 14px; width: 1px;
  background: rgba(183,151,90,0.45);
}
.hero-frame::before { left: 14px; }
.hero-frame::after { right: 14px; }
.hero .eyebrow { display: block; margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(38px, 6vw, 66px);
  color: var(--bordeaux);
  margin-bottom: 26px;
}
.hero h1 em { font-style: italic; color: var(--bordeaux-soft); }
.hero p.lede {
  max-width: 540px; margin: 0 auto 34px;
  color: var(--ink-soft); font-size: 18px;
}
.brass-rule { width: 56px; height: 1px; background: var(--brass); margin: 0 auto 32px; }

.btn {
  display: inline-block; font-family: var(--sans); font-size: 12.5px;
  letter-spacing: 0.2em; text-transform: uppercase; padding: 15px 38px;
  border: 1px solid var(--bordeaux); color: var(--bordeaux); background: transparent;
  transition: background .3s, color .3s; cursor: pointer;
}
.btn:hover { background: var(--bordeaux); color: var(--ivory-pure); }
.btn-solid { background: var(--bordeaux); color: var(--ivory-pure); }
.btn-solid:hover { background: var(--bordeaux-deep); border-color: var(--bordeaux-deep); }

/* ---------- Portrait / arched imagery ---------- */
.portrait-section { padding: 92px 0; }
.portrait-grid {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 72px; align-items: center;
}
.portrait-grid.reverse { grid-template-columns: 1.05fr 1fr; }
.portrait-grid.reverse .portrait-text { order: 2; }
.arched {
  border-radius: 50% 50% 6px 6px / 32% 32% 6px 6px;
  overflow: hidden;
  border: 1px solid rgba(183,151,90,0.6);
  box-shadow: 0 18px 50px -28px rgba(68,16,25,0.5);
}
.arched img { width: 100%; height: 560px; object-fit: cover; }
.portrait-text .eyebrow { display: block; margin-bottom: 18px; }
.portrait-text h2 { font-size: clamp(28px, 3.6vw, 42px); color: var(--bordeaux); margin-bottom: 22px; }
.portrait-text p { color: var(--ink-soft); margin-bottom: 18px; max-width: 460px; }

/* ---------- Residence index ---------- */
.index-section {
  background: var(--bordeaux);
  color: var(--ivory);
  padding: 96px 0;
}
.index-head { text-align: center; max-width: 620px; margin: 0 auto 60px; }
.index-head .eyebrow { color: var(--brass-soft); display: block; margin-bottom: 18px; }
.index-head h2 { font-size: clamp(30px, 4vw, 46px); color: var(--ivory-pure); margin-bottom: 16px; }
.index-head p { color: rgba(245,239,226,0.72); }
.index-head .brass-rule { background: var(--brass-soft); }

.residence-list { max-width: 820px; margin: 0 auto; }
.residence-row {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 28px; align-items: baseline;
  padding: 30px 0; border-top: 1px solid rgba(183,151,90,0.35);
}
.residence-row:last-child { border-bottom: 1px solid rgba(183,151,90,0.35); }
.residence-num { font-family: var(--serif); font-size: 26px; color: var(--brass-soft); }
.residence-body h3 { font-size: 24px; color: var(--ivory-pure); margin-bottom: 6px; }
.residence-body p { color: rgba(245,239,226,0.66); font-size: 15.5px; max-width: 480px; }
.residence-meta {
  font-family: var(--sans); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(245,239,226,0.6); text-align: right;
  white-space: nowrap;
}

/* ---------- Gallery band ---------- */
.gallery { padding: 92px 0; }
.gallery-head { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.gallery-head .eyebrow { display: block; margin-bottom: 16px; }
.gallery-head h2 { font-size: clamp(28px, 3.6vw, 42px); color: var(--bordeaux); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.gallery-grid figure { position: relative; overflow: hidden; border: 1px solid rgba(183,151,90,0.5); }
.gallery-grid img { width: 100%; height: 300px; object-fit: cover; transition: transform .8s ease; }
.gallery-grid figure:hover img { transform: scale(1.05); }
.gallery-grid figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory-pure); padding: 16px 18px;
  background: linear-gradient(transparent, rgba(68,16,25,0.78));
}

/* ---------- Service / process ---------- */
.service-section { padding: 92px 0; border-top: var(--hair); }
.service-head { text-align: center; max-width: 600px; margin: 0 auto 64px; }
.service-head .eyebrow { display: block; margin-bottom: 16px; }
.service-head h2 { font-size: clamp(28px, 3.6vw, 42px); color: var(--bordeaux); margin-bottom: 14px; }
.service-head p { color: var(--ink-soft); }
.service-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px; }
.service-col { text-align: center; padding: 0 8px; }
.service-col .num {
  font-family: var(--serif); font-size: 17px; color: var(--brass);
  display: inline-block; padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 1px solid var(--brass);
  letter-spacing: 0.2em;
}
.service-col h3 { font-size: 22px; color: var(--bordeaux); margin-bottom: 12px; }
.service-col p { color: var(--ink-soft); font-size: 15.5px; }

/* ---------- Quote ---------- */
.quote-section { background: var(--ivory-pure); padding: 100px 0; border-top: var(--hair); border-bottom: var(--hair); }
.quote-section blockquote {
  max-width: 760px; margin: 0 auto; text-align: center;
  font-family: var(--serif); font-size: clamp(24px, 3vw, 34px);
  color: var(--bordeaux); line-height: 1.4; font-style: italic;
}
.quote-section .cite {
  display: block; margin-top: 28px; font-family: var(--sans); font-style: normal;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--stone-warm);
}

/* ---------- Estate band ---------- */
.estate-band { border-top: var(--hair); border-bottom: var(--hair); }
.estate-band img { width: 100%; height: 460px; object-fit: cover; }
@media (max-width: 560px) { .estate-band img { height: 300px; } }

/* ---------- CTA ---------- */
.cta-section { text-align: center; padding: 96px 0; }
.cta-section .eyebrow { display: block; margin-bottom: 18px; }
.cta-section h2 { font-size: clamp(30px, 4vw, 48px); color: var(--bordeaux); margin-bottom: 20px; }
.cta-section p { max-width: 480px; margin: 0 auto 34px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bordeaux-deep);
  color: rgba(245,239,226,0.82);
  padding: 64px 0 40px;
}
.footer-top { display: flex; align-items: center; gap: 14px; justify-content: center; margin-bottom: 30px; }
.footer-top svg { width: 30px; height: 30px; }
.footer-top .brand-name { color: var(--ivory-pure); font-size: 20px; }
.footer-legal { text-align: center; max-width: 660px; margin: 0 auto; }
.footer-legal .legal-line { font-size: 13px; line-height: 1.9; color: rgba(245,239,226,0.78); }
.footer-legal a.mail { color: var(--brass-soft); }
.footer-legal a.mail:hover { text-decoration: underline; }
.footer-rule { width: 56px; height: 1px; background: rgba(183,151,90,0.5); margin: 28px auto; }
.footer-links { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 22px; }
.footer-links a {
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(245,239,226,0.7);
}
.footer-links a:hover { color: var(--brass-soft); }
.footer-copy { text-align: center; font-size: 12px; color: rgba(245,239,226,0.55); letter-spacing: 0.06em; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 80px 0 90px; }
.legal-page .legal-inner { max-width: 760px; margin: 0 auto; }
.legal-page .eyebrow { display: block; margin-bottom: 16px; }
.legal-page h1 { font-size: clamp(32px, 4.5vw, 50px); color: var(--bordeaux); margin-bottom: 14px; }
.legal-page .updated { font-size: 13px; color: var(--stone-warm); letter-spacing: 0.1em; margin-bottom: 36px; }
.legal-page h2 { font-size: 24px; color: var(--bordeaux); margin: 40px 0 14px; }
.legal-page p { color: var(--ink-soft); margin-bottom: 16px; }
.legal-page ul { margin: 0 0 16px 22px; color: var(--ink-soft); }
.legal-page li { margin-bottom: 8px; }
.legal-page .brass-rule { margin: 0 0 36px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--ivory);
    border-bottom: var(--hair); padding: 12px 32px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 13px 0; border-bottom: var(--hair); }
  .nav-toggle { display: block; justify-self: end; order: 3; }
  .header-right { order: 2; }
  .portrait-grid, .portrait-grid.reverse { grid-template-columns: 1fr; gap: 36px; }
  .portrait-grid.reverse .portrait-text { order: 0; }
  .arched img { height: 440px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .service-cols { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 22px; }
  .gallery-grid { grid-template-columns: 1fr; }
  .residence-row { grid-template-columns: 44px 1fr; }
  .residence-meta { grid-column: 2; text-align: left; margin-top: 8px; }
  .hero-frame::before, .hero-frame::after { display: none; }
}
