/* Universal Interiors content fitted to the uirrealtyrehab.com template.
   Photos, copy, and metadata stay on the remodel site. This file only
   covers pieces that template does not style: the wordmark beside the
   existing logo, reviews, gallery, forms, and stored article HTML. */

:root {
  --teal: var(--brass);
  --teal-bright: var(--brass-2);
  --text-main: var(--text);
  --text-muted: var(--muted);
  --bg-main: var(--bg);
  --bg-panel: var(--bg-2);
  --bg-card: var(--surface);
  --line-strong: var(--brass);
}

.header-row { flex-wrap: wrap; }
.brand > span.brand-name {
  display: block !important;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.15;
  max-width: 22ch;
}
.nav img { width: 16px; height: 16px; object-fit: contain; }
.nav-ext { display: inline-flex !important; align-items: center; gap: 0.35rem; }

.local-banner {
  position: fixed; right: 8px; bottom: 8px; z-index: 80;
  background: #000; color: var(--brass-2);
  border: 1px solid var(--line); border-radius: 8px;
  padding: 6px 8px; font: 600 11px/1.2 var(--font);
  max-width: min(88vw, 700px); overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap;
}

.page-hero.solo { grid-template-columns: 1fr; }
.hero video.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.45) contrast(1.08);
}

.narrow { width: min(760px, calc(100% - 2 * var(--pad))); }
.center { text-align: center; }
.mt { margin-top: 1.3rem; }
.stack { display: grid; gap: 0.8rem; }
.page-hero video {
  width: 100%; border-radius: 16px; border: 1px solid var(--line-soft); max-height: 360px; object-fit: cover;
}
.card img.icon-only {
  width: 56px; height: 56px; object-fit: contain; margin: 0.9rem 0 0 1rem;
}

.btn-primary, .btn-secondary, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0.78rem 1.2rem;
  font-weight: 700; text-decoration: none; font-size: 0.92rem;
  border: 1px solid transparent; cursor: pointer; font-family: inherit;
}
.btn-primary { background: var(--brass); color: #111; }
.btn-primary:hover { background: var(--brass-2); color: #111; }
.btn-secondary {
  border-color: var(--line); color: var(--text); background: transparent;
}
.btn-secondary:hover { border-color: var(--brass); color: var(--brass-2); }
button.btn.full, a.btn.full { width: 100%; }

.neon-green { color: var(--brass-2); }

.stat-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem; margin: 1.2rem 0 0.4rem;
}
.stat { text-align: center; padding: 1rem 0.6rem; }
.stat strong {
  display: block; font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 1.8rem); color: var(--brass-2);
}
.stat span { color: var(--muted); font-size: 0.82rem; }

.gallery-grid, .ba-grid {
  display: grid; gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.gallery-item, .ba-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none;
}
.gallery-item img, .ba-card img { width: 100%; height: 190px; object-fit: cover; }
.gallery-item p, .ba-card p { padding: 0.7rem 0.9rem 0.9rem; color: var(--muted); font-size: 0.86rem; }
.ba-label {
  padding: 0.65rem 0.9rem 0; color: var(--brass);
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
}

.filter-row, .pill-row, .pager {
  display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center;
}
.filter-btn, .pill, .pager a, .pager span {
  background: transparent; color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: 999px;
  padding: 0.4rem 0.8rem; font: inherit; font-size: 0.82rem;
  cursor: pointer; text-decoration: none;
}
.filter-btn.is-on, .pill.is-on, .pager .is-on {
  background: var(--brass); color: #111; border-color: var(--brass); font-weight: 700;
}
.pager { justify-content: center; margin-top: 1.5rem; }

.tag {
  display: inline-block; border: 1px solid var(--line); color: var(--brass-2);
  border-radius: 999px; padding: 0.15rem 0.55rem; font-size: 0.75rem;
}
.quote {
  margin-top: 1rem; padding-left: 0.9rem;
  border-left: 2px solid var(--brass); color: var(--muted); font-style: italic;
}

