/* Ontario Rank & Rent — Local Service (carpet) shared styles
   Wave 1 staging · mobile-first · teal/navy · phone-first sticky bar */
:root {
  --navy: #0b2a4a;
  --navy-dark: #071e36;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #ccfbf1;
  --cream: #f8fafc;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --white: #ffffff;
  --warn: #b45309;
  --warn-bg: #fffbeb;
  --radius: 10px;
  --shadow: 0 4px 14px rgba(11, 42, 74, 0.08);
  --sticky-h: 56px;
  --max: 960px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  padding-bottom: calc(var(--sticky-h) + 12px);
}
img { max-width: 100%; height: auto; }
a { color: var(--teal-dark); }
a:hover { color: var(--navy); }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip:focus { left: 0; }

/* Staging banner */
.staging-banner {
  background: var(--warn-bg);
  color: var(--warn);
  border-bottom: 1px solid #fcd34d;
  font-size: .85rem;
  text-align: center;
  padding: .45rem 1rem;
  font-weight: 600;
}

/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand span { color: #5eead4; }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem .85rem;
  font-size: .9rem;
}
.nav a {
  color: #cbd5e1;
  text-decoration: none;
}
.nav a:hover, .nav a[aria-current="page"] { color: #5eead4; }
.header-call {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--teal);
  color: #fff !important;
  text-decoration: none;
  font-weight: 700;
  padding: .55rem 1rem;
  border-radius: 999px;
  font-size: .95rem;
  white-space: nowrap;
}
.header-call:hover { background: var(--teal-dark); color: #fff !important; }

/* Hero */
.hero {
  background: linear-gradient(145deg, var(--navy) 0%, #123a5f 55%, #0f766e 100%);
  color: #fff;
  padding: 2.5rem 0 2.75rem;
}
.hero h1 {
  margin: 0 0 .75rem;
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.hero .lede { font-size: 1.08rem; opacity: .95; max-width: 42rem; margin: 0 0 1.35rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .75rem 1.25rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
}
.btn-primary { background: var(--teal); color: #fff !important; }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost {
  background: transparent;
  color: #fff !important;
  border-color: rgba(255,255,255,.45);
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-outline {
  background: #fff;
  color: var(--navy) !important;
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--teal-light); }
.btn:disabled, .btn.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}
.notice-sm {
  font-size: .8rem;
  opacity: .85;
  margin-top: .85rem;
}

/* Trust strip */
.trust {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0;
  font-size: .92rem;
  color: var(--muted);
}
.trust ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: center;
}
.trust li::before {
  content: "✓ ";
  color: var(--teal);
  font-weight: 700;
}

/* Sections */
.section { padding: 2.25rem 0; }
.section-alt { background: var(--white); }
.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--navy);
  letter-spacing: -0.015em;
}
.section h3 {
  margin: 1.5rem 0 .5rem;
  font-size: 1.15rem;
  color: var(--navy);
}
.section p { margin: 0 0 1rem; }
.section ul, .section ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.section li { margin-bottom: .35rem; }
.prose { max-width: 42rem; }

/* Cards / grid */
.grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card a.card-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--teal-dark);
}
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 1.5rem; }
.steps .card::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -.6rem; left: 1rem;
  background: var(--teal);
  color: #fff;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem;
}

/* FAQ accordion */
.faq details {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: .65rem;
  padding: .85rem 1rem;
}
.faq summary {
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
}
.faq details[open] summary { margin-bottom: .5rem; }
.faq details p:last-child { margin-bottom: 0; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 2rem 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin: 0 0 .75rem; }
.cta-band p { margin: 0 0 1rem; opacity: .92; }
.cta-band .btn-primary { margin-inline: .25rem; }

/* Contact form disabled */
.form-disabled {
  background: var(--white);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.form-disabled label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin: .75rem 0 .25rem;
  color: var(--muted);
}
.form-disabled input,
.form-disabled textarea,
.form-disabled select {
  width: 100%;
  padding: .65rem .75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #f1f5f9;
  color: var(--muted);
  font: inherit;
}
.form-disabled .coming-soon {
  background: var(--warn-bg);
  border: 1px solid #fcd34d;
  color: var(--warn);
  padding: .75rem 1rem;
  border-radius: 6px;
  font-size: .9rem;
  margin-bottom: 1rem;
}

/* Draft privacy banner */
.draft-banner {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: .95rem;
}
.draft-banner strong { display: block; margin-bottom: .25rem; }

