/*
Theme Name: chinaultrasound-theme
Theme URI: https://chinaultrasound.com/
Author: Deep Minds
Author URI: https://deep-minds.com/
Description: Custom WordPress theme for Hurricane PZT piezoelectric ceramic manufacturer website.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: chinaultrasound-theme
*/

:root {
  --bg: #f7f0f0;
  --surface: #0b1420;
  --ink: #e2e7ef;
  --muted: #8f9aad;
  --brand: #2bb3be;
  --brand-2: #f08c43;
  --line: rgba(255, 255, 255, 0.08);
  --radius: 18px;
  --shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  padding-top: 70px;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: min(1160px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 78px 0;
}

.section-top-pad {
  padding-top: 20px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.75rem, 2.6vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: 0;
}

.section-intro {
  max-width: none;
  margin: 14px 0 0;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@supports (content-visibility: auto) {
  .applications-section,
  .trust-section,
  .certificates-section,
  .contact-section,
  .links-hub-section,
  .products-main {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: #06090d;
}

.admin-bar .site-header {
  top: 32px;
}

body.admin-bar {
  padding-top: 102px;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
}

.site-brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #f4f7fb;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.35vw, 2.05rem);
  letter-spacing: 0;
  line-height: 1;
}

.site-logo-placeholder {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px dashed rgba(255, 255, 255, 0.25);
  color: #93a8bc;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
  transform: translateY(-3px);
}

.site-logo-image {
  display: block;
  max-height: 38px;
  width: auto;
  max-width: 220px;
  margin-right: 6px;
  transform: translateY(-1px);
}

.site-brand-main {
  color: #ffffff;
  font-weight: 700;
}

.site-brand-accent {
  color: #d8b15a;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.primary-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav a {
  display: inline-block;
  padding: 10px 14px;
  font-weight: 600;
  color: #c7cfda;
  border-radius: 8px;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  background: #0d2530;
  color: #9ce8f1;
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: #cbd4de;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  font-size: 1.2rem;
  cursor: pointer;
}

.hero {
  padding: 92px 0 70px;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 26px;
  align-items: stretch;
}

.hero-copy {
  padding: clamp(4px, 1.2vw, 10px) 0 0;
}

.hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.hero-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  max-width: 760px;
}

.hero-stack .hero-copy h1 {
  max-width: 760px;
}

.hero-cta {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(14, 111, 116, 0.24);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.14);
}

.hero-cta .btn {
  border-radius: 999px;
}

