/* ===================================================================
   Tri State Realty Advisors — shared stylesheet
   Design system: navy + sea-blue, Playfair Display headings, Inter body
   =================================================================== */

:root {
  --navy:       #1F3A5F;
  --navy-dark:  #14283F;
  --sea:        #7DAFC4;
  --sea-light:  #B8D4DE;
  --bg:         #F8F9FA;
  --white:      #FFFFFF;
  --slate:      #3F4A55;
  --slate-lt:   #6B7785;
  --border:     #D6DCE0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--slate);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  line-height: 1.15;
  font-weight: 600;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--sea); }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 6px 0;
  z-index: 500;
}
.skip-link:focus { left: 0; color: #fff; }

/* ── HEADER ─────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--navy);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { display: block; }

.logo-text { line-height: 1; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  display: block;
}
.logo-sub {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate-lt);
  display: block;
  margin-top: 3px;
}

nav { display: flex; align-items: center; gap: 32px; }

nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate);
  position: relative;
  padding: 4px 0;
  transition: color 0.15s;
}
nav a:hover, nav a.active { color: var(--navy); }

nav a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0; right: 0;
  height: 2px;
  background: var(--sea);
  border-radius: 1px;
}

/* Tenants dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: none; }
.nav-dropdown > a .caret {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.2s;
}
.nav-dropdown:hover > a .caret,
.nav-dropdown:focus-within > a .caret { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  min-width: 200px;
  overflow: hidden;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  color: var(--slate);
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background: var(--bg); color: var(--navy); }

.header-right { display: flex; align-items: center; gap: 20px; flex-shrink: 0; }

.header-phone {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--navy);
}
.nav-toggle svg { display: block; }

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: 5px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.18s;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.btn-primary   { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); color: #fff; }
.btn-secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--navy); }
.btn-secondary:hover { background: var(--navy); color: #fff; }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.8); }
.btn-outline-white:hover { background: #fff; color: var(--navy); }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: var(--sea-light); color: var(--navy); }
.btn-lg { padding: 14px 32px; font-size: 15px; }

/* ── HERO (home) ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(20,40,63,0.88) 0%, rgba(31,58,95,0.60) 100%),
    url('assets/philly-skyline.jpg') center / cover no-repeat;
  color: #fff;
}
.hero-inner { max-width: 1280px; margin: 0 auto; padding: 100px 40px; width: 100%; }
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sea-light);
  margin-bottom: 24px;
}
.hero h1 { font-size: 58px; color: #fff; max-width: 660px; margin-bottom: 24px; }
.hero p { font-size: 18px; color: rgba(255,255,255,0.88); max-width: 560px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ── PAGE BANNER (sub-pages) ────────────────────── */
.page-banner {
  position: relative;
  background:
    linear-gradient(135deg, rgba(20,40,63,0.92) 0%, rgba(31,58,95,0.78) 100%),
    url('assets/philly-skyline.jpg') center / cover no-repeat;
  color: #fff;
  padding: 88px 40px 72px;
  text-align: center;
}
.page-banner .eyebrow { color: var(--sea-light); }
.page-banner h1 { color: #fff; font-size: 46px; margin-bottom: 14px; }
.page-banner p { color: rgba(255,255,255,0.85); font-size: 17px; max-width: 620px; margin: 0 auto; }

/* ── SHARED SECTION ─────────────────────────────── */
.section { padding: 96px 40px; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-narrow { max-width: 900px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 64px; }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--sea);
  margin-bottom: 14px;
}
.section-header h2 { font-size: 42px; margin-bottom: 16px; }
.section-header p { font-size: 17px; color: var(--slate-lt); max-width: 580px; margin: 0 auto; }

/* ── WHY US / FEATURES ──────────────────────────── */
.bg-white { background: var(--white); }
.bg-bg    { background: var(--bg); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.feature {
  text-align: center;
  padding: 36px 28px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: box-shadow 0.2s;
}
.feature:hover { box-shadow: 0 6px 20px rgba(31,58,95,0.08); }
.feature-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 24px;
  background: var(--sea-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
}
.feature h3 { font-size: 22px; margin-bottom: 12px; }
.feature p  { font-size: 15px; color: var(--slate-lt); line-height: 1.7; }

/* feature variant on white sections */
.features.on-white .feature { background: var(--white); }

/* ── LISTINGS / APPFOLIO EMBED ──────────────────── */
.listings-cta { text-align: center; margin-top: 8px; }

.appfolio-embed {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  min-height: 500px;
}
.embed-note {
  text-align: center;
  font-size: 14px;
  color: var(--slate-lt);
  margin-top: 20px;
}
.embed-fallback {
  text-align: center;
  padding: 48px 24px;
  color: var(--slate-lt);
}

/* ── ABOUT ──────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-img {
  aspect-ratio: 4/5;
  border-radius: 8px;
  background: url('assets/philly-skyline.jpg') center / cover;
}
.about-content .eyebrow { text-align: left; }
.about-content h2 { font-size: 40px; margin-bottom: 24px; }
.about-content p { font-size: 16px; margin-bottom: 16px; color: var(--slate); }
.about-cta { margin-top: 32px; }

/* stat row */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.stat { text-align: center; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 14px; color: var(--slate-lt); margin-top: 4px; }

/* ── PROSE (legal / get-started) ────────────────── */
.prose h2 { font-size: 28px; margin: 40px 0 14px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose p, .prose li { font-size: 16px; color: var(--slate); margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; }
.prose .updated { font-size: 14px; color: var(--slate-lt); margin-bottom: 32px; }

/* ── TENANT RESOURCE CARDS ──────────────────────── */
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
}
.resource-card .feature-icon { margin: 0 0 22px; }
.resource-card h3 { font-size: 21px; margin-bottom: 12px; }
.resource-card p { font-size: 15px; color: var(--slate-lt); line-height: 1.7; margin-bottom: 22px; flex-grow: 1; }

/* ── CONTACT ────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; }

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 7px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--slate);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(125,175,196,0.25);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.contact-info { background: var(--white); border: 1px solid var(--border); border-radius: 8px; padding: 36px 32px; }
.contact-info h3 { font-size: 22px; margin-bottom: 24px; }
.contact-item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-item .ci-icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--sea-light);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
}
.contact-item .ci-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate-lt); margin-bottom: 3px; }
.contact-item .ci-value { font-size: 15px; color: var(--slate); }
.contact-item a.ci-value { color: var(--navy); }

.map-wrap { margin-top: 24px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.map-wrap iframe { display: block; width: 100%; height: 240px; border: 0; }

/* ── CTA BAND ───────────────────────────────────── */
.cta-band { background: var(--navy); padding: 80px 40px; text-align: center; }
.cta-band h2 { font-size: 40px; color: #fff; margin-bottom: 16px; }
.cta-band p  { font-size: 17px; color: rgba(255,255,255,0.82); max-width: 520px; margin: 0 auto 36px; }
.cta-band .actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ─────────────────────────────────────── */
.footer { background: var(--navy-dark); padding: 64px 40px 28px; }
/* extra bottom clearance so the fixed chat launcher doesn't overlap the legal links */
.footer-bottom { padding-bottom: 64px; }
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer h4 {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.footer a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.72);
  padding: 5px 0;
  transition: color 0.15s;
}
.footer a:hover { color: #fff; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-brand .logo-name { color: #fff; }
.footer-brand .logo-sub  { color: rgba(255,255,255,0.45); }
.footer-brand > p { font-size: 14px; color: rgba(255,255,255,0.55); max-width: 300px; line-height: 1.7; }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer-bottom nav { gap: 18px; }
.footer-bottom nav a { display: inline; padding: 0; font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-bottom nav a:hover { color: #fff; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .features      { grid-template-columns: repeat(2, 1fr); }
  .resource-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .header-inner  { padding: 14px 20px; }

  /* mobile nav — scoped to the header's primary nav only,
     so the footer's legal <nav> (Privacy / SMS Consent) is not affected */
  .nav-toggle { display: inline-flex; order: 3; }
  #primary-nav {
    position: fixed;
    top: 69px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    z-index: 190;
  }
  #primary-nav.open { transform: translateY(0); }
  #primary-nav a { padding: 14px 24px; font-size: 16px; border-bottom: 1px solid var(--border); }
  #primary-nav a.active::after { content: none; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown > a { display: block; }
  .dropdown-menu {
    display: block;
    position: static;
    transform: none;
    border: none;
    box-shadow: none;
    min-width: 0;
    background: var(--bg);
  }
  .dropdown-menu a { padding-left: 40px; }
  .header-right .header-phone { display: none; }

  .hero h1       { font-size: 36px; }
  .hero p        { font-size: 16px; }
  .hero-inner    { padding: 72px 20px; }
  .page-banner   { padding: 64px 20px 56px; }
  .page-banner h1 { font-size: 32px; }
  .section       { padding: 64px 20px; }
  .section-header { margin-bottom: 44px; }
  .section-header h2 { font-size: 32px; }
  .features      { grid-template-columns: 1fr; }
  .about-grid    { grid-template-columns: 1fr; gap: 40px; }
  .about-content h2 { font-size: 30px; }
  .stats         { grid-template-columns: 1fr; gap: 24px; }
  .form-row      { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .cta-band      { padding: 64px 20px; }
  .cta-band h2   { font-size: 30px; }
}
