/*
 * DanangLuxe V3 — Global footer and responsive guardrails
 * Presentation-only. Loaded after route-specific V3 styles.
 */

/* Shared layout safety */
body:not(.wp-admin) .dnl-shell,
body:not(.wp-admin) .e-con-inner,
body:not(.wp-admin) .container,
body:not(.wp-admin) .row > *,
body:not(.wp-admin) [class*="grid"] > *,
body:not(.wp-admin) [class*="flex"] > * {
  min-width: 0;
}
body:not(.wp-admin) h1,
body:not(.wp-admin) h2,
body:not(.wp-admin) h3,
body:not(.wp-admin) p,
body:not(.wp-admin) a,
body:not(.wp-admin) td,
body:not(.wp-admin) th {
  overflow-wrap: break-word;
}
body:not(.wp-admin) img,
body:not(.wp-admin) video,
body:not(.wp-admin) iframe,
body:not(.wp-admin) svg {
  max-width: 100%;
}
body:not(.wp-admin) .dnl-prose figure,
body:not(.wp-admin) .dnl-prose figure.wp-caption {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: 0 !important;
}
body:not(.wp-admin) .dnl-prose figure img,
body:not(.wp-admin) .dnl-prose figure.wp-caption img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
}
body:not(.wp-admin) .dnl-prose figcaption {
  width: auto !important;
  max-width: 100% !important;
  overflow-wrap: anywhere;
}
body:not(.wp-admin) :focus-visible {
  outline: 2px solid #c3a15f;
  outline-offset: 3px;
}
body:not(.wp-admin) .houzez-elementor-mobile-menu,
body:not(.wp-admin) .offcanvas-mobile-menu,
body:not(.wp-admin) .offcanvas-mobile-menu .offcanvas-title,
body:not(.wp-admin) .offcanvas-mobile-menu .nav-link,
body:not(.wp-admin) .offcanvas-mobile-menu button {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
}

/* Global footer CTA */
.dnl-footer-cta {
  position: relative;
  padding: clamp(44px, 5vw, 68px) 0 !important;
  border-top: 1px solid rgba(255,255,255,.10);
  background: #102436 !important;
  color: #fff;
}
.dnl-footer-cta .dnl-shell {
  width: min(1180px, calc(100% - 48px));
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 72px) !important;
}
.dnl-footer-cta h2 {
  max-width: 760px;
  margin: 0 0 10px !important;
  color: #fff !important;
  font-family: "Playfair Display", serif !important;
  font-size: clamp(30px, 3.3vw, 44px) !important;
  font-weight: 500 !important;
  line-height: 1.14 !important;
  letter-spacing: -.018em !important;
  text-wrap: balance;
}
.dnl-footer-cta p {
  max-width: 760px;
  margin: 0 !important;
  color: rgba(255,255,255,.74) !important;
  font: 400 15px/1.72 Inter, sans-serif !important;
}
.dnl-footer-cta a,
.dnl-footer-cta a:visited {
  min-width: 196px;
  min-height: 48px;
  margin: 0 !important;
  padding: 12px 20px !important;
  border: 1px solid #e3c98f !important;
  border-radius: 8px !important;
  background: #e3c98f !important;
  color: #081824 !important;
  font: 650 14px/1.2 Inter, sans-serif !important;
  text-align: center;
  white-space: nowrap;
  box-shadow: none !important;
}
.dnl-footer-cta a:hover,
.dnl-footer-cta a:focus-visible {
  border-color: #f0dbaa !important;
  background: #f0dbaa !important;
  color: #081824 !important;
}

