/* ==========================================================================
   Metro Toronto Handyman — Design System
   Elementor-friendly BEM classes · Mobile-first
   ========================================================================== */

:root {
  --mth-primary: #2B6CB0;
  --mth-primary-dark: #1E4F8A;
  --mth-accent: #C45A2E;
  --mth-accent-dark: #A84A24;
  --mth-dark: #1A2332;
  --mth-dark-soft: #2D3748;
  --mth-text: #4A5568;
  --mth-text-light: #718096;
  --mth-bg: #FFFFFF;
  --mth-bg-alt: #F7F9FC;
  --mth-bg-warm: #FDF8F5;
  --mth-success: #2F855A;
  --mth-border: #E2E8F0;
  --mth-shadow: 0 4px 24px rgba(26, 35, 50, 0.08);
  --mth-shadow-hover: 0 12px 40px rgba(26, 35, 50, 0.12);
  --mth-radius: 8px;
  --mth-radius-lg: 12px;
  --mth-radius-xl: 16px;
  --mth-font-display: "DM Sans", system-ui, sans-serif;
  --mth-font-body: "Inter", system-ui, sans-serif;
  --mth-space-xs: 0.5rem;
  --mth-space-sm: 1rem;
  --mth-space-md: 1.5rem;
  --mth-space-lg: 2rem;
  --mth-space-xl: 3rem;
  --mth-space-2xl: 4rem;
  --mth-space-3xl: 6rem;
  --mth-container: 1200px;
  --mth-header-h: 100px;
  --mth-transition: 0.25s ease;
  --mth-bp-tablet: 1024px;
  --mth-bp-mobile: 768px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: var(--mth-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mth-text);
  background: var(--mth-bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--mth-primary); text-decoration: none; transition: color var(--mth-transition); }
a:hover { color: var(--mth-primary-dark); }

h1, h2, h3, h4 {
  font-family: var(--mth-font-display);
  color: var(--mth-dark);
  line-height: 1.25;
  font-weight: 700;
}

/* Skip link */
.mth-skip-link {
  position: absolute;
  top: -100%;
  left: var(--mth-space-sm);
  z-index: 9999;
  padding: 0.75rem 1.25rem;
  background: var(--mth-dark);
  color: #fff;
  border-radius: var(--mth-radius);
}
.mth-skip-link:focus { top: var(--mth-space-sm); }

/* Container */
.mth-container {
  width: 100%;
  max-width: var(--mth-container);
  margin: 0 auto;
  padding: 0 var(--mth-space-md);
}

/* Buttons */
.mth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--mth-font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border: 2px solid transparent;
  border-radius: var(--mth-radius);
  cursor: pointer;
  transition: all var(--mth-transition);
  text-decoration: none;
  white-space: nowrap;
}
.mth-btn--primary {
  background: var(--mth-accent);
  color: #fff;
  border-color: var(--mth-accent);
}
.mth-btn--primary:hover {
  background: var(--mth-accent-dark);
  border-color: var(--mth-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--mth-shadow-hover);
}
.mth-btn--secondary {
  background: var(--mth-primary);
  color: #fff;
  border-color: var(--mth-primary);
}
.mth-btn--secondary:hover {
  background: var(--mth-primary-dark);
  border-color: var(--mth-primary-dark);
  color: #fff;
}
.mth-btn--outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.8);
}
.mth-btn--outline:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}
.mth-btn--lg { padding: 1rem 2.25rem; font-size: 1rem; }
.mth-btn--block { width: 100%; }

/* Section utilities */
.mth-section { padding: var(--mth-space-3xl) 0; }
.mth-section--alt { background: var(--mth-bg-alt); }
.mth-section--warm { background: var(--mth-bg-warm); }

.mth-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--mth-space-2xl);
}
.mth-section-header__eyebrow {
  display: inline-block;
  font-family: var(--mth-font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mth-accent);
  margin-bottom: var(--mth-space-xs);
}
.mth-section-header__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: var(--mth-space-sm);
}
.mth-section-header__subtitle {
  font-size: 1.0625rem;
  color: var(--mth-text-light);
}

/* ==========================================================================
   Header
   ========================================================================== */
