/*
Theme Name: TrueCraft Home Repair
Theme URI: https://example.com/
Author: Codex
Description: A polished local home-repair website for TrueCraft Home Repair in Normal Heights and nearby San Diego neighborhoods.
Version: 2.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: truecraft-home-repair
*/

:root {
  --tch-ink: #20201d;
  --tch-muted: #60645c;
  --tch-line: #ded8cd;
  --tch-paper: #fbf8f1;
  --tch-soft: #f0eadf;
  --tch-card: #ffffff;
  --tch-olive: #55684f;
  --tch-olive-dark: #364633;
  --tch-wood: #b56f3b;
  --tch-shadow: 0 18px 44px rgba(42, 37, 29, 0.12);
  --tch-radius: 8px;
  --tch-wrap: min(1160px, calc(100vw - 40px));
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--tch-ink);
  background: var(--tch-paper);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.62;
}

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

a {
  color: inherit;
}

.tch-wrap {
  width: var(--tch-wrap);
  margin: 0 auto;
}

.tch-site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(32, 32, 29, 0.09);
  background: rgba(251, 248, 241, 0.95);
  backdrop-filter: blur(14px);
}

.tch-nav {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
}

.tch-brand img {
  width: 247px;
  max-height: 75px;
  object-fit: contain;
}

.tch-menu__list {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tch-menu a {
  color: var(--tch-muted);
  font-size: 0.92rem;
  font-weight: 760;
  text-decoration: none;
}

.tch-menu a:hover,
.tch-menu a:focus {
  color: var(--tch-olive-dark);
}

.tch-button,
.tch-intake button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--tch-olive);
  border-radius: var(--tch-radius);
  background: var(--tch-olive);
  color: #ffffff;
  font-weight: 820;
  text-decoration: none;
  cursor: pointer;
}

.tch-button:hover,
.tch-button:focus,
.tch-intake button:hover,
.tch-intake button:focus {
  background: var(--tch-olive-dark);
}

.tch-button--secondary {
  background: transparent;
  color: var(--tch-olive-dark);
}

.tch-button--secondary:hover,
.tch-button--secondary:focus {
  background: var(--tch-soft);
}

.tch-button--small {
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.9rem;
}

.tch-text-link {
  color: var(--tch-olive-dark);
  font-weight: 820;
}

.tch-hero {
  padding: clamp(52px, 7vw, 86px) 0 64px;
  border-bottom: 1px solid var(--tch-line);
}

.tch-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(30px, 5vw, 68px);
  align-items: center;
}

.tch-kicker {
  margin: 0 0 12px;
  color: var(--tch-olive-dark);
  font-size: 0.78rem;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tch-hero h1,
.tch-page h1 {
  margin: 0 0 18px;
  font-size: clamp(2.9rem, 7vw, 6.7rem);
  line-height: 0.94;
  letter-spacing: 0;
}

.tch-lede,
.tch-content > p,
.tch-section__head p {
  color: #3f443c;
  font-size: clamp(1.08rem, 2vw, 1.24rem);
}

.tch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
}

.tch-trust {
  max-width: 620px;
  margin: 24px 0 0;
  color: var(--tch-muted);
  font-weight: 700;
}

.tch-hero__media {
  margin: 0;
  border-radius: var(--tch-radius);
  overflow: hidden;
  box-shadow: var(--tch-shadow);
  background: var(--tch-soft);
}

.tch-hero__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.tch-section,
.tch-page {
  padding: clamp(58px, 8vw, 92px) 0;
  border-bottom: 1px solid var(--tch-line);
}

.tch-section--soft {
  background: var(--tch-soft);
}

.tch-section__head,
.tch-content {
  max-width: 780px;
}

.tch-content--wide {
  max-width: 920px;
}

.tch-section h2,
.tch-final-cta h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  line-height: 0.98;
}

.tch-card-grid {
  display: grid;
  gap: 16px;
  margin-top: 28px;
}

.tch-card-grid--services {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tch-card-grid--trust {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tch-card,
.tch-service-detail,
.tch-contact-box,
.tch-intake {
  border: 1px solid var(--tch-line);
  border-radius: var(--tch-radius);
  background: var(--tch-card);
}

.tch-card {
  padding: 22px;
}

.tch-card h3,
.tch-service-detail h2,
.tch-project-card h3 {
  margin: 0 0 10px;
  line-height: 1.12;
}

.tch-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--tch-muted);
}

.tch-card p,
.tch-service-detail p,
.tch-project-card p {
  margin: 0;
  color: var(--tch-muted);
}

.tch-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0;
}

.tch-steps article {
  padding: 24px;
  border-left: 4px solid var(--tch-wood);
  background: rgba(255, 255, 255, 0.72);
}

.tch-steps span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--tch-olive);
  color: #ffffff;
  font-weight: 900;
}

