/* Devazita home responsive styling moved from style.css */
/* devazita home responsive start */
/*
Theme target: devazita Child / Astra home page
Purpose: Responsive home page cleanup, image sizing, and layout polish
*/

body.home {
  overflow-x: hidden;
}

body.home .site-content,
body.home .entry-content {
  width: 100%;
}

body.home .entry-content > * {
  box-sizing: border-box;
}

body.home .entry-content img {
  max-width: 100%;
  height: auto;
}

body.home .wp-block-cover,
body.home .wp-block-group,
body.home .wp-block-columns {
  box-sizing: border-box;
}

body.home .wp-block-columns {
  gap: clamp(18px, 2.4vw, 30px) !important;
}

body.home .wp-block-column {
  min-width: 0;
}

body.home .wp-image-1240,
body.home .wp-image-1248,
body.home .wp-image-1239,
body.home .wp-image-4038 {
  display: block !important;
  width: 100% !important;
  max-width: 280px !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  margin: 0 auto !important;
  border-radius: 14px !important;
  object-fit: cover !important;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.18);
}

body.home .wp-image-3797,
body.home .wp-image-3799,
body.home .wp-image-1462,
body.home .wp-image-1460 {
  display: block !important;
  width: clamp(92px, 13vw, 150px) !important;
  height: clamp(70px, 10vw, 116px) !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  border-radius: 10px;
}

body.home .wp-image-3795,
body.home .wp-image-3794 {
  display: block !important;
  width: clamp(168px, 22vw, 220px) !important;
  height: clamp(168px, 22vw, 220px) !important;
  margin: 0 auto 18px !important;
  border-radius: 14px !important;
  object-fit: cover !important;
  object-position: top center !important;
}

body.home .wp-block-column:has(.wp-image-3795),
body.home .wp-block-column:has(.wp-image-3794) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
}

body.home .entry-content h1,
body.home .entry-content h2,
body.home .entry-content h3 {
  overflow-wrap: anywhere;
}

body.home .entry-content p {
  max-width: 72ch;
}

@media (min-width: 922px) {
  body.home .entry-content .wp-block-columns {
    align-items: stretch;
  }

  body.home .entry-content .wp-block-column {
    height: auto !important;
  }
}

@media (max-width: 921px) {
  body.home .entry-content {
    padding-left: 0;
    padding-right: 0;
  }

  body.home .wp-block-columns {
    flex-wrap: wrap !important;
  }

  body.home .wp-block-column {
    flex-basis: calc(50% - 16px) !important;
    flex-grow: 1;
  }

  body.home .wp-image-1240,
  body.home .wp-image-1248,
  body.home .wp-image-1239,
  body.home .wp-image-4038 {
    max-width: 320px !important;
  }
}