.mth-header-wrap {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  border-bottom: 1px solid var(--mth-border);
}

.mth-header {
  position: static;
  z-index: auto;
  background: transparent;
  border-bottom: none;
  height: var(--mth-header-h);
  overflow: visible;
}
.mth-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--mth-space-md);
  min-width: 0;
}

.mth-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.mth-logo img {
  width: clamp(70px, 9vw, 90px);
  height: auto;
  max-height: min(100px, calc(var(--mth-header-h) - 16px));
  object-fit: contain;
  flex-shrink: 0;
}
.mth-logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.mth-logo__name {
  font-family: var(--mth-font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mth-primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.mth-logo__tagline {
  font-family: var(--mth-font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--mth-dark);
}

.mth-nav {
  display: flex;
  align-items: center;
  gap: var(--mth-space-md);
}
.mth-nav__list {
  display: flex;
  align-items: center;
  gap: var(--mth-space-lg);
  list-style: none;
}
.mth-nav__link {
  font-family: var(--mth-font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mth-dark-soft);
  text-decoration: none;
  padding: 0.5rem 0;
  position: relative;
}
.mth-nav__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--mth-accent);
  transition: width var(--mth-transition);
}
.mth-nav__link:hover,
.mth-nav__link.is-active { color: var(--mth-primary); }
.mth-nav__link:hover::after,
.mth-nav__link.is-active::after { width: 100%; }

.mth-header__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mth-font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--mth-dark);
  text-decoration: none;
}
.mth-header__phone i { color: var(--mth-accent); }
.mth-header__phone:hover { color: var(--mth-accent); }

.mth-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
}
.mth-mobile-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--mth-dark);
  border-radius: 2px;
  transition: var(--mth-transition);
}
.mth-mobile-toggle.is-open .mth-mobile-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mth-mobile-toggle.is-open .mth-mobile-toggle__bar:nth-child(2) { opacity: 0; }
.mth-mobile-toggle.is-open .mth-mobile-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Desktop: overlay nav into the sticky header bar */
@media (min-width: 1025px) {
  .mth-header-wrap {
    display: grid;
    grid-template-areas: "header-bar";
    align-items: center;
  }

  .mth-header {
    grid-area: header-bar;
    pointer-events: none;
  }

  .mth-header__inner {
    pointer-events: auto;
    justify-content: flex-start;
  }

  .mth-header-wrap > .mth-nav {
    grid-area: header-bar;
    justify-self: center;
    align-self: center;
    width: 100%;
    max-width: var(--mth-container);
    padding: 0 var(--mth-space-md);
    height: var(--mth-header-h);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--mth-space-md);
    pointer-events: none;
  }

  .mth-header-wrap > .mth-nav > * {
    pointer-events: auto;
  }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.mth-hero {
  position: relative;
  min-height: clamp(520px, 85vh, 680px);
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(26,35,50,0.82) 0%, rgba(43,108,176,0.65) 100%),
    url("../../images/carousel-2.jpg") center/cover no-repeat;
  margin-top: calc(var(--mth-header-h) * -1);
  padding-top: calc(var(--mth-header-h) + var(--mth-space-2xl));
  padding-bottom: var(--mth-space-3xl);
}
.mth-hero__content {
  max-width: 640px;
  animation: mthFadeUp 0.8s ease forwards;
}
.mth-hero__badge {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255,255,255,0.95);
  margin-bottom: var(--mth-space-md);
}
.mth-hero__title {
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  color: #fff;
  margin-bottom: var(--mth-space-md);
}
.mth-hero__title em {
  font-style: normal;
  color: #FBD38D;
}
.mth-hero__phone {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: #fff;
  margin-bottom: var(--mth-space-sm);
}
.mth-hero__phone a { color: #fff; font-weight: 700; }
.mth-hero__text {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: var(--mth-space-lg);
  max-width: 520px;
}
.mth-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mth-space-sm);
}

