/* Ideal Contractors — System A */
:root {
  --bg: #0F1214;
  --surface: #1A1F24;
  --border: #2A3238;
  --accent: #D97706;
  --accent-hover: #F59E0B;
  --text: #F4F4F5;
  --muted: #A1A1AA;
  --header-h: 112px;
  --sticky-bar-h: 56px;
  --max: 1120px;
  --radius: 4px;
  --font: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--sticky-bar-h) + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; color: var(--muted); }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.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;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15, 18, 20, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: var(--header-h); padding-block: 0.5rem;
}
.logo-link { display: flex; align-items: center; gap: 0.6rem; color: var(--text); }
.logo-link:hover { color: var(--text); }
.logo-img {
  height: 100px; width: auto; max-width: min(320px, 58vw);
  background: transparent; display: block;
  object-fit: contain; flex-shrink: 0;
}
.logo-link { background: transparent; }
.logo-text { display: none; }
.site-footer .logo-text { display: block; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; color: var(--text); }
.logo-text span { display: block; font-size: 0.65rem; font-weight: 500; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.roc-badge {
  display: none; font-size: 0.7rem; color: var(--muted);
  border: 1px solid var(--border); padding: 0.25rem 0.5rem; border-radius: var(--radius);
}
.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent; border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.site-nav {
  position: fixed; inset: var(--header-h) 0 auto 0; background: var(--surface);
  border-bottom: 1px solid var(--border); padding: 1rem;
  display: none; flex-direction: column; gap: 0.25rem; z-index: 99;
}
.site-nav.is-open { display: flex; }
.site-nav a {
  color: var(--text); padding: 0.75rem 1rem; min-height: 44px;
  display: flex; align-items: center; border-radius: var(--radius); font-weight: 500;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--bg); color: var(--accent); }
