/* ============================================================
   HIGH RISE PROPERTY MANAGEMENT
   Palette + type pulled from the actual Capstone/Premiere renders:
   warm white walls, espresso cabinetry, warm oak floor, brass accents,
   sage-green + brick exterior.
   ============================================================ */

:root {
  --ink:        #1c1a17;   /* near-black text, warm */
  --espresso:   #2e2a25;   /* dark cabinetry / footer */
  --oak:        #b08d57;   /* warm oak / brass accent */
  --oak-deep:   #8a6d3f;   /* accent hover */
  --sage:       #8a9277;   /* exterior sage green */
  --brick:      #7d5a4f;   /* exterior brick */
  --paper:      #f6f3ee;   /* warm white wall */
  --paper-2:    #efeae1;   /* slightly deeper panel */
  --line:       #ddd6c9;   /* hairline */
  --muted:      #6b655c;   /* secondary text */
  --white:      #ffffff;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 64px);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.05; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--oak-deep);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 16px 34px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--ink);
  color: var(--paper);
  transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
  cursor: pointer;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { border-color: var(--paper); background: var(--paper); color: var(--ink); }
.btn--light:hover { background: transparent; color: var(--paper); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,243,238,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.brand { display: flex; flex-direction: column; line-height: 1; }
.brand b {
  font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  padding-top: 5px;
}
.brand span {
  font-size: 9.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--muted); margin-top: 4px;
}
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  position: relative; padding: 4px 0;
}
.nav-links a.cta {
  border: 1px solid var(--ink); border-radius: 2px; padding: 11px 24px; letter-spacing: .12em;
  transition: background .3s ease, color .3s ease;
}
.nav-links a.cta:hover { background: var(--ink); color: var(--paper); }
.nav-links a:not(.cta)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--oak-deep); transition: width .25s;
}
.nav-links a:not(.cta):hover::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 86vh; display: flex; align-items: flex-end; overflow: hidden; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,26,23,.08) 0%, rgba(28,26,23,.55) 100%); }
.hero-inner { position: relative; z-index: 2; color: var(--paper); padding-bottom: clamp(48px, 8vw, 110px); width: 100%; }
.hero h1 { font-size: clamp(46px, 8.5vw, 104px); color: var(--paper); max-width: 14ch; }
.hero .lede { font-size: clamp(17px, 2vw, 21px); max-width: 46ch; margin-top: 22px; color: rgba(246,243,238,.92); }
.hero .eyebrow { color: rgba(246,243,238,.85); letter-spacing: .26em; margin-bottom: 20px; }
.hero-actions { margin-top: 34px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Section ---------- */
.section { padding: clamp(64px, 10vw, 128px) 0; }
.section-head { max-width: 60ch; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(34px, 5vw, 60px); margin-top: 14px; }
.section-head p { color: var(--muted); margin-top: 18px; font-size: 18px; }
.center { text-align: center; margin-inline: auto; }

/* ---------- Property grid ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 3.5vw, 48px); }
.prop-card { background: var(--white); border: none; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(28,26,23,.06), 0 6px 24px rgba(28,26,23,.04); transition: box-shadow .4s ease, transform .4s ease; }
.prop-card:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(28,26,23,.10), 0 2px 8px rgba(28,26,23,.06); }
.prop-card .ph { aspect-ratio: 3/2; overflow: hidden; background: var(--paper-2); }
.prop-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.prop-card:hover .ph img { transform: scale(1.03); }
.prop-card .body { padding: 34px 34px 38px; display: flex; flex-direction: column; flex: 1; }
.prop-card .loc { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--oak-deep); font-weight: 600; }
.prop-card h3 { font-size: 32px; margin: 8px 0 14px; }
.prop-card p { color: var(--muted); font-size: 15.5px; flex: 1; }
.prop-card .status { display: inline-block; margin-top: 18px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--sage); }
.prop-card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.prop-card .row a { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.prop-card .row a:hover { color: var(--oak-deep); }
.tag { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 5px 11px; border-radius: 100px; }

/* ---------- Price ---------- */
.price { display: inline-block; font-family: var(--serif); font-size: 18px; color: var(--ink); margin-top: 6px; }
.prop-card .price { font-size: 16px; margin-top: 10px; }

/* feature list inside cards/detail */
.feat { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; margin-top: 18px; }
.feat li { font-size: 14px; color: var(--ink); padding-left: 18px; position: relative; }
.feat li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; background: var(--oak); border-radius: 50%; }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.rev .txt { order: 2; }
.split .ph { aspect-ratio: 4/3; overflow: hidden; }
.split .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.split .ph:hover img { transform: scale(1.02); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery a { display: block; overflow: hidden; aspect-ratio: 3/2; background: var(--paper-2); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s ease; }
.gallery a:hover img { transform: scale(1.04); filter: brightness(1.05); }
.gallery .wide { grid-column: span 2; aspect-ratio: 3/1.55; }

/* ---------- Floor plans ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.plan { background: var(--white); border: none; padding: 20px; box-shadow: 0 1px 3px rgba(28,26,23,.06), 0 4px 16px rgba(28,26,23,.03); transition: box-shadow .3s ease; }
.plan:hover { box-shadow: 0 4px 20px rgba(28,26,23,.08); }
.plan .img { background: var(--paper); border: none; aspect-ratio: 3/4; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.plan .img img { width: 100%; height: 100%; object-fit: contain; }
.plan h4 { font-family: var(--sans); font-size: 15px; font-weight: 700; margin-top: 14px; letter-spacing: .01em; }
.plan .meta { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ---------- Amenities strip ---------- */
.amen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: transparent; border: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.amen div { background: transparent; padding: 36px 30px; border-right: 1px solid var(--line); }
.amen div:last-child { border-right: none; }
.amen h4 { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.amen p { font-size: 14px; color: var(--muted); margin-top: 8px; line-height: 1.55; }

/* ---------- CTA band ---------- */
.band { background: var(--espresso); color: var(--paper); text-align: center; padding: clamp(72px, 12vw, 148px) 0; }
.band h2 { font-size: clamp(34px, 5vw, 58px); color: var(--paper); }
.band p { color: rgba(246,243,238,.75); margin: 22px auto 38px; max-width: 48ch; font-size: 18px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 2px; background: var(--white);
  font-family: var(--sans); font-size: 16px; color: var(--ink); transition: border-color .25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--oak); outline-offset: -1px; border-color: var(--oak); }
.field textarea { resize: vertical; min-height: 140px; }
/* ---------- Rental application form helpers ---------- */
.form-section-title { font-size: clamp(22px, 3vw, 28px); margin: 48px 0 22px; padding-top: 32px; border-top: 1px solid var(--line); }
.form-section-title:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.form-section-note { color: var(--muted); font-size: 14px; margin: -12px 0 24px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.field-row.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.field input[type="file"] { padding: 12px 16px; border: 1px dashed var(--line); background: var(--paper-2); cursor: pointer; }
.field-check { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 16px; }
.field-check input { width: 17px; height: 17px; accent-color: var(--oak); margin-top: 4px; }
.radio-group { display: flex; gap: 28px; }
.legal-box { max-height: 220px; overflow-y: auto; border: 1px solid var(--line); background: var(--white); padding: 20px 22px; font-size: 14px; color: var(--muted); line-height: 1.7; white-space: pre-line; border-radius: 2px; margin-bottom: 18px; }
#pet-details, #legal-explain { display: none; }
#pet-details.show, #legal-explain.show { display: block; }
@media (max-width: 900px) {
  .field-row, .field-row.cols-3 { grid-template-columns: 1fr; }
  .radio-group { gap: 18px; }
}
.contact-detail { background: var(--white); border: none; padding: 44px; box-shadow: 0 1px 3px rgba(28,26,23,.06), 0 6px 24px rgba(28,26,23,.04); }
.contact-detail .item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-detail .item:last-child { border-bottom: 0; }
.contact-detail .k { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.contact-detail .v { font-size: 20px; font-family: var(--serif); margin-top: 4px; }
.contact-detail .v a:hover { color: var(--oak-deep); }

/* ---------- Footer ---------- */
.site-footer { background: var(--espresso); color: rgba(246,243,238,.72); padding: 88px 0 44px; }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 54px; border-bottom: 1px solid rgba(246,243,238,.10); }
.footer-brand b { font-family: var(--serif); font-size: 26px; color: var(--paper); display: block; }
.footer-brand span { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
.footer-brand p { margin-top: 16px; max-width: 34ch; font-size: 14px; }
.footer-nav { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h5 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper); margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--oak); }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; }