details.faq {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 1rem 1.1rem;
}
details.faq + details.faq { margin-top: 0.7rem; }
details.faq summary { cursor: pointer; font-family: var(--display); font-size: 1.05rem; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq p { margin-top: 0.7rem; color: var(--muted); }

.reviews-section { overflow: hidden; }
.reviews-viewport {
  overflow: hidden; max-height: 520px; position: relative;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
}
.reviews-track {
  display: flex; flex-direction: column; gap: 1rem;
  animation: reviews-scroll 40s linear infinite;
}
.reviews-track:hover { animation-play-state: paused; }
@keyframes reviews-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.reviews-card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 1.1rem 1.2rem;
  max-width: 720px; margin: 0 auto; width: 100%;
}
.reviews-card-stars { color: var(--brass); letter-spacing: 0.06em; margin-bottom: 0.45rem; }
.reviews-card-text { color: var(--text); font-size: 0.95rem; line-height: 1.6; margin-bottom: 0.7rem; }
.reviews-card-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; font-size: 0.78rem; color: var(--muted); }
.reviews-card-name { color: var(--brass-2); font-weight: 700; }
.reviews-card-date { margin-left: auto; }

.prose img, .content-body img, .prose-blog img, .prose-denntech img {
  border-radius: 14px; border: 1px solid var(--line-soft); margin: 1rem 0;
}
.content-body a, .prose-denntech a, .prose-blog a { color: var(--brass-2); }
.prose-denntech h2, .prose-blog h2 {
  font-family: var(--display); font-size: 1.45rem; margin: 1.6rem 0 0.55rem; color: var(--text);
}
.prose-denntech h3, .prose-blog h3 {
  font-family: var(--display); font-size: 1.14rem; margin: 1.2rem 0 0.45rem;
}
.prose-denntech p, .prose-denntech li, .prose-blog p, .prose-blog li {
  color: var(--muted); line-height: 1.7;
}
.prose-blog p, .prose-denntech p { margin-bottom: 1rem; }
.prose-denntech ul, .prose-blog ul { list-style: disc; padding-left: 1.2rem; margin: 0 0 1rem; }
.prose-denntech strong, .prose-blog strong { color: var(--text); }
.prose-denntech table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.prose-denntech th, .prose-denntech td {
  text-align: left; padding: 0.5rem 0.75rem; border: 1px solid var(--line-soft); vertical-align: top;
}
.prose-denntech th { color: var(--brass-2); }

.card .icon-only { width: 56px; height: 56px; object-fit: contain; margin: 0.9rem 0 0 1rem; }
.steps ol, .prose ol { padding-left: 1.15rem; color: var(--muted); }
.fine { color: var(--muted); font-size: 0.82rem; }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .brand > span.brand-name { font-size: 0.78rem; max-width: 16ch; }
}
@media (max-width: 640px) {
  .brand > span.brand-name { display: none !important; }
}

/* Full-width photo breaks between sections in custom page bodies (e.g. /deck-contractor). */
.content-body .content-break { margin: 1.75rem 0 2rem; }
.content-body .content-break img { display: block; width: 100%; height: auto; margin: 0; }

/* ===== Uniform pass (2026-09-30) =====
   The Tailwind CDN still injects its preflight reset after these sheets, so
   plain element rules (h1 size, p/ul spacing, link colour, input padding) lose.
   These scoped rules put the intended base styles back and even out page types.
   CSS only: no markup, copy, photo or metadata changes. */

/* 1. Page titles: every inner page's h1 was falling back to 16px body size. */
.page-hero h1,
.ac-manual-hero h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.1;
  max-width: 24ch;
  margin: 0 0 0.85rem;
}
.page-hero { padding: clamp(1.6rem, 4vw, 2.6rem) 0 clamp(1.2rem, 3vw, 1.8rem); }
.page-hero + .section { padding-top: clamp(1.4rem, 3.5vw, 2.6rem); }

/* 2. Paragraph and list spacing, link colour inside site-styled blocks
      (low specificity, so any class-level rule still wins). */
