/*
Theme Name: Downtown Vancouver Real Estate
Theme URI: https://downtownvancouverrealestate.ca/
Author: U1 Names
Description: A lightweight, responsive one-page publication and exclusive sponsorship theme for DowntownVancouverRealEstate.ca.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: dvre
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ink: #132131;
  --ink-soft: #314052;
  --navy: #071d31;
  --navy-2: #0b2943;
  --teal: #1f5261;
  --cream: #f7f4ed;
  --paper: #fffdf8;
  --stone: #e5ded1;
  --line: rgba(19, 33, 49, .14);
  --gold: #b69043;
  --gold-light: #d3b269;
  --white: #ffffff;
  --shadow: 0 22px 60px rgba(7, 29, 49, .13);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }

.site-shell { overflow: clip; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 92px 0; }
.section-compact { padding: 68px 0; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--teal);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.section-kicker::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.section-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.45rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
}
.section-title.centered { text-align: center; }
.section-intro { max-width: 760px; margin: 20px auto 0; color: var(--ink-soft); text-align: center; font-size: 1.05rem; }
.gold-rule { width: 54px; height: 2px; margin: 22px 0 0; background: var(--gold); }
.gold-rule.centered { margin-inline: auto; }

/* Header */
.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  color: var(--white);
  background: rgba(5, 24, 40, .94);
  border-bottom: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(14px);
  transition: box-shadow .25s ease, background .25s ease;
}
.site-header.scrolled { background: rgba(5, 24, 40, .985); box-shadow: 0 10px 35px rgba(0,0,0,.16); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.site-brand {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: baseline;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(.94rem, 1.35vw, 1.18rem);
  line-height: 1;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.site-brand .brand-tail { color: #e7c87e; }
.primary-nav { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 29px); margin-left: auto; }
.primary-nav a {
  position: relative;
  color: rgba(255,255,255,.88);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .025em;
}
.primary-nav a:not(.header-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 1px;
  background: var(--gold-light);
  transition: right .2s ease;
}
.primary-nav a:hover::after, .primary-nav a:focus-visible::after { right: 0; }
.header-cta {
  padding: 10px 18px;
  color: #f5dfaa !important;
  border: 1px solid rgba(211,178,105,.85);
  transition: color .2s ease, background .2s ease;
}
.header-cta:hover { color: var(--navy) !important; background: var(--gold-light); }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
}
.menu-toggle span { display: block; height: 1px; margin: 5px 0; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  min-height: 770px;
  display: flex;
  align-items: center;
  padding: 150px 0 76px;
  color: #fff;
  background-color: var(--navy);
  background-image: linear-gradient(90deg, rgba(3,22,38,.62) 0%, rgba(3,22,38,.18) 52%, rgba(3,22,38,.08) 100%), var(--hero-image);
  background-size: cover;
  background-position: center center;
}
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 150px;
  background: linear-gradient(to top, rgba(5,24,40,.22), transparent);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-panel {
  max-width: 610px;
  padding: clamp(34px, 5vw, 58px);
  background: rgba(4, 26, 44, .87);
  border-left: 3px solid var(--gold);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.hero-eyebrow { margin: 0 0 14px; color: #dfc27e; font-size: .76rem; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 520px; font-family: var(--serif); font-size: clamp(3.2rem, 7vw, 5.55rem); font-weight: 400; line-height: .94; letter-spacing: -.045em; }
.hero-copy { max-width: 510px; margin: 25px 0 0; color: rgba(255,255,255,.9); font-size: clamp(1rem, 1.5vw, 1.17rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 33px; }
.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border: 1px solid transparent;
  font-size: .81rem;
  font-weight: 750;
  letter-spacing: .04em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--teal); border-color: rgba(255,255,255,.42); }
.btn-primary:hover { background: #2b6676; }
.btn-outline { color: #f4dca5; background: rgba(0,0,0,.12); border-color: var(--gold-light); }
.btn-outline:hover { color: var(--navy); background: var(--gold-light); }
.btn-gold { color: var(--navy); background: var(--gold-light); }
.btn-gold:hover { background: #e3c77f; }
.hero-note { position: absolute; z-index: 2; right: 34px; bottom: 28px; color: rgba(255,255,255,.8); font-size: .71rem; letter-spacing: .06em; }

/* Overview */
.overview { background: var(--paper); }
.overview-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(48px, 7vw, 92px); align-items: center; }
.editorial-copy p { margin: 20px 0 0; color: var(--ink-soft); }
.editorial-copy p:first-of-type { color: var(--ink); font-size: 1.08rem; }
.overview-media { position: relative; min-height: 520px; }
.overview-media .image-main { position: absolute; top: 0; right: 0; width: 76%; height: 80%; object-fit: cover; box-shadow: var(--shadow); }
.overview-media .image-inset { position: absolute; left: 0; bottom: 0; width: 53%; height: 52%; object-fit: cover; border: 10px solid var(--paper); box-shadow: var(--shadow); }
.overview-caption { position: absolute; right: 0; bottom: 2px; width: 42%; margin: 0; color: var(--ink-soft); font-size: .74rem; line-height: 1.45; }

/* Character Cards */
.character { background: var(--cream); border-block: 1px solid var(--line); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.market-card { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 12px 34px rgba(19,33,49,.05); transition: transform .25s ease, box-shadow .25s ease; }
.market-card:hover { transform: translateY(-5px); box-shadow: 0 24px 55px rgba(19,33,49,.11); }
.card-image { position: relative; height: 245px; overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.market-card:hover .card-image img { transform: scale(1.035); }
.card-icon { position: absolute; left: 50%; bottom: -25px; width: 52px; height: 52px; display: grid; place-items: center; transform: translateX(-50%); color: var(--gold-light); background: var(--navy); border: 2px solid var(--paper); border-radius: 50%; }
.card-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.card-body { min-height: 226px; padding: 42px 28px 29px; text-align: center; }
.card-body h3 { margin: 0; font-family: var(--serif); font-size: 1.45rem; font-weight: 400; }
.card-body p { margin: 14px 0 0; color: var(--ink-soft); font-size: .93rem; }

/* Market factors */
.market-factors { background: var(--paper); }
.factor-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 45px; border: 1px solid var(--line); }
.factor { padding: 33px 28px; border-right: 1px solid var(--line); }
.factor:last-child { border-right: 0; }
.factor svg { width: 35px; height: 35px; color: var(--gold); fill: none; stroke: currentColor; stroke-width: 1.5; }
.factor h3 { margin: 15px 0 0; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.factor p { margin: 12px 0 0; color: var(--ink-soft); font-size: .88rem; line-height: 1.62; }
.micro-markets { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 34px; }
.micro-markets span { padding: 7px 12px; color: var(--ink-soft); background: var(--cream); border: 1px solid var(--line); font-size: .75rem; letter-spacing: .035em; }

/* Buying/Selling */
.transactions { background: linear-gradient(135deg, #f3efe6, #fbfaf6); border-block: 1px solid var(--line); }
.transaction-grid { display: grid; grid-template-columns: 1fr 1fr; }
.transaction-panel { padding: 62px clamp(36px, 6vw, 78px); }
.transaction-panel + .transaction-panel { border-left: 1px solid var(--line); }
.transaction-heading { display: flex; align-items: center; gap: 18px; }
.round-icon { flex: 0 0 54px; width: 54px; height: 54px; display: grid; place-items: center; color: var(--gold-light); background: var(--navy); border-radius: 50%; }
.round-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.transaction-panel h2 { margin: 0; font-family: var(--serif); font-size: clamp(1.75rem, 3vw, 2.45rem); font-weight: 400; line-height: 1.1; }
.transaction-panel p { margin: 22px 0 0; color: var(--ink-soft); }
.transaction-panel ul { margin: 19px 0 0; padding: 0; list-style: none; }
.transaction-panel li { position: relative; margin: 9px 0; padding-left: 21px; color: var(--ink-soft); font-size: .92rem; }
.transaction-panel li::before { content: ''; position: absolute; left: 0; top: .72em; width: 7px; height: 1px; background: var(--gold); }

/* Sponsor */
.sponsor-section { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.sponsor-section::before {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 52%;
  opacity: .19;
  background-image: url("data:image/svg+xml,%3Csvg width='900' height='420' viewBox='0 0 900 420' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23d3b269' stroke-width='2'%3E%3Cpath d='M20 330h850M55 330V225h80v105M135 330V170h100v160M235 330V205h82v125M317 330V125h95v205M412 330V195h77v135M489 330V155h98v175M587 330V220h90v110M677 330V182h88v148M765 330V238h70v92'/%3E%3Cpath d='M28 225l67-48 67 48 95-78 82 45 117-116 90 76 88-41 128 92 75-40 75 67'/%3E%3Ccircle cx='568' cy='256' r='46'/%3E%3Cpath d='M522 256h92M568 210v92M535 222l66 67M601 222l-66 67'/%3E%3C/g%3E%3C/svg%3E");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: contain;
}
.sponsor-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 220px 1fr 300px; gap: 36px; align-items: center; }
.sponsor-portrait { aspect-ratio: 4/5; overflow: hidden; border: 2px solid var(--gold); background: #e6e0d5; }
.sponsor-portrait img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-person { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(145deg, #e8e4db, #c8c5be); }
.placeholder-person svg { width: 76%; height: 76%; color: #7d858a; fill: currentColor; opacity: .82; }
.sponsor-content { padding-left: 34px; border-left: 1px solid rgba(211,178,105,.55); }
.sponsor-content .section-kicker { color: var(--gold-light); }
.sponsor-content h2 { margin: 0; color: #fff; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; line-height: 1.05; }
.sponsor-content p { max-width: 610px; margin: 20px 0 0; color: rgba(255,255,255,.78); }
.sponsor-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.sponsor-meta { padding: 24px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.sponsor-meta strong { display: block; color: var(--gold-light); font-family: var(--serif); font-size: 1.32rem; font-weight: 400; }
.sponsor-meta span, .sponsor-meta a { display: block; margin-top: 8px; color: rgba(255,255,255,.78); font-size: .83rem; }
.sponsor-meta .brokerage { margin-top: 15px; padding-top: 15px; color: #fff; border-top: 1px solid rgba(255,255,255,.18); font-weight: 700; }

/* Contact */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1fr .84fr; gap: clamp(54px, 8vw, 100px); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 30px; }
.field-full { grid-column: 1 / -1; }
.contact-form label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.contact-form input, .contact-form textarea {
  width: 100%;
  padding: 14px 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(19,33,49,.22);
  border-radius: 0;
  outline: 0;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31,82,97,.1); }
.contact-form textarea { min-height: 142px; resize: vertical; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.form-status { grid-column: 1/-1; padding: 13px 15px; font-size: .87rem; }
.form-status.success { color: #215f42; background: #e7f3ec; border: 1px solid #acd1ba; }
.form-status.error { color: #7b2424; background: #f8eaea; border: 1px solid #ddb5b5; }
.contact-side { display: grid; grid-template-columns: 1fr 190px; gap: 28px; align-items: end; }
.contact-side p { margin: 19px 0 0; color: var(--ink-soft); }
.contact-image { width: 190px; height: 270px; object-fit: cover; }
.contact-details { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--line); }
.contact-details a { color: var(--teal); font-weight: 700; }

/* Footer */
.site-footer { color: rgba(255,255,255,.72); background: #06192b; }
.footer-main { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; padding: 39px 0 28px; }
.footer-disclosure { max-width: 680px; margin: 0; font-size: .76rem; line-height: 1.65; }
.footer-nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 22px; align-items: start; }
.footer-nav a { font-size: .76rem; }
.footer-nav a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .69rem; }
.image-credits summary { cursor: pointer; color: rgba(255,255,255,.72); }
.image-credits div { max-width: 780px; margin-top: 10px; color: rgba(255,255,255,.54); line-height: 1.55; }
.image-credits a { text-decoration: underline; }

/* Motion */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s ease, transform .65s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1060px) {
  .primary-nav { gap: 17px; }
  .primary-nav a { font-size: .72rem; }
  .header-cta { padding-inline: 13px; }
  .sponsor-inner { grid-template-columns: 180px 1fr; }
  .sponsor-meta { grid-column: 2; }
}

@media (max-width: 900px) {
  .site-brand { flex-direction: column; align-items: flex-start; gap: 3px; font-size: .95rem; }
  .menu-toggle { display: block; margin-left: auto; }
  .primary-nav {
    position: fixed;
    inset: 76px 0 auto;
    max-height: calc(100vh - 76px);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px;
    overflow: auto;
    background: rgba(5,24,40,.995);
    border-top: 1px solid rgba(255,255,255,.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .24s ease, opacity .24s ease;
  }
  .menu-open .primary-nav { transform: none; opacity: 1; pointer-events: auto; }
  .primary-nav a { padding: 15px 10px; font-size: .9rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .header-cta { margin-top: 14px; text-align: center; }
  .hero { min-height: 710px; background-position: 58% center; }
  .hero-panel { max-width: 570px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-media { min-height: 550px; }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .market-card:last-child { grid-column: 1/-1; max-width: 560px; justify-self: center; }
  .factor-grid { grid-template-columns: 1fr 1fr; }
  .factor:nth-child(2) { border-right: 0; }
  .factor:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .transaction-grid { grid-template-columns: 1fr; }
  .transaction-panel + .transaction-panel { border-left: 0; border-top: 1px solid var(--line); }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .section { padding: 72px 0; }
  .header-inner { min-height: 70px; }
  .primary-nav { inset: 70px 0 auto; }
  .hero { min-height: 760px; padding-top: 120px; background-position: 61% center; }
  .hero-panel { padding: 30px 25px 33px; border-left-width: 2px; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.2rem); }
  .hero-actions .btn { width: 100%; }
  .hero-note { display: none; }
  .overview-media { min-height: 430px; }
  .overview-media .image-main { width: 88%; height: 76%; }
  .overview-media .image-inset { width: 58%; height: 48%; border-width: 7px; }
  .overview-caption { display: none; }
  .card-grid { grid-template-columns: 1fr; }
  .market-card:last-child { grid-column: auto; max-width: none; }
  .card-image { height: 230px; }
  .factor-grid { grid-template-columns: 1fr; }
  .factor, .factor:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .factor:last-child { border-bottom: 0; }
  .transaction-panel { padding: 46px 24px; }
  .transaction-heading { align-items: flex-start; }
  .sponsor-inner { grid-template-columns: 1fr; }
  .sponsor-portrait { width: min(220px, 70%); }
  .sponsor-content { padding: 27px 0 0; border-left: 0; border-top: 1px solid rgba(211,178,105,.55); }
  .sponsor-meta { grid-column: auto; }
  .contact-form { grid-template-columns: 1fr; }
  .field-full { grid-column: auto; }
  .contact-side { grid-template-columns: 1fr; }
  .contact-image { width: 100%; height: 240px; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-nav { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; }
}