.hero-panel {
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  background: linear-gradient(165deg, #154f67, #0d7584 56%, #f0883b);
  padding: clamp(22px, 4vw, 36px);
  color: #fff;
  position: relative;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  bottom: -110px;
  right: -75px;
}

.hero-panel h3 {
  margin: 0;
  font-size: 1.3rem;
}

.hero-points {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.hero-points li {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 14px;
}

.grid-3,
.grid-2 {
  display: grid;
  gap: 16px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

.card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.badge {
  background: #0f4b6b;
  color: #fff;
  border-radius: 10px;
  padding: 9px 12px;
  text-align: center;
  font-size: 0.88rem;
}

.highlight {
  background: rgba(255, 255, 255, 0.01);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-list li {
  background: var(--surface);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px;
}

.feature-list h3 {
  margin: 0;
  font-size: 1rem;
}

.feature-list p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.quality-wrap {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.media-grid figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(18, 34, 52, 0.9);
}

.media-grid figcaption {
  font-size: 0.86rem;
  color: var(--muted);
  padding: 8px 10px 10px;
}

.map-frame {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 360px;
  background: rgba(18, 34, 52, 0.86);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.info-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 20px;
}

.info-panel h3 {
  margin: 0;
}

.info-panel p {
  margin: 10px 0 0;
  color: var(--muted);
}

.friend-links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.friend-links a {
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-size: 0.88rem;
  color: #8fa7c0;
}

.friend-links a:hover {
  color: #bdeff4;
}

.page-head {
  padding: 68px 0 36px;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.16;
  max-width: 760px;
}

.page-head p {
  margin-top: 12px;
  color: var(--muted);
  max-width: 760px;
}

.contact-page-main .page-head p {
  max-width: none;
}

.error-state {
  min-height: auto;
  display: block;
}

.error-state .page-head {
  padding-top: 48px;
  padding-bottom: 18px;
}

.error-head-inner {
  max-width: 760px;
  margin: 0 auto;
}

.error-section {
  padding-top: 0;
  padding-bottom: 40px;
}

.error-card {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(20px, 3vw, 30px);
}

.error-card__title {
  margin: 0;
  color: var(--surface);
  font-weight: 700;
  font-size: 1.08rem;
}

.error-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.error-actions .btn {
  min-width: 0;
  flex: 1 1 160px;
  text-decoration: none;
}

.error-actions .btn-secondary {
  background: #f7fbfd;
  color: #0b1420;
  border-color: rgba(11, 20, 32, 0.16);
  box-shadow: 0 4px 10px rgba(11, 20, 32, 0.06);
}

.error-actions .btn-secondary:visited {
  color: #0b1420;
}

.error-actions .btn-secondary:hover {
  background: #eef6fa;
  color: #0b1420;
}

.error-actions .btn-primary {
  min-width: 0;
  flex: 1 1 160px;
}

.error-note {
  margin: 16px 0 0;
}

.error-state .page-head p,
.error-card__title,
.error-note {
  max-width: 760px;
}

.error-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.category-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-card {
  background: linear-gradient(145deg, rgba(20, 35, 55, 0.96), rgba(15, 28, 44, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}

.category-card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.category-card p {
  margin: 12px 0 16px;
  color: var(--muted);
}

.category-card .btn {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 767px) {
  .error-state {
    min-height: auto;
  }

  .error-actions .btn {
    width: 100%;
  }
}

.blog-list {
  display: grid;
  gap: 14px;
}

.post-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 18px;
}

.post-card h2,
.post-card h3 {
  margin: 0;
}

.post-meta {
  color: #8ea7bc;
  font-size: 0.92rem;
  margin-top: 6px;
}

.post-excerpt {
  margin-top: 10px;
  color: var(--muted);
}

.site-footer {
  margin-top: 70px;
  padding: 28px 0 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #030507;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #a6bdd2;
}

.footer-mini-nav {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.footer-mini-nav a:hover {
  color: var(--brand);
}

.hero-stack .container {
  display: grid;
  gap: 18px;
}

.hero-stack .hero-copy {
  max-width: none;
  margin: 0;
  text-align: left;
}

.hero-stack .hero-copy p {
  margin-left: 0;
  margin-right: 0;
}

.hero-stack .hero-copy h1 {
  max-width: 760px;
  margin: 0;
}

.hero-stack .hero-copy h1 .hero-title-line {
  display: block;
}

.hero-stack .hero-copy h1 .hero-title-line + .hero-title-line {
  margin-top: 0.14em;
}

.hero-title-line {
  display: block;
}

.hero-stack .hero-cta {
  justify-content: flex-start;
}

.hero-slider {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: calc(var(--radius) + 6px);
  min-height: clamp(220px, 36vw, 420px);
  background:
    linear-gradient(140deg, rgba(15, 54, 76, 0.92), rgba(14, 37, 56, 0.9)),
    radial-gradient(circle at 85% 8%, rgba(255, 155, 65, 0.2), transparent 38%);
  display: grid;
  align-items: end;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.hero-slider.has-image {
  min-height: 0;
  background: none;
  display: block;
}

.hero-slider-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center center;
}

.slider-shell {
  padding: clamp(18px, 4vw, 34px);
  background: linear-gradient(180deg, rgba(6, 14, 26, 0), rgba(6, 14, 26, 0.8));
}

.slider-kicker {
  margin: 0;
  color: #88dbe3;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 700;
}

.slider-shell h2 {
  margin: 10px 0 0;
  color: #ecf5ff;
  font-size: clamp(1.1rem, 2.6vw, 1.8rem);
}

.slider-shell p {
  margin: 10px 0 0;
  color: #afc3d8;
  max-width: 72ch;
}

.product-showcase {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.products-section .section-title,
.products-section .section-intro {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.products-section .product-showcase {
  max-width:  1080px;
  margin-left: 0;
  margin-right: 0;
}

.products-section .product-item {
  text-align: left;
}

.products-section .product-tag {
  display: inline-block;
  width: auto;
  margin-left: 0;
  margin-right: 0;
}

.product-item {
  background: linear-gradient(180deg, rgba(20, 35, 55, 0.96), rgba(14, 26, 42, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}

.product-tag {
  display: inline-block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #8fe6ed;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-item h3 {
  margin: 10px 0 0;
  font-size: 1.08rem;
}

.product-item p {
  margin: 9px 0 0;
  color: var(--muted);
}

.applications-section .section-title {
  margin-bottom: 18px;
}

.apps-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 28px;
  align-items: start;
  max-width: 1080px;
}

.apps-lead {
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.apps-lead h3 {
  margin: 0;
  font-size: 1.42rem;
  line-height: 1.3;
  max-width: 26ch;
}

.apps-lead p {
  margin: 14px 0 0;
  color: #b7cbdd;
  max-width: 44ch;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
}

.app-tile {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: transparent;
  padding: 13px 0 12px 16px;
  position: relative;
}

.app-tile::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #66d8e2;
  transform: translateY(-50%);
}

.app-tile h3 {
  margin: 0;
  font-size: 1.06rem;
  line-height: 1.35;
}

.trust-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
  gap: 34px;
  align-items: start;
  max-width: 1080px;
}

.trust-col {
  display: grid;
  gap: 10px;
}

.trust-group-label {
  margin: 0;
  color: #8ea6be;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 700;
}

.trust-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.trust-stats article {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0;
  padding: 16px 0 14px;
  background: transparent;
  min-height: 0;
  box-shadow: none;
}

.trust-stats article:last-child {
  border-bottom: 0;
}

.trust-stats strong {
  display: block;
  color: #8de5ec;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.trust-stats span {
  color: #a8bdcf;
  font-size: 0.99rem;
  line-height: 1.45;
}

.feature-list-compact {
  margin-top: 0;
  gap: 14px 26px;
}

.feature-list-compact li {
  min-height: 0;
  padding: 4px 0 16px 18px;
  background: transparent;
  box-shadow: inset 2px 0 0 rgba(120, 227, 236, 0.36);
  border: 0;
  border-radius: 0;
}

.feature-list-compact h3 {
  font-size: 1.2rem;
}

.feature-list-compact p {
  margin-top: 10px;
  font-size: 0.98rem;
}

.certificates-section .section-title {
  margin-bottom: 18px;
}

.cert-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 16px;
  align-items: stretch;
  max-width: 1080px;
}

.cert-summary ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.cert-summary li + li {
  margin-top: 6px;
}

.cert-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cert-media figure {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(18, 34, 52, 0.9);
}

.cert-media figcaption {
  color: #b4c7d8;
  font-size: 0.85rem;
  padding: 8px 10px 10px;
}

.cert-wide {
  grid-column: 1 / -1;
}

.home-link-matrix {
  display: grid;
  grid-template-columns: 0.2fr 0.2fr 0.3fr 0.3fr;
  gap: 24px 26px;
  align-items: start;
}

.home-link-group {
  min-width: 0;
}

.home-link-group-products {
  grid-column: 1 / span 2;
}

.home-link-group-office {
  grid-column: 3 / span 2;
}

.home-link-group-title {
  margin: 0 0 22px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #1d2d3e;
}

.home-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
}

.home-link-column {
  min-width: 0;
}

.home-link-column h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #d7e8f8;
}

.home-link-column a,
.home-link-column .home-contact-item {
  display: block;
  color: #8fa7c0;
  font-size: 0.98rem;
  margin-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 7px;
}

.home-link-column a:hover {
  color: #bdeff4;
}

.home-link-column a:last-child,
.home-link-column .home-contact-item:last-child {
  margin-bottom: 0;
}

.home-link-column-office .home-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  white-space: normal;
}

.home-contact-icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  color: #8fe6ed;
}

.home-contact-item span {
  min-width: 0;
  overflow-wrap: normal;
  word-break: normal;
  white-space: normal;
}

.home-link-column-office .home-contact-item[href^="mailto:"] span {
  white-space: nowrap;
  overflow-wrap: normal;
}

.chatwoot-trigger {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  min-height: 44px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #2bb3be;
  color: #061015;
  font: inherit;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.woot--bubble-holder,
.woot-widget-bubble {
  display: none !important;
}

.links-hub-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.links-hub {
  display: grid;
  grid-template-columns: 1.35fr 2fr;
  gap: 30px;
}

.links-intro {
  padding-right: 18px;
  border-right: 1px dashed rgba(255, 255, 255, 0.14);
}

.links-intro h2 {
  margin: 0;
  color: #f1f8ff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1;
}

.links-intro h2 span {
  color: #d8b15a;
}

.links-intro p {
  margin: 16px 0 0;
  color: #8fa8c0;
  max-width: 38ch;
  font-size: 1.02rem;
}

.links-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.links-col h3 {
  margin: 0 0 14px;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #d7e8f8;
}

.links-col a {
  display: block;
  color: #8fa7c0;
  font-size: 0.98rem;
  margin-bottom: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 7px;
}

.links-col a:hover {
  color: #bdeff4;
}

.links-col a:last-child {
  margin-bottom: 0;
}

/* Borderless visual pass: softer surfaces and cleaner navigation */
.site-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: #04060d;
}

.site-header::before {
  content: none;
}

.site-header .container {
  min-height: 70px;
  gap: 28px;
  justify-content: flex-start;
}

.primary-nav {
  margin-left: auto;
}

.primary-nav ul {
  gap: 30px;
}

.primary-nav li {
  display: inline-flex;
  align-items: center;
}

.primary-nav .current-menu-item > a::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff4b55;
  box-shadow: 0 0 0 3px rgba(255, 75, 85, 0.16);
  transform: translateY(-50%);
}

.primary-nav a {
  padding: 10px 0;
  border-radius: 0;
  background: transparent;
  color: #e7ecf4;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  position: relative;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 0;
  height: 1px;
  background: #78e3ec;
  transition: width 0.22s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  background: transparent;
  color: #ffffff;
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after {
  width: 100%;
}

.menu-toggle {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: transparent;
  color: #dce5ef;
}

.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 60px;
  height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  color: #edf3fb;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: lowercase;
  background: rgba(255, 255, 255, 0.05);
  transition: color 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
}

.lang-switch-btn:hover {
  color: #ffffff;
  background: rgba(120, 227, 236, 0.22);
}

.lang-caret {
  font-size: 0.66rem;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.lang-switch {
  position: relative;
}

.lang-switch-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 86px;
  padding: 6px;
  border-radius: 12px;
  background: #0a111a;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: none;
  z-index: 70;
}

.lang-switch.open .lang-switch-menu {
  display: block;
}

.lang-switch.open .lang-caret {
  transform: rotate(180deg);
}

.lang-option {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: lowercase;
  color: #c5cfdb;
}

.lang-option:hover,
.lang-option.is-active {
  background: rgba(120, 227, 236, 0.16);
  color: #ffffff;
}

.highlight {
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}

.hero-slider,
.card,
.feature-list li,
.media-grid figure,
.map-frame,
.info-panel,
.category-card,
.post-card,
.product-item,
.apps-lead,
.app-tile,
.trust-stats article,
.cert-summary,
.cert-media figure {
  border: 0;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.card,
.feature-list li,
.info-panel,
.post-card,
.product-item,
.app-tile,
.trust-stats article,
.cert-summary {
  background: #0a141f;
}

.media-grid figure,
.cert-media figure,
.map-frame {
  background: #09131d;
}

.btn-secondary,
.friend-links a {
  border: 0;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
}

.links-hub-section {
  border-top: 0;
}

/* Ultra-minimal rebalance: Applications + Why Choose Us */
.applications-section .apps-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 56px);
  align-items: stretch;
}

.applications-section .apps-lead {
  margin: 0;
  min-height: 220px;
  padding: 10px 0 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.applications-section .apps-lead h3 {
  margin: 0;
  max-width: 20ch;
  font-size: clamp(1.22rem, 1.9vw, 1.52rem);
  line-height: 1.32;
}

.applications-section .apps-lead p {
  margin: 14px 0 0;
  max-width: none;
  color: #9cb2c6;
}

.applications-section .apps-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 24px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.applications-section .app-tile {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 16px 0;
  position: static;
}

.applications-section .app-tile::before {
  content: none;
}

.applications-section .app-tile h3 {
  margin: 0;
  font-size: 1.01rem;
  font-weight: 600;
  line-height: 1.35;
  color: #dfe7f1;
}

.trust-section .trust-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 56px);
}

