/* =========================================================
   IMMIX CONTACT 2
   Modern contact page layer
   Depends on: /assets/css/immix-next-base.css
   File: /assets/css/contact2.css
========================================================= */

/* IMMIX-CONTACT2-ACTIVE */


/* =========================================================
   1. PAGE SHELL
========================================================= */

.ix-contact-page-shell {
  background:
    radial-gradient(circle at 10% 8%, rgba(105, 166, 61, 0.08), transparent 32%),
    radial-gradient(circle at 92% 14%, rgba(18, 52, 93, 0.06), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7faf6 100%);
}

.ix-contact-page {
  position: relative;
  overflow: hidden;
  background: #f7faf6;
}

.ix-contact-page .ix-kicker {
  margin-bottom: 14px;
}


/* =========================================================
   2. HERO
========================================================= */

.ixc-hero {
  --ixc-hero-image: url("https://www.immixgroup.ca/assets/images/vancouverviews%20copy.avif");

  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 560px;
  padding: clamp(76px, 7vw, 112px) 0 clamp(64px, 6vw, 92px);
  background: #f7faf6;
  border-top: 1px solid rgba(210, 222, 214, 0.55);
  border-bottom: 1px solid rgba(210, 222, 214, 0.55);
}

.ixc-hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(247, 250, 246, 0.985) 0%,
      rgba(247, 250, 246, 0.965) 27%,
      rgba(247, 250, 246, 0.84) 48%,
      rgba(247, 250, 246, 0.52) 71%,
      rgba(247, 250, 246, 0.22) 100%
    ),
    var(--ixc-hero-image) center center / cover no-repeat;
}

.ixc-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 240px;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(247, 250, 246, 0) 0%,
      rgba(247, 250, 246, 0.96) 100%
    );
}

.ixc-hero__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: clamp(38px, 5vw, 72px);
  align-items: center;
}

.ixc-hero__content {
  max-width: 760px;
}

.ixc-hero h1 {
  max-width: 13ch;
  margin: 0 0 20px;
  color: var(--ix-navy-800);
  font-family: var(--ix-font-serif);
  font-size: clamp(43px, 4.45vw, 72px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.052em;
}

.ixc-hero .ix-lead {
  max-width: 61ch;
  margin-bottom: 24px;
  color: #4d657e;
  font-size: clamp(15.5px, 1.05vw, 17px);
  font-weight: 600;
  line-height: 1.68;
}

.ixc-check-list {
  display: grid;
  gap: 10px;
  max-width: 620px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ixc-check-list li {
  position: relative;
  padding-left: 30px;
  color: #2e4963;
  font-size: 14.5px;
  font-weight: 750;
  line-height: 1.55;
}

.ixc-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.08em;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(180deg, #74b64a 0%, #568f32 100%);
  box-shadow: 0 0 0 4px rgba(105, 166, 61, 0.14);
  font-size: 11px;
  font-weight: 900;
}


/* =========================================================
   3. QUICK CONTACT CARD
========================================================= */

.ixc-contact-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3vw, 38px);
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 100% 0%, rgba(105, 166, 61, 0.18), transparent 30%),
    linear-gradient(145deg, #173f69 0%, #12345d 48%, #092a50 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 76px rgba(9, 42, 80, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ixc-contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.02) 44%,
      rgba(255, 255, 255, 0.00) 100%
    );
}

.ixc-contact-card > * {
  position: relative;
  z-index: 2;
}

.ixc-contact-card h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-family: var(--ix-font-serif);
  font-size: clamp(26px, 2vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.ixc-contact-card p {
  max-width: 36ch;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
}

.ixc-contact-card__actions {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.ixc-btn {
  min-height: 48px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  transition:
    transform 190ms var(--ix-ease),
    box-shadow 190ms var(--ix-ease),
    background-color 190ms var(--ix-ease),
    border-color 190ms var(--ix-ease);
}

.ixc-btn:hover,
.ixc-btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.ixc-btn--primary {
  color: #ffffff !important;
  background:
    linear-gradient(180deg, #70ad42 0%, #568f32 100%);
  box-shadow: 0 16px 30px rgba(86, 143, 50, 0.28);
}

.ixc-btn--ghost {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.ixc-btn--ghost:hover,
.ixc-btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.38);
}

.ixc-contact-detail {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ixc-contact-detail i {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  font-size: 13px;
}

.ixc-contact-detail strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.35;
}

.ixc-contact-detail span {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.55;
}

.ixc-contact-detail--reassurance {
  padding-bottom: 0;
}


/* =========================================================
   4. ROUTING CARDS
========================================================= */

.ixc-routing {
  position: relative;
  z-index: 4;
  margin-top: clamp(-26px, -2.2vw, -16px);
  padding-bottom: clamp(34px, 4vw, 56px);
}

.ixc-routing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 24px);
}

