/* Matching Hearts — established-agency art direction
   September 2026
   This layer intentionally builds on styles.css instead of replacing the responsive system. */

:root {
  --mh-navy: #142f3f;
  --mh-navy-deep: #0f2633;
  --mh-navy-soft: #25495a;
  --mh-bone: #f4efe7;
  --mh-bone-deep: #e8ded2;
  --mh-sand: #ddd0c2;
  --mh-mist: #dfe8e9;
  --mh-red: #ae3439;
  --mh-blue: #238fb5;
  --mh-purple: #683477;
  --mh-white: #fffdf9;
  --mh-ink: #17242c;
  --mh-muted: #5b676d;
  --mh-shadow: 0 24px 70px rgba(10, 31, 43, .16);
}

html {
  background: var(--mh-navy-deep);
}

body {
  background: var(--mh-bone);
  color: var(--mh-ink);
}

/* The site should feel like one designed publication, not stacked white modules. */
.questions-section,
.origin-story-section,
.page-hero + .section,
.article-page .section--compact,
.legal-copy,
.error-page {
  background: var(--mh-bone);
}

.section--cool,
.portal-section {
  background: var(--mh-mist);
}

.section--neutral {
  background: var(--mh-bone-deep);
}

.section-label,
.article-kicker,
.eyebrow {
  color: var(--mh-red);
  letter-spacing: .15em;
}

/* Header — quiet, substantial, and less template-like. */
.site-header,
.home-header {
  border-bottom: 1px solid rgba(20, 47, 63, .16);
  background: rgba(244, 239, 231, .96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 32px rgba(15, 38, 51, .08);
}

.nav-links a {
  color: #31434d;
  font-weight: 710;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--mh-red);
}

.nav-links a:not(.nav-cta)::after {
  height: 3px;
  background: var(--mh-blue);
}

.nav-cta {
  border-color: var(--mh-navy);
  background: var(--mh-navy);
}

.nav-cta:hover {
  border-color: var(--mh-red);
  background: var(--mh-red);
}

/* Hero retains photography, but the typography and framing become more institutional. */
.cinematic-hero {
  min-height: clamp(680px, 86svh, 940px);
  background: var(--mh-navy-deep);
}

.cinematic-hero::before {
  background:
    linear-gradient(90deg, rgba(10, 29, 41, .84) 0%, rgba(10, 29, 41, .68) 37%, rgba(10, 29, 41, .27) 70%, rgba(10, 29, 41, .10) 100%),
    linear-gradient(0deg, rgba(10, 29, 41, .52) 0%, rgba(10, 29, 41, .03) 65%);
}

.hero-copy {
  max-width: 740px;
}

.hero-copy h1 {
  max-width: 720px;
  font-size: clamp(3.35rem, 7vw, 5.9rem);
  font-weight: 760;
  letter-spacing: -.058em;
}

.hero-copy .lead {
  max-width: 630px;
  color: rgba(255, 255, 255, .92);
}

.home-page .hero-emphasis::before {
  background: var(--mh-blue);
}

.hero-copy .btn-primary {
  border-color: var(--mh-red);
  background: var(--mh-red);
}

.hero-copy .btn-primary:hover {
  border-color: #932a30;
  background: #932a30;
}

.hero-copy .btn-secondary {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(9, 27, 38, .22);
}

.hero-indicators button[aria-pressed="true"]::before {
  background: #fff;
}

/* A restrained three-color connection line becomes the recurring brand signal. */
.questions-section,
.process-section,
.origin-story-section,
.section--neutral,
.start-section,
.mosaic-section,
.page-hero,
.article-hero,
.site-footer {
  position: relative;
}

.questions-section::before,
.process-section::before,
.origin-story-section::before,
.page-hero::before,
.article-hero::before,
.site-footer::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--mh-red) 0 33.333%, var(--mh-blue) 33.333% 66.666%, var(--mh-purple) 66.666% 100%);
  content: "";
}

/* Questions: editorial directory rather than a grid of cards. */
.questions-section {
  padding-block: clamp(86px, 9vw, 132px);
}

.questions-head {
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  gap: clamp(46px, 7vw, 96px);
  margin-bottom: 48px;
}

.questions-head h2 {
  max-width: 520px;
}

.question-grid {
  border-top-color: rgba(20, 47, 63, .32);
}

.question-link {
  min-height: 150px;
  border-bottom-color: rgba(20, 47, 63, .16);
}

