/* FirstRing Sites -- one stylesheet for the demo chooser and the business site.
   Mobile-first. Trade packs set --accent / --accent-2 / --tint on :root. */

:root {
  --accent: #1d4ed8;
  --accent-2: #0f172a;
  --tint: #eef2ff;
  --ink: #111827;
  --ink-soft: #4b5563;
  --line: #e5e7eb;
  --paper: #ffffff;
  --paper-2: #f8fafc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --topbar-h: 52px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { width: min(1100px, 100% - 2.5rem); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--paper-2); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: .6rem;
}
.lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 60ch; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: .8rem 1.4rem; border-radius: 999px;
  font-weight: 700; font-size: 1.02rem; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-primary:hover { filter: brightness(1.06); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--accent-2); border-color: #fff; }
.btn svg { width: 20px; height: 20px; }

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  min-height: var(--topbar-h); padding: .45rem .8rem;
  background: #0b1020; color: #e5e7eb; font-size: .9rem;
  border-bottom: 1px solid #1f2937;
}
.topbar-brand { font-weight: 800; letter-spacing: -.02em; text-decoration: none; color: #fff; margin-right: .3rem; }
.topbar-brand span { color: #93c5fd; }
.topbar-field { flex: 1 1 180px; min-width: 0; }
.topbar-select {
  width: 100%; min-height: 36px; padding: .3rem .6rem; border-radius: 8px;
  border: 1px solid #374151; background: #111827; color: #f3f4f6; font: inherit;
}
.topbar-actions { display: flex; gap: .4rem; margin-left: auto; }
.topbar-btn {
  min-height: 36px; padding: .3rem .9rem; border-radius: 8px; border: 1px solid #374151;
  background: #111827; color: #f3f4f6; font: inherit; font-weight: 600; cursor: pointer;
}
.topbar-btn:hover { background: #1f2937; }
.topbar-btn-primary { background: #2563eb; border-color: #2563eb; }
.topbar-btn-primary:hover { background: #1d4ed8; }
body.present .topbar { display: none; }

/* ---------------------------------------------------------------- splash */
.splash {
  min-height: calc(100vh - var(--topbar-h));
  display: grid; place-items: center; padding: 3rem 1.25rem;
  background:
    radial-gradient(60% 50% at 20% 10%, #dbeafe 0, transparent 60%),
    radial-gradient(50% 40% at 90% 90%, #e0e7ff 0, transparent 60%),
    #f8fafc;
}
.splash-inner { width: min(640px, 100%); text-align: center; }
.splash-mark { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 1.5rem; }
.splash-mark span { color: #2563eb; }
.splash-title { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: .6rem; }
.splash-lead { color: var(--ink-soft); font-size: 1.1rem; margin-bottom: 2rem; }
.splash-form {
  display: grid; gap: 1rem; text-align: left;
  background: #fff; padding: 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow);
}
.splash-field { display: grid; gap: .4rem; font-weight: 600; }
.splash-field select {
  width: 100%; min-height: 48px; padding: .6rem .8rem; border-radius: 10px;
  border: 1px solid #cbd5e1; background: #fff; font: inherit; font-size: 1rem;
}
.splash-or { text-align: center; color: #94a3b8; font-size: .9rem; text-transform: uppercase; letter-spacing: .1em; }
.splash-hint { margin-top: 1.5rem; color: #64748b; font-size: .9rem; }
kbd {
  font-family: inherit; font-size: .85em; padding: .1em .45em; border-radius: 6px;
  border: 1px solid #cbd5e1; background: #fff; box-shadow: 0 1px 0 #cbd5e1;
}

/* ---------------------------------------------------------------- site header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
body:not(.present) .site-header { top: var(--topbar-h); }
body.present .site-header { top: 0; }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 68px; padding-block: .5rem;
}
.brand { display: flex; align-items: center; gap: .6rem; min-width: 0; text-decoration: none; }
.brand-icon {
  flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: #fff;
  display: grid; place-items: center;
}
.brand-icon svg { width: 22px; height: 22px; }
.brand-text { display: grid; min-width: 0; }
.brand-name { display: block; font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-sub { font-size: .78rem; color: var(--ink-soft); white-space: nowrap; }
.header-call { flex: none; min-height: 46px; padding: .6rem 1.1rem; }
.header-call .num { display: none; }
@media (min-width: 560px) { .header-call .num { display: inline; } .header-call .lbl { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero {
  background: linear-gradient(180deg, var(--tint) 0, #fff 100%);
  padding: clamp(2.5rem, 8vw, 6rem) 0 clamp(2rem, 6vw, 4rem);
}
.hero .wrap { display: grid; gap: 2rem; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem .4rem .6rem;
  border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .92rem;
  text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, .05); margin-bottom: 1.2rem;
}
.hero-badge .star { color: #f59e0b; font-size: 1.05rem; }
.hero h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .6rem; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.25rem); margin-bottom: 1.6rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-ctas .btn { flex: 1 1 200px; }
.hero-note { margin-top: 1rem; color: var(--ink-soft); font-size: .92rem; }
.hero-art { display: none; }
.hero-art-svg { width: 100%; height: auto; }
@media (min-width: 840px) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
  .hero-art { display: block; }
  .hero-ctas .btn { flex: 0 1 auto; }
}

/* ---------------------------------------------------------------- trust strip */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust .wrap {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.5rem; padding-block: 1.4rem;
}
.trust-item { display: grid; gap: .1rem; }
.trust-k { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); font-weight: 700; }
.trust-v { font-weight: 700; font-size: 1.02rem; }
.trust-v .star { color: #f59e0b; }
@media (min-width: 720px) { .trust .wrap { grid-template-columns: repeat(4, 1fr); } }

/* ---------------------------------------------------------------- services */
.services-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.service {
  padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: start;
}
.service-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--tint); color: var(--accent);
  display: grid; place-items: center;
}
.service-icon svg { width: 22px; height: 22px; }
.service h3 { margin-bottom: .25rem; }
.service p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------- reviews */
.reviews-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.reviews-grid { display: grid; gap: 1rem; margin-top: 2rem; }
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem;
  display: grid; gap: .6rem; align-content: start;
}
.review-stars { color: #f59e0b; letter-spacing: .05em; font-size: 1.05rem; }
.review-text { margin: 0; color: var(--ink); }
.review-meta { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--ink-soft); }
.review-meta b { color: var(--ink); }
.review-more { margin-top: 1.5rem; }
.review-empty {
  margin-top: 2rem; padding: 2rem; border: 1px dashed #cbd5e1; border-radius: var(--radius);
  text-align: center; color: var(--ink-soft); background: #fff;
}
@media (min-width: 640px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------- about / expect */
.about .wrap { display: grid; gap: 2.5rem; }
.about-facts { display: grid; gap: .8rem; padding: 1.5rem; border-radius: var(--radius); background: var(--tint); }
.about-facts h3 { margin-bottom: .2rem; }
.fact { display: grid; grid-template-columns: 1fr auto; gap: .5rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid rgba(0, 0, 0, .06); }
.fact:last-child { border-bottom: 0; }
.fact-k { color: var(--ink-soft); font-size: .95rem; }
.expect { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .8rem; }
.expect li { display: grid; grid-template-columns: 28px 1fr; gap: .7rem; align-items: start; }
.expect li::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%; background: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E");
  background-size: 14px; background-position: center; background-repeat: no-repeat; margin-top: .15rem;
}
@media (min-width: 840px) { .about .wrap { grid-template-columns: 1.2fr .8fr; align-items: start; } }

/* Editable placeholder for facts we don't have. Keith fills these in with the owner. */
.ph {
  display: inline-block; min-width: 6ch; padding: .1em .5em; border-radius: 6px;
  border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, #999); color: var(--ink-soft);
  background: rgba(255, 255, 255, .6); font-weight: 600; font-size: .95em; outline: none; cursor: text;
}
.ph:focus { border-style: solid; color: var(--ink); background: #fff; }
.ph.filled { border-style: solid; border-color: transparent; background: transparent; color: var(--ink); padding: 0; }

/* ---------------------------------------------------------------- faqs */
.faqs { display: grid; gap: .6rem; margin-top: 2rem; }
.faq { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.faq summary {
  cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); line-height: 1; }
.faq[open] summary::after { content: "\2212"; }
.faq p { padding: 0 1.2rem 1.1rem; margin: 0; color: var(--ink-soft); }

/* ---------------------------------------------------------------- service area */
.area-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chip {
  padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: .95rem;
}
.chip-home { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------------------------------------------------------------- contact */
.contact { background: var(--accent-2); color: #fff; }
.contact .eyebrow { color: #fff; opacity: .8; }
.contact .lead { color: rgba(255, 255, 255, .8); }
.contact .wrap { display: grid; gap: 2rem; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.contact-ctas .btn { flex: 1 1 200px; }
.contact-big { font-size: clamp(1.8rem, 6vw, 2.6rem); font-weight: 800; text-decoration: none; letter-spacing: -.02em; display: inline-block; margin-bottom: .5rem; }
.contact-details { display: grid; gap: 1.2rem; align-content: start; }
.contact-details h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; opacity: .7; margin-bottom: .3rem; }
.contact-details p, .contact-details ul { margin: 0; }
.contact-details a { color: #fff; }
.hours { list-style: none; padding: 0; display: grid; gap: .15rem; font-size: .97rem; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .1); padding: .25rem 0; }
.hours li span:last-child { opacity: .85; text-align: right; }
@media (min-width: 840px) { .contact .wrap { grid-template-columns: 1.1fr .9fr; } .contact-ctas .btn { flex: 0 1 auto; } }

/* ---------------------------------------------------------------- footer */
.site-footer { padding: 2rem 0; font-size: .9rem; color: var(--ink-soft); background: #fff; border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; }
.firstring-badge {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: .8rem; color: var(--ink-soft); text-decoration: none; background: #fff;
}
.firstring-badge b { color: var(--ink); font-weight: 700; }
.firstring-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); }

/* ---------------------------------------------------------------- misc */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(20px);
  background: #111827; color: #fff; padding: .6rem 1rem; border-radius: 10px; font-size: .9rem;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