/* Trust bar */
.mth-trust-bar {
  background: var(--mth-dark);
  padding: var(--mth-space-lg) 0;
}
.mth-trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--mth-space-md);
}
.mth-trust-item {
  display: flex;
  align-items: center;
  gap: var(--mth-space-sm);
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
  font-weight: 500;
  min-width: 0;
}
.mth-trust-item i {
  font-size: 1.25rem;
  color: var(--mth-accent);
  flex-shrink: 0;
}

/* Service cards */
.mth-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--mth-space-md);
}
.mth-service-card {
  min-width: 0;
  background: var(--mth-bg);
  border: 1px solid var(--mth-border);
  border-radius: var(--mth-radius-lg);
  padding: var(--mth-space-lg);
  text-align: center;
  transition: all var(--mth-transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.mth-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--mth-shadow-hover);
  border-color: var(--mth-primary);
  color: inherit;
}
.mth-service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mth-bg-alt);
  border-radius: var(--mth-radius);
  font-size: 1.5rem;
  color: var(--mth-primary);
  margin-bottom: var(--mth-space-sm);
  transition: background var(--mth-transition);
}
.mth-service-card:hover .mth-service-card__icon {
  background: var(--mth-primary);
  color: #fff;
}
.mth-service-card__title {
  font-size: 1.0625rem;
  margin-bottom: 0.375rem;
}
.mth-service-card__desc {
  font-size: 0.875rem;
  color: var(--mth-text-light);
}

/* Why us cards */
.mth-why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--mth-space-md);
}
.mth-why-card {
  min-width: 0;
  background: var(--mth-bg);
  border-radius: var(--mth-radius-lg);
  padding: var(--mth-space-lg);
  border: 1px solid var(--mth-border);
  transition: box-shadow var(--mth-transition);
}
.mth-why-card:hover { box-shadow: var(--mth-shadow); }
.mth-why-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(43,108,176,0.1);
  color: var(--mth-primary);
  border-radius: var(--mth-radius);
  font-size: 1.25rem;
  margin-bottom: var(--mth-space-sm);
}
.mth-why-card__title {
  font-size: 1.0625rem;
  margin-bottom: 0.375rem;
}
.mth-why-card__text {
  font-size: 0.875rem;
  color: var(--mth-text-light);
}

/* Feature split sections */
.mth-feature-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mth-space-2xl);
  align-items: center;
}
.mth-feature-split__content { min-width: 0; }
.mth-feature-split__media { min-width: 0; }
.mth-feature-split--reverse .mth-feature-split__media { order: 2; }
.mth-feature-split--reverse .mth-feature-split__content { order: 1; }
.mth-feature-split__media {
  border-radius: var(--mth-radius-xl);
  overflow: hidden;
  box-shadow: var(--mth-shadow);
  background: var(--mth-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.mth-feature-split__media img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  display: block;
}
.mth-feature-split__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--mth-accent);
  margin-bottom: var(--mth-space-xs);
}
.mth-feature-split__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: var(--mth-space-sm);
}
.mth-feature-split__text {
  margin-bottom: var(--mth-space-md);
  color: var(--mth-text);
}
.mth-feature-split__note {
  font-size: 0.8125rem;
  color: var(--mth-text-light);
  font-style: italic;
  padding: var(--mth-space-sm);
  background: var(--mth-bg-alt);
  border-left: 3px solid var(--mth-accent);
  border-radius: 0 var(--mth-radius) var(--mth-radius) 0;
  margin-bottom: var(--mth-space-md);
}

/* Service areas */
.mth-areas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mth-space-2xl);
}
.mth-list-card {
  min-width: 0;
  background: var(--mth-bg);
  border: 1px solid var(--mth-border);
  border-radius: var(--mth-radius-lg);
  padding: var(--mth-space-lg);
}
.mth-list-card__title {
  font-size: 1.25rem;
  margin-bottom: var(--mth-space-md);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mth-list-card__title i { color: var(--mth-primary); }
.mth-list-card ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
}
.mth-list-card li {
  font-size: 0.9375rem;
  padding-left: 1.25rem;
  position: relative;
}
.mth-list-card li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--mth-success);
  font-size: 0.75rem;
  top: 0.35rem;
}
.mth-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.mth-tag {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  background: var(--mth-bg-alt);
  border: 1px solid var(--mth-border);
  border-radius: 999px;
  font-size: 0.8125rem;
  color: var(--mth-dark-soft);
}

