/* Sam Siskind Real Estate: global theme styles.
   Tokens come from the design system (brand book) and are set as CSS variables
   in templates/partials/theme-vars.hubl.html from the theme settings (fields.json). */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 26px;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 var(--space-4);
  letter-spacing: -0.01em;
}
h1 { font-size: 56px; line-height: 60px; }
h2 { font-size: 40px; line-height: 46px; }
h3 { font-size: 28px; line-height: 34px; }
p { margin: 0 0 var(--space-4); }

a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 3px; border-radius: var(--radius-sm); }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--space-4); top: var(--space-4); background: var(--surface-raised); padding: var(--space-2) var(--space-4); z-index: 10; }

.wrap { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--space-6); }
.section { padding: var(--space-16) 0; }
.section--surface { background: var(--surface); }
.section--brand { background: var(--brand); color: var(--on-brand); }
.section--brand h2, .section--brand h3 { color: var(--on-brand); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px; line-height: 16px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--space-2);
}
/* the roof-slab motif: a cantilevered bar under an eyebrow */
.slab { display: block; width: 72px; height: 8px; border-radius: var(--radius-sm); background: var(--brand); margin: var(--space-2) 0 var(--space-6) -12px; }
.section--brand .slab { background: var(--on-brand); }

.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 20px;
  padding: 9px 16px; border-radius: var(--radius-md); /* 40px tall: slimmer, still a comfortable target */
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn--lg { font-size: 16px; padding: 12px 20px; } /* hero and booking bands only */
.btn--book { background: var(--accent-strong); color: var(--on-accent); }
.btn--book:hover { filter: brightness(0.92); }
.btn--secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.section--brand .btn--secondary { color: var(--on-brand); border-color: var(--on-brand); }

.card { background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: var(--space-6); }
.muted, .small { color: var(--muted); font-size: 14px; line-height: 20px; }

/* Blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.post-card { display: flex; flex-direction: column; background: var(--surface-raised); border: 1px solid var(--hairline); border-radius: var(--radius-md); overflow: hidden; text-decoration: none; color: inherit; }
.post-card__img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; background: var(--surface); }
.post-card__body { padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); flex: 1; }
.post-card__title { font-family: var(--font-display); font-size: 22px; line-height: 28px; color: var(--brand); margin: 0; }
.post-card__tag { color: var(--palm); }
.post-card:hover .post-card__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

.article { max-width: 720px; margin: 0 auto; }
.article__body { font-size: 18px; line-height: 30px; }
.article__body h2 { font-size: 32px; line-height: 38px; margin-top: var(--space-10); }
.article__body h3 { font-size: 24px; line-height: 30px; margin-top: var(--space-6); }
.article__body img { border-radius: var(--radius-lg); }
.article__hero { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: var(--space-6) 0 var(--space-10); }
.tag-list { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; margin: 0; }
.tag-list a { display: inline-block; padding: 4px 10px; border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; }

.pager { display: flex; gap: var(--space-4); justify-content: center; margin-top: var(--space-10); }

/* Booking: the HubSpot meetings embed sits on a raised card */
.booking { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-10); align-items: start; }
.booking__embed { background: var(--surface-raised); border-radius: var(--radius-lg); padding: var(--space-4); border: 1px solid var(--hairline); min-height: 560px; }

@media (max-width: 767px) {
  h1 { font-size: 40px; line-height: 44px; }
  h2 { font-size: 30px; line-height: 36px; }
  .section { padding: var(--space-10) 0; }
  .post-grid, .booking { grid-template-columns: 1fr; }
  .wrap { padding: 0 var(--space-4); }
}

/* Blog card without a featured image: the mark on limestone */
.post-card__img--empty { display: grid; place-items: center; }

/* Listings strip: properties we represent, above the site header (not on ABM pages) */
.listings-strip { background: var(--brand); color: var(--on-brand); font-size: 13px; line-height: 18px; }
.listings-strip__inner { display: flex; align-items: center; gap: var(--space-4); min-height: 36px; }
.listings-strip__label { font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 11px; white-space: nowrap; color: var(--on-brand); display: inline-flex; align-items: center; gap: 8px; }
.listings-strip__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); } /* the sun, as a dot: shape, not text */
.listings-strip__items { display: flex; gap: var(--space-6); list-style: none; margin: 0; padding: 0; overflow: hidden; flex: 1; min-width: 0; }
.listings-strip__items li { white-space: nowrap; flex: none; } /* whole items only; extras are clipped by the list */
.listings-strip a { color: var(--on-brand); text-decoration: none; }
.listings-strip a:hover { text-decoration: underline; }
.listings-strip em { font-style: normal; font-weight: 600; } /* status stays on-brand: coral text on brand is under 4.5:1 */
.listings-strip__all { font-weight: 600; white-space: nowrap; text-decoration: underline !important; text-underline-offset: 3px; }
@media (max-width: 1439px) { .listings-strip__items li:nth-child(n+3) { display: none; } }
@media (max-width: 767px) { .listings-strip__items li + li { display: none; } }

/* Listing cards */
.listing-badge { position: absolute; left: 12px; top: 12px; background: var(--surface-raised); color: var(--brand); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--radius-sm); }
.listing-badge--contract { background: var(--accent-strong); color: var(--on-accent); }
.listing-price { font-family: var(--font-display); font-size: 24px; line-height: 30px; color: var(--ink); }

/* Listing detail (dynamic page /listings/<page_slug>) */
.listing-detail { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; margin-top: 24px; align-items: start; }
.listing-detail__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); background: var(--surface); }
.listing-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; margin: 0; padding: 16px 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.listing-facts dt { font-size: 13px; color: var(--muted); }
.listing-facts dd { margin: 0; font-weight: 600; color: var(--ink); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--brand); }
@media (max-width: 900px) { .listing-detail { grid-template-columns: 1fr; gap: 24px; } }
