/* ============================================================================
   landing.css — shared stylesheet for Vanmates SEO landing pages
   (/student-housing-canada/, /co-living-canada/, /homestay-canada/, campus &
   neighborhood pages, guides). Palette + nav/footer/hero/inventory/FAQ styles
   are lifted verbatim from the hand-authored city pages (toronto.html) so new
   pages are visually identical; the extra component blocks below (pricing,
   comparison, proof, lead form, zero-result) implement the audit's required
   page template. One source of truth avoids the per-page CSS drift the SEO
   audit flagged. Loaded root-absolute (<link href="/landing.css">) so it works
   from nested paths like /student-housing-canada/vancouver/.
   ========================================================================== */

:root {
  --cream: #FAF5ED; --cream-soft: #F5EEDF; --cream-card: #FFFDF8; --cream-deep: #EFE7D4;
  --red: #B94A3F; --red-hover: #A13A30; --red-soft: #F7E3DF;
  --ink: #2B211A; --ink-2: #54463B; --muted: #8A7B6C;
  --line: #E4DBC9; --success: #4CAF50;
  --shadow-sm: 0 2px 8px rgba(43,33,26,.05);
  --shadow-md: 0 8px 24px rgba(43,33,26,.08);
  --shadow-lg: 0 20px 60px rgba(43,33,26,.12);
  --max-w: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Plus Jakarta Sans', sans-serif; background: var(--cream); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* NAV */
.vm-nav { position: sticky; top: 0; z-index: 100; background: var(--cream); border-bottom: 1px solid transparent; transition: background .2s, border-color .2s, padding .2s; padding: 1rem 0; }
.vm-nav.scrolled { background: rgba(250,245,237,.94); backdrop-filter: blur(10px); border-bottom-color: var(--line); padding: .6rem 0; }
.nav-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 2rem; padding: 0 2rem; }
.nav-left, .nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-right { justify-content: flex-end; }
.nav-link { color: var(--ink); font-weight: 500; font-size: .92rem; transition: color .15s; }
.nav-link:hover { color: var(--red); text-decoration: none; }
.nav-chev { font-size: .7rem; color: var(--muted); margin-left: .2rem; }
.vm-logo img { height: 38px; width: auto; }
.lang { color: var(--ink-2); font-size: .85rem; display: inline-flex; align-items: center; gap: .4rem; }
.lang-flag { width: 18px; height: 12px; background: linear-gradient(to right, #fff 50%, #b94a3f 50%); border-radius: 1px; display: inline-block; }
.mobile-toggle { display: none; background: transparent; border: 0; padding: .4rem; width: 36px; height: 36px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.mobile-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; display: block; }
.nav-dropdown-wrap { position: relative; display: inline-block; }
.nav-dropdown { position: absolute; top: 100%; left: -.6rem; min-width: 200px; background: var(--cream-card); border: 1px solid var(--line); border-radius: 4px; padding: .85rem 0 .4rem; box-shadow: 0 8px 24px rgba(43,33,26,.08); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility 0s linear .15s; z-index: 110; }
.nav-dropdown-wrap:hover .nav-dropdown, .nav-dropdown-wrap:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); transition: opacity .15s, transform .15s, visibility 0s linear 0s; }
.nav-dropdown a { display: block; padding: .55rem 1rem; font-size: .88rem; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.nav-dropdown a:hover { background: var(--cream-soft); color: var(--red); }

/* BREADCRUMB */
.breadcrumb { max-width: var(--max-w); margin: 0 auto; padding: 1rem 2rem 0; font-size: .85rem; color: var(--muted); }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--red); text-decoration: none; }
.breadcrumb .sep { margin: 0 .4rem; color: var(--line); }