/* Global footer */
.dnl-footer {
  padding: clamp(52px, 6vw, 78px) 0 0 !important;
  background: #081824 !important;
  color: rgba(255,255,255,.76);
}
.dnl-footer .dnl-shell {
  width: min(1180px, calc(100% - 48px));
}
.dnl-footer-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.45fr) minmax(160px, .75fr) minmax(190px, .85fr) !important;
  gap: clamp(34px, 6vw, 82px) !important;
  align-items: start;
}
.dnl-footer-grid > div {
  min-width: 0;
}
.dnl-footer-brand strong {
  display: block;
  margin: 0 0 14px;
  color: #fff !important;
  font-family: "Playfair Display", serif !important;
  font-size: clamp(27px, 2.5vw, 34px) !important;
  font-weight: 500 !important;
  line-height: 1.16;
  letter-spacing: -.01em !important;
}
.dnl-footer h3 {
  margin: 6px 0 18px !important;
  color: #e3c98f !important;
  font: 650 12px/1.3 Inter, sans-serif !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
}
.dnl-footer p,
.dnl-footer a {
  color: rgba(255,255,255,.68) !important;
  font: 400 14px/1.72 Inter, sans-serif !important;
}
.dnl-footer p {
  max-width: 430px;
  margin: 7px 0 !important;
}
.dnl-footer a {
  width: fit-content;
  max-width: 100%;
  margin: 8px 0 !important;
  text-decoration: none;
}
.dnl-footer a:hover,
.dnl-footer a:focus-visible {
  color: #fff !important;
}
.dnl-footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px !important;
}
.dnl-footer-contact a {
  display: inline-flex !important;
  margin: 0 !important;
  color: #fff !important;
  font-weight: 550 !important;
}
.dnl-footer-bottom {
  margin-top: clamp(36px, 5vw, 58px) !important;
  padding: 21px 0 24px !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
  color: rgba(255,255,255,.48) !important;
  font: 400 12px/1.5 Inter, sans-serif !important;
}

/* Footer should never compete with mobile fixed Houzez actions */
body:not(.wp-admin) .dnl-footer,
body:not(.wp-admin) .dnl-footer-cta {
  position: relative;
  z-index: 2;
}
body:not(.wp-admin) .back-to-top-wrap .btn-back-to-top {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 8px !important;
}

/* Global responsive guardrails */
@media (max-width: 1024px) {
  .dnl-footer-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(150px, .8fr) minmax(170px, .9fr) !important;
    gap: 34px !important;
  }
  body:not(.wp-admin) .dnl-project-intro,
  body:not(.wp-admin) .dnl-v3-property-layout {
    gap: 28px;
  }
}

@media (max-width: 900px) {
  .dnl-footer-cta .dnl-shell {
    grid-template-columns: 1fr;
    gap: 24px !important;
  }
  .dnl-footer-cta a {
    justify-self: start;
  }
  .dnl-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 36px 44px !important;
  }
  .dnl-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  body:not(.wp-admin) .dnl-shell,
  .dnl-footer-cta .dnl-shell,
  .dnl-footer .dnl-shell {
    width: calc(100% - 32px) !important;
  }
  body:not(.wp-admin) h1 {
    text-wrap: balance;
  }
  .dnl-footer-cta {
    padding: 42px 0 !important;
  }
  .dnl-footer-cta h2 {
    max-width: 18ch;
    font-size: 31px !important;
    line-height: 1.18 !important;
  }
  .dnl-footer-cta p {
    font-size: 14px !important;
    line-height: 1.68 !important;
  }
  .dnl-footer-cta a {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    justify-self: stretch;
    white-space: normal;
  }
  .dnl-footer {
    padding-top: 46px !important;
  }
  .dnl-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
  .dnl-footer-brand {
    grid-column: auto;
    padding-bottom: 4px;
  }
  .dnl-footer h3 {
    margin-bottom: 14px !important;
  }
  .dnl-footer-contact {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .dnl-footer-bottom {
    margin-top: 32px !important;
    padding: 18px 0 22px !important;
  }
  body:not(.wp-admin) .dnl-prose,
  body:not(.wp-admin) .elementor-widget-text-editor,
  body:not(.wp-admin) .item-body,
  body:not(.wp-admin) .card-body {
    min-width: 0;
  }
  body:not(.wp-admin) .dnl-prose table {
    width: 100%;
  }
  body:not(.wp-admin) .dnl-prose table:not(.is-stacked) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  body:not(.wp-admin) input,
  body:not(.wp-admin) select,
  body:not(.wp-admin) textarea {
    max-width: 100%;
  }
  body:not(.wp-admin) .pagination,
  body:not(.wp-admin) .dnl-pagination {
    justify-content: center;
    text-align: center;
  }
}

@media (max-width: 390px) {
  body:not(.wp-admin) .dnl-shell,
  .dnl-footer-cta .dnl-shell,
  .dnl-footer .dnl-shell {
    width: calc(100% - 24px) !important;
  }
  .dnl-footer-cta h2 {
    font-size: 29px !important;
  }
  .dnl-footer-brand strong {
    font-size: 27px !important;
  }
  .dnl-footer p,
  .dnl-footer a {
    font-size: 13.5px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.wp-admin) *,
  body:not(.wp-admin) *::before,
  body:not(.wp-admin) *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