.trust-section .trust-col {
  gap: 0;
}

.trust-section .trust-group-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: #8da3b8;
}

.trust-section .trust-stats,
.trust-section .feature-list-compact {
  margin: 0;
  padding: 0;
}

.trust-section .trust-stats article,
.trust-section .feature-list-compact li {
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  padding: 16px 0;
}

.trust-section .trust-stats article:last-child,
.trust-section .feature-list-compact li:last-child {
  border-bottom: 0;
}

.trust-section .trust-stats strong {
  margin-bottom: 6px;
  font-size: clamp(1.62rem, 2.15vw, 2.22rem);
}

.trust-section .trust-stats span {
  font-size: 1rem;
  color: #9cb2c6;
}

.trust-section .feature-list-compact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.trust-section .feature-list-compact li {
  padding-left: 0;
}

.trust-section .feature-list-compact h3 {
  margin: 0;
  font-size: 1.08rem;
}

.trust-section .feature-list-compact p {
  margin: 8px 0 0;
  font-size: 0.97rem;
  color: #9cb2c6;
}

/* Three-section differentiation */
/* 1) Products: capsule cards with softened boundaries */
.products-section .product-showcase {
  gap: 12px;
}

.products-section .product-item {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 22px;
  box-shadow: none;
}

.products-section .product-item h3 {
  font-size: 1.04rem;
}

