/* Homepage only (loaded from src/pages/index.astro). 360 Property Management style rebuild,
   30 Sep 2026: full bleed hero, large light headings, rounded cards, yellow stat tiles, pill
   buttons. Kept out of nexus.css so the rest of the site is untouched and this can be reverted by
   deleting one file and the components in src/components/home/. */

:root {
  --nx-radius: 16px;
  --nx-stone: #f5f5f3;
}

/* Shared type: 360 runs Helvetica Neue Light at display sizes. Ours is Lato 300 (Mark confirmed
   Lato, 22 Sep). nexus.css forces Lato on h1-h3 with !important; only weight and size change here. */
.nx-home-h1, .nx-home-h2, .nx-tile-num, .nx-tabpanel-h {
  font-weight: 300 !important;
  letter-spacing: -0.02em;
}
.nx-home-h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.08; margin: 0; }
.nx-home-lead { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; max-width: 62ch; margin: 0; opacity: .85; }
.nx-home-intro-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; max-width: 980px; margin: 0 auto 56px; }
.nx-home-intro-head .label { color: var(--dark); opacity: .6; }
.nx-centre-cta { display: flex; justify-content: center; margin-top: 40px; }
.nx-centre-cta .cta-main, .nx-switch .cta-main, .nx-tabpanel-copy .cta-main { width: fit-content; }