.question-link:nth-child(odd) {
  border-right-color: rgba(20, 47, 63, .16);
}

.question-link strong {
  color: var(--mh-navy-deep);
}

.question-link > span > span {
  color: #697379;
}

.question-link::before {
  background: var(--mh-red);
}

.question-link:nth-child(2n)::before {
  background: var(--mh-blue);
}

/* Process becomes a serious dark information band. */
.process-section {
  background: var(--mh-navy);
  color: var(--mh-white);
}

.process-section h2,
.process-section h3 {
  color: var(--mh-white);
}

.process-section .section-label {
  color: #82c9df;
}

.process-section p {
  color: rgba(255, 255, 255, .72);
}

.process-steps {
  border-top-color: rgba(255, 255, 255, .28);
}

.process-step {
  border-right-color: rgba(255, 255, 255, .15);
}

.process-step::before {
  border-color: var(--mh-navy);
  background: var(--mh-red);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .22);
}

.process-section .text-link {
  color: #aee2f0;
}

.process-section .text-link:hover {
  color: #fff;
}

/* Founder story gets visual weight and a print-editorial feel. */
.origin-story-section {
  padding-top: clamp(88px, 10vw, 150px);
  padding-bottom: clamp(88px, 10vw, 150px);
}

.origin-story-photo {
  position: relative;
  box-shadow: 0 30px 80px rgba(15, 38, 51, .12);
}

.origin-story-photo::after {
  position: absolute;
  right: -14px;
  bottom: -14px;
  width: min(28vw, 310px);
  height: min(16vw, 160px);
  border-right: 5px solid var(--mh-blue);
  border-bottom: 5px solid var(--mh-red);
  content: "";
  pointer-events: none;
}

.story-copy {
  padding-left: clamp(0px, 4vw, 54px);
  border-left: 1px solid rgba(20, 47, 63, .18);
}

.story-copy h2 {
  color: var(--mh-navy-deep);
}

.story-copy p {
  color: #49575f;
  font-size: 1.08rem;
  line-height: 1.75;
}

/* Focus facts keep the information clean without drifting into card UI. */
.section--neutral {
  border-top: 1px solid rgba(20, 47, 63, .12);
  border-bottom: 1px solid rgba(20, 47, 63, .12);
}

.focus-heading h2 {
  color: var(--mh-navy-deep);
}

.focus-facts,
.focus-fact {
  border-color: rgba(20, 47, 63, .20);
}

.focus-fact h3 {
  color: var(--mh-navy-deep);
  font-size: clamp(1.2rem, 2vw, 1.58rem);
}

.focus-fact p {
  color: #57656c;
}

/* Guided next-step band: deep purple gives the page another brand register. */
.start-section {
  background: #352743;
}

.start-layout .section-label {
  color: #9ed9e9;
}

.start-options {
  border-top-color: rgba(255, 255, 255, .34);
}

.start-option {
  border-bottom-color: rgba(255, 255, 255, .20);
}

.start-option:hover {
  color: #bce7f2;
}

/* Gallery is framed by a dark editorial field rather than more white. */
.mosaic-section {
  padding: clamp(16px, 2vw, 30px) 0;
  background: var(--mh-navy-deep);
}

.photo-mosaic {
  gap: clamp(10px, 1.1vw, 17px);
}

.photo-mosaic .photo-frame {
  box-shadow: 0 8px 34px rgba(0, 0, 0, .18);
}

.visual-cta .btn-primary {
  border-color: var(--mh-red);
  background: var(--mh-red);
}

/* Interior heroes should read like a mature agency site, not a white template header. */
.page-hero,
.article-hero {
  border-bottom: 0;
  background: var(--mh-navy);
  color: var(--mh-white);
}

.page-hero h1,
.article-hero h1,
.page-hero h2,
.article-hero h2 {
  color: var(--mh-white);
}

.page-hero .lead,
.article-hero .lead {
  color: rgba(255, 255, 255, .78);
}

.page-hero .section-label,
.article-hero .article-kicker {
  color: #8fd0e3;
}

.page-hero-photo {
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 28px 70px rgba(4, 17, 24, .28);
}

.breadcrumb {
  color: rgba(255, 255, 255, .58);
}

.breadcrumb a {
  color: #bce9f4;
}