.products-section .product-item p {
  color: #9bb0c4;
}

/* 2) Applications: dotted line isolation */
.applications-section .apps-lead {
  border-top: 1px dotted rgba(255, 255, 255, 0.28);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}

.applications-section .apps-grid {
  border-top: 1px dotted rgba(255, 255, 255, 0.28);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}

.applications-section .app-tile {
  border-bottom: 1px dotted rgba(255, 255, 255, 0.24);
}

.applications-section .app-tile:nth-child(odd) {
  border-right: 1px dotted rgba(255, 255, 255, 0.18);
  padding-right: 14px;
}

.applications-section .app-tile:nth-child(even) {
  padding-left: 14px;
}

/* 3) Why Choose Us: alternate layout (metric grid + numbered strengths) */
.trust-section .trust-grid {
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
}

.trust-section .trust-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.trust-section .trust-stats article {
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.015);
}

.trust-section .feature-list-compact {
  counter-reset: trust-item;
  gap: 10px;
}

.trust-section .feature-list-compact li {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 14px 14px 13px 46px;
  background: rgba(255, 255, 255, 0.012);
}

.trust-section .feature-list-compact li::before {
  counter-increment: trust-item;
  content: counter(trust-item, decimal-leading-zero);
  position: absolute;
  left: 14px;
  top: 14px;
  color: #7fdfe8;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 700;
}