.ixc-route-card {
  position: relative;
  min-height: 172px;
  padding: 26px 28px 24px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0%, rgba(105, 166, 61, 0.05), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #fbfdf9 100%);
  border: 1px solid rgba(205, 216, 209, 0.92);
  box-shadow:
    0 18px 42px rgba(9, 42, 80, 0.075),
    0 4px 12px rgba(9, 42, 80, 0.03);
  transition:
    transform 190ms var(--ix-ease),
    box-shadow 190ms var(--ix-ease),
    border-color 190ms var(--ix-ease);
}

.ixc-route-card:hover {
  transform: translateY(-3px);
  border-color: rgba(105, 166, 61, 0.36);
  box-shadow:
    0 24px 54px rgba(9, 42, 80, 0.10),
    0 6px 16px rgba(9, 42, 80, 0.04);
}

.ixc-route-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #568f32;
  background:
    radial-gradient(circle, #ffffff 0%, #ffffff 44%, #eaf5e2 45%, #eaf5e2 100%);
  box-shadow: 0 0 0 7px rgba(105, 166, 61, 0.08);
  font-size: 21px;
}

.ixc-route-card h2 {
  margin: 0 0 8px;
  color: var(--ix-navy-800);
  font-family: var(--ix-font-serif);
  font-size: clamp(21px, 1.45vw, 26px);
  line-height: 1.12;
  letter-spacing: -0.022em;
}

.ixc-route-card p {
  margin: 0 0 18px;
  color: #5d7187;
  font-size: 13.75px;
  font-weight: 600;
  line-height: 1.56;
}

.ixc-route-card a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #568f32;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.ixc-route-card a::after {
  content: "→";
  transition: transform 190ms var(--ix-ease);
}

.ixc-route-card a:hover::after {
  transform: translateX(3px);
}


/* =========================================================
   5. FORM + NEXT STEPS
========================================================= */

.ixc-message-section {
  position: relative;
  padding: clamp(18px, 3vw, 34px) 0 clamp(52px, 6vw, 84px);
}

.ixc-message-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: clamp(24px, 3.5vw, 44px);
  align-items: stretch;
}

.ixc-form-card,
.ixc-next-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #ffffff 0%, #fbfdf9 100%);
  border: 1px solid rgba(205, 216, 209, 0.94);
  box-shadow:
    0 20px 48px rgba(9, 42, 80, 0.08),
    0 5px 16px rgba(9, 42, 80, 0.035);
}

.ixc-form-card {
  padding: clamp(28px, 3vw, 38px);
}

.ixc-form-card h2,
.ixc-next-card h2,
.ixc-office-details h2 {
  margin: 0 0 10px;
  color: var(--ix-navy-800);
  font-family: var(--ix-font-serif);
  font-size: clamp(25px, 2vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.028em;
}

.ixc-form-card > p:not(.ix-kicker) {
  margin: 0 0 24px;
  color: #5d7187;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.62;
}

.ixc-form {
  display: grid;
  gap: 14px;
}

.ixc-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ixc-form label {
  display: grid;
  gap: 7px;
  margin: 0;
}

.ixc-form label span {
  color: var(--ix-navy-800);
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1.35;
}

.ixc-form input,
.ixc-form select,
.ixc-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 11px;
  border: 1px solid rgba(18, 52, 93, 0.13);
  background: #ffffff;
  color: var(--ix-ink);
  font-size: 14.5px;
  line-height: 1.4;
  outline: none;
  box-shadow:
    inset 0 1px 1px rgba(7, 31, 61, 0.035),
    0 1px 0 rgba(255, 255, 255, 0.18);
  transition:
    border-color 190ms var(--ix-ease),
    box-shadow 190ms var(--ix-ease),
    background-color 190ms var(--ix-ease);
}

.ixc-form textarea {
  min-height: 118px;
  resize: vertical;
}

.ixc-form input:focus,
.ixc-form select:focus,
.ixc-form textarea:focus {
  border-color: #9fcd7e;
  box-shadow:
    0 0 0 4px rgba(105, 166, 61, 0.16),
    inset 0 1px 1px rgba(7, 31, 61, 0.035);
}

