/* ============================================================
   Tony Hodge · REALTOR® · @properties — hodge.realtor
   Design system v2 — light-first, per Tony's direction 2026-07-28:
   bright and open (Apple-like), dark reserved for accent bands,
   user-first hero (Find/Sell + search).
   Palette: ink #14171c · warm white #faf7f1 · white #fffdf9
            brass #b99a63 · muted #8b8578
   Type: system stack (SF Pro on Apple devices) — Apple-like, per Tony 2026-07-29
   ============================================================ */

:root {
  --ink: #14171c;
  --ink-soft: #2a2e36;
  --paper: #faf7f1;
  --paper-bright: #fffdf9;
  --cream: #f6f2ea;
  --brass: #b99a63;
  --brass-deep: #9a7d4a;
  --muted: #8b8578;
  --muted-dark: #6f6a5e;
  --hairline: rgba(20, 23, 28, 0.12);
  --hairline-brass: rgba(185, 154, 99, 0.4);
  --serif: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* ---------- labels & headings ---------- */
.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--brass-deep);
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }

p { color: var(--ink-soft); }

.rule {
  width: 64px; height: 1px; background: var(--brass);
  border: 0; margin: 28px 0;
}
.rule.center { margin-left: auto; margin-right: auto; }

/* @properties is always lowercase, even inside uppercased labels */
.ap { text-transform: none; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 22px 0;
}
.site-header.scrolled {
  background: rgba(255, 253, 249, 0.96);
  box-shadow: 0 1px 0 var(--hairline);
  padding: 14px 0;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name {
  font-family: var(--serif); font-weight: 600; font-size: 1.25rem; letter-spacing: 0;
  color: var(--ink);
}
.brand-sub {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted-dark);
}
.site-nav { display: flex; gap: 30px; }
.site-nav a {
  font-size: 12px; font-weight: 400; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink); white-space: nowrap;
  padding-bottom: 4px; border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s;
}
.site-nav a:hover { color: var(--brass-deep); }
.site-nav a.active { border-bottom-color: var(--brass); color: var(--brass-deep); }
.header-utility { display: flex; align-items: center; gap: 22px; }
.header-phone {
  font-size: 13px; letter-spacing: 0.12em; color: var(--ink);
  white-space: nowrap;
}
.header-phone:hover { color: var(--brass-deep); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-size: 12px; font-weight: 400; letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 15px 32px;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  transition: all 0.3s ease;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { background: var(--ink); color: var(--paper-bright); }
.btn.solid { background: var(--ink); color: var(--paper-bright); }
.btn.solid:hover { background: transparent; color: var(--ink); }
.btn.brass { border-color: var(--brass-deep); color: var(--brass-deep); }
.btn.brass:hover { background: var(--brass-deep); color: var(--paper-bright); }
/* on dark bands */
.dark .btn, .site-footer .btn { border-color: var(--cream); color: var(--cream); }
.dark .btn:hover { background: var(--cream); color: var(--ink); }
.dark .btn.solid { background: var(--cream); color: var(--ink); }
.dark .btn.solid:hover { background: transparent; color: var(--cream); }
/* legacy class from v1 markup — same as default now */
.btn.on-light { border-color: var(--ink); color: var(--ink); }
.btn.on-light:hover { background: var(--ink); color: var(--paper-bright); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span {
  display: block; width: 26px; height: 1px; background: var(--ink);
  margin: 7px 0; transition: 0.3s;
}

/* ---------- hero ---------- */
/* VIDEO/PHOTO SLOT: each .hero carries a comment in the HTML noting the
   licensed image or video intended for it. The light gradient treatment
   holds the space until the asset is dropped in. */
.hero {
  min-height: 86vh;
  display: flex; align-items: center;
  position: relative;
  padding: 170px 0 100px;
  background:
    radial-gradient(ellipse at 75% 15%, rgba(185, 154, 99, 0.14), transparent 55%),
    radial-gradient(ellipse at 15% 90%, rgba(185, 154, 99, 0.08), transparent 55%),
    linear-gradient(180deg, #fffdf9 0%, #faf7f1 60%, #f6f2ea 100%);
}
.hero.short { min-height: 46vh; padding: 150px 0 70px; }
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero.centered { text-align: center; }
.hero.centered .hero-content { margin: 0 auto; }
.hero.centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero .label { display: block; margin-bottom: 26px; }
.hero-sub {
  margin-top: 30px; max-width: 640px;
  font-size: 1.06rem; color: var(--ink-soft);
}
.hero-actions { margin-top: 40px; display: flex; gap: 18px; flex-wrap: wrap; }
.hero.centered .hero-actions { justify-content: center; }

/* ---------- home search ---------- */
.home-search {
  margin: 26px auto 0;
  display: flex;
  max-width: 640px;
  background: #ffffff;
  border: 1px solid var(--hairline);
  box-shadow: 0 18px 50px rgba(20, 23, 28, 0.08);
}
.home-search input {
  flex: 1;
  border: 0; outline: none;
  padding: 18px 22px;
  font-family: var(--sans); font-weight: 300; font-size: 1rem;
  color: var(--ink); background: transparent;
}
.home-search input::placeholder { color: var(--muted); }
.home-search button {
  border: 0; cursor: pointer;
  background: var(--ink); color: var(--paper-bright);
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0 30px;
  transition: background 0.3s;
}
.home-search button:hover { background: var(--brass-deep); }
.search-note {
  margin-top: 14px; font-size: 0.8rem; color: var(--muted);
  letter-spacing: 0.04em;
}

.scroll-cue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 52px; background: linear-gradient(var(--brass), transparent);
  z-index: 2;
}

/* ---------- sections ---------- */
.section { padding: 100px 0; }
.section.tight { padding: 78px 0; }
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .label { display: block; margin-bottom: 18px; }

/* light sections alternate to bright white against the warm paper body */
.light { background: var(--paper-bright); }

/* dark accent band — the contrast Tony wants kept, but no longer the default */
.dark { background: var(--ink); }
.dark h1, .dark h2, .dark h3 { color: var(--cream); }
.dark p { color: rgba(246, 242, 234, 0.78); }
.dark .label { color: var(--brass); }

.lede { font-size: 1.15rem; line-height: 1.8; }

/* ---------- why blocks ---------- */
.why-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px;
}
.why-card {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--brass);
  padding: 48px 44px;
  box-shadow: 0 10px 34px rgba(20, 23, 28, 0.05);
}
.why-card h3 { margin-bottom: 16px; }
.why-card .num {
  font-family: var(--serif); font-size: 0.95rem; color: var(--brass-deep);
  display: block; margin-bottom: 20px; letter-spacing: 0.1em;
}
.why-card p { font-size: 0.99rem; }