/* ---------- Hero ---------- */
.section.hero-home-c.nx-home-hero {
  position: relative;
  overflow: hidden;
  min-height: min(100svh, 980px);
  display: flex;
  align-items: flex-end;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 72px;
  background-color: #1e1e1e;
}
.nx-home-hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; transform: scale(1.08); transform-origin: center center; z-index: 0; will-change: transform;
}
.nx-home-hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(20,20,20,.72) 0%, rgba(20,20,20,.35) 34%, rgba(20,20,20,.55) 62%, rgba(20,20,20,.88) 100%),
    linear-gradient(90deg, rgba(20,20,20,.55) 0%, rgba(20,20,20,0) 70%);
}
.nx-home-hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.nx-home-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; font-size: 15px; line-height: 1.3;
}
.nx-home-chip::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--accent); flex: none; }
.nx-home-h1 {
  color: #fff; margin: 0; max-width: 1180px;
  font-size: clamp(44px, 6.6vw, 108px); line-height: 1;
}
.nx-home-hero-copy p { color: rgba(255,255,255,.88); font-size: clamp(17px, 1.45vw, 22px); line-height: 1.55; max-width: 58ch; margin: 0; }
.nx-home-hero .cta-main { font-size: 17px; padding: 14px 28px; }
.nx-home-hero-team { display: inline-flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; margin-top: 12px; }
.nx-home-faces { display: inline-flex; }
.nx-home-faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #1e1e1e; box-shadow: 0 0 0 1.5px var(--accent); margin-left: -12px; }
.nx-home-faces img:first-child { margin-left: 0; }
.nx-home-team-text { font-size: 15px; color: rgba(255,255,255,.8); }
.nx-home-team-text strong { color: #fff; font-weight: 700; }
.nx-home-hero-team:hover .nx-home-team-text strong { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.nx-home-scroll { position: absolute; z-index: 2; right: 40px; bottom: 40px; width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.55); border-radius: 14px; }
.nx-home-scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: nx-scroll-dot 1.8s ease-in-out infinite; }
@keyframes nx-scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Intro + bento ---------- */
.section.nx-home-intro { padding-top: 120px; padding-bottom: 120px; }
.nx-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.nx-tile, .nx-bento-photo { border-radius: var(--nx-radius); overflow: hidden; aspect-ratio: 6 / 5; }
.nx-tile {
  background: var(--accent); color: var(--dark);
  padding: clamp(24px, 2.6vw, 40px); display: flex; flex-direction: column; gap: 8px;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.nx-tile:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.nx-tile-num { font-size: clamp(64px, 7.5vw, 120px); line-height: 1; }
.nx-tile-label { font-size: clamp(18px, 1.5vw, 24px); line-height: 1.25; max-width: 14ch; }
.nx-bento-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.nx-bento-photo:hover img { transform: scale(1.05); }
/* checkerboard: tile, photo, tile / photo, tile, photo */

/* ---------- Tabs ---------- */
.section.nx-home-tabs-section { background: var(--nx-stone); padding-top: 120px; padding-bottom: 120px; }
.nx-tablist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.nx-tab {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px 22px; border-radius: 12px; border: 0; cursor: pointer;
  background: #fff; color: var(--dark); font: inherit; font-size: 17px; font-weight: 700;
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.nx-tab:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.06); }
.nx-tab[aria-selected="true"] { background: var(--accent); }
.nx-tab:focus-visible { outline: 2px solid var(--dark); outline-offset: 3px; }
.nx-tab-num { font-size: 13px; font-weight: 700; letter-spacing: .08em; opacity: .55; }
.nx-tabpanel {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center;
  background: var(--dark); color: #fff; border-radius: var(--nx-radius); padding: clamp(28px, 4vw, 56px);
}
.nx-tabpanel + .nx-tabpanel { margin-top: 20px; } /* no-JS: all panels stacked */
.nx-tabs.is-js .nx-tabpanel + .nx-tabpanel { margin-top: 0; }
.nx-tabs.is-js .nx-tabpanel[data-active="false"] { display: none; }
.nx-tabs.is-js .nx-tabpanel[data-active="true"] { animation: nx-panel-in .5s cubic-bezier(.2,.7,.2,1); }
@keyframes nx-panel-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.nx-tabpanel-copy { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.nx-tabpanel-h { color: #fff; font-size: clamp(30px, 3vw, 46px); line-height: 1.1; margin: 0; }
.nx-tabpanel-copy p { color: rgba(255,255,255,.85); font-size: 18px; line-height: 1.6; margin: 0; max-width: 52ch; }
.nx-tabpanel-media { border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; }
.nx-tabpanel-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Switching banner ---------- */
.section.nx-home-switch-section { padding-top: 120px; padding-bottom: 40px; }
.nx-switch { position: relative; overflow: hidden; border-radius: var(--nx-radius); min-height: 460px; display: flex; align-items: center; background: #1e1e1e; }
.nx-switch-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.nx-switch:hover .nx-switch-bg { transform: scale(1.04); }
.nx-switch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,20,20,.85) 0%, rgba(20,20,20,.35) 100%); }
.nx-switch-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding: clamp(32px, 5vw, 80px); max-width: 780px; }
.nx-switch-copy .label { color: var(--accent); }
.nx-switch-copy .nx-home-h2, .nx-switch-copy p { color: #fff; }
.nx-switch-copy p { font-size: 18px; line-height: 1.6; opacity: .88; margin: 0; }

/* rentals band: rounded photos to match */
.nx-home-hero ~ .section .property-image-wrap { border-radius: 12px; overflow: hidden; }

/* ---------- Team ---------- */
.section.nx-home-team-section { padding-top: 96px; padding-bottom: 96px; background: var(--nx-stone); }
.nx-people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1040px; margin: 0 auto; }
.nx-home-team-section .nx-home-intro-head { margin-bottom: 40px; }
.nx-person { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; color: var(--dark); text-decoration: none; }
/* No per-person animation, entrance or hover (Jason, 30 Sep: they each moved differently). */
.nx-person-ring { position: relative; width: min(100%, 200px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 3px var(--accent); margin-bottom: 14px; }
.nx-person-ring img { position: absolute; left: var(--l, 0); top: var(--t, 0); width: var(--w, 100%); max-width: none; height: auto; min-height: 100%; object-fit: cover; display: block; }
.nx-person:hover .nx-person-name { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.nx-person-name { font-size: 20px; font-weight: 700; }
.nx-person-role { font-size: 15px; opacity: .7; }

/* ---------- Offices (07-section fragment, class added in index.astro) ---------- */
.section.nx-home-offices { padding-top: 120px; padding-bottom: 0; }
.nx-home-offices .section-divider { display: none; }
.nx-home-offices .headline-team { margin-bottom: 56px; }
.nx-home-offices .heading-team { align-items: center; text-align: center; margin: 0 auto; }
.nx-home-offices .heading-team h2 { font-size: clamp(34px, 4.2vw, 60px) !important; font-weight: 300 !important; letter-spacing: -0.02em; line-height: 1.08; }
.nx-home-offices .member-card { border-radius: var(--nx-radius); overflow: hidden; }
.nx-home-offices .member-info-tile { border-radius: 10px; }

/* ---------- Contact ---------- */
.section.nx-home-contact-section { padding-top: 120px; padding-bottom: 40px; }
.nx-contact { display: grid; grid-template-columns: .8fr 1.5fr; gap: clamp(32px, 5vw, 80px); align-items: center; background: var(--nx-stone); border-radius: var(--nx-radius); padding: clamp(28px, 5vw, 72px); }
.nx-contact-head { display: flex; flex-direction: column; gap: 20px; }
.nx-contact-head .label { color: var(--dark); opacity: .6; }
.nx-contact-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.nx-contact-tile { display: flex; gap: 16px; align-items: flex-start; padding: 22px; background: #fff; border-radius: 12px; color: var(--dark); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.nx-contact-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.07); }
.nx-contact-icon { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; color: var(--dark); }
.nx-contact-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.nx-contact-label { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.nx-contact-value { font-size: 17px; line-height: 1.35; }
@media (max-width: 380px) { .nx-contact-value { overflow-wrap: anywhere; } }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .section.hero-home-c.nx-home-hero { min-height: 88svh; padding-top: calc(var(--nav-h) + 32px); padding-bottom: 56px; }
  .nx-home-scroll { display: none; }
  .nx-bento { grid-template-columns: 1fr 1fr; }
  .nx-tablist { grid-template-columns: 1fr; }
  .nx-tabpanel { grid-template-columns: 1fr; }
  .nx-tabpanel-media { order: -1; }
  .nx-people { grid-template-columns: repeat(2, 1fr); }
  .nx-contact { grid-template-columns: 1fr; }
  .section.nx-home-intro, .section.nx-home-tabs-section, .section.nx-home-team-section { padding-top: 80px; padding-bottom: 80px; }
  .section.nx-home-switch-section, .section.nx-home-contact-section, .section.nx-home-offices { padding-top: 80px; }
}
@media (max-width: 600px) {
  .nx-home-chip { font-size: 13px; }
  .nx-bento { gap: 12px; }
  .nx-tile { aspect-ratio: auto; min-height: 180px; }
  .nx-contact-tiles { grid-template-columns: 1fr; }
  .nx-home-faces img { width: 36px; height: 36px; }
  .nx-home-hero .cta-main { font-size: 15px; padding: 12px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .nx-home-scroll span { animation: none; }
  .nx-tile, .nx-bento-photo img, .nx-person-ring, .nx-person-ring img, .nx-switch-bg { transition: none; }
}