main :where(.page-hero, .section, .panel, .section-panel) p { margin: 0 0 1rem; }
main :where(.page-hero, .section, .panel, .section-panel) p:where(:last-child) { margin-bottom: 0; }
main :where(.prose, .panel, .ac-prose, .ac-manual) ul { list-style: disc; padding-left: 1.15rem; }
main :where(.prose, .panel) ol { list-style: decimal; padding-left: 1.15rem; }
main :where(.page-hero, .section, .panel, .section-panel) p > a:not([class]) { color: var(--brass-2); }
main :where(.page-hero, .section, .panel, .section-panel) p > a:not([class]):hover { color: #fff; }

/* 3. Heading scale inside boxes: panel and card titles were inheriting the
      big section h2 size (contact panels, blog index cards). */
.panel h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin-bottom: 0.65rem; }
.card h2 { font-size: 1.12rem; line-height: 1.25; margin: 0.55rem 0 0.5rem; }

/* 4. Content columns share the page's left edge on desktop instead of
      floating centred under a left-aligned title. */
@media (min-width: 901px) {
  .shell.prose,
  .shell.narrow {
    margin-left: max(var(--pad), calc((100% - var(--max)) / 2));
    margin-right: auto;
  }
}

/* 5. Form fields: preflight zeroed their padding (26px-tall inputs). */
form.scope input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
form.scope select,
form.scope textarea {
  padding: 0.7rem 0.75rem;
  min-height: 44px;
  line-height: 1.4;
}

/* 6. FAQ rows: make the whole row the tap target, same look. */
details.faq { padding: 0; }
details.faq summary { padding: 1rem 1.1rem; }
details.faq > p { margin: 0; padding: 0 1.1rem 1rem; }
main .ac-faq details { padding: 0; }
main .ac-faq summary { padding: 0.85rem 0; }
main .ac-faq details > p { margin: 0 0 0.85rem; }

/* 7. ArchCAD landing/manual: .section-panel and .panel-heading only existed
      in the retired style.css, so those sections ran edge to edge. */
.section-panel {
  width: min(var(--max), calc(100% - 2 * var(--pad)));
  margin: clamp(1rem, 2.5vw, 1.6rem) auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 16px;
}
.section-panel h2,
.panel-heading { font-size: clamp(1.35rem, 2.4vw, 1.8rem); margin-bottom: 0.8rem; }

/* 8. Calculators: primary controls used the old neon green; match the
      site's brass buttons. Per-tool accent stripes are left as they are. */
main .tool-cat-btn.active { background: var(--brass); border-color: var(--brass); color: #111; }
main .tool-cat-btn:hover:not(.active) { border-color: var(--brass); color: var(--brass-2); }
main .calc-btn { background: var(--brass); color: #111; }
main .calc-btn:hover { background: var(--brass-2); opacity: 1; }
main .tool-input:focus { border-color: var(--brass); }
main .tool-result .res-val, main .res-val { color: var(--brass-2); }
main .svc-link:hover, main .rel-tool:hover { border-color: var(--brass); color: var(--brass-2); }
main a[href="/contact"][style*="#00FF9F"] { background: var(--brass) !important; color: #111 !important; }

/* 9. Mobile: comfortable tap targets in the menu and pill rows, compact top bar. */
@media (max-width: 900px) {
  .nav.open a { min-height: 44px; display: flex; align-items: center; }
  .nav.open .nav-cta { justify-content: center; margin-top: 0.35rem; }
  .filter-btn, .pill, .pager a, .pager span { min-height: 40px; display: inline-flex; align-items: center; }
}
@media (max-width: 640px) {
  .topbar { font-size: 0.7rem; }
  .topbar .shell { padding: 0.35rem 0; gap: 0.2rem 1rem; }
}

/* Uniform pass, follow-ups */
main :where(.prose, .panel) ul, main :where(.prose, .panel) ol { margin: 0 0 1rem; }
main > .section-panel.ac-manual { margin-top: clamp(1rem, 2.5vw, 1.6rem); margin-bottom: clamp(1rem, 2.5vw, 1.6rem); }
main h1.neon-green { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.1; }
main a.neon-green.block { padding: 0.5rem 0; }
@media (max-width: 900px) { main .tool-cat-btn { min-height: 40px; } }

.reviews-card { margin-left: 0; }
