/*
Theme Name: Mercy Me Transitional Service
Theme URI: https://mercyme2.org/
Author: Manus AI
Description: Fresh custom WordPress theme for MercyMe2 Transitional Services.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: mercy-me-transitional-service
*/

:root {
  --mm2-red: #d7193f;
  --mm2-red-deep: #9f1231;
  --mm2-ink: #181214;
  --mm2-muted: #6c5a60;
  --mm2-cream: #fbf6f1;
  --mm2-surface: #fffdfb;
  --mm2-soft: #f2e8e0;
  --mm2-line: rgba(24, 18, 20, 0.1);
  --mm2-shadow: 0 24px 56px rgba(34, 19, 25, 0.08);
  --mm2-radius: 26px;
  --mm2-container: min(1180px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #fffdfa 0%, #f7efe8 100%);
  color: var(--mm2-ink);
  font-family: "Source Sans 3", Arial, sans-serif;
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

.mm2-container { width: var(--mm2-container); margin: 0 auto; }
.mm2-section { padding: 84px 0; }
.mm2-section--tight { padding: 56px 0; }

.mm2-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 246, 241, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(24, 18, 20, 0.08);
}

.mm2-header-inner {
  min-height: 92px;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
}

.mm2-brand { display: inline-flex; align-items: center; gap: 14px; }
.mm2-brand-logo img, .custom-logo-link img { max-height: 76px; width: auto; }
.mm2-brand-text { display: flex; flex-direction: column; gap: 2px; }
.mm2-brand-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 2.25rem;
  line-height: 0.92;
}
.mm2-brand-subtitle {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.74rem;
  color: var(--mm2-muted);
}

.mm2-primary-nav ul, .mm2-footer-menu ul { list-style: none; margin: 0; padding: 0; }
.mm2-primary-nav > ul {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 22px;
}
.mm2-primary-nav a, .mm2-footer-menu a, .mm2-social-list a {
  transition: color 0.2s ease, opacity 0.2s ease;
}
.mm2-primary-nav a:hover, .mm2-footer-menu a:hover, .mm2-social-list a:hover { color: var(--mm2-red); }
.mm2-primary-nav a { font-weight: 700; }

.mm2-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--mm2-line);
  border-radius: 999px;
  background: #fff;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}
.mm2-menu-toggle span,
.mm2-menu-toggle::before,
.mm2-menu-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--mm2-ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.mm2-menu-toggle span { margin: 5px 0; }
.mm2-menu-toggle.is-active span { opacity: 0; }
.mm2-menu-toggle.is-active::before { transform: translateY(7px) rotate(45deg); }
.mm2-menu-toggle.is-active::after { transform: translateY(-7px) rotate(-45deg); }

.mm2-button,
.wp-block-button__link,
button,
input[type="submit"],
.wpforms-submit,
.give-btn,
.edd-submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  border: none;
  background: var(--mm2-red);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(215, 25, 63, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.mm2-button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover,
.wpforms-submit:hover,
.give-btn:hover,
.edd-submit:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--mm2-red-deep);
  color: #fff;
  transform: translateY(-2px);
}
.mm2-button--ghost {
  background: transparent;
  color: var(--mm2-red);
  border: 1px solid rgba(215, 25, 63, 0.22);
  box-shadow: none;
}
.mm2-button--ghost:hover { color: var(--mm2-red-deep); background: rgba(215, 25, 63, 0.08); }

.mm2-shell,
.mm2-card,
.mm2-feature,
.mm2-quote,
.mm2-contact-panel,
.mm2-plugin-content,
.mm2-form-shell,
.mm2-page-hero-shell,
.mm2-cta-strip {
  background: rgba(255, 253, 251, 0.96);
  border: 1px solid var(--mm2-line);
  border-radius: var(--mm2-radius);
  box-shadow: var(--mm2-shadow);
}

.mm2-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--mm2-red);
}
.mm2-eyebrow::before {
  content: "";
  width: 46px;
  height: 1px;
  background: currentColor;
  opacity: 0.65;
}

.mm2-hero-grid,
.mm2-grid-2,
.mm2-snapshot-grid,
.mm2-values-grid,
.mm2-contact-grid,
.mm2-footer-grid,
.mm2-services-grid,
.mm2-home-lower-grid {
  display: grid;
  gap: 22px;
}

.mm2-hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.mm2-hero-copy,
.mm2-hero-media,
.mm2-page-hero-shell,
.mm2-contact-panel,
.mm2-plugin-content,
.mm2-form-shell,
.mm2-feature,
.mm2-card,
.mm2-quote,
.mm2-shell {
  padding: 36px;
}

.mm2-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 640px;
}

.mm2-hero-title,
.mm2-page-title,
.mm2-section-title,
.mm2-card h3,
.mm2-feature h2,
.mm2-quote blockquote,
.mm2-display {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.03em;
}

.mm2-hero-title {
  font-size: clamp(3.7rem, 8vw, 6.1rem);
  line-height: 0.9;
  margin-top: 18px;
  margin-bottom: 18px;
}
.mm2-display {
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 0.98;
}
.mm2-hero-text,
.mm2-page-summary,
.mm2-card p,
.mm2-feature p,
.mm2-plugin-content,
.entry-content {
  color: var(--mm2-muted);
  font-size: 1.06rem;
}

