/* Shared reading rhythm, fluid layouts and touch-friendly controls. */
html { -webkit-text-size-adjust: 100%; }
.site-header { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.application-image img { object-position: left center; }
html { scroll-padding-top: 100px; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible { outline: 3px solid #80aaff; outline-offset: 4px; }
.header-inner { gap: 24px; }
.brand, .main-nav, .menu-toggle, .brand img { flex-shrink: 0; }
.main-nav > a { min-height: 44px; display: inline-flex; align-items: center; }
.section, .commercial-section, .sell-section, .contact-section, .tenant-section,
.footer-main, .footer-bottom { width: min(1224px, calc(100% - 56px)); margin-left: auto; margin-right: auto; }
.hero { height: auto; min-height: 660px; display: flex; flex-direction: column; align-items: stretch; }
.hero-content { padding: 80px 0 48px; margin: auto; }
.hero-trust { position: relative; left: auto; bottom: auto; transform: none; margin: 0 auto 26px; flex-shrink: 0; }
.hero-trust > div { padding: 12px 18px; min-width: 0; }
.hero-trust small { font-size: .875rem; color: #e0e7f0; }
.hero-overlay { background: linear-gradient(90deg,rgba(3,13,27,.86),rgba(4,16,34,.28)),linear-gradient(0deg,rgba(3,13,27,.8),transparent 65%); }
.commercial-card { grid-template-columns: 1fr; min-width: 0; }
.commercial-card > img { height: 260px; min-height: 0; }
.commercial-card h3 { overflow-wrap: anywhere; }
.commercial-contact { grid-template-columns: minmax(0,1fr) auto auto; gap: 16px; }
.commercial-contact a { padding: 10px 16px; }
.home-grid, .help-section, .contact-section { grid-template-columns: repeat(2,minmax(0,1fr)); }
.home-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.home-card-body > .listing-link { font-size: 1rem; letter-spacing: 0; }
.listing-source, .commercial-card div > span, .commercial-contact small, .sell-image small { font-size: .75rem; }
.application-copy li small, .about-stats small, .contact-lines small { font-size: .875rem; }
.contact-people article { grid-template-columns: 48px minmax(0,1fr); padding: 18px; gap: 12px; }
.person-initials { width: 48px; height: 48px; }
.contact-lines strong, .contact-people h3 { overflow-wrap: anywhere; }
.contact-people article a { display: inline-flex; min-height: 44px; align-items: center; }
.footer-main { grid-template-columns: minmax(0,1.8fr) repeat(3,minmax(0,1fr)); gap: 28px; }
.footer-brand { white-space: normal; }
.footer-brand .brand-name { line-height: 1.3; }
.footer-main > div > a, .footer-main > div > button { min-height: 44px; display: flex; align-items: center; margin: 0; }
dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
@media (max-width: 1100px) {
  .commercial-section { padding: 40px; }
  .contact-intro, .contact-people { padding: 32px; }
  .commercial-contact { grid-template-columns: 1fr 1fr; }
  .commercial-contact > div { grid-column: 1/-1; }
  .section-heading { gap: 32px; }
  .sell-copy { padding: 44px 32px; }
  .help-card { padding: 32px; }
}
@media (max-width: 1020px) {
  .menu-toggle { width: 76px; height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; cursor: pointer; }
  .menu-toggle .menu-symbol { height: auto; background: none; font-size: 26px; line-height: 1; }
  .menu-toggle b { font-size: 14px; line-height: 1.4; }
  .main-nav { position: fixed; z-index: 60; top: 84px; bottom: 0; width: 100%; height: calc(100dvh - 84px); overflow-y: auto; background: #fff; padding: 24px max(24px,env(safe-area-inset-right)) max(24px,env(safe-area-inset-bottom)); }
  .main-nav.open { justify-content: flex-start; }
  .main-nav > a { min-height: 68px; font-size: 21px; }
  .main-nav .login-button { margin-top: 20px; min-height: 52px; flex-shrink: 0; }
  .main-nav > a { flex-shrink: 0; }
  .footer-main { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .footer-brand { grid-column: 1/-1; }
  .footer-main > div:last-child { grid-column: auto; }
}
@media (max-width: 780px), (max-device-width: 780px) {
  html { scroll-padding-top: 88px; }
  body { font-size: 1.125rem; }
  .main-nav { display: none; align-items: stretch; }
  .main-nav.open { display: flex; flex-direction: column; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 19px; }
  .hero-actions { display: grid; }
  .trust-strip { display: grid; grid-template-columns: minmax(0,1fr); }
  .application-section { display: block; }
  .tenant-section { align-items: stretch; flex-direction: column; gap: 24px; }
  .homes-cta { align-items: stretch; flex-direction: column; }
  .header-inner { gap: 12px; }
  .header-inner .brand { flex: 1; min-width: 0; white-space: normal; }
  .header-inner { height: 88px; padding: 0 16px; }
  .header-inner .brand img { width: 52px; height: 52px; }
  .brand .brand-name { font-size: clamp(1rem,4.1vw,1.25rem); line-height: 1.25; letter-spacing: .01em; }
  .brand .brand-divider { flex-shrink: 0; }
  .main-nav { top: 88px; height: calc(100dvh - 88px); }
  .hero { min-height: 0; height: auto; }
  .hero-image { object-position: 45% center; }
  .hero-content { padding: 52px 0 34px; margin: 0 auto; width: calc(100% - 40px); }
  .hero h1 { font-size: clamp(2.8rem,12vw,4.25rem); line-height: 1.03; }
  .hero-copy { font-size: 1.125rem; line-height: 1.55; }
  .hero-actions { grid-template-columns: 1fr; }
  .button { min-height: 56px; padding: 12px 18px; font-size: 1.0625rem; text-align: center; }
  .hero-trust { width: calc(100% - 40px); margin: 0 auto 24px; gap: 4px; }
  .hero-trust > div, .hero-trust > div:first-child, .hero-trust > div:last-child { padding: 8px 0; min-height: 64px; border: 0; }
  .hero-trust strong { font-size: 1rem; }
  .hero-trust small { font-size: .9375rem; }
  .section, .commercial-section, .sell-section, .contact-section, .tenant-section,
  .footer-main, .footer-bottom { width: calc(100% - 40px); }
  .section { padding-left: 0; padding-right: 0; }
  .home-grid, .help-section, .contact-section, .commercial-grid { grid-template-columns: minmax(0,1fr); }
  .section-heading h2, .application-copy h2, .help-card h2, .sell-copy h2, .contact-intro h2 { font-size: clamp(1.9rem,8.5vw,2.5rem); line-height: 1.13; }
  .commercial-section { padding: 32px 20px; }
  .commercial-card > img { height: 220px; }
  .commercial-card > div { padding: 22px; }
  .commercial-contact { grid-template-columns: minmax(0,1fr); }
  .commercial-contact a { justify-content: center; overflow-wrap: anywhere; }
  .home-card > img { height: auto; aspect-ratio: 4/3; }
  .home-card-body { padding: 22px; }
  .listing-meta { font-size: 1rem; }
  .application-image { min-height: 0; height: auto; aspect-ratio: 1405/1119; }
  .application-image img { object-position: left center; object-fit: contain; }
  .application-image > span { left: 20px; right: 20px; bottom: 20px; width: fit-content; font-size: .75rem; }
  .application-copy { padding: 40px 20px 48px; }
  .application-copy li small, .sell-points small { font-size: .9375rem; }
  .help-card { padding: 28px 24px; min-height: 0; }
  .about-card > p { font-size: 1.0625rem; }
  .contact-intro, .contact-people { padding: 28px 20px; }
  .contact-people article { grid-template-columns: minmax(0,1fr); }
  .sell-copy { padding: 36px 24px; }
  .sell-image { min-height: 0; height: 360px; }
  .sell-image > div { left: 20px; right: 20px; bottom: 20px; }
  .footer-main { padding: 44px 0; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 20px; }
  .footer-bottom { padding: 20px 0; font-size: .875rem; }
  .section-heading > p, .application-copy > p:not(.eyebrow), .about-card > p, .sell-copy > p:not(.eyebrow), .help-main > p:not(.eyebrow), .contact-intro > p:not(.eyebrow) { font-size: 1.125rem; }
  .application-copy li small, .sell-points small, .hero-trust small, .about-stats small { font-size: 1rem; }
  .listing-source, .commercial-card div > span { font-size: .875rem; }
  .home-card h3 { font-size: 1.625rem; }
  .footer-brand .brand-name { font-size: 1.125rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home-card { transition: none; }
  .home-card:hover { transform: none; }
}

/* Mobile-first finishing pass: clear branding, readable type and a calm menu. */
@media (max-width: 780px), (max-device-width: 780px) {
  html { scroll-padding-top: 96px; }
  body { font-size: 1.125rem; line-height: 1.62; overflow-x: hidden; }
  body.menu-open { overflow: hidden; }

  .site-header { box-shadow: 0 5px 22px rgba(15, 28, 45, .08); }
  .header-inner {
    height: 96px;
    padding: 0 max(16px, env(safe-area-inset-left));
    gap: 12px;
  }
  .header-inner .brand { gap: 11px; min-width: 0; }
  .header-inner .brand img { width: 62px; height: 62px; flex-basis: 62px; }
  .header-inner .brand-divider { width: 2px; height: 43px; background: #cdd4dc; }
  .header-inner .brand-name {
    max-width: 158px;
    font-size: 1.02rem;
    line-height: 1.15;
    letter-spacing: .055em;
  }
  .menu-toggle {
    width: 62px;
    height: 60px;
    flex: 0 0 62px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 0;
    border: 1px solid #d6dde5;
    border-radius: 12px;
    background: #f5f7fa;
    color: #111820;
  }
  .menu-toggle .menu-symbol { font-size: 1.7rem; line-height: .9; }
  .menu-toggle b { font-size: .78rem; line-height: 1; letter-spacing: .01em; }
  .menu-toggle[aria-expanded="true"] { background: #111820; color: #fff; border-color: #111820; }

  .main-nav {
    top: 96px;
    height: calc(100dvh - 96px);
    padding: 20px max(18px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
    background: #f4f7fa;
    border-top: 1px solid #e0e5eb;
  }
  .main-nav.open { gap: 9px; }
  .main-nav > a {
    min-height: 62px;
    padding: 0 19px;
    border: 1px solid #dce2e9;
    border-radius: 12px;
    background: #fff;
    color: #111820;
    font-size: 1.125rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(18, 35, 55, .035);
  }
  .main-nav > a.sell-nav {
    min-height: 62px;
    margin: 0;
    padding: 0 19px;
    justify-content: flex-start;
    border: 1px solid #dce2e9;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(18, 35, 55, .035);
  }
  .main-nav > a::after { content: "→"; margin-left: auto; color: #155eef; font-size: 1.25rem; }
  .main-nav .login-button {
    min-height: 60px;
    margin-top: 7px;
    padding: 0 19px;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    background: #155eef;
    color: #fff;
    font-size: 1.125rem;
    text-align: center;
  }

  .hero-content { width: calc(100% - 36px); padding: 44px 0 30px; }
  .hero h1 { font-size: clamp(3rem, 14vw, 4rem); line-height: 1; }
  .hero-copy { font-size: 1.18rem; line-height: 1.5; }
  .hero-actions { gap: 11px; }
  .button { min-height: 58px; font-size: 1.08rem; }
  .hero-trust { width: calc(100% - 36px); }
  .hero-trust > div { gap: 13px; }
  .hero-trust > div > span { width: 42px; height: 42px; font-size: 1.15rem; }
  .hero-trust strong { font-size: 1.06rem; }
  .hero-trust small { font-size: 1rem; line-height: 1.4; }

  .section, .commercial-section, .sell-section, .contact-section, .tenant-section,
  .footer-main, .footer-bottom { width: calc(100% - 36px); }
  .section { padding-top: 66px; padding-bottom: 66px; }
  .section-heading h2, .application-copy h2, .help-card h2, .sell-copy h2, .contact-intro h2 {
    font-size: clamp(2rem, 9vw, 2.55rem);
  }
  .section-heading > p, .application-copy > p:not(.eyebrow), .about-card > p,
  .sell-copy > p:not(.eyebrow), .help-main > p:not(.eyebrow), .contact-intro > p:not(.eyebrow) {
    font-size: 1.125rem;
    line-height: 1.62;
  }
  .eyebrow { font-size: .8rem; line-height: 1.35; }
  .home-card-body, .commercial-card > div { padding: 23px 21px; }
  .home-card h3, .commercial-card h3 { font-size: 1.6rem; line-height: 1.2; }
  .listing-title, .commercial-card p { font-size: 1.08rem; }
  .listing-meta { gap: 8px 12px; font-size: 1.02rem; }
  .homes-cta { padding: 23px 20px; }
  .application-copy, .sell-copy, .help-card, .contact-intro, .contact-people { padding-left: 21px; padding-right: 21px; }
  .application-copy li { align-items: flex-start; }
  .application-copy li > span { width: 42px; height: 42px; }
  .application-copy li strong, .sell-points strong { font-size: 1.08rem; }
  .application-copy li small, .sell-points small, .about-stats small { font-size: 1rem; line-height: 1.45; }
  .contact-lines strong { font-size: 1.08rem; line-height: 1.35; }
  .contact-people article { padding: 20px; }
  .contact-people article a { font-size: 1.08rem; }

  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand, .footer-main > div:last-child { grid-column: auto; }
  .footer-brand img { width: 56px; height: 56px; }
  .footer-brand .brand-name { max-width: 210px; font-size: 1rem; }
  .footer-main h3 { font-size: 1rem; }
  .footer-main > div > a, .footer-main > div > button, .footer-main > div > p { font-size: 1.05rem; }
}

@media (max-width: 390px), (max-device-width: 390px) {
  .header-inner { height: 90px; padding-left: 13px; padding-right: 13px; }
  .header-inner .brand img { width: 56px; height: 56px; flex-basis: 56px; }
  .header-inner .brand-divider { height: 38px; }
  .header-inner .brand-name { max-width: 132px; font-size: .9rem; }
  .menu-toggle { width: 56px; height: 56px; flex-basis: 56px; }
  .main-nav { top: 90px; height: calc(100dvh - 90px); }
  .hero h1 { font-size: 3rem; }
}
