:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #5b6472;
  --line: #d8dee8;
  --soft-line: #e9edf3;
  --panel: #ffffff;
  --surface: #f6f8fb;
  --surface-strong: #eef3f8;
  --accent: #246bca;
  --accent-dark: #154b94;
  --accent-soft: #dceafa;
  --green: #177456;
  --gold: #9a6b13;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 4.5rem;
  padding: 0.85rem clamp(1rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 251, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 13rem;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(0.6rem, 2vw, 1.4rem);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.primary-nav a,
.login-link {
  text-decoration: none;
}

.primary-nav a:hover,
.login-link:hover,
.service-grid a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.login-link {
  min-width: max-content;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

main {
  display: grid;
  gap: 1rem;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 1rem clamp(1rem, 4vw, 2rem) 3rem;
}

.hero-section,
.content-band,
.split-band,
.quote-section,
.contact-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
  min-height: calc(100vh - 6.5rem);
  padding: clamp(1.5rem, 5vw, 3.25rem);
}

.hero-copy {
  display: grid;
  align-content: center;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--accent-dark);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.55rem;
  font-size: clamp(4.75rem, 13vw, 9rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(1.75rem, 4vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.45rem;
  font-size: 1.03rem;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.62;
}

.hero-line {
  margin-bottom: 1.1rem;
  color: var(--ink);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.12;
}

.hero-summary {
  max-width: 47rem;
  margin-bottom: 1.6rem;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.button.quiet {
  background: var(--surface-strong);
}

.button.wide {
  width: 100%;
}

.button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.intake-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.card-header strong {
  color: var(--gold);
}

.intake-steps {
  display: grid;
  gap: 0.8rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.intake-steps li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: center;
  min-height: 3rem;
  padding: 0.65rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: white;
  font-weight: 750;
}

.intake-steps span {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 900;
}

.content-band,
.split-band,
.quote-section,
.contact-band {
  padding: clamp(1.25rem, 4vw, 2.5rem);
}

.section-heading {
  max-width: 48rem;
  margin-bottom: 1.3rem;
}

.service-grid,
.page-grid,
.process-grid,
.handoff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.service-grid article,
.page-grid a,
.process-grid article,
.handoff-grid article {
  min-height: 11rem;
  padding: 1rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface);
}

.service-grid a {
  color: var(--accent-dark);
  font-weight: 850;
  text-decoration: none;
}

.page-grid a {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
}

.page-grid a:hover {
  border-color: rgba(36, 107, 202, 0.5);
}

.page-grid span {
  color: var(--muted);
  line-height: 1.5;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface);
}

.work-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--surface-strong);
}

.work-card div {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
}

.work-card strong {
  font-size: 0.98rem;
}

.work-card span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.split-band,
.quote-section,
.contact-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 4vw, 2.25rem);
  align-items: start;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.process-grid article span {
  display: block;
  margin-bottom: 1rem;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
}

.process-grid article strong,
.handoff-grid article strong {
  display: block;
  margin-bottom: 0.45rem;
}

.quote-copy {
  position: sticky;
  top: 6rem;
}

.handoff-box,
.portal-panel {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.quote-form {
  display: grid;
  gap: 1rem;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

legend {
  padding: 0 0.4rem;
  font-weight: 900;
}

.radio-grid,
.check-grid,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.4rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.radio-grid label,
.check-grid label {
  grid-template-columns: auto 1fr;
  align-items: center;
  padding: 0.7rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: white;
}

.check-grid {
  margin-top: 0.75rem;
}

input,
select,
textarea {
  width: 100%;
  min-height: 2.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0.7rem 0.8rem;
}

textarea {
  resize: vertical;
}

.full-field {
  margin-top: 0.75rem;
}

.upload-box {
  place-items: center;
  min-height: 7.5rem;
  padding: 1rem;
  border: 2px dashed #a9b7c8;
  border-radius: 8px;
  background: white;
  text-align: center;
}

.upload-box input {
  max-width: 32rem;
  border: 0;
  padding: 0;
}

.upload-box span {
  color: var(--muted);
  font-weight: 750;
}

.form-note {
  margin: 0;
  font-size: 0.88rem;
}

.field-help {
  margin: 0.65rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.submit-status {
  min-height: 2.75rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(36, 107, 202, 0.28);
  border-radius: 8px;
  background: rgba(36, 107, 202, 0.08);
  color: var(--accent-dark);
  font-weight: 850;
}

.submit-status.ok {
  border-color: rgba(23, 116, 86, 0.32);
  background: rgba(23, 116, 86, 0.08);
  color: var(--green);
}

.submit-status.error {
  border-color: rgba(154, 107, 19, 0.38);
  background: rgba(154, 107, 19, 0.1);
  color: #744b07;
}

.submit-status:empty {
  display: none;
}

.portal-panel {
  display: grid;
  gap: 0.65rem;
}

.portal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: white;
}

.portal-row span {
  color: var(--muted);
  font-weight: 800;
}

address {
  display: grid;
  gap: 0.5rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  font-style: normal;
}

address strong {
  font-size: 1.1rem;
}

address a {
  color: var(--accent-dark);
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 960px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-nav {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-section,
  .split-band,
  .quote-section,
  .contact-band {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .quote-copy {
    position: static;
  }

  .service-grid,
  .page-grid,
  .process-grid,
  .handoff-grid,
  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  main {
    padding-inline: 0.75rem;
  }

  .brand {
    min-width: 0;
  }

  .login-link {
    width: 100%;
    text-align: center;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .service-grid,
  .page-grid,
  .process-grid,
  .handoff-grid,
  .work-grid,
  .radio-grid,
  .check-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .portal-row {
    align-items: flex-start;
    flex-direction: column;
  }
}
