:root {
  --utk-gold: #dd9933;
  --utk-dark: #111517;
}

html {
  scroll-behavior: auto;
}

body {
  background: #fff;
}

/* Theme's animsition wrapper is animated by our own bootstrap. */
.animsition-overlay {
  opacity: 1 !important;
  overflow: visible !important;
}

/* ---------- Loader ---------- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading .logo-loading {
  position: absolute;
}

/* ---------- Header ---------- */
.fixed-header {
  transition: transform 0.6s cubic-bezier(0.755, 0.05, 0.855, 0.06);
  will-change: transform;
}

.fixed-header.headroom--unpinned {
  transform: translateY(-100%);
}

.fixed-header .logo-white,
.fixed-header .logo-black {
  transition: opacity 0.45s ease;
}

.fixed-header .logo-black {
  top: 0;
  left: 0;
}

/* Keep the two logo layers stacked exactly */
.logo-img-box {
  height: 26px;
}

/* ---------- Footer reveal ---------- */
.site-footer-wrap {
  position: relative;
  z-index: 1;
}

.footer {
  left: 0;
  right: 0;
  width: 100%;
}

/* ---------- Nav ---------- */
body.nav-open {
  overflow: hidden !important;
}

.nav-bg {
  overflow: hidden;
}

/* ---------- Home slider ---------- */
.home-slider .swiper-wrapper {
  display: flex;
  will-change: transform;
}

.home-slider .swiper-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  transition-property: transform;
}

.home-slider .swiper-slide .slide-bg {
  transition-property: transform;
  will-change: transform;
}

.home-slider .swiper-pagination-bullet {
  cursor: pointer;
}

/* ---------- Video lightbox ---------- */
.utk-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(17, 21, 23, 0.92);
  padding: 30px;
}

