/* rmppm.ca. Type scale 13/16/20/25/31/39/49/61. Spacing scale 4/8/12/16/24/32/48/64/96/128.
   One accent (the brand orange, darkened to pass 4.5:1 with white), one radius, one shadow.
   2026-11-27: serif headings, hairline rules instead of card boxes, light hero, owner-first order. */
:root {
  --ink: #141414;
  --muted: #4a5561;
  --navy: #002d4c;
  --accent: #c7370b;
  --accent-dark: #a32c08;
  --tint: #f5f2ee;
  --line: #e2ddd6;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.10);
  --ease: 200ms ease-out;
  --head: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --body: 'Open Sans', 'Segoe UI', Arial, sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 16px/1.6 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--head); font-weight: 600; line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: 49px; line-height: 1.1; }
h2, .h2 { font-size: 39px; }
h3 { font-size: 20px; line-height: 1.3; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
address { font-style: normal; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color var(--ease); }
a:hover { color: var(--accent-dark); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.5; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.stack > * + * { margin-top: 16px; }
.section { padding: 96px 0; }
.section--tint { background: var(--tint); }
.section-head { max-width: 65ch; margin-bottom: 48px; }
.section-head .lead { margin-top: 16px; }
.lead { font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.prose { max-width: 65ch; }
.prose > * + * { margin-top: 16px; }

.skip { position: absolute; left: 16px; top: -64px; z-index: 100; padding: 12px 16px; background: var(--navy); color: var(--white); border-radius: var(--radius); }
.skip:focus { top: 16px; color: var(--white); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border: 2px solid transparent; border-radius: var(--radius);
  font: 600 16px/1.2 var(--body); text-decoration: none; cursor: pointer; transition: background-color var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn--primary { background: var(--accent); color: var(--white); box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--accent-dark); color: var(--white); box-shadow: var(--shadow-hover); }
.btn--outline { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--navy); color: var(--white); }
.btn[disabled] { opacity: 0.7; cursor: progress; }
.btn-text { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.btn-text svg { width: 16px; height: 16px; transition: transform var(--ease); }
.btn-text:hover { color: var(--navy); }
.btn-text:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand img { height: 48px; width: auto; }
.brand-name { display: flex; flex-direction: column; font: 600 20px/1.2 var(--head); }
.brand-name span + span { font: 400 13px/1.5 var(--body); color: var(--muted); }
.brand:hover { color: var(--ink); }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-list a { display: flex; align-items: center; min-height: 44px; padding: 8px 12px; border-radius: var(--radius); color: var(--ink); font-weight: 600; text-decoration: none; }
.nav-list a:hover { background: var(--tint); color: var(--ink); }
.header-tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 8px 12px; border: 1px solid var(--navy); border-radius: var(--radius); color: var(--navy); font-weight: 600; text-decoration: none; white-space: nowrap; }
.header-tel svg { width: 20px; height: 20px; flex: none; }
.header-tel:hover { background: var(--navy); color: var(--white); }
.tel-short { display: none; }
.menu-toggle { display: none; width: 48px; height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.bars { display: flex; flex-direction: column; justify-content: space-between; width: 24px; height: 16px; }
.bars i { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform var(--ease), opacity var(--ease); }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1099px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-row { gap: 12px; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; display: none; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-hover); }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .nav-list a { padding: 12px 16px; }
}

/* ---------- Hero: real photo, no tint ---------- */
.hero { padding: 64px 0 0; }
.hero-grid { display: grid; grid-template-columns: 6fr 5fr; gap: 64px; align-items: center; }
.hero-media { order: 2; }
.hero-media img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 70% 100%; border-radius: var(--radius); }
.kicker { font-size: 16px; font-weight: 600; color: var(--muted); }
.hero h1 { margin-top: 16px; max-width: 16ch; }
.hero-lead { margin-top: 24px; font-size: 20px; line-height: 1.5; color: var(--muted); max-width: 44ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-top: 32px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { display: flex; align-items: baseline; gap: 12px; padding: 24px 0; }
.facts li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.facts strong { font: 600 31px/1 var(--head); color: var(--navy); }
.facts span { color: var(--muted); }

/* ---------- Layout pieces ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--form { align-items: start; grid-template-columns: 5fr 6fr; }
.media img { width: 100%; border-radius: var(--radius); }
.media figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* Rundle Park: three plain points under a rule, then the one CTA band */
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.points li { padding-top: 24px; border-top: 2px solid var(--navy); }
.points p { margin-top: 8px; color: var(--muted); }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; margin-top: 64px; padding: 48px; background: var(--navy); color: var(--white); border-radius: var(--radius); }
.offer-label { font-weight: 600; color: var(--white); opacity: 0.85; }
.offer h3 { margin-top: 8px; color: var(--white); font-size: 31px; max-width: 22ch; }
.offer-text p:last-child { margin-top: 16px; max-width: 55ch; }
.offer-action { display: grid; gap: 12px; justify-items: center; }
.offer-action p { font-size: 16px; }
.offer-action p a { color: var(--white); font-weight: 600; }

/* Services: one real photo beside plain rows */
.services-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
.services-intro { position: sticky; top: 96px; }
.services-intro .lead { margin-top: 16px; }
.services-intro .media { margin-top: 32px; }
.services-intro img { aspect-ratio: 4 / 3; object-fit: cover; }
.rows li { padding: 24px 0; border-top: 1px solid var(--line); }
.rows li:last-child { border-bottom: 1px solid var(--line); }
.rows p { margin-top: 8px; max-width: 60ch; }

