/*
Theme Name: DavisConsult - Hello Elementor Child
Theme URI: https://davisconsult.ca
Description: DavisConsult child theme for Hello Elementor. Preserves the locked DavisConsult visual system while Elementor Pro owns the editable page, header and footer structures.
Author: DavisConsult
Author URI: https://davisconsult.ca
Template: hello-elementor
Version: 2.0.0
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: davisconsult-hello-child
*/

/* Home Phase 4: remove Elementor default Container padding and gap so the locked spacing reaches the page shell. */
html body.home.davisconsult-site .elementor .e-con {
  --padding-top: 0px;
  --padding-right: 0px;
  --padding-bottom: 0px;
  --padding-left: 0px;
  --gap: 0px 0px;
  --row-gap: 0px;
  --column-gap: 0px;
}

/* Restore the native card action row that the approved composition uses. */
html body.home.davisconsult-site .elementor .pillar-content > .dc-text-link {
  width: 100% !important;
  align-self: stretch !important;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid currentColor;
}

html body.home.davisconsult-site .elementor .pillar-content > .dc-text-link .elementor-button {
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
}

/* Preserve the restrained arrow treatment on native Elementor CTAs. */
html body.home.davisconsult-site .elementor .dc-button .elementor-button-content-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

html body.home.davisconsult-site .elementor .dc-button .elementor-button-content-wrapper::after {
  content: "\2192";
  margin-left: 1.5rem;
}

/* Remove the rejected tilted material plane without changing the ambient field. */
html body.home.davisconsult-site .elementor .hero::before {
  content: none !important;
  display: none !important;
}

/* Preserve the approved four-line desktop hero lockup. */
@media (min-width: 1041px) {
  html body.home.davisconsult-site .elementor .hero-bottom .hero-support {
    width: 430px;
    max-width: 100%;
  }

  html body.home.davisconsult-site .elementor .site-header .desktop-cta {
    align-self: center !important;
  }

  html body.home.davisconsult-site .elementor .hero-copy .elementor-element.hero-title .elementor-heading-title {
    max-width: 100% !important;
  }
}

/* Keep the approved desktop/tablet closing actions on one row. */
@media (min-width: 721px) {
  html body.home.davisconsult-site .elementor .hero-actions > .dc-button {
    width: 170px !important;
  }

  html body.home.davisconsult-site .elementor .hero-actions > .dc-button .elementor-button {
    width: 100% !important;
  }

  html body.home.davisconsult-site .elementor .hero-actions {
    flex-direction: row !important;
    align-items: center !important;
  }

  html body.home.davisconsult-site .elementor .closing-bottom {
    flex-direction: row !important;
    align-items: flex-end !important;
  }

  html body.home.davisconsult-site .elementor .closing-bottom > .dc-button {
    width: 190px;
    min-width: 190px;
    align-self: auto;
  }

  html body.home.davisconsult-site .elementor .closing-bottom > .dc-button .elementor-button {
    width: 100% !important;
  }
}

/* Match the approved tablet hero wrap. */
@media (min-width: 721px) and (max-width: 1040px) {
  html body.home.davisconsult-site .elementor .hero-copy .elementor-element.hero-title .elementor-heading-title {
    max-width: 100% !important;
    font-size: clamp(4rem, 7.3vw, 6.9rem) !important;
  }
}

@media (min-width: 721px) and (max-width: 800px) {
  html body.home.davisconsult-site .elementor .hero-copy .elementor-element.hero-title .elementor-heading-title {
    max-width: 86% !important;
  }
}

/* Keep the four-pillar desktop composition legible in the narrow desktop band. */
@media (min-width: 1041px) and (max-width: 1280px) {
  html body.home.davisconsult-site .elementor .pillar-content h3 {
    font-size: 1.375rem !important;
    letter-spacing: -0.035em !important;
  }
}

/* Fit the longest collapsed service title without changing the other pillar headings. */
@media (min-width: 1281px) {
  html body.home.davisconsult-site .elementor .pillar-card.pillar-2 .pillar-content h3 {
    font-size: 1.3125rem !important;
    letter-spacing: -0.035em !important;
  }
}

/* Keep the native Elementor mobile menu and CTA inside the viewport. */
@media (max-width: 1040px) {
  html body.home.davisconsult-site .elementor .site-header .site-header-inner {
    animation: none !important;
    transform: none !important;
  }

  html body.home.davisconsult-site .elementor .site-header .desktop-nav .elementor-nav-menu--dropdown {
    position: fixed !important;
    top: 94px !important;
    right: 24px !important;
    left: 24px !important;
    width: auto !important;
    z-index: 41 !important;
  }

  html body.home.davisconsult-site .elementor .site-header .desktop-nav:has(.elementor-menu-toggle[aria-expanded="true"]) + .desktop-cta {
    display: flex !important;
    position: fixed !important;
    top: 366px !important;
    right: 52px !important;
    left: 52px !important;
    width: auto !important;
    align-self: auto !important;
    justify-self: stretch !important;
    z-index: 42 !important;
  }

  html body.home.davisconsult-site .elementor .site-header .desktop-cta .elementor-button {
    width: 100% !important;
  }
}

