/* Triangle Mechanic - site stylesheet (hand-authored, no Squarespace)
   ------------------------------------------------------------------ */

:root {
  --tm-accent: #f26f21;
  --tm-accent-dark: #d95f16;
  --tm-btn-ink: #1a1d20;      /* button label - AA on the accent fill */
  --tm-ink: #31363a;
  --tm-paper: #eeefea;
  --tm-navy: #20304f;
  --tm-navy-deep: #1a2740;
  --tm-white: #ffffff;
  --tm-muted: #63676b;

  --tm-font-head: "interstate", "Halyard Display", "Helvetica Neue", Arial, sans-serif;
  --tm-font-body: "halyard-display", "interstate", "Helvetica Neue", Arial, sans-serif;
  --tm-font-quote: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --tm-header-h: 104px;
  --tm-maxw: 1160px;
  --tm-radius: 4px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

:focus-visible { outline: 3px solid var(--tm-accent); outline-offset: 2px; border-radius: 2px; }

.tm-skip {
  position: absolute;
  left: 12px; top: -60px;
  z-index: 2000;
  background: var(--tm-ink);
  color: var(--tm-white);
  padding: 10px 16px;
  border-radius: var(--tm-radius);
  font-family: var(--tm-font-head);
  font-weight: 700;
  transition: top .15s ease;
}
.tm-skip:focus { top: 12px; text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

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

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

a { color: var(--tm-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Links sitting on the light (paper/white) background need more contrast than
   the raw accent gives, so use ink text with an accent underline there. */
.tm-prose a:not(.tm-btn),
.tm-info a:not(.tm-btn),
.tm-form__note a:not(.tm-btn),
.tm-acc__panel a:not(.tm-btn) {
  color: var(--tm-ink);
  text-decoration: underline;
  text-decoration-color: var(--tm-accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
}
.tm-prose a:not(.tm-btn):hover,
.tm-info a:not(.tm-btn):hover,
.tm-form__note a:not(.tm-btn):hover,
.tm-acc__panel a:not(.tm-btn):hover { color: var(--tm-accent-dark); }

h1, h2, h3, h4 {
  font-family: var(--tm-font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: inherit;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }

.tm-container {
  width: 100%;
  max-width: var(--tm-maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.tm-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.tm-btn {
  display: inline-block;
  font-family: var(--tm-font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .01em;
  padding: .9em 1.9em;
  border-radius: var(--tm-radius);
  background: var(--tm-accent);
  color: var(--tm-btn-ink);
  border: 2px solid var(--tm-accent);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .05s ease;
}
.tm-btn:hover { background: var(--tm-accent-dark); border-color: var(--tm-accent-dark); color: var(--tm-btn-ink); text-decoration: none; }
.tm-btn:active { transform: translateY(1px); }
.tm-btn--ghost { background: transparent; color: var(--tm-white); border-color: var(--tm-white); }
.tm-btn--ghost:hover { background: var(--tm-white); color: var(--tm-ink); }
.tm-btn--block { display: block; width: 100%; text-align: center; }

/* ---------- Header ---------- */
.tm-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: var(--tm-ink);
  color: var(--tm-white);
}
.tm-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--tm-header-h);
  padding-top: 12px;
  padding-bottom: 12px;
}
.tm-header__logo img { height: 80px; width: auto; }
.tm-header__spacer { flex: 1; }
.tm-header__menu { display: flex; align-items: center; gap: 28px; }
.tm-nav { display: flex; align-items: center; gap: 28px; }
.tm-nav a {
  color: var(--tm-white);
  font-family: var(--tm-font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.tm-nav a:hover { color: var(--tm-accent); text-decoration: none; }
.tm-social { display: flex; align-items: center; gap: 14px; }
.tm-social a { color: var(--tm-white); display: inline-flex; }
.tm-social a:hover { color: var(--tm-accent); }
.tm-social svg { width: 22px; height: 22px; fill: currentColor; }

.tm-burger {
  display: none;
  background: none; border: 0; padding: 6px;
  color: var(--tm-white); cursor: pointer;
  position: relative; z-index: 1;
}
.tm-burger svg { width: 28px; height: 28px; stroke: currentColor; }
.tm-burger__close { display: none; }
body.tm-nav-open .tm-burger__open { display: none; }
body.tm-nav-open .tm-burger__close { display: block; }

/* push content below fixed header */
.tm-main { padding-top: var(--tm-header-h); }

/* ---------- Sections ---------- */
.tm-section { padding: clamp(56px, 9vw, 120px) 0; }
.tm-section--tight { padding: clamp(36px, 6vw, 72px) 0; }
.tm-section--dark { background: var(--tm-navy); color: var(--tm-white); }
.tm-section--dark a { color: var(--tm-accent); }
.tm-section--ink { background: var(--tm-ink); color: var(--tm-white); }

.tm-section--photo {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--tm-white);
}
.tm-section--photo::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(28, 32, 38, .62);
}
.tm-section--photo > .tm-container { position: relative; z-index: 1; }

/* Light variant: photo background used only as texture, section otherwise
   reads as a normal light section (paper bg, ink text). */
.tm-section--photo-light { color: var(--tm-ink); }
.tm-section--photo-light::before { background: rgba(255, 255, 255, .88); }

/* ---------- Hero ---------- */
.tm-hero { min-height: min(78vh, 680px); display: flex; align-items: center; }
.tm-hero.tm-section--photo::before { background: rgba(28, 32, 38, .4); }
.tm-hero__card {
  background: var(--tm-white);
  color: var(--tm-ink);
  max-width: 560px;
  margin-left: auto;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--tm-radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.tm-hero__card h1 { margin-bottom: .35em; }
.tm-hero__card .tm-lead { font-family: var(--tm-font-head); font-weight: 400; font-size: 1.15rem; }
.tm-hero__card .tm-btn { margin-top: .6em; }
.tm-hero--center { text-align: center; }
.tm-hero--center .tm-hero__card { margin: 0 auto; }

/* ---------- Split (image + text) ---------- */
.tm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.tm-split__media img { border-radius: var(--tm-radius); width: 100%; object-fit: cover; }
.tm-split--reverse .tm-split__media { order: 2; }

.tm-prose p:last-child { margin-bottom: 0; }
.tm-prose .tm-btn { margin-top: 1.2em; }

/* ---------- Reviews ---------- */
.tm-reviews {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 44px);
}
.tm-review {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--tm-radius);
  padding: clamp(24px, 3vw, 36px);
}
.tm-review__quote {
  font-family: var(--tm-font-quote);
  font-style: italic;
  font-size: 1.15rem;
  margin-bottom: 1em;
}
.tm-review__by { font-family: var(--tm-font-head); font-weight: 700; margin-bottom: .4em; }
.tm-review__services { font-size: .95rem; color: rgba(255,255,255,.75); margin: 0; }

/* ---------- CTA band ---------- */
.tm-cta { text-align: center; }
.tm-cta h2 { margin-bottom: .8em; }

/* ---------- Accordion ---------- */
.tm-acc { max-width: 820px; margin: 0 auto; border-top: 1px solid rgba(0,0,0,.15); }
.tm-section--photo .tm-acc { border-color: rgba(255,255,255,.25); }
.tm-acc__item { border-bottom: 1px solid rgba(0,0,0,.15); }
.tm-section--photo .tm-acc__item { border-color: rgba(255,255,255,.25); }
.tm-acc__q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: none; border: 0; cursor: pointer;
  padding: 22px 4px;
  font-family: var(--tm-font-head); font-weight: 700; font-size: 1.05rem;
  letter-spacing: .03em;
  color: inherit; text-align: left;
}
.tm-acc__q::after {
  content: "+"; font-size: 1.4rem; line-height: 1; color: var(--tm-accent);
  transition: transform .2s ease;
}
.tm-acc__q[aria-expanded="true"]::after { content: "\2013"; }
.tm-acc__panel { padding: 0 4px 24px; max-width: 68ch; }
.tm-acc__panel p { margin: 0; }

/* ---------- Contact ---------- */
.tm-contact-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(32px, 6vw, 72px);
}
.tm-info { list-style: none; margin: 0; padding: 0; }
.tm-info li { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.1); }
.tm-info li:last-child { border-bottom: 0; }
.tm-info strong { font-family: var(--tm-font-head); }

/* ---------- Contact form ---------- */
.tm-form { margin: 1.5em 0 .5em; }
.tm-field { margin: 0 0 1em; }
.tm-field label { display: block; font-family: var(--tm-font-head); font-weight: 700; font-size: .95rem; margin-bottom: .35em; }
.tm-field__opt { font-weight: 400; color: var(--tm-muted); }
.tm-field input,
.tm-field textarea {
  width: 100%;
  font: inherit;
  color: var(--tm-ink);
  background: var(--tm-white);
  border: 1px solid #c7c9c4;
  border-radius: var(--tm-radius);
  padding: .7em .8em;
}
.tm-field input:focus,
.tm-field textarea:focus { outline: 2px solid var(--tm-accent); outline-offset: 1px; border-color: var(--tm-accent); }
.tm-field textarea { resize: vertical; }
.tm-field--hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.tm-form .tm-btn { margin-top: .3em; }
.tm-form__status { display: block; margin-top: .8em; font-weight: 700; font-family: var(--tm-font-head); }
.tm-form__status--ok { color: #1c7a3c; }
.tm-form__status--err { color: #b3261e; }
.tm-form__note { font-size: .9rem; color: var(--tm-muted); margin-top: 1em; }

/* ---------- Footer ---------- */
.tm-footer { background: var(--tm-navy-deep); color: var(--tm-white); padding: clamp(48px, 7vw, 88px) 0; }
.tm-footer a { color: var(--tm-white); }
.tm-footer a:hover { color: var(--tm-accent); }
.tm-footer__grid {
  display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: start;
}
.tm-footer__wordmark img { width: 190px; }
.tm-footer__col p { margin: 0 0 .4em; }
.tm-footer__links { display: flex; flex-direction: column; gap: .3em; }
.tm-footer .tm-social { margin-top: 8px; }
.tm-footer .tm-social a { color: var(--tm-white); }
.tm-footer__carfax { margin-left: auto; }
.tm-footer__carfax img { width: 150px; background: #fff; border-radius: var(--tm-radius); padding: 6px; }
.tm-footer__legal { margin-top: 40px; font-size: .85rem; color: rgba(255,255,255,.6); }

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .tm-burger { display: inline-flex; }
  .tm-header__menu {
    position: fixed;
    inset: var(--tm-header-h) 0 0 0;
    background: var(--tm-ink);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 32px 24px;
    transform: translateX(100%);
    transition: transform .25s ease;
  }
  body.tm-nav-open .tm-header__menu { transform: translateX(0); }
  body.tm-nav-open { overflow: hidden; }
  .tm-header__menu .tm-nav { flex-direction: column; gap: 8px; }
  .tm-header__menu .tm-nav a { padding: 14px 24px; font-size: 1.25rem; }
  .tm-header__menu .tm-social { margin-top: 12px; }
  .tm-header__menu .tm-social svg { width: 26px; height: 26px; }
  .tm-header__cta { margin-top: 16px; }
}

@media (max-width: 780px) {
  body { font-size: 17px; }
  .tm-split, .tm-reviews, .tm-contact-grid { grid-template-columns: 1fr; }
  .tm-split--reverse .tm-split__media { order: 0; }
  .tm-hero__card { margin: 0; }
  .tm-footer__carfax { margin-left: 0; }
}
