/* ============================================================
   Billions in Realty — Public homepage (light theme)
   Clean white editorial style, charcoal accents (theagencyre
   inspired), separate from the dark gold app theme.
   ============================================================ */

:root {
  color-scheme: light;

  --h-bg: #ffffff;
  --h-bg-soft: #f7f5f1;
  --h-ink: #111111;
  --h-accent: #212121;
  --h-accent-ink: #f5f1e8;
  --h-text: #3d3a35;
  --h-muted: #8a857c;
  --h-border: #e6e3dc;
  --h-gold: #d4b56a;

  --h-font-heading: Georgia, 'Times New Roman', serif;
  --h-font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  --h-radius: 4px;
  --h-shadow: 0 4px 24px rgba(17, 17, 17, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--h-bg);
  color: var(--h-text);
  font-family: var(--h-font-body);
  font-size: 16px;
  line-height: 1.65;
}

h1, h2, h3 {
  font-family: var(--h-font-heading);
  color: var(--h-ink);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

a {
  color: var(--h-ink);
}

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

:focus-visible {
  outline: 2px solid var(--h-ink);
  outline-offset: 3px;
}

/* ---------- Top navigation ---------- */

.h-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--h-bg);
  border-bottom: 1px solid var(--h-border);
}

.h-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.8rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.h-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.h-nav__brand img {
  height: 36px;
  width: auto;
}

.h-nav__brand-name {
  font-family: var(--h-font-heading);
  font-size: 1.1rem;
  color: var(--h-ink);
  letter-spacing: 0.03em;
}

.h-nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-left: auto;
}

.h-nav__links a {
  text-decoration: none;
  color: var(--h-text);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.h-nav__links a:hover {
  color: var(--h-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Button text must stay light inside the nav — the link rule above
   is more specific and would otherwise make it dark-on-dark. */
.h-nav__links .h-btn,
.h-nav__links .h-btn:hover {
  color: #ffffff;
}

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

.h-btn {
  display: inline-block;
  font-family: var(--h-font-body);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border-radius: var(--h-radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.h-btn--solid {
  background: var(--h-accent);
  color: var(--h-accent-ink);
}

.h-btn--solid:hover {
  background: var(--h-ink);
}

.h-btn--outline {
  background: transparent;
  color: var(--h-ink);
  border-color: var(--h-ink);
}

.h-btn--outline:hover {
  background: var(--h-ink);
  color: var(--h-accent-ink);
}

.h-btn--outline-light {
  background: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.h-btn--outline-light:hover {
  background: #ffffff;
  color: var(--h-ink);
}

/* ---------- Hero (background video) ---------- */

.h-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--h-ink);
}

.h-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.h-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.35) 0%,
    rgba(17, 17, 17, 0.15) 45%,
    rgba(17, 17, 17, 0.65) 100%
  );
}

.h-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
  color: #ffffff;
}

.h-hero__label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--h-gold);
  margin-bottom: 1rem;
}

.h-hero h1 {
  color: #ffffff;
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  max-width: 18ch;
  margin-bottom: 1rem;
}

.h-hero p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.1rem;
  max-width: 52ch;
  margin: 0 0 2rem;
}

.h-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Section scaffolding ---------- */

.h-section {
  padding: 6rem 1.5rem;
}

.h-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.h-section--soft {
  background: var(--h-bg-soft);
}

.h-section__label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--h-muted);
  margin-bottom: 0.9rem;
}

.h-section__label::before {
  content: '';
  width: 2.25rem;
  height: 1px;
  background: var(--h-gold);
}

.h-section__title {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  margin-bottom: 0.75rem;
}

.h-section__intro {
  color: var(--h-muted);
  max-width: 60ch;
  margin: 0 0 2.5rem;
}

/* ---------- Featured listings ---------- */

.h-listings {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.75rem;
}