@media (max-width: 640px) {
  body.home .entry-content {
    font-size: 16px;
  }

  body.home .entry-content h1 {
    font-size: clamp(2.25rem, 12vw, 3.2rem) !important;
    line-height: 1.08 !important;
  }

  body.home .entry-content h2 {
    font-size: clamp(1.85rem, 8vw, 2.45rem) !important;
    line-height: 1.15 !important;
  }

  body.home .wp-block-columns {
    width: min(100%, 390px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    gap: 22px !important;
  }

  body.home .wp-block-column {
    flex-basis: 100% !important;
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  body.home .wp-image-1240,
  body.home .wp-image-1248,
  body.home .wp-image-1239,
  body.home .wp-image-4038 {
    width: min(100%, 300px) !important;
    max-width: 300px !important;
    aspect-ratio: 4 / 3 !important;
  }

  body.home .wp-image-3797,
  body.home .wp-image-3799,
  body.home .wp-image-1462,
  body.home .wp-image-1460 {
    width: 112px !important;
    height: 76px !important;
  }

  body.home .wp-image-3795,
  body.home .wp-image-3794 {
    width: 190px !important;
    height: 190px !important;
  }

  body.home .custom-logo {
    max-width: 120px !important;
    height: auto !important;
  }
}

@media (max-width: 420px) {
  body.home .wp-block-columns {
    width: min(100%, 360px) !important;
  }

  body.home .wp-image-1240,
  body.home .wp-image-1248,
  body.home .wp-image-1239,
  body.home .wp-image-4038 {
    max-width: 292px !important;
  }
}


/* Devazita project cards alignment */
body.home .wp-block-column:has(.wp-image-1240),
body.home .wp-block-column:has(.wp-image-1248),
body.home .wp-block-column:has(.wp-image-1239),
body.home .wp-block-column:has(.wp-image-4038) {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  text-align: center !important;
}

body.home figure:has(.wp-image-1240),
body.home figure:has(.wp-image-1248),
body.home figure:has(.wp-image-1239),
body.home figure:has(.wp-image-4038) {
  width: 100% !important;
  max-width: 280px !important;
  height: 280px !important;
  margin: 0 auto clamp(24px, 3vw, 36px) !important;
  display: flex !important;
  align-items: stretch !important;
  justify-content: center !important;
}

body.home .wp-image-1240,
body.home .wp-image-1248,
body.home .wp-image-1239,
body.home .wp-image-4038 {
  max-width: 280px !important;
  height: 280px !important;
  min-height: 280px !important;
}

@media (max-width: 921px) {
  body.home figure:has(.wp-image-1240),
  body.home figure:has(.wp-image-1248),
  body.home figure:has(.wp-image-1239),
  body.home figure:has(.wp-image-4038),
  body.home .wp-image-1240,
  body.home .wp-image-1248,
  body.home .wp-image-1239,
  body.home .wp-image-4038 {
    max-width: 320px !important;
    height: 320px !important;
    min-height: 320px !important;
  }
}

@media (max-width: 640px) {
  body.home figure:has(.wp-image-1240),
  body.home figure:has(.wp-image-1248),
  body.home figure:has(.wp-image-1239),
  body.home figure:has(.wp-image-4038),
  body.home .wp-image-1240,
  body.home .wp-image-1248,
  body.home .wp-image-1239,
  body.home .wp-image-4038 {
    width: min(100%, 300px) !important;
    max-width: 300px !important;
    height: 225px !important;
    min-height: 225px !important;
  }
}

body.home .wp-block-spectra-container[data-spectra-id="1dc8aba8"] {
  align-items: flex-start !important;
}

/* Devazita hero image restore */
body.home .entry-content > .wp-block-spectra-container[data-spectra-id="005ae473"] {
  background-image: linear-gradient(rgba(7, 9, 26, 0.34), rgba(7, 9, 26, 0.62)), url("https://devazita.com/wp-content/uploads/2026/05/7dcc7635-a312-43a4-9e2b-9dcdc8dc9449.png") !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}
/* Devazita unified dark home background */
body.home {
  --dvz-home-bg: #07091a;
  background: var(--dvz-home-bg) !important;
}

body.home #page,
body.home .site,
body.home #content,
body.home .site-content,
body.home .ast-container,
body.home #primary,
body.home .site-main,
body.home article.ast-article-single,
body.home .entry-content {
  background: transparent !important;
}

body.home .site-header,
body.home .main-header-bar,
body.home .ast-primary-header-bar,
body.home .ast-mobile-header-wrap,
body.home .ast-mobile-header-content {
  background-color: rgba(7, 9, 26, 0.78) !important;
  background-image: none !important;
  box-shadow: none !important;
}

body.home .entry-content > .wp-block-spectra-container,
body.home .entry-content > .wp-block-cover,
body.home .entry-content > .wp-block-group {
  background-color: transparent !important;
  background-image: none !important;
}

body.home .entry-content > .wp-block-spectra-container::before,
body.home .entry-content > .wp-block-cover::before,
body.home .entry-content > .wp-block-group::before {
  background-color: transparent !important;
  background-image: none !important;
}

body.home .site-footer,
body.home .site-footer .site-primary-footer-wrap,
body.home .site-footer .site-below-footer-wrap,
body.home .site-footer .ast-builder-grid-row-container,
body.home .site-footer .ast-builder-grid-row,
body.home .site-footer .ast-footer-copyright {
  background-color: transparent !important;
  background-image: none !important;
}
/* devazita home responsive end */
