/* Critical Site Solutions — prototype styles
   Brand colors sampled from the existing CSS logo. */
:root {
  --navy: #28388e;
  --navy-dark: #1d2a6e;
  --navy-tint: #eef0f8;
  --ink: #221e1f;
  --gray: #68696b;
  --line: #e3e4e8;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --radius: 10px;
  --max: 1180px;
  --shadow: 0 1px 2px rgba(20, 24, 40, .06), 0 8px 24px rgba(20, 24, 40, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--navy); margin-bottom: .75rem;
}
.lede { font-size: 1.15rem; color: var(--gray); max-width: 36em; }
section { padding: 88px 0; scroll-margin-top: 116px; } /* clear the sticky header on anchor jumps */
section.alt { background: var(--bg-alt); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 600; font-size: .98rem;
  padding: .8em 1.4em; border-radius: 8px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-primary:disabled { background: #b9bdd3; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 116px; gap: 24px; }
.logo img { height: 96px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:hover { color: var(--navy); }
.nav .phone { color: var(--gray); font-weight: 500; }
.nav .btn { padding: .55em 1.1em; color: #fff; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* ---------- Header extras (mobile phone + quote jump) ---------- */
.header-right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.header-actions { display: none; align-items: center; gap: 10px; }
.header-phone {
  color: var(--navy); font-weight: 600; text-decoration: none;
  font-size: .95rem; white-space: nowrap;
}
.header-phone:hover { text-decoration: underline; }
.header-quote { padding: .45em .85em; font-size: .88rem; color: #fff; }

/* ---------- Hero + contact (above the fold) ---------- */
.hero { padding: 28px 0 32px; }
.hero h1 { font-size: clamp(1.85rem, 3.2vw, 2.55rem); margin-bottom: .4em; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: start; }
.hero-copy { padding-top: 4px; }
.hero-copy .lede { margin-bottom: 1.1rem; font-size: 1.08rem; }
.hero-points { list-style: none; padding: 0; margin: 0 0 1.15rem; display: grid; gap: .45rem; }
.hero-points li { display: flex; gap: .6em; align-items: baseline; color: var(--ink); font-size: .98rem; }
.hero-points li::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); transform: translateY(-2px); }
.hero-phone { margin: 0 0 .25rem; }
.hero-phone a {
  color: var(--navy); font-weight: 700; font-size: 1.45rem;
  letter-spacing: -.02em; text-decoration: none;
}
.hero-phone a:hover { text-decoration: underline; }
.hero-phone-note { margin: 0 0 .15rem; color: var(--gray); font-size: .9rem; }
.hero-photo { margin: 0; }
.hero-jump { display: inline-flex; margin-top: 14px; }
.hero-form { padding: 22px 22px 20px; }
.hero-form h2 { font-size: 1.2rem; margin-bottom: .35em; }
.hero-form .fine { margin-bottom: 14px; }
.hero-form .fine a { font-weight: 600; }
.hero-form .dialog-actions { margin-top: 14px; }
.hero-form .form-grid input, .hero-form .form-grid textarea { padding: .5em .7em; }
.hero-form textarea { min-height: 4.2em; resize: vertical; }

.trust-bar {
  list-style: none; padding: 14px 0 0; margin: 24px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  border-top: 1px solid var(--line);
}
.trust-bar li { display: grid; gap: 2px; }
.trust-bar strong { font-size: .98rem; color: var(--navy); }
.trust-bar span { font-size: .82rem; color: var(--gray); }

/* Configurator sits in its own section under the hero */
.config-section { padding: 48px 0 72px; }
.config-section-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.config-intro { padding-top: 8px; }
.config-intro .lede { margin-bottom: 0; }

.config {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); overflow: hidden;
}
.config-head { padding: 20px 24px 4px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.config-head h2 { font-size: 1.25rem; margin: 0; }
.config-head .note { font-size: .8rem; color: var(--gray); }
.config-body { padding: 8px 24px 20px; display: grid; gap: 18px; }
.field-label { font-size: .8rem; font-weight: 600; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; display: block; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .9rem; padding: .5em .9em; border-radius: 999px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
}
.chip:hover { border-color: #b8bdd8; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip small { display: block; font-size: .72rem; opacity: .75; }

.config-summary {
  background: var(--navy-tint); border-top: 1px solid var(--line);
  padding: 18px 24px 22px; display: grid; gap: 14px;
}
.summary-row { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; }
.summary-model { font-weight: 600; }
.summary-spec { font-size: .88rem; color: var(--gray); }
.price-label { font-size: .75rem; color: var(--gray); text-transform: uppercase; letter-spacing: .06em; text-align: right; }
.price { font-size: 1.6rem; font-weight: 700; color: var(--navy); text-align: right; white-space: nowrap; }
.price.empty { color: #9aa0bd; font-size: 1.05rem; font-weight: 600; }
.fine { font-size: .75rem; color: var(--gray); margin: 0; }

/* ---------- Quote dialog ---------- */
dialog {
  border: 0; border-radius: 14px; padding: 0; width: min(520px, calc(100vw - 32px));
  box-shadow: 0 24px 64px rgba(20, 24, 40, .25);
}
dialog::backdrop { background: rgba(20, 24, 40, .45); }
.dialog-inner { padding: 28px; }
.dialog-inner h2 { font-size: 1.35rem; }
.dialog-build { background: var(--bg-alt); border-radius: 8px; padding: 12px 14px; font-size: .9rem; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid label { font-size: .82rem; font-weight: 500; color: var(--gray); display: grid; gap: 4px; }
.form-grid input, .form-grid textarea {
  font: inherit; font-size: .95rem; color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px; padding: .6em .75em; width: 100%;
}
.form-grid input:focus, .form-grid textarea:focus { outline: none; border-color: var(--navy); }
.dialog-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.success { text-align: center; padding: 12px 0 4px; }
.success .check {
  width: 52px; height: 52px; border-radius: 50%; background: var(--navy-tint); color: var(--navy);
  display: grid; place-items: center; font-size: 1.6rem; margin: 0 auto 14px;
}

/* ---------- Photo placeholders (swap for real install photos) ---------- */
.photo {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(40, 56, 142, .05) 14px 28px),
    linear-gradient(160deg, #e9ebf3, #dfe2ee);
  aspect-ratio: 4 / 3; display: flex; align-items: flex-end;
}
.photo.wide { aspect-ratio: 16 / 9; }
.photo.tall { aspect-ratio: 3 / 4; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo .tag {
  position: absolute; top: 12px; left: 12px; font-size: .7rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--navy); background: rgba(255, 255, 255, .85);
  padding: 4px 8px; border-radius: 4px;
}
.photo figcaption {
  position: relative; width: 100%; padding: 28px 16px 12px; font-size: .85rem; color: #fff;
  background: linear-gradient(transparent, rgba(20, 24, 40, .7));
}

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 40px; counter-reset: step; }
.step { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy-tint); color: var(--navy); font-weight: 700; margin-bottom: 16px;
}
.step p { color: var(--gray); margin: 0; }

/* ---------- Managed maintenance (navy band) ---------- */
.maint { background: var(--navy); color: #fff; }
.maint .eyebrow { color: #aab4e6; }
.maint .lede { color: #d5daf2; }
.maint-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.maint-note { color: #fff; font-weight: 500; margin: 0 0 1.75rem; }
.maint-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.maint-list li { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 20px; }
.maint-list h3 { color: #fff; font-size: 1rem; margin-bottom: .35em; }
.maint-list p { color: #c9cfee; font-size: .92rem; margin: 0; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--navy-tint); }

/* ---------- Solutions ---------- */
.solutions { display: grid; gap: 72px; margin-top: 48px; }
.solution { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.solution:nth-child(even) .solution-media { order: 2; }
.solution p { color: var(--gray); }
.solution ul { padding-left: 1.1em; margin: 0; color: var(--ink); }
.solution li { margin-bottom: .35em; }

/* ---------- Work strip ---------- */
.work-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; margin-top: 40px; }
.work-grid .photo:first-child { grid-row: span 2; aspect-ratio: auto; min-height: 100%; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 28px 0; }
.stat strong { display: block; font-size: 1.9rem; color: var(--navy); letter-spacing: -.02em; }
.stat span { font-size: .85rem; color: var(--gray); }
blockquote {
  margin: 0; padding: 28px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  font-size: 1.05rem;
}
blockquote footer { margin-top: 14px; font-size: .88rem; color: var(--gray); font-weight: 600; }
.partners { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.partners span { font-size: .82rem; font-weight: 600; letter-spacing: .08em; color: #8a8c93; text-transform: uppercase; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.contact-list strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gray); }
.contact-list a { color: var(--ink); text-decoration: none; font-size: 1.1rem; font-weight: 500; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .85rem; color: var(--gray); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .solution, .about-grid, .contact-grid, .config-section-grid { grid-template-columns: 1fr; gap: 36px; }
  .solution:nth-child(even) .solution-media { order: 0; }
  .hero-copy { padding-top: 0; }
  .hero-grid { gap: 20px; }
  .hero-copy .lede { margin-bottom: 1rem; font-size: 1.05rem; }
  .trust-bar { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .config-section { padding: 40px 0 56px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .maint-grid { grid-template-columns: 1fr; gap: 36px; }
  .work-grid { grid-template-columns: 1fr 1fr; }
  .work-grid .photo:first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 16 / 9; }
}
@media (max-width: 780px) {
  .menu-toggle { display: block; }
  .header-actions { display: flex; }
  .site-header .wrap { height: 84px; }
  section { scroll-margin-top: 84px; }
  .nav {
    display: none; position: absolute; top: 84px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; border: 0; }
  section { padding: 64px 0; }
  .hero { padding: 16px 0 28px; }
  .hero h1, h1 { font-size: 1.75rem; }
  .logo img { height: 72px; }
  /* Phone is in the sticky header; jump still goes to the bottom quote form. */
  .hero-phone { display: none; }
  .hero-phone-note { display: none; }
  .hero-jump { display: inline-flex; }
  .trust-bar { margin-top: 18px; padding-top: 12px; grid-template-columns: 1fr 1fr; }
  .config-head, .config-body, .config-summary { padding-left: 16px; padding-right: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .steps, .maint-list { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 420px) {
  .logo img { height: 56px; }
  .header-phone { font-size: .85rem; }
  .header-quote { padding: .4em .7em; font-size: .82rem; }
}

/* Install-photo labels removed per Jacob */
.photo .tag { display: none !important; }