/* Zoning map */
.media--map img { background: var(--white); border: 1px solid var(--line); }
.media--map figcaption a { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; }

/* Homes rail: grid on desktop, swipe on phones */
.rail-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.rail img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.rail figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Reviews: open type, no boxes */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.review { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.review blockquote { margin: 0; font-family: var(--head); font-weight: 400; font-size: 20px; line-height: 1.5; }
.review-by { display: flex; align-items: center; gap: 12px; }
.review-by img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.review-by p { display: flex; flex-direction: column; line-height: 1.4; }
.review-by span { font-size: 13px; color: var(--muted); }
.more-reviews { margin-top: 48px; }
.more-reviews summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--navy); text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.more-reviews[open] summary { margin-bottom: 32px; }

/* Owner contact */
.call-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.call-buttons .btn { padding: 12px 16px; }
.office { display: grid; gap: 16px; margin: 32px 0 0; }
.office dt { font-size: 13px; font-weight: 600; color: var(--muted); }
.office dd { margin: 4px 0 0; }
.office a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Forms ---------- */
.form-card { padding: 48px; }
.form-card h3 { font-size: 25px; }
.form-card form > p.small { margin-top: 8px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 16px; }
.hint { font-size: 13px; color: var(--muted); }
.req { color: var(--accent); }
input, select, textarea { width: 100%; min-height: 48px; padding: 12px; border: 1px solid #8a939c; border-radius: var(--radius); background: var(--white); color: var(--ink); font: 400 16px/1.5 var(--body); transition: border-color var(--ease), box-shadow var(--ease); }
textarea { resize: vertical; min-height: 96px; }
input:hover, select:hover, textarea:hover { border-color: var(--navy); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--navy); }
.has-error input, .has-error select, .has-error textarea { border-color: #b3261e; }
.field-error { color: #b3261e; font-size: 13px; font-weight: 600; line-height: 1.5; }
.form-actions { margin-top: 32px; }
.form-actions .btn { width: 100%; }
.form-status { margin-top: 16px; padding: 12px 16px; border-radius: var(--radius); background: #fdecea; color: #8c1d18; font-weight: 600; }
.form-success:focus { outline: none; }
.form-success > * + * { margin-top: 16px; }
.tick { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--white); }
.tick svg { width: 24px; height: 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Phone call bar (shown by site.js on small screens) ---------- */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; grid-template-columns: 1fr 1fr; gap: 12px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--shadow-hover);
  transform: translateY(100%); visibility: hidden; transition: transform var(--ease), visibility var(--ease); }
.callbar.is-shown { transform: none; visibility: visible; }
.callbar .btn { padding: 12px 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--tint); border-top: 1px solid var(--line); padding: 64px 0 32px; font-size: 16px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1.5fr 1fr; gap: 48px; }
.footer-brand p { margin-top: 16px; max-width: 40ch; color: var(--muted); }
.footer-col h2 { font: 600 13px/1.5 var(--body); color: var(--muted); margin-bottom: 16px; }
.footer-col p + p { margin-top: 4px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-col ul a { color: var(--ink); text-decoration: none; }
.footer-col ul a:hover { color: var(--accent); text-decoration: underline; }
.footer-base { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1099px) {
  .split--form { grid-template-columns: 1fr; gap: 48px; }
  .rail { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 899px) {
  .hero-grid, .split, .services-grid, .offer { grid-template-columns: 1fr; }
  .hero-grid { gap: 32px; }
  .hero-media { order: 0; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .split, .services-grid { gap: 48px; }
  .services-intro { position: static; }
  .points, .reviews { grid-template-columns: 1fr; gap: 32px; }
  .offer-action { justify-items: start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .wrap, .rail-wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 16px; }
  h1 { font-size: 36px; }
  h2, .h2 { font-size: 31px; }
  .lead, .hero-lead { font-size: 16px; }
  .hero-lead { margin-top: 16px; }
  .hero-actions { margin-top: 24px; gap: 8px; }
  .hero-actions .btn { width: 100%; }
  .facts { grid-template-columns: 1fr; margin-top: 48px; }
  .facts li { padding: 12px 0; }
  .facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts strong { font-size: 25px; min-width: 4ch; }
  .section-head { margin-bottom: 32px; }
  .offer { margin-top: 48px; padding: 32px 24px; }
  .offer h3 { font-size: 25px; }
  .offer-action { width: 100%; }
  .offer-action .btn { width: 100%; }
  .services-intro .media { display: none; }
  .rows li { padding: 16px 0; }
  .review blockquote { font-size: 16px; }
  /* Swipeable photo rail, bleeding to the screen edge */
  .rail-wrap { padding: 0; }
  .rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 16px 8px; scroll-padding-left: 16px; -webkit-overflow-scrolling: touch; }
  .rail li { flex: 0 0 80%; scroll-snap-align: start; }
  .call-buttons .btn { width: 100%; }
  .form-card { padding: 24px; }
  .fields { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-tel { padding: 8px 12px; height: 48px; }
  .tel-long { display: none; }
  .tel-short { display: inline; }
  .brand-name { font-size: 16px; }
  .brand img { height: 40px; }
  .callbar { display: grid; }
  .site-footer { padding-bottom: 96px; }
}
@media (max-width: 419px) {
  .brand-name span + span { display: none; }
}