/* ---------- credibility strip ---------- */
.cred { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--paper); }
.cred-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 56px; }
.cred-col .label { display: block; margin-bottom: 22px; }
.cred-col ul { list-style: none; }
.cred-col li {
  font-family: var(--serif); font-size: 1.05rem; padding: 9px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
}
.cred-col li:last-child { border-bottom: 0; }

/* ---------- about ---------- */
.about-grid {
  display: grid; grid-template-columns: 5fr 7fr; gap: 90px; align-items: start;
}
.portrait-frame { position: sticky; top: 120px; }
.portrait-frame img {
  width: 100%;
  filter: grayscale(12%) contrast(1.02);
  box-shadow: 0 26px 70px rgba(20, 23, 28, 0.22);
}
.portrait-caption {
  margin-top: 20px; font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--muted-dark); text-align: center;
}
.prose p { margin-bottom: 26px; }
.prose .subhead {
  font-family: var(--serif); font-size: 1.5rem; color: var(--ink);
  margin: 44px 0 22px; display: block;
}

/* ---------- page copy layouts ---------- */
.copy-narrow { max-width: 760px; }
.copy-narrow p { margin-bottom: 26px; font-size: 1.07rem; line-height: 1.85; }
.pull-first > p:first-child {
  font-family: var(--serif); font-size: 1.45rem; line-height: 1.55;
  color: var(--ink);
}

/* ---------- areas ---------- */
.area-band { border-top: 1px solid var(--hairline); padding: 56px 0; }
.area-band:first-of-type { border-top: 0; }
.area-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 60px; }
.area-grid h3 { font-size: 1.6rem; }
.area-grid .area-cities {
  margin-top: 14px; font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted-dark);
}

