/* ============================================================
   Queen City Painters — design system
   Editorial white · ink navy · crown gold
   ============================================================ */
:root {
  --paper: #FDFCF9;
  --white: #FFFFFF;
  --ink: #0E1B2C;
  --ink-soft: #3C4A5C;
  --ink-mute: #6B7787;
  --gold: #C9A227;
  --gold-deep: #8A6D1C;
  --gold-wash: #FAF4E3;
  --line: #E8E4DA;
  --teal: #16636B;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Figtree", "Helvetica Neue", Arial, sans-serif;

  --w-max: 1160px;
  --radius: 14px;
  --shadow-soft: 0 8px 30px rgba(14, 27, 44, .08);
  --shadow-lift: 0 16px 48px rgba(14, 27, 44, .14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--paper);
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  font-weight: 600;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }

.wrap { max-width: var(--w-max); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
section { padding: clamp(3rem, 8vw, 5.5rem) 0; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 26px; height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: .6rem;
}
.lede { font-size: clamp(1.1rem, 2.2vw, 1.25rem); color: var(--ink-mute); max-width: 46ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(253, 252, 249, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .7rem; padding-bottom: .7rem;
}
.logo-link { display: flex; align-items: center; }
.logo-link svg, .logo-link img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a {
  color: var(--ink); font-weight: 600; font-size: .95rem;
  text-decoration: none; position: relative;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--gold);
  transition: width .25s ease;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { width: 100%; }
.btn {
  display: inline-block;
  font-weight: 700; font-size: .95rem;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink); color: var(--paper);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); }
.nav .btn { padding: .55rem 1.15rem; }

/* mobile nav */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--ink); }
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
    padding: .5rem 0;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: .85rem 1.4rem; }
  .nav a::after { display: none; }
  .nav .btn { margin: .6rem 1.4rem 1rem; width: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-note { margin-top: 1.1rem; font-size: .9rem; color: var(--ink-mute); }
.hero-art { position: relative; }
.hero-art svg { width: 100%; }

/* gold brush arc behind hero */
.hero::before {
  content: "";
  position: absolute; top: -180px; right: -180px;
  width: 520px; height: 520px;
  background: radial-gradient(circle at center, var(--gold-wash) 0%, transparent 68%);
  z-index: -1;
}

/* ---------- Cinematic video hero ---------- */
.hero--video {
  position: relative;
  overflow: clip;
  min-height: min(78vh, 660px);
  display: flex;
  align-items: center;
  padding: clamp(3rem, 6vw, 4.5rem) 0;
  isolation: isolate;
}
.hero--video .hero-inner { width: 100%; }
.hero--video::before { display: none; }          /* drop the gold radial; video owns the bg */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 44%;
  z-index: -3;
  transform: scale(1.06);
  animation: heroKen 26s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes heroKen {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.15) translate3d(-1.2%, -1.4%, 0); }
}
/* paper wash: opaque where the copy sits (left), clearing toward the footage (right),
   plus a bottom feather that melts the hero into the page */
.hero-scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(100deg,
      var(--paper) 0%,
      rgba(253,252,249,.96) 30%,
      rgba(253,252,249,.80) 50%,
      rgba(253,252,249,.42) 74%,
      rgba(253,252,249,.16) 100%),
    linear-gradient(to bottom,
      rgba(253,252,249,.40) 0%,
      transparent 34%,
      transparent 66%,
      var(--paper) 100%),
    radial-gradient(120% 90% at 90% 16%, rgba(201,162,39,.16), transparent 58%);
}
/* fine editorial grain for texture */
.hero-grain {
  position: absolute; inset: 0; z-index: -1;
  opacity: .5; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 640px; }
.hero--video .hero-note { color: var(--ink-soft); }

