/* Romanow Real Estate — rrecalgary.ca
   Plain CSS, no framework. Brand: red + near-black from the logo. */

:root {
  --red: #d6002a;
  --red-dark: #a80021;
  --ink: #14171c;
  --ink-soft: #3b424d;
  --muted: #6b7380;
  --line: #e4e7ec;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 23, 28, .10);
  --max: 1160px;
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  line-height: 1.65; font-size: 17px; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-dark); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* ---- Top strip + header ---- */
.topbar { background: var(--ink); color: #d7dbe2; font-size: .88rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: .5rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 76px; }
.brand img { height: 42px; width: auto; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .8rem; font: inherit; cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.nav > ul > li { position: relative; }
.nav a { display: block; padding: .55rem .6rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .94rem; border-radius: 8px; white-space: nowrap; }
.nav a.btn { color: #fff; margin-left: .4rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); }
.has-sub > a::after { content: " ▾"; font-size: .7em; color: var(--muted); }
.nav .sub { position: absolute; left: 0; top: 100%; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: .4rem; display: none; flex-direction: column; align-items: stretch; gap: 0; }
.nav .has-sub:hover > .sub, .nav .has-sub:focus-within > .sub { display: flex; }
.sub a { font-weight: 500; }
.sub a:hover { background: var(--bg-soft); }

/* ---- Buttons ---- */
.btn { display: inline-block; padding: .85rem 1.5rem; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--red); background: var(--red); color: #fff; cursor: pointer; font-size: 1rem; font-family: inherit; transition: background .15s, color .15s, transform .15s; }
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: #fff; border-color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--ink); }
.btn.outline { background: transparent; color: var(--red); }
.btn.outline:hover { background: var(--red); color: #fff; }
.btn.sm { padding: .55rem 1.1rem; font-size: .92rem; }

/* ---- Hero ---- */
.hero { position: relative; color: #fff; background: #0c1628 url("../assets/img/hero.webp") center/cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8,14,28,.88) 0%, rgba(8,14,28,.62) 48%, rgba(8,14,28,.15) 100%); }
.hero .wrap { position: relative; padding-block: clamp(4rem, 11vw, 8rem); }
.hero .eyebrow { color: #ff8da2; }
.hero h1 { max-width: 15ch; margin-bottom: .4em; }
.hero p.lead { max-width: 56ch; font-size: 1.15rem; color: #e8ebf1; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .8rem; color: var(--red); margin-bottom: .8rem; }

/* ---- Sections ---- */
section { padding-block: clamp(3rem, 7vw, 5.5rem); }
.soft { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head p { color: var(--ink-soft); }
.center { text-align: center; margin-inline: auto; }

.cards { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .icon { width: 46px; height: 46px; display: grid; place-items: center; background: #fdecef; color: var(--red); border-radius: 12px; margin-bottom: 1rem; font-size: 1.35rem; }
.card p { color: var(--ink-soft); margin: 0; }

.split { display: grid; gap: clamp(1.5rem, 5vw, 4rem); grid-template-columns: 1fr 1fr; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }
.split.reverse > :first-child { order: 2; }
.checks { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; display: grid; gap: .7rem; }
.checks li { padding-left: 1.9rem; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800; }

/* ---- Rental analysis band ---- */
.band { background: var(--ink); color: #fff; }
.band .section-head p { color: #c8cdd6; }
.form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: var(--shadow); }
form .grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
form .full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .3rem; }
input, select, textarea { width: 100%; padding: .75rem .85rem; border: 1px solid #c9ced6; border-radius: 10px; font: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(214,0,42,.25); border-color: var(--red); }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin-top: .8rem; }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status.ok { color: #0d7a3f; } .form-status.err { color: var(--red-dark); }

/* ---- Testimonials ---- */
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; display: flex; flex-direction: column; gap: 1.2rem; }
.quote blockquote { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.quote footer { display: flex; align-items: center; gap: .9rem; margin-top: auto; }
.quote img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.quote strong { display: block; } .quote span { color: var(--muted); font-size: .9rem; }
.stars { color: #f5a623; letter-spacing: 2px; }

/* ---- Partners ---- */
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem 3.5rem; }
.logos img { height: 44px; width: auto; filter: grayscale(1); opacity: .8; transition: .2s; }
.logos a:hover img { filter: none; opacity: 1; }

/* ---- Inner page header ---- */
.page-head { background: var(--ink); color: #fff; padding-block: clamp(2.6rem, 6vw, 4.2rem); }
.page-head p { color: #c8cdd6; max-width: 62ch; margin: 0; }
.crumbs { font-size: .88rem; color: #aab1bd; margin-bottom: .6rem; }
.crumbs a { color: #fff; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.8em; font-size: 1.5rem; }

/* ---- Footer ---- */
.site-footer { background: var(--ink); color: #c8cdd6; padding-block: 3.5rem 1.5rem; font-size: .96rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1.6fr 1fr 1fr; }
.site-footer h3 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { border: 1px solid #3a414d; border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; }
.legal { border-top: 1px solid #2a303a; margin-top: 2.5rem; padding-top: 1.2rem; font-size: .85rem; color: #98a0ad; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); display: none; max-height: calc(100vh - 76px); overflow: auto; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: .6rem 1.25rem 1rem; }
  .nav .sub { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 1rem; }
  .has-sub > a::after { content: ""; }
  .split, .footer-grid, form .grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .topbar .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---- Video + map embeds ---- */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.videos { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.videos figcaption { font-weight: 600; margin-top: .6rem; }
.videos figure { margin: 0; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.map iframe { display: block; width: 100%; height: 360px; border: 0; }
.gbadge { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; text-decoration: none; color: var(--ink); font-weight: 600; background: #fff; }
.gbadge .stars { letter-spacing: 1px; }
.gbadge:hover { box-shadow: var(--shadow); color: var(--ink); }
