/* =========================================================
   Team Moore Properties — Brand-aligned design system
   Bright blue + black + white space, dotted-orbit motif,
   clean lowercase typography, modern but warm-for-housing.
   ========================================================= */

:root {
  --tm-blue: #1E9BFF;
  --tm-blue-dark: #0E7CD6;
  --tm-blue-soft: #E8F4FF;
  --tm-black: #0A0A0A;
  --tm-ink: #1A1A1A;
  --tm-muted: #6B7280;
  --tm-line: #E5E7EB;
  --tm-bg: #FFFFFF;
  --tm-bg-soft: #F6F8FB;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(10, 10, 10, 0.04), 0 2px 8px rgba(10, 10, 10, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 10, 10, 0.06), 0 12px 28px rgba(10, 10, 10, 0.06);

  --container: 1180px;
  --space-section: clamp(72px, 10vw, 128px);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
/* Anchored sections sit below the sticky header */
section[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--tm-ink);
  background: var(--tm-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

a { color: var(--tm-blue-dark); text-decoration: none; }
a:hover { color: var(--tm-blue); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  margin: 0 0 0.5em;
  color: var(--tm-black);
  letter-spacing: -0.01em;
  line-height: 1.15;
  font-weight: 600;
}

h1 {
  font-size: clamp(2.5rem, 4.4vw, 4.5rem);
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero-copy h1 {
  margin-bottom: 22px;
  text-wrap: balance;
  max-width: 14ch;
}
.hero-copy h1 .accent {
  color: var(--tm-blue);
  white-space: nowrap;
}
.hero-copy .lead {
  font-size: 18px;
  max-width: 52ch;
  color: var(--tm-muted);
}
.hero-cta { margin-top: 32px; }

h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
}

h3 { font-size: 22px; }

p { margin: 0 0 1em; }
p.lead { font-size: 19px; color: var(--tm-muted); max-width: 620px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: lowercase;
  letter-spacing: 0.04em;
  color: var(--tm-blue);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--tm-blue);
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease,
    border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--tm-blue);
  color: #ffffff;
  border-color: var(--tm-blue);
  box-shadow: 0 6px 18px rgba(30, 155, 255, 0.28);
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--tm-blue-dark);
  border-color: var(--tm-blue-dark);
  color: #ffffff;
  text-shadow: none;
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(14, 124, 214, 0.35);
}
.btn-primary:active {
  background: var(--tm-blue-dark);
  color: #ffffff;
  transform: translateY(0);
}

.btn-secondary {
  background: #fff;
  color: var(--tm-black);
  border-color: var(--tm-black);
}
.btn-secondary:hover {
  background: var(--tm-black);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--tm-blue-dark);
  padding: 10px 4px;
}
.btn-ghost:hover { color: var(--tm-blue); }

.btn-arrow::after {
  content: "→";
  display: inline-block;
  transition: transform 0.18s ease;
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--tm-line);
  box-shadow: 0 1px 0 rgba(10, 10, 10, 0.02), 0 6px 18px rgba(10, 10, 10, 0.03);
}

.header-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  display: block;
}
.brand-logo-footer {
  height: 96px;
}
@media (max-width: 480px) {
  .brand-logo { height: 46px; }
  .brand-logo-footer { height: 72px; }
}

.brand-lockup .brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-lockup .brand-wordmark .row-1 {
  font-size: 12px;
  color: var(--tm-blue);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.brand-lockup .brand-wordmark .row-2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--tm-black);
  letter-spacing: -0.02em;
  margin-top: 2px;
}
.brand-lockup .brand-wordmark .row-3 {
  font-size: 11px;
  font-weight: 600;
  color: var(--tm-black);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.nav-primary a {
  color: var(--tm-ink);
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.005em;
}
.nav-primary a:hover { color: var(--tm-blue); }

.header-cta .btn {
  padding: 10px 20px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(30, 155, 255, 0.22);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--tm-black);
  position: relative;
  transition: transform 0.2s ease, top 0.2s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after  { position: absolute; top: 7px; }

@media (max-width: 880px) {
  .header-container {
    grid-template-columns: auto 1fr;
    gap: 16px;
  }
  .nav-primary {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--tm-line);
    padding: 8px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
  }
  .nav-primary.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-primary a { padding: 12px 0; border-bottom: 1px solid var(--tm-line); }
  .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 130px);
  background: linear-gradient(180deg, #ffffff 0%, var(--tm-bg-soft) 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
  position: relative;
  z-index: 2;
}

.hero-copy .brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid var(--tm-line);
  background: #fff;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tm-black);
  margin-bottom: 22px;
}
.hero-copy .brand-badge img,
.hero-copy .brand-badge svg {
  width: 22px;
  height: 22px;
}
.hero-copy .brand-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--tm-blue);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.hero-trust {
  list-style: none;
  padding: 0;
  margin: 36px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--tm-ink);
  letter-spacing: 0;
}
.hero-trust li svg {
  width: 18px;
  height: 18px;
  color: var(--tm-blue);
  flex-shrink: 0;
}

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  align-self: center;
  width: 100%;
  max-width: 560px;
  justify-self: end;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background:
    linear-gradient(135deg, rgba(30,155,255,0.18), rgba(10,10,10,0.0) 60%),
    url("https://images.unsplash.com/photo-1505691938895-1758d7feb511?auto=format&fit=crop&w=1200&q=80")
      center/cover no-repeat,
    var(--tm-bg-soft);
}

