/* ============================================
   BRYAN MARKS — SECONDARY PAGE DESIGN SYSTEM
   Applies to: neighborhood, comparison, bio,
   market report pages
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Jost:wght@300;400;500&display=swap');

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

/* ── TOKENS ── */
:root {
  --cream:        #F5F2EC;
  --cream-dark:   #EDE9E0;
  --ink:          #1A1814;
  --ink-mid:      #4A4742;
  --ink-light:    #8A8680;
  --rule:         rgba(26,24,20,0.12);
  --rule-strong:  rgba(26,24,20,0.22);
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'Jost', system-ui, sans-serif;
  --max:          780px;
  --px:           32px;
}

/* ── BASE ── */
body {
  background: var(--cream);
  font-family: var(--sans);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
.sec-nav {
  background: var(--cream);
  border-bottom: 0.5px solid var(--rule-strong);
  padding: 0 var(--px);
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}
.sec-nav-logo {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.sec-nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
  list-style: none;
}
.sec-nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
}
.sec-nav-links a.active { color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.sec-nav-links a.cta    { border: 0.5px solid var(--ink); padding: 5px 14px; color: var(--ink); }
.sec-nav-ham {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.sec-nav-ham span { display: block; width: 22px; height: 1px; background: var(--ink); }

/* Mobile nav drawer */
.sec-nav-drawer {
  display: none;
  position: fixed;
  top: 52px; left: 0; right: 0; bottom: 0;
  background: var(--cream);
  z-index: 19;
  padding: 32px var(--px);
  flex-direction: column;
  border-top: 0.5px solid var(--rule-strong);
  overflow-y: auto;
}
.sec-nav-drawer.open { display: flex; }
.sec-nav-drawer a {
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  padding: 16px 0;
  border-bottom: 0.5px solid var(--rule);
}
.sec-nav-drawer a:last-child { border-bottom: none; }

/* ── HERO STRIP ── */
.sec-hero {
  background: var(--ink);
  padding: clamp(36px, 5vw, 60px) var(--px) clamp(32px, 4vw, 52px);
  text-align: center;
}
.sec-hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.45);
  margin-bottom: 14px;
}
.sec-hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 300;
  color: #F5F2EC;
  line-height: 1.2;
  max-width: 660px;
  margin: 0 auto 16px;
}
.sec-hero-lead {
  font-size: clamp(14px, 1.5vw, 16px);
  font-weight: 300;
  color: rgba(245,242,236,0.65);
  max-width: 520px;
  margin: 0 auto 22px;
  line-height: 1.75;
}
.sec-hero-meta {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(245,242,236,0.4);
}

/* ── ANCHOR NAV ── */
.sec-anchor-nav {
  background: var(--cream-dark);
  border-bottom: 0.5px solid var(--rule);
  padding: 0 var(--px);
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.sec-anchor-nav::-webkit-scrollbar { display: none; }
.sec-anchor-nav a {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mid);
  text-decoration: none;
  padding: 13px 16px;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.sec-anchor-nav a.active { color: var(--ink); border-bottom-color: var(--ink); }

/* ── BODY WRAPPER ── */
.sec-body {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--px) 80px;
}

/* ── SECTION ── */
.sec-section { padding-top: 48px; }
.sec-section + .sec-section {
  border-top: 0.5px solid var(--rule);
  margin-top: 48px;
}
.sec-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 10px;
}
.sec-section h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 300;
  margin-bottom: 18px;
  line-height: 1.25;
}
.sec-section h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  margin: 26px 0 10px;
}
.sec-section p {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.75;
  margin-bottom: 14px;
}
.sec-section ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 14px;
}
.sec-section ul li {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.75;
  padding: 5px 0 5px 16px;
  border-bottom: 0.5px solid var(--rule);
  position: relative;
}
.sec-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--ink-light);
  font-size: 12px;
}
.sec-section ul li:last-child { border-bottom: none; }

/* ── ANSWER BOX ── */
.sec-answer {
  background: var(--ink);
  padding: 22px 26px;
  margin-bottom: 28px;
}
.sec-answer p {
  font-size: 16px;
  font-weight: 300;
  color: rgba(245,242,236,0.82);
  line-height: 1.75;
  margin: 0;
}

/* ── IMAGE SLOTS ── */
.sec-img-full {
  width: 100%;
  aspect-ratio: 16 / 7;
  overflow: hidden;
  margin: 28px 0;
  display: block;
}
.sec-img-full img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sec-img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}
.sec-img-pair img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.sec-img-inline {
  float: right;
  width: clamp(140px, 28%, 220px);
  margin: 0 0 20px 24px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.sec-img-inline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.clearfix::after { content: ''; display: table; clear: both; }

.sec-img-caption {
  font-size: 13px;
  color: var(--ink-light);
  margin-top: -20px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
}

.sec-img-placeholder {
  background: var(--cream-dark);
  border: 0.5px solid var(--rule-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.sec-img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent, transparent 20px,
    rgba(26,24,20,0.03) 20px, rgba(26,24,20,0.03) 21px
  );
}
.sec-img-placeholder::after {
  content: attr(data-label);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-light);
  z-index: 1;
  text-align: center;
  padding: 0 16px;
}

