/* Shared layout for the Teqtum theme family. Keep source logos and brand colors. */
.teqtum-site-layout [is="home"] {
  height: 100svh;
  min-height: 480px;
}
.teqtum-site-layout [is="home"] .text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 3.6vw, 52px);
  width: min(calc(100% - 64px), 1040px);
  height: 100%;
  margin: 0 auto;
  padding: 72px 0;
  box-sizing: border-box;
}
.teqtum-site-layout [is="home"] .text > picture {
  display: block;
  width: 100%;
  flex: 0 0 auto;
  line-height: 0;
}
.teqtum-site-layout [is="home"] .text .logo {
  position: static;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  transform: none;
  object-fit: contain;
}
.teqtum-site-layout [is="home"] .text > ul {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: stretch;
}
.teqtum-site-layout [is="home"] .text > ul > li {
  display: flex;
  width: auto;
  min-width: 0;
  margin: 0;
}
.teqtum-site-layout [is="home"] .text > ul > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 56px;
  min-height: 56px;
  margin: 0;
  padding: 12px 14px;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: .08em;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.teqtum-site-layout [is="home"] .text > ul > li > a span {
  white-space: inherit;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.teqtum-site-layout :is(.button, .submit, .wpcf7-submit, .menu_link, .top_header a) {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.teqtum-site-layout :is(.button, .submit, .wpcf7-submit) {
  max-width: 100%;
}
.teqtum-site-layout .top_header a { white-space: nowrap; }
@media (max-width: 989px) {
  .teqtum-site-layout [is="home"] .text {
    width: min(calc(100% - 48px), 768px);
  }
  .teqtum-site-layout [is="home"] .text > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 599px) {
  .teqtum-site-layout [is="home"] .text {
    width: min(calc(100% - 40px), 420px);
    gap: 32px;
  }
  .teqtum-site-layout [is="home"] .text > ul {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}
@media (max-height: 500px) and (min-width: 480px) and (max-width: 989px) {
  .teqtum-site-layout [is="home"] { min-height: 340px; }
  .teqtum-site-layout [is="home"] .text {
    width: min(calc(100% - 48px), 600px);
    gap: 20px;
    padding: 70px 0 18px;
  }
  .teqtum-site-layout [is="home"] .text > ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .teqtum-site-layout [is="home"] .text > ul > li > a { height: 48px; min-height: 48px; }
}
/* Long translated headings need a full column at tablet widths. */
.teqtum-site-layout [is="pc_ft_section"] .two_column_title {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
@media (min-width: 768px) and (max-width: 989px) {
  .teqtum-site-layout [is="pc_ft_section"] .two_column_txt_column,
  .teqtum-site-layout [is="pc_ft_section"] .two_column_txt_column:first-of-type {
    width: 100%;
    max-width: none;
    padding-right: 0;
  }
}
/* Georgian fallback glyphs are wider: keep complete words on small screens. */
@media (max-width: 640px) {
  .teqtum-site-layout .tqm-public .tqm-entry-title:lang(ka),
  .teqtum-site-layout .tqm-public .tqm-state-title:lang(ka) {
    font-size: clamp(24px, 7vw, 36px);
    overflow-wrap: normal;
    word-break: normal;
  }
  .teqtum-site-layout.page_privacy-policy .section_title:lang(ka) {
    font-size: clamp(20px, 6.2vw, 30px);
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
  }
}
/* Keep the Georgian desktop navigation on one row at its narrow breakpoint. */
@media (min-width: 1180px) and (max-width: 1399px) {
  html:lang(ka) .teqtum-site-layout [is="desktop_navigate"] .top_header .header_box {
    flex-wrap: nowrap;
    gap: 12px;
  }
  html:lang(ka) .teqtum-site-layout [is="desktop_navigate"] .top_header .header_box > div > div > ul {
    flex-wrap: nowrap;
    gap: 0 6px;
  }
  html:lang(ka) .teqtum-site-layout [is="desktop_navigate"] .top_header .header_box > div > div > ul > li {
    margin-right: 0;
  }
  html:lang(ka) .teqtum-site-layout [is="desktop_navigate"] .top_header a {
    font-size: clamp(11px, calc(1vw - .8px), 12px);
  }
}
/* Both navigation groups keep their natural widths on narrow desktops. */
@media (min-width: 1180px) and (max-width: 1399px) {
  .teqtum-site-layout [is="desktop_navigate"] .top_header .header_box {
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
  }
  .teqtum-site-layout [is="desktop_navigate"] .top_header .header_box > div {
    width: auto;
    min-width: 0;
    max-width: none;
    flex: 0 1 auto;
  }
  .teqtum-site-layout [is="desktop_navigate"] .top_header .header_box > div > div > ul {
    display: flex;
    flex-wrap: nowrap;
    gap: 0 6px;
  }
  .teqtum-site-layout [is="desktop_navigate"] .top_header .header_box > div > div > ul > li {
    margin-inline: 0;
  }
}

/* The background must cover the hero even in a wide, shallow browser panel. */
.teqtum-site-layout [is="home"] .image,
.teqtum-site-layout [is="home"] .image > picture {
  width: 100%;
  height: 100%;
}
.teqtum-site-layout [is="home"] .image > picture { display: block; }
.teqtum-site-layout [is="home"] .image .picture {
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
}