.hero-visual .visual-tag {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(10, 10, 10, 0.04);
  border-radius: 999px;
  padding: 9px 16px 9px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--tm-black);
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(10, 10, 10, 0.08);
}
.visual-tag-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tm-blue);
  flex-shrink: 0;
}
.visual-tag-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(30, 155, 255, 0.18);
  animation: tm-pulse 2.2s ease-out infinite;
}
@keyframes tm-pulse {
  0%   { transform: scale(0.8); opacity: 0.55; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Dotted orbit motif behind hero */
.motif-orbit-bg {
  position: absolute;
  width: min(620px, 58vw);
  height: min(620px, 58vw);
  right: -260px;
  bottom: -180px;
  top: auto;
  opacity: 0.22;
  z-index: 1;
  pointer-events: none;
  filter: saturate(0.9);
}
.motif-orbit-bg.is-left {
  right: auto;
  left: -260px;
  top: auto;
  bottom: -240px;
  opacity: 0.35;
}
.motif-orbit-sm {
  width: 84px;
  height: 84px;
  opacity: 0.85;
}

/* ---------- Generic section ---------- */

.section {
  padding: var(--space-section) 0;
  position: relative;
  overflow: hidden;
}
.section.section-soft { background: var(--tm-bg-soft); }
.section.section-dark { background: var(--tm-black); color: #fff; }
.section.section-dark h2 { color: #fff; }
.section.section-dark .eyebrow { color: #69BBFF; }
.section.section-dark p.lead { color: rgba(255,255,255,0.7); }

.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .eyebrow { justify-content: center; }

/* ---------- Property / feature cards ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 920px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards-grid { grid-template-columns: 1fr; } }

.property-card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--tm-line);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.property-card .media {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  position: relative;
}
.property-card .media .tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(255,255,255,0.95);
  color: var(--tm-black);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  letter-spacing: 0.02em;
}
.property-card .media .tag.blue {
  background: var(--tm-blue);
  color: #fff;
}
.property-card .body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.property-card .body h3 {
  margin: 0 0 6px;
  font-size: 19px;
}
.property-card .body .where {
  color: var(--tm-muted);
  font-size: 14px;
  margin-bottom: 14px;
}
.property-card .body .meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--tm-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}
.property-card .body .meta .price { font-weight: 700; color: var(--tm-black); }
.property-card .body .meta .price small { font-weight: 500; color: var(--tm-muted); }

/* Feature card (standard / values) */
.feature-card {
  background: #fff;
  border: 1px solid var(--tm-line);
  border-radius: var(--radius-md);
  padding: 28px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 0;
  width: 3px;
  height: 26px;
  background: var(--tm-blue);
  border-radius: 0 3px 3px 0;
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--tm-blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--tm-blue-dark);
}
.feature-card .icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-bottom: 8px; font-size: 19px; }
.feature-card p { margin: 0; color: var(--tm-muted); font-size: 15px; }

/* ---------- Split / Team Moore connection ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.split .visual {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(30,155,255,0.22), transparent 55%),
    url("https://images.unsplash.com/photo-1556909114-f6e7ad7d3136?auto=format&fit=crop&w=1200&q=80")
      center/cover no-repeat;
  box-shadow: var(--shadow-md);
}
.split .visual.alt {
  background:
    linear-gradient(135deg, rgba(30,155,255,0.18), transparent 60%),
    url("https://images.unsplash.com/photo-1493809842364-78817add7ffb?auto=format&fit=crop&w=1200&q=80")
      center/cover no-repeat;
}

.split .visual .orbit-watermark {
  position: absolute;
  width: 220px;
  height: 220px;
  bottom: -40px;
  right: -40px;
  opacity: 0.85;
  filter: drop-shadow(0 10px 28px rgba(0,0,0,0.18));
}

.split-checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: grid;
  gap: 12px;
}
.split-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
}
.split-checklist li svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  color: var(--tm-blue);
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--tm-black);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px);
  margin: 0 0 calc(var(--space-section) * 0.5);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.7); max-width: 520px; margin: 0; }
.cta-band .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .cta-band .cta-actions { justify-content: flex-start; } }

.cta-band .motif-orbit-bg {
  right: -240px;
  top: -200px;
  opacity: 0.18;
}

.cta-band .btn-secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.cta-band .btn-secondary:hover {
  background: #fff;
  color: var(--tm-black);
}

/* ---------- Footer ---------- */

.site-footer {
  background: #fff;
  border-top: 1px solid var(--tm-line);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tm-black);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--tm-muted); font-size: 14px; }
.footer-grid a:hover { color: var(--tm-blue); }

.footer-brand .brand-lockup { margin-bottom: 16px; }
.footer-brand p {
  font-size: 14px;
  color: var(--tm-muted);
  max-width: 360px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--tm-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--tm-muted);
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom .dot {
  display: inline-block;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--tm-blue);
  vertical-align: middle;
  margin: 0 8px;
}

/* ---------- Hero responsive ---------- */
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual {
    order: -1;
    aspect-ratio: 4 / 3;
    max-width: 100%;
    justify-self: stretch;
  }
  .motif-orbit-bg { right: -260px; top: auto; bottom: -260px; opacity: 0.25; }
}

/* ---------- Utility ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
