/* ==========================================================================
   MTH Services - shared stylesheet (design tokens + shared chrome)
   Cloned 1:1 from https://www.mthservices.net/ (Wix / Thunderbolt source).
   Fonts are loaded per-page via a <link> to fonts.googleapis.com in <head>.
   Page subagents append page-scoped rules below under a banner reading
   page: <slug> - they must not edit the shared sections above that point.
   ========================================================================== */

:root {
  --bg: #262626;
  --bg-2: #2b2b2b;
  --panel: #2d2b29;
  --tan: #978673;
  --tan-2: #9a8a78;
  --tan-band: #9c8d79;
  --white: #ffffff;
  --text: #ffffff;
  --muted: #cfc8bf;
  --line: #4a4744;
  --maxw: 1200px;
  --font: "Raleway", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 700; line-height: 1.15; }

p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--tan);
  color: #1c1c1c;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* -------------------------------------------------------------------------
   Header / primary nav (shared)
   ------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(255, 255, 255, .04);
}
.header-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo img { width: 72px; height: 72px; object-fit: contain; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.main-nav > a {
  font-size: 15px;
  letter-spacing: .04em;
  color: var(--white);
  transition: color .2s ease;
  white-space: nowrap;
}
.main-nav > a:hover,
.main-nav > a:focus { color: var(--tan-2); }

.nav-cta {
  border: 1px solid var(--white);
  padding: 9px 16px;
  border-radius: 2px;
  transition: background .2s ease, color .2s ease;
}
.nav-cta:hover { background: var(--white); color: #1c1c1c; }

.nav-toggle { display: none; }

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */
.btn {
  display: inline-block;
  background: var(--tan);
  color: #262322;
  font-size: 14px;
  letter-spacing: .06em;
  padding: 14px 28px;
  border: 0;
  border-radius: 2px;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: #ab9a84; }

.btn-outline {
  display: inline-block;
  border: 1px solid var(--tan);
  color: var(--tan-2);
  padding: 12px 26px;
  border-radius: 2px;
  font-size: 14px;
  letter-spacing: .05em;
  transition: background .2s ease, color .2s ease;
}
.btn-outline:hover { background: var(--tan); color: #262322; }

/* -------------------------------------------------------------------------
   Footer (shared) - contact block + relay-wired form + secondary nav
   ------------------------------------------------------------------------- */
.site-footer { padding: 80px 0 30px; background: var(--bg); }
.footer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 1.4fr .7fr;
  gap: 48px;
}
.footer-contact h2 {
  color: var(--tan-2);
  font-size: 30px;
  margin-bottom: 34px;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
  color: var(--tan-2);
  font-size: 15px;
}
.contact-list svg { flex: 0 0 auto; width: 26px; height: 26px; stroke: var(--tan-2); }
.contact-list a { color: var(--tan-2); text-decoration: underline; text-underline-offset: 3px; }
.contact-list a:hover { color: var(--white); }

/* form */
.footer-form form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--tan);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  padding: 8px 2px;
}
.field input:focus { outline: none; border-bottom-color: var(--white); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-submit {
  grid-column: 1 / -1;
  background: transparent;
  border: 1px solid var(--tan);
  color: var(--white);
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: .04em;
  padding: 14px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.form-submit:hover { background: var(--tan); color: #262322; }

.footer-nav { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.footer-nav > a { color: var(--tan-2); text-decoration: underline; text-underline-offset: 3px; font-size: 16px; }
.footer-nav > a:hover { color: var(--white); }
.call-now {
  margin-top: 16px;
  border: 1px solid var(--tan);
  background: var(--tan);
  color: #262322 !important;
  text-decoration: none !important;
  padding: 12px 22px;
  border-radius: 2px;
  letter-spacing: .05em;
  transition: filter .2s ease;
}
.call-now:hover { filter: brightness(1.08); }

.copyright {
  max-width: var(--maxw);
  margin: 60px auto 0;
  padding: 0 24px;
  color: #8b8b8b;
  font-size: 13px;
}

/* -------------------------------------------------------------------------
   Entrance motion (pure CSS, always resolves to visible). Ported from the
   source's fade / rise reveals. No content is ever hidden from the stylesheet.
   ------------------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes zoomIn {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.12); opacity: .75; }
}

.reveal { animation: fadeUp .8s ease both; }
.reveal-2 { animation: fadeUp .8s ease .12s both; }
.reveal-3 { animation: fadeUp .8s ease .24s both; }
.fade-in { animation: fadeIn 1s ease both; }

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

/* -------------------------------------------------------------------------
   Responsive (shared chrome)
   ------------------------------------------------------------------------- */
@media (max-width: 860px) {
  .header-inner { padding: 10px 20px; }
  .main-nav { gap: 16px; flex-wrap: wrap; justify-content: flex-end; }
  .main-nav > a { font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-form form { grid-template-columns: 1fr; }
}

/* ==========================================================================
   page: home
   ========================================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(23, 22, 21, .62);
}
.hero-inner { position: relative; z-index: 1; padding: 40px 24px; }
.hero-logo { width: 150px; height: 150px; margin: 0 auto 18px; object-fit: contain; }
.hero h1 {
  font-size: 46px;
  letter-spacing: .01em;
  margin: 0 0 12px;
  color: var(--white);
}
.hero .tagline { font-size: 18px; color: var(--white); margin: 0; }

/* split - home inspection */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1080px;
  margin: 90px auto;
  border: 1px solid var(--line);
}
.split .media { min-height: 420px; }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split .copy { padding: 56px 48px; }
.split .copy h2 { font-size: 28px; color: var(--white); margin-bottom: 20px; }
.split .copy p { color: #d8d3cc; font-size: 14px; }
.split .copy .btn { margin-top: 14px; }
.split.left-copy .copy { order: -1; }

/* feature strip */
.features {
  max-width: 1080px;
  margin: -60px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-top: 0;
}
.feature {
  padding: 34px 20px;
  text-align: center;
  border-right: 1px solid var(--line);
}
.feature:last-child { border-right: 0; }
.feature svg { width: 40px; height: 40px; stroke: var(--muted); margin: 0 auto 14px; }
.feature span { color: var(--white); font-size: 14px; }

/* about */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 1080px;
  margin: 90px auto;
  border: 1px solid var(--line);
}
.about .copy { padding: 56px 48px; }
.about .copy h2 { font-size: 28px; color: var(--white); margin-bottom: 22px; }
.about .copy p { color: #d8d3cc; font-size: 14px; }
.about .media { min-height: 520px; }
.about .media img { width: 100%; height: 100%; object-fit: cover; }

/* projects gallery */
.projects { max-width: 1120px; margin: 90px auto; padding: 0 24px; }
.projects h2 { text-align: center; font-size: 30px; color: var(--white); margin-bottom: 40px; }
.gallery { columns: 3 260px; column-gap: 18px; }
.gallery figure { margin: 0 0 18px; break-inside: avoid; }
.gallery img { width: 100%; height: auto; border: 1px solid var(--line); }

/* testimonials */
.testimonials {
  max-width: 1080px;
  margin: 90px auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: stretch;
}
.testimonials .band {
  background: var(--tan-band);
  color: #2a2723;
  display: flex;
  align-items: center;
  padding: 40px 30px;
}
.testimonials .band h2 { font-size: 30px; color: var(--white); margin: 0; }
.testimonial { padding: 40px 26px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.testimonial:last-child { border-right: 0; }
.testimonial blockquote { margin: 0 0 22px; color: #e7e2da; font-size: 14px; font-style: italic; }
.testimonial .who { color: var(--tan-2); font-size: 15px; font-weight: 600; }

@media (max-width: 860px) {
  .hero h1 { font-size: 34px; }
  .split, .about { grid-template-columns: 1fr; margin: 50px auto; }
  .split.left-copy .copy { order: 0; }
  .features { grid-template-columns: repeat(2, 1fr); margin: 30px auto 0; }
  .feature:nth-child(2) { border-right: 0; }
  .feature { border-bottom: 1px solid var(--line); }
  .testimonials { grid-template-columns: 1fr; }
  .testimonial { border-right: 0; }
  .gallery { columns: 2 160px; }
}

/* ==========================================================================
   page: services
   ========================================================================== */
.svc-wrap { max-width: 1180px; margin: 60px auto 90px; padding: 0 24px; }
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
}
.svc-cell {
  padding: 40px 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.svc-grid > .svc-cell:nth-child(4n) { border-right: 0; }
.svc-grid > .svc-cell:nth-last-child(-n+4) { border-bottom: 0; }
.svc-cell h2 { font-size: 30px; color: var(--white); line-height: 1.1; }
.svc-cell h3 { font-size: 22px; color: var(--tan-2); margin-bottom: 18px; }
.svc-cell p { color: #ded9d1; font-size: 14px; margin: 0; }
.svc-cell.tan {
  background: var(--tan-band);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}
.svc-cell.tan h2 { color: var(--white); font-size: 46px; margin: 0; }
.svc-cell.media { padding: 0; overflow: hidden; }
.svc-cell.media img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }

@media (max-width: 980px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid > .svc-cell:nth-child(4n) { border-right: 1px solid var(--line); }
  .svc-grid > .svc-cell:nth-child(2n) { border-right: 0; }
  .svc-grid > .svc-cell:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 620px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-cell { border-right: 0 !important; }
  .svc-cell.tan { padding: 48px 20px; }
  .svc-cell.tan h2 { font-size: 38px; }
  .svc-cell.media img { min-height: 300px; }
}

/* ==========================================================================
   page: projects  (source /projects renders the FAQ page)
   ========================================================================== */
.faq-hero {
  background: var(--tan-band);
  text-align: center;
  padding: 120px 24px;
}
.faq-hero h1 { color: var(--white); font-size: 46px; margin: 0; }
.faq-wrap { max-width: 900px; margin: 70px auto 90px; padding: 0 24px; }
.faq-wrap > h2 { text-align: center; font-weight: 400; font-size: 30px; color: var(--white); margin-bottom: 40px; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 4px;
  font-size: 18px;
  color: var(--white);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.faq-item[open] summary .chev { transform: rotate(-135deg); }
.faq-item .answer {
  padding: 0 4px 22px;
  color: #d8d3cc;
  font-size: 15px;
  animation: fadeIn .35s ease both;
}

@media (max-width: 860px) {
  .faq-hero { padding: 80px 24px; }
  .faq-hero h1 { font-size: 32px; }
}
