/* Ten24 theme overrides and component classes */

html {
  scroll-behavior: smooth;
}

body.t24-site {
  margin: 0;
  background: var(--color-bg);
}

@keyframes t24-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes t24-pop {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to { opacity: 1; transform: none; }
}

/* Buttons */
.t24-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
  text-decoration: none;
}

.t24-btn--sm { height: 36px; padding: 0 16px; font-size: 14px; }
.t24-btn--md { height: 46px; padding: 0 24px; font-size: 15px; }
.t24-btn--lg { height: 54px; padding: 0 32px; font-size: 16px; }
.t24-btn--full { width: 100%; }

.t24-btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}
.t24-btn--primary:hover {
  background: var(--brand-hover);
  color: var(--on-brand);
}

.t24-btn--white {
  background: var(--white);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.t24-btn--white:hover {
  color: var(--brand-hover);
}

.t24-btn--outline {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.t24-btn--outline:hover {
  border-color: var(--black);
}

.t24-btn--indigo {
  background: var(--accent-indigo);
  color: var(--on-accent);
  border-color: transparent;
}

.t24-btn--indigo:hover {
  background: var(--accent-indigo-hover);
  color: var(--on-accent);
}

.t24-btn:active:not(:disabled) {
  transform: translateY(1px);
}

.t24-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  border: 1.5px dashed rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-lg);
  background: var(--color-surface-muted);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  padding: 12px;
}

.t24-img-placeholder--about-lead {
  border-radius: 0;
  min-height: 0;
  font-weight: 500;
}

.t24-img-placeholder--about-team {
  border-radius: 50%;
  min-height: 0;
  font-size: 12px;
  font-weight: 500;
  padding: 8px;
}

/* Banner */
.t24-banner {
  position: relative;
  overflow: hidden;
  color: var(--white);
  border-radius: var(--radius-lg);
  text-align: center;
}

.t24-banner--lg { padding: var(--space-10) var(--space-8); }
.t24-banner--black { background-color: var(--black); }
.t24-banner--indigo { background-color: var(--accent-indigo-deep); }
.t24-banner--dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.3px, transparent 1.3px);
  background-size: 18px 18px;
}

.t24-banner__mark {
  position: absolute;
  right: -28px;
  top: -28px;
  width: 190px;
  opacity: 0.14;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.t24-banner__inner {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
}

.t24-banner__title {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.22;
  margin: 0;
  font-weight: 600;
}

.t24-banner__subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  margin: 10px 0 0;
}

/* Portfolio card hover */
.t24-portfolio-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--text-brand);
}

/* Header */
.t24-announcement {
  width: 100%;
  background: var(--brand);
  color: var(--on-brand);
}

.t24-announcement__inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 9px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.t24-announcement__link {
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

.t24-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.t24-header__inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.t24-header__logo img {
  height: 50px;
  width: auto;
}

.t24-header__nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.t24-header__menu {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.t24-header__menu a {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.t24-header__menu a:hover,
.t24-header__menu .current-menu-item > a,
.t24-header__menu .current_page_item > a {
  color: var(--text-brand);
  border-bottom-color: var(--brand);
}

.t24-header__toggle {
  display: none;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  position: relative;
}

.t24-header__toggle-icon {
  position: absolute;
  transition: opacity 160ms ease, transform 160ms ease;
}

.t24-header__toggle-icon--close {
  opacity: 0;
  transform: scale(0.85);
}

.t24-header__toggle[aria-expanded="true"] .t24-header__toggle-icon--open {
  opacity: 0;
  transform: scale(0.85);
}

.t24-header__toggle[aria-expanded="true"] .t24-header__toggle-icon--close {
  opacity: 1;
  transform: none;
}

.t24-fullscreen-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  display: none;
  opacity: 0;
  animation: t24-fade 180ms ease;
}

.t24-fullscreen-menu.is-open {
  display: block;
  opacity: 1;
}

.t24-fullscreen-menu__inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  min-height: 100%;
  padding: 24px 32px 40px;
  display: flex;
  flex-direction: column;
}

.t24-fullscreen-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 48px;
}

.t24-fullscreen-menu__logo img {
  height: 44px;
  width: auto;
}

.t24-fullscreen-menu__close {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
}

.t24-fullscreen-menu__nav {
  flex: 1;
  display: flex;
  align-items: center;
}

.t24-fullscreen-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.t24-fullscreen-menu__list a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
  padding: 10px 0;
  transition: color 160ms ease;
}

.t24-fullscreen-menu__list a:hover,
.t24-fullscreen-menu__list .current-menu-item > a,
.t24-fullscreen-menu__list .current_page_item > a {
  color: var(--text-brand);
}

.t24-fullscreen-menu__list .sub-menu {
  list-style: none;
  margin: 4px 0 0;
  padding: 0 0 0 20px;
}

.t24-fullscreen-menu__list .sub-menu a {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 8px 0;
}

.t24-fullscreen-menu__footer {
  margin-top: 40px;
}

body.t24-menu-open {
  overflow: hidden;
}

/* Contact modal */
.t24-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(14, 15, 17, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 20px;
  overflow-y: auto;
  animation: t24-fade 180ms ease;
}

