/* =====================
   RESET & BASE
   ===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--color-dark);
  color: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* =====================
   DESIGN TOKENS
   ===================== */
:root {
  --color-blue:    #1B4FD8;
  --color-dark:    #0A0F1E;
  --color-navy:    #111827;
  --color-gold:    #F5C842;
  --color-white:   #FFFFFF;
  --color-gray:    #9CA3AF;
  --color-light-bg: #F9FAFB;
  --color-light-text: #0A0F1E;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --max-width: 1200px;
  --section-pad: 5rem 1.5rem;
}

/* =====================
   TYPOGRAPHY
   ===================== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.125rem; font-weight: 600; }

p { font-size: 1.0625rem; color: var(--color-gray); line-height: 1.8; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.75rem;
}

/* =====================
   LAYOUT UTILITIES
   ===================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: var(--section-pad);
}

.section--light {
  background: var(--color-light-bg);
  color: var(--color-light-text);
}

.section--light p { color: #4B5563; }

/* =====================
   BUTTONS
   ===================== */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  border: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-dark);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn--blue {
  background: var(--color-blue);
  color: var(--color-white);
}

/* =====================
   NAVIGATION
   ===================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.nav--scrolled {
  background: var(--color-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.nav__brand {
  font-family: var(--font-serif);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.02em;
}

.nav__brand span {
  color: var(--color-blue);
}

.nav__links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--color-white);
}

.nav__cta {
  font-size: 0.875rem;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  transition: all 0.3s ease;
}

.nav__mobile {
  display: none;
}

@media (max-width: 768px) {
  .nav__links,
  .nav__cta {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__mobile {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--color-dark);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
  }

  .nav__mobile.open {
    display: flex;
  }

  .nav__mobile a {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-white);
  }
}

/* =====================
   FOOTER
   ===================== */
.footer {
  background: #060A13;
  padding: 3rem 1.5rem 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer__brand span { color: var(--color-blue); }

.footer__tagline {
  font-size: 0.875rem;
  color: var(--color-gray);
}

.footer__nav {
  list-style: none;
}

.footer__nav li { margin-bottom: 0.5rem; }

.footer__nav a {
  font-size: 0.9rem;
  color: var(--color-gray);
  transition: color 0.2s;
}

.footer__nav a:hover { color: var(--color-white); }

.footer__contact p {
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--color-gray);
}

.footer__contact a { color: var(--color-gray); }
.footer__contact a:hover { color: var(--color-blue); }

.footer__bottom {
  max-width: var(--max-width);
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: rgba(156,163,175,0.6);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* =====================
   HERO
   ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-headshot.jpg');
  background-size: cover;
  background-position: center top;
  filter: brightness(0.35);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-top: 5rem;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

.hero__title {
  color: var(--color-white);
  max-width: 15ch;
  margin-bottom: 1.5rem;
}

.hero__title span {
  color: var(--color-blue);
}

.hero__subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  max-width: 50ch;
  margin-bottom: 2.5rem;
  font-family: var(--font-sans);
}

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

/* Trust Bar */
.trust-bar {
  background: var(--color-navy);
  border-top: 1px solid rgba(27,79,216,0.3);
  border-bottom: 1px solid rgba(27,79,216,0.3);
  padding: 2.5rem 1.5rem;
}

.trust-bar__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-stat__number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--color-blue);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.trust-stat__label {
  font-size: 0.875rem;
  color: var(--color-gray);
  font-weight: 500;
}

@media (max-width: 600px) {
  .trust-bar__inner { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; }
}

/* =====================
   ABOUT PAGE
   ===================== */
.about-hero {
  padding: 10rem 1.5rem 5rem;
  background: var(--color-navy);
  text-align: center;
}

.about-hero h1 { margin-bottom: 1rem; }
.about-hero p  { max-width: 55ch; margin: 0 auto; }

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
}

.about-split__image {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.about-split__image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: top;
  border-radius: 8px;
}

.about-split__image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-blue);
}

.about-split__text h2 { margin-bottom: 1.5rem; }
.about-split__text p  { margin-bottom: 1.25rem; }

