/* ==========================================================================
   13392 Magnolia Street — Offering Memorandum landing page theme
   Extends normalize.css + webflow.css (base resets / buttons) with a
   navy + blue investment-brochure theme. Does not touch property.css —
   this is a separate template for a multifamily investment asset rather
   than the single-family template that stylesheet was built for.
   ========================================================================== */

:root {
  --navy-deep: #16283f;
  --navy-mid: #1e3a5c;
  --blue-accent: #2f6fed;
  --blue-light: #6fa1f2;
  --ink: #202832;
  --body-grey: #4d5560;
  --line-grey: #d7dce2;
  --paper: #ffffff;
  --off-white: #f4f6f8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.om-body {
  font-family: 'Avenir Next', 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  font-size: 16px;
  line-height: 1.55;
}

.om-display {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--blue-accent);
  letter-spacing: .01em;
}

.om-container {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding: 4rem 2rem;
  position: relative;
}

@media screen and (max-width: 767px) {
  .om-container { padding: 2.5rem 1.25rem; }
}

.om-container.tight { padding-top: 2rem; padding-bottom: 2rem; }

/* ---------------- Banner ---------------- */
.om-banner {
  position: relative;
  min-height: 60vw;
  max-height: 720px;
  overflow: hidden;
  background-color: var(--navy-deep);
}
@media screen and (min-width: 1200px) { .om-banner { min-height: 620px; } }

.om-banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.om-banner-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15,26,41,.92) 0%, rgba(15,26,41,.35) 45%, rgba(15,26,41,0) 70%);
}

.om-banner-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 60vw;
  max-height: 720px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem 2rem 3rem;
  max-width: 1120px;
  margin: 0 auto;
}
@media screen and (min-width: 1200px) { .om-banner-content { min-height: 620px; } }

.om-eyebrow {
  color: var(--blue-light);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: .5rem;
}

.om-address-number {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  color: #fff;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 1;
  margin: 0;
}

.om-address-street {
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: .04em;
  font-size: clamp(1.4rem, 3vw, 2.1rem);
  margin: .1rem 0 .75rem;
}

.om-address-city {
  color: #cfd9e6;
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
}

.om-badge-row { display: flex; gap: .75rem; flex-wrap: wrap; }

.om-badge {
  display: inline-block;
  border: 1px solid var(--blue-light);
  color: #fff;
  border-radius: 20px;
  padding: .3rem 1rem;
  font-size: 14px;
  letter-spacing: .03em;
}
.om-badge.solid { background: var(--blue-accent); border-color: var(--blue-accent); }

/* ---------------- Stat strip ---------------- */
.om-stat-strip {
  display: flex;
  flex-wrap: wrap;
  background: var(--off-white);
  margin-top: -1px;
}

.om-stat {
  flex: 1 1 160px;
  padding: 1.75rem 1.5rem;
  border-right: 1px solid var(--line-grey);
  border-bottom: 1px solid var(--line-grey);
}
.om-stat:last-child { border-right: none; }

.om-stat-num {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  color: var(--blue-accent);
  font-size: 2.1rem;
  display: block;
  line-height: 1.1;
}

.om-stat-label {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--body-grey);
  margin-top: .25rem;
  display: block;
}

@media screen and (max-width: 767px) {
  .om-stat { flex: 1 1 50%; }
}

/* ---------------- Section headers (diagonal navy banner) ---------------- */
.om-section-header {
  position: relative;
  background: var(--navy-deep);
  color: #fff;
  padding: 2.25rem 2rem;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 78% 100%, 0 100%);
  margin-bottom: 2.5rem;
}
.om-section-header h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin: 0;
}
.om-section-header .om-kicker {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 14px;
  color: var(--blue-light);
  display: block;
  margin-top: .35rem;
}

/* ---------------- Two column layout ---------------- */
.om-cols {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.om-col { flex: 1 1 320px; }

.om-body-copy p { margin: 0 0 1rem; color: var(--body-grey); }
.om-body-copy p:last-child { margin-bottom: 0; }

/* ---------------- Highlights / amenities (dark band) ---------------- */
.om-dark-band {
  background: var(--navy-deep);
  color: #fff;
  padding: 4rem 2rem;
}
.om-dark-band h2 {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 2.2rem;
  margin: 0 0 1.5rem;
}
.om-list { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.om-list:last-child { margin-bottom: 0; }
.om-list li {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: .55rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
  font-size: 15px;
  letter-spacing: .02em;
}
.om-list li:last-child { border-bottom: none; }
.om-list .om-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
}

/* ---------------- Data tables ---------------- */
.om-table-wrap { overflow-x: auto; margin-bottom: 2rem; }
table.om-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 480px;
}
table.om-table caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: .5rem;
  color: var(--navy-deep);
}
table.om-table th {
  background: var(--navy-deep);
  color: #fff;
  text-align: left;
  padding: .65rem .9rem;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
table.om-table td {
  padding: .55rem .9rem;
  border-bottom: 1px solid var(--line-grey);
  color: var(--ink);
}
table.om-table tr:nth-child(even) td { background: var(--off-white); }
table.om-table tr.om-total td, table.om-table tr.om-subject td {
  font-weight: 700;
  background: #eaf1ff;
}
table.om-table td.num, table.om-table th.num { text-align: right; font-variant-numeric: tabular-nums; }

.om-kv-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.om-kv-table td { padding: .55rem 0; border-bottom: 1px solid var(--line-grey); }
.om-kv-table td:first-child { color: var(--body-grey); }
.om-kv-table td:last-child { text-align: right; font-weight: 700; color: var(--navy-deep); }
.om-kv-table tr.om-highlight td { color: var(--blue-accent); }

/* ---------------- Gallery (reuses same interaction pattern as mls-photos) ---------------- */
.om-gallery-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: .5rem;
}
.om-gallery-cell {
  flex: 0 0 auto;
  width: 260px;
  height: 190px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}
