/*
Theme Name: China Dental Lab
Theme URI: https://www.chinadentallab.local/
Author: China Dental Lab
Author URI: https://www.chinadentallab.local/
Description: Classic WordPress theme converted from the tes11 static Nova Dental Lab files.
Version: 1.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: chinadentallab
*/

:root {
  --navy: #0d3248;
  --teal: #0f8b96;
  --ink: #17364a;
  --muted: #617985;
  --line: #cbdde0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "DM Sans", Arial, "Microsoft YaHei", sans-serif;
  overflow-x: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

h1,
h2,
h3,
.serif {
  font-family: Newsreader, Georgia, serif;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

p,
h1,
h2,
h3,
blockquote {
  margin-top: 0;
}

.eyebrow {
  color: var(--teal);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.btn-primary {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: #fff;
  padding: 0.8rem 1.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.btn-primary:hover {
  background: #0a717b;
  transform: translateY(-2px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #9fbdc5;
  color: var(--navy);
  padding: 0.76rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #eef8f8;
}

.placeholder {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #d9f0f0, #8ccbd0);
  color: #fff;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.placeholder::after {
  content: "";
  position: absolute;
  right: -20%;
  top: -18%;
  width: 65%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
}

.site-photo {
  position: relative;
  overflow: hidden;
  background: #d9e8eb;
}

.site-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-photo--hero img {
  object-position: center;
}

.site-photo--wide img {
  object-position: center;
}

.group .site-photo img {
  transition: transform 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.group:hover .site-photo img {
  transform: scale(1.025);
}

.contact-photo {
  margin-inline: 0;
  margin-bottom: 0;
}

.nav-link {
  color: #426273;
  font-size: 0.75rem;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  color: var(--teal);
}

.stat {
  border-left: 1px solid #cbe2e6;
  padding-left: 1rem;
}

.filter-btn {
  border: 1px solid #c5dce0;
  color: #476773;
  padding: 0.55rem 0.8rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}

.faq-a {
  display: none;
}

.faq-q[aria-expanded="true"] + .faq-a {
  display: block;
}

.article.hidden,
.product-panel.hidden,
.hidden {
  display: none;
}

.input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0.8rem;
  font-size: 0.85rem;
  outline-color: var(--teal);
}

.notice {
  display: none;
}

.notice.show {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.site-header {
  position: relative;
  z-index: 30;
  background: #fff;
  border-bottom: 1px solid #e5eff1;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1280px;
  margin: auto;
  padding: 0 20px;
}

.site-brand {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
}

.site-brand span {
  color: var(--teal);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.products-dropdown {
  position: relative;
  display: flex;
  align-self: stretch;
  align-items: center;
  padding: 0;
}

.products-dropdown > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.chevron {
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-0.08rem) rotate(45deg);
}

.products-mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 70;
  width: 780px;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #d9e8eb;
  box-shadow: 0 18px 40px rgba(13, 50, 72, 0.14);
  transform: translateX(-50%);
}

.products-dropdown:hover .products-mega-menu,
.products-dropdown:focus-within .products-mega-menu {
  display: grid;
}

.products-mega-menu section {
  min-width: 0;
}

.products-mega-menu b {
  display: block;
  color: var(--navy);
  font-size: 0.75rem;
  margin-bottom: 0.7rem;
}

.products-mega-menu a {
  display: block;
  color: #5b7480;
  font-size: 0.72rem;
  padding: 0.35rem 0;
}

.products-mega-menu a:hover {
  color: var(--teal);
}

.header-cta,
.mobile-quote {
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.8rem 1rem;
}

.search-toggle {
  background: transparent;
  border: 0;
  color: var(--navy);
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.35rem;
}

.mobile-toggle {
  display: none;
  border: 0;
  background: transparent;
  width: 44px;
  height: 44px;
  padding: 10px;
  cursor: pointer;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

.search-form {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 60;
  align-items: center;
  gap: 0.75rem;
  background: var(--navy);
  padding: 1rem max(20px, calc((100% - 1280px) / 2));
}

.search-form.open {
  display: flex;
  animation: slide-down 0.22s ease;
}

.search-form input {
  flex: 1;
  min-width: 0;
  border: 0;
  padding: 0.85rem 1rem;
}

.search-form button {
  border: 1px solid #74d2d0;
  background: transparent;
  color: #fff;
  padding: 0.82rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
}

.mobile-panel,
.mobile-search-toggle {
  display: none;
}

.site-footer-main {
  background: var(--navy);
  color: #cbd5e1;
}

.footer-primary,
.footer-bottom {
  width: min(100% - 2.5rem, 1280px);
  margin-inline: auto;
}

.footer-primary {
  display: grid;
  grid-template-columns: minmax(16rem, 1.65fr) repeat(3, minmax(9rem, 1fr));
  gap: clamp(2.5rem, 5vw, 5rem);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}

.footer-brand {
  max-width: 25rem;
}

.footer-logo {
  display: inline-block;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.footer-logo span {
  color: #72d5d1;
}

.footer-description {
  max-width: 38ch;
  margin-top: 1.25rem;
  color: #a9bdc8;
  font-size: 0.86rem;
  line-height: 1.75;
}

.footer-email {
  display: inline-block;
  margin-top: 1rem;
  color: #72d5d1;
  font-size: 0.82rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-email:hover {
  color: #fff;
}

.footer-follow {
  margin-top: 2rem;
}

.footer-heading {
  margin: 0 0 1.2rem;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid rgba(151, 191, 202, 0.25);
  color: #9eb3be;
  font-size: 0.7rem;
}

.footer-social svg {
  width: 0.95rem;
  height: 0.95rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.footer-social:first-child svg {
  fill: currentColor;
  stroke: none;
}

.footer-social .footer-icon-fill {
  fill: currentColor;
  stroke: none;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-link,
.footer-unavailable {
  display: inline-flex;
  align-items: center;
  color: #a9bdc8;
  font-size: 0.79rem;
  line-height: 1.5;
}

.footer-link {
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
  color: #72d5d1;
  transform: translateX(0.2rem);
}

.footer-link:focus-visible,
.footer-email:focus-visible,
.footer-logo:focus-visible {
  border-radius: 0.1rem;
  outline: 2px solid #72d5d1;
  outline-offset: 4px;
}

.footer-unavailable {
  color: #718b98;
  cursor: default;
}

.footer-unavailable small {
  margin-left: 0.45rem;
  color: #72a5ad;
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
  border-top: 1px solid rgba(151, 191, 202, 0.18);
  color: #79929f;
  font-size: 0.7rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom .footer-unavailable {
  font-size: inherit;
}

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

  .footer-brand {
    max-width: 32rem;
  }
}

@media (max-width: 600px) {
  .footer-primary,
  .footer-bottom {
    width: min(100% - 2.5rem, 1280px);
  }

  .footer-primary {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-block: 3.5rem;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1.35rem;
  }

  .footer-legal {
    flex-wrap: wrap;
    gap: 0.7rem 1.25rem;
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Static utility subset from the original Tailwind layout. */
.bg-white { background: #fff; }
.bg-\[\#f0f9fa\] { background: #f0f9fa; }
.bg-\[\#0d3248\] { background: #0d3248; }
.bg-\[\#24677a\] { background: #24677a; }
.bg-\[\#286b7e\] { background: #286b7e; }
.bg-\[\#73aeb6\] { background: #73aeb6; }
.bg-\[\#537f89\] { background: #537f89; }
.bg-\[\#679fa9\] { background: #679fa9; }
.bg-\[\#4e7e89\] { background: #4e7e89; }
.bg-green-100 { background: #dcfce7; }
.text-white { color: #fff; }
.text-slate-300 { color: #cbd5e1; }
.text-green-800 { color: #166534; }
.text-red-600 { color: #dc2626; }
.text-\[\#617985\] { color: #617985; }
.text-\[\#0f8b96\] { color: #0f8b96; }
.text-\[\#72d5d1\] { color: #72d5d1; }
.max-w-7xl { max-width: 80rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-xl { max-width: 36rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.p-3 { padding: 0.75rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.pb-5 { padding-bottom: 1.25rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-7 { margin-top: 1.75rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }
.mb-4 { margin-bottom: 1rem; }
.grid { display: grid; }
.flex { display: flex; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-10 { gap: 2.5rem; }
.gap-14 { gap: 3.5rem; }
.min-h-\[570px\] { min-height: 570px; }
.min-h-\[340px\] { min-height: 340px; }
.aspect-\[5\/4\] { aspect-ratio: 5 / 4; }
.aspect-\[4\/3\] { aspect-ratio: 4 / 3; }
.aspect-\[5\/3\] { aspect-ratio: 5 / 3; }
.aspect-square { aspect-ratio: 1; }
.rounded-sm { border-radius: 0.125rem; }
.border { border: 1px solid #e5e7eb; }
.border-2 { border-width: 2px; border-style: solid; }
.border-dashed { border-style: dashed; }
.border-\[\#9acbd0\] { border-color: #9acbd0; }
.divide-y > * + * { border-top: 1px solid #e5e7eb; }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.font-bold { font-weight: 700; }
.leading-7 { line-height: 1.75rem; }
.leading-\[\.95\] { line-height: 0.95; }
.w-full { width: 100%; }
.w-max { width: max-content; }
.space-y-7 > * + * { margin-top: 1.75rem; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:block { display: block; }
  .md\:flex-row { flex-direction: row; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
  .md\:p-10 { padding: 2.5rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-\[\.8fr_1\.2fr\] { grid-template-columns: 0.8fr 1.2fr; }
  .lg\:p-16 { padding: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

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

@media (max-width: 767px) {
  .desktop-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .mobile-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 50;
    background: #fff;
    box-shadow: 0 14px 30px rgba(13, 50, 72, 0.14);
    padding: 0 1.25rem 1.25rem;
  }

  .mobile-panel.open {
    display: block;
    animation: slide-down 0.22s ease;
  }

  .mobile-nav-link {
    display: block;
    padding: 1rem 0;
    border-bottom: 1px solid #e3eff1;
    color: var(--navy);
    font-size: 0.85rem;
    font-weight: 700;
  }

  .mobile-nav-link.active {
    color: var(--teal);
  }

  .mobile-search-toggle {
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid #e3eff1;
    background: transparent;
    color: var(--navy);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 1rem 0;
    text-align: left;
  }

  .mobile-quote {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-top: 1.25rem;
  }

  .search-form {
    padding: 1rem 1.25rem;
  }

  .search-form button {
    padding: 0.82rem 0.7rem;
  }

  .hero-copy {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 11vw, 3.25rem);
    line-height: 1;
  }

  .hero-copy + .placeholder {
    min-height: 260px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .stat {
    border-left: 0;
    border-top: 1px solid #cbe2e6;
    padding: 1rem 0;
  }

  h2.text-4xl {
    font-size: 2.15rem;
    line-height: 1.05;
  }
}
