/**
 * Crane Financial / The Impact Group — responsive + hero photo fixes
 * Loaded by mu-plugin dm-crane-responsive.php
 */

/* Shared typography: Elementor headings use line-height = font-size, which is tight for Garamond/Playfair */
.elementor-element-ec0521b .elementor-heading-title {
  line-height: 1.2;
}

/* -------------------------------------------------------------------------
   Homepage hero photo
   Do not use background-size: cover on the full-width section — that
   spreads the 3:2 photo across the whole hero so the faces (at ~40%, 40%)
   sit under the left cream fade. Paint the photo on a right-side ::after
   panel instead, and cover+position within that panel.
   ------------------------------------------------------------------------- */
.elementor-8 .elementor-element-ec0521b,
.elementor-8 .elementor-element-ec0521b.e-lazyloaded,
.elementor-8 .elementor-element-ec0521b:not(.elementor-motion-effects-element-type-background),
.elementor-8 .elementor-element-ec0521b > .elementor-motion-effects-container > .elementor-motion-effects-layer {
  background-image: none !important;
}

.elementor-8 .elementor-element-ec0521b::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: 56% !important;
  height: auto !important;
  aspect-ratio: auto !important;
  display: block !important;
  pointer-events: none;
  z-index: 0 !important;
  background-image: url("https://thecraneimpactgroup.com/wp-content/uploads/2026/11/56c848e5-1459-4785-9a7b-6e6f3b55643f.webp") !important;
  background-size: cover !important;
  background-position: 40% 40% !important;
  background-repeat: no-repeat !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Soft cream fade only at the seam, so faces in the right panel stay clear */