.tch-project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.tch-project-card {
  overflow: hidden;
  border: 1px solid var(--tch-line);
  border-radius: var(--tch-radius);
  background: var(--tch-card);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.tch-project-card__media {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  height: 360px;
  background: var(--tch-soft);
}

.tch-project-card__figure {
  position: relative;
  display: block;
  margin: 0;
  min-width: 0;
  min-height: 0;
}

.tch-project-card__figure:first-child {
  grid-row: span 2;
}

.tch-project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tch-project-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tch-project-card__figure figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--tch-olive-dark);
  padding: 4px 9px;
  font-size: 0.74rem;
  font-weight: 860;
}

.tch-project-card__media--single {
  display: block;
  height: auto;
}

.tch-project-card__media--single img,
.tch-project-card__media--single video {
  aspect-ratio: 4 / 3;
}

.tch-user-gallery {
  margin-top: 40px;
}

.tch-project-card__body {
  position: relative;
  z-index: 1;
  flex: 1;
  padding: 20px;
  background: var(--tch-card);
  color: var(--tch-ink);
}

.tch-project-card__body span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--tch-olive-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tch-split,
.tch-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.tch-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tch-chips span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid var(--tch-line);
  border-radius: 999px;
  background: #ffffff;
  padding: 0 14px;
  color: var(--tch-olive-dark);
  font-weight: 780;
}

.tch-chips--large span {
  min-height: 48px;
  padding: 0 18px;
}

.tch-final-cta {
  padding: clamp(58px, 8vw, 92px) 0;
  background: var(--tch-olive-dark);
  color: #ffffff;
}

.tch-final-cta p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.18rem;
}

.tch-final-cta .tch-button {
  border-color: #ffffff;
  background: #ffffff;
  color: var(--tch-olive-dark);
}

.tch-final-cta .tch-text-link {
  color: #ffffff;
}

.tch-service-list {
  display: grid;
  gap: 16px;
  margin: 34px 0;
}

.tch-service-detail {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr;
  gap: 22px;
  padding: 24px;
}

.tch-service-detail h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
}

.tch-contact-box {
  margin: 24px 0;
  padding: 20px;
}

.tch-contact-box p {
  margin: 0 0 10px;
}

.tch-contact-box p:last-child {
  margin-bottom: 0;
}

.tch-footer {
  padding: 36px 0;
  background: #201f1b;
  color: rgba(255, 255, 255, 0.82);
}

.tch-footer__grid {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
}

.tch-footer a {
  color: #ffffff;
}

.tch-socials {
  display: grid;
  gap: 6px;
}

.tch-intake {
  padding: 24px;
  box-shadow: var(--tch-shadow);
}

.tch-intake h2 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.tch-intake label {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  color: #34362f;
  font-weight: 760;
}

.tpi-hidden-field {
  display: none !important;
}

.tch-intake input,
.tch-intake select,
.tch-intake textarea {
  width: 100%;
  border: 1px solid #cfc7ba;
  border-radius: var(--tch-radius);
  background: #ffffff;
  padding: 12px;
  font: inherit;
}

.tch-intake .tch-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-weight: 650;
}

.tch-intake .tch-check input {
  width: auto;
  margin-top: 5px;
}

.tch-intake__note,
.tch-intake__success {
  padding: 12px;
  border-radius: var(--tch-radius);
  background: var(--tch-soft);
  color: var(--tch-muted);
}

.tch-intake__success {
  border: 1px solid #9cb28f;
  color: var(--tch-olive-dark);
  font-weight: 820;
}

@media (max-width: 980px) {
  .tch-nav {
    grid-template-columns: 1fr auto;
  }

  .tch-menu {
    grid-column: 1 / -1;
    order: 3;
  }

  .tch-menu__list {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .tch-hero__grid,
  .tch-split,
  .tch-contact-grid,
  .tch-service-detail {
    grid-template-columns: 1fr;
  }

  .tch-card-grid--services,
  .tch-card-grid--trust,
  .tch-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .tch-wrap {
    width: min(100% - 28px, 1160px);
  }

  .tch-nav {
    min-height: auto;
    padding: 14px 0;
  }

  .tch-brand img {
    width: 205px;
  }

  .tch-menu__list {
    gap: 10px 14px;
  }

  .tch-button--small {
    display: none;
  }

  .tch-hero h1,
  .tch-page h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .tch-card-grid--services,
  .tch-card-grid--trust,
  .tch-steps,
  .tch-project-grid {
    grid-template-columns: 1fr;
  }

  .tch-project-card__media {
    height: auto;
    grid-template-columns: 1fr;
  }

  .tch-project-card__media img {
    aspect-ratio: 4 / 3;
  }

  .tch-project-card__figure:first-child {
    grid-row: auto;
  }

  .tch-footer__grid {
    grid-template-columns: 1fr;
  }
}