/* HERO */
.hero { padding: 2.5rem 2rem 3rem; background: linear-gradient(180deg, var(--cream) 0%, var(--cream-soft) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red); font-weight: 700; margin-bottom: 1rem; }
.eyebrow .dot { width: 8px; height: 8px; background: var(--red); border-radius: 50%; display: inline-block; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: clamp(2rem, 3.5vw, 2.85rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); margin-bottom: 1.1rem; }
.hero h1 .italic { font-style: italic; color: var(--red); }
.hero p.lede { font-size: 1.02rem; color: var(--ink-2); margin-bottom: 1.25rem; }
.hero .short-intro { font-size: .9rem; color: var(--muted); }
.hero-cta { display: inline-flex; align-items: center; gap: .55rem; background: var(--red); color: var(--cream-card); padding: .85rem 1.4rem; border-radius: 3px; font-weight: 600; font-size: .95rem; margin-top: 1.25rem; transition: background .15s; }
.hero-cta:hover { background: var(--red-hover); text-decoration: none; }
.hero-cta.secondary { background: transparent; color: var(--red); border: 1px solid var(--red); margin-left: .5rem; }
.hero-cta.secondary:hover { background: var(--red-soft); }
.hero-cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; }

.hero-stats { background: var(--cream-card); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; box-shadow: var(--shadow-sm); }
.hero-stats h3 { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .9rem; }
.hero-stats ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .7rem; font-size: .9rem; color: var(--ink-2); }
.hero-stats strong { color: var(--ink); font-weight: 700; }

/* SECTIONS */
section.band { max-width: var(--max-w); margin: 0 auto; padding: 3.5rem 2rem; }
.section-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); margin-bottom: .5rem; }
.section-head h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 600; line-height: 1.15; color: var(--ink); margin-bottom: 1rem; }
.section-head h2 .italic { font-style: italic; color: var(--red); }
.section-head p { font-size: 1rem; color: var(--ink-2); max-width: 700px; margin-bottom: 2rem; }

/* PRICING BLOCK (audit template item 2: price range + what's included + last-updated) */
.pricing-block { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.price-card { background: var(--cream-card); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; box-shadow: var(--shadow-sm); }
.price-card .pc-type { font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.price-card .pc-amount { font-family: 'Playfair Display', serif; font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.price-card .pc-amount span { font-size: .9rem; color: var(--muted); font-weight: 400; }
.price-card .pc-includes { font-size: .88rem; color: var(--ink-2); margin-top: .6rem; }
.last-updated { font-size: .8rem; color: var(--muted); margin-top: 1rem; font-style: italic; }

/* COMMUTE / CAMPUS LIST */
.uni-list, .commute-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; margin-top: 1rem; }
.uni-list li, .commute-list li { font-size: .92rem; color: var(--ink-2); padding-left: 1.25rem; position: relative; }
.uni-list li::before, .commute-list li::before { content: "→"; position: absolute; left: 0; color: var(--red); font-weight: 700; }
.uni-list strong, .commute-list strong { color: var(--ink); }

/* NEIGHBORHOODS / GENERIC CARD GRID */
.nbhd-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.nbhd { background: var(--cream-card); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; box-shadow: var(--shadow-sm); }
.nbhd h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 600; color: var(--ink); margin-bottom: .25rem; }
.nbhd-tag { font-size: .85rem; color: var(--red); font-weight: 600; margin-bottom: .8rem; }
.nbhd-body { font-size: .93rem; color: var(--ink-2); line-height: 1.6; }

/* PRODUCT CARDS */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.5rem; }
.product-card { background: var(--cream-card); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; transition: transform .15s, box-shadow .15s; }
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); text-decoration: none; }
.product-card h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.product-card p { font-size: .9rem; color: var(--ink-2); line-height: 1.55; margin-bottom: 1rem; }
.product-card .pc-cta { font-size: .85rem; font-weight: 600; color: var(--red); }

/* COMPARISON TABLE (audit template item 5) */
.compare-wrap { margin-top: 1.5rem; overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--cream-card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: .92rem; min-width: 560px; }
.compare-table th, .compare-table td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.compare-table thead th { background: var(--cream-soft); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); font-weight: 700; }
.compare-table tbody th { font-weight: 600; color: var(--ink); }
.compare-table tr:last-child td, .compare-table tr:last-child th { border-bottom: 0; }