.elementor-8 .elementor-element-ec0521b::before,
.elementor-8 .elementor-element-ec0521b > .elementor-motion-effects-container > .elementor-motion-effects-layer::before {
  z-index: 1 !important;
  background-image: linear-gradient(91deg, #FDFBF7 44%, #FDFBF700 56%) !important;
  background-color: transparent !important;
}

.elementor-8 .elementor-element-ec0521b > .e-con-inner {
  position: relative;
  z-index: 2;
}

/* -------------------------------------------------------------------------
   Tablet portrait (768–1024): keep hero copy in the left/cream zone
   so it no longer overlaps the right-side photo on Home, Solutions,
   Careers, and Contact.
   ------------------------------------------------------------------------- */
@media (max-width: 1024px) and (min-width: 768px) {
  .elementor-element-ec0521b > .e-con-inner {
    width: 48% !important;
    max-width: 48% !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    box-sizing: border-box;
    padding-right: 20px;
    position: relative;
    z-index: 2;
  }

  /* A slightly wider photo panel on the narrower tablet canvas */
  .elementor-8 .elementor-element-ec0521b::after {
    width: 60% !important;
    background-position: 38% 40% !important;
  }

  .elementor-8 .elementor-element-ec0521b::before,
  .elementor-8 .elementor-element-ec0521b > .elementor-motion-effects-container > .elementor-motion-effects-layer::before {
    background-image: linear-gradient(91deg, #FDFBF7 40%, #FDFBF700 54%) !important;
  }

  /* Hero CTAs: the 48% text column is too narrow for both labels side by side */
  .elementor-8 .elementor-element-8267c69 {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 10px;
  }
  .elementor-8 .elementor-element-34e53b9,
  .elementor-8 .elementor-element-e0b4421 {
    width: auto !important;
    max-width: 100% !important;
    align-self: flex-start !important;
  }
  .elementor-8 .elementor-element-ec0521b .elementor-button {
    white-space: nowrap;
  }

  /* Stephanie portrait: don’t let it go full-bleed and huge */
  .elementor-8 .elementor-element-7d479c7,
  .elementor-8 .elementor-element-b8bc0f3 {
    max-width: 440px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  /* Contact tablet: the composite is very wide, so "cover" on the full
     section crops the woman's face off the right edge at 768px. Paint the
     people on a right-side panel (like the homepage hero) and keep the
     copy on the left cream. */
  .elementor-302 .elementor-element-ec0521b,
  .elementor-302 .elementor-element-ec0521b.e-lazyloaded,
  .elementor-302 .elementor-element-ec0521b:not(.elementor-motion-effects-element-type-background),
  .elementor-302 .elementor-element-ec0521b > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: none !important;
    background-color: #FDFBF7 !important;
  }
  .elementor-302 .elementor-element-ec0521b {
    position: relative;
    min-height: 420px;
  }
  .elementor-302 .elementor-element-ec0521b::after {
    content: "" !important;
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 58% !important;
    height: auto !important;
    aspect-ratio: auto !important;
    display: block !important;
    pointer-events: none;
    z-index: 0 !important;
    background-image: url("https://thecraneimpactgroup.com/wp-content/uploads/2026/11/contact_image.png") !important;
    background-size: cover !important;
    background-position: 82% 32% !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .elementor-302 .elementor-element-ec0521b > .e-con-inner {
    width: 44% !important;
    max-width: 44% !important;
    margin-right: auto !important;
    margin-left: 0 !important;
    padding-right: 16px;
    position: relative;
    z-index: 2;
  }
  .elementor-302 .elementor-element-4260933 {
    display: none !important;
  }
}

/* -------------------------------------------------------------------------
   Mobile: stack copy on cream, show the photo as a full-width 3:2 band below.
   Elementor's ::before overlay is position:absolute; inset:0, so it covered
   the in-flow ::after band. Disable that overlay and the section background
   on mobile, and force the band into normal flow.
   ------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .elementor-element-ec0521b {
    display: flex !important;
    flex-direction: column !important;
    padding-bottom: 0 !important;
    background-image: none !important;
    background-color: #FDFBF7 !important;
  }

  .elementor-element-ec0521b.e-lazyloaded,
  .elementor-element-ec0521b:not(.elementor-motion-effects-element-type-background),
  .elementor-element-ec0521b > .elementor-motion-effects-container > .elementor-motion-effects-layer {
    background-image: none !important;
  }

  .elementor-element-ec0521b > .e-con-inner {
    width: 100% !important;
    max-width: 100% !important;
    position: relative;
    z-index: 2;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
    order: 1;
  }

  /* Stop the overlay from covering the photo band */
  .elementor-element-ec0521b::before,
  .elementor-element-ec0521b > .elementor-motion-effects-container > .elementor-motion-effects-layer::before {
    display: none !important;
    background-image: none !important;
    background-color: transparent !important;
    height: 0 !important;
    inset: auto !important;
  }

  .elementor-element-ec0521b::after {
    content: "" !important;
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 3 / 2 !important;
    flex: 0 0 auto !important;
    align-self: stretch !important;
    order: 2 !important;
    z-index: 1 !important;
    pointer-events: none;
    background-size: cover !important;
    background-repeat: no-repeat !important;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Homepage: same or higher specificity than the desktop ::after panel rule,
     so the band is in-flow (the desktop rule is position:absolute; width:56%). */
  .elementor-8 .elementor-element-ec0521b::after {
    position: relative !important;
    inset: auto !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3 / 2 !important;
    flex: 0 0 auto !important;
    background-image: url("https://thecraneimpactgroup.com/wp-content/uploads/2026/11/pexels-yankrukov-6617543.jpg") !important;
    background-position: 40% 40% !important;
  }

  /* Inner pages: existing gold-curve composites, cropped to the people */
  .elementor-200 .elementor-element-ec0521b::after {
    background-image: url("https://thecraneimpactgroup.com/wp-content/uploads/2026/11/clipboard-image-1793926093.webp") !important;
    background-position: 85% 40% !important;
  }
  .elementor-267 .elementor-element-ec0521b::after {
    background-image: url("https://thecraneimpactgroup.com/wp-content/uploads/2026/11/clipboard-image-1793924602.webp") !important;
    background-position: 90% 30% !important;
  }
  /* Contact: use the current desktop photo (contact_image.png), not the old
     clipboard composite. Put the band at the top and crop to the woman. */
  .elementor-302 .elementor-element-ec0521b::after {
    order: 0 !important;
    background-image: url("https://thecraneimpactgroup.com/wp-content/uploads/2026/11/contact_image.png") !important;
    background-position: 80% 32% !important;
    aspect-ratio: 4 / 3 !important;
  }
  .elementor-302 .elementor-element-ec0521b > .e-con-inner {
    order: 2 !important;
    padding-top: 28px;
    padding-bottom: 8px;
  }
  .elementor-302 .elementor-element-4260933 {
    display: none !important;
  }

  /* Icon holders: stop stretching into full-width beige bars */
  .e-con:has(> .elementor-widget-icon) {
    width: auto !important;
    max-width: 4.75rem;
    align-self: center !important;
    margin-left: auto;
    margin-right: auto;
    --width: 4.75rem;
    --padding-left: 16px;
    --padding-right: 16px;
    --padding-top: 16px;
    --padding-bottom: 16px;
  }
}

/* Footer Privacy / Terms: prevent the 3px horizontal overflow */
.elementor-element-0288321 .elementor-icon-list-items {
  flex-wrap: wrap;
  max-width: 100%;
  box-sizing: border-box;
  padding-inline: 12px;
  overflow: hidden;
}

/* -------------------------------------------------------------------------
   Legal pages (Privacy Policy / Terms of Use)
   Default Hello Elementor template + Theme Builder header/footer.
   Tighten the measure (theme uses 1140px at desktop) and match site type.
   ------------------------------------------------------------------------- */
body.page-privacy-policy .site-main,
body.page-terms-of-use .site-main {
  max-width: 800px;
  padding: 56px 24px 96px;
  box-sizing: border-box;
}

body.page-privacy-policy .page-header,
body.page-terms-of-use .page-header {
  margin-bottom: 0;
}

body.page-privacy-policy .page-header .entry-title,
body.page-terms-of-use .page-header .entry-title {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-weight: 600;
  font-size: 2.75rem;
  line-height: 1.2;
  color: #000;
  margin: 0 0 1.75rem;
}

.dm-legal-page {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #000;
}

.dm-legal-page h2 {
  font-family: "Cormorant Garamond", "Playfair Display", serif;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #000;
  margin: 2rem 0 0.75rem;
}

.dm-legal-page p {
  margin: 0 0 1rem;
}

.dm-legal-page ul,
.dm-legal-page ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.dm-legal-page li {
  margin: 0 0 0.4rem;
}

.dm-legal-page a {
  color: #142E46;
}

@media (max-width: 767px) {
  body.page-privacy-policy .site-main,
  body.page-terms-of-use .site-main {
    padding: 32px 16px 72px;
  }

  body.page-privacy-policy .page-header .entry-title,
  body.page-terms-of-use .page-header .entry-title {
    font-size: 2.1rem;
  }

  .dm-legal-page {
    font-size: 1rem;
  }

  .dm-legal-page h2 {
    font-size: 1.3rem;
    margin-top: 1.6rem;
  }
}

/* ===== Nov 20, 2026 — WCAG AA contrast fixes (Brent approved) =====
   1) Navy band "Your Future Deserves a Plan" (4f19e81): theme rose links (#CC3366, ~1.8:1 on navy) -> cream #FDFBF7.
   2) Dusty-rose buttons: #DEA1A3 -> #C04C50 (same hue 358deg / same saturation, darker).
      White on #C04C50 = 4.78:1; #C04C50 on cream #FDFBF7 = 4.63:1 (AA 4.5:1).
   Global color, headings, and other elements are untouched. */
.elementor-element-4f19e81 a:not(.elementor-button),
.elementor-element-4f19e81 a:not(.elementor-button):link,
.elementor-element-4f19e81 a:not(.elementor-button):visited,
.elementor-element-4f19e81 a:not(.elementor-button):hover,
.elementor-element-4f19e81 a:not(.elementor-button):focus,
.elementor-element-4f19e81 a:not(.elementor-button):active {
  color: #FDFBF7 !important;
}
.elementor-element-4f19e81 a:not(.elementor-button):hover,
.elementor-element-4f19e81 a:not(.elementor-button):focus {
  text-decoration: underline;
}
.elementor-element-4f19e81 a:not(.elementor-button):focus-visible {
  outline: 2px solid #FDFBF7;
  outline-offset: 2px;
}
.elementor-element-4f19e81 a:not(.elementor-button) .elementor-icon-list-icon svg,
.elementor-element-4f19e81 a:not(.elementor-button) svg { fill: #FDFBF7; }

/* Filled rose buttons (white text): header CTA, page CTAs, contact form submit */
.elementor-14 .elementor-element.elementor-element-a783b91 .elementor-button,
.elementor-8 .elementor-element.elementor-element-34e53b9 .elementor-button,
.elementor-200 .elementor-element.elementor-element-34e53b9 .elementor-button,
.elementor-267 .elementor-element.elementor-element-34e53b9 .elementor-button,
.elementor-8 .elementor-element.elementor-element-9658143 .elementor-button,
.elementor-8 .elementor-element.elementor-element-9e7b0f2 .elementor-button,
.elementor-267 .elementor-element.elementor-element-9e7b0f2 .elementor-button,
.elementor-302 .elementor-element.elementor-element-080f892 .elementor-button[type="submit"] {
  background-color: #C04C50;
  border-color: #C04C50;
  color: #FFFFFF;
}
/* Outline rose-on-cream buttons */
.elementor-8 .elementor-element.elementor-element-e0b4421 .elementor-button,
.elementor-8 .elementor-element.elementor-element-61e9d88 .elementor-button {
  color: #C04C50;
  fill: #C04C50;
  border-color: #C04C50;
}
.elementor-8 .elementor-element.elementor-element-e0b4421 .elementor-button:hover,
.elementor-8 .elementor-element.elementor-element-e0b4421 .elementor-button:focus,
.elementor-8 .elementor-element.elementor-element-61e9d88 .elementor-button:hover,
.elementor-8 .elementor-element.elementor-element-61e9d88 .elementor-button:focus {
  background-color: #C04C50;
  color: #FFFFFF;
  fill: #FFFFFF;
}
