/* ==========================================================================
   MOTOMAN SHOP — STATIC PAGES (About, Privacy, Delivery, Contact, etc.)
   ========================================================================== */

/* ── Page Hero Banner ──────────────────────────────────────────────────── */
.mm-static-hero {
  background: linear-gradient(135deg, #0f0f0f 0%, #1a1a1a 60%, #1f0000 100%);
  padding: 64px 24px 52px;
  text-align: center;
  border-bottom: 3px solid #DC2626;
  position: relative;
  overflow: hidden;
}

.mm-static-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 0%, rgba(220,38,38,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.mm-static-hero__title {
  font-family: var(--mm-font-display, 'Outfit', sans-serif);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 12px;
  line-height: 1.1;
}

.mm-static-hero__bar {
  width: 56px;
  height: 4px;
  background: #DC2626;
  border-radius: 2px;
  margin: 0 auto;
}

/* ── Page body wrapper ─────────────────────────────────────────────────── */
.mm-static-page {
  background: #fff;
}

.mm-static-page .mm-static-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.mm-static-body > p,
.mm-static-body > ul,
.mm-static-body > ol,
.mm-static-body > h1,
.mm-static-body > h2,
.mm-static-body > h3,
.mm-static-body > h4,
.mm-static-body > hr,
.mm-static-body > table,
.mm-static-body > .wp-block-heading,
.mm-static-body > .wp-block-paragraph,
.mm-static-body > .wp-block-list {
  max-width: 850px;
}

/* ── Typography inside static pages ───────────────────────────────────── */
.mm-static-body h1,
.mm-static-body h2,
.mm-static-body h3,
.mm-static-body h4 {
  font-family: var(--mm-font-display, 'Outfit', sans-serif);
  color: #111827;
  line-height: 1.25;
  margin-top: 2em;
  margin-bottom: 0.6em;
}

/* Remove the FIRST heading inside content if it duplicates the hero */
.mm-static-body > h1:first-child,
.mm-static-body > .wp-block-heading:first-child {
  display: none;
}

.mm-static-body h1 { font-size: 1.9rem; font-weight: 800; }
.mm-static-body h2 { font-size: 1.45rem; font-weight: 700; border-left: 4px solid #DC2626; padding-left: 12px; }
.mm-static-body h3 { font-size: 1.2rem; font-weight: 600; }

.mm-static-body p,
.mm-static-body li {
  font-family: var(--mm-font, 'Inter', sans-serif);
  font-size: 1rem;
  line-height: 1.8;
  color: #374151;
}

.mm-static-body strong {
  color: #111827;
  font-weight: 600;
}

.mm-static-body a {
  color: #DC2626;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mm-static-body a:hover {
  color: #b91c1c;
}

.mm-static-body ul,
.mm-static-body ol {
  padding-left: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.mm-static-body li {
  margin-bottom: 0.5rem;
}

.mm-static-body p + p {
  margin-top: 1rem;
}

/* Horizontal rules */
.mm-static-body hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2rem 0;
}

/* Tables */
.mm-static-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.mm-static-body th {
  background: #111827;
  color: #fff;
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
}
.mm-static-body td {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
}
.mm-static-body tr:last-child td { border-bottom: none; }
.mm-static-body tr:nth-child(even) td { background: #f9fafb; }

/* ── Contact page layout ───────────────────────────────────────────────── */
.mm-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 2.5rem;
}

.mm-contact-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.mm-contact-card__icon {
  width: 44px;
  height: 44px;
  background: #DC2626;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.mm-contact-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mm-contact-card__label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #6b7280;
  margin-bottom: 4px;
}

.mm-contact-card__value {
  font-size: 1rem;
  color: #111827;
  font-weight: 600;
  line-height: 1.5;
}

.mm-contact-card__value a {
  color: #111827;
  text-decoration: none;
}

.mm-contact-card__value a:hover {
  color: #DC2626;
}

/* ── Info boxes / callouts ─────────────────────────────────────────────── */
.mm-static-body .wp-block-group,
.mm-info-box {
  background: #fef2f2;
  border-left: 4px solid #DC2626;
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 1.5rem 0;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .mm-static-hero {
    padding: 40px 16px 36px;
  }

  .mm-static-hero__title {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .mm-static-body {
    padding: 32px 16px 48px;
  }

  .mm-static-body h2 {
    font-size: 1.25rem;
  }

  .mm-contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .mm-static-body table {
    font-size: 0.85rem;
  }
  .mm-static-body th,
  .mm-static-body td {
    padding: 8px 10px;
  }
}

@media (max-width: 480px) {
  .mm-static-hero__title {
    font-size: 1.5rem;
  }
}

/* ==========================================================================
   CONTACT PAGE (mm-cp-* classes)
   ========================================================================== */

.mm-cp-wrap {
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

/* ── Alert messages ─────────────────────────────────────────────────────── */
.mm-cp-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 28px;
}
.mm-cp-alert svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.mm-cp-alert--success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.mm-cp-alert--error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* ── Info Cards ─────────────────────────────────────────────────────────── */
.mm-cp-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.mm-cp-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, border-color 0.2s;
  min-height: 140px;
}
.mm-cp-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  border-color: #DC2626;
}

.mm-cp-card__icon {
  width: 42px;
  height: 42px;
  background: #DC2626;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mm-cp-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: #fff;
}

.mm-cp-card__body {
  flex: 1;
  min-width: 0;
}

.mm-cp-card__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #9ca3af;
  margin-bottom: 5px;
}

.mm-cp-card__value {
  font-size: 0.93rem;
  color: #111827;
  font-weight: 600;
  line-height: 1.55;
  word-break: break-word;
}
.mm-cp-card__value a {
  color: #111827;
  text-decoration: none;
}
.mm-cp-card__value a:hover {
  color: #DC2626;
}

/* ── Bottom: Form + Map ─────────────────────────────────────────────────── */
.mm-cp-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.mm-cp-section-title {
  font-family: var(--mm-font-display, 'Outfit', sans-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 20px;
  border-left: 4px solid #DC2626;
  padding-left: 12px;
}

/* ── Contact Form ─────────────────────────────────────────────────────── */
.mm-cp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mm-cp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mm-cp-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.mm-cp-form input[type="text"],
.mm-cp-form input[type="email"],
.mm-cp-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--mm-font, 'Inter', sans-serif);
  color: #111827;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}
.mm-cp-form input:focus,
.mm-cp-form textarea:focus {
  outline: none;
  border-color: #DC2626;
  box-shadow: 0 0 0 3px rgba(220,38,38,0.12);
}
.mm-cp-form textarea {
  resize: vertical;
  min-height: 120px;
}

.mm-cp-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #DC2626;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--mm-font-display, 'Outfit', sans-serif);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mm-cp-submit svg {
  width: 18px;
  height: 18px;
}
.mm-cp-submit:hover {
  background: #b91c1c;
  transform: translateY(-1px);
}

/* ── Map ────────────────────────────────────────────────────────────────── */
.mm-cp-map {
  width: 100%;
  height: 380px;
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.mm-cp-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .mm-cp-cards {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mm-cp-bottom {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .mm-cp-map {
    height: 320px;
  }
}