/* Portfolio */
.mth-portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--mth-space-md);
}
.mth-portfolio-card {
  min-width: 0;
  background: var(--mth-bg);
  border-radius: var(--mth-radius-lg);
  overflow: hidden;
  box-shadow: var(--mth-shadow);
  transition: transform var(--mth-transition);
}
.mth-portfolio-card:hover { transform: translateY(-4px); }
.mth-portfolio-card__media {
  aspect-ratio: 16/10;
  background: var(--mth-dark);
}
.mth-portfolio-card__media iframe,
.mth-portfolio-card__media video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.mth-portfolio-card__title {
  padding: var(--mth-space-sm) var(--mth-space-md);
  font-size: 1rem;
  text-align: center;
}

/* Testimonials */
.mth-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--mth-space-md);
}
.mth-testimonial {
  min-width: 0;
  background: var(--mth-bg);
  border: 1px solid var(--mth-border);
  border-radius: var(--mth-radius-lg);
  padding: var(--mth-space-lg);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--mth-transition);
}
.mth-testimonial--featured {
  background: var(--mth-primary);
  border-color: var(--mth-primary);
  color: #fff;
}
.mth-testimonial--featured .mth-testimonial__text,
.mth-testimonial--featured .mth-testimonial__name { color: #fff; }
.mth-testimonial--featured .mth-testimonial__location { color: rgba(255,255,255,0.75); }
.mth-testimonial__stars { color: #F6AD55; margin-bottom: var(--mth-space-sm); font-size: 0.875rem; }
.mth-testimonial__quote { font-size: 2rem; color: var(--mth-accent); margin-bottom: var(--mth-space-sm); line-height: 1; }
.mth-testimonial--featured .mth-testimonial__quote { color: rgba(255,255,255,0.5); }
.mth-testimonial__text {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: var(--mth-space-md);
  color: var(--mth-text);
}
.mth-testimonial__author { display: flex; align-items: center; gap: 0.75rem; }
.mth-testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mth-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mth-font-display);
  font-weight: 700;
  color: var(--mth-primary);
}
.mth-testimonial--featured .mth-testimonial__avatar { background: rgba(255,255,255,0.2); color: #fff; }
.mth-testimonial__name { font-weight: 600; font-size: 0.9375rem; color: var(--mth-dark); }
.mth-testimonial__location { font-size: 0.8125rem; color: var(--mth-text-light); }

/* CTA Banner */
.mth-cta-banner {
  background: linear-gradient(135deg, var(--mth-dark) 0%, var(--mth-primary-dark) 100%);
  padding: var(--mth-space-3xl) 0;
  text-align: center;
}
.mth-cta-banner__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: #fff;
  margin-bottom: var(--mth-space-sm);
}
.mth-cta-banner__text {
  color: rgba(255,255,255,0.85);
  font-size: 1.0625rem;
  margin-bottom: var(--mth-space-lg);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.mth-cta-banner__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--mth-space-sm);
}