/* ── VIDEO SLOT ── */
.sec-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.sec-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.sec-video-play {
  width: 56px;
  height: 56px;
  border: 1.5px solid rgba(245,242,236,0.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  transition: border-color 0.2s;
}
.sec-video:hover .sec-video-play { border-color: rgba(245,242,236,0.9); }
.sec-video-play svg { margin-left: 4px; }
.sec-video::after {
  content: attr(data-label);
  position: absolute;
  bottom: 16px;
  left: 20px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245,242,236,0.45);
  z-index: 1;
}

/* ── COMPARISON TABLE ── */
.sec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 16px;
}
.sec-table th {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-light);
  padding: 10px 12px;
  text-align: left;
  border-bottom: 0.5px solid var(--rule-strong);
}
.sec-table th:not(:first-child) { text-align: right; }
.sec-table td {
  padding: 10px 12px;
  border-bottom: 0.5px solid var(--rule);
  font-weight: 300;
  color: var(--ink-mid);
  vertical-align: middle;
}
.sec-table td:first-child {
  color: var(--ink);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.sec-table td:not(:first-child) {
  text-align: right;
}
.sec-table tr:last-child td { border-bottom: none; }
.sec-table tr:hover td { background: rgba(26,24,20,0.025); }
.sec-table .winner { font-weight: 500; }
.sec-table-note {
  font-size: 13px;
  color: var(--ink-light);
  margin-top: 6px;
  letter-spacing: 0.03em;
}

/* ── SCORE BADGES ── */
.sec-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}
.sec-score {
  background: white;
  border: 0.5px solid var(--rule-strong);
  padding: 16px 14px;
  text-align: center;
}
.sec-score-num {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
}
.sec-score-lbl {
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-top: 5px;
}
.sec-score-sub {
  font-size: 11px;
  color: var(--ink-mid);
  margin-top: 3px;
  font-weight: 300;
}

/* ── PULL QUOTE ── */
.sec-quote {
  border-left: 2px solid var(--ink);
  padding: 14px 22px;
  margin: 28px 0;
  background: white;
}
.sec-quote p {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 300;
  font-style: italic;
  color: var(--ink);
  line-height: 1.6;
  margin: 0 0 8px;
}
.sec-quote cite {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-light);
  font-style: normal;
}

/* ── TWO COLUMN ── */
.sec-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin: 20px 0;
}
.sec-col-head {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 0.5px solid var(--rule-strong);
}
.sec-col-item {
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-mid);
  padding: 8px 0;
  border-bottom: 0.5px solid var(--rule);
  line-height: 1.5;
}
.sec-col-item:last-child { border-bottom: none; }
.sec-col-item strong { font-weight: 400; color: var(--ink); }

/* ── FAQ ── */
.sec-faq-item {
  padding: 16px 0;
  border-bottom: 0.5px solid var(--rule);
}
.sec-faq-item:last-child { border-bottom: none; }
.sec-faq-q {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 7px;
}
.sec-faq-a {
  font-size: 16px;
  font-weight: 300;
  color: var(--ink-mid);
  line-height: 1.75;
}

/* ── CTA BLOCK ── */
.sec-cta {
  background: var(--ink);
  padding: clamp(36px, 5vw, 52px) var(--px);
  text-align: center;
  margin: 52px calc(var(--px) * -1) 0;
}
.sec-cta h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 300;
  color: #F5F2EC;
  margin-bottom: 12px;
}
.sec-cta p {
  font-size: 15px;
  font-weight: 300;
  color: rgba(245,242,236,0.6);
  max-width: 460px;
  margin: 0 auto 26px;
  line-height: 1.75;
}
.sec-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.sec-cta-btn {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 12px 26px;
  text-decoration: none;
  display: inline-block;
}
.sec-cta-btn.primary { background: #F5F2EC; color: var(--ink); }
.sec-cta-btn.secondary { border: 0.5px solid rgba(245,242,236,0.35); color: #F5F2EC; }

/* ── FOOTER ── */
.sec-footer {
  background: var(--ink);
  padding: 40px var(--px);
  font-size: 13px;
  color: rgba(245,242,236,0.45);
  letter-spacing: 0.06em;
}
.sec-footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sec-footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.sec-footer-links a {
  color: rgba(245,242,236,0.55);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sec-footer-links a:hover { color: rgba(245,242,236,0.85); }

/* ── MOBILE BREAKPOINTS ── */
@media (max-width: 640px) {
  :root { --px: 20px; }

  .sec-nav-links { display: none; }
  .sec-nav-ham   { display: flex; }

  .sec-anchor-nav a { padding: 12px 12px; font-size: 9px; }

  .sec-two-col { grid-template-columns: 1fr; gap: 0; }
  .sec-two-col > div + div {
    border-top: 0.5px solid var(--rule);
    padding-top: 20px;
    margin-top: 20px;
  }

  .sec-scores { gap: 8px; }
  .sec-score-num { font-size: 32px; }

  .sec-img-pair { grid-template-columns: 1fr; gap: 10px; }
  .sec-img-pair img { aspect-ratio: 16 / 9; }

  .sec-img-inline {
    float: none;
    width: 100%;
    margin: 0 0 20px 0;
    aspect-ratio: 16 / 9;
  }

  .sec-cta-btns { flex-direction: column; align-items: center; }
  .sec-cta-btn  { width: 100%; max-width: 300px; text-align: center; }
}

@media (max-width: 400px) {
  .sec-scores {
    grid-template-columns: 1fr;
    max-width: 180px;
    margin-left: auto;
    margin-right: auto;
  }
}
