
/* =========================================================
   Emergency Contact alignment fix
   This block intentionally overrides older contact styles.
========================================================= */

.nv-fixed-contact {
  --fc-black: #05060d;
  --fc-ink: #11131d;
  --fc-muted: #626879;
  --fc-purple: #7257ff;
  --fc-line: rgba(18,22,40,.12);
  --fc-serif: "Noto Serif JP","Yu Mincho","Hiragino Mincho ProN",serif;
  --fc-sans: "Inter","Noto Sans JP",system-ui,sans-serif;
  color: var(--fc-ink);
  background: #fff;
  overflow-x: hidden;
  font-family: var(--fc-sans);
}

.nv-fixed-contact * {
  box-sizing: border-box;
}

.nv-fixed-container {
  width: min(1160px, calc(100% - 64px));
  margin-left: auto;
  margin-right: auto;
}

.nv-fixed-label {
  margin: 0 0 18px;
  color: var(--fc-purple);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
}

.nv-fixed-contact-hero {
  position: relative;
  padding: 150px 0 96px;
  min-height: 760px;
  overflow: hidden;
  isolation: isolate;
  background: #f8f8fc;
}

.nv-fixed-contact-hero__bg {
  position: absolute;
  inset: 0;
  background: url("../images/novamor-contact-hero-photo.jpg") center / cover no-repeat;
  z-index: -2;
}

.nv-fixed-contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.96) 0%,
    rgba(255,255,255,.88) 42%,
    rgba(255,255,255,.35) 68%,
    rgba(255,255,255,.05) 100%
  );
  z-index: -1;
}

.nv-fixed-contact-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, 1.04fr);
  gap: 56px;
  align-items: center;
  position: relative;
}

.nv-fixed-contact-copy {
  max-width: 540px;
}

.nv-fixed-contact-copy h1 {
  margin: 0;
  font-family: var(--fc-serif);
  font-weight: 500;
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.36;
  letter-spacing: .045em;
}

.nv-fixed-contact-copy p {
  margin: 24px 0 0;
  line-height: 2;
  color: #2d3345;
}

.nv-fixed-contact-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.nv-fixed-contact-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--fc-line);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  box-shadow: 0 10px 28px rgba(18,22,40,.06);
  font-size: 12px;
  font-weight: 800;
}

.nv-fixed-contact-form-card {
  width: 100%;
  max-width: 610px;
  margin-left: auto;
  padding: 42px;
  border: 1px solid rgba(18,22,40,.08);
  border-radius: 28px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 100px rgba(18,22,40,.12);
}

.nv-fixed-contact-form-card h2 {
  margin: 0;
  font-family: var(--fc-serif);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.45;
}

.nv-fixed-form-lead {
  margin: 12px 0 0;
  color: var(--fc-muted);
  line-height: 1.8;
}

.nv-fixed-cf7 {
  margin-top: 26px;
}

.nv-fixed-cf7 .wpcf7-form p {
  margin: 0 0 18px;
}

.nv-fixed-cf7 label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
  color: var(--fc-ink);
}

.nv-fixed-cf7 input[type="text"],
.nv-fixed-cf7 input[type="email"],
.nv-fixed-cf7 input[type="tel"],
.nv-fixed-cf7 input[type="url"],
.nv-fixed-cf7 textarea,
.nv-fixed-cf7 select {
  width: 100%;
  max-width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(18,22,40,.14);
  border-radius: 12px;
  background: #fff;
  color: var(--fc-ink);
  font-size: 15px;
}

.nv-fixed-cf7 textarea {
  min-height: 170px;
  resize: vertical;
}

.nv-fixed-cf7 input[type="submit"] {
  min-width: 220px;
  border: 0;
  border-radius: 999px;
  background: var(--fc-black);
  color: #fff;
  padding: 16px 30px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.nv-fixed-contact-examples {
  padding: 92px 0;
  background: #fff;
}

.nv-fixed-contact-examples__grid {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 56px;
  align-items: start;
}

.nv-fixed-contact-examples h2 {
  margin: 0;
  font-family: var(--fc-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 46px);
  line-height: 1.5;
}

.nv-fixed-contact-examples ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.nv-fixed-contact-examples li {
  position: relative;
  padding-left: 30px;
  line-height: 1.8;
  color: #2f3444;
}

.nv-fixed-contact-examples li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--fc-purple);
  font-weight: 900;
}

/* kill old contact blocks that may still be styled globally */
.axis-contact-hero,
.axis-contact-info,
.contact-policy,
.privacy-policy {
  display: none;
}

.nv-fixed-contact .axis-contact-hero,
.nv-fixed-contact .axis-contact-info {
  display: initial;
}

@media (max-width: 980px) {
  .nv-fixed-container {
    width: min(100% - 34px, 1160px);
  }

  .nv-fixed-contact-hero {
    padding: 128px 0 74px;
  }

  .nv-fixed-contact-hero__inner,
  .nv-fixed-contact-examples__grid {
    grid-template-columns: 1fr;
  }

  .nv-fixed-contact-form-card {
    margin-left: 0;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .nv-fixed-container {
    width: min(100% - 28px, 1160px);
  }

  .nv-fixed-contact-copy h1 {
    font-size: clamp(34px, 10vw, 50px);
  }

  .nv-fixed-contact-form-card {
    padding: 26px;
    border-radius: 22px;
  }

  .nv-fixed-cf7 input[type="submit"] {
    width: 100%;
  }
}
