/*
Theme Name: Kelvin Wang — Buyer's Agent
Author: Kelvin Wang
Description: Single-page profile theme for Kelvin Wang, Silicon Valley buyer's agent. Renders the full profile site on every page; no configuration required.
Version: 1.0.11
Requires at least: 5.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kelvin-wang-realty
*/

:root {
  --ink: #17171a;
  --ink-soft: #4b4b52;
  --ink-faint: #8a8a92;
  --paper: #faf9f7;
  --paper-warm: #f3f1ec;
  --line: #e4e1da;
  --accent: #A71B1B;
  --accent-dark: #8a1414;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

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

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

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

/* ---------- Nav ---------- */
header.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .35s ease, box-shadow .35s ease;
}
header.site-header.scrolled {
  background: rgba(250, 249, 247, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}
/* Keep the fixed nav below the WP admin bar when logged in */
body.admin-bar header.site-header { top: 32px; }
@media (max-width: 782px) {
  body.admin-bar header.site-header { top: 46px; }
}
nav.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  color: #fff;
  transition: color .35s;
}
header.site-header.scrolled .logo { color: var(--ink); }
.logo-mark { width: 32px; height: auto; flex-shrink: 0; }
.logo-mark .roof { stroke: currentColor; }
.logo-mark .roof-accent { stroke: #d64545; transition: stroke .35s; }
header.site-header.scrolled .logo-mark .roof-accent,
footer .logo-mark .roof-accent { stroke: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }
.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255,255,255,.85);
  transition: color .25s;
}
header.site-header.scrolled .nav-links a { color: var(--ink-soft); }
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  border: 1px solid rgba(255,255,255,.4) !important;
  padding: 10px 22px;
  border-radius: 2px;
  transition: all .25s !important;
}
header.site-header.scrolled .nav-cta { border-color: var(--ink) !important; }
.nav-cta:hover { background: var(--accent); border-color: var(--accent) !important; color: #fff !important; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background:
    linear-gradient(to bottom, rgba(15,14,13,.35) 0%, rgba(15,14,13,.15) 45%, rgba(15,14,13,.72) 100%),
    url('assets/hero.jpg')
    center / cover no-repeat;
  padding: 0;
}
.hero-inner { width: 100%; padding-bottom: 90px; }
.hero .eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 7vw, 88px);
  line-height: 1.05;
  max-width: 13ch;
  margin-bottom: 28px;
}
.hero h1 em { font-style: italic; color: #d64545; }
.hero p {
  max-width: 480px;
  font-size: 16px;
  color: rgba(255,255,255,.82);
  margin-bottom: 40px;
}
.btn {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 2px;
  transition: all .25s;
}
.btn-solid { background: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-dark); }
.btn-ghost { border: 1px solid rgba(255,255,255,.5); color: #fff; margin-left: 14px; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Sections ---------- */
section { padding: 110px 0; }
.section-label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.5vw, 52px);
  line-height: 1.15;
  margin-bottom: 24px;
}
h2 em { font-style: italic; color: var(--accent); }

/* ---------- About ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: center;
}
.about-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  background:
    linear-gradient(to top, rgba(23,23,26,.18), transparent 35%),
    url('assets/headshot.jpg') center top / cover no-repeat,
    var(--paper-warm);
  border-radius: 2px;
}
.about-photo::after {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 2px;
  pointer-events: none;
}
.about-text p { color: var(--ink-soft); margin-bottom: 20px; font-size: 16px; }
.signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 30px;
  color: var(--ink);
  margin-top: 12px;
}
.signature small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 6px;
}

/* ---------- Approach ---------- */
.approach { background: var(--paper-warm); }
.approach-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.approach-head p { max-width: 420px; color: var(--ink-soft); }
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.step { border-top: 1px solid var(--line); padding-top: 26px; }
.step .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--accent);
}
.step h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  margin: 10px 0 10px;
}
.step p { font-size: 14px; color: var(--ink-soft); }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px;
  margin-top: 64px;
}
.service { border-top: 1px solid var(--line); padding-top: 28px; }
.service .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--accent);
}
.service h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  margin: 10px 0 12px;
}
.service p { font-size: 15px; color: var(--ink-soft); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--ink); color: var(--paper); }
.testimonials .section-label { color: #d64545; }
.testimonials h2 { color: #fff; }
.quotes {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 820px;
  gap: 48px;
  margin-top: 64px;
}
.quote { border-top: 1px solid rgba(250,249,247,.18); padding-top: 36px; }
.quote p {
  font-family: var(--serif);
  font-size: 28px;
  font-style: italic;
  line-height: 1.55;
  color: rgba(250,249,247,.9);
  margin-bottom: 24px;
}
.quote cite {
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #d64545;
}
.quote cite small { display: block; color: rgba(250,249,247,.5); letter-spacing: .1em; margin-top: 4px; }

/* ---------- Instagram ---------- */
.instagram { background: var(--paper-warm); }
.insta-inner { text-align: center; max-width: 640px; margin: 0 auto; }
.insta-sub { color: var(--ink-soft); margin-bottom: 36px; }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.insta-feed { margin-top: 56px; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
  align-items: center;
}
.team-video video {
  display: block;
  max-width: 100%;
  max-height: 620px;
  width: auto;
  height: auto;
  margin: 0 auto;
  border-radius: 2px;
  background: var(--ink);
  box-shadow: 0 18px 40px rgba(23,23,26,.12);
}
.team-text p { color: var(--ink-soft); margin-bottom: 20px; font-size: 16px; }
.team-text .section-label { margin-bottom: 16px; }
.team-text .btn { margin-top: 16px; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 80px;
}
.contact-info p { color: var(--ink-soft); max-width: 380px; margin-bottom: 36px; }
.contact-line {
  display: block;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  transition: color .25s;
}
.contact-line:hover { color: var(--accent); }
.contact-line small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 4px;
}
form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 8px;
}
input, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 300;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--line);
  padding: 10px 0 14px;
  outline: none;
  transition: border-color .25s;
  resize: vertical;
}
input:focus, textarea:focus { border-color: var(--accent); }
form .btn { border: none; cursor: pointer; justify-self: start; margin-top: 12px; font-family: var(--sans); }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: .06em;
}
.footer-inner .logo { color: var(--ink); font-size: 17px; }
.footer-inner .logo-mark { width: 26px; }
.footer-brand { display: flex; align-items: center; gap: 20px; }
.footer-logo { height: 64px; width: auto; mix-blend-mode: multiply; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .process { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .about-grid, .contact-grid, .team-grid { grid-template-columns: 1fr; gap: 48px; }
  .process, .services-grid, .quotes { grid-template-columns: 1fr; }
  .approach-head { flex-direction: column; align-items: flex-start; }
  .nav-links { display: none; }
  .menu-btn {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: .2em;
    text-transform: uppercase;
    font-family: var(--sans);
  }
  header.site-header.scrolled .menu-btn { color: var(--ink); }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
  }
  .nav-links.open a {
    display: block;
    width: 100%;
    padding: 16px 32px;
    color: var(--ink-soft);
    border: none !important;
  }
  .field-row { grid-template-columns: 1fr; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
}
