/*
 * Domira theme additions. Kept apart from styles.css (the compiled Domira
 * stylesheet) so that file stays identical to the design source.
 */

/* Fonts: Syne unless a Customizer font sets --domira-font-body / --domira-font-heading. */
body,
button,
input,
select,
textarea {
  font-family: var(--domira-font-body, "Syne", sans-serif);
}
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
  font-family: var(--domira-font-heading, "Syne", sans-serif);
}

/* Page-title background image from the Customizer. */
.page-title.style-inner {
  background-size: cover;
  background-position: center;
}

/* Native <button> elements used where the design used <div>/<span>. */
.mobile-button,
.btn-close-menu,
.btn-hide-popup {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
}

/* Scroll-reveal (replaces wow.js + animate.css). Hidden only when scripting is on. */
@media (scripting: enabled) {
  .wow {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .wow.is-visible {
    opacity: 1;
    transform: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wow {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Footer columns collapse to an accordion on mobile (toggled by main.js). */
@media (max-width: 767px) {
  .footer .footer-col-block.open .tf-collapse-content {
    display: block;
  }
}

/* Post / page content written in the editor. */
.entry-content {
  font-size: 18px;
  line-height: 28px;
  overflow-wrap: anywhere;
}
.entry-content > * + * {
  margin-top: 24px;
}
.entry-content > h2,
.entry-content > h3,
.entry-content > h4,
.entry-content > h5,
.entry-content > h6 {
  margin-top: 40px;
  margin-bottom: 0;
}
.entry-content h2 {
  font-size: 32px;
  line-height: 42px;
}
.entry-content h3 {
  font-size: 28px;
  line-height: 38px;
}
.entry-content h4 {
  font-size: 24px;
  line-height: 34px;
}
.entry-content h5,
.entry-content h6 {
  font-size: 20px;
  line-height: 30px;
}
.entry-content a:not(.wp-element-button) {
  color: var(--Primary);
  text-decoration: underline;
}
.entry-content ul,
.entry-content ol {
  padding-left: 24px;
}
.entry-content li {
  list-style: inherit;
  margin-top: 8px;
}
.entry-content img,
.entry-content video,
.entry-content iframe {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.entry-content figure {
  margin-inline: 0;
}
.entry-content figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--Text-muted);
}
.entry-content blockquote {
  margin-inline: 0;
  padding: 28px;
  border: 1px solid var(--Line);
  border-radius: 12px;
  font-style: normal;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: var(--Text-primary);
}
.entry-content table {
  width: 100%;
  border-collapse: collapse;
}
.entry-content th,
.entry-content td {
  padding: 10px 14px;
  border: 1px solid var(--Line);
}
.entry-content .alignleft {
  float: left;
  margin: 0 24px 16px 0;
}
.entry-content .alignright {
  float: right;
  margin: 0 0 16px 24px;
}
.entry-content .aligncenter {
  display: block;
  margin-inline: auto;
}
.entry-content::after {
  content: "";
  display: block;
  clear: both;
}
.page-links {
  margin-top: 24px;
}

/* Comments. */
.comments-area {
  margin-bottom: 60px;
}
.comment-list,
.comment-list .children {
  list-style: none;
  margin: 0;
  padding: 0;
}
.comment-list .children {
  padding-left: 32px;
}
.comment-list {
  margin-bottom: 40px;
}
.comment-body {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--Line);
}
.comment-avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}
.comment-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 16px;
  margin-bottom: 8px;
}
.comment-reply a {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  color: var(--Text-primary);
}
.comment-reply a:hover {
  color: var(--Primary);
}

/* Empty list / 404 search box. */
.no-results-form {
  max-width: 420px;
}

/* WordPress core classes. */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}
.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip-path: none;
}
.wp-caption {
  max-width: 100%;
}
.wp-caption img {
  display: block;
}
.wp-caption-text,
.gallery-caption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 22px;
  color: var(--Text-muted);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
}
.gallery-item {
  margin: 0;
}
.bypostauthor > .comment-body {
  padding-left: 16px;
  border-left: 3px solid var(--Primary);
}

/* Selects are drawn as .nice-select by main.js; until then the native one keeps the same size so nothing jumps. */
select.domira-select {
  width: 100%;
  min-height: 50px;
  padding: 0 15px;
  border: 1px solid var(--Line);
  border-radius: 8px;
  background: var(--White);
  color: var(--Text-primary);
}

/* 404: the design's soft sky-to-sand band with a large fading number. */
.page-404 {
  padding: 120px 0;
  background: linear-gradient(252.62deg, #DCEDF5 0%, #F9F1E5 100.83%);
}
.page-404__box {
  max-width: 640px;
  margin: 0 auto;
}
.page-404__label {
  margin-bottom: 0;
}
.page-404__code {
  font-size: clamp(120px, 24vw, 260px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, var(--Primary) 0%, rgba(254, 86, 49, 0) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.page-404 .no-results-form {
  max-width: 460px;
}
.page-404 .tf-btn {
  padding-top: 13px;
  padding-bottom: 13px;
}
@media (max-width: 767px) {
  .page-404 {
    padding: 72px 0;
  }
}

/* Header: Log in / Dashboard button */
.header-account {
  position: relative;
  align-items: center;
  height: 50px;
  border: 1px solid var(--Line);
  border-radius: 999px;
  background: var(--White);
  font-size: 16px;
  line-height: 26px;
  font-weight: 600;
  color: var(--Text-primary);
  transition: border-color 0.3s ease, color 0.3s ease;
}
.header-account:hover,
.header-account.is-open {
  border-color: var(--Primary);
}
.header-account__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  color: inherit;
}
a.header-account {
  height: 50px;
  padding: 0 24px;
}
a.header-account:hover {
  color: var(--Primary);
}
.header-account.is-user .header-account__btn {
  padding: 0 4px 0 10px;
}
.header-account.is-user .header-account__btn:hover {
  color: var(--Primary);
}
.header-account__btn img {
  display: block;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.header-account__toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 14px 0 6px;
  border: 0;
  background: none;
  font-size: 12px;
  color: inherit;
  cursor: pointer;
}
.header-account__toggle i {
  transition: transform 0.2s ease;
}
.header-account.is-open .header-account__toggle i {
  transform: rotate(180deg);
}
.header-account__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  min-width: 210px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--White);
  border: 1px solid var(--Line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(16, 16, 16, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.header-account.is-open .header-account__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.header-account__menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--Text-primary);
}
.header-account__menu a:hover {
  background: var(--Bg-light);
  color: var(--Primary);
}
.header-account__menu li:last-child {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--Line);
}
@media (max-width: 1440px) {
  .header-account,
  a.header-account {
    height: 46px;
  }
}
