/* JP Dwellings Group, LLC — site styles
   Brand palette from the official guidelines, plus the navy + gold accents
   from the approved Modern Classic flyer. */
:root {
  --deep-blue: #234E6B;
  --steel-blue: #6B8BA7;
  --light-blue: #B7C7D8;
  --warm-gray: #A0A7B1;
  --off-white: #F6F7F9;
  --navy: #0F2D45;       /* flyer title band / footer */
  --navy-deep: #0A2236;
  --gold: #A08350;       /* flyer price panel (muted warm gold) */
  --gold-soft: #E9E0CF;
  --ink: #1B2A36;
  --muted: #55636F;
  --line: #DDE3EA;
  --white: #FFFFFF;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(15, 45, 69, .10);
  --max: 1160px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--deep-blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }

.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.eyebrow {
  font-family: var(--sans); font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--steel-blue); font-weight: 700; margin-bottom: .9rem; display: block;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 10px; top: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em; justify-content: center;
  padding: .85em 1.6em; border-radius: 999px; font-weight: 700; font-size: .95rem;
  letter-spacing: .04em; text-decoration: none; border: 2px solid transparent;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--deep-blue); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: #8A6F41; color: #fff; }
.btn-outline { border-color: var(--deep-blue); color: var(--deep-blue); background: transparent; }
.btn-outline:hover { background: var(--deep-blue); color: #fff; }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--navy); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 2rem; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--deep-blue); }
.nav .btn { color: #fff; text-transform: none; letter-spacing: .03em; padding: .6em 1.2em; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; }

@media (max-width: 860px) {
  .brand img { height: 42px; }
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: 84px; left: 0; right: 0; background: #fff; flex-direction: column;
    gap: 0; padding: .5rem 20px 1.2rem; border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: .9rem; border-bottom: 0; }
}

/* Hero */
.hero { background: var(--white); padding: clamp(48px, 7vw, 96px) 0; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero h1 em { font-style: italic; color: var(--deep-blue); }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 1.8rem; }
.hero-photo { position: relative; }
.hero-photo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-photo .tag {
  position: absolute; left: -18px; bottom: 28px; background: var(--navy); color: #fff;
  padding: 14px 20px; border-radius: 8px; box-shadow: var(--shadow); font-size: .9rem; line-height: 1.4;
}
.hero-photo .tag strong { font-family: var(--serif); font-size: 1.3rem; display: block; font-weight: 600; }
.tagline-rule {
  display: flex; align-items: center; gap: 14px; color: var(--steel-blue);
  font-size: .8rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 700; margin-top: 2rem;
}
.tagline-rule::before { content: ""; width: 44px; height: 2px; background: var(--gold); }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-photo .tag { left: 12px; bottom: 12px; }
}

/* Sections */
section { padding: clamp(64px, 8vw, 110px) 0; }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: #E7EDF3; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy .eyebrow { color: var(--light-blue); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head.center .lead { margin-inline: auto; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.about-grid .logo-panel {
  background: var(--white); border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow);
  display: grid; place-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 34px 30px; }