/* ---------- Skip to content ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 12px 24px;
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- Hero outline button (replaces inline styles) ---------- */
.btn--outline {
  background: transparent;
  border-color: var(--paper);
  color: var(--paper);
}
.btn--outline:hover { background: rgba(246,243,238,.18); color: var(--paper); }

/* ---------- Focus styles ---------- */
:focus-visible {
  outline: 2px solid var(--oak);
  outline-offset: 3px;
}
.btn:focus-visible { outline-offset: 4px; }
.nav-links a:focus-visible { outline-offset: 2px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 76px 0 auto 0; background: var(--paper); flex-direction: column; align-items: flex-start; gap: 0; padding: 12px var(--gut) 24px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s; z-index: 49; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-links a.cta { border: 1px solid var(--ink); text-align: center; margin-top: 14px; }
  .nav-links a.cta { padding: 14px 22px; }
  .nav-toggle { display: block; }
  .prop-grid { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split.rev .txt { order: 0; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .gallery .wide { grid-column: span 2; }
  .plan-grid { grid-template-columns: 1fr 1fr; }
  .amen { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .quick-facts { grid-template-columns: 1fr 1fr; }
  .quick-facts > div { border-right: 0; border-bottom: 1px solid rgba(246,243,238,.14); }
  .quick-facts > div:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .feat { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .amen { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .wide { grid-column: span 1; aspect-ratio: 3/2; }
  .quick-facts { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
}
