/* ==========================================================================
   Mustang Truss — Home Page Styles (front-page.php)
   ========================================================================== */

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.mt-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  background-color: var(--color-bg-alt);
  background-size: cover;
  background-position: center;
}

.mt-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.2) 100%
  );
}

.mt-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding: 4rem var(--gutter);
  display: flex;
  align-items: center;
}

.mt-hero__content {
  max-width: 700px;
}

.mt-hero__heading {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 2rem;
}

/* ── About ────────────────────────────────────────────────────────────────── */
.mt-about {
  position: relative;
  padding: 5rem 0;
  background-color: var(--color-bg-alt);
  background-size: cover;
  background-position: center;
}

.mt-about__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.mt-about__inner {
  position: relative;
  z-index: 1;
}

.mt-about__headline {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 800px;
}

.mt-about__body {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 680px;
  line-height: 1.75;
}

/* ── Why Choose ───────────────────────────────────────────────────────────── */
.mt-why {
  background-color: var(--color-bg-dark);
  padding: 5rem 0;
}

.mt-why__heading {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  text-align: center;
  color: #fff;
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.mt-why__heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-accent);
  border-radius: 2px;
}

.mt-why__body {
  max-width: 640px;
  margin: 2rem auto;
  text-align: center;
}

.mt-why__list {
  list-style: disc;
  text-align: left;
  display: inline-block;
  color: var(--color-text-muted);
  line-height: 1.9;
}

.mt-why__cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.mt-why__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 160px;
  text-align: center;
}

.mt-why__icon { width: 56px; height: 56px; object-fit: contain; }

.mt-why__icon-placeholder {
  width: 64px;
  height: 64px;
  background-color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}

.mt-why__label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
}

.mt-why__cta { text-align: center; margin-top: 2.5rem; }

/* ── Services ─────────────────────────────────────────────────────────────── */
.mt-services {
  background-color: var(--color-bg);
  padding: 5rem 0;
}

.mt-services__heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.25rem;
}

.mt-services__sub {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.mt-services__types {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2rem;
}

.mt-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.mt-service-card { display: flex; flex-direction: column; gap: 0.75rem; }

.mt-service-card__img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-alt);
}

.mt-service-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mt-service-card:hover .mt-service-card__img-wrap img { transform: scale(1.04); }

.mt-service-card__img-wrap--placeholder {
  background: repeating-linear-gradient(
    45deg,
    var(--color-bg-alt),
    var(--color-bg-alt) 10px,
    var(--color-bg-dark) 10px,
    var(--color-bg-dark) 20px
  );
}

.mt-service-card__title {
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  color: #fff;
}

/* ── Contact / Let's Work Together ───────────────────────────────────────── */
.mt-contact {
  background-color: #f5f5f5;
  padding: 5rem 0;
}

.mt-contact__inner {
  display: flex;
  gap: 3rem;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
  align-items: flex-start;
}

.mt-contact__left { flex: 1; color: #1a1a1a; }

.mt-contact__heading {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.mt-contact__intro {
  font-size: 0.95rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.mt-contact__subheading {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

.mt-contact__steps {
  list-style: decimal;
  padding-left: 1.25rem;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.mt-contact__steps a { color: var(--color-accent); text-decoration: underline; }

.mt-contact__other {
  font-size: 0.9rem;
  color: #555;
}

.mt-contact__other a { color: var(--color-accent); font-weight: 600; }

/* Contact Form panel */
.mt-contact__right { flex: 0 0 420px; }

.mt-contact__form-wrap {
  background-color: #1a1a1a;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.mt-contact__form-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.mt-contact__form-notice {
  font-size: 0.85rem;
  color: #aaa;
  padding: 1rem;
  border: 1px dashed #444;
  border-radius: var(--radius-sm);
}

/* CF7 overrides inside contact form panel */
.mt-contact__form-wrap .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mt-contact__form-wrap .wpcf7-form .wpcf7-form-row,
.mt-contact__form-wrap p { display: contents; }

.mt-contact__form-wrap .wpcf7-form .half-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.mt-contact__form-wrap input[type="text"],
.mt-contact__form-wrap input[type="email"],
.mt-contact__form-wrap input[type="tel"],
.mt-contact__form-wrap textarea {
  width: 100%;
  background-color: #2a2a2a;
  border: 1px solid #444;
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.9rem;
  padding: 0.65em 0.9em;
  transition: border-color var(--transition);
}

.mt-contact__form-wrap input:focus,
.mt-contact__form-wrap textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.mt-contact__form-wrap input::placeholder,
.mt-contact__form-wrap textarea::placeholder { color: #666; }

.mt-contact__form-wrap textarea { min-height: 100px; resize: vertical; }

.mt-contact__form-wrap input[type="submit"],
.mt-contact__form-wrap .wpcf7-submit {
  background-color: var(--color-accent);
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75em 1.5em;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--transition);
  width: 100%;
}

.mt-contact__form-wrap input[type="submit"]:hover,
.mt-contact__form-wrap .wpcf7-submit:hover { background-color: var(--color-accent-hover); }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .mt-contact__inner { flex-direction: column; }
  .mt-contact__right { flex: none; width: 100%; }
}

@media (max-width: 600px) {
  .mt-hero { min-height: 380px; }
  .mt-why__cards { gap: 1rem; }
  .mt-why__card  { width: 130px; }
}
