/* ==========================================================
   Michael Babor for Pitt Meadows City Council
   Palette and fonts: swap here. Matches the campaign ad
   (dark navy/charcoal, gold, white).
   ========================================================== */
:root {
  --navy:        #111a2b;  /* main dark background */
  --navy-2:      #18233a;  /* raised dark surfaces */
  --charcoal:    #1b1f27;  /* alternate dark section */
  --ink:         #0b111c;  /* footer / authorization bar */
  --gold:        #C9A24A;  /* accent (on dark) */
  --gold-light:  #e3c67f;  /* hover / highlights on dark */
  --gold-dark:   #8a6a1f;  /* gold text on light backgrounds */
  --white:       #ffffff;
  --cream:       #f6f3ec;  /* light section background */
  --text:        #1d2433;  /* body text on light */
  --muted:       #5b6474;  /* secondary text on light */
  --muted-dark:  #b9c0cc;  /* secondary text on dark */
  --line:        #e3ddcf;

  /* Placeholder highlight: bracketed text that still needs real content */
  --ph-bg:       #fff1b8;
  --ph-text:     #5a4300;
  --ph-border:   #d4a017;

  --font-block:  "Oswald", "Bebas Neue", Impact, "Arial Narrow", sans-serif;
  --font-script: "Great Vibes", "Brush Script MT", cursive;
  --font-body:   "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 10px;
  --maxw: 1120px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy);
}
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Placeholder highlight */
.ph {
  background: var(--ph-bg);
  color: var(--ph-text);
  border: 1px dashed var(--ph-border);
  border-radius: 4px;
  padding: 0.05em 0.35em;
  font-family: var(--font-body);
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  font-family: var(--font-block);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 1rem;
  text-decoration: none;
  padding: .8em 1.4em;
  border-radius: 6px;
  border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
  text-align: center;
}
.btn-sm { padding: .5em 1em; font-size: .9rem; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { border-color: var(--gold); color: var(--white); }
.btn-outline:hover { background: rgba(201,162,74,.15); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-2); }
.btn .ph { font-size: .85rem; }

