/*
Theme Name: Brian Denne Real Estate
Theme URI: https://briandenne.com
Author: Brian Denne
Description: A responsive, search-friendly Portland Metro real estate website for Brian Denne and Premiere Property Group, LLC.
Version: 1.0.0
Text Domain: brian-denne-real-estate
*/

:root {
  --navy: #0c2438;
  --navy-deep: #071824;
  --forest: #315747;
  --gold: #c99835;
  --gold-light: #e3bd68;
  --ivory: #f6f2e9;
  --cream: #fbf9f4;
  --ink: #172128;
  --muted: #627078;
  --line: rgba(12, 36, 56, 0.15);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
section[id], .service-card[id] { scroll-margin-top: 102px; }
body { margin: 0; color: var(--ink); background: var(--cream); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 1000; top: 10px; left: 10px; transform: translateY(-150%); background: white; padding: 10px 14px; }
.skip-link:focus { transform: translateY(0); }

.utility-bar { background: var(--navy-deep); color: rgba(255,255,255,.82); font-size: 12px; letter-spacing: .08em; }
.utility-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utility-inner p { margin: 0; text-transform: uppercase; }
.utility-inner div { display: flex; gap: 10px; }
.utility-inner a:hover { color: var(--gold-light); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(251,249,244,.96); border-bottom: 1px solid rgba(12,36,56,.1); backdrop-filter: blur(12px); }
.header-inner { height: 82px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; flex-direction: column; line-height: 1; text-transform: uppercase; letter-spacing: .14em; font-size: 9px; color: var(--forest); }
.brand-name { font-family: var(--serif); font-size: 25px; font-weight: 700; letter-spacing: .02em; color: var(--navy); text-transform: none; margin-bottom: 7px; }
.nav { display: flex; align-items: center; gap: 30px; color: var(--navy); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.nav a { position: relative; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--gold); transition: right .25s ease; }
.nav a:not(.nav-cta):hover::after { right: 0; }
.nav-cta { padding: 13px 19px; border: 1px solid var(--gold); }
.nav-cta:hover { background: var(--gold); color: white; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; width: 25px; height: 2px; background: var(--navy); margin: 5px; }

.hero { position: relative; min-height: 710px; display: grid; align-items: center; overflow: hidden; color: white; background: var(--navy); }
.hero-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,24,36,.96) 0%, rgba(7,24,36,.78) 47%, rgba(7,24,36,.28) 100%), linear-gradient(0deg, rgba(7,24,36,.28), transparent 48%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(280px, .55fr); gap: 80px; align-items: center; padding-block: 90px; }
.eyebrow { margin: 0 0 18px; color: var(--forest); font-size: 12px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow.light { color: var(--gold-light); }
.hero h1 { max-width: 760px; margin: 0; font-family: var(--serif); font-size: clamp(52px, 6.2vw, 86px); font-weight: 400; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.hero-lead { max-width: 650px; margin: 28px 0 0; color: rgba(255,255,255,.85); font-size: clamp(17px, 2vw, 21px); line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 14px 22px; border: 1px solid transparent; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-gold { color: var(--navy-deep); background: var(--gold-light); }
.button-gold:hover { background: white; }
.button-ghost { border-color: rgba(255,255,255,.55); color: white; }
.button-ghost:hover { background: white; color: var(--navy); }
.agent-card { justify-self: end; align-self: end; width: min(330px, 100%); padding: 10px; background: rgba(246,242,233,.96); color: var(--navy); box-shadow: 0 30px 70px rgba(0,0,0,.28); }
.agent-card img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: 50% 36%; }
.agent-card-copy { padding: 20px 18px 18px; border-bottom: 3px solid var(--gold); }
.agent-card-copy p { margin: 0 0 7px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.agent-card-copy h2 { margin: 0; font-family: var(--serif); font-size: 30px; font-weight: 400; }
.agent-card-copy span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.proof-bar { color: white; background: var(--forest); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid div { min-height: 112px; display: flex; flex-direction: column; justify-content: center; padding: 22px 28px; border-left: 1px solid rgba(255,255,255,.16); }
.proof-grid div:last-child { border-right: 1px solid rgba(255,255,255,.16); }
.proof-grid strong { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.proof-grid span { margin-top: 6px; color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.intro-preview { min-height: 260px; display: grid; align-items: center; text-align: center; background: var(--ivory); }
.intro-preview h2 { max-width: 760px; margin: 0 auto; color: var(--navy); font-family: var(--serif); font-size: clamp(34px, 5vw, 56px); font-weight: 400; }

.section { padding-block: 112px; }
.section-heading { margin-bottom: 58px; }
.section-heading h2,
.marketing-intro h2,
.about-copy h2,
.contact-copy h2 { margin: 0; color: var(--navy); font-family: var(--serif); font-size: clamp(40px, 5vw, 64px); font-weight: 400; line-height: 1.06; letter-spacing: -.025em; text-wrap: balance; }
.section-heading > p:last-child { color: var(--muted); font-size: 17px; line-height: 1.8; }
.section-heading.centered { max-width: 850px; margin-inline: auto; text-align: center; }
.section-heading.centered > p:last-child { max-width: 720px; margin: 24px auto 0; }
.section-heading.compact { margin-bottom: 44px; }
.split-heading { display: grid; grid-template-columns: 1.15fr .75fr; gap: 90px; align-items: end; }
.split-heading > p:last-child { margin: 0; }

.services-section { background: var(--ivory); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card { position: relative; min-height: 470px; display: flex; flex-direction: column; padding: 46px 38px 38px; overflow: hidden; border: 1px solid var(--line); background: var(--cream); }
.service-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.service-card:hover::before { transform: scaleX(1); }
.service-card.featured { color: white; background: var(--navy); border-color: var(--navy); }
.service-card.featured::after { content: ""; position: absolute; width: 230px; height: 230px; right: -110px; bottom: -120px; border: 1px solid rgba(227,189,104,.3); border-radius: 50%; box-shadow: 0 0 0 36px rgba(227,189,104,.05), 0 0 0 72px rgba(227,189,104,.04); }
.service-card .card-number { position: absolute; top: 26px; right: 28px; color: rgba(12,36,56,.14); font-family: var(--serif); font-size: 52px; }
.service-card.featured .card-number { color: rgba(255,255,255,.14); }
.service-card h3 { max-width: 330px; margin: 0 0 22px; color: var(--navy); font-family: var(--serif); font-size: 31px; font-weight: 400; line-height: 1.18; }
.service-card.featured h3 { color: white; }
.service-card > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.service-card.featured > p:not(.eyebrow) { color: rgba(255,255,255,.7); }
.text-link { position: relative; z-index: 1; width: fit-content; margin-top: auto; padding-top: 30px; color: var(--navy); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.text-link span { display: inline-block; margin-left: 7px; color: var(--gold); transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.service-card.featured .text-link { color: var(--gold-light); }

.marketing-section { color: white; background: var(--navy-deep); }
.marketing-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.marketing-intro { position: sticky; top: 145px; align-self: start; }
.marketing-intro h2 { color: white; }
.marketing-intro > p:not(.eyebrow) { margin: 28px 0; color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.8; }
.marketing-intro blockquote { margin: 32px 0 38px; padding-left: 24px; border-left: 2px solid var(--gold); color: var(--gold-light); font-family: var(--serif); font-size: 22px; font-style: italic; line-height: 1.5; }
.marketing-steps { border-top: 1px solid rgba(255,255,255,.15); }
.marketing-steps article { display: grid; grid-template-columns: 60px 1fr; gap: 22px; padding: 32px 4px; border-bottom: 1px solid rgba(255,255,255,.15); }
.marketing-steps article > span { color: var(--gold); font-family: var(--serif); font-size: 17px; }
.marketing-steps h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 28px; font-weight: 400; }
.marketing-steps p { margin: 0; color: rgba(255,255,255,.64); font-size: 14px; line-height: 1.75; }

.communities-section { background: var(--cream); }
.community-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.community-card { min-height: 180px; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-content: center; align-items: end; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: color .25s ease, background .25s ease; }
.community-card > span { align-self: start; color: var(--gold); font-family: var(--serif); font-size: 12px; }
.community-card h3 { margin: 0; color: var(--navy); font-family: var(--serif); font-size: 27px; font-weight: 400; }
.community-card p { margin: 7px 0 0; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.community-card b { color: var(--gold); font-size: 18px; font-weight: 400; }
.community-card:hover { color: white; background: var(--forest); }
.community-card:hover h3, .community-card:hover p { color: white; }
.community-note { margin: 24px 0 0; color: var(--muted); font-size: 13px; text-align: center; }

.about-section { background: var(--ivory); }
.about-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 100px; align-items: center; }
.about-image-wrap { position: relative; padding: 30px 0 30px 30px; }
.about-image-wrap > img { position: relative; z-index: 1; width: 100%; max-height: 720px; object-fit: cover; object-position: 50% 30%; }
.about-accent { position: absolute; inset: 0 40px 0 0; background: var(--forest); }
.experience-badge { position: absolute; z-index: 2; right: -28px; bottom: 0; width: 170px; min-height: 170px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px; color: var(--navy); background: var(--gold-light); text-align: center; }
.experience-badge strong { font-family: var(--serif); font-size: 38px; font-weight: 400; }
.experience-badge span { margin-top: 6px; font-size: 10px; font-weight: 800; line-height: 1.5; letter-spacing: .08em; text-transform: uppercase; }
.about-copy .large-copy { margin: 28px 0 18px; color: var(--navy); font-family: var(--serif); font-size: 24px; line-height: 1.5; }
.about-copy > p:not(.eyebrow):not(.large-copy) { color: var(--muted); font-size: 15px; line-height: 1.8; }
.about-actions { display: flex; align-items: center; gap: 28px; margin-top: 32px; }
.button-navy { color: white; background: var(--navy); }
.button-navy:hover { background: var(--forest); }
.brokerage-logo { width: 225px; margin-top: 42px; }

.insights-section { background: var(--cream); }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.insight-card { min-height: 390px; display: flex; flex-direction: column; padding: 38px 34px; border: 1px solid var(--line); background: var(--ivory); }
.insight-card > span { color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.insight-card h3 { margin: 22px 0 18px; color: var(--navy); font-family: var(--serif); font-size: 31px; font-weight: 400; line-height: 1.2; }
.insight-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.insight-card a { margin-top: auto; color: var(--navy); font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.dark-card { color: white; background: var(--forest); border-color: var(--forest); }
.dark-card h3, .dark-card a { color: white; }
.dark-card p { color: rgba(255,255,255,.72); }
.image-card { position: relative; overflow: hidden; color: white; background: var(--navy); }
.image-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(7,24,36,.74), rgba(7,24,36,.92)), url("assets/images/portland-metro-home.jpg") center/cover; }
.image-card > * { position: relative; z-index: 1; }
.image-card h3, .image-card a { color: white; }
.image-card p { color: rgba(255,255,255,.72); }

.contact-section { padding-block: 112px; color: white; background: var(--navy); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: start; }
.contact-copy h2 { color: white; }
.contact-copy > p:not(.eyebrow) { margin: 28px 0 38px; color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.8; }
.contact-details { display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.17); }
.contact-details > * { display: flex; flex-direction: column; padding: 19px 0; border-bottom: 1px solid rgba(255,255,255,.17); }
.contact-details span { margin-bottom: 7px; color: var(--gold-light); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.contact-details strong { font-family: var(--serif); font-size: 20px; font-weight: 400; line-height: 1.5; }
.contact-form { display: grid; gap: 22px; padding: 44px; color: var(--ink); background: var(--ivory); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: grid; gap: 8px; color: var(--navy); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-form input,
.contact-form select,
.contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid rgba(12,36,56,.25); border-radius: 0; padding: 13px 2px; color: var(--ink); background: transparent; font: 16px var(--sans); text-transform: none; outline: none; }
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus { border-bottom-color: var(--gold); box-shadow: 0 2px 0 rgba(201,152,53,.15); }
.contact-form textarea { resize: vertical; }
.contact-form .button { border: 0; cursor: pointer; }
.form-status { margin: 0; padding: 13px 15px; border-left: 3px solid var(--forest); color: var(--navy); background: rgba(49,87,71,.1); font-size: 13px; line-height: 1.6; }
.form-status.error { border-left-color: #a84b42; background: rgba(168,75,66,.09); }
.form-note { margin: -4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; text-align: center; }
.form-note a { color: var(--navy); font-weight: 800; }

.site-footer { padding: 76px 0 28px; color: rgba(255,255,255,.72); background: var(--navy-deep); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .7fr 1fr .9fr; gap: 60px; align-items: start; }
.footer-brand .brand-name { color: white; }
.footer-brand p { margin: 10px 0 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) { display: flex; flex-direction: column; gap: 11px; }
.footer-grid h3 { margin: 0 0 9px; color: var(--gold-light); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.footer-grid a { font-size: 13px; }
.footer-grid a:hover { color: white; }
.footer-logo { width: 225px; justify-self: end; padding: 8px; background: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 60px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: 10px; letter-spacing: .03em; }
.footer-bottom p { margin: 0; }
.mobile-contact-bar { display: none; }

@media (max-width: 900px) {
  .utility-inner p { display: none; }
  .utility-inner { justify-content: center; }
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; background: var(--cream); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 15px 6px; }
  .nav-cta { margin-top: 10px; text-align: center; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; padding-block: 74px; }
  .agent-card { justify-self: start; width: min(360px, 86vw); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid div:nth-child(odd) { border-left: 0; }
  .section { padding-block: 84px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 380px; }
  .marketing-layout { grid-template-columns: 1fr; gap: 64px; }
  .marketing-intro { position: static; }
  .split-heading { grid-template-columns: 1fr; gap: 28px; }
  .community-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 72px; }
  .about-image-wrap { max-width: 620px; }
  .insight-grid { grid-template-columns: 1fr; }
  .insight-card { min-height: 320px; }
  .contact-grid { grid-template-columns: 1fr; gap: 64px; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-logo { justify-self: start; }
}

@media (max-width: 600px) {
  .shell { width: min(100% - 28px, 1180px); }
  .utility-bar { display: none; }
  .header-inner { height: 72px; }
  .hero-shade { background: linear-gradient(90deg, rgba(7,24,36,.96), rgba(7,24,36,.73)), linear-gradient(0deg, rgba(7,24,36,.55), transparent); }
  .hero-grid { padding-block: 64px; }
  .hero h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .button { width: 100%; text-align: center; }
  .agent-card { width: 100%; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid div { min-height: 94px; border: 0; border-bottom: 1px solid rgba(255,255,255,.15); text-align: center; }
  .intro-preview { min-height: 220px; }
  .section { padding-block: 68px; }
  .section-heading { margin-bottom: 40px; }
  .section-heading h2, .marketing-intro h2, .about-copy h2, .contact-copy h2 { font-size: 40px; }
  .service-card { min-height: 420px; padding: 40px 28px 30px; }
  .marketing-steps article { grid-template-columns: 44px 1fr; gap: 10px; }
  .community-grid { grid-template-columns: 1fr; }
  .community-card { min-height: 135px; }
  .about-image-wrap { padding: 18px 0 18px 18px; }
  .experience-badge { right: -4px; width: 135px; min-height: 135px; padding: 16px; }
  .experience-badge strong { font-size: 30px; }
  .about-actions { align-items: flex-start; flex-direction: column; }
  .contact-section { padding-block: 68px; }
  .contact-form { padding: 30px 22px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-bottom { flex-direction: column; margin-bottom: 50px; }
  .mobile-contact-bar { position: fixed; z-index: 110; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr 1fr; color: var(--navy-deep); background: var(--gold-light); box-shadow: 0 -7px 25px rgba(0,0,0,.18); }
  .mobile-contact-bar a { padding: 15px 8px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
  .mobile-contact-bar a + a { border-left: 1px solid rgba(12,36,56,.25); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