/* LIVE INVENTORY (embedded module) */
.inv-band { background: var(--cream-deep); padding: 3.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.inv-band .section-head { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem 1rem; }
.inv-grid { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.inv-card { background: var(--cream-card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; box-shadow: var(--shadow-sm); }
.inv-card .inv-img { width: 100%; aspect-ratio: 16/10; background: var(--cream-soft) center/cover no-repeat; }
.inv-card .inv-body { padding: 1rem 1.1rem; }
.inv-card .inv-title { font-weight: 700; font-size: .95rem; color: var(--ink); margin-bottom: .35rem; }
.inv-card .inv-meta { font-size: .82rem; color: var(--muted); margin-bottom: .55rem; }
.inv-card .inv-price { font-size: .9rem; color: var(--red); font-weight: 700; }
.inv-loading, .inv-empty { max-width: var(--max-w); margin: 0 auto; padding: 1rem 2rem; color: var(--muted); font-size: .92rem; }
.inv-cta { max-width: var(--max-w); margin: 0 auto; padding: 1.5rem 2rem 0; text-align: center; }
.inv-cta a { display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.6rem; background: var(--ink); color: var(--cream-card); border-radius: 3px; font-weight: 600; font-size: .92rem; }
.inv-cta a:hover { background: var(--red); text-decoration: none; }

/* ZERO-RESULT / FALLBACK (audit 7.2: every visitor has a next step) */
.inv-fallback { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.inv-fallback-inner { background: var(--cream-card); border: 1px solid var(--line); border-radius: 8px; padding: 1.75rem; box-shadow: var(--shadow-sm); }
.inv-fallback h3 { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--ink); margin-bottom: .5rem; }
.inv-fallback p { font-size: .93rem; color: var(--ink-2); margin-bottom: 1rem; }
.inv-fallback .alt-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.inv-fallback .alt-links a { font-size: .85rem; padding: .45rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: var(--cream); }
.inv-fallback .alt-links a:hover { border-color: var(--red); color: var(--red); text-decoration: none; }

/* PROOF / TRUST (audit template item 6) */
.proof-band { background: var(--cream-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-inner { max-width: var(--max-w); margin: 0 auto; padding: 3rem 2rem; }
.proof-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.proof-stat { text-align: center; }
.proof-stat .ps-num { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 700; color: var(--red); }
.proof-stat .ps-label { font-size: .82rem; color: var(--muted); }
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.review-card { background: var(--cream-card); border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem; box-shadow: var(--shadow-sm); }
.review-card .rc-stars { color: var(--red); font-size: .9rem; margin-bottom: .5rem; }
.review-card .rc-body { font-size: .92rem; color: var(--ink-2); font-style: italic; margin-bottom: .7rem; }
.review-card .rc-author { font-size: .82rem; color: var(--muted); font-weight: 600; }

/* FAQ */
.city-faq { background: var(--cream-card); border: 1px solid var(--line); border-radius: 6px; padding: 0; margin-bottom: .65rem; }
.city-faq summary { list-style: none; padding: 1rem 1.25rem; font-weight: 600; cursor: pointer; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: .95rem; }
.city-faq summary::-webkit-details-marker { display: none; }
.city-faq summary::after { content: "+"; color: var(--red); font-size: 1.4rem; font-weight: 300; transition: transform .2s; }
.city-faq[open] summary::after { content: "−"; }
.city-faq-a { padding: 0 1.25rem 1.25rem; font-size: .92rem; color: var(--ink-2); line-height: 1.6; }

/* LEAD FORM (audit section 7: fallback capture / get matched) */
.lead-form-band { background: var(--cream-deep); border-top: 1px solid var(--line); }
.lead-form-inner { max-width: 760px; margin: 0 auto; padding: 3rem 2rem; }
.lead-form { background: var(--cream-card); border: 1px solid var(--line); border-radius: 10px; padding: 1.75rem; box-shadow: var(--shadow-md); }
.lead-form .lf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.lead-form label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.lead-form input, .lead-form select, .lead-form textarea { width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: 4px; font-family: inherit; font-size: .92rem; color: var(--ink); background: var(--cream); }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus { outline: 2px solid var(--red-soft); border-color: var(--red); }
.lead-form .lf-full { grid-column: 1 / -1; }
.lead-form button { width: 100%; background: var(--red); color: var(--cream-card); border: 0; padding: .9rem; border-radius: 4px; font-weight: 700; font-size: .95rem; cursor: pointer; transition: background .15s; }
.lead-form button:hover { background: var(--red-hover); }
.lead-form .lf-consent { font-size: .78rem; color: var(--muted); margin-top: .8rem; }
.lf-success { display: none; background: #EEF7EE; border: 1px solid var(--success); border-radius: 8px; padding: 1.5rem; color: #2E6B31; font-size: .95rem; }
.lf-success.show { display: block; }

/* CTA BAND */
.cta-band { background: linear-gradient(135deg, #2B211A 0%, #3A2D22 100%); color: var(--cream); padding: 3rem 2rem; text-align: center; border-radius: 8px; margin: 2rem auto 3.5rem; max-width: calc(var(--max-w) - 4rem); }
.cta-band h2 { font-family: 'Playfair Display', serif; font-size: 1.9rem; font-weight: 600; margin-bottom: .8rem; }
.cta-band p { color: rgba(250,245,237,.85); margin-bottom: 1.5rem; font-size: 1rem; }
.cta-band .ctas { display: inline-flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.cta-band .btn-primary { background: var(--red); color: var(--cream-card); padding: .85rem 1.4rem; border-radius: 3px; font-weight: 600; font-size: .92rem; }
.cta-band .btn-secondary { background: rgba(250,245,237,.12); border: 1px solid rgba(250,245,237,.3); color: var(--cream-card); padding: .85rem 1.4rem; border-radius: 3px; font-weight: 600; font-size: .92rem; }
.cta-band a:hover { text-decoration: none; }

/* PROSE (guides) */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 1rem; color: var(--ink-2); margin-bottom: 1.1rem; }
.prose h2 { font-family: 'Playfair Display', serif; font-size: 1.7rem; color: var(--ink); margin: 2rem 0 1rem; }
.prose h3 { font-size: 1.2rem; color: var(--ink); margin: 1.5rem 0 .6rem; }
.prose ul, .prose ol { margin: 0 0 1.1rem 1.25rem; color: var(--ink-2); font-size: 1rem; }
.prose li { margin-bottom: .4rem; }

/* MOBILE STICKY CTA (audit 7.2: persistent "Get matched" on mobile) */
.mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; background: var(--cream-card); border-top: 1px solid var(--line); padding: .6rem 1rem; box-shadow: 0 -4px 16px rgba(43,33,26,.08); gap: .5rem; }
.mobile-cta a { flex: 1; text-align: center; padding: .75rem; border-radius: 4px; font-weight: 700; font-size: .9rem; }
.mobile-cta .mc-primary { background: var(--red); color: var(--cream-card); }
.mobile-cta .mc-secondary { background: var(--cream-soft); color: var(--ink); border: 1px solid var(--line); }

/* FOOTER */
.vm-footer { background: var(--cream-deep); padding: 3.5rem 2rem 1.5rem; color: var(--ink-2); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand p { margin-top: .85rem; font-size: .86rem; color: var(--ink-2); line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin-bottom: .85rem; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.footer-col ul li a { color: var(--ink-2); font-size: .9rem; transition: color .15s; }
.footer-col ul li a:hover { color: var(--red); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; font-size: .82rem; color: var(--muted); }
.footer-bottom .legal { display: flex; gap: 1rem; }

@media (max-width: 960px) {
  .hero-inner, .nbhd-grid, .product-grid, .inv-grid, .pricing-block, .proof-stats, .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .proof-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .nav-inner { padding: 0 1rem; gap: .5rem; }
  .nav-left .nav-link, .nav-right .nav-link, .nav-right .lang { display: none; }
  .mobile-toggle { display: flex; }
  .vm-logo img { height: 32px; }
  .hero { padding: 2rem 1rem 2.5rem; }
  section.band { padding: 2.5rem 1rem; }
  .inv-band .section-head, .inv-grid, .inv-cta, .inv-fallback { padding-left: 1rem; padding-right: 1rem; }
  .cta-band { margin: 1rem 1rem 2rem; padding: 2rem 1rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .lead-form .lf-row { grid-template-columns: 1fr; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 64px; }
}
