/* Humble Westfield — Editorial Dark */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --ink:        #0B0D10;          /* near-black primary surface */
  --ink-2:      #121519;          /* elevated surface */
  --ink-3:      #1A1E24;          /* card / outline hover */
  --paper:      #F7F6F2;          /* warm paper for light sections */
  --stone:      #E8E5DA;          /* subtle stone accent */
  --line:       rgba(255,255,255,.09);
  --line-dark:  rgba(0,0,0,.10);
  --text:       #EDEBE4;          /* primary on dark */
  --muted:      rgba(237,235,228,.82); /* body on dark — ~10:1 contrast */
  --muted-soft: rgba(237,235,228,.58); /* labels / eyebrow only */
  --muted-dark: rgba(11,13,16,.78);    /* body on paper */
  --muted-dark-soft: rgba(11,13,16,.78);
  --accent:     #F28B1D;          /* HW orange */
  --accent-2:   #C46A12;          /* deep orange */

  /* legacy token aliases (some inline styles / HTML reference them) */
  --navy:       var(--ink);
  --navy-dark:  var(--ink);
  --card:       var(--ink-3);
  --card-dark:  var(--ink-2);
  --red:        var(--accent);
  --accent-line:var(--accent);
  --bg:         var(--paper);
  --white:      var(--paper);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  font-feature-settings: "ss01", "cv11"; /* Inter's stylistic alternates */
  font-optical-sizing: auto;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}
body { counter-reset: section; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ============ HEADER ============ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11,13,16,.55);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: inline-flex; align-items: center; gap: 14px;
  color: var(--text); line-height: 1;
  transition: opacity .18s ease;
}
.brand:hover { opacity: .85; }
.brand img {
  height: 36px; width: auto; display: block;
  /* crest is multi-color on dark; no shadow needed */
}
.brand .wordmark {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--text);
}
.brand .wordmark em {
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .22em;
  color: var(--muted-soft);
}
.brand .brand-red { color: var(--accent); margin-left: 8px; }