.nav-cta {
  background: var(--accent) !important; color: #0F1214 !important;
  font-weight: 700 !important; justify-content: center; margin-top: 0.5rem;
}
.nav-cta:hover { background: var(--accent-hover) !important; color: #0F1214 !important; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; white-space: nowrap; }
.header-phone {
  display: none; align-items: center; justify-content: center; gap: 0.35rem;
  background: var(--accent); color: #0F1214 !important;
  font-weight: 700; font-size: 0.9rem; min-height: 44px;
  padding: 0.5rem 1rem; border-radius: var(--radius);
  white-space: nowrap; flex-shrink: 0; border: 1px solid transparent;
}
.header-phone:hover { background: var(--accent-hover); color: #0F1214 !important; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    position: static; display: flex !important; flex-direction: row; align-items: center;
    background: transparent; border: 0; padding: 0; gap: 0.15rem;
  }
  .site-nav a { padding: 0.5rem 0.75rem; font-size: 0.9rem; }
  .nav-cta { margin-top: 0; margin-left: 0.5rem; padding-inline: 1rem !important; }
  .roc-badge { display: inline-block; }
  .header-phone { display: inline-flex; }
  .logo-img { height: 110px; max-width: 340px; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; padding: 0.65rem 1.25rem; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem; border: 1px solid transparent; cursor: pointer;
  text-align: center; font-family: inherit;
}
.btn-primary { background: var(--accent); color: #0F1214; }
.btn-primary:hover { background: var(--accent-hover); color: #0F1214; }
.btn-outline { background: transparent; border-color: var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-block { width: 100%; }

/* Mobile sticky call bar */
.sticky-call-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 110;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 0.5rem 0.6rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
}
.sticky-call-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 44px; font-weight: 700; font-size: 0.9rem; border-radius: var(--radius);
}
.sticky-call-bar .call-btn { color: var(--text); border: 1px solid var(--border); margin-right: 0.3rem; }
.sticky-call-bar .break-btn { background: var(--accent); color: #0F1214; margin-left: 0.3rem; }
.sticky-call-bar .break-btn:hover { background: var(--accent-hover); color: #0F1214; }
@media (min-width: 900px) {
  .sticky-call-bar { display: none; }
  body { padding-bottom: 0; }
}

/* Hero */
.hero {
  position: relative; min-height: min(78vh, 640px);
  display: flex; align-items: flex-end; overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,18,20,0.35) 0%, rgba(15,18,20,0.85) 70%, var(--bg) 100%);
}
.hero-content {
  position: relative; z-index: 2; padding: 3rem 0 2.5rem; width: min(100% - 2rem, var(--max)); margin-inline: auto;
}
.eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 0.75rem;
}
.hero h1 { margin-bottom: 0.75rem; max-width: 22ch; text-transform: uppercase; letter-spacing: 0.04em; }
.hero h1 .hero-h1-keep { white-space: nowrap; }
.hero .lead {
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.5;
  color: #E4E4E7;
  max-width: 36rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.trust-row {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 1.5rem;
  font-size: 0.8rem; color: var(--muted);
}
.trust-row span { display: inline-flex; align-items: center; gap: 0.35rem; }
.trust-row strong { color: var(--text); font-weight: 600; }

/* Sections */
.section { padding: 3rem 0; }
.section-header { margin-bottom: 1.75rem; max-width: 54ch; }
.section-header p { margin-bottom: 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }

/* Cards / grids */
.card-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .card-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .card-grid.cols-5 { grid-template-columns: repeat(5, 1fr); } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.card-body { padding: 1.15rem 1.15rem 1.35rem; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { margin-bottom: 0.4rem; }
.card-body p { flex: 1; font-size: 0.95rem; }
.card-media { aspect-ratio: 4/3; overflow: hidden; background: var(--bg); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-link { margin-top: 0.85rem; font-weight: 600; font-size: 0.9rem; }

.list-check { margin: 0.75rem 0 0; }
.list-check li {
  position: relative; padding: 0.45rem 0 0.45rem 1.35rem;
  color: var(--muted); border-bottom: 1px solid var(--border); font-size: 0.95rem;
}
.list-check li:last-child { border-bottom: 0; }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 0.85rem;
  width: 8px; height: 8px; background: var(--accent); border-radius: 1px;
}

/* Split */
.split {
  display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 800px) {
  .split { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .split.reverse > :first-child { order: 2; }
}
.split-media {
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); aspect-ratio: 4/5; max-height: 520px;
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media picture { display: block; width: 100%; height: 100%; }
.image-caption { margin: 0.65rem 0 0; font-size: 0.8rem; color: var(--muted); }
.split-media.landscape { aspect-ratio: 16/10; max-height: none; }

/* Cities */
.city-cloud {
  display: flex; flex-wrap: wrap; gap: 0.45rem;
}
.city-cloud span {
  border: 1px solid var(--border); background: var(--bg); color: var(--muted);
  padding: 0.4rem 0.7rem; border-radius: var(--radius); font-size: 0.85rem;
  min-height: 36px; display: inline-flex; align-items: center;
}

/* Work filters */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.25rem;
}
.filter-btn {
  min-height: 44px; padding: 0.5rem 0.85rem; border: 1px solid var(--border);
  background: var(--bg); color: var(--muted); border-radius: var(--radius);
  cursor: pointer; font-family: inherit; font-size: 0.85rem; font-weight: 600;
}
.filter-btn.is-active, .filter-btn:hover {
  border-color: var(--accent); color: var(--accent);
}
.work-grid {
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .work-grid { grid-template-columns: repeat(3, 1fr); } }
.work-item { display: flex; flex-direction: column; }
.work-item.is-hidden { display: none; }
.work-item figcaption {
  padding: 0.75rem 0.15rem 0; font-size: 0.85rem; color: var(--muted);
}
.work-item .tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.35rem; }
.tag {
  font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--accent); border: 1px solid var(--border); padding: 0.15rem 0.4rem; border-radius: 2px;
}

/* Forms */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) {
  .form-grid.two { grid-template-columns: 1fr 1fr; }
}
.form-field label {
  display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--text);
}
.form-field input, .form-field select, .form-field textarea {
  width: 100%; min-height: 44px; padding: 0.65rem 0.85rem;
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-family: inherit; font-size: 1rem;
}
.form-field input[type="file"] {
  min-height: 44px; padding: 0.55rem 0.65rem; line-height: 1.3;
  color: var(--muted);
}
.form-field select {
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 3px), calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2rem;
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }
.form-success {
  display: none; border: 1px solid var(--accent); background: var(--surface);
  padding: 1.25rem; border-radius: var(--radius); margin-top: 1rem;
}
.form-success.is-visible { display: block; }
.contact-panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
}
.contact-panel a { font-weight: 600; }
.contact-meta { margin-top: 1rem; }
.contact-meta dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-top: 0.85rem; }
.contact-meta dd { margin: 0.2rem 0 0; color: var(--text); }