.pillar .num { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; margin-bottom: .8rem; display: block; }
.pillar p { color: #C9D5E0; margin: 0; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* Property card */
.property-card {
  display: grid; grid-template-columns: 1.25fr 1fr; background: var(--white); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.property-card .photo { position: relative; min-height: 360px; }
.property-card .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge {
  position: absolute; top: 18px; left: 18px; background: var(--navy); color: #fff; font-weight: 700;
  font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; padding: 8px 14px; border-radius: 4px;
}
.property-card .body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; }
.property-card .address { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); line-height: 1.15; margin: 0; }
.property-card .city { color: var(--muted); margin: .2rem 0 1.2rem; letter-spacing: .04em; }
.price { display: inline-flex; align-items: baseline; gap: .4rem; background: var(--gold); color: #fff; padding: 10px 18px; border-radius: 6px; align-self: flex-start; }
.price strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 700; line-height: 1; }
.price span { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; }
.specs { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 1.4rem 0; padding: 1rem 0; border-block: 1px solid var(--line); font-weight: 700; color: var(--navy); }
.specs li { list-style: none; display: flex; align-items: center; gap: 8px; }
.specs { padding-left: 0; }
.specs svg { width: 20px; height: 20px; color: var(--steel-blue); }
.property-card .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: auto; padding-top: .6rem; }
@media (max-width: 860px) { .property-card { grid-template-columns: 1fr; } .property-card .photo { min-height: 240px; aspect-ratio: 3/2; } }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 820px; margin-inline: auto; }
.contact-item {
  display: flex; gap: 18px; align-items: center; background: var(--white); border-radius: var(--radius);
  padding: 26px 28px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s;
}
.contact-item:hover { border-color: var(--steel-blue); box-shadow: var(--shadow); color: var(--ink); }
.contact-item .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--deep-blue); color: #fff; display: grid; place-items: center; flex: none; }
.contact-item .icon svg { width: 24px; height: 24px; }
.contact-item small { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.contact-item strong { font-size: 1.12rem; color: var(--navy); word-break: break-word; }
@media (max-width: 700px) { .contact-grid { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--navy-deep); color: #B9C6D2; padding: 56px 0 28px; font-size: .92rem; }
.site-footer .top { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1); }
.site-footer .top img { height: 64px; width: auto; }
.site-footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.site-footer a { color: #DCE5EE; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: .84rem; }
.eho { display: inline-flex; align-items: center; gap: 8px; }
.eho svg { width: 22px; height: 22px; }

/* ---------- Property page ---------- */
.prop-hero { background: var(--navy); color: #fff; padding: 46px 0 40px; }
.prop-hero .container { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.prop-hero .eyebrow { color: var(--light-blue); }
.prop-hero h1 { color: #fff; margin: 0; font-size: clamp(2.2rem, 5vw, 3.4rem); }
.prop-hero .city { color: var(--light-blue); font-size: 1.15rem; letter-spacing: .06em; margin: .3rem 0 0; }
.breadcrumb { font-size: .85rem; margin-bottom: 1.2rem; color: var(--light-blue); }
.breadcrumb a { color: var(--light-blue); }

.gallery-main { padding: 28px 0 0; background: var(--white); }
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 10px; }
.mosaic button { padding: 0; border: 0; cursor: zoom-in; overflow: hidden; border-radius: 8px; position: relative; background: var(--light-blue); }
.mosaic button:first-child { grid-row: span 2; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic button:hover img { transform: scale(1.03); }
.mosaic .more { position: absolute; inset: 0; background: rgba(10,34,54,.55); color: #fff; display: grid; place-items: center; font-weight: 700; letter-spacing: .06em; font-size: 1rem; }
@media (max-width: 760px) {
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 140px 140px; }
  .mosaic button:first-child { grid-column: span 2; grid-row: auto; }
}

.prop-layout { display: grid; grid-template-columns: 1fr 360px; gap: 48px; align-items: start; }
.prop-layout .summary-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 2.4rem; }
.stat { background: var(--off-white); border-radius: var(--radius); padding: 20px; text-align: center; border: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-size: 2rem; color: var(--navy); line-height: 1.1; }
.stat span { font-size: .82rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 0; margin: 0 0 2.4rem; }
.features li { list-style: none; display: flex; gap: 14px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.features .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--off-white); color: var(--deep-blue); display: grid; place-items: center; flex: none; }
.features .ico svg { width: 20px; height: 20px; }
.features strong { color: var(--navy); display: block; line-height: 1.35; }
.features .tag-new, .features .tag-newer {
  display: inline-block; font-size: .68rem; font-weight: 900; letter-spacing: .14em; padding: 2px 7px; border-radius: 3px; margin-right: 6px; vertical-align: 2px;
}
.features .tag-new { background: var(--gold); color: #fff; }
.features .tag-newer { background: var(--gold-soft); color: #6E5530; }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

.aside-card { position: sticky; top: 108px; background: var(--white); border-radius: 14px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.aside-card .price-panel { background: var(--gold); color: #fff; text-align: center; padding: 22px; }
.aside-card .price-panel strong { font-family: var(--serif); font-size: 2.6rem; display: block; line-height: 1; }
.aside-card .price-panel span { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; }
.aside-card .inner { padding: 24px; display: grid; gap: 12px; }
.aside-card .inner p { margin: 0; font-size: .92rem; color: var(--muted); text-align: center; }
.aside-card .contact-line { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--navy); font-weight: 700; justify-content: center; }
.aside-card .contact-line svg { width: 18px; height: 18px; color: var(--steel-blue); }
@media (max-width: 960px) { .prop-layout { grid-template-columns: 1fr; } .aside-card { position: static; } }

.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.photo-grid button { padding: 0; border: 0; border-radius: 8px; overflow: hidden; cursor: zoom-in; background: var(--light-blue); }
.photo-grid img { width: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform .4s; }
.photo-grid button:hover img { transform: scale(1.03); }
.photo-grid figcaption, .photo-cap { font-size: .82rem; color: var(--muted); padding: 6px 2px 0; text-align: left; }
.photo-grid figure { margin: 0; }
.note { font-size: .85rem; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(6, 20, 32, .94); display: none; z-index: 200; align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 100%); max-height: 80vh; border-radius: 6px; }
.lightbox .cap { color: #DCE5EE; margin-top: 14px; font-size: .95rem; text-align: center; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 28px; cursor: pointer; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lightbox .close { top: 18px; right: 18px; }
.lightbox .prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox .next { right: 18px; top: 50%; transform: translateY(-50%); }

.cta-band { background: var(--deep-blue); color: #fff; padding: 56px 0; }
.cta-band .container { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band p { margin: .3rem 0 0; color: var(--light-blue); }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Contact form */
.contact-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }
.contact-side { display: grid; gap: 16px; }
.contact-item.static:hover { border-color: var(--line); box-shadow: none; }
.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 16px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: .88rem; color: var(--navy); }
.contact-form .opt { font-weight: 400; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 400; color: var(--ink); padding: .75em .9em; border: 1px solid #C9D3DD; border-radius: 8px; background: var(--off-white); width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--steel-blue); outline-offset: 0; background: #fff; }
.contact-form .btn { justify-self: start; border: 0; cursor: pointer; }
.contact-form .hp { position: absolute; left: -9999px; }
.form-status { margin: 0; font-weight: 700; }
.form-status.ok { color: #2E6B45; }
.form-status.err { color: #A33A2B; }
@media (max-width: 860px) { .contact-wrap, .contact-form .row { grid-template-columns: 1fr; } }

/* fixes */
img { height: auto; }
.btn { font-family: inherit; }
.btn svg { width: 18px; height: 18px; flex: none; }
.about-grid .logo-panel img { width: min(100%, 380px); }
.contact-form label { display: block; }
.contact-form label > input, .contact-form label > select, .contact-form label > textarea { display: block; margin-top: 6px; }
@media (max-width: 560px) {
  .prop-layout .summary-specs { gap: 8px; }
  .stat { padding: 14px 6px; }
  .stat strong { font-size: 1.5rem; }
  .stat span { font-size: .66rem; letter-spacing: .06em; }
}
html, body { overflow-x: clip; }

/* Residents */
.resident-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.resident-card { background: var(--off-white); border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; display: flex; flex-direction: column; align-items: flex-start; }
.resident-card .icon { width: 52px; height: 52px; border-radius: 50%; background: var(--deep-blue); color: #fff; display: grid; place-items: center; margin-bottom: 1rem; }
.resident-card .icon svg { width: 24px; height: 24px; }
.resident-card p { color: var(--muted); flex: 1; }
.resident-card.urgent { border-color: var(--gold); background: #FBF8F2; }
.resident-form { max-width: 760px; margin-inline: auto; }
@media (max-width: 860px) { .resident-cards { grid-template-columns: 1fr; } }
