/* Corefunc brand additions — layered on top of the Tekmino light theme.
   Kept intentionally small: everything else is stock template CSS. */

.cf-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--tj-ff-heading, "Manrope", sans-serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: var(--tj-color-heading-primary);
  transition: color 0.3s ease;
}

.cf-logo .cf-logo-mark {
  flex: 0 0 auto;
  display: block;
  width: 38px;
  height: 38px;
}

.cf-logo .cf-logo-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.cf-logo:hover {
  color: var(--tj-color-heading-primary);
}

/* Footer / dark surfaces keep the wordmark readable */
.footer-logo .cf-logo,
.hamburger_logo .cf-logo {
  font-size: 24px;
}

@media (max-width: 575px) {
  .cf-logo { font-size: 22px; }
  .cf-logo .cf-logo-mark { width: 32px; height: 32px; }
}

/* The h9 counter block (metrics strip) ships a 580px lime blur anchored 435px BELOW
   itself, plus z-index:2 that lifts the whole block above whatever follows. In the
   index-9 demo the next block is built around that glow; in this composition it washed
   over the services heading and also swallowed clicks there, because a pseudo-element
   is hit-tested as part of its owner. Dropping the stacking lift lets the next section
   paint over the bleed while the glow still shows in the gap above it. */
.h9-counter-section {
  z-index: auto;
}

/* Full-width contact form: the template's .contact-form keeps a right margin for the
   two-column layout that used to hold the map. */
.contact-form.contact-form-wide {
  margin-inline-end: 0;
}

/* --- Submit feedback modal (see assets/js/corefunc.js) --------------------- */

.cf-submit-modal .modal-dialog {
  max-width: 460px;
}

.cf-submit-modal .modal-content {
  border: 1px solid var(--tj-color-border-1);
  border-radius: 14px;
  background-color: var(--tj-color-theme-dark);
  padding: 44px 40px 40px;
  text-align: center;
}

.cf-submit-state {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cf-submit-title {
  margin: 22px 0 8px;
  font-size: 22px;
  color: var(--tj-color-heading-primary);
}

.cf-submit-text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--tj-color-text-body);
  max-width: 30ch;
}

.cf-spinner {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid var(--tj-color-border-1);
  border-top-color: var(--tj-color-theme-primary);
  animation: cf-spin 0.7s linear infinite;
}

@keyframes cf-spin {
  to { transform: rotate(360deg); }
}

.cf-progress {
  width: 100%;
  height: 4px;
  margin-top: 24px;
  border-radius: 999px;
  background-color: var(--tj-color-border-1);
  overflow: hidden;
}

.cf-progress > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background-color: var(--tj-color-theme-primary);
  animation: cf-fill 1.1s ease-out forwards;
}

@keyframes cf-fill {
  from { width: 0; }
  to { width: 100%; }
}

.cf-tick {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--tj-color-theme-primary);
  color: var(--tj-color-theme-dark);
  font-size: 22px;
}

.cf-submit-close {
  margin-top: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .cf-spinner { animation-duration: 2s; }
  .cf-progress > span { animation: none; width: 100%; }
}

/* Wordmark inside the lime about-logo tile (replaces the template's logo-text image). */
.about-logo-text .cf-wordmark {
  display: block;
  font-family: var(--tj-ff-heading, "Manrope", sans-serif);
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--tj-color-common-black);
}

/* .tj-primary-btn reserves its right-hand padding (5px) for a 46px round .btn-icon.
   The modal's Close button is text-only, so the stock padding renders it lopsided. */
.cf-submit-close {
  padding: 17px 30px;
}

/* nice-select keeps the selected label on one line and does not clip it, so a long
   option runs past the field. Clipping .current is safe — the dropdown .list is a
   sibling, so it stays fully visible. */
.tj-nice-select-box .nice-select .current {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