/* Page hero (inner pages) */
.mth-page-hero {
  background:
    linear-gradient(135deg, rgba(26,35,50,0.88) 0%, rgba(43,108,176,0.75) 100%),
    url("../../images/carousel-2.jpg") center/cover no-repeat;
  padding: calc(var(--mth-header-h) + var(--mth-space-2xl)) 0 var(--mth-space-2xl);
  margin-top: calc(var(--mth-header-h) * -1);
  text-align: center;
}
.mth-page-hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #fff;
  margin-bottom: var(--mth-space-xs);
}
.mth-page-hero__subtitle {
  color: rgba(255,255,255,0.85);
  font-size: 1.0625rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Forms */
.mth-form-section { padding: var(--mth-space-2xl) 0 var(--mth-space-3xl); }
.mth-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: var(--mth-space-2xl);
  align-items: start;
}
.mth-form-sidebar { min-width: 0; }
.mth-form-card {
  min-width: 0;
  background: var(--mth-bg);
  border: 1px solid var(--mth-border);
  border-radius: var(--mth-radius-xl);
  padding: var(--mth-space-xl);
  box-shadow: var(--mth-shadow);
}
.mth-form-card__intro {
  margin-bottom: var(--mth-space-lg);
  color: var(--mth-text);
}
.mth-form-group {
  margin-bottom: var(--mth-space-md);
  min-width: 0;
}
.mth-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--mth-space-md);
}
.mth-form-label {
  display: block;
  font-family: var(--mth-font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--mth-dark);
  margin-bottom: 0.375rem;
}
.mth-form-label .required { color: var(--mth-accent); }
.mth-form-input,
.mth-form-textarea,
.mth-form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--mth-font-body);
  font-size: 1rem;
  color: var(--mth-dark);
  background: var(--mth-bg);
  border: 1px solid var(--mth-border);
  border-radius: var(--mth-radius);
  transition: border-color var(--mth-transition), box-shadow var(--mth-transition);
}
.mth-form-input:focus,
.mth-form-textarea:focus,
.mth-form-select:focus {
  outline: none;
  border-color: var(--mth-primary);
  box-shadow: 0 0 0 3px rgba(43,108,176,0.15);
}
.mth-form-textarea { min-height: 120px; resize: vertical; }
.mth-form-fieldset {
  border: 1px solid var(--mth-border);
  border-radius: var(--mth-radius-lg);
  padding: var(--mth-space-md);
  margin-bottom: var(--mth-space-md);
}
.mth-form-fieldset legend {
  font-family: var(--mth-font-display);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--mth-dark);
  padding: 0 0.5rem;
}
.mth-form-checklist {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
.mth-form-checklist--inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 280px;
}
.mth-form-checklist li { min-width: 0; }
.mth-form-checklist li label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9375rem;
  cursor: pointer;
  padding: 0.375rem 0;
  min-width: 0;
  overflow-wrap: break-word;
}
.mth-form-checklist input[type="checkbox"],
.mth-form-checklist input[type="radio"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--mth-primary);
  flex-shrink: 0;
}
.mth-form-divider {
  border: none;
  border-top: 1px solid var(--mth-border);
  margin: var(--mth-space-lg) 0;
}
.mth-form-section-title {
  font-size: 1.125rem;
  margin-bottom: var(--mth-space-sm);
  padding-bottom: var(--mth-space-xs);
  border-bottom: 2px solid var(--mth-bg-alt);
}
.mth-file-upload {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: var(--mth-space-lg);
  border: 2px dashed var(--mth-border);
  border-radius: var(--mth-radius-lg);
  background: var(--mth-bg-alt);
  cursor: pointer;
  transition: border-color var(--mth-transition);
}
.mth-file-upload:hover { border-color: var(--mth-primary); }
.mth-file-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.mth-file-upload__icon { font-size: 2rem; color: var(--mth-primary); }
.mth-file-upload__text { font-size: 0.9375rem; color: var(--mth-text); }
.mth-file-upload__name { font-size: 0.8125rem; color: var(--mth-text-light); }
.mth-form-trust {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--mth-text-light);
  margin-top: var(--mth-space-sm);
}
.mth-form-trust i { color: var(--mth-success); }

/* Form sidebar */
.mth-form-sidebar {
  position: sticky;
  top: calc(var(--mth-header-h) + var(--mth-space-md));
}
.mth-sidebar-card {
  background: var(--mth-dark);
  color: #fff;
  border-radius: var(--mth-radius-lg);
  padding: var(--mth-space-lg);
  margin-bottom: var(--mth-space-md);
}
.mth-sidebar-card__title {
  font-size: 1.125rem;
  color: #fff;
  margin-bottom: var(--mth-space-sm);
}
.mth-sidebar-card__list {
  list-style: none;
  margin-bottom: var(--mth-space-md);
}
.mth-sidebar-card__list li {
  font-size: 0.875rem;
  padding: 0.375rem 0;
  padding-left: 1.25rem;
  position: relative;
  color: rgba(255,255,255,0.85);
}
.mth-sidebar-card__list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--mth-accent);
  font-size: 0.75rem;
}
.mth-sidebar-card__phone {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.mth-sidebar-card__phone:hover { color: var(--mth-accent); }

/* Success page */
.mth-success {
  text-align: center;
  padding: var(--mth-space-3xl) 0;
  max-width: 640px;
  margin: 0 auto;
}
.mth-success__icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(47,133,90,0.12);
  color: var(--mth-success);
  border-radius: 50%;
  font-size: 2.5rem;
  margin: 0 auto var(--mth-space-md);
}
.mth-success__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: var(--mth-space-sm);
}
.mth-success__text {
  font-size: 1.0625rem;
  color: var(--mth-text-light);
  margin-bottom: var(--mth-space-xl);
}
.mth-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--mth-space-md);
  margin-bottom: var(--mth-space-xl);
  text-align: left;
}
.mth-step {
  min-width: 0;
  padding: var(--mth-space-md);
  background: var(--mth-bg-alt);
  border-radius: var(--mth-radius-lg);
}
.mth-step__num {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mth-primary);
  color: #fff;
  border-radius: 50%;
  font-family: var(--mth-font-display);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}