.mm2-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }

.mm2-hero-media,
.mm2-image-cover {
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
.mm2-hero-media {
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.mm2-hero-media::before,
.mm2-image-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 11, 13, 0.12) 0%, rgba(16, 11, 13, 0.54) 100%);
}
.mm2-hero-panel {
  position: relative;
  z-index: 1;
  max-width: 520px;
  padding: 28px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.26);
  backdrop-filter: blur(10px);
}
.mm2-hero-panel h2 {
  margin: 10px 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.98;
}
.mm2-hero-panel p { margin: 0; color: rgba(255,255,255,0.92); }

.mm2-snapshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 28px; }
.mm2-card h3 { font-size: 2rem; line-height: 0.98; margin: 0 0 10px; }
.mm2-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(215, 25, 63, 0.12), rgba(215, 25, 63, 0.03));
  color: var(--mm2-red);
  font-size: 1.2rem;
  font-weight: 800;
}

.mm2-quote blockquote {
  font-size: clamp(2rem, 3.8vw, 3rem);
  line-height: 1.02;
}

.mm2-cta-strip {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 34px;
  background: linear-gradient(135deg, #d7193f 0%, #97132f 100%);
  color: #fff;
}
.mm2-cta-strip .mm2-eyebrow,
.mm2-cta-strip h2,
.mm2-cta-strip p { color: #fff; }
.mm2-cta-strip .mm2-eyebrow::before { background: #fff; }
.mm2-cta-strip h2 {
  margin: 8px 0 10px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1;
}

.mm2-page-hero { padding: 68px 0 28px; }
.mm2-page-title {
  margin-top: 16px;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 0.92;
}
.mm2-page-summary { max-width: 720px; margin-top: 16px; }

.mm2-grid-2,
.mm2-contact-grid,
.mm2-footer-grid,
.mm2-home-lower-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mm2-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mm2-values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.mm2-home-lower-grid { margin-top: 28px; }

.mm2-value-pill {
  padding: 20px 18px;
  background: var(--mm2-soft);
  border-radius: 18px;
  text-align: center;
  font-weight: 700;
}

.mm2-image-cover { min-height: 420px; }
.mm2-image-cover > * { position: relative; z-index: 1; }

.mm2-contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mm2-contact-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--mm2-line);
}
.mm2-contact-list li:last-child { border-bottom: none; }
.mm2-social-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.mm2-social-list a {
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--mm2-soft);
  text-align: center;
  font-weight: 700;
}

.mm2-plugin-content iframe,
.mm2-plugin-content video,
.entry-content iframe,
.entry-content video {
  width: 100%;
  max-width: 100%;
  border: none;
  border-radius: 20px;
}

.mm2-plugin-content input[type="text"],
.mm2-plugin-content input[type="email"],
.mm2-plugin-content input[type="url"],
.mm2-plugin-content input[type="tel"],
.mm2-plugin-content textarea,
.mm2-plugin-content select,
.mm2-form-shell input[type="text"],
.mm2-form-shell input[type="email"],
.mm2-form-shell input[type="url"],
.mm2-form-shell input[type="tel"],
.mm2-form-shell textarea,
.mm2-form-shell select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(24, 18, 20, 0.14);
  background: #fff;
}

.mm2-site-footer {
  padding: 70px 0 26px;
  background: #20181b;
  color: rgba(255,255,255,0.82);
}
.mm2-site-footer h2,
.mm2-site-footer h3 {
  margin-top: 0;
  color: #fff;
  font-family: "Cormorant Garamond", Georgia, serif;
}
.mm2-site-footer a { color: #fff; }
.mm2-footer-legal {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.94rem;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1080px) {
  .mm2-header-inner { grid-template-columns: auto 1fr auto; }
  .mm2-menu-toggle { display: inline-flex; }
  .mm2-header-cta { display: none; }
  .mm2-primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: none;
    padding: 18px 16px;
    background: rgba(251, 246, 241, 0.98);
    border-bottom: 1px solid rgba(24,18,20,0.08);
  }
  .mm2-primary-nav.is-open { display: block; }
  .mm2-primary-nav > ul { flex-direction: column; align-items: flex-start; gap: 12px; }
  .mm2-hero-grid,
  .mm2-grid-2,
  .mm2-snapshot-grid,
  .mm2-values-grid,
  .mm2-contact-grid,
  .mm2-footer-grid,
  .mm2-services-grid,
  .mm2-home-lower-grid,
  .mm2-social-list { grid-template-columns: 1fr; }
  .mm2-hero-copy, .mm2-hero-media { min-height: auto; }
  .mm2-cta-strip { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .mm2-hero-copy,
  .mm2-hero-media,
  .mm2-page-hero-shell,
  .mm2-contact-panel,
  .mm2-plugin-content,
  .mm2-form-shell,
  .mm2-feature,
  .mm2-card,
  .mm2-quote,
  .mm2-shell { padding: 26px; }
  .mm2-hero-title { font-size: clamp(3rem, 15vw, 4.8rem); }
  .mm2-section { padding: 68px 0; }
}