.about-cta {
  background: var(--color-navy);
  padding: var(--section-pad);
  text-align: center;
}

.about-cta h2 { margin-bottom: 1rem; }
.about-cta p  { max-width: 50ch; margin: 0 auto 2rem; }

@media (max-width: 768px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-split__image img { height: 400px; }
}

/* =====================
   LISTINGS PAGE
   ===================== */
.listings-hero {
  padding: 10rem 1.5rem 5rem;
  background: var(--color-navy);
  text-align: center;
}

.listings-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.listing-card {
  background: var(--color-navy);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255,255,255,0.06);
}

.listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.listing-card__image {
  height: 220px;
  background: #1a2744;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray);
  font-size: 0.875rem;
}

.listing-card__body {
  padding: 1.5rem;
}

.listing-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(27,79,216,0.2);
  color: var(--color-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}

.listing-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 0.25rem;
}

.listing-card__location {
  font-size: 0.875rem;
  color: var(--color-gray);
  margin-bottom: 1rem;
}

.listing-card__link {
  font-size: 0.875rem;
  color: var(--color-blue);
  font-weight: 600;
}

.listing-card__link:hover { text-decoration: underline; }

.listings-empty {
  text-align: center;
  padding: 5rem 1.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.listings-empty__icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.listings-empty h3 { margin-bottom: 0.75rem; }
.listings-empty p { margin-bottom: 2rem; }

/* =====================
   BUYERS & SELLERS PAGE
   ===================== */
.bs-hero {
  padding: 10rem 1.5rem 5rem;
  background: var(--color-navy);
  text-align: center;
}

.bs-tabs {
  display: flex;
  justify-content: center;
  gap: 0;
  padding: 3rem 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  max-width: var(--max-width);
  margin: 0 auto;
}

.bs-tab {
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-gray);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  margin-bottom: -1px;
}

.bs-tab.active,
.bs-tab:hover {
  color: var(--color-white);
}

.bs-tab.active {
  border-bottom-color: var(--color-blue);
}

.bs-panel {
  display: none;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

.bs-panel.active { display: block; }

.bs-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.bs-step {
  background: var(--color-navy);
  border-radius: 8px;
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.06);
  position: relative;
}

.bs-step__number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 900;
  color: rgba(27,79,216,0.25);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.bs-step h4 { color: var(--color-white); margin-bottom: 0.5rem; }
.bs-step p  { font-size: 0.9rem; }

@media (max-width: 600px) {
  .bs-tab { padding: 0.875rem 1.25rem; font-size: 0.875rem; }
}

/* =====================
   CONTACT PAGE
   ===================== */
.contact-hero {
  position: relative;
  padding: 12rem 1.5rem 6rem;
  text-align: center;
  overflow: hidden;
}

.contact-hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/contact-bg.jpg');
  background-size: cover;
  background-position: center;
  filter: brightness(0.2);
  z-index: 0;
}

.contact-hero__content {
  position: relative;
  z-index: 1;
}

.contact-hero h1 { margin-bottom: 1rem; }
.contact-hero p   { max-width: 50ch; margin: 0 auto; }

.contact-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info h3 { margin-bottom: 1.5rem; }

.contact-info__item {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
}

.contact-info__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 0.25rem;
}

.contact-info__value {
  font-size: 1rem;
  color: var(--color-white);
}

.contact-info__value a { color: var(--color-white); transition: color 0.2s; }
.contact-info__value a:hover { color: var(--color-blue); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-group label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-gray);
  letter-spacing: 0.05em;
}

.form-group input,
.form-group textarea {
  background: var(--color-navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 4px;
  padding: 0.875rem 1rem;
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--color-blue);
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-group--radio label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-gray);
}

.radio-group {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.25rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9375rem;
  color: var(--color-white);
}

.radio-option input[type="radio"] {
  accent-color: var(--color-blue);
  width: 16px;
  height: 16px;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.form-status {
  font-size: 0.9rem;
  display: none;
}

.form-status--success { color: #34D399; }
.form-status--error   { color: #F87171; }

@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .form-row        { grid-template-columns: 1fr; }
}