.t24-modal.is-open {
  display: flex;
}

.t24-modal__card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 520px;
  padding: 36px;
  position: relative;
  animation: t24-pop 240ms var(--ease-out);
}

.t24-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--neutral-100);
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
}

.t24-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.t24-field label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.t24-field input,
.t24-field select,
.t24-field textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}

.t24-field input,
.t24-field select {
  height: 46px;
  padding: 0 14px;
  background: var(--white);
}

.t24-field select {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  cursor: pointer;
}

.t24-field textarea {
  padding: 12px 14px;
  resize: vertical;
}

.t24-field input:focus,
.t24-field select:focus,
.t24-field textarea:focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.t24-select-wrap {
  position: relative;
}

.t24-select-wrap svg {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.t24-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.t24-checkbox input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

.t24-checkbox span {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
}

.t24-modal__success {
  display: none;
  text-align: center;
  padding: 20px 8px 12px;
}

.t24-modal__success.is-visible {
  display: block;
}

.t24-modal__form.is-hidden {
  display: none;
}

.t24-contact-page__success {
  display: none;
}

.t24-contact-page__success.is-visible {
  display: block;
}

[data-contact-card] [data-contact-form].is-hidden {
  display: none;
}

.t24-cf7-missing {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.t24-cf7-form .wpcf7 {
  margin: 0;
}

.t24-cf7-form .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.t24-cf7-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.t24-cf7-form--modal .t24-cf7-fields {
  gap: 16px;
}

.t24-cf7-row--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.t24-cf7-form--modal .t24-field--company {
  display: none;
}

.t24-cf7-form--modal .t24-cf7-row--split {
  grid-template-columns: 1fr;
}

.t24-cf7-form .wpcf7-form-control-wrap {
  display: block;
}

.t24-cf7-form .t24-field .wpcf7-form-control-wrap > .wpcf7-form-control:not(.wpcf7-submit) {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}
.t24-cf7-form .t24-field p {
  margin: 0;
}

.t24-cf7-form .t24-field .wpcf7-form-control-wrap > input.wpcf7-form-control:not(.wpcf7-submit),
.t24-cf7-form .t24-field .wpcf7-form-control-wrap > select.wpcf7-form-control {
  height: 46px;
  padding: 0 14px;
  background: var(--white);
}

.t24-cf7-form .t24-field .wpcf7-form-control-wrap > select.wpcf7-form-control {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.t24-cf7-form .t24-field .wpcf7-form-control-wrap > textarea.wpcf7-form-control {
  padding: 12px 14px;
  resize: vertical;
  min-height: 120px;
}

.t24-cf7-form .t24-field .wpcf7-form-control-wrap > .wpcf7-form-control:not(.wpcf7-submit):focus {
  border-color: var(--brand);
  box-shadow: var(--focus-ring);
}

.t24-cf7-optin .wpcf7-checkbox,
.t24-cf7-optin .wpcf7-acceptance {
  width: auto;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.t24-cf7-optin .wpcf7-list-item {
  margin: 0;
}

.t24-cf7-optin .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
}

.t24-cf7-optin input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
  flex: none;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
}

.t24-cf7-optin .wpcf7-list-item-label {
  line-height: 1.4;
}

.t24-cf7-submit {
  margin-top: 4px;
}

.t24-cf7-form--modal .t24-cf7-submit {
  margin-top: 6px;
}

.t24-cf7-form--modal .wpcf7-submit {
  width: 100%;
}

.t24-cf7-form .wpcf7-not-valid-tip {
  font-size: 13px;
  line-height: 1.4;
  color: #b42318;
  margin-top: 6px;
}

.t24-cf7-form .wpcf7-response-output {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.45;
}

.t24-cf7-form form.sent .wpcf7-response-output {
  display: none;
}

.t24-cf7-form form.invalid .wpcf7-response-output,
.t24-cf7-form form.unaccepted .wpcf7-response-output,
.t24-cf7-form form.failed .wpcf7-response-output,
.t24-cf7-form form.spam .wpcf7-response-output {
  border: 1px solid #fecdca;
  background: #fef3f2;
  color: #b42318;
}

@media (max-width: 768px) {
  .t24-cf7-row--split {
    grid-template-columns: 1fr;
  }
}

.t24-success-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  background: var(--color-success-bg);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

/* Footer */
.t24-footer {
  border-top: 1px solid var(--border);
  background: var(--color-surface);
}

.t24-footer__inner {
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.t24-footer__logo {
  display: block;
  height: 28px;
  width: auto;
  max-height: 28px;
}

.t24-footer__links {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-muted);
}

.t24-footer__links a {
  color: var(--text-secondary);
  font-weight: 600;
  text-decoration: none;
}

.t24-site-wrap {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--color-bg);
  min-height: 100vh;
}

@media (max-width: 991px) {
  .t24-header__nav {
    display: none;
  }

  .t24-header__toggle {
    display: inline-flex;
  }

  .t24-hero-compass {
    display: none;
  }
}

@media (max-width: 767px) {
  section [style*="grid-template-columns: repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  section [style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
  }
}