@media (max-width: 860px) {
  /* on narrow screens the copy sits over the footage, so wash top-heavy for contrast */
  .hero-scrim {
    background:
      linear-gradient(to bottom,
        rgba(253,252,249,.92) 0%,
        rgba(253,252,249,.82) 42%,
        rgba(253,252,249,.66) 72%,
        var(--paper) 100%),
      radial-gradient(120% 60% at 80% 8%, rgba(201,162,39,.16), transparent 60%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { animation: none; transform: none; }
}

/* trust strip */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); padding: 1.2rem 0; }
.trust-strip .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: .55rem; font-size: .92rem; font-weight: 600; color: var(--ink); }
.trust-item svg { width: 20px; height: 20px; flex: none; }

/* ---------- Cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
@media (max-width: 960px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); border-color: var(--gold); }
.card h3 { margin: .9rem 0 .5rem; }
.card p { font-size: .97rem; color: var(--ink-mute); }
.card .card-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--gold-wash);
  border-radius: 12px;
}
.card .card-icon svg { width: 26px; height: 26px; }
.card a.card-link { display: inline-block; margin-top: .9rem; font-weight: 700; font-size: .92rem; }
.card a.card-link::after { content: " →"; }

/* ---------- Split section ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split ul.checks { list-style: none; margin-top: 1.2rem; }
ul.checks li { padding-left: 2rem; position: relative; margin-bottom: .7rem; color: var(--ink-soft); }
ul.checks li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--gold-wash); color: var(--gold-deep);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .8rem; font-weight: 800;
}

/* ---------- Process ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 2.4rem; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 1.4rem 1.2rem 1.2rem; border-top: 3px solid var(--gold); background: var(--white); border-radius: 0 0 var(--radius) var(--radius); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 600;
  color: var(--gold);
  display: block; margin-bottom: .4rem;
}
.step h3 { font-size: 1.1rem; }
.step p { font-size: .93rem; color: var(--ink-mute); }

/* ---------- Quote band ---------- */
.band {
  background: var(--ink);
  color: #DCE3EC;
  border-radius: calc(var(--radius) * 1.6);
  padding: clamp(2.4rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
}
.band h2 { color: var(--white); }
.band .lede { color: #A9B6C6; }
.band::after {
  content: "";
  position: absolute; right: -60px; bottom: -60px;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(201,162,39,.28), transparent 70%);
}
.band .btn { position: relative; z-index: 1; }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem 1.5rem; }
.quote-card .stars { color: var(--gold); letter-spacing: .18em; font-size: .95rem; }
.quote-card blockquote { font-family: var(--font-display); font-size: 1.08rem; font-style: italic; color: var(--ink); margin: .8rem 0 1rem; }
.quote-card cite { font-style: normal; font-size: .88rem; color: var(--ink-mute); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .9rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  font-weight: 700; color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 1.3rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.5rem; color: var(--gold-deep);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.2rem; color: var(--ink-mute); }

/* ---------- Areas ---------- */
.area-links { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }
.area-links a {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: .5rem 1.1rem;
  font-size: .92rem; font-weight: 600; color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, background .2s;
}
.area-links a:hover { border-color: var(--gold); background: var(--gold-wash); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #A9B6C6;
  margin-top: 3rem;
  padding: 0;
}
.footer-skyline { display: block; width: 100%; background: var(--paper); }
.site-footer .cols {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding: 3.2rem 0 2rem;
}
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer .foot-h { color: var(--white); font-size: 1rem; font-weight: 700; font-family: var(--font-display); margin-bottom: .9rem; }
.site-footer a { color: #C7D2DE; display: block; margin-bottom: .5rem; font-size: .93rem; }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand-blurb { font-size: .93rem; max-width: 34ch; }
.site-footer .fine {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.2rem 0 1.4rem;
  font-size: .82rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; justify-content: space-between;
}
.footer-logo svg, .footer-logo img { height: 44px; width: auto; margin-bottom: 1rem; filter: brightness(0) invert(1); opacity: .92; }

/* ---------- Landing pages ---------- */
.lp-hero { min-height: 62vh; display: grid; align-items: center; }
.lp-offer {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  border-radius: 10px;
  padding: .5rem 1rem;
  font-size: .95rem;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow-soft);
}
.lp-bullets { margin: 1.6rem 0; }

