/* ============================================================
   Homefront Property Management — homefrontmemphis.com
   Blue-chip system: Oxford navy / ivory / metallic gold
   (shared identity with Keystone Commercial Partners)
   ============================================================ */
:root {
  --ink: #14213D;
  --ink-soft: #24344F;
  --paper: #F7F4EE;
  --paper-dim: #EFEAE0;
  --brass: #C9A24E;
  --brass-deep: #A07C2C;
  --gold-grad: linear-gradient(135deg, #E6CE93 0%, #C9A24E 55%, #A07C2C 100%);
  --slate: #55617A;
  --line: rgba(20, 33, 61, 0.12);
  --line-light: rgba(247, 244, 238, 0.18);
  --shadow: 0 12px 40px rgba(20, 33, 61, 0.10);
  --radius: 14px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  overflow-x: hidden;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.45rem; }

.container { width: min(1160px, 92%); margin: 0 auto; }
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--dim { background: var(--paper-dim); }
.section--dark { background: var(--ink); color: var(--paper); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1rem;
}
.lede { font-size: 1.15rem; color: var(--slate); max-width: 62ch; }
.section--dark .lede { color: rgba(247, 244, 238, 0.75); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(20, 33, 61, 0.92);
  backdrop-filter: blur(12px);
  color: var(--paper);
  border-bottom: 1px solid var(--line-light);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; gap: 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand svg { flex: none; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; line-height: 1;
}
.brand-sub {
  display: block; font-family: var(--font-body);
  font-size: 0.58rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--brass); margin-top: 0.3rem;
}
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500;
  color: rgba(247, 244, 238, 0.85); padding: 0.3rem 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav a:hover { color: #fff; }
.nav a.active { color: var(--brass); border-color: var(--brass); }
.nav .btn { border-bottom: none; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-light);
  border-radius: 8px; color: var(--paper); font-size: 1.3rem;
  min-width: 48px; min-height: 44px; padding: 0.25rem 0.65rem; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  padding: 0.85rem 1.9rem; border-radius: 999px;
  border: 1.5px solid var(--brass); transition: all .2s ease;
}
.btn--solid { background: var(--gold-grad); color: var(--ink); border-color: transparent; font-weight: 600; }
.btn--solid:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--brass); }
.btn--ghost:hover { background: var(--brass); color: #fff; }
.btn--light { border-color: rgba(247,244,238,.5); color: var(--paper); background: transparent; }
.btn--light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2.2rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #101A30 0%, #1B2A47 55%, #24344F 100%);
  color: var(--paper);
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 9vw, 7rem);
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(176, 141, 87, 0.16), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 780px; }
.hero h1 em { font-style: italic; color: var(--brass); }
.hero .lede { color: rgba(247, 244, 238, 0.78); margin-top: 1.4rem; font-size: 1.2rem; }
.hero-bridge {
  position: absolute; bottom: -6px; right: -40px; width: min(58%, 720px);
  opacity: 0.5; z-index: 1; pointer-events: none;
}
.hero--page { padding: clamp(3.5rem, 8vw, 5.5rem) 0; }

/* Cinematic photo hero (Memphis skyline + Hernando de Soto bridge) */
.hero--photo { padding: clamp(6rem, 15vw, 11rem) 0 clamp(5rem, 11vw, 8.5rem); }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 42%;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
  transform-origin: 60% 55%;
  animation: heroPan 32s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroPan {
  from { transform: scale(1.03) translate(0, 0); }
  to   { transform: scale(1.16) translate(-2.2%, -2.4%); }
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(16, 26, 48, 0.55) 0%, rgba(16, 26, 48, 0.25) 45%, rgba(16, 26, 48, 0.72) 100%),
    linear-gradient(105deg, rgba(16, 26, 48, 0.82) 0%, rgba(16, 26, 48, 0.45) 55%, rgba(16, 26, 48, 0.15) 100%);
}
.hero--photo .lede { color: rgba(247, 244, 238, 0.9); }
@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; }
}

