/* Total Service — St. Louis
   First-draft static site. No build step.
   Palette follows the company logo: charcoal #3d3d3d, white, flame accent. */

:root {
  --charcoal: #3d3d3d;
  --charcoal-dark: #2c2c2c;
  --charcoal-mid: #4a4a4a;
  --charcoal-line: #5a5a5a;
  --white: #ffffff;
  --paper: #f3f3f3;
  --paper-2: #e8e8e8;
  --ink: #222222;
  --ink-soft: #444444;
  --muted: #5e5e5e;
  --line: #d6d6d6;
  --flame: #e0561b;
  --flame-hover: #c64a16;
  --flame-deep: #a83d12;
  --ice: #d9e3e6;
  --header-h: 5.75rem;
  --max: 72rem;
  --font: "IBM Plex Sans", "Segoe UI", Tahoma, sans-serif;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--flame-deep);
  text-underline-offset: 0.15em;
}

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

:focus-visible {
  outline: 2px solid var(--flame);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--white);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.75rem;
}

/* Header
   ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--charcoal);
  color: var(--white);
  border-bottom: 1px solid var(--charcoal-mid);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 1;
  min-width: 0;
}

.brand:hover {
  color: inherit;
}

.brand-logo {
  height: 4.15rem;
  width: auto;
  max-width: min(22rem, 58vw);
  object-fit: contain;
  object-position: left center;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--charcoal-line);
  color: var(--white);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 2px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--white);
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: #ffd4c2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--flame);
  color: #fff;
  border-color: var(--flame);
}

.btn-primary:hover {
  background: var(--flame-hover);
  border-color: var(--flame-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: #8a8a8a;
}

.btn-ghost:hover {
  border-color: var(--white);
  color: var(--white);
}

.btn-light {
  background: var(--white);
  color: var(--charcoal-dark);
  border-color: var(--white);
}

.btn-light:hover {
  background: var(--paper);
  color: var(--charcoal-dark);
}

.btn-lg {
  padding: 0.9rem 1.35rem;
  font-size: 1.05rem;
}

.header-cta {
  margin-left: 0.15rem;
  white-space: nowrap;
}

/* Hero
   ---------------------------------------------------------------- */
.hero {
  background: var(--charcoal-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.5), transparent 72%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.75rem 1.25rem 4.75rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  position: relative;
}

.hero-logo {
  width: min(100%, 28.5rem);
  height: auto;
  margin: 0 0 1.6rem;
}

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ice);
  font-weight: 600;
  margin: 0 0 0.7rem;
}

.hero h1 {
  font-weight: 700;
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.22;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.55;
  color: #d8d8d8;
  max-width: 36rem;
  margin: 0 0 1.75rem;
}

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

.photo-placeholder {
  background:
    repeating-linear-gradient(
      -45deg,
      #333333,
      #333333 12px,
      #3a3a3a 12px,
      #3a3a3a 24px
    );
  border: 1px solid var(--charcoal-line);
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  color: #b0b0b0;
  position: relative;
}

.photo-placeholder.light {
  background:
    repeating-linear-gradient(
      -45deg,
      var(--paper-2),
      var(--paper-2) 12px,
      #dedede 12px,
      #dedede 24px
    );
  border-color: var(--line);
  color: var(--muted);
}

.photo-placeholder .ph-label {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
  margin: 0 0 0.4rem;
}

.photo-placeholder p {
  margin: 0;
  font-size: 0.92rem;
  max-width: 16rem;
}

.photo-placeholder svg {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

/* Sections
   ---------------------------------------------------------------- */
.section {
  padding: 4.5rem 1.25rem;
}

.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 16rem) 1fr;
  gap: 1.5rem 2rem;
  margin-bottom: 2.5rem;
  align-items: end;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.25rem;
}

.section-kicker {
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--flame-deep);
  margin: 0;
}

.section-head h2,
.band h2,
.area h2,
.reviews h2,
.contact h2 {
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

.section-head p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 38rem;
}

/* Services
   ---------------------------------------------------------------- */
.services {
  background: var(--paper);
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.6rem 1.5rem 1.7rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
}

.service-num {
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--flame);
  font-size: 0.85rem;
  grid-column: 2;
}

.service-icon {
  grid-row: 1 / span 3;
  width: 2.75rem;
  color: var(--charcoal);
  align-self: start;
  margin-top: 0.15rem;
}

.service-card h3 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  grid-column: 2;
}