.nav { list-style: none; margin: 0; padding: 0; display: flex; gap: 28px; }
.nav a {
  position: relative;
  color: var(--text);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 12px;
  letter-spacing: .18em;
  font-weight: 500;
  padding: 6px 2px;
  text-transform: uppercase;
  opacity: .78;
  transition: opacity .18s ease;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav a:hover { opacity: 1; }
.nav a:hover::after,
.nav a.active::after { transform: scaleX(1); }
.nav a.active { opacity: 1; }

.hamburger {
  display: none; background: transparent; border: 1px solid var(--line);
  color: var(--text); width: 38px; height: 38px;
  font-size: 18px; cursor: pointer; border-radius: 2px;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh; /* full-bleed by default */
  color: var(--text);
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  text-align: left;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,13,16,.45) 0%, rgba(11,13,16,.15) 40%, rgba(11,13,16,.85) 100%),
    radial-gradient(ellipse at 20% 110%, rgba(242,139,29,.18), transparent 55%);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero .hero-inner {
  position: relative; z-index: 2;
  padding: 0 48px 80px;
  max-width: 1320px; width: 100%;
  margin: 0 auto;
}
/* eyebrow row removed — address is shown in .hero .meta .line2 below */
.hero h1 {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(44px, 7vw, 96px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: .98;
  margin: 0 0 18px;
  text-transform: none;
  max-width: 14ch;
}
.hero .subtitle {
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.hero .meta {
  display: block;
  padding: 0; margin-top: 28px;
  background: transparent;
  font-family: "Space Grotesk", sans-serif;
  font-size: 14px; letter-spacing: .12em;
  color: var(--text);
  max-width: 620px;
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.hero .meta .line2 { display: block; margin-top: 6px; font-size: 12px; opacity: .7; letter-spacing: .18em; }

/* short hero variant (non-home pages + home mid-band) */
.hero.short { min-height: 440px; }
.hero.short .hero-inner { padding-bottom: 56px; }
.hero.short h1 { font-size: clamp(36px, 5.5vw, 72px); }

/* ============ ACCENT LINE ============ */
.accent {
  width: 42px; height: 1px;
  background: var(--accent);
  margin: 16px auto 0;
  border-radius: 0;
}

/* ============ SECTIONS ============ */
.section {
  padding: 120px 32px;
  background: var(--ink);
  color: var(--text);
  position: relative;
}
.section h2 {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.05;
  text-align: center;
  text-transform: none;
  margin: 0;
  color: var(--text);
  counter-increment: section;
  position: relative;
}
.section h2::before {
  content: counter(section, decimal-leading-zero) " / ";
  font-family: "Space Grotesk", sans-serif;
  color: var(--accent);
  font-size: .55em;
  font-weight: 500;
  letter-spacing: .15em;
  vertical-align: .3em;
  margin-right: 6px;
}
.section h2[style*="text-align:left"]::before,
.section h2[style*="text-align: left"]::before { margin-left: 0; }
.section .lead {
  max-width: 720px; margin: 28px auto 0; text-align: center;
  font-size: 17px; line-height: 1.65;
  color: var(--muted); font-weight: 400;
}
.section.dark .lead { color: var(--muted); }
.section.dark h2 { color: var(--text); }
.section.bg-gray {
  background: var(--paper); color: var(--ink);
}
.section.bg-gray h2 { color: var(--ink); }
.section.bg-gray .lead { color: var(--muted-dark); }

/* Section divider line at top for rhythm */
.section + .section { border-top: 1px solid var(--line); }
.section.bg-gray + .section, .section + .section.bg-gray { border-top: 0; }

.container { max-width: 1280px; margin: 0 auto; }

/* ============ SPECS (Property Highlights) ============ */
.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-top: 60px;
}
.specs h3 {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section.bg-gray .specs h3 { border-bottom-color: var(--line-dark); }
.specs ul {
  list-style: none;
  padding: 0; margin: 0;
  font-size: 16px;
  line-height: 1.7;
}
.specs ul li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  position: relative; padding-left: 22px;
}
.section.bg-gray .specs ul li { border-bottom-color: var(--line-dark); }
.specs ul li::before {
  content: "";
  position: absolute; left: 0; top: 22px;
  width: 10px; height: 1px;
  background: var(--accent);
}

/* ============ DARK SECTION ============ */
.section.dark { background: var(--ink); color: var(--text); }

/* ============ TABLES ============ */
.pricing-table, .distance-table {
  width: 100%;
  max-width: 1080px;
  margin: 60px auto 0;
  border-collapse: collapse;
  font-family: "Inter", sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  background: transparent;
}
.pricing-table th, .distance-table th {
  background: transparent;
  color: var(--accent);
  padding: 14px 18px;
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  letter-spacing: .2em;
  font-size: 11px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent);
}
.section.bg-gray .pricing-table th,
.section.bg-gray .distance-table th { color: var(--accent-2); }
.pricing-table td, .distance-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 15px;
}
.section.bg-gray .pricing-table td,
.section.bg-gray .distance-table td {
  color: var(--ink);
  border-bottom-color: var(--line-dark);
}
.pricing-table tr:nth-child(even) td { background: transparent; }
.pricing-table tr:hover td { background: rgba(242,139,29,.05); }
.pricing-table td:first-child {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
}
.section.bg-gray .pricing-table td:first-child { color: var(--accent-2); }
.distance-table { max-width: 720px; }
.distance-table td:last-child {
  text-align: right;
  font-family: "Space Grotesk", sans-serif;
  font-size: 22px; font-weight: 500;
  color: var(--text);
  letter-spacing: -.02em;
}
.section.bg-gray .distance-table td:last-child { color: var(--ink); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  color: var(--text);
  padding: 14px 24px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--line);
  cursor: pointer;
  border-radius: 2px;
  margin-top: 8px;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.btn::after { content: "→"; font-size: 13px; letter-spacing: 0; opacity: .7; transition: transform .2s ease; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn:hover::after { transform: translateX(4px); opacity: 1; }
.btn.red {
  background: var(--accent); color: var(--ink);
  border-color: var(--accent);
}
.btn.red::after { color: var(--ink); }
.btn.red:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--ink); }
.section.bg-gray .btn { color: var(--ink); border-color: var(--line-dark); }
.section.bg-gray .btn:hover { border-color: var(--accent-2); color: var(--accent-2); }