/* ---------- Stats band ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 2rem; }
.stat { text-align: center; padding: 1rem 0.5rem; }
.stat b {
  display: block; font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; color: var(--brass);
  line-height: 1;
}
.stat span { font-size: 0.9rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(247,244,238,.7); margin-top: .6rem; display:block; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 1.6rem; margin-top: 2.8rem; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.8rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.7rem; }
.card p { color: var(--slate); font-size: 0.98rem; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(176, 141, 87, 0.13); color: var(--brass);
  margin-bottom: 1.2rem; font-size: 1.3rem;
}
.card--dark { background: var(--ink-soft); border-color: var(--line-light); color: var(--paper); }
.card--dark p { color: rgba(247,244,238,.72); }

.checklist { list-style: none; margin-top: 1.4rem; }
.checklist li { padding-left: 1.9rem; position: relative; margin-bottom: 0.8rem; color: var(--slate); }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brass); font-weight: 700;
}
.section--dark .checklist li { color: rgba(247,244,238,.78); }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; margin-top: 2.5rem; }
.split-media {
  border-radius: var(--radius); overflow: hidden; min-height: 340px;
  background: linear-gradient(150deg, var(--ink-soft), #3a3e46);
  display: grid; place-items: center; box-shadow: var(--shadow);
}

/* ---------- FAQ accordion ---------- */
.faq { margin-top: 2.5rem; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  color: var(--ink); padding: 1.3rem 3rem 1.3rem 0.2rem; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
  font-family: var(--font-body); font-size: 1.5rem; color: var(--brass); transition: transform .25s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding: 0 0.2rem 1.5rem; color: var(--slate); max-width: 72ch; }
.faq-a-inner ul { margin: .6rem 0 .6rem 1.3rem; }

/* ---------- Listings embed ---------- */
.listings-frame-wrap {
  margin-top: 2.5rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff;
}
.listings-frame-wrap iframe { width: 100%; height: 1100px; border: 0; display: block; }
.embed-note { font-size: .88rem; color: var(--slate); margin-top: 1rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.8rem; margin-top: 2.8rem; }
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  text-decoration: none; transition: transform .2s ease, box-shadow .2s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 18px 50px rgba(20,33,61,.16); }
.post-card-banner { height: 130px; background: linear-gradient(140deg, var(--ink-soft), #454a53); position: relative; }
.post-card-banner::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(400px 160px at 85% 0%, rgba(176,141,87,.35), transparent 65%);
}
.post-card-banner span {
  position: absolute; left: 1.4rem; bottom: 1rem; z-index: 2;
  font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass); background: rgba(20,33,61,.65); padding: .35rem .8rem; border-radius: 999px;
}
.post-card-body { padding: 1.6rem 1.5rem 1.8rem; display: flex; flex-direction: column; gap: .7rem; flex: 1; }
.post-card-body h3 { font-size: 1.35rem; }
.post-card-body p { color: var(--slate); font-size: .95rem; flex: 1; }
.post-meta { font-size: .8rem; color: var(--slate); letter-spacing: .04em; }
.post-read { color: var(--brass); font-weight: 600; font-size: .9rem; }