.h-listing {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: var(--h-bg);
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.h-listing:hover {
  box-shadow: var(--h-shadow);
  transform: translateY(-4px);
  color: inherit;
}

.h-listing__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.h-listing__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.h-listing:hover .h-listing__media img {
  transform: scale(1.04);
}

.h-listing__badge {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  background: var(--h-accent);
  color: var(--h-accent-ink);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: 2px;
}

.h-listing__body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.h-listing__name {
  font-family: var(--h-font-heading);
  font-size: 1.2rem;
  color: var(--h-ink);
  margin: 0 0 0.2rem;
}

.h-listing__location {
  color: var(--h-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.h-listing__price {
  font-family: var(--h-font-heading);
  font-size: 1.15rem;
  color: var(--h-ink);
}

/* ---------- Projects (alternating video cards) ---------- */

.h-project {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 5rem;
}

.h-project:last-child {
  margin-bottom: 0;
}

.h-project:nth-child(even) .h-project__media {
  order: 2;
}

.h-project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--h-radius);
  overflow: hidden;
  background: linear-gradient(135deg, #1b1b1b 0%, #2e2e2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-project__media-note {
  color: rgba(245, 241, 232, 0.75);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 0.9rem;
}

.h-project__play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid rgba(245, 241, 232, 0.5);
  color: var(--h-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-project__play svg {
  width: 26px;
  height: 26px;
  margin-left: 4px;
}

.h-project__tag {
  display: inline-block;
  border: 1px solid var(--h-border);
  color: var(--h-muted);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1.1rem;
}

.h-project__name {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin-bottom: 0.6rem;
}

.h-project__desc {
  margin-bottom: 1.1rem;
}

.h-project__price {
  font-size: 0.85rem;
  color: var(--h-muted);
  margin-bottom: 1.75rem;
}

.h-project__price strong {
  font-family: var(--h-font-heading);
  font-size: 1.25rem;
  color: var(--h-ink);
}

/* ---------- Sign up ---------- */

.h-signup {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.h-alert {
  grid-column: 1 / -1;
  border-radius: var(--h-radius);
  padding: 0.9rem 1.1rem;
  font-size: 0.95rem;
  border: 1px solid;
  margin-bottom: 1.5rem;
}

.h-alert--success {
  border-color: #7cc89a;
  color: #2e7d54;
  background: rgba(124, 200, 154, 0.08);
}

.h-alert--error {
  border-color: #f08a8a;
  color: #b05252;
  background: rgba(240, 138, 138, 0.08);
}

.h-form {
  background: var(--h-bg);
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius);
  padding: 2.25rem;
  box-shadow: var(--h-shadow);
}

.h-form label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--h-muted);
  margin-bottom: 0.35rem;
}

.h-form input,
.h-form textarea {
  width: 100%;
  border: 1px solid var(--h-border);
  border-radius: var(--h-radius);
  background: #ffffff;
  color: var(--h-ink);
  padding: 0.7rem 0.8rem;
  font-family: var(--h-font-body);
  font-size: 0.95rem;
}

.h-form input:hover,
.h-form textarea:hover {
  border-color: var(--h-muted);
}

.h-form input:focus,
.h-form textarea:focus {
  border-color: var(--h-ink);
  outline: 2px solid var(--h-ink);
  outline-offset: 1px;
}

.h-form__row {
  margin-bottom: 1.1rem;
}

/* ---------- Agent login band ---------- */

.h-agents {
  background: var(--h-ink);
  color: rgba(245, 241, 232, 0.85);
  padding: 5.5rem 1.5rem;
  text-align: center;
}

.h-agents__inner {
  max-width: 720px;
  margin: 0 auto;
}

.h-agents h2 {
  color: #ffffff;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.h-agents p {
  margin: 0 0 2rem;
}

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

.h-footer {
  border-top: 1px solid var(--h-border);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--h-muted);
  font-size: 0.85rem;
}

.h-footer img {
  height: 30px;
  margin: 0 auto 0.75rem;
}

.h-footer p {
  margin: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .h-project {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
  }

  .h-project:nth-child(even) .h-project__media {
    order: 0;
  }

  .h-signup {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 700px) {
  .h-nav__links {
    display: none;
  }

  .h-section {
    padding: 4rem 1.25rem;
  }

  .h-hero__content {
    padding-bottom: 3.5rem;
  }
}
