/* --------------------------------------------------------------------------
   Blog layout (blog page, posts, category archives)
   Recreates the former Elementor layout with core blocks + the Blog Sidebar block.
   -------------------------------------------------------------------------- */

/* Containers ------------------------------------------------------------- */
.lux-con {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  min-width: 0;
  flex-shrink: 1;
}
.lux-con--row { flex-direction: row; }
.lux-con > *,
.lux-con__inner > *,
.lux-latest-post__body > * { max-width: 100%; }
.lux-con--boxed { padding: 0 10px; }
.lux-con--boxed > .lux-con__inner {
  display: flex;
  flex-direction: inherit;
  gap: inherit;
  justify-content: inherit;
  align-items: inherit;
  flex-grow: 1;
  width: 100%;
  max-width: 1290px;
  margin: 0 auto;
  padding: 10px 0;
  box-sizing: border-box;
}
.lux-con--gap-0 { gap: 0; }
.lux-con--gap-row-0 { gap: 0 20px; }
.lux-con--justify-center { justify-content: center; }
.lux-con--align-center { align-items: center; }
.lux-con--align-start { align-items: flex-start; }
.lux-con--shadow { box-shadow: 1px 1px 8px 0 #D2D2D2; }

.lux-w-70 { width: 70%; }
.lux-w-65 { width: 65%; }
.lux-w-35 { width: 35%; }
.lux-w-30 { width: 30%; }

.lux-grid {
  display: grid;
  gap: 20px;
  padding: 10px;
  box-sizing: border-box;
  justify-content: start;
  grid-template-columns: repeat(var(--lux-grid-cols, 3), 1fr);
  grid-template-rows: repeat(var(--lux-grid-rows, 2), 1fr);
}
.lux-grid--cols-2 { --lux-grid-cols: 2; }
.lux-grid--rows-1 { --lux-grid-rows: 1; }
.lux-grid--rows-3 { --lux-grid-rows: 3; }
.lux-grid--rows-5 { --lux-grid-rows: 5; }

/* Links inside the layout aren't underlined (the Elementor content reset did the same). */
.lux-con a,
.lux-blog-sidebar a { text-decoration: none; box-shadow: none; }

/* Widgets ---------------------------------------------------------------- */
.lux-heading,
.lux-post-title { margin: 0; padding: 0; line-height: 1; }
.lux-heading a { color: inherit; }
.lux-con .has-text-align-center { text-align: center; }
.lux-con .has-text-align-left { text-align: left; }
.lux-con .has-text-align-right { text-align: right; }

.lux-text {
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  color: #7A7A7A;
}
.lux-text--justify { text-align: justify; }
/* Paragraphs and lists written straight into a post (not inside a Text section) get the article style. */
.lux-con--shadow > :is(p, ul, ol) {
  margin: 0;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
  color: #54595F;
}
.lux-list-disc { list-style: disc; }

.lux-image { margin: 0; text-align: center; }
.lux-image--start { text-align: left; }
.lux-image a { display: inline-block; }
.lux-image img {
  display: inline-block;
  vertical-align: middle;
  max-width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
}
.lux-image.is-fixed-height img { width: 100%; }

/* Images that sat inline in the article text: keep the inline layout (margins don't collapse). */
.lux-inline-image { display: inline-block; width: 100%; margin: 0; vertical-align: baseline; }
.lux-inline-image img { display: block; max-width: 100%; height: auto; }

.lux-buttons { display: block; }
.lux-buttons .wp-block-button { display: block; }
.lux-buttons .wp-block-button__link {
  display: inline-block;
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  line-height: 1;
  border-radius: 3px;
  text-align: center;
  transition: all .3s;
}

.lux-post-terms {
  font-family: "Times New Roman", sans-serif;
  font-weight: 100;
  color: #7A7A7A;
}
.lux-post-terms a { color: #7A7A7A; }

/* Blog Sidebar block ------------------------------------------------------ */
.lux-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
  box-sizing: border-box;
  width: 30%;
  min-width: 0;
}
.lux-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px;
  box-sizing: border-box;
  box-shadow: 1px 1px 8px 0 #D2D2D2;
}
.lux-sidebar-image { text-align: center; }
.lux-sidebar-image a { display: inline-block; }
.lux-sidebar-image img { display: inline-block; vertical-align: middle; max-width: 100%; height: auto; }

