/* N-Hance Ottawa-Nepean — site styles */
:root {
  --orange: #fd5a03;       /* brand orange (from logo) */
  --orange-dark: #e04e00;  /* buttons: better contrast for white text */
  --charcoal: #3d3d3f;
  --grey: #646466;         /* brand grey (from logo) */
  --muted: #5f6368;
  --line: #e4e4e6;
  --bg-soft: #f6f6f7;
  --white: #fff;
  --radius: 14px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); color: var(--charcoal); line-height: 1.55; background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; color: var(--charcoal); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.section { padding: clamp(48px, 8vw, 88px) 0; }
.section--soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 36px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark); margin-bottom: 8px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; transition: transform .15s ease, background .15s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--orange-dark); color: var(--white); }
.btn--primary:hover { background: #c94500; }
.btn--outline { background: var(--white); color: var(--orange-dark); border-color: var(--orange-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: auto; height: 40px; }
.brand-location { padding-left: 12px; border-left: 1px solid #d6d6d8; color: var(--grey); font-weight: 600; font-size: .95rem; letter-spacing: .01em; line-height: 28px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { text-decoration: none; color: var(--charcoal); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--orange-dark); }
.nav .btn { color: var(--white); padding: 10px 18px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--charcoal); margin: 5px 0; transition: transform .2s; }
.header-call { display: none; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .header-call { display: inline-flex; padding: 8px 14px; font-size: .9rem; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border-bottom: 1px solid var(--line); display: none; padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border-bottom: 0; }
}

/* Hero
   Wide screens: the full banner image, scaled (never cropped).
   Narrow screens: the same message rebuilt in HTML so nothing gets cut off. */
.hero-banner { background: var(--white); }
.hero-banner img { width: 100%; max-width: 1600px; margin: 0 auto; aspect-ratio: 1600 / 595; }
.hero-mobile { display: none; }
.hero-cta { padding: 22px 0 8px; }
@media (max-width: 760px) {
  .hero-banner { display: none; }
  .hero-mobile { display: block; text-align: center; padding: 28px 0 8px; background: linear-gradient(180deg, #fff 0%, #fff 60%, var(--bg-soft) 100%); }
  .hero-mobile img { width: 150px; margin: 0 auto 14px; }
  .hero-mobile h1 { font-size: 1.75rem; margin-bottom: 4px; }
  .hero-mobile h1 em { font-style: normal; display: block; color: var(--orange); font-size: 2.05rem; }
  .hero-cta .btn { flex: 1 1 100%; }
}
.hero-points { display: flex; justify-content: center; gap: 0; margin: 18px 0 6px; list-style: none; padding: 0; }
.hero-points li { flex: 1; max-width: 120px; font-size: .85rem; font-weight: 600; line-height: 1.25; padding: 0 6px; }
.hero-points li + li { border-left: 2px solid var(--orange); }
.hero-points svg { width: 30px; height: 30px; margin: 0 auto 6px; display: block; color: var(--charcoal); }

/* Intro */
.intro { text-align: center; max-width: 760px; margin: 0 auto; }
.intro h2 { color: var(--orange-dark); }
.intro p { font-size: 1.1rem; color: var(--muted); }

/* Cards */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .grid--3, .grid--2 { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--muted); margin: 0; }
.card .icon { width: 40px; height: 40px; color: var(--orange); margin-bottom: 12px; }
.card--center { text-align: center; }
.card--center .icon { margin-inline: auto; }
.card a.more { display: inline-block; margin-top: 12px; font-weight: 700; text-decoration: none; }
@media (max-width: 600px) { .grid--4 .card { padding: 16px 12px; } .grid--4 .card p { font-size: .9rem; } }

.wide-image { margin: 36px auto 0; border-radius: var(--radius); overflow: hidden; max-width: 1100px; }
@media (max-width: 760px) { .wide-image { display: none; } }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--orange-dark); color: var(--white); font-weight: 700; margin-bottom: 12px; }

/* Before / after slider */
.ba { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1000 / 820; user-select: none; touch-action: pan-y; background: #ddd; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba .ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 3px; background: var(--white); transform: translateX(-50%); pointer-events: none; box-shadow: 0 0 6px rgba(0,0,0,.35); }
.ba-handle::after { content: "\2194"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--white); color: var(--orange-dark); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.ba-label { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.6); color: var(--white); font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; pointer-events: none; }
.ba-label--before { left: 12px; opacity: calc(.2 + .8 * var(--p, .5)); }
.ba-label--after { right: 12px; opacity: calc(.2 + .8 * (1 - var(--p, .5))); }
.ba-label { transition: opacity .15s linear; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 24px; margin-bottom: 32px; align-items: start; }
@media (max-width: 760px) { .ba-grid { grid-template-columns: 1fr; } }
.ba-item { margin: 0; }
.ba-item figcaption { text-align: center; color: var(--muted); margin-top: 10px; font-size: .95rem; }

/* Reviews: vertical auto-scrolling list */
.reviews-wrap { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; }
@media (max-width: 860px) { .reviews-wrap { grid-template-columns: 1fr; } }
.rating-box { text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 20px; }
.rating-box .score { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--charcoal); }
.stars { color: #f5a100; letter-spacing: 2px; font-size: 1.2rem; }
.rating-box p { color: var(--muted); margin: 8px 0 16px; }
.reviews-viewport { position: relative; height: 440px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #c9c9cd transparent; padding-right: 6px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 28px, #000 calc(100% - 28px), transparent 100%); }
.reviews-viewport:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.reviews-track { display: flex; flex-direction: column; gap: 16px; padding: 20px 0; }
.review { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin: 0; }
.review blockquote { margin: 6px 0 8px; color: var(--charcoal); display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.review figcaption { font-size: .85rem; color: var(--muted); }
.review figcaption a { font-weight: 600; text-decoration: none; }
.review figcaption a:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .reviews-track [data-dup] { display: none; }
}

/* About */
.about { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; max-width: 900px; margin: 0 auto; }
.about img { width: 220px; }
.about .portrait { aspect-ratio: 1; object-fit: cover; border-radius: 50%; border: 4px solid var(--white); box-shadow: 0 0 0 3px var(--orange), 0 8px 24px rgba(0,0,0,.12); }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; text-align: center; } .about img { margin: 0 auto; width: 160px; } }

/* CTA band */
.cta-band { background: var(--charcoal); color: var(--white); text-align: center; }
.cta-band h2 { color: var(--white); }
.cta-band p { color: #d6d6d8; }
.cta-band .btn--outline { background: transparent; color: var(--white); border-color: var(--white); }

/* Footer (content kept from the original site) */
.site-footer { background: #2b2b2d; color: #cfcfd2; padding: 44px 0 28px; font-size: .95rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.socials { display: flex; gap: 14px; }
.socials a { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: #3d3d40; align-items: center; justify-content: center; }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid #444; margin-top: 28px; padding-top: 18px; text-align: center; font-size: .85rem; color: #a8a8ac; }

/* Sticky call bar on phones */
.mobile-bar { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: 68px; }
  .mobile-bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
  .mobile-bar .btn { flex: 1; padding: 12px 10px; }
}