/* ---------- CTA band (dark accent) ---------- */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 700px; margin: 0 auto 18px; }
.cta-band p { max-width: 560px; margin: 0 auto 40px; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

/* ---------- contact ---------- */
.contact-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  max-width: 880px; margin: 0 auto;
}
.contact-card {
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-top: 2px solid var(--brass);
  padding: 64px 40px; text-align: center;
  box-shadow: 0 10px 34px rgba(20, 23, 28, 0.05);
}
.contact-card .label { display: block; margin-bottom: 20px; }
.contact-card a.big {
  font-family: var(--serif); font-size: clamp(1.3rem, 2.6vw, 1.9rem);
  color: var(--ink); transition: color 0.25s;
  overflow-wrap: anywhere;
}
.contact-card a.big:hover { color: var(--brass-deep); }

/* ---------- footer (stays dark — the anchor of contrast) ---------- */
.site-footer {
  padding: 80px 0 44px;
  background: var(--ink);
  color: var(--cream);
  font-size: 0.92rem;
}
.site-footer p { color: rgba(246, 242, 234, 0.72); }
.footer-grid {
  display: grid; grid-template-columns: 5fr 3fr 4fr; gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .brand-name { font-size: 1.5rem; color: var(--cream); }
.footer-brand .brand-sub { color: var(--muted); }
.footer-brand .tagline {
  font-family: var(--serif); font-style: italic; color: var(--muted);
  margin-top: 16px; max-width: 300px;
}
.site-footer .label { display: block; margin-bottom: 20px; font-size: 11px; color: var(--brass); }
.site-footer ul { list-style: none; }
.site-footer li { padding: 5px 0; }
.site-footer li a { color: rgba(246, 242, 234, 0.72); transition: color 0.25s; }
.site-footer li a:hover { color: var(--brass); }

.footer-legal {
  border-top: 1px solid rgba(246, 242, 234, 0.08);
  padding-top: 36px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px;
  color: var(--muted); font-size: 0.8rem;
}
.footer-legal .marks { display: flex; align-items: center; gap: 18px; }
.footer-legal svg { display: block; }
.brokerage-line { flex: 1 1 340px; line-height: 1.6; }
.brokerage-line p { color: var(--muted); font-size: 0.8rem; }

/* ---------- @properties logo (official SVG, reversed for dark footer) ---------- */
.ap-logo { height: 24px; width: auto; display: block; margin-bottom: 4px; }
.ap-logo path { fill: #f6f2ea; }
.ap-logo .st0 { fill: #FF1300; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .site-nav, .header-phone { display: none; }
  .nav-toggle { display: block; }
  .site-nav.open {
    display: flex; position: fixed; inset: 0; background: rgba(255, 253, 249, 0.98);
    flex-direction: column; align-items: center; justify-content: center;
    gap: 34px; z-index: 90;
  }
  .site-nav.open a { font-size: 16px; }
  .why-grid, .contact-cards { grid-template-columns: 1fr; }
  .cred-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .portrait-frame { position: static; max-width: 380px; }
  .area-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .home-search { flex-direction: column; }
  .home-search button { padding: 16px; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 76px 0; }
  .hero { padding: 130px 0 80px; }
}

/* ============================================================
   CINEMATIC LAYER — video/photo heroes, scroll motion. 2026-07-28
   ============================================================ */

/* cinema hero: full-bleed media, dark grade, light type */
.hero.cinema { background: var(--ink); color: var(--cream); overflow: hidden; }
.hero.cinema.short { min-height: 54vh; }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0; transition: opacity 1.8s ease;
}
.hero-media video.on, .hero-media img.on { opacity: 1; }
.hero-media img.kb { animation: kb 24s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1); } to { transform: scale(1.09); } }
.hero.cinema::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(20,23,28,0.62) 0%, rgba(20,23,28,0.38) 45%, rgba(20,23,28,0.70) 100%);
}
/* interior heroes sit on bright stills — grade them deeper for type contrast */
.hero.cinema.short::after {
  background: linear-gradient(180deg,
    rgba(20,23,28,0.66) 0%, rgba(20,23,28,0.48) 50%, rgba(20,23,28,0.72) 100%);
}
.hero.cinema .hero-content { position: relative; z-index: 2; }
.hero.cinema h1 { color: #ffffff; text-shadow: 0 2px 34px rgba(0,0,0,0.35); }
.hero.cinema .label { color: var(--brass); }
.hero.cinema .hero-sub { color: rgba(246,242,234,0.9); }
.hero.cinema .btn { border-color: #ffffff; color: #ffffff; }
.hero.cinema .btn:hover { background: #ffffff; color: var(--ink); }
.hero.cinema .btn.solid { background: #ffffff; border-color: #ffffff; color: var(--ink); }
.hero.cinema .btn.solid:hover { background: transparent; color: #ffffff; }
.hero.cinema .search-note { color: rgba(246,242,234,0.68); }
.hero.cinema .home-search { border-color: transparent; box-shadow: 0 24px 70px rgba(0,0,0,0.4); }

/* header floats light over cinema heroes until scrolled */
.cinema-page .site-header:not(.scrolled) .brand-name,
.cinema-page .site-header:not(.scrolled) .site-nav a,
.cinema-page .site-header:not(.scrolled) .header-phone { color: #ffffff; }
.cinema-page .site-header:not(.scrolled) .brand-sub { color: rgba(246,242,234,0.72); }
.cinema-page .site-header:not(.scrolled) .nav-toggle span { background: #ffffff; }
.cinema-page .site-header:not(.scrolled) .site-nav a:hover,
.cinema-page .site-header:not(.scrolled) .site-nav a.active { color: var(--brass); }

/* full-width photo band */
.photo-band {
  position: relative; min-height: 54vh; overflow: hidden;
  display: flex; align-items: center; text-align: center;
  background: var(--ink); color: var(--cream);
}
.photo-band > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  animation: kb 26s ease-in-out infinite alternate;
}
.photo-band::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(20,23,28,0.52);
}
.photo-band .wrap { position: relative; z-index: 2; }
.photo-band h2 { color: #ffffff; margin: 14px 0 30px; }
.photo-band .label { color: var(--brass); }
.photo-band .btn { border-color: #ffffff; color: #ffffff; }
.photo-band .btn:hover { background: #ffffff; color: var(--ink); }

/* scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.in { opacity: 1; transform: none; }
.why-grid .why-card:nth-child(2) { transition-delay: 0.1s; }
.why-grid .why-card:nth-child(3) { transition-delay: 0.18s; }
.why-grid .why-card:nth-child(4) { transition-delay: 0.26s; }
.cred-grid .cred-col:nth-child(2) { transition-delay: 0.1s; }
.cred-grid .cred-col:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-media img.kb, .photo-band > img { animation: none; }
}

/* ---------- Meet Tony (home) ---------- */
.meet-grid { display: grid; grid-template-columns: 4fr 7fr; gap: 80px; align-items: center; }
.meet-portrait img { width: 100%; box-shadow: 0 26px 70px rgba(20, 23, 28, 0.22); }
.meet-copy .label { display: block; margin-bottom: 16px; }
.meet-copy p { max-width: 560px; font-size: 1.07rem; line-height: 1.8; }
.meet-copy .hero-actions { margin-top: 34px; }
@media (max-width: 980px) {
  .meet-grid { grid-template-columns: 1fr; gap: 44px; }
  .meet-portrait { max-width: 340px; }
}

/* ---------- header brand v2 (2026-07-29): NAME in caps, @properties beside it,
   REALTOR® dropped from header (still in footer), Get In Touch button removed ---------- */
.site-header .brand { flex-direction: row; align-items: baseline; gap: 11px; }
.site-header .brand-name { text-transform: uppercase; letter-spacing: 0.09em; font-size: 1.05rem; }
.site-header .brand-sub { font-size: 14px; letter-spacing: 0; text-transform: none; }

/* ---------- header: real @properties logo beside the name (2026-07-29) ---------- */
.site-header .brand { align-items: center; gap: 12px; }
.brand-pipe { width: 1px; height: 28px; background: var(--muted); font-size: 0; color: transparent; }
.ap-logo.hdr { height: 28px; margin: 0; display: block; }
.site-header .ap-logo.hdr path { fill: var(--ink); }
.site-header .ap-logo.hdr .st0 { fill: #FF1300; }
.cinema-page .site-header:not(.scrolled) .ap-logo.hdr path { fill: #ffffff; }
.cinema-page .site-header:not(.scrolled) .ap-logo.hdr .st0 { fill: #FF1300; }
.cinema-page .site-header:not(.scrolled) .brand-pipe { background: rgba(246,242,234,0.7); }

/* ---------- footer brand: REALTOR® under the name, logo below (2026-07-29) ---------- */
.brand-realtor {
  display: block; font-size: 11px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--muted); margin-top: 5px;
}
.ap-logo.ftr { height: 20px; margin-top: 16px; }
/* about portrait caption logo — dark variant, centered */
.ap-logo.cap { height: 15px; margin: 10px auto 0; }
.ap-logo.cap path { fill: var(--muted-dark); }
.ap-logo.cap .st0 { fill: #FF1300; }