/* Final layout pass requested by user */
.applications-section .apps-layout {
  grid-template-columns: 1fr;
  gap: 16px;
}

.applications-section .apps-lead {
  min-height: 0;
  max-width: 72ch;
  border-top: 1px dotted rgba(255, 255, 255, 0.24);
  border-bottom: 0;
  padding: 16px 0 2px;
}

.applications-section .apps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px dotted rgba(255, 255, 255, 0.22);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
}

.applications-section .app-tile {
  border-right: 1px dotted rgba(255, 255, 255, 0.2);
  border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
  padding: 15px 12px;
}

.applications-section .app-tile:nth-child(3n) {
  border-right: 0;
}

.applications-section .app-tile:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.trust-section .trust-grid-3 {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-section .trust-card {
  border: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 14px;
  padding: 15px 15px 14px;
  background: rgba(255, 255, 255, 0.012);
}

.trust-section .trust-card h3 {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.35;
}

.trust-section .trust-card p {
  margin: 9px 0 0;
  color: #9cb2c6;
  font-size: 0.95rem;
  line-height: 1.48;
}

/* Stack Certificates + Contact vertically, and remove unnecessary pills */
.certificates-section .cert-layout {
  grid-template-columns: 1fr;
  gap: 22px;
}

.certificates-section .cert-summary {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.certificates-section .cert-summary ul {
  color: #9cb2c6;
}

.certificates-section .cert-media {
  gap: 14px;
}

.certificates-section .cert-media figure {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
}

.certificates-section .cert-media figcaption {
  color: #90a7bd;
  padding: 8px 2px 0;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

@media (max-width: 1024px) {
  .hero-wrap,
  .grid-3,
  .quality-wrap,
  .category-grid,
  .product-showcase,
  .apps-layout,
  .trust-grid,
  .cert-layout,
  .links-hub,
  .links-columns {
    grid-template-columns: 1fr;
  }

  .badge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cert-media {
    grid-template-columns: 1fr;
  }

  .cert-wide {
    grid-column: auto;
  }

  .trust-col {
    gap: 10px;
  }

  .trust-stats {
    grid-template-columns: 1fr;
  }

  .feature-list-compact li {
    min-height: 0;
  }

  .applications-section .apps-layout,
  .trust-section .trust-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .trust-section .trust-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .applications-section .apps-lead {
    min-height: 0;
  }

  .links-intro {
    border-right: 0;
    padding-right: 0;
  }

  .applications-section .app-tile:nth-child(odd) {
    border-right: 0;
    padding-right: 0;
  }

  .applications-section .app-tile:nth-child(even) {
    padding-left: 0;
  }
}

@media (max-width: 800px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .primary-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #04060d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px 4vw 16px;
    display: none;
    margin-left: 0;
  }

  .primary-nav.open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .primary-nav li {
    display: block;
  }

  .primary-nav .current-menu-item > a::before {
    display: none;
  }

  .primary-nav a {
    border-radius: 0;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .primary-nav a::after {
    bottom: 8px;
  }

  .menu-toggle {
    margin-left: auto;
  }

  .section {
    padding: 60px 0;
  }

  .hero {
    padding-top: 60px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .applications-section .apps-grid {
    grid-template-columns: 1fr;
  }

  .applications-section .app-tile {
    border-right: 0;
  }

  .applications-section .app-tile:nth-last-child(-n + 3) {
    border-bottom: 1px dotted rgba(255, 255, 255, 0.2);
  }

  .applications-section .app-tile:last-child {
    border-bottom: 0;
  }

  .trust-section .trust-grid-3 {
    grid-template-columns: 1fr;
  }

  .applications-section .apps-lead {
    border-top: 0;
    padding-top: 0;
  }

  .applications-section .apps-grid {
    grid-template-columns: 1fr;
    border-top: 0;
    padding-top: 0;
  }
}

@media (max-width: 782px) {
  .admin-bar .site-header {
    top: 46px;
  }

  body.admin-bar {
    padding-top: 116px;
  }
}

@media (max-width: 560px) {
  .badge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .media-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 8px 0 0;
  }

  .trust-stats {
    grid-template-columns: 1fr;
  }

  .links-col a {
    margin-bottom: 9px;
  }

  .btn {
    width: 100%;
  }
}

/* Unified light-theme baseline (no separate override dependency) */
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #1a2432;
  --muted: #5f7288;
  --brand: #0e7f9e;
  --brand-2: #d8b15a;
  --line: rgba(31, 54, 83, 0.14);
  --shadow: 0 12px 28px rgba(18, 43, 74, 0.08);
  --ink-strong: #1d2d3e;
  --muted-strong: #4f647c;
}

body {
  background: radial-gradient(circle at 0 0, #ffffff 0%, #f5f7fb 38%, #eef2f8 100%);
  color: var(--ink);
}

.site-header {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(28, 56, 88, 0.12);
  backdrop-filter: blur(8px);
}

.site-brand {
  color: #1b2939;
}

.site-brand-main {
  color: #1d2d3e;
}

.site-brand-accent {
  color: #c8a14a;
}

.site-logo-placeholder {
  border-color: rgba(44, 78, 116, 0.28);
  color: #6f8399;
  background: rgba(255, 255, 255, 0.8);
}

.primary-nav a {
  color: #2c3f55;
}

.primary-nav .current-menu-item > a::before {
  background: #d95454;
  box-shadow: 0 0 0 3px rgba(217, 84, 84, 0.14);
}

.primary-nav a::after {
  background: #0e7f9e;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: #0e7f9e;
}

.lang-switch-btn {
  color: #274059;
  background: rgba(14, 127, 158, 0.1);
}

.lang-switch-btn:hover {
  color: #0f6f8a;
  background: rgba(14, 127, 158, 0.18);
}

.lang-switch-menu {
  background: #ffffff;
  border-color: rgba(28, 56, 88, 0.16);
  box-shadow: 0 12px 30px rgba(16, 42, 75, 0.12);
}

.lang-option {
  color: #3f566f;
}

.lang-option:hover,
.lang-option.is-active {
  background: rgba(14, 127, 158, 0.12);
  color: #0e7f9e;
}

.section-title,
.hero-copy h1,
.apps-lead h3,
.trust-card h3,
.product-item h3,
.card h3,
.links-intro h2 {
  color: var(--ink-strong);
}

.section-intro,
.hero-copy p,
.product-item p,
.apps-lead p,
.trust-card p,
.card p,
.page-head p,
.links-intro p,
.post-excerpt,
.post-meta,
.info-panel p {
  color: #60758d;
  overflow-wrap: anywhere;
}

.card,
.product-item,
.post-card,
.category-card,
.info-panel,
.trust-card,
.map-frame,
.cert-media figure,
.media-grid figure {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(25, 53, 83, 0.1);
  box-shadow: 0 10px 24px rgba(16, 42, 73, 0.08);
}

.product-tag,
.trust-stats strong,
.feature-list-compact li::before {
  color: #0e7f9e;
}

.app-tile,
.applications-section .app-tile {
  border-color: rgba(35, 64, 96, 0.2);
}

.applications-section .apps-lead,
.applications-section .apps-grid {
  border-top-color: rgba(35, 64, 96, 0.2);
  border-bottom-color: rgba(35, 64, 96, 0.2);
}

.highlight,
.links-hub-section {
  background: transparent;
  border-top-color: rgba(35, 64, 96, 0.12);
  border-bottom-color: rgba(35, 64, 96, 0.12);
}

.links-intro {
  border-right-color: rgba(35, 64, 96, 0.18);
}

.links-col h3 {
  color: #3c5672;
}

.links-col a {
  color: #49627d;
  border-bottom-color: rgba(35, 64, 96, 0.16);
}

.links-col a:hover {
  color: #0e7f9e;
}

.site-footer {
  background: #f0f4fa;
  border-top: 1px solid rgba(29, 57, 89, 0.14);
}

.site-footer .container {
  color: #5f7388;
}

main :where(h1, h2, h3, h4, h5, h6),
.section-title,
.hero-copy h1,
.applications-section .app-tile h3,
.links-col h3,
.site-main .post-title,
.site-main .entry-title {
  color: var(--ink-strong);
}

main :where(p, li, dd, dt, small),
.section-intro,
.hero-copy p,
.apps-lead p,
.trust-card p,
.product-item p,
.post-excerpt,
.post-meta,
.page-head p,
.info-panel p,
.certificates-section .cert-summary ul,
.certificates-section .cert-media figcaption,
.trust-section .trust-group-label,
.trust-section .trust-stats span,
.trust-section .feature-list-compact p,
.products-section .product-item p,
.contact-section .info-panel p {
  color: var(--muted-strong);
}

.links-col a,
.site-main a:not(.btn):not(.lang-switch-btn):not(.lang-option) {
  color: #36516d;
}

.links-col a:hover,
.site-main a:not(.btn):not(.lang-switch-btn):not(.lang-option):hover {
  color: #0e7f9e;
}

@media (max-width: 1024px) {
  .home-link-matrix {
    grid-template-columns: 1fr;
  }

  .home-link-grid {
    gap: 0 20px;
  }

  .home-link-group-products,
  .home-link-group-office {
    grid-column: auto;
  }

  .home-link-column-office .home-contact-item[href^="mailto:"] span {
    white-space: normal;
  }

  .home-link-column-office .home-contact-item {
    white-space: normal;
  }
}

@media (max-width: 800px) {
  .primary-nav {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(29, 57, 89, 0.14);
  }

  .primary-nav a {
    border-bottom-color: rgba(29, 57, 89, 0.12);
  }
}