/* Areas */
.area-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  gap: .5rem;
}
.area-list li {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .75rem 1rem;
}
.badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  padding: .15rem .5rem;
  border-radius: 999px;
  background: var(--teal-light);
  color: var(--teal-dark);
  margin-left: .35rem;
  vertical-align: middle;
}
.badge-confirm {
  background: #fff7ed;
  color: #c2410c;
}

/* Footer */
.site-footer {
  background: var(--navy-dark);
  color: #94a3b8;
  padding: 2rem 0 1.25rem;
  font-size: .9rem;
  margin-top: 1rem;
}
.site-footer a { color: #cbd5e1; }
.site-footer .footer-brand {
  color: #fff;
  font-weight: 700;
  margin-bottom: .5rem;
}
.footer-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-meta {
  border-top: 1px solid #1e3a5f;
  margin-top: 1.25rem;
  padding-top: 1rem;
  font-size: .8rem;
}
.call-recording-notice { margin: .5rem 0 0; font-size: .8rem; }

/* Sticky mobile call bar */
.sticky-call {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 50;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--sticky-h);
  box-shadow: 0 -4px 16px rgba(0,0,0,.18);
}
.sticky-call a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  padding: .85rem 1.5rem;
  width: 100%;
  text-align: center;
}
.sticky-call .sub {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  opacity: .9;
}
@media (min-width: 900px) {
  /* Keep sticky visible phone-first even on desktop for staging CTAs */
}

/* Utilities */
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* Photo helpers — Wave 1 human stock */
.hero.hero-photo {
  background-color: var(--navy);
  background-image:
    linear-gradient(115deg, rgba(7, 30, 54, 0.88) 0%, rgba(11, 42, 74, 0.78) 42%, rgba(15, 118, 110, 0.55) 100%),
    url("../images/hero-carpet.jpg");
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
}
.hero.hero-photo .wrap { position: relative; z-index: 1; max-width: 40rem; }
.img-rounded {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}
.media-block {
  display: grid;
  gap: 1rem;
  align-items: center;
  margin: 1.25rem 0 1.5rem;
}
@media (min-width: 720px) {
  .media-block { grid-template-columns: 1.05fr 1fr; gap: 1.5rem; }
  .media-block.media-block-rev { grid-template-columns: 1fr 1.05fr; }
  .media-block.media-block-rev .media-copy { order: -1; }
}
.media-block figcaption,
.photo-caption {
  font-size: .88rem;
  color: var(--muted);
  margin: .45rem 0 0;
}
.card-photo {
  margin: -1.25rem -1.25rem 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}
.card-photo img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.photo-row {
  display: grid;
  gap: 1rem;
  margin: 1.25rem 0;
}
@media (min-width: 640px) {
  .photo-row-2 { grid-template-columns: 1fr 1fr; }
}
.photo-credit-note {
  font-size: .72rem;
  color: var(--muted);
  margin-top: .75rem;
}

.header-actions { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.header-contact {
  display: inline-flex; align-items: center;
  background: transparent; color: #5eead4 !important;
  text-decoration: none; font-weight: 700;
  padding: .5rem .95rem; border-radius: 999px;
  font-size: .95rem; white-space: nowrap;
  border: 2px solid #5eead4;
}
.header-contact:hover { background: #5eead4; color: var(--navy) !important; }
.form-panel {
  background: #fff; border: 1px solid var(--border, #e2e8f0);
  border-radius: 10px; padding: 1.5rem;
}
.form-panel .form-live-note {
  background: #ecfdf5; border: 1px solid #6ee7b7;
  color: #065f46; padding: .75rem 1rem; border-radius: 6px;
  font-size: .9rem; margin-bottom: 1rem;
}
.form-panel label {
  display: block; font-weight: 600; font-size: .9rem;
  margin: .75rem 0 .25rem; color: var(--ink, #0f172a);
}
.form-panel input, .form-panel textarea, .form-panel select {
  width: 100%; padding: .65rem .75rem;
  border: 1px solid #cbd5e1; border-radius: 6px;
  background: #fff; color: #0f172a; font: inherit;
  box-sizing: border-box;
}
.form-panel .req { color: #b45309; }
.form-panel .consent-check {
  display: flex; gap: .65rem; align-items: flex-start;
  margin: 1.25rem 0 .75rem; font-weight: 400; color: #0f172a; line-height: 1.45;
}
.form-panel .consent-check input { width: auto; margin-top: .25rem; flex-shrink: 0; }
.form-panel .form-disclosure {
  font-size: .85rem; line-height: 1.45; color: #64748b; margin: .75rem 0 0;
}


#contact-form { scroll-margin-top: 5.5rem; }