/* Article page */
.article { max-width: 740px; margin: 0 auto; }
.article-header { margin-bottom: 2.5rem; }
.article h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: .6rem 0 1rem; }
.article h2 { font-size: 1.7rem; margin: 2.4rem 0 0.9rem; }
.article p { margin-bottom: 1.15rem; color: #33363c; overflow-wrap: break-word; }
.article ul, .article ol { margin: 0 0 1.15rem 1.4rem; color: #33363c; }
.article li { margin-bottom: .45rem; }
.article blockquote {
  border-left: 3px solid var(--brass); padding: .4rem 0 .4rem 1.3rem;
  font-family: var(--font-display); font-size: 1.25rem; color: var(--ink);
  margin: 1.8rem 0;
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lede { margin: 1.2rem auto 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; margin-top: 2rem; max-width: 560px; }
.form label { font-size: .85rem; font-weight: 600; letter-spacing: .04em; display: block; margin-bottom: .35rem; }
.form input, .form textarea, .form select {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px;
  font-family: var(--font-body); font-size: 16px; background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--brass); border-color: transparent; }

/* ---------- Contact ---------- */
.contact-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 2.2rem 2rem;
}
.contact-panel dt { font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brass); margin-top: 1.4rem; }
.contact-panel dt:first-child { margin-top: 0; }
.contact-panel dd { font-size: 1.05rem; margin-top: .25rem; }
.contact-panel a { color: var(--ink); text-decoration-color: var(--brass); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(247,244,238,.75); padding: 3.5rem 0 2rem; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 2.5rem; }
.site-footer h4 { color: var(--paper); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: rgba(247,244,238,.75); text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.footer-bottom {
  border-top: 1px solid var(--line-light); margin-top: 2.8rem; padding-top: 1.4rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .82rem;
  color: rgba(247,244,238,.5);
}
.footer-legal {
  border-top: 1px solid var(--line-light); margin-top: 2.2rem; padding-top: 1.3rem;
  font-size: .8rem; line-height: 1.7; color: rgba(247,244,238,.55); text-align: center;
}
.footer-legal a { color: rgba(247,244,238,.75); }
.footer-legal + .footer-bottom { border-top: none; margin-top: 1rem; padding-top: 0; justify-content: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-light);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav.open { max-height: 80vh; overflow-y: auto; }
  .nav a { padding: 0.9rem 5%; width: 100%; border-bottom: 1px solid var(--line-light); }
  .nav .btn { margin: 1rem 5%; width: auto; }
  .nav-toggle { display: block; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-bridge { opacity: .25; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .listings-frame-wrap iframe { height: 1400px; }
}


/* ---------- Mobile hardening ---------- */
@media (max-width: 900px) {
  .split-media { min-height: 200px; }
  .nav a { min-height: 44px; display: flex; align-items: center; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 3rem 0; }
  .hero { padding: 4rem 0 3.5rem; }
  .hero-bridge { display: none; }
  .split-media { display: none; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; padding: 1rem 1.5rem; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .card { padding: 1.6rem 1.3rem; }
  .contact-panel { padding: 1.8rem 1.4rem; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: .5rem; }
  .footer-legal { font-size: .75rem; }
  .article h1 { font-size: 2rem; }
  .faq-q { font-size: 1.15rem; }
  blockquote { font-size: 1.1rem !important; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 1.1rem; }
  .stats { grid-template-columns: 1fr; }
}

/* ---------- Anchor offset under sticky header ---------- */
[id] { scroll-margin-top: 92px; }

/* ---------- Header fit on narrow desktops (Portal Login clipping) ---------- */
@media (max-width: 1240px) {
  .nav { gap: 1rem; }
  .nav a { font-size: 0.87rem; }
}

/* ---------- Mobile tab slider (swipeable quick nav) ---------- */
.tab-slider { display: none; }
@media (max-width: 900px) {
  [id] { scroll-margin-top: 132px; }
  .tab-slider {
    display: flex; gap: 0.55rem; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding: 0.6rem 4% 0.75rem; scroll-snap-type: x proximity;
  }
  .tab-slider::-webkit-scrollbar { display: none; }
  .tab-slider a {
    flex: none; scroll-snap-align: start; white-space: nowrap;
    padding: 0.48rem 1.05rem; border-radius: 999px;
    border: 1px solid var(--line-light); color: rgba(247, 244, 238, 0.92);
    text-decoration: none; font-size: 0.86rem; font-weight: 500; line-height: 1.2;
  }
  .tab-slider a.tab-blog { border-color: var(--brass); color: var(--brass); font-weight: 600; }
  .tab-slider a.active { background: var(--gold-grad); color: var(--ink); border-color: transparent; font-weight: 600; }
}

/* Calendly loading skeleton */
.calendly-loading{position:relative;background:linear-gradient(100deg,#EFEAE0 40%,#F7F4EE 50%,#EFEAE0 60%);background-size:200% 100%;animation:cal-shimmer 1.4s ease infinite}
.calendly-loading::before{content:"Loading Matt\2019s calendar\2026";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--font-body);font-size:.95rem;letter-spacing:.06em;color:var(--slate)}
@keyframes cal-shimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}