/* Interior content rhythm */
.about-story h2,
.portal-layout h2,
.resource-intro h2,
.contact-layout h2,
.prose h2 {
  color: var(--mh-navy-deep);
}

.facts-band,
.fact-column,
.contact-details,
.contact-detail,
.resource-index,
.resource-row,
.official-list,
.official-item,
.related-reading,
.related-reading a,
.next-question,
.faq-list,
.faq-item {
  border-color: rgba(20, 47, 63, .18);
}

.fact-column small {
  color: var(--mh-blue);
}

.fact-column:nth-child(2) small {
  color: var(--mh-purple);
}

.fact-column:nth-child(3) small {
  color: var(--mh-red);
}

.portal-access,
.faq-nav,
.article-aside {
  border-top-color: var(--mh-purple);
}

.resource-row:hover h2,
.faq-question:hover,
.related-reading a:hover,
.contact-detail a:hover {
  color: var(--mh-blue);
}

/* Buttons become more confident and less component-library-like. */
.btn {
  min-height: 49px;
  padding-inline: 22px;
  border-radius: 2px;
  font-weight: 760;
  letter-spacing: .005em;
}

.btn-primary {
  border-color: var(--mh-navy);
  background: var(--mh-navy);
}

.btn-primary:hover {
  border-color: var(--mh-red);
  background: var(--mh-red);
}

.btn-secondary {
  border-color: rgba(20, 47, 63, .30);
  background: rgba(255, 253, 249, .56);
}

/* Form treatment */
.field input,
.field select,
.field textarea {
  border-color: rgba(20, 47, 63, .25);
  background: var(--mh-white);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--mh-blue);
  box-shadow: 0 0 0 3px rgba(35, 143, 181, .13);
}

/* Long-form resources get stronger reading hierarchy. */
.article-page .section--compact {
  background: var(--mh-bone);
}

.prose p,
.prose li {
  color: #4c5a62;
}

.prose h2 {
  padding-top: 6px;
}

.editorial-note,
.notice {
  border-left-color: var(--mh-purple);
}

.next-question {
  border-top-color: var(--mh-blue);
}

/* Footer — substantial, dark, and unmistakably finished. */
.site-footer {
  padding-top: 72px;
  border-top: 0;
  background: var(--mh-navy-deep);
  color: rgba(255, 255, 255, .86);
}

.site-footer .brand {
  padding: 10px 14px;
  background: var(--mh-white);
  box-shadow: 0 8px 28px rgba(0, 0, 0, .12);
}

.footer-about,
.footer-links a,
.footer-contact a,
.footer-contact span,
.footer-bottom,
.footer-meta,
.footer-meta a {
  color: rgba(255, 255, 255, .66);
}

.footer-about strong,
.footer-title {
  color: #fff;
}

.footer-title {
  letter-spacing: .13em;
}

.footer-links a:hover,
.footer-contact a:hover,
.footer-meta .builder-credit {
  color: #9fd9e9;
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, .16);
}

/* Matching Hearts contact console — deliberately not a chatbot. */
.mh-contact-widget {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 460;
  display: grid;
  justify-items: end;
  gap: 12px;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mh-contact-toggle {
  position: relative;
  display: flex;
  width: 72px;
  height: 72px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(20, 47, 63, .18);
  border-radius: 50%;
  background: var(--mh-white);
  box-shadow: 0 16px 46px rgba(9, 31, 43, .25);
  overflow: visible;
  pointer-events: auto;
  transition: transform .22s ease, box-shadow .22s ease;
}

.mh-contact-toggle:hover,
.mh-contact-toggle:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 56px rgba(9, 31, 43, .32);
}

.mh-contact-hearts {
  display: block;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #fff;
  background-image: url('/assets/matching-hearts-logo.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 188px auto;
  box-shadow: inset 0 0 0 1px rgba(20, 47, 63, .08);
}

.mh-contact-label {
  position: absolute;
  right: 80px;
  top: 50%;
  padding: 7px 10px;
  border-radius: 2px;
  background: var(--mh-navy-deep);
  color: #fff;
  font-size: .72rem;
  font-weight: 760;
  letter-spacing: .04em;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(8px, -50%);
  transition: opacity .18s ease, transform .18s ease;
  white-space: nowrap;
}

.mh-contact-toggle:hover .mh-contact-label,
.mh-contact-toggle:focus-visible .mh-contact-label {
  opacity: 1;
  transform: translate(0, -50%);
}

.mh-contact-panel {
  width: min(382px, calc(100vw - 32px));
  border: 1px solid rgba(20, 47, 63, .14);
  border-top: 4px solid var(--mh-blue);
  border-radius: 3px;
  background: var(--mh-white);
  box-shadow: var(--mh-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.985);
  transform-origin: bottom right;
  transition: opacity .2s ease, transform .24s cubic-bezier(.2,.7,.25,1);
  visibility: hidden;
}

.mh-contact-widget.is-open .mh-contact-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.mh-contact-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 24px 18px;
  border-bottom: 1px solid rgba(20, 47, 63, .12);
  background: var(--mh-navy-deep);
}