.mth-step__title { font-size: 0.9375rem; margin-bottom: 0.25rem; }
.mth-step__text { font-size: 0.8125rem; color: var(--mth-text-light); }

/* Legal pages */
.mth-legal {
  padding: var(--mth-space-2xl) 0 var(--mth-space-3xl);
}
.mth-legal__content {
  max-width: 720px;
  margin: 0 auto;
}
.mth-legal__content h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: var(--mth-space-md);
}
.mth-legal__content h2 {
  font-size: 1.25rem;
  margin: var(--mth-space-lg) 0 var(--mth-space-sm);
}
.mth-legal__content p {
  margin-bottom: var(--mth-space-sm);
  line-height: 1.75;
}

/* Footer */
.mth-footer {
  background: var(--mth-dark);
  color: rgba(255,255,255,0.75);
  padding: var(--mth-space-3xl) 0 var(--mth-space-lg);
}
.mth-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.25fr;
  gap: var(--mth-space-xl);
  margin-bottom: var(--mth-space-2xl);
}
.mth-footer__col { min-width: 0; }
.mth-footer__heading {
  font-size: 1rem;
  color: #fff;
  margin-bottom: var(--mth-space-md);
}
.mth-footer__text { font-size: 0.875rem; line-height: 1.65; }
.mth-footer__links { list-style: none; }
.mth-footer__links a {
  display: block;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--mth-transition);
}
.mth-footer__links a:hover { color: #fff; }
.mth-footer__contact { list-style: none; }
.mth-footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.375rem 0;
  font-size: 0.875rem;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.mth-footer__contact i { color: var(--mth-accent); margin-top: 0.2rem; flex-shrink: 0; }
.mth-footer__contact a { color: rgba(255,255,255,0.85); text-decoration: none; overflow-wrap: anywhere; word-break: break-word; }
.mth-footer__contact a:hover { color: #fff; }
.mth-footer__social { display: flex; gap: 0.5rem; margin-top: var(--mth-space-md); }
.mth-footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--mth-radius);
  color: #fff;
  transition: all var(--mth-transition);
}
.mth-footer__social-link:hover {
  background: var(--mth-accent);
  border-color: var(--mth-accent);
  color: #fff;
}
.mth-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--mth-space-md);
  text-align: center;
  font-size: 0.8125rem;
}

