/* Global visual and UX polish — loaded after the original theme files. */
:root {
  --ux-primary: #022a32;
  --ux-primary-2: #064d52;
  --ux-accent: #09a99d;
  --ux-accent-soft: #dff7f4;
  --ux-ink: #14363c;
  --ux-muted: #63767a;
  --ux-surface: #ffffff;
  --ux-page: #f6faf9;
  --ux-border: rgba(2, 42, 50, .1);
  --ux-shadow: 0 16px 45px rgba(2, 42, 50, .09);
  --ux-shadow-hover: 0 24px 58px rgba(2, 42, 50, .16);
  --ux-radius: 18px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  background: var(--ux-page);
  color: var(--ux-ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection { color: #fff; background: var(--ux-accent); }

a, button, input, textarea, summary {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(9, 169, 157, .42);
  outline-offset: 4px;
}

img {
  height: auto;
}

.main-header {
  transition: height .35s ease, background-color .35s ease, box-shadow .35s ease, backdrop-filter .35s ease !important;
}

.main-header.scrolled {
  border-bottom: 1px solid rgba(2, 42, 50, .08);
  box-shadow: 0 10px 34px rgba(2, 42, 50, .14) !important;
}

.logo img {
  filter: drop-shadow(0 7px 15px rgba(2, 42, 50, .18));
  transition: transform .3s ease, filter .3s ease;
}

.brand a:hover .logo img { transform: translateY(-2px) scale(1.035); }

.nav-links a {
  position: relative;
  overflow: hidden;
  box-shadow: 0 7px 17px rgba(2, 42, 50, .1);
  transition: color .25s ease, background-color .25s ease, transform .25s ease, box-shadow .25s ease !important;
}

.nav-links > a:hover,
.nav-links > .dropdown > a:hover {
  transform: translateY(-2px);
  box-shadow: 0 11px 24px rgba(2, 42, 50, .2);
}

.dropdown-menu {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px !important;
  box-shadow: 0 20px 48px rgba(2, 42, 50, .23) !important;
}

.dropdown-menu li:first-child a { border-radius: 12px 12px 0 0; }
.dropdown-menu li:last-child a { border-radius: 0 0 12px 12px; border-bottom: 0; }

.hero,
.page-hero,
.blog-hero {
  isolation: isolate;
}

.hero::after,
.page-hero::after,
.blog-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 70px;
  pointer-events: none;
  background: linear-gradient(to top, rgba(2,42,50,.16), transparent);
}

.hero h1,
.page-hero h1,
.blog-hero h1 {
  text-wrap: balance;
  text-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.section-title h2,
.title-inner .title,
.voice-gallery-title {
  text-wrap: balance;
}

.service-card,
.service-full-card,
.feature-card,
.step-card,
.contact-card,
.value-item,
.rts-counter-list,
.post-card,
.topic-block,
.faq-item {
  border: 1px solid var(--ux-border);
  box-shadow: var(--ux-shadow);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease !important;
}

.service-card:hover,
.service-full-card:hover,
.feature-card:hover,
.step-card:hover,
.contact-card:hover,
.value-item:hover,
.post-card:hover,
.topic-block:hover {
  transform: translateY(-6px);
  border-color: rgba(9,169,157,.32);
  box-shadow: var(--ux-shadow-hover) !important;
}

.service-card img,
.service-full-card img,
.service-detail-img img,
.voice-gallery-img,
.post-card img,
.article-cover,
.whyus-img img,
.about-img img {
  transition: transform .55s cubic-bezier(.2,.65,.25,1), filter .35s ease;
}

.service-card:hover img,
.service-full-card:hover img,
.post-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.05) contrast(1.02);
}

.cta-btn,
.service-link-btn,
.service-card a,
.hero-overlay a,
.voice-gallery-btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(2,42,50,.15);
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease !important;
}

.cta-btn:hover,
.service-link-btn:hover,
.service-card a:hover,
.hero-overlay a:hover,
.voice-gallery-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 34px rgba(2,42,50,.22);
  filter: brightness(1.04);
}

.accordion-item,
.faq-item {
  overflow: hidden;
}

.accordion-button,
.faq-item summary {
  transition: color .25s ease, background-color .25s ease;
}

.accordion-button:hover,
.faq-item summary:hover { background: var(--ux-accent-soft); }

.footer {
  position: relative;
  overflow: hidden;
  background-image: radial-gradient(circle at 85% 10%, rgba(9,169,157,.16), transparent 32%);
}

.footer a { transition: color .2s ease, transform .2s ease !important; }
.footer a:hover { color: #75e0d8 !important; }

#contactContent a {
  box-shadow: 0 8px 23px rgba(0,0,0,.16);
  transition: transform .25s ease, box-shadow .25s ease !important;
}

#contactContent a:hover { transform: translateY(-4px); box-shadow: 0 13px 28px rgba(0,0,0,.22); }

.ux-scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000000000;
  width: 100%;
  height: 4px;
  pointer-events: none;
  transform: scaleX(var(--ux-progress, 0));
  transform-origin: right center;
  background: linear-gradient(90deg, #57dfd4, var(--ux-accent), var(--ux-primary));
  box-shadow: 0 1px 8px rgba(9,169,157,.4);
}

.ux-back-to-top {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 99998;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, var(--ux-accent), var(--ux-primary));
  box-shadow: 0 12px 30px rgba(2,42,50,.25);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  cursor: pointer;
}

.ux-back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.ux-back-to-top:hover { transform: translateY(-3px); }

.ux-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999998;
  border: 0;
  background: rgba(1, 23, 28, .58);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

body.ux-nav-open { overflow: hidden; }
body.ux-nav-open .ux-nav-backdrop { opacity: 1; visibility: visible; }

.ux-reveal {
  opacity: 1;
  transform: none;
}

.ux-reveal.ux-visible {
  animation: ux-reveal-in .65s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes ux-reveal-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .main-header { box-shadow: 0 8px 25px rgba(2,42,50,.16); }
  .nav-links {
    z-index: 9999999 !important;
    border-radius: 20px 0 0 20px !important;
    box-shadow: -18px 0 48px rgba(2,42,50,.22) !important;
  }
  .nav-links > a:hover,
  .nav-links > .dropdown > a:hover { transform: none; }
  .ux-back-to-top { right: 14px; bottom: 94px; width: 42px; height: 42px; }
  .hero::after, .page-hero::after, .blog-hero::after { height: 36px; }
}

@media (hover: none) {
  .service-card:hover,
  .service-full-card:hover,
  .feature-card:hover,
  .step-card:hover,
  .contact-card:hover,
  .value-item:hover,
  .post-card:hover,
  .topic-block:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .ux-reveal, .ux-reveal.ux-visible { opacity: 1; transform: none; animation: none; }
}