/* ============ BUILDING CARDS ============ */
.building-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 80px;
  background: var(--line);
  border: 1px solid var(--line);
}
.building-card {
  background: var(--ink);
  padding: 32px 28px 36px;
  display: flex; flex-direction: column; gap: 18px;
  transition: background .25s ease, transform .25s ease;
  color: var(--text);
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.building-card::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.building-card:hover { background: var(--ink-2); }
.building-card:hover::after { transform: scaleX(1); }
.building-card .badge {
  background: transparent !important;
  padding: 0 !important;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.building-card .badge .id {
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px; letter-spacing: .3em;
  color: var(--accent);
  font-weight: 500;
  text-transform: uppercase;
}
.building-card .badge .sf {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(40px, 3.8vw, 56px);
  font-weight: 500;
  letter-spacing: -.025em;
  color: var(--text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.building-card .body {
  padding: 0 !important;
  border-top: 1px solid var(--line);
  padding-top: 18px !important;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: auto;
}
.building-card .body ul { list-style: none; padding: 0; margin: 0; }
.building-card .body li { padding: 5px 0; }
.building-card .body li + li { border-top: 1px solid var(--line); margin-top: 0; }
.building-card .cta {
  display: none; /* cards aren't linked in humble-site */
}

/* ============ DETAIL HEADER (per-building, unused now but kept) ============ */
.detail-header {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: start;
  margin-top: 20px;
}
.detail-header .meta-card {
  background: var(--ink-2);
  color: var(--text);
  padding: 28px 30px;
  border-radius: 2px;
  border: 1px solid var(--line);
}
.detail-header .meta-card .row {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.detail-header .meta-card .row:last-child { border-bottom: 0; }
.detail-header .meta-card .row .label {
  color: var(--muted);
  letter-spacing: .15em; font-size: 11px;
  text-transform: uppercase;
  font-family: "Space Grotesk", sans-serif;
}
.detail-header .meta-card .row .value {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color .18s ease, border-color .18s ease;
}
.back-link:hover { color: var(--accent); border-color: var(--accent); }

/* ============ CONTACT PAGE ============ */
.info-box {
  background: transparent;
  border: 1px solid var(--line-dark);
  padding: 32px 28px !important;
  display: flex;
  align-items: center; justify-content: center;
  margin-bottom: 14px;
  border-radius: 2px;
}
.section.bg-gray .info-box { border-color: var(--line-dark); background: var(--stone); }
.info-box .info-label {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted-dark-soft);
  font-weight: 500;
}
.info-box img { max-height: 72px; }

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left !important;
  margin-top: 40px;
}
.people-grid .person {
  font-size: 14px; line-height: 1.7;
  padding: 20px 0;
  border-top: 1px solid var(--line-dark);
}
.people-grid .person strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 18px; font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: -.005em;
  color: var(--ink);
}
.section.dark .people-grid .person strong { color: var(--text); }
.people-grid .person a {
  color: var(--accent-2);
  border-bottom: 1px solid transparent;
  transition: border-color .15s;
}
.people-grid .person a:hover { border-color: var(--accent-2); }
.people-grid .person span { color: var(--muted-dark-soft); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

.contact-heading {
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 28px !important;
  font-weight: 500 !important;
  letter-spacing: -.01em !important;
  text-transform: none !important;
  margin: 48px 0 0 !important;
  color: var(--ink);
}
.contact-heading + .accent { margin-top: 14px; width: 42px; height: 1px; background: var(--accent); }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--ink);
  color: var(--text);
  padding: 80px 32px 40px;
  border-top: 1px solid var(--line);
}
.site-footer .footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px 28px;
  align-items: center;
}
.site-footer .person {
  font-size: 13px; line-height: 1.7;
  color: var(--muted);
}
.site-footer .person strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px; font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
  letter-spacing: -.005em;
}
.site-footer .person span {
  font-size: 11px !important; letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted-soft);
  opacity: 1 !important;
}
.site-footer .person a {
  color: var(--muted);
  transition: color .18s ease;
}
.site-footer .person a:hover { color: var(--accent); }
.site-footer .footer-logos img { filter: brightness(0) invert(.85); }
.site-footer .footer-logos a { transition: opacity .18s ease; opacity: .8; }
.site-footer .footer-logos a:hover { opacity: 1; }