/* Animations */
@keyframes mthFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.mth-animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.mth-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet and below (≤1024px) */
@media (max-width: 1024px) {
  .mth-header {
    position: relative;
    z-index: 1003;
    background: var(--mth-bg);
  }

  .mth-header__inner {
    overflow: visible;
    position: relative;
    z-index: 1003;
  }

  .mth-mobile-toggle {
    display: flex;
    position: relative;
    z-index: 1004;
    flex-shrink: 0;
    margin-left: auto;
    background: var(--mth-bg);
    border: 1px solid var(--mth-border);
    border-radius: var(--mth-radius);
  }

  .mth-mobile-toggle__bar {
    height: 3px;
  }

  /* Hide closed nav completely so it cannot cover the hamburger */
  .mth-nav:not(.is-open) {
    display: none;
  }

  .mth-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: var(--mth-space-md);
    padding: var(--mth-space-lg);
    padding-bottom: calc(var(--mth-space-lg) + env(safe-area-inset-bottom, 0px));
    background: var(--mth-bg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Open state: lock header + nav together as one full-screen panel */
  body.mth-nav-open {
    overflow: hidden;
  }

  body.mth-nav-open .mth-header-wrap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    z-index: 1005;
    background: var(--mth-bg);
    overflow: hidden;
    border-bottom: none;
  }

  body.mth-nav-open .mth-header {
    flex: 0 0 auto;
    height: auto;
    min-height: var(--mth-header-h);
    border-bottom: 1px solid var(--mth-border);
    z-index: 1006;
  }

  body.mth-nav-open .mth-mobile-toggle {
    z-index: 1007;
  }

  body.mth-nav-open .mth-nav {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    height: auto;
    flex: 1 1 auto;
    min-height: 0;
    transform: none;
    visibility: visible;
    pointer-events: auto;
    box-shadow: none;
    display: flex;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.mth-nav-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(26, 35, 50, 0.45);
    z-index: 1000;
  }
  .mth-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  .mth-nav__link {
    display: block;
    padding: var(--mth-space-sm) 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--mth-border);
  }
  .mth-nav__link::after { display: none; }
  .mth-header__phone,
  .mth-header__quote { width: 100%; justify-content: center; }

  .mth-services__grid,
  .mth-why-grid,
  .mth-testimonials__grid,
  .mth-portfolio__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .mth-trust-bar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mth-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .mth-form-layout { grid-template-columns: 1fr; }
  .mth-form-sidebar { position: static; }

  .mth-feature-split,
  .mth-areas-grid { grid-template-columns: 1fr; }
  .mth-feature-split--reverse .mth-feature-split__media,
  .mth-feature-split--reverse .mth-feature-split__content { order: unset; }

  .mth-list-card ul { grid-template-columns: 1fr; }

  .mth-success .mth-steps { grid-template-columns: 1fr; }
}

/* Mobile (≤768px) */
@media (max-width: 768px) {
  :root { --mth-header-h: 72px; }

  .mth-container { padding: 0 var(--mth-space-sm); }

  .mth-logo__tagline { font-size: 1rem; }

  .mth-feature-split__media img { max-height: 280px; }

  .mth-btn { white-space: normal; text-align: center; }

  .mth-hero {
    min-height: 520px;
    padding-top: calc(var(--mth-header-h) + var(--mth-space-lg));
    padding-bottom: var(--mth-space-2xl);
  }
  .mth-hero__actions { flex-direction: column; }
  .mth-hero__actions .mth-btn { width: 100%; }

  .mth-page-hero {
    padding: calc(var(--mth-header-h) + var(--mth-space-lg)) 0 var(--mth-space-lg);
  }

  .mth-services__grid,
  .mth-why-grid,
  .mth-testimonials__grid,
  .mth-portfolio__grid,
  .mth-trust-bar__grid,
  .mth-steps { grid-template-columns: 1fr; }

  .mth-list-card ul,
  .mth-form-checklist,
  .mth-form-checklist--inline,
  .mth-form-row { grid-template-columns: 1fr; }

  .mth-form-checklist--inline { max-width: none; }

  .mth-cta-banner {
    padding: var(--mth-space-2xl) 0;
  }
  .mth-cta-banner__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .mth-cta-banner__actions .mth-btn { width: 100%; }

  .mth-footer__grid { grid-template-columns: 1fr; }
  .mth-footer { padding: var(--mth-space-2xl) 0 var(--mth-space-lg); }

  .mth-section { padding: var(--mth-space-2xl) 0; }
  .mth-form-section { padding: var(--mth-space-lg) 0 var(--mth-space-2xl); }
  .mth-form-card { padding: var(--mth-space-md); }
  .mth-success { padding: var(--mth-space-2xl) 0; }
}

/* Small phones (≤480px) */
@media (max-width: 480px) {
  .mth-logo__name { display: none; }
  .mth-hero__badge { font-size: 0.75rem; }
  .mth-hero__text { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