/* ---------- Reveal animation ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.in { opacity: 1; transform: none; }
}

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: .85rem; color: var(--ink-mute); padding-top: 1.4rem; }
.crumbs a { color: var(--ink-mute); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }

/* ============================================================
   Chat widget
   ============================================================ */
#qcp-chat-btn {
  position: fixed; right: 18px; bottom: 18px; z-index: 1200;
  width: 62px; height: 62px;
  border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--ink);
  display: grid; place-items: center;
  box-shadow: var(--shadow-lift);
  transition: transform .2s ease;
}
#qcp-chat-btn:hover { transform: scale(1.07); }
#qcp-chat-btn svg { width: 30px; height: 30px; }
#qcp-chat-btn .qcp-dot {
  position: absolute; top: 4px; right: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 2px solid var(--paper);
}

#qcp-chat {
  position: fixed; right: 18px; bottom: 92px; z-index: 1200;
  width: min(392px, calc(100vw - 24px));
  height: min(560px, calc(100dvh - 120px));
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(16px) scale(.98);
  pointer-events: none;
  transition: opacity .28s ease, transform .28s ease;
}
#qcp-chat.open { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 480px) {
  #qcp-chat { right: 12px; left: 12px; width: auto; bottom: 86px; height: min(72dvh, calc(100dvh - 104px)); }
}

.qcp-head {
  background: var(--ink);
  color: var(--white);
  padding: .9rem 1.1rem;
  display: flex; align-items: center; gap: .8rem;
  flex: none;
}
.qcp-head .qcp-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold);
  display: grid; place-items: center; flex: none;
  overflow: hidden;
  border: 2px solid var(--gold);
}
.qcp-head .qcp-avatar svg { width: 22px; height: 22px; }
.qcp-head .qcp-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.qcp-head .qcp-title { font-weight: 700; font-size: .98rem; line-height: 1.2; }
.qcp-head .qcp-sub { font-size: .76rem; color: #B9C4D2; display: flex; align-items: center; gap: .35rem; }
.qcp-head .qcp-sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #43C46F; }
.qcp-head button {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: #B9C4D2; padding: .3rem; border-radius: 6px;
}
.qcp-head button:hover { color: var(--white); background: rgba(255,255,255,.1); }
.qcp-head button svg { width: 20px; height: 20px; }

.qcp-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex; flex-direction: column; gap: .7rem;
  background: var(--paper);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.qcp-msg {
  max-width: 84%;
  padding: .7rem .95rem;
  border-radius: 14px;
  font-size: .95rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-wrap: break-word;
  animation: qcpIn .25s ease;
}
@keyframes qcpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.qcp-msg.bot { align-self: flex-start; background: var(--white); border: 1px solid var(--line); color: var(--ink-soft); border-bottom-left-radius: 4px; }
.qcp-msg.user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 4px; }
.qcp-msg.typing { display: inline-flex; gap: 5px; padding: .9rem 1rem; }
.qcp-msg.typing i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  animation: qcpBounce 1.2s infinite;
}
.qcp-msg.typing i:nth-child(2) { animation-delay: .15s; }
.qcp-msg.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes qcpBounce { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-6px); opacity: 1; } }

.qcp-input {
  flex: none;
  display: flex; gap: .6rem;
  padding: .8rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.qcp-input textarea {
  flex: 1; resize: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16px; /* prevents iOS zoom */
  padding: .6rem .8rem;
  max-height: 96px;
  outline: none;
  color: var(--ink);
  background: var(--paper);
}
.qcp-input textarea:focus { border-color: var(--gold); }
.qcp-input button {
  flex: none; width: 44px; height: 44px;
  align-self: flex-end;
  border-radius: 12px; border: none; cursor: pointer;
  background: var(--gold);
  display: grid; place-items: center;
  transition: transform .15s ease;
}
.qcp-input button:hover { transform: scale(1.06); }
.qcp-input button:disabled { opacity: .45; cursor: default; transform: none; }
.qcp-input button svg { width: 20px; height: 20px; }
.qcp-foot { flex: none; text-align: center; font-size: .68rem; color: var(--ink-mute); padding: 0 .8rem .55rem; background: var(--white); }