.service-card p {
  margin: 0.35rem 0 0;
  color: var(--ink-soft);
  grid-column: 2;
}

/* Band: York + financing
   ---------------------------------------------------------------- */
.band {
  background: var(--charcoal);
  color: var(--white);
  padding: 4.5rem 1.25rem;
}

.band-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.band-card {
  border: 1px solid var(--charcoal-line);
  background: var(--charcoal-mid);
  padding: 2rem 1.75rem;
}

.band-card h2 {
  margin: 0 0 0.85rem;
}

.band-card p {
  margin: 0;
  color: #e2e2e2;
  max-width: 36rem;
}

.band-card.finance {
  background: #4a2e22;
  border-color: #6a4333;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.band-card.finance h2 {
  color: #ffd4c2;
}

.band-note {
  margin-top: 1.15rem !important;
  font-size: 0.95rem;
  color: #d8c4bb !important;
}

/* Service area
   ---------------------------------------------------------------- */
.area {
  background: var(--paper-2);
}

.area-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 2.5rem 2rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.area-mark {
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--charcoal);
  margin: 0 0 0.75rem;
}

.area p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 28rem;
}


/* Reviews
   ---------------------------------------------------------------- */
.reviews {
  background: var(--charcoal);
  color: var(--white);
  text-align: center;
}

.reviews-inner {
  max-width: 42rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.reviews .section-kicker {
  color: #ffd4c2;
  margin-bottom: 0.75rem;
}

.reviews h2 {
  margin: 0 0 1.6rem;
}

.reviews-cta {
  min-width: min(100%, 22rem);
  padding: 1rem 1.75rem;
  font-size: 1.12rem;
}

/* Contact
   ---------------------------------------------------------------- */
.contact {
  background: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-methods {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-methods a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.2rem;
  display: inline-block;
}

.contact-methods a:hover {
  color: var(--flame);
}

.contact-methods span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.15rem;
}

.form-note {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  background: var(--paper-2);
  border-left: 3px solid var(--flame);
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.quote-form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem 1.6rem;
}

.form-row {
  margin-bottom: 1rem;
}

.quote-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #c8c8c8;
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
}

.quote-form textarea {
  min-height: 7.5rem;
  resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  outline: 2px solid var(--flame);
  outline-offset: 0;
  border-color: var(--flame);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.1rem;
  margin-top: 1.15rem;
}

.form-hint {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* Footer
   ---------------------------------------------------------------- */
.site-footer {
  background: var(--charcoal-dark);
  color: #c8c8c8;
  padding: 2rem 1.25rem;
  font-size: 0.95rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.footer-logo {
  height: 3.1rem;
  width: auto;
}

.footer-tag {
  margin: 0;
  font-size: 0.85rem;
  color: #bdbdbd;
}

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

.site-footer a:hover {
  color: #ffd4c2;
  text-decoration: underline;
}

/* Mobile call bar
   ---------------------------------------------------------------- */
.mobile-bar {
  display: none;
}

/* Responsive
   ---------------------------------------------------------------- */
@media (max-width: 960px) {
  .hero-inner,
  .band-inner,
  .area-panel,
  .contact-grid,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 2.75rem 1.25rem 3.25rem;
    gap: 2rem;
  }

  .photo-placeholder {
    min-height: 16rem;
  }

  .section-head {
    gap: 0.5rem;
  }

  .site-nav {
    gap: 0.95rem;
  }
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--charcoal-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 0 1rem;
    border-bottom: 1px solid var(--charcoal-mid);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.75rem 1.25rem;
  }

  .header-cta {
    display: none;
  }

  .brand-logo {
    height: 3.5rem;
  }

  :root {
    --header-h: 4.75rem;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    background: var(--charcoal);
    border-top: 1px solid var(--charcoal-mid);
    padding: 0.55rem 0.5rem calc(0.55rem + env(safe-area-inset-bottom));
    gap: 0.4rem;
  }

  .mobile-bar .btn {
    padding: 0.7rem 0.4rem;
    font-size: 0.82rem;
  }

  body {
    padding-bottom: 0;
  }

  .site-footer {
    padding-bottom: calc(2rem + 4.5rem + env(safe-area-inset-bottom));
  }

  .section,
  .band {
    padding: 3.25rem 1.15rem;
  }

  .area-panel,
  .quote-form,
  .band-card {
    padding: 1.5rem 1.15rem;
  }
}
