/*
Theme Name: Shaughnessy Real Estate
Theme URI: https://shaughnessyrealestate.ca/
Author: ShaughnessyRealEstate.ca
Description: A lightweight, editorial one-page WordPress theme for ShaughnessyRealEstate.ca.
Version: 1.0.0
Text Domain: sre
License: GNU General Public License v2 or later
*/

:root {
  --forest: #142c25;
  --forest-deep: #0b1d18;
  --forest-soft: #24463a;
  --ivory: #f8f5ed;
  --paper: #fffdf8;
  --stone: #e7e0d3;
  --stone-dark: #cfc4b2;
  --ink: #222a27;
  --ink-soft: #53605b;
  --gold: #a88743;
  --gold-light: #d5bc7b;
  --line: rgba(49, 59, 54, .15);
  --shadow: 0 24px 60px rgba(12, 28, 23, .14);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { color: #fff; background: var(--forest-soft); }

.site-shell { min-height: 100vh; overflow: hidden; }
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section { padding: clamp(78px, 9vw, 128px) 0; }
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.section-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 5vw, 4.15rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.section-title.centered { text-align: center; }
.gold-rule { width: 58px; height: 2px; margin: 25px 0 29px; background: var(--gold); }
.gold-rule.centered { margin-inline: auto; }
.section-intro { max-width: 760px; margin: 0 auto 48px; color: var(--ink-soft); text-align: center; font-size: 1.05rem; }

/* Header */
.site-header {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  color: #fff;
  background: rgba(10, 29, 23, .88);
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
  transition: background .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { background: rgba(8, 24, 19, .97); box-shadow: 0 9px 28px rgba(0,0,0,.14); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.site-brand { display: inline-flex; align-items: baseline; color: #fff; text-decoration: none; font-family: var(--serif); white-space: nowrap; letter-spacing: -.025em; }
.brand-main { font-size: clamp(1.32rem, 2.1vw, 1.72rem); }
.brand-tail { color: var(--gold-light); font-size: clamp(.9rem, 1.4vw, 1.04rem); }
.primary-nav { display: flex; align-items: center; gap: clamp(17px, 2vw, 30px); }
.primary-nav > a { color: rgba(255,255,255,.88); text-decoration: none; font-size: .78rem; letter-spacing: .015em; transition: color .18s ease; }
.primary-nav > a:hover, .primary-nav > a:focus-visible { color: var(--gold-light); }
.primary-nav .header-cta { padding: 10px 16px; color: var(--gold-light); border: 1px solid rgba(213,188,123,.7); }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 9px; border: 0; color: #fff; background: transparent; cursor: pointer; }
.menu-toggle span { display: block; width: 23px; height: 1px; margin: 6px auto; background: currentColor; transition: transform .2s ease, opacity .2s ease; }

/* Hero */
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(4,17,13,.54), rgba(6,20,15,.08) 62%), var(--hero-image);
  background-size: cover;
  background-position: center 54%;
  isolation: isolate;
}
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 26%; background: linear-gradient(transparent, rgba(8,23,18,.28)); z-index: -1; }
.hero-inner { padding-top: 104px; }
.hero-panel {
  max-width: 620px;
  padding: clamp(38px, 5vw, 64px);
  background: rgba(9, 29, 23, .87);
  border: 1px solid rgba(216,191,126,.24);
  box-shadow: var(--shadow);
  backdrop-filter: blur(3px);
}
.hero-eyebrow { margin: 0 0 14px; color: var(--gold-light); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; font-family: var(--serif); font-size: clamp(3.3rem, 7vw, 6.65rem); font-weight: 400; line-height: .93; letter-spacing: -.055em; }
.hero-copy { max-width: 510px; margin: 27px 0 0; color: rgba(255,255,255,.9); font-size: clamp(1rem, 1.8vw, 1.18rem); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 33px; }
.btn { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid transparent; text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .045em; transition: transform .18s ease, background .18s ease, color .18s ease, border .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--forest-soft); border-color: rgba(255,255,255,.25); }
.btn-primary:hover { background: #315c4b; }
.btn-outline { color: var(--gold-light); border-color: var(--gold); background: rgba(0,0,0,.08); }
.btn-outline:hover { color: var(--forest-deep); background: var(--gold-light); }
.btn-gold { color: var(--forest-deep); background: var(--gold-light); }
.btn-gold:hover { background: #ead49b; }
.hero-note { position: absolute; right: 26px; bottom: 18px; color: rgba(255,255,255,.68); font-size: .7rem; letter-spacing: .04em; }

/* Overview */
.overview { background: var(--paper); }
.overview-grid { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.25fr); gap: clamp(50px, 7vw, 94px); align-items: center; }
.editorial-copy p:not(.section-kicker) { margin: 0 0 18px; color: var(--ink-soft); }
.editorial-copy p:last-child { margin-bottom: 0; }
.overview-media { position: relative; padding: 0 0 55px 54px; }
.overview-media::before { content: ''; position: absolute; left: 0; bottom: 0; width: 66%; height: 82%; background: #e5dfd1; }
.image-main { position: relative; z-index: 1; width: 74%; aspect-ratio: 4/5; object-fit: cover; box-shadow: 0 20px 44px rgba(25,34,29,.16); }
.image-inset { position: absolute; z-index: 2; right: 0; bottom: 0; width: 55%; aspect-ratio: 1.12; object-fit: cover; border: 9px solid var(--paper); box-shadow: 0 20px 42px rgba(20,30,25,.18); }
.overview-caption { position: relative; z-index: 3; max-width: 410px; margin: 24px 0 0 4px; color: var(--ink-soft); font-family: var(--serif); font-size: 1.05rem; font-style: italic; }

/* Neighbourhood phases */
.phases { color: #fff; background: var(--forest-deep); }
.phases .section-title { color: #fff; }
.phases .section-intro { color: rgba(255,255,255,.72); }
.phase-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid rgba(255,255,255,.13); }
.phase-card { position: relative; padding: 43px clamp(28px, 3vw, 42px); background: rgba(255,255,255,.025); }
.phase-card + .phase-card { border-left: 1px solid rgba(255,255,255,.13); }
.phase-number { display: block; margin-bottom: 20px; color: var(--gold-light); font-family: var(--serif); font-size: 2.25rem; line-height: 1; }
.phase-card h3 { margin: 0 0 13px; font-family: var(--serif); font-size: 1.65rem; font-weight: 400; }
.phase-card p { margin: 0; color: rgba(255,255,255,.68); font-size: .92rem; }
.phase-card strong { color: #fff; font-weight: 600; }
.phase-note { margin: 24px 0 0; color: rgba(255,255,255,.6); text-align: center; font-size: .76rem; }

/* Architecture cards */
.character { background: var(--ivory); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 23px; }
.market-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 13px 34px rgba(20,33,27,.06); }
.card-image { position: relative; overflow: hidden; }
.card-image img { width: 100%; aspect-ratio: 1.34; object-fit: cover; transition: transform .65s ease; }
.market-card:hover .card-image img { transform: scale(1.025); }
.card-icon { position: absolute; left: 50%; bottom: 0; width: 58px; height: 58px; display: grid; place-items: center; color: var(--gold-light); background: var(--forest); border: 3px solid var(--paper); border-radius: 50%; transform: translate(-50%, 50%); }
.card-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.card-body { padding: 47px 29px 31px; text-align: center; }
.card-body h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 1.44rem; font-weight: 400; }
.card-body p { margin: 0; color: var(--ink-soft); font-size: .9rem; }

/* Market factors */
.market-factors { background: var(--paper); border-top: 1px solid var(--line); }
.factor-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 48px; border: 1px solid var(--line); }
.factor { min-height: 260px; padding: 34px 27px; }
.factor + .factor { border-left: 1px solid var(--line); }
.factor svg { width: 31px; height: 31px; margin-bottom: 17px; fill: none; stroke: var(--gold); stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }
.factor h3 { margin: 0 0 12px; font-family: var(--serif); font-size: 1.25rem; font-weight: 400; }
.factor p { margin: 0; color: var(--ink-soft); font-size: .88rem; }
.considerations-note { max-width: 940px; margin: 31px auto 0; padding: 19px 24px; color: var(--ink-soft); background: var(--ivory); border-left: 3px solid var(--gold); font-size: .86rem; }

/* Buying/Selling */
.transactions { position: relative; background: linear-gradient(135deg, #efe9dd, #fbfaf5); border-block: 1px solid var(--line); }
.transactions::before { content: ''; position: absolute; inset: 0; opacity: .06; background-image: var(--transaction-image); background-size: cover; background-position: center; }
.transaction-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; }
.transaction-panel { padding: 65px clamp(36px, 6vw, 78px); }
.transaction-panel + .transaction-panel { border-left: 1px solid var(--stone-dark); }
.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(--forest); border-radius: 50%; }
.round-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.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(--forest-deep); overflow: hidden; }
.sponsor-section::before {
  content: '';
  position: absolute;
  inset: 0 0 0 auto;
  width: 47%;
  opacity: .14;
  background:
    linear-gradient(120deg, transparent 47%, var(--gold-light) 48%, transparent 49%) 10% 70% / 70px 70px,
    linear-gradient(60deg, transparent 47%, var(--gold-light) 48%, transparent 49%) 30% 55% / 110px 110px,
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(213,188,123,.45) 29px 30px) 70% 74% / 280px 110px no-repeat;
}
.sponsor-inner { position: relative; display: grid; grid-template-columns: 245px 1fr 285px; gap: clamp(30px, 5vw, 67px); align-items: center; padding-block: 58px; }
.sponsor-portrait { aspect-ratio: 4/5; overflow: hidden; background: #d8d4ca; border: 1px solid rgba(213,188,123,.55); box-shadow: 0 18px 38px rgba(0,0,0,.2); }
.sponsor-portrait img { width: 100%; height: 100%; object-fit: cover; }
.placeholder-person { width: 100%; height: 100%; display: grid; place-items: center; color: #72776f; background: linear-gradient(145deg,#e4e0d6,#c6c4bc); }
.placeholder-person svg { width: 66%; height: 66%; fill: currentColor; opacity: .55; }
.sponsor-content h2 { margin: 0; color: var(--gold-light); font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 400; line-height: 1.05; }
.sponsor-content .gold-rule { margin: 18px 0 21px; }
.sponsor-content p { max-width: 630px; margin: 0 0 17px; color: rgba(255,255,255,.75); }
.sponsor-content .btn { margin-top: 12px; }
.sponsor-identity { padding: 24px 0 24px 32px; border-left: 1px solid rgba(213,188,123,.45); }
.sponsor-identity h3 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.sponsor-identity p { margin: 5px 0; color: rgba(255,255,255,.7); font-size: .85rem; }
.sponsor-identity a { color: var(--gold-light); text-decoration: none; overflow-wrap: anywhere; }
.sponsor-status { color: var(--gold-light) !important; font-size: .73rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* Contact */
.contact-section { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(45px, 7vw, 90px); align-items: start; }
.contact-form-wrap, .contact-copy { padding-top: 4px; }
.contact-form-wrap h2, .contact-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 400; }
.contact-form { display: grid; gap: 13px; margin-top: 27px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.contact-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; color: var(--ink); background: #fff; border: 1px solid var(--stone-dark); border-radius: 0; outline: 0; }
.contact-form input, .contact-form select { height: 50px; padding: 0 15px; }
.contact-form textarea { min-height: 135px; padding: 13px 15px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--forest-soft); box-shadow: 0 0 0 2px rgba(36,70,58,.12); }
.contact-form .btn { width: max-content; border: 0; cursor: pointer; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-status { margin: 18px 0 0; padding: 12px 15px; font-size: .86rem; }
.form-status.success { color: #1e5b3a; background: #e7f4eb; }
.form-status.error { color: #7a2929; background: #faeaea; }
.contact-copy p { color: var(--ink-soft); }
.contact-detail { display: grid; grid-template-columns: 1fr 185px; gap: 27px; align-items: end; }
.contact-detail img { width: 100%; aspect-ratio: .82; object-fit: cover; }
.contact-note { margin-top: 23px; padding: 18px 20px; color: var(--ink-soft); background: var(--ivory); border: 1px solid var(--line); font-size: .82rem; }

/* Footer */
.site-footer { color: rgba(255,255,255,.69); background: #101714; }
.footer-main { display: grid; grid-template-columns: 1fr auto; gap: 55px; align-items: start; padding-block: 46px 33px; }
.footer-disclosure { max-width: 760px; margin: 0; font-size: .76rem; line-height: 1.7; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 25px; }
.footer-nav a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .76rem; }
.footer-nav a:hover { color: var(--gold-light); }
.source-notes { border-top: 1px solid rgba(255,255,255,.09); }
.source-notes summary { padding: 16px 0; color: rgba(255,255,255,.6); cursor: pointer; font-size: .72rem; }
.source-notes div { max-width: 960px; padding: 0 0 20px; font-size: .69rem; line-height: 1.7; }
.source-notes a { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding: 20px 0 28px; border-top: 1px solid rgba(255,255,255,.09); font-size: .68rem; }

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

/* Focus */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

@media (max-width: 1080px) {
  .primary-nav { gap: 16px; }
  .primary-nav > a { font-size: .72rem; }
  .sponsor-inner { grid-template-columns: 190px 1fr; }
  .sponsor-identity { grid-column: 2; padding: 0; border: 0; }
}

@media (max-width: 900px) {
  .container { width: min(calc(100% - 34px), var(--container)); }
  .header-inner { min-height: 68px; }
  .menu-toggle { display: block; z-index: 1002; }
  .primary-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    padding: 82px 28px 34px;
    background: rgba(8,24,19,.99);
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  .menu-open .primary-nav { transform: none; }
  .primary-nav > a { padding: 12px 4px; font-family: var(--serif); font-size: 1.45rem; border-bottom: 1px solid rgba(255,255,255,.09); }
  .primary-nav .header-cta { margin-top: 18px; padding: 13px 16px; text-align: center; font-family: var(--sans); font-size: .78rem; }
  .menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { min-height: 710px; background-position: 62% center; }
  .hero-panel { max-width: 590px; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-media { max-width: 720px; margin: 0 auto; }
  .phase-grid { grid-template-columns: 1fr; }
  .phase-card + .phase-card { border-left: 0; border-top: 1px solid rgba(255,255,255,.13); }
  .card-grid { grid-template-columns: 1fr; max-width: 720px; margin-inline: auto; }
  .card-image img { aspect-ratio: 1.75; }
  .factor-grid { grid-template-columns: 1fr 1fr; }
  .factor:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .factor:nth-child(4) { border-top: 1px solid var(--line); }
  .transaction-grid { grid-template-columns: 1fr; }
  .transaction-panel + .transaction-panel { border-left: 0; border-top: 1px solid var(--stone-dark); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; gap: 27px; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { width: min(calc(100% - 26px), var(--container)); }
  .site-brand { display: block; line-height: 1.05; white-space: normal; }
  .brand-main { display: block; font-size: 1.25rem; }
  .brand-tail { display: block; margin-top: 3px; font-size: .77rem; }
  .hero { min-height: 750px; align-items: flex-end; background-position: 62% center; }
  .hero-inner { padding: 120px 0 54px; }
  .hero-panel { padding: 29px 24px 31px; }
  .hero h1 { font-size: clamp(3.25rem, 16vw, 4.8rem); }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .hero-note { display: none; }
  .section { padding: 72px 0; }
  .section-title { font-size: clamp(2.25rem, 12vw, 3.25rem); }
  .overview-media { padding: 0 0 42px 22px; }
  .image-main { width: 83%; }
  .image-inset { width: 59%; border-width: 6px; }
  .phase-card { padding: 34px 25px; }
  .factor-grid { grid-template-columns: 1fr; }
  .factor + .factor { border-left: 0; border-top: 1px solid var(--line); }
  .factor { min-height: 0; }
  .transaction-panel { padding: 47px 25px; }
  .transaction-heading { align-items: flex-start; }
  .sponsor-inner { grid-template-columns: 1fr; padding-block: 48px; }
  .sponsor-portrait { width: min(72vw, 265px); }
  .sponsor-identity { grid-column: auto; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form .btn { width: 100%; }
  .contact-detail { grid-template-columns: 1fr; }
  .contact-detail img { max-width: 230px; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