.ixc-form select {
  appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image:
    url("data:image/svg+xml,%3Csvg width='10' height='7' viewBox='0 0 10 7' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.4L5 5.4L9 1.4' fill='none' stroke='%23568f32' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px 7px;
}

.ixc-form__bottom {
  margin-top: 4px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.ixc-form__bottom p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #6a7d91;
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.45;
}

.ixc-form__bottom i {
  color: #568f32;
}

.ixc-submit-btn {
  min-height: 46px;
  padding: 0 26px;
  border: 0;
  border-radius: 11px;
  color: #ffffff;
  background:
    linear-gradient(180deg, #70ad42 0%, #568f32 100%);
  box-shadow: 0 16px 30px rgba(86, 143, 50, 0.22);
  font-size: 13px;
  font-weight: 900;
  transition:
    transform 190ms var(--ix-ease),
    box-shadow 190ms var(--ix-ease);
}

.ixc-submit-btn:hover,
.ixc-submit-btn:focus-visible {
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 20px 38px rgba(86, 143, 50, 0.28);
}


/* Next steps */

.ixc-next-card {
  padding: clamp(28px, 3vw, 38px);
  background:
    radial-gradient(circle at 100% 0%, rgba(18, 52, 93, 0.06), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.ixc-next-card h2 {
  margin-bottom: 26px;
}

.ixc-next-step {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 26px;
}

.ixc-next-step:not(:last-of-type)::after {
  content: "";
  position: absolute;
  left: 25px;
  top: 55px;
  bottom: 6px;
  width: 1px;
  background: rgba(18, 52, 93, 0.16);
}

.ixc-next-step__icon {
  position: relative;
  z-index: 2;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(180deg, #163f73 0%, #092a50 100%);
  box-shadow: 0 10px 24px rgba(9, 42, 80, 0.18);
  font-size: 18px;
}

.ixc-next-step h3 {
  margin: 0 0 6px;
  color: var(--ix-navy-800);
  font-family: var(--ix-font-sans);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.ixc-next-step p {
  margin: 0;
  color: #5d7187;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.58;
}

.ixc-next-card__note {
  margin-top: 4px;
  padding: 16px 0 0;
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--ix-navy-800);
  border-top: 1px solid rgba(18, 52, 93, 0.10);
  font-size: 14px;
  font-weight: 900;
}

.ixc-next-card__note i {
  color: #568f32;
}


/* =========================================================
   6. OFFICE / MAP SECTION
========================================================= */

.ixc-office {
  padding: 0 0 clamp(60px, 7vw, 100px);
}

.ixc-office-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.9fr) minmax(260px, 0.78fr);
  min-height: 300px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(205, 216, 209, 0.94);
  box-shadow:
    0 22px 54px rgba(9, 42, 80, 0.085),
    0 6px 18px rgba(9, 42, 80, 0.035);
}

.ixc-map-preview {
  position: relative;
  min-height: 300px;
  background:
    linear-gradient(rgba(255,255,255,0.10), rgba(255,255,255,0.10)),
    url("https://www.immixgroup.ca/assets/images/vancouver-map-preview.avif") center center / cover no-repeat,
    linear-gradient(135deg, #edf2ef 0%, #dfe9e1 100%);
}

/* fallback faux map lines if image is not available */
.ixc-map-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.52;
  background:
    linear-gradient(32deg, transparent 0 44%, rgba(255,255,255,0.75) 45% 48%, transparent 49% 100%),
    linear-gradient(115deg, transparent 0 34%, rgba(255,255,255,0.70) 35% 38%, transparent 39% 100%),
    linear-gradient(75deg, transparent 0 54%, rgba(86,143,50,0.20) 55% 56%, transparent 57% 100%);
}

.ixc-map-preview__pin {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffffff;
  background:
    linear-gradient(180deg, #163f73 0%, #092a50 100%);
  box-shadow:
    0 18px 34px rgba(9, 42, 80, 0.22),
    0 0 0 8px rgba(18, 52, 93, 0.12);
  transform: translate(-50%, -50%);
  font-size: 20px;
}

.ixc-office-details {
  padding: clamp(28px, 3vw, 38px);
}

.ixc-office-details ul {
  display: grid;
  gap: 13px;
  margin: 20px 0 22px;
  padding: 0;
  list-style: none;
}

.ixc-office-details li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  color: #526a82;
  font-size: 13.75px;
  font-weight: 650;
  line-height: 1.55;
}

.ixc-office-details li i {
  color: #568f32;
  padding-top: 2px;
}

.ixc-office-details a {
  color: var(--ix-navy-800);
  font-weight: 850;
}

.ixc-directions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ixc-directions button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid rgba(105, 166, 61, 0.30);
  color: #568f32;
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 900;
  transition:
    transform 190ms var(--ix-ease),
    background-color 190ms var(--ix-ease),
    border-color 190ms var(--ix-ease);
}

.ixc-directions button:hover,
.ixc-directions button:focus-visible {
  transform: translateY(-2px);
  background: #f2faed;
  border-color: rgba(105, 166, 61, 0.48);
  outline: none;
}

.ixc-office-photo {
  min-height: 300px;
  background:
    linear-gradient(rgba(18,52,93,0.06), rgba(18,52,93,0.06)),
    url("https://www.immixgroup.ca/assets/images/office-entrance.avif") center center / cover no-repeat,
    linear-gradient(135deg, #eff3f0 0%, #dfe8e4 100%);
}


/* =========================================================
   7. THEME COMPATIBILITY
========================================================= */

.ix-contact-page-shell .page-header {
  display: none !important;
}

.ix-contact-page-shell .scroll-to-top {
  background: var(--ix-green-650);
}

.ix-contact-page-shell .scroll-to-top:hover {
  background: var(--ix-navy-800);
}


/* =========================================================
   8. RESPONSIVE
========================================================= */

@media (max-width: 1180px) {
  .ixc-hero {
    min-height: auto;
    padding-top: 64px;
  }

  .ixc-hero__inner {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 400px);
    gap: 34px;
  }

  .ixc-hero h1 {
    max-width: 14ch;
    font-size: clamp(40px, 4.4vw, 58px);
  }

  .ixc-route-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .ixc-hero__background {
    background:
      linear-gradient(
        180deg,
        rgba(247, 250, 246, 0.98) 0%,
        rgba(247, 250, 246, 0.93) 46%,
        rgba(247, 250, 246, 0.90) 100%
      ),
      var(--ixc-hero-image) center top / cover no-repeat;
  }

  .ixc-hero__inner,
  .ixc-message-grid {
    grid-template-columns: 1fr;
  }

  .ixc-contact-card {
    max-width: 620px;
  }

  .ixc-routing {
    margin-top: 0;
    padding-top: 34px;
  }

  .ixc-routing__grid {
    grid-template-columns: 1fr;
  }

  .ixc-route-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .ixc-office-card {
    grid-template-columns: 1fr;
  }

  .ixc-office-photo {
    min-height: 240px;
  }
}

@media (max-width: 760px) {
  .ixc-hero {
    padding: 44px 0 56px;
  }

  .ixc-hero h1 {
    max-width: 100%;
    font-size: clamp(34px, 10vw, 46px);
  }

  .ixc-hero .ix-lead {
    font-size: 15px;
  }

  .ixc-contact-card,
  .ixc-form-card,
  .ixc-next-card,
  .ixc-office-card,
  .ixc-route-card {
    border-radius: 20px;
  }

  .ixc-contact-card,
  .ixc-form-card,
  .ixc-next-card,
  .ixc-office-details {
    padding: 26px 22px;
  }

  .ixc-route-card {
    grid-template-columns: 1fr;
    padding: 24px 22px;
  }

  .ixc-form__row,
  .ixc-form__bottom {
    grid-template-columns: 1fr;
  }

  .ixc-submit-btn,
  .ixc-btn {
    width: 100%;
  }

  .ixc-check-list li {
    font-size: 14px;
  }

  .ixc-map-preview,
  .ixc-office-photo {
    min-height: 220px;
  }
}

/* =========================================================
   CONTACT PAGE REFINEMENT PASS
   - Reduce h2 sizes
   - Make hero image full-width
   - Improve spacing and design balance
========================================================= */

/* 1. Make hero full browser width, while keeping content contained */
.ixc-hero {
  position: relative !important;
  width: 100vw !important;
  max-width: 100vw !important;
  left: 50% !important;
  margin-left: -50vw !important;
  margin-right: 0 !important;

  margin-top: 0 !important;
  padding: clamp(74px, 6vw, 108px) 0 clamp(70px, 6vw, 96px) !important;

  min-height: 620px !important;
  background: #f7faf6 !important;
  border-top: 1px solid rgba(210, 222, 214, 0.55) !important;
  border-bottom: 1px solid rgba(210, 222, 214, 0.55) !important;
}

/* Full-width hero background image */
.ixc-hero__background {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  z-index: 0 !important;
  pointer-events: none !important;

  background:
    linear-gradient(
      90deg,
      rgba(247, 250, 246, 0.98) 0%,
      rgba(247, 250, 246, 0.96) 24%,
      rgba(247, 250, 246, 0.84) 44%,
      rgba(247, 250, 246, 0.58) 66%,
      rgba(247, 250, 246, 0.28) 100%
    ),
    url("https://www.immixgroup.ca/assets/images/vancouverviews%20copy.avif") center center / cover no-repeat !important;
}

/* Keep content properly contained and centred */
.ixc-hero__inner {
  position: relative !important;
  z-index: 3 !important;
  width: min(100% - 72px, 1180px) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;

  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px) !important;
  gap: clamp(46px, 5vw, 76px) !important;
  align-items: center !important;
}

/* 2. Refine hero headline slightly */
.ixc-hero h1 {
  max-width: 13ch !important;
  font-size: clamp(42px, 4vw, 66px) !important;
  line-height: 0.99 !important;
  letter-spacing: -0.048em !important;
}

/* Hero paragraph slightly calmer */
.ixc-hero .ix-lead {
  max-width: 62ch !important;
  font-size: clamp(15px, 1vw, 16.5px) !important;
  line-height: 1.64 !important;
}

/* 3. Reduce page h2 sizes globally inside contact page */
.ix-contact-page h2,
.ixc-route-card h2,
.ixc-form-card h2,
.ixc-next-card h2,
.ixc-office-details h2,
.ixc-contact-card h2 {
  font-size: clamp(21px, 1.55vw, 29px) !important;
  line-height: 1.12 !important;
  letter-spacing: -0.022em !important;
}

/* Navy quick-contact h2 can stay slightly larger but not huge */
.ixc-contact-card h2 {
  font-size: clamp(24px, 1.8vw, 31px) !important;
}

/* Route cards should feel more corporate */
.ixc-route-card h2 {
  font-size: clamp(20px, 1.25vw, 24px) !important;
}

/* Form and next panel h2 */
.ixc-form-card h2,
.ixc-next-card h2 {
  font-size: clamp(24px, 1.75vw, 31px) !important;
}

/* Office h2 */
.ixc-office-details h2 {
  font-size: clamp(23px, 1.65vw, 30px) !important;
}

/* 4. Improve route card row balance */
.ixc-routing {
  margin-top: clamp(-44px, -3vw, -26px) !important;
  padding-bottom: clamp(44px, 5vw, 72px) !important;
}

.ixc-routing__grid {
  width: min(100%, 1180px) !important;
  margin-inline: auto !important;
  gap: 22px !important;
}

.ixc-route-card {
  min-height: 168px !important;
  padding: 24px 24px 22px !important;
  grid-template-columns: 52px minmax(0, 1fr) !important;
  gap: 17px !important;
  border-radius: 19px !important;
}

/* 5. Contact card polish */
.ixc-contact-card {
  max-width: 420px !important;
  padding: clamp(28px, 2.8vw, 36px) !important;
  border-radius: 22px !important;
  box-shadow:
    0 28px 74px rgba(9, 42, 80, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.ixc-contact-card p {
  font-size: 13.75px !important;
  line-height: 1.55 !important;
}

.ixc-contact-detail span {
  font-size: 12.8px !important;
}

/* 6. Form section refinement */
.ixc-message-section {
  padding-top: clamp(16px, 2vw, 28px) !important;
}

.ixc-form-card,
.ixc-next-card,
.ixc-office-card {
  border-radius: 22px !important;
}

/* 7. Responsive reset: no viewport breakout on smaller screens */
@media (max-width: 980px) {
  .ixc-hero {
    width: 100% !important;
    max-width: none !important;
    left: auto !important;
    margin-left: 0 !important;
    min-height: auto !important;
    padding: 54px 0 62px !important;
  }

  .ixc-hero__inner {
    width: min(100% - 40px, 820px) !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .ixc-hero__background {
    background:
      linear-gradient(
        180deg,
        rgba(247, 250, 246, 0.98) 0%,
        rgba(247, 250, 246, 0.94) 52%,
        rgba(247, 250, 246, 0.90) 100%
      ),
      url("https://www.immixgroup.ca/assets/images/vancouverviews%20copy.avif") center top / cover no-repeat !important;
  }

  .ixc-contact-card {
    max-width: 100% !important;
  }

  .ixc-routing {
    margin-top: 0 !important;
  }
}

@media (max-width: 760px) {
  .ixc-hero {
    padding: 42px 0 52px !important;
  }

  .ixc-hero__inner {
    width: min(100% - 28px, 720px) !important;
  }

  .ixc-hero h1 {
    max-width: 100% !important;
    font-size: clamp(34px, 10vw, 44px) !important;
  }

  .ix-contact-page h2,
  .ixc-route-card h2,
  .ixc-form-card h2,
  .ixc-next-card h2,
  .ixc-office-details h2,
  .ixc-contact-card h2 {
    font-size: clamp(21px, 6vw, 27px) !important;
  }
}
/* =========================================================
   ONEMIND LESSON: IMMIX HERO NORMALIZATION
   Do not viewport-breakout the hero container.
   Stretch only the background layer.
========================================================= */

/* Keep the page and hero in normal document flow */
.ix-contact-page,
.ixc-hero {
  width: 100% !important;
  max-width: none !important;
  left: auto !important;
  right: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  transform: none !important;
}

/* Hero spacing and containment */
.ixc-hero {
  position: relative !important;
  overflow: hidden !important;
  isolation: isolate !important;
  min-height: 620px !important;
  padding: clamp(74px, 6vw, 108px) 0 clamp(70px, 6vw, 96px) !important;
  background: #f7faf6 !important;
}

/* Full-width background without moving content */
.ixc-hero__background {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;

  /* This stretches the image to the viewport edges */
  left: calc(50% - 50vw) !important;
  right: calc(50% - 50vw) !important;
  width: auto !important;
  height: auto !important;

  z-index: 0 !important;
  pointer-events: none !important;

  background:
    linear-gradient(
      90deg,
      rgba(247, 250, 246, 0.985) 0%,
      rgba(247, 250, 246, 0.965) 26%,
      rgba(247, 250, 246, 0.84) 48%,
      rgba(247, 250, 246, 0.58) 70%,
      rgba(247, 250, 246, 0.30) 100%
    ),
    url("https://www.immixgroup.ca/assets/images/vancouverviews%20copy.avif") center center / cover no-repeat !important;
}

/* Soft fade, also viewport-wide */
.ixc-hero::after {
  content: "" !important;
  position: absolute !important;
  left: calc(50% - 50vw) !important;
  right: calc(50% - 50vw) !important;
  bottom: 0 !important;
  z-index: 1 !important;
  height: 260px !important;
  pointer-events: none !important;
  background:
    linear-gradient(
      180deg,
      rgba(247, 250, 246, 0) 0%,
      rgba(247, 250, 246, 0.97) 100%
    ) !important;
}

/* Content remains centred and contained */
.ixc-hero__inner {
  position: relative !important;
  z-index: 3 !important;

  width: min(100% - 72px, 1180px) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;

  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px) !important;
  gap: clamp(46px, 5vw, 76px) !important;
  align-items: center !important;
}

/* Keep text from drifting too far right */
.ixc-hero__content {
  max-width: 720px !important;
  justify-self: start !important;
}

/* Slightly refine the headline while we are here */
.ixc-hero h1 {
  max-width: 13ch !important;
  font-size: clamp(40px, 3.8vw, 64px) !important;
  line-height: 1 !important;
  letter-spacing: -0.046em !important;
}

/* Tablet and mobile */
@media (max-width: 980px) {
  .ixc-hero {
    min-height: auto !important;
    padding: 54px 0 62px !important;
  }

  .ixc-hero__inner {
    width: min(100% - 40px, 820px) !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  .ixc-hero__background {
    background:
      linear-gradient(
        180deg,
        rgba(247, 250, 246, 0.98) 0%,
        rgba(247, 250, 246, 0.94) 52%,
        rgba(247, 250, 246, 0.90) 100%
      ),
      url("https://www.immixgroup.ca/assets/images/vancouverviews%20copy.avif") center top / cover no-repeat !important;
  }
}

@media (max-width: 760px) {
  .ixc-hero {
    padding: 42px 0 52px !important;
  }

  .ixc-hero__inner {
    width: min(100% - 28px, 720px) !important;
  }

  .ixc-hero h1 {
    max-width: 100% !important;
    font-size: clamp(34px, 10vw, 44px) !important;
  }
}
/* =========================================================
   CONTACT HERO BREATHING ROOM
   Pushes hero content lower below the header
========================================================= */


  .ixc-hero {
  padding-top: clamp(172px, 12vw, 226px) !important;
  padding-bottom: clamp(78px, 6vw, 106px) !important;
}

/* Keep route cards tucked nicely under hero */
.ixc-routing {
  margin-top: clamp(-38px, -2.5vw, -24px) !important;
}

/* Laptop */
@media (max-width: 1280px) {
  .ixc-hero {
    padding-top: clamp(96px, 8vw, 132px) !important;
  }
}

/* Tablet */
@media (max-width: 980px) {
  .ixc-hero {
    padding-top: 72px !important;
    padding-bottom: 68px !important;
  }

  .ixc-routing {
    margin-top: 0 !important;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .ixc-hero {
    padding-top: 54px !important;
    padding-bottom: 58px !important;
  }
}
/* =========================================================
   CONTACT ROUTING CARD TEXT ALIGNMENT
========================================================= */

.ixc-route-card {
  min-height: 210px !important;
  padding: 28px 30px 26px !important;
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 22px !important;
  align-items: start !important;
}

.ixc-route-card__icon {
  width: 58px !important;
  height: 58px !important;
  margin-top: 2px !important;
}

.ixc-route-card > div:last-child {
  min-height: 100% !important;
  display: grid !important;
  grid-template-rows: auto auto 1fr auto !important;
  align-content: start !important;
}

.ixc-route-card h2 {
  margin: 0 0 10px !important;
  max-width: 16ch !important;
  font-size: clamp(22px, 1.55vw, 28px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.026em !important;
}

.ixc-route-card p {
  max-width: 31ch !important;
  margin: 0 !important;
  color: #5d7187 !important;
  font-size: 14.5px !important;
  line-height: 1.5 !important;
  font-weight: 700 !important;
}

.ixc-route-card a {
  align-self: end !important;
  margin-top: 22px !important;
  font-size: 13.25px !important;
}

/* Make the middle card heading line-break feel intentional */
.ixc-route-card:nth-child(2) h2 {
  max-width: 15ch !important;
}

/* Desktop refinement for a slightly more compact row */
@media (min-width: 981px) {
  .ixc-routing__grid {
    align-items: stretch !important;
  }

  .ixc-route-card {
    height: 100% !important;
  }
}

/* Tablet/mobile stack */
@media (max-width: 980px) {
  .ixc-route-card {
    min-height: auto !important;
    grid-template-columns: 58px minmax(0, 1fr) !important;
  }

  .ixc-route-card > div:last-child {
    display: block !important;
  }

  .ixc-route-card a {
    display: inline-flex !important;
    margin-top: 16px !important;
  }
}

@media (max-width: 560px) {
  .ixc-route-card {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .ixc-route-card h2,
  .ixc-route-card p {
    max-width: 100% !important;
  }
}
/* =========================================================
   Immix Contact Page Override
   Real Google Map Preview
   Paste at bottom of /assets/css/contact2.css
   ========================================================= */

.ixc-map-preview--google {
  position: relative;
  min-height: 430px;
  height: 100%;
  overflow: hidden;
  background: #e6eee9 !important;
}

.ixc-map-preview--google::before,
.ixc-map-preview--google::after {
  display: none !important;
}

.ixc-map-preview__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(22%) saturate(82%) contrast(96%);
}

.ixc-map-preview--google::after {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(244, 249, 246, 0.16) 0%,
      rgba(244, 249, 246, 0.04) 44%,
      rgba(16, 35, 63, 0.08) 100%
    );
}

/* Remove old fake-map pin once the real Google map is active */
.ixc-map-preview--google .ixc-map-preview__pin {
  display: none !important;
}

/* Improve the whole office card rhythm around the real map */
.ixc-office-card {
  overflow: hidden;
}

.ixc-office-details {
  position: relative;
  z-index: 2;
}

/* Optional: make the empty right photo panel look more intentional until a real image is added */
.ixc-office-photo {
  background:
    linear-gradient(135deg, rgba(16, 35, 63, 0.05), rgba(45, 107, 89, 0.08)),
    #e7efec;
}

@media (max-width: 980px) {
  .ixc-map-preview--google {
    min-height: 340px;
  }
}

@media (max-width: 640px) {
  .ixc-map-preview--google {
    min-height: 280px;
  }
}
/* =========================================================
   Immix Contact Page Override
   Office Map Fine Tuning
   Paste at bottom of /assets/css/contact2.css
   ========================================================= */

.ixc-office {
  padding: clamp(64px, 7vw, 104px) 0;
}

.ixc-office-card {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(380px, 0.86fr) minmax(180px, 0.34fr);
  overflow: hidden;
  border: 1px solid rgba(16, 35, 63, 0.09);
  border-radius: 28px;
  box-shadow: 0 30px 70px rgba(16, 35, 63, 0.11);
  background: #ffffff;
}

.ixc-map-preview--google {
  position: relative;
  min-height: 430px;
  height: 100%;
  overflow: hidden;
  background: #e8efec !important;
}

.ixc-map-preview--google::before {
  display: none !important;
}

.ixc-map-preview__iframe {
  position: absolute;
  inset: -16px;
  width: calc(100% + 32px);
  height: calc(100% + 32px);
  border: 0;
  filter: grayscale(18%) saturate(86%) contrast(96%);
}

.ixc-map-preview--google::after {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 52% 50%, rgba(255, 255, 255, 0) 0 18%, rgba(255, 255, 255, 0.14) 42%, rgba(255, 255, 255, 0.28) 100%),
    linear-gradient(90deg, rgba(247, 251, 248, 0.18), rgba(247, 251, 248, 0.02));
}

.ixc-map-preview--google .ixc-map-preview__pin {
  display: grid !important;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 58px;
  height: 58px;
  transform: translate(-50%, -50%);
  place-items: center;
  border-radius: 999px;
  background: #113967;
  color: #ffffff;
  box-shadow:
    0 0 0 12px rgba(17, 57, 103, 0.14),
    0 18px 34px rgba(16, 35, 63, 0.26);
}

.ixc-map-preview--google .ixc-map-preview__pin i {
  font-size: 1.35rem;
  line-height: 1;
}

/* Office details refinement */
.ixc-office-details {
  padding: clamp(44px, 4.4vw, 70px) clamp(36px, 4vw, 58px);
}

.ixc-office-details h2 {
  max-width: 420px;
  margin-bottom: 28px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.06;
}

.ixc-office-details ul {
  display: grid;
  gap: 20px;
  margin: 0 0 30px;
}

.ixc-office-details li {
  grid-template-columns: 28px 1fr;
  column-gap: 18px;
  align-items: flex-start;
  font-size: 1.03rem;
  line-height: 1.5;
}

.ixc-office-details li i {
  margin-top: 3px;
  color: #5a973c;
}

.ixc-office-details a {
  color: #113967;
  font-weight: 800;
  text-decoration: none;
}

.ixc-office-details a:hover {
  color: #5a973c;
}

/* Directions buttons */
.ixc-directions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ixc-directions button {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(90, 151, 60, 0.28);
  border-radius: 14px;
  background: #ffffff;
  color: #4f8738;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.ixc-directions button:hover {
  transform: translateY(-2px);
  border-color: rgba(90, 151, 60, 0.42);
  background: #f7fbf4;
  box-shadow: 0 12px 26px rgba(16, 35, 63, 0.09);
}

/* Turn the empty right panel into an intentional brand accent */
.ixc-office-photo {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(145deg, rgba(17, 57, 103, 0.08), rgba(90, 151, 60, 0.13)),
    #e5efeb;
}

.ixc-office-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.58), transparent 32%),
    linear-gradient(135deg, transparent 0 38%, rgba(255, 255, 255, 0.34) 38% 39%, transparent 39% 100%);
}

.ixc-office-photo::after {
  content: "Downtown Vancouver";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(17, 57, 103, 0.14);
  color: rgba(17, 57, 103, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Responsive */
@media (max-width: 1100px) {
  .ixc-office-card {
    grid-template-columns: 1fr 1fr;
  }

  .ixc-office-photo {
    display: none;
  }
}

@media (max-width: 820px) {
  .ixc-office-card {
    grid-template-columns: 1fr;
  }

  .ixc-map-preview--google {
    min-height: 340px;
  }

  .ixc-office-details {
    padding: 34px 28px 38px;
  }
}

@media (max-width: 640px) {
  .ixc-office {
    padding: 48px 0;
  }

  .ixc-map-preview--google {
    min-height: 280px;
  }

  .ixc-office-card {
    border-radius: 22px;
  }

  .ixc-office-details h2 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
  }

  .ixc-directions button {
    width: 100%;
  }
}
/* =========================================================
   Immix Contact Page Override
   Use Native Google Map Marker
   Paste at bottom of /assets/css/contact2.css
   ========================================================= */

.ixc-map-preview--google .ixc-map-preview__pin {
  display: none !important;
}

.ixc-map-preview__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(8%) saturate(92%) contrast(98%);
}

.ixc-map-preview--google::after {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(247, 251, 248, 0.08) 0%,
      rgba(247, 251, 248, 0.02) 45%,
      rgba(16, 35, 63, 0.04) 100%
    );
}