/* Knowledge */
.article-list { display: grid; gap: 0.75rem; }
.article-list a {
  display: block; padding: 1.1rem 1.15rem; border: 1px solid var(--border);
  background: var(--surface); border-radius: var(--radius); color: var(--text);
}
.article-list a:hover { border-color: var(--accent); }
.article-list h3 { margin-bottom: 0.3rem; font-size: 1.05rem; }
.article-list p { margin: 0; font-size: 0.9rem; }
.prose { max-width: 68ch; }
.prose h2 { margin-top: 2rem; }
.prose ul { list-style: disc; padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { color: var(--muted); margin-bottom: 0.4rem; }
.prose strong { color: var(--text); }

/* CTA band */
.cta-band {
  border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius); padding: 1.75rem 1.25rem; text-align: center;
}
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { max-width: 48ch; margin-inline: auto; }
.cta-band .hero-actions { justify-content: center; }

/* Page hero (inner) */
.page-hero {
  padding: 2.25rem 0 1.5rem; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.page-hero .lead { max-width: 54ch; }
.page-hero .trust-row { margin-top: 1rem; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border); padding: 2.5rem 0 2rem; margin-top: 2rem;
  background: var(--bg);
}
.footer-grid {
  display: grid; gap: 1.75rem;
}
@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand p { font-size: 0.9rem; }
.footer-col h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); margin-bottom: 0.75rem;
}
.footer-col a {
  display: flex; align-items: center; color: var(--text); padding: 0.45rem 0; min-height: 44px;
  font-size: 0.95rem;
}
.footer-col a:hover { color: var(--accent); }
.footer-roc {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--muted);
}
.footer-roc strong { color: var(--text); font-weight: 600; }
.footer-bottom {
  margin-top: 0.75rem; font-size: 0.8rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; justify-content: space-between;
}

/* Misc */
.stat-row {
  display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr;
  margin: 1.25rem 0;
}
@media (min-width: 600px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }
.stat {
  border: 1px solid var(--border); background: var(--bg); border-radius: var(--radius);
  padding: 1rem; text-align: center;
}
.stat strong { display: block; font-size: 1.35rem; color: var(--accent); margin-bottom: 0.2rem; }
.stat span { font-size: 0.8rem; color: var(--muted); }
.breadcrumbs {
  font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem;
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* Home: tighter vertical rhythm */
.page-home .hero {
  min-height: min(58vh, 520px);
}
.page-home .hero-content {
  padding: 2rem 0 1.5rem;
}
.page-home .hero-actions { margin-top: 1rem; }
.page-home .trust-row { margin-top: 1rem; }
.page-home .section { padding: 2rem 0; }
.page-home .section-header { margin-bottom: 1.1rem; }
.page-home .card-grid { gap: 0.85rem; }
.page-home .card-media { aspect-ratio: 16 / 10; }
.page-home .card-body { padding: 0.95rem 1rem 1.1rem; }
.page-home .card-link { margin-top: 0.65rem; }
.page-home .split { gap: 1.25rem; }
.page-home .cta-band { padding-block: 2rem; }
.page-home .process-list { gap: 0.45rem !important; }
.page-home p { margin-bottom: 0.75rem; }
.page-home h2.nowrap-line {
  font-size: clamp(1.15rem, 3.6vw, 1.75rem);
}
@media (min-width: 640px) {
  .page-home h2.nowrap-line { white-space: nowrap; }
}