.mh-contact-panel-head small {
  display: block;
  margin-bottom: 5px;
  color: #85cde1;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mh-contact-panel-head strong {
  display: block;
  color: #fff;
  font-size: 1.24rem;
  letter-spacing: -.02em;
}

.mh-contact-close {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
}

.mh-contact-body {
  padding: 22px 24px 24px;
}

.mh-contact-body > p {
  margin: 0 0 18px;
  color: #536169;
  font-size: .93rem;
  line-height: 1.58;
}

.mh-contact-actions {
  display: grid;
  border-top: 1px solid rgba(20, 47, 63, .14);
}

.mh-contact-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 66px;
  padding: 13px 2px;
  border-bottom: 1px solid rgba(20, 47, 63, .14);
  color: var(--mh-navy-deep);
  text-decoration: none;
  transition: padding-left .18s ease, color .18s ease;
}

.mh-contact-action:hover {
  padding-left: 5px;
  color: var(--mh-red);
}

.mh-contact-action span {
  display: block;
}

.mh-contact-action strong {
  display: block;
  font-size: .91rem;
  font-weight: 760;
}

.mh-contact-action small {
  display: block;
  margin-top: 3px;
  color: #707a80;
  font-size: .72rem;
}

.mh-contact-action b {
  color: var(--mh-blue);
  font-size: 1rem;
  font-weight: 600;
}

.mh-contact-note {
  margin: 16px 0 0;
  color: #7b8489;
  font-size: .7rem;
  line-height: 1.45;
}

/* Responsive refinements */
@media (max-width: 1023px) {
  .site-header,
  .home-header {
    background: rgba(244, 239, 231, .98);
  }

  .nav-links {
    background: var(--mh-bone);
    border-color: rgba(20, 47, 63, .15);
  }

  .nav-links a {
    border-bottom-color: rgba(20, 47, 63, .10);
  }

  .process-steps::before {
    background: rgba(255, 255, 255, .28);
  }

  .process-step,
  .process-step + .process-step {
    border: 0;
  }

  .story-copy {
    padding-left: 0;
    border-left: 0;
  }

  .page-hero-grid .hero-panel {
    padding-top: 8px;
  }
}

@media (max-width: 767px) {
  .cinematic-hero {
    min-height: clamp(620px, 82svh, 740px);
  }

  .cinematic-hero::before {
    background:
      linear-gradient(90deg, rgba(10, 29, 41, .78) 0%, rgba(10, 29, 41, .50) 70%, rgba(10, 29, 41, .18) 100%),
      linear-gradient(0deg, rgba(10, 29, 41, .58) 0%, rgba(10, 29, 41, .05) 74%);
  }

  .hero-copy h1 {
    font-size: clamp(2.7rem, 12vw, 3.85rem);
  }

  .questions-head {
    gap: 22px;
  }

  .question-link {
    min-height: 108px;
  }

  .origin-story-photo::after {
    right: -6px;
    bottom: -8px;
    width: 35vw;
    height: 18vw;
    border-right-width: 3px;
    border-bottom-width: 3px;
  }

  .page-hero,
  .article-hero {
    padding-top: 60px;
  }

  .site-footer {
    padding-top: 62px;
  }

  .mh-contact-widget {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }

  .mh-contact-toggle {
    width: 64px;
    height: 64px;
  }

  .mh-contact-hearts {
    width: 52px;
    height: 52px;
    background-size: 169px auto;
  }

  .mh-contact-label {
    display: none;
  }

  .mh-contact-panel {
    width: min(370px, calc(100vw - 28px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .mh-contact-toggle,
  .mh-contact-panel,
  .mh-contact-label,
  .mh-contact-action {
    transition: none !important;
  }
}