.lux-sidebar-label {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: #000;
}
.lux-sidebar-label--upper { text-transform: uppercase; }

.lux-social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 5px;
  font-size: 0;
  line-height: 0;
}
.lux-social-icons__item { display: inline-block; }
.lux-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 15px;
  line-height: 1;
  transition: all .3s;
}
.lux-social-icon svg { width: 1em; height: 1em; fill: #fff; position: relative; display: block; }
.lux-social-icon--rss { background-color: #F26522; }
.lux-social-icon--facebook { background-color: #3B5998; }
.lux-social-icon--x-twitter { background-color: #000; }
.lux-social-icon--youtube { background-color: #CD201F; }
.lux-social-icon--houzz { background-color: #7AC142; }
.lux-social-icon:hover { opacity: .9; }

.lux-sidebar-search__form { min-height: 51px; }

.lux-blog-search {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  width: 100%;
}
.lux-blog-search input[type="search"] {
  flex: 1 1 auto;
  padding: 10px 12px;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  font-family: "averta", sans-serif;
  font-size: 14px;
  color: #1c1c21;
  background: #fff;
}
.lux-blog-search input[type="search"]:focus { outline: none; border-color: #1c1c21; }
.lux-blog-search button {
  padding: 10px 16px;
  border: none;
  border-radius: 2px;
  background: #1c1c21;
  color: #fff;
  font-family: "averta", sans-serif;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.lux-blog-search button:hover { background: #000; }

.lux-sidebar-latest { padding: 20px; }
.lux-latest-posts { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: stretch; }
.lux-latest-posts--compact { gap: 0; }
.lux-latest-post { margin-bottom: 24px; }
.lux-latest-post__row { display: flex; align-items: flex-start; margin-bottom: -20px; }
.lux-latest-post__media {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30%;
}
.lux-latest-post__media a { display: inline-block; }
.lux-latest-post__media img {
  display: inline-block;
  vertical-align: middle;
  width: 100px;
  max-width: 100%;
  height: 100px;
  object-fit: cover;
}
.lux-latest-post__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 70%;
}
/* Full column width plus a 15px left margin, centered in the column (same box the Elementor list used). */
.lux-latest-post__title,
.lux-latest-post__date {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  width: 100%;
  margin: 10px 0 0 15px;
  text-align: left;
}
.lux-latest-post__title {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #000;
}
.lux-latest-post__date {
  font-family: "Times New Roman", sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #7A7A7A;
}

/* Responsive ------------------------------------------------------------- */
@media (max-width: 767px) {
  .lux-con--boxed > .lux-con__inner { max-width: none; }
  /* Containers wrap on phones (Elementor's mobile default), which also changes how overflowing items align. */
  .lux-con,
  .lux-con--boxed > .lux-con__inner,
  .lux-latest-post__body { flex-wrap: wrap; }
  .lux-con--row > .lux-con,
  .lux-con--row > .lux-con__inner > .lux-con,
  .lux-con--row > .lux-con__inner > .lux-blog-sidebar { width: 100%; }
  .lux-grid { grid-template-columns: repeat(1, 1fr); grid-auto-flow: row; }
  .lux-image--w-m-100 img { width: 100%; }
  .lux-fs-m-20 { font-size: 20px !important; }
  .lux-fs-m-22 { font-size: 22px !important; }
  .lux-fs-m-28 { font-size: 28px !important; }
  .lux-fs-m-30 { font-size: 30px !important; }
  .lux-m-m-0 { margin: 0 !important; }
}

/* Blog typography (moved from the "Blog typography + social/search fixes" WPCode snippet) */
body.blog h1, body.blog h2, body.blog h3,
body.single-post h1, body.single-post h2, body.single-post h3,
body.archive.category h1, body.archive.category h2, body.archive.category h3,
body.search h1, body.search h2, body.search h3,
body.page-id-2128 h1, body.page-id-2128 h2, body.page-id-2128 h3 {
  font-family: "tiempo", "Tiempos Headline", "Playfair Display", Georgia, serif !important;
  color: #1c1c21 !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em;
}

body.blog .lux-heading,
body.single-post .lux-heading,
body.page-id-2128 .lux-heading {
  font-family: "tiempo", "Tiempos Headline", "Playfair Display", Georgia, serif !important;
  color: #1c1c21 !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
}