/* =========================================================
   Immix Contact Page Override
   Mobile Hero Breathing Room
   Paste at bottom of /assets/css/contact2.css
   ========================================================= */

.ixc-hero {
  padding-top: clamp(172px, 12vw, 226px) !important;
}

/* Mobile header is taller, so the hero needs extra clearance */
@media (max-width: 768px) {
  .ixc-hero {
    padding-top: clamp(260px, 34vw, 330px) !important;
    padding-bottom: 56px !important;
  }

  .ixc-hero__inner {
    width: min(100% - 42px, 1180px);
    gap: 28px;
  }

  .ixc-hero h1,
  .ixc-hero__title {
    font-size: clamp(2.35rem, 11vw, 3.35rem) !important;
    line-height: 0.98 !important;
    margin-top: 0 !important;
  }

  .ixc-hero__lead,
  .ixc-hero p {
    font-size: 1.02rem;
    line-height: 1.62;
  }
}

@media (max-width: 480px) {
  .ixc-hero {
    padding-top: clamp(285px, 44vw, 360px) !important;
  }

  .ixc-hero__inner {
    width: min(100% - 32px, 1180px);
  }

  .ixc-hero h1,
  .ixc-hero__title {
    font-size: clamp(2.15rem, 12vw, 3rem) !important;
  }
}