/* Source of truth: ../brand.json — keep these variables in sync. */
:root {
  --bg: #171a1d;
  --bg-warm: #1d2125;
  --surface: #252a2e;
  --ink: #e4e6e8;
  --ink-muted: #9aa0a6;
  --pale-blue: #a8c5d4;
  --pale-blue-deep: #7a9aab;
  --accent: #a8c5d4;
  --line: #3a4046;
  --btn-text: #171a1d;
  --font: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --font-serif: "Source Serif 4", "Iowan Old Style", Georgia, serif;
  --max: 68rem;
  --space: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--ink);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: var(--space);
  top: var(--space);
  z-index: 20;
  background: var(--surface);
  padding: 0.4rem 0.7rem;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--bg-warm);
}

.site-header .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem var(--space) 0.95rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}

.brand {
  display: grid;
  gap: 0.28rem;
}

.wordmark {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  line-height: 1.15;
}

.wordmark:hover {
  color: var(--accent);
}

.header-tools {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.1rem;
}

.header-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.header-phone {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.header-phone:hover {
  color: var(--accent);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.15rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.28em;
}

@media (max-width: 639px) {
  .header-tools {
    width: 100%;
    margin-left: 0;
  }

  .nav {
    width: 100%;
  }

  .header-cta {
    width: 100%;
  }
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
}

main {
  padding-bottom: 3.5rem;
}

.hero {
  background: linear-gradient(180deg, var(--bg-warm) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0;
}

.hero .wrap {
  display: grid;
  gap: 1.15rem;
}

.hero:not(.hero-home) .wrap {
  max-width: 42rem;
}

.hero-split {
  grid-template-columns: 1fr;
  align-items: center;
  gap: 1.75rem;
}

.hero-home h1 {
  text-align: left;
  font-size: clamp(2.35rem, 5vw, 3.35rem);
}

@media (min-width: 840px) {
  .hero-split {
    grid-template-columns: minmax(0, 1.35fr) minmax(12rem, 18rem);
    gap: 2.75rem;
  }
}

.hero-copy {
  display: grid;
  gap: 1rem;
}

.hero-photo {
  margin: 0;
  justify-self: center;
  width: min(100%, 18rem);
}

.hero-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 16%;
  border-radius: 1.15rem;
  border: 1px solid var(--line);
  display: block;
}

.hero-photo figcaption {
  margin: 0.7rem 0 0;
  font-size: 1.15rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 600;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
  text-align: center;
}

.lede {
  margin: 0 auto;
  font-size: 1.12rem;
  color: var(--ink-muted);
  max-width: 36rem;
  text-align: center;
}

.pull {
  margin: 0.25rem 0 0;
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 400;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 34rem;
  text-align: left;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.2rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--accent);
  color: var(--btn-text);
}

.btn-primary:hover {
  background: var(--ink);
  color: var(--btn-text);
}

.section {
  padding: 3.25rem 0 0;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  letter-spacing: -0.02em;
  text-align: left;
}

.home-strip .wrap {
  display: grid;
  gap: 0.65rem;
  justify-items: start;
}

.home-strip p {
  margin: 0;
  color: var(--ink);
}

.home-strip .btn {
  margin-top: 0.35rem;
}

.section p {
  margin: 0 0 1rem;
  color: var(--ink-muted);
  max-width: 40rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.45rem 1.35rem 1.5rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
}

.more {
  margin: 1.1rem 0 0;
}

.wrap.quote-block {
  max-width: 42rem;
}

.quote-block .lede {
  margin-bottom: 1.25rem;
}

.quote-block form {
  margin-top: 0.25rem;
}

.note {
  margin-top: 1.5rem;
  padding: 1rem 1.1rem;
  background: var(--bg-warm);
  border-left: 4px solid var(--pale-blue);
}

.note p {
  margin: 0;
  color: var(--ink);
}

/* Gallery placeholders stay for when job photos exist. Page is in .parked/. */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.placeholder {
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(
    -45deg,
    var(--bg-warm),
    var(--bg-warm) 12px,
    var(--pale-blue) 12px,
    var(--pale-blue) 13px
  );
  border: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  gap: 2rem;
  margin-top: 1.25rem;
}

@media (min-width: 720px) {
  .contact-grid {
    grid-template-columns: 1fr 1.15fr;
    align-items: stretch;
  }
}

.contact-details p {
  margin: 0 0 0.65rem;
  color: var(--ink);
}

.contact-details a {
  font-weight: 600;
}

.contact-form-col {
  display: flex;
  flex-direction: column;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.45rem 1.35rem 1.5rem;
}

.form-step {
  display: grid;
  gap: 0.85rem;
}

.form-step[hidden] {
  display: none;
}

.form-step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

@media (min-width: 720px) {
  #quote-form[data-step="1"] {
    flex: 1;
  }

  #quote-form[data-step="1"] #form-step-1 {
    flex: 1;
    display: flex;
    flex-direction: column;
  }

  #quote-form[data-step="1"] #form-next {
    margin-top: auto;
  }
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 600;
  font-size: 0.92rem;
}

input,
select,
textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  width: 100%;
}

select {
  appearance: none;
  padding-right: 2.15rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' viewBox='0 0 12 8'%3E%3Cpath stroke='%239aa0a6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.75 6 6.25 10.5 1.75'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 0.72rem 0.48rem;
}

textarea {
  min-height: 6.5rem;
  resize: vertical;
}

textarea.short {
  min-height: 4.2rem;
}

form button {
  align-self: start;
  justify-self: start;
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: var(--btn-text);
  border: 0;
  padding: 0.7rem 1.25rem;
  border-radius: 6px;
  cursor: pointer;
}

form button:hover {
  background: var(--ink);
  color: var(--btn-text);
}

form button.form-back {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

form button.form-back:hover {
  background: var(--bg);
  color: var(--ink);
}

form button:disabled {
  opacity: 0.6;
}

form button#form-submit:disabled {
  cursor: wait;
}

form button#form-next:disabled {
  cursor: not-allowed;
}

form button:disabled:hover {
  background: var(--accent);
  color: var(--btn-text);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-error {
  margin: 0;
  color: #c98989;
  font-size: 0.95rem;
}

.form-success {
  margin: 0;
  padding: 1.2rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--pale-blue);
  color: var(--ink);
  font-size: 1.12rem;
}

.privacy {
  margin: 0.15rem 0 0;
  font-size: 0.85rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.site-footer .wrap {
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--accent);
}

.site-footer .meta {
  font-size: 0.78rem;
}

.copyright {
  margin: 0.35rem 0 0;
}

.wrap.prose {
  max-width: 42rem;
}

.prose ul {
  margin: 0.4rem 0 1rem;
  padding-left: 1.2rem;
  color: var(--ink-muted);
}

.prose li {
  margin: 0.25rem 0;
}

.prose h2 {
  margin-top: 1.75rem;
}

.prose h2:first-child {
  margin-top: 0;
}