.text-link { color: var(--gold-dark); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
.section-dark .text-link, .section-navy .text-link { color: var(--gold-light); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,17,28,.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(201,162,74,.25);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 16px; }
.brand { text-decoration: none; display: inline-flex; align-items: baseline; gap: .3em; white-space: nowrap; }
.brand-script { font-family: var(--font-script); color: var(--gold); font-size: 1.6rem; line-height: 1; }
.brand-block { font-family: var(--font-block); color: var(--white); font-weight: 700; font-size: 1.35rem; letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a:not(.btn) {
  color: var(--muted-dark); text-decoration: none; font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .08em;
}
.site-nav a:not(.btn):hover { color: var(--gold); }

/* ---------- Hero ---------- */
.hero {
  color: var(--white);
  background:
    radial-gradient(1000px 500px at 85% 10%, rgba(201,162,74,.12), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #0d1523 100%);
}
.hero-grid {
  display: grid; gap: 36px; align-items: center;
  padding-top: 44px; padding-bottom: 44px;
}
.hero-text { text-align: center; }
.hero-name { display: flex; flex-direction: column; align-items: center; }
.hero-name .script {
  font-family: var(--font-script); font-weight: 400; color: var(--gold);
  font-size: clamp(3rem, 12vw, 5rem); line-height: .9;
  margin-bottom: -.12em; position: relative; z-index: 1;
}
.hero-name .block {
  font-family: var(--font-block); font-weight: 700; color: var(--white);
  font-size: clamp(5rem, 26vw, 9.5rem); line-height: .95; letter-spacing: .02em;
}
.office {
  display: flex; flex-direction: column; align-items: center;
  font-family: var(--font-block); text-transform: uppercase; margin-top: 10px;
}
.office-for {
  display: flex; align-items: center; gap: 14px; width: 100%; max-width: 340px;
  color: var(--white); font-size: 1.05rem; letter-spacing: .2em; font-weight: 500;
}
.office-for::before, .office-for::after { content: ""; flex: 1; height: 2px; background: var(--gold); }
.office-city { font-size: clamp(1.7rem, 7vw, 2.3rem); font-weight: 600; letter-spacing: .04em; line-height: 1.1; margin-top: 4px; }
.office-council { font-size: clamp(2rem, 9vw, 2.9rem); font-weight: 700; color: var(--gold); letter-spacing: .04em; line-height: 1.05; }

.vote-line {
  margin: 28px auto 24px; display: inline-flex; flex-direction: column; gap: 2px;
  padding: 12px 22px; border: 1px solid rgba(201,162,74,.5); border-radius: 8px;
  background: rgba(201,162,74,.08);
}
.vote-line strong { font-family: var(--font-block); font-size: 1.45rem; letter-spacing: .05em; text-transform: uppercase; color: var(--white); font-weight: 600; }
.vote-line span { color: var(--muted-dark); font-size: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero-photo { margin: 0; }
.photo-placeholder {
  aspect-ratio: 4 / 5; width: 100%; max-width: 380px; margin: 0 auto;
  border-radius: 14px;
  border: 2px dashed rgba(201,162,74,.6);
  background: linear-gradient(160deg, var(--navy-2), #0e1624);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  padding: 24px; text-align: center;
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.photo-placeholder svg { width: 38%; fill: rgba(201,162,74,.35); }
.photo-placeholder .ph { font-size: .95rem; line-height: 1.5; }

.values-band { background: rgba(0,0,0,.28); border-top: 1px solid rgba(201,162,74,.25); padding: 22px 0 20px; text-align: center; }
.values {
  list-style: none; margin: 0 0 8px; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; row-gap: 6px;
  font-family: var(--font-block); text-transform: uppercase; letter-spacing: .1em; font-weight: 500;
  font-size: 1rem; color: var(--white);
}
.values li { padding: 0 14px; position: relative; }
.values li + li::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 2px; background: var(--gold);
}
.tagline {
  margin: 0; font-family: var(--font-block); text-transform: uppercase;
  letter-spacing: .12em; color: var(--gold); font-size: .95rem; font-weight: 500;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-light { background: var(--cream); color: var(--text); }
.section-dark  { background: var(--charcoal); color: var(--white); }
.section-navy  { background: var(--navy); color: var(--white); }

.eyebrow {
  font-family: var(--font-block); text-transform: uppercase; letter-spacing: .18em;
  font-size: .9rem; font-weight: 600; color: var(--gold-dark); margin-bottom: 6px;
}
.eyebrow-gold { color: var(--gold); }
.section-title {
  font-family: var(--font-block); text-transform: uppercase; font-weight: 700;
  font-size: clamp(2rem, 6vw, 2.8rem); letter-spacing: .02em; margin-bottom: 28px;
}
.section-title::after { content: ""; display: block; width: 64px; height: 3px; background: var(--gold); margin-top: 12px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 640px; margin-top: -8px; margin-bottom: 28px; }

/* Priorities */
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
.card {
  background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--gold);
  border-radius: var(--radius); padding: 22px 22px 18px;
  box-shadow: 0 2px 10px rgba(17,26,43,.05);
}
.card-num { font-family: var(--font-block); color: var(--gold-dark); font-weight: 600; letter-spacing: .1em; font-size: .9rem; }
.card h3 { font-family: var(--font-block); font-weight: 600; text-transform: uppercase; font-size: 1.3rem; letter-spacing: .02em; color: var(--navy); margin: 4px 0 8px; }
.card p { margin: 0; color: var(--muted); }

/* About */
.about-grid { display: grid; gap: 36px; }
.about-text p { color: #dfe3ea; max-width: 62ch; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr 1fr; align-content: start; }
.facts li {
  background: var(--navy-2); border: 1px solid rgba(201,162,74,.25); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 4px;
}
.fact-big { font-family: var(--font-block); font-weight: 700; color: var(--gold); font-size: 1.7rem; line-height: 1.1; }
.fact-label { color: var(--muted-dark); font-size: .92rem; line-height: 1.4; }

/* Get in touch */
.touch-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.touch-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; align-items: flex-start;
}
.touch-card h3 { font-family: var(--font-block); font-weight: 600; text-transform: uppercase; font-size: 1.25rem; color: var(--navy); margin-bottom: 8px; }
.touch-card p { color: var(--muted); }
.touch-card p strong { color: var(--text); }
.touch-card .btn { margin-top: auto; }
.small { font-size: .92rem; }

/* Voting */
.vote-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 24px; }
.vote-card { background: var(--navy-2); border: 1px solid rgba(201,162,74,.3); border-radius: var(--radius); padding: 20px 22px; }
.vote-card-main { background: var(--gold); border-color: var(--gold); }
.vote-card-main .vote-label { color: var(--navy); }
.vote-card-main .vote-date { color: var(--navy); }
.vote-label { font-family: var(--font-block); text-transform: uppercase; letter-spacing: .14em; font-size: .9rem; color: var(--gold); margin: 0 0 2px; font-weight: 600; }
.vote-date { font-family: var(--font-block); font-weight: 700; font-size: clamp(1.5rem, 5vw, 2rem); margin: 0; text-transform: uppercase; letter-spacing: .02em; }
.vote-note { color: #dfe3ea; max-width: 68ch; }
.vote-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--muted-dark); }
.footer-inner { display: grid; gap: 22px; padding-top: 40px; padding-bottom: 32px; }
.footer-brand .brand-script { font-size: 2rem; }
.footer-brand .brand-block { font-size: 1.7rem; }
.footer-sub { font-family: var(--font-block); text-transform: uppercase; letter-spacing: .14em; font-size: .85rem; margin: 4px 0 0; color: var(--gold); }
.footer-links p { margin: 0 0 8px; }
.footer-links a { color: var(--white); text-underline-offset: 3px; overflow-wrap: anywhere; }
.footer-label { display: inline-block; min-width: 88px; font-family: var(--font-block); text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--gold); }
.authorized { background: #000; border-top: 1px solid rgba(201,162,74,.3); }
.authorized p { margin: 0; padding: 14px 0; text-align: center; color: var(--white); font-weight: 700; font-size: .95rem; overflow-wrap: anywhere; }

/* ---------- Responsive ---------- */
@media (max-width: 719px) {
  .site-nav a:not(.btn) { display: none; }
}
@media (min-width: 600px) {
  .cards, .touch-grid, .vote-grid { grid-template-columns: 1fr 1fr; }
  .card-wide { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.15fr .85fr; padding-top: 64px; padding-bottom: 64px; }
  .hero-text { text-align: left; }
  .hero-name, .office { align-items: flex-start; }
  .hero-name .script { margin-left: .15em; }
  .office-for { max-width: 380px; }
  .hero-actions { justify-content: flex-start; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .card-wide { grid-column: span 3; }
  .about-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
  .touch-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
  .section { padding: 84px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- Layout fixes after preview review ---------- */
.brand-script { margin-right: .22em; }
.brand { gap: 0; }
@media (max-width: 899px) {
  .photo-placeholder { max-width: 300px; }
}
@media (min-width: 900px) {
  .touch-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
  .values { font-size: .8rem; letter-spacing: .05em; }
  .values li { padding: 0 8px; }
  .tagline { font-size: .82rem; letter-spacing: .07em; }
  .brand-script { font-size: 1.4rem; }
  .brand-block { font-size: 1.2rem; }
}

/* ---------- Hero photo ---------- */
.photo-frame {
  position: relative;
  width: 100%; max-width: 380px; margin: 0 auto;
}
.photo-frame::before {            /* gold offset frame behind the photo */
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 2px solid var(--gold); border-radius: 14px; z-index: 0;
}
.photo-frame img {
  position: relative; z-index: 1;
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 22px 50px rgba(0,0,0,.45);
}
@media (max-width: 899px) {
  .photo-frame { max-width: 300px; }
  .photo-frame::before { inset: 10px -10px -10px 10px; }
}

/* Get in touch: three cards */
@media (min-width: 600px) and (max-width: 899px) {
  .touch-grid .touch-card:last-child { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .touch-grid { grid-template-columns: repeat(3, 1fr); }
}
.touch-card .btn { margin-top: 4px; }