.om-gallery-cell img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s ease; }
.om-gallery-cell:hover img { transform: scale(1.05); }

.om-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.om-lightbox-bg { position: absolute; inset: 0; background: rgba(10,16,26,.92); }
.om-lightbox-wrap {
  position: relative;
  z-index: 2;
  width: 82%;
  max-width: 1000px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.om-lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  letter-spacing: .05em;
}
.om-lightbox-big { width: 100%; max-height: 65vh; display: flex; align-items: center; justify-content: center; }
.om-lightbox-big img { max-width: 100%; max-height: 65vh; border-radius: 4px; object-fit: contain; }
.om-lightbox-strip { display: flex; gap: .6rem; overflow-x: auto; max-width: 100%; }
.om-lightbox-strip img { width: 70px; height: 52px; object-fit: cover; border-radius: 3px; cursor: pointer; opacity: .6; }
.om-lightbox-strip img.active { opacity: 1; outline: 2px solid var(--blue-light); }

/* ---------------- Map / location ---------------- */
.om-map-frame { width: 100%; height: 420px; border: 0; }
.om-location-table td:first-child { width: 40px; color: var(--blue-accent); font-weight: 700; }

/* ---------------- Agent footer ---------------- */
.om-agent-footer { background: var(--off-white); border-top: 1px solid var(--line-grey); }
.om-agent-grid {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding: 3rem 2rem;
  max-width: 1120px;
  margin: 0 auto;
}
.om-agent-card { flex: 1 1 220px; text-align: left; }
.om-agent-photo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: .75rem;
}
.om-agent-name { font-weight: 700; color: var(--navy-deep); margin-bottom: .15rem; }
.om-agent-line { font-size: 14px; color: var(--body-grey); display: block; }
.om-agent-line a { color: var(--body-grey); text-decoration: none; }
.om-agent-line a:hover { color: var(--blue-accent); }
.om-agent-dre { font-size: 12px; color: #8a93a0; margin-top: .35rem; }

.om-cta-band {
  text-align: center;
  padding: 3.5rem 2rem;
  background: var(--navy-deep);
}
.om-cta-band h2 { color: #fff; font-family: Georgia, serif; font-style: italic; font-weight: 400; margin: 0 0 1.25rem; font-size: 2rem; }

.om-button {
  display: inline-block;
  background: var(--blue-accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: .8rem 2rem;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .03em;
  cursor: pointer;
  text-decoration: none;
}
.om-button:hover { background: #2159c4; }
.om-button.ghost { background: transparent; border: 1px solid #fff; color: #fff; }
.om-button.ghost:hover { background: rgba(255,255,255,.1); }

/* ---------------- Contact form modal ---------------- */
.om-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9500;
  align-items: center;
  justify-content: center;
}
.om-modal-bg { position: absolute; inset: 0; background: rgba(10,16,26,.85); }
.om-modal-panel {
  position: relative;
  z-index: 2;
  background: #fff;
  width: 90%;
  max-width: 460px;
  padding: 2.5rem;
  border-radius: 6px;
}
.om-modal-close { position: absolute; top: 1rem; right: 1.25rem; cursor: pointer; color: var(--body-grey); font-size: 14px; }
.om-modal-panel h3 { font-family: Georgia, serif; font-style: italic; color: var(--navy-deep); margin: 0 0 1.5rem; font-size: 1.5rem; }
.om-form-label { display: block; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; color: var(--body-grey); margin-bottom: .35rem; }
.om-form-input {
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 1.1rem;
  padding: .6rem .75rem;
  border: 1px solid var(--line-grey);
  font-size: 14px;
  font-family: inherit;
}
textarea.om-form-input { height: 110px; resize: vertical; }

/* ---------------- Footer ---------------- */
.om-footer {
  background: var(--navy-deep);
  color: #cfd9e6;
  padding: 2rem;
  font-size: 13px;
}
.om-footer-inner { max-width: 1120px; margin: 0 auto; display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.om-disclaimer { max-width: 1120px; margin: 0 auto; padding-top: 1.5rem; font-size: 11px; color: #8496ac; line-height: 1.6; border-top: 1px solid rgba(255,255,255,.1); margin-top: 1.5rem; }

/* ---------------- Photo grid (static, non-lightbox) ---------------- */
.om-photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.om-photo-grid img { width: 100%; height: 220px; object-fit: cover; border-radius: 4px; }
@media screen and (max-width: 767px) {
  .om-photo-grid { grid-template-columns: 1fr 1fr; }
}
@media screen and (max-width: 479px) {
  .om-photo-grid { grid-template-columns: 1fr; }
}

/* ---------------- Charts (pure CSS) ---------------- */
.om-bar-chart { display: flex; align-items: flex-end; gap: 1.25rem; height: 200px; padding-top: 1rem; }
.om-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.om-bar-fill { width: 100%; max-width: 64px; background: var(--blue-accent); border-radius: 3px 3px 0 0; position: relative; }
.om-bar-fill span { position: absolute; top: -1.5rem; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 700; color: var(--navy-deep); }
.om-bar-label { margin-top: .6rem; font-size: 12px; text-align: center; color: var(--body-grey); }

.om-donut-wrap { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.om-donut { flex: none; }
.om-legend { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.om-legend li { display: flex; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.om-legend .sw { width: 12px; height: 12px; border-radius: 2px; flex: none; }