@media (max-width: 720px) {
  html body.home.davisconsult-site .elementor .hero-actions > .dc-button,
  html body.home.davisconsult-site .elementor .hero-actions > .dc-button .elementor-button,
  html body.home.davisconsult-site .elementor .closing-bottom > .dc-button,
  html body.home.davisconsult-site .elementor .closing-bottom > .dc-button .elementor-button {
    width: 100% !important;
  }

  html body.home.davisconsult-site .elementor .hero-actions > .dc-button,
  html body.home.davisconsult-site .elementor .closing-bottom > .dc-button {
    align-self: stretch !important;
  }

  html body.home.davisconsult-site .elementor .closing-bottom {
    gap: 1.5rem !important;
  }

  html body.home.davisconsult-site .elementor .hero-copy .elementor-element.hero-title .elementor-heading-title {
    font-size: clamp(3.45rem, 16.9vw, 5.5rem) !important;
    line-height: 0.88 !important;
    letter-spacing: -0.06em !important;
  }

  html body.home.davisconsult-site .elementor .site-header .desktop-nav .elementor-nav-menu--dropdown {
    top: 72px !important;
    right: 18px !important;
    left: 18px !important;
    padding-bottom: 130px !important;
  }

  html body.home.davisconsult-site .elementor .site-header .desktop-nav .elementor-nav-menu--dropdown a {
    padding: 1.25rem 1.3rem !important;
  }

  html body.home.davisconsult-site .elementor .site-header .desktop-nav:has(.elementor-menu-toggle[aria-expanded="true"]) + .desktop-cta {
    top: 354px !important;
    right: 46px !important;
    left: 46px !important;
  }
}


/* Home-only typography experiment: IBM Plex Sans body/UI, Chakra Petch headings preserved. */
html body.home.page-id-19.davisconsult-site .elementor .elementor-widget-text-editor,
html body.home.page-id-19.davisconsult-site .elementor .elementor-widget-text-editor p,
html body.home.page-id-19.davisconsult-site .elementor .hero-support,
html body.home.page-id-19.davisconsult-site .elementor .site-header,
html body.home.page-id-19.davisconsult-site .elementor .elementor-nav-menu,
html body.home.page-id-19.davisconsult-site .elementor .elementor-button,
html body.home.page-id-19.davisconsult-site .elementor .section-label,
html body.home.page-id-19.davisconsult-site .elementor .outcome-index,
html body.home.page-id-19.davisconsult-site .elementor .pillar-index,
html body.home.page-id-19.davisconsult-site .elementor .specialist-label {
  font-family: "IBM Plex Sans", sans-serif;
}

html body.home.page-id-19.davisconsult-site .elementor .elementor-widget-text-editor,
html body.home.page-id-19.davisconsult-site .elementor .elementor-widget-text-editor p {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

html body.home.page-id-19.davisconsult-site .elementor .hero-support,
html body.home.page-id-19.davisconsult-site .elementor .hero-support .elementor-widget-text-editor,
html body.home.page-id-19.davisconsult-site .elementor .hero-support .elementor-widget-text-editor p {
  font-size: 20px;
  line-height: 1.55;
  font-weight: 400;
}

html body.home.page-id-19.davisconsult-site .elementor .site-header .elementor-nav-menu,
html body.home.page-id-19.davisconsult-site .elementor .elementor-button {
  font-weight: 600;
}

html body.home.page-id-19.davisconsult-site .elementor .section-label,
html body.home.page-id-19.davisconsult-site .elementor .outcome-index,
html body.home.page-id-19.davisconsult-site .elementor .pillar-index,
html body.home.page-id-19.davisconsult-site .elementor .specialist-label {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
}

@media (min-width: 721px) and (max-width: 1040px) {
  html body.home.page-id-19.davisconsult-site .elementor .elementor-widget-text-editor,
  html body.home.page-id-19.davisconsult-site .elementor .elementor-widget-text-editor p {
    font-size: 17px;
  }
  html body.home.page-id-19.davisconsult-site .elementor .hero-support,
  html body.home.page-id-19.davisconsult-site .elementor .hero-support .elementor-widget-text-editor,
  html body.home.page-id-19.davisconsult-site .elementor .hero-support .elementor-widget-text-editor p {
    font-size: 19px;
  }
}

@media (max-width: 720px) {
  html body.home.page-id-19.davisconsult-site .elementor .elementor-widget-text-editor,
  html body.home.page-id-19.davisconsult-site .elementor .elementor-widget-text-editor p {
    font-size: 17px;
  }
  html body.home.page-id-19.davisconsult-site .elementor .hero-support,
  html body.home.page-id-19.davisconsult-site .elementor .hero-support .elementor-widget-text-editor,
  html body.home.page-id-19.davisconsult-site .elementor .hero-support .elementor-widget-text-editor p {
    font-size: 18px;
  }
}


html body.home.page-id-19.davisconsult-site .elementor .elementor-button,
html body.home.page-id-19.davisconsult-site .elementor .elementor-button .elementor-button-text {
  font-family: "IBM Plex Sans", sans-serif !important;
  font-weight: 600 !important;
}


html body.home.page-id-19.davisconsult-site .elementor .elementor-button .elementor-button-text {
  white-space: nowrap;
}