.site-footer .disclaimer {
  max-width: 1280px; margin: 60px auto 0;
  font-size: 11px; line-height: 1.6;
  color: rgba(237,235,228,.4);
  padding-top: 30px;
  border-top: 1px solid var(--line);
  letter-spacing: .02em;
}

/* partners-footer class kept for compat — map to editorial dark */
.site-footer.partners-footer { background: var(--ink); color: var(--text); }
.site-footer.partners-footer .person a { color: var(--muted); }
.site-footer.partners-footer .person a:hover { color: var(--accent); }
.site-footer.partners-footer .disclaimer { color: rgba(237,235,228,.4); }

/* ============ BOTTOM HERO ============ */
.bottom-hero {
  background-size: cover; background-position: center;
  height: 440px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text); text-align: center;
  position: relative; overflow: hidden;
}
.bottom-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,13,16,.3), rgba(11,13,16,.75));
}
.bottom-hero h2 {
  position: relative; z-index: 1;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 4.5vw, 64px);
  font-weight: 500;
  letter-spacing: -.015em;
  text-transform: none;
  color: var(--text);
  margin: 0;
}

/* ============ LEGACY / MISC ============ */
/* Fallbacks for classes we no longer visually use in this site */
.broker-card { display: none; }
.gallery-hero, .gallery-main, .thumb-strip { /* unused in humble-site */ }

/* ============ SITE PROGRESS GALLERY ============ */
.progress-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 48px;
}
.progress-item {
  display: block;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--ink);
  position: relative;
}
.progress-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.progress-item:hover img { transform: scale(1.04); }
@media (max-width: 900px) {
  .progress-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .progress-grid { grid-template-columns: 1fr; }
}
.contact-form, .contact-layout, .spec-cards, .stats-panel { /* unused */ }

/* Images inside sections (maps, aerial photos) */
.section img {
  border-radius: 2px;
  transition: transform .4s ease;
}
.section img:hover { transform: scale(1.01); }

/* Strong-selection override for <a> around images */
.section a { display: inline-block; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .building-grid { grid-template-columns: repeat(2, 1fr); }
  .specs { grid-template-columns: 1fr; gap: 40px; }
  .detail-header { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .site-header { padding: 14px 20px; }
  .nav { display: none; }
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .hero .hero-inner { padding: 0 24px 60px; }
  .section { padding: 80px 24px; }
  .building-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .distance-table td { padding: 14px; font-size: 14px; }
  .distance-table td:last-child { font-size: 20px; }
}
@media (max-width: 720px) {
  .brand .wordmark em { display: none; }
  .brand .wordmark { font-size: 11px; letter-spacing: .12em; padding-left: 10px; }
}
@media (max-width: 520px) {
  .brand img { height: 32px; }
  .brand .wordmark { display: none; }
  .hero h1 { font-size: clamp(32px, 9vw, 48px); }
  .site-footer { padding: 60px 20px 30px; }
}

/* Prefers reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