.utk-video-modal iframe {
  width: min(1100px, 100%);
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.utk-video-close {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #dd9933;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

/* ---------- Forms ---------- */
.utk-form-status {
  margin-top: 18px;
  font-family: 'Oswald', sans-serif;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #dd9933;
}

.utk-form-status.error {
  color: #ff6b6b;
}

.utk-form-status.success {
  color: #dd9933;
}

.wpforms-submit:disabled,
button.border-btn-box:disabled {
  opacity: 0.55;
  cursor: wait;
}

/* Honeypot field must stay invisible */
.utk-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------- Auxiliary fixes ---------- */
.clear {
  clear: both;
}

img {
  max-width: 100%;
}

::selection {
  background: #dd9933;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Submenu: hide hovered section backgrounds, as in the original theme */
.nav-container.submenu-open .nav-bg { opacity: 0 !important; }


/* ---------- Phone field (Argentina flag, like WPForms intl-tel) ---------- */
.utk-phone-shell {
  position: relative !important;
  display: block !important;
  max-width: 60% !important;
}
.utk-phone-shell input.wpforms-field-medium {
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 52px !important;
}
.utk-flag {
  position: absolute !important;
  left: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 20px !important;
  height: 14px !important;
  min-width: 20px !important;
  border-radius: 1px !important;
  background: linear-gradient(to bottom, #74acdf 0 33.33%, #fff 33.33% 66.66%, #74acdf 66.66% 100%) !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08) !important;
  z-index: 3 !important;
  pointer-events: none !important;
}
.utk-flag:before {
  content: '';
  position: absolute;
  left: 50% !important;
  top: 50% !important;
  width: 5px !important;
  height: 5px !important;
  border-radius: 50% !important;
  background: #f6b40e !important;
  transform: translate(-50%, -50%) !important;
}
.utk-flag:after {
  content: '';
  position: absolute;
  left: 24px !important;
  top: 50% !important;
  margin-top: -2px !important;
  border-left: 3px solid transparent !important;
  border-right: 3px solid transparent !important;
  border-top: 4px solid #999 !important;
}
@media only screen and (max-width: 600px) {
  .utk-phone-shell { max-width: 100%; }
}


/* ============================================================
   UTK polish layer — 2026
   ============================================================ */

/* Skip link */
.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 10001;
  padding: 12px 18px;
  background: var(--utk-gold);
  color: #111517;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: top .2s ease-out;
}
.skip-link:focus { top: 12px; }

/* Keyboard focus: visible on dark and light backgrounds */
a:focus-visible,
button:focus-visible,
[role="button"]:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--utk-gold) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(17, 21, 23, .40);
}

/* Header CTA */
.header-actions {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 16px;
  border: 1px solid rgba(221, 153, 51, .75);
  color: var(--utk-gold);
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity .5s ease,
    transform .5s cubic-bezier(.23, 1, .32, 1),
    background-color .25s ease,
    color .25s ease,
    border-color .25s ease;
}
body.active .header-cta {
  opacity: 1;
  transform: none;
  transition-delay: 1s, 1s, 0s, 0s, 0s;
}
.header-cta span {
  font-size: 14px;
  line-height: 1;
  transition: transform .25s cubic-bezier(.23, 1, .32, 1);
}
.header-cta:hover {
  background: var(--utk-gold);
  color: #111517;
  border-color: var(--utk-gold);
}
.header-cta:hover span { transform: translateX(3px); }
.midnightHeader.black .header-cta {
  color: #111517;
  border-color: rgba(17, 21, 23, .45);
}
.midnightHeader.black .header-cta:hover {
  background: #111517;
  color: #f5f5f5;
  border-color: #111517;
}
@media only screen and (max-width: 767px) {
  .header-actions { gap: 0; }
  .header-cta { display: none; }
}

/* Mobile quick contact bar */
.utk-mobile-bar { display: none; }
@media only screen and (max-width: 767px) {
  .utk-mobile-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #111517;
    border-top: 1px solid rgba(221, 153, 51, .35);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%);
    visibility: hidden;
    transition:
      transform .3s cubic-bezier(.23, 1, .32, 1),
      visibility .3s;
  }
  .utk-mobile-bar.visible {
    transform: none;
    visibility: visible;
  }
  .utk-mobile-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    font-family: 'Oswald', sans-serif;
    font-size: 10px;
    line-height: 1;
    letter-spacing: 2px;
    text-transform: uppercase;
  }
  .utk-mobile-bar .utk-mobile-call {
    background: var(--utk-gold);
    color: #111517;
  }
  .utk-mobile-bar .utk-mobile-mail { color: #f5f5f5; }
  .utk-mobile-bar a:active { opacity: .85; }
  .to-top-btn { bottom: 72px; }
  .footer { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* Family grid: role under each member */
.client-list .brand-box { overflow: hidden; }
.brand-role {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  display: block;
  color: var(--utk-gold);
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  line-height: 1.2;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(5px);
  transition:
    opacity .25s ease-out,
    transform .25s cubic-bezier(.23, 1, .32, 1);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .client-list li:hover .brand-role {
    opacity: 1;
    transform: none;
  }
}
@media only screen and (max-width: 767px) {
  .brand-role { display: none; }
}

/* Service cards: lift + image zoom */
.hover-box {
  transition: transform .35s cubic-bezier(.23, 1, .32, 1), background-color .35s ease;
}
.expertise-img-box { overflow: hidden; }
.hover-box .hover-img {
  transition: transform .6s cubic-bezier(.23, 1, .32, 1);
}

@media (hover: hover) and (pointer: fine) {
  .hover-box:hover {
    transform: translateY(-4px);
  }
  .hover-box:hover .hover-img {
    transform: scale(1.03);
  }

}

/* Insurance page intro + help */
.insurance-note {
  max-width: 780px;
  margin: 28px 0 34px;
  color: #f5f5f5;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.75;
}
.insurance-note strong {
  color: var(--utk-gold);
  font-weight: 600;
}
.insurance-help {
  border-top: 1px solid rgba(221, 153, 51, .28);
}
.insurance-help .insurance-title {
  margin: 0 0 14px;
  color: var(--utk-gold);
  font-family: 'Oswald', sans-serif;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.insurance-help p {
  max-width: 720px;
  color: #f5f5f5;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  line-height: 1.75;
}
.insurance-help p a {
  color: var(--utk-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.insurance-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 26px;
}
.insurance-help-actions .border-btn-box { margin: 0; }

/* Page transition overlay */
.utk-page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #111517;
  transform: translateX(-100%);
  transition: transform .55s cubic-bezier(.77, 0, .175, 1);
  pointer-events: none;
}
.utk-page-transition.active {
  transform: translateX(0);
  pointer-events: auto;
}

/* Tactile press feedback */
.border-btn-box,
.wpforms-submit,
.header-cta,
.utk-mobile-bar a {
  -webkit-tap-highlight-color: transparent;
}
.border-btn-box:active,
.wpforms-submit:active,
.header-cta:active {
  transform: translateY(1px);
}

/* Long copy reads better */
p { text-wrap: pretty; }
.insurance-note,
.insurance-help p,
.footer-copyright { text-wrap: pretty; }

@media (prefers-reduced-motion: reduce) {
  .hover-box,
  .hover-box .hover-img,
  .brand-role,
  .header-cta,
  .header-cta span,
  .utk-page-transition {
    transition-duration: .01ms !important;
  }
  .hover-box:hover,
  .hover-box:hover .hover-img {
    transform: none;
  }
}

/* Cursor disappears while the page transition covers the screen */
body.is-leaving .pointer { opacity: 0 !important; }


/* Mobile tabs: avoid the overlapping stacked effect on small screens */
@media only screen and (max-width: 767px) {
  .cq-tabmenu.style2 {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 0;
    overflow: visible;
  }
  .cq-tabmenu.style2 li {
    float: none;
    flex: 1 1 calc(50% - 2px);
  }
  .cq-tabmenu.style2 li a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 0 !important;
    padding: 9px 10px !important;
    font-size: 11px;
    line-height: 1.25;
    text-align: center;
    box-shadow: none;
    border-radius: 0 !important;
  }
  .cq-tabmenu.style2 li.current a {
    margin-top: 0 !important;
    padding: 9px 10px !important;
  }
  .cq-tabs .cq-tabcontent.style2 {
    margin-top: 8px;
    padding: 10px 0;
  }
  .cq-tabcontent.style2 .cq-tabitem {
    padding: 4px 0;
  }
}
