/*
Theme Name: HUIAN WELLTECH
Theme URI: https://huianwelltech.com/
Description: Theme for the standalone HUIAN WELLTECH international website.
Version: 0.4.1
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: huian-welltech
*/
/* Catalog layouts and quote form */
  .welltech-page-hero { background: #102530; color: #fff; padding: clamp(2.6rem, 7vw, 6rem) 0; }
  .welltech-page-hero h1 { max-width: 24ch; margin: .85rem 0 0; font-size: clamp(2.4rem, 6vw, 4.55rem); line-height: 1.04; text-wrap: balance; }
  .welltech-page-hero p { max-width: 54ch; margin-top: 1.15rem; color: #dae8e5; font-size: clamp(1rem, 2vw, 1.25rem); }
  .welltech-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .88rem; color: #dce9e5; }
  .welltech-crumbs a { text-underline-offset: .25em; }
  .welltech-prose { max-width: 70ch; }
  .welltech-prose h2 + p, .welltech-prose h2 + ul, .welltech-prose p + p { margin-top: .7rem; }
  .welltech-prose h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); }
  .welltech-prose h2:not(:first-child) { margin-top: 1.7rem; }
  .welltech-prose a { color: #196258; text-underline-offset: .23em; }
  .welltech-page-actions { margin-top: 1.7rem; }
  .welltech-heading { margin: 0 0 1rem; }
  .welltech-prose:not(:empty) + .welltech-heading, .welltech-note + .welltech-heading { margin-top: 1.65rem; }
  .category.equipment-category { text-decoration: none; min-height: 10rem; padding: 1.2rem 1rem; }
  .category.equipment-category:hover, .category.equipment-category:focus-visible { background: #edf4ef; }
  .featured-card.equipment-series { display: block; padding: 1rem 0 1.25rem; }
  .equipment-series h2 { font-size: 1.25rem; margin-bottom: .65rem; }
  .equipment-series h3 a, .equipment-series h2 a { text-decoration: none; }
  .equipment-series h3 a:hover, .equipment-series h2 a:hover { text-decoration: underline; text-underline-offset: .2em; }
  .equipment-series .text-action { display: inline-block; margin-top: .65rem; font-size: .85rem; }
  .welltech-note { padding: .85rem 1rem; margin: 0 0 1.2rem; background: #edf4ef; border-left: 3px solid #196258; max-width: 47rem; }
  .welltech-models { max-width: 47rem; }
  .welltech-model { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem 1.25rem; padding: .75rem 0; border-bottom: 1px solid #d7e2df; }
  .welltech-product-photo { max-width: 45rem; margin: 0 0 1.25rem; }
  .welltech-product-photo img { width: 100%; height: auto; }
  .welltech-quote { max-width: 47rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.15rem; }
  .welltech-quote label { display: block; font-size: .92rem; font-weight: 650; margin-bottom: .35rem; }
  .welltech-quote :is(input, select, textarea) { width: 100%; border: 1px solid #9db5af; min-height: 45px; padding: .5rem .65rem; color: #102530; background: #fff; border-radius: 3px; }
  .nav-quote { text-transform: uppercase; }
  .nav [aria-current="page"] { text-decoration: underline; text-underline-offset: .3em; }
  .screen-reader-text { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); white-space: nowrap; }
  @media (max-width: 600px) { .welltech-quote { grid-template-columns: minmax(0, 1fr); } }
:root {
    --navy: #102530;
    --deep: #0a1c25;
    --teal: #196258;
    --mint: #bce4d7;
    --cream: #f2f6f4;
    --ink: #152c34;
    --body: #496069;
    --line: #d7e2df;
    --gold: #c8a66a;
    --max: 1280px;
    color: var(--ink);
    background: #fff;
    font-family: "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
  }
  *, *::before, *::after { box-sizing: border-box; }
  body { margin: 0; line-height: 1.55; }
  a { color: inherit; }
  button, input, select, textarea { font: inherit; }
  button, summary { cursor: pointer; }
  :focus-visible { outline: 3px solid #bb7b25; outline-offset: 4px; }
  :where(h1, h2, h3, p, ul, figure) { margin: 0; }
  :where(h1, h2, h3) { line-height: 1.13; }
  h1, h2 { letter-spacing: -.045em; }
  h3 { letter-spacing: -.02em; }
  h2 { font-size: clamp(2rem, 4vw, 3.45rem); font-weight: 650; }
  h3 { font-size: 1.16rem; font-weight: 650; }
  section[id] { scroll-margin-top: 1.25rem; }
  .wrap { width: min(var(--max), calc(100% - 5rem)); margin-inline: auto; }
  .section { padding-block: clamp(3.7rem, 7vw, 7rem); }
  .muted { color: var(--body); }
  .section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.25rem; }
  .section-head p { max-width: 35ch; color: var(--body); }
  .skip { position: fixed; left: 1rem; top: 1rem; z-index: 20; background: white; padding: .8rem; transform: translateY(-200%); }
  .skip:focus { transform: translateY(0); }
  .button {
    min-height: 47px; display: inline-flex; align-items: center; justify-content: center;
    gap: .4rem; padding: .65rem 1.05rem; border: 1px solid transparent; border-radius: 4px;
    font-size: .925rem; font-weight: 660; text-decoration: none; text-align: center;
    background: var(--teal); color: #fff;
  }
  .button:hover { background: #124e46; }
  .button--light { background: var(--mint); color: #112f29; }
  .button--light:hover { background: #d0f1e7; }
  .button--outline { background: transparent; border-color: #66808c; color: white; }
  .button--outline:hover { background: #213d49; }
  .button--plain { background: #fff; border-color: var(--line); color: var(--teal); }
  .button--plain:hover { background: var(--cream); }
  .actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
  .text-action { padding: 0; border: 0; background: transparent; color: var(--teal); font-weight: 660; text-decoration: underline; text-underline-offset: .28em; }
  .text-action:hover { color: var(--navy); }
  .preview-strip { min-height: 33px; display: flex; align-items: center; text-align: center; background: var(--cream); color: #3f595c; font-size: .82rem; }
  .masthead { position: relative; z-index: 2; background: #fff; }
  .masthead-inner { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
  .brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .68rem; text-decoration: none; font-size: .98rem; line-height: 1.1; font-weight: 720; }
  .brand-mark { width: 33px; height: 33px; border: 1px solid #559186; position: relative; border-radius: 3px; }
  .brand-mark::before, .brand-mark::after { content: ""; position: absolute; bottom: 7px; width: 6px; background: #327a6f; }
  .brand-mark::before { height: 11px; left: 8px; }
  .brand-mark::after { height: 17px; right: 8px; }
  .nav { display: flex; align-items: center; gap: clamp(.65rem, 1.35vw, 1.25rem); }
  .nav a, .nav summary, .nav-button { font-size: .875rem; text-decoration: none; font-weight: 600; }
  .nav a:hover, .nav summary:hover, .nav-button:hover { color: var(--teal); text-decoration: underline; text-underline-offset: .3em; }
  .nav-button { color: inherit; background: none; border: 0; padding: 0; text-align: left; }
  .nav-products { position: relative; }
  .nav-products > summary { display: flex; align-items: center; gap: .45rem; list-style: none; }
  .nav-products > summary::-webkit-details-marker { display: none; }
  .nav-products > summary::after { content: ""; width: .42rem; height: .42rem; border: solid currentColor; border-width: 0 1px 1px 0; transform: translateY(-2px) rotate(45deg); }
  .nav-products[open] > summary::after { transform: translateY(2px) rotate(225deg); }
  .product-menu { display: grid; position: absolute; top: calc(100% + 1.3rem); left: -1rem; width: 19rem; background: #fff; padding: .75rem; border: 1px solid var(--line); border-radius: 4px; box-shadow: 0 12px 28px #0b202020; }
  .product-menu a { padding: .55rem .65rem; }
  .mobile-trigger { display: none; }
  .nav-quote { white-space: nowrap; font-size: .8rem; }
  .hero { background: var(--navy); color: white; padding: clamp(3.2rem, 6.7vw, 6.15rem) 0; }
  .hero-grid { display: grid; grid-template-columns: 1.06fr 1fr; align-items: center; gap: clamp(2rem, 5vw, 5.4rem); }
  .hero h1 { font-size: clamp(2.65rem, 4.5vw, 4rem); font-weight: 650; line-height: 1.07; text-wrap: balance; }
  .hero p { margin-top: 1.4rem; color: #cfddd9; font-size: clamp(1.02rem, 1.5vw, 1.22rem); max-width: 32ch; }
  .hero .actions { margin-top: 1.9rem; }
  .hero-media { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; padding: .75rem; border: 1px solid #59727a; border-radius: 7px; }
  .hero-media figcaption { grid-column: 1 / -1; padding: .42rem .4rem .15rem; color: #cfddd9; font-size: .875rem; }
  .slot {
    display: grid; align-content: center; justify-items: center; text-align: center; gap: .65rem;
    min-width: 0; padding: .7rem; border: 1px solid #d8e4e0; border-radius: 3px;
    color: #45615d; background-color: #edf3f1;
    background-image: linear-gradient(90deg, #dce8e43d 1px, transparent 1px), linear-gradient(#dce8e43d 1px, transparent 1px);
    background-size: 16px 16px;
    font-size: .84rem;
  }
  .hero-media .slot { min-height: clamp(104px, 12vw, 170px); background-color: #1b3540; background-image: linear-gradient(90deg, #74969826 1px, transparent 1px), linear-gradient(#74969826 1px, transparent 1px); color: #e4eeec; border-color: #45646c; }
  .photo-mark { position: relative; width: 1.8rem; height: 1.35rem; border: 1px solid currentColor; border-radius: 2px; opacity: .66; }
  .photo-mark::before { content: ""; position: absolute; width: .45rem; height: .45rem; top: .21rem; right: .21rem; border: 1px solid currentColor; border-radius: 50%; }
  .photo-mark::after { content: ""; position: absolute; width: .62rem; height: .62rem; border: solid currentColor; border-width: 1px 0 0 1px; bottom: .05rem; left: .25rem; transform: rotate(45deg); }
  .category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
  .category { display: flex; flex-direction: column; gap: .8rem; padding: .65rem .65rem 1rem; border: 1px solid var(--line); border-radius: 5px; }
  .category .slot { aspect-ratio: 16 / 8.4; }
  .category h3, .category p, .category .text-action { margin-inline: .35rem; }
  .category p { color: var(--body); font-size: .935rem; margin-bottom: .25rem; }
  .category .text-action { align-self: start; margin-top: auto; }
  .tint { background: var(--cream); }
  .featured-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
  .featured-card { display: grid; grid-template-columns: 29% 1fr; gap: clamp(.9rem, 2vw, 1.5rem); align-items: center; background: #fff; padding: .65rem 1rem .65rem .65rem; border: 1px solid var(--line); border-radius: 5px; }
  .featured-card .slot { min-height: 114px; text-wrap: balance; }
  .featured-card h3 { font-size: clamp(1.02rem, 1.6vw, 1.25rem); margin: .15rem 0 .55rem; }
  .featured-card p { font-size: .84rem; color: var(--body); }
  .split { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
  .split-intro p, .oem p, .quality p { max-width: 39ch; margin: 1rem 0 1.4rem; }
  .tech-list { border-top: 1px solid var(--line); }
  .tech-row { padding: 1rem .2rem; display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; align-items: center; border-bottom: 1px solid var(--line); }
  .tech-row p { font-size: .94rem; color: var(--body); margin-top: .3rem; }
  .tech-row .text-action { white-space: nowrap; font-size: .875rem; }
  .applications { background: #e8f1ed; }
  .application-list, .capability-list { padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.3rem; }
  .application-list li, .capability-list li { min-height: 51px; display: flex; align-items: center; gap: .65rem; border-bottom: 1px solid #cadad5; font-weight: 600; }
  .application-list li::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--teal); flex: 0 0 auto; }
  .oem { background: var(--navy); color: white; }
  .oem p { color: #cfddd9; }
  .oem .capability-list li { border-color: #435c65; }
  .oem .capability-list li::before { content: ""; width: 11px; height: 1px; background: var(--gold); flex: 0 0 auto; }
  .quality .capability-list li { font-weight: 590; }
  .cta { background: #dcece6; padding-block: clamp(3.2rem, 5.5vw, 5.4rem); }
  .cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem 2.5rem; }
  .cta h2 { max-width: 24ch; }
  .cta p { margin-top: 1rem; color: #3c5355; }
  .cta .button { flex: 0 0 auto; }
  footer { color: #e0e9e6; background: var(--deep); padding: 2.5rem 0; }
  .footer-grid { display: flex; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap; }
  .footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; }
  .footer-links a, .footer-links button { color: #d1dedb; font-size: .9rem; }
  .footer-links a:hover, .footer-links button:hover { color: white; }
  dialog { width: min(640px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); padding: 0; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); }
  dialog::backdrop { background: #0c1d28b5; }
  .dialog-head { display: flex; align-items: center; justify-content: flex-end; padding: .65rem .85rem 0; }
  .close { height: 40px; min-width: 40px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; font-size: 1.25rem; }
  .dialog-content { padding: .35rem clamp(1rem, 4vw, 2rem) 2rem; }
  .dialog-content h2 { font-size: clamp(1.65rem, 4.2vw, 2.45rem); margin-bottom: .8rem; }
  .dialog-content p + p { margin-top: .7rem; }
  .dialog-content .actions { margin-top: 1.25rem; }
  .dialog-list { display: grid; gap: .75rem; padding: 0; list-style: none; margin: 1rem 0; }
  .dialog-list li { padding: .8rem; border: 1px solid var(--line); border-radius: 4px; }
  .dialog-list button { text-align: left; }
  .models { padding-left: 1.15rem; margin: .75rem 0 1rem; }
  .quote-note { padding: .67rem .85rem; margin-bottom: 1rem; background: var(--cream); color: var(--body); border-radius: 4px; }
  .quote-fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
  .quote-fields label { display: grid; gap: .35rem; font-weight: 600; font-size: .93rem; }
  .quote-fields input, .quote-fields select, .quote-fields textarea { min-width: 0; width: 100%; min-height: 43px; color: var(--ink); background: #fff; border: 1px solid #b3c7c2; border-radius: 4px; padding: .45rem .6rem; }
  .quote-fields textarea { resize: vertical; }
  .wide { grid-column: 1 / -1; }
  .form-result { margin-top: 1rem; color: var(--teal); }
  @media (max-width: 1320px) {
    .masthead-inner { min-height: 68px; }
    .mobile-trigger { display: inline-flex; margin-left: auto; }
    .nav { display: none; position: absolute; top: 100%; right: 2.5rem; left: 2.5rem; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: .5rem 1rem; box-shadow: 0 12px 28px #0b202020; max-height: 72dvh; overflow: auto; }
    .nav[data-open] { display: grid; gap: 0; }
    .nav > a, .nav > .nav-button, .nav-products > summary { display: flex; padding: .66rem .35rem; min-height: 44px; }
    .product-menu { position: static; width: auto; box-shadow: none; border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 0 .25rem; margin-left: .35rem; }
  }
  @media (max-width: 900px) {
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid { gap: 2rem; }
    .hero h1 { font-size: clamp(2.35rem, 6vw, 3.85rem); }
    .split { gap: 2rem; }
  }
  @media (max-width: 800px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero h1 { max-width: 19ch; }
  }
  @media (max-width: 680px) {
    .wrap { width: calc(100% - 2.25rem); }
    .masthead-inner { gap: .55rem; }
    .brand { gap: .38rem; font-size: .83rem; }
    .brand-mark { scale: .87; margin-left: -.15rem; }
    .mobile-trigger, .nav-quote { min-height: 41px; padding-inline: .58rem; font-size: .75rem; }
    .nav { right: 1.125rem; left: 1.125rem; }
    .split, .featured-grid { grid-template-columns: 1fr; }
    .hero h1 { max-width: 16ch; }
    .section-head, .cta .wrap { align-items: start; flex-direction: column; gap: .9rem; }
    .section-head { margin-bottom: 1.5rem; }
    .featured-card { grid-template-columns: 28% 1fr; }
    .featured-card .slot { min-height: 95px; }
  }
  @media (max-width: 400px) {
    .category-grid { grid-template-columns: 1fr; }
    .category .slot { aspect-ratio: 16 / 6.7; }
    .quote-fields { grid-template-columns: 1fr; }
    .capability-list, .application-list { column-gap: .75rem; }
  }
  @media (max-width: 350px) {
    .masthead-inner { gap: .4rem; }
    .masthead .brand { font-size: .78rem; gap: .18rem; }
    .masthead .brand-mark { width: 28px; height: 28px; }
    .masthead .brand-mark::before, .masthead .brand-mark::after { width: 5px; bottom: 5px; }
    .masthead .brand-mark::before { left: 6px; }
    .masthead .brand-mark::after { right: 6px; }
    .mobile-trigger, .nav-quote { padding-inline: .44rem; font-size: .71rem; }
  }

  :root { --body: #475653; --ink: #102530; --line: #d2d6ce; --cream: #f4f3ed; background: #fcfbf8; }
  body { background: #fcfbf8; }
  .preview-strip { min-height: 31px; border-bottom: 1px solid #dcded6; background: #eeeee8; }
  .masthead { position: sticky; top: 0; background: #fcfbf8; border-bottom: 1px solid var(--line); }
  .brand img { width: 130px; height: auto; display: block; }
  .masthead-inner { min-height: 86px; }
  .nav { gap: clamp(.58rem, 1.3vw, 1.19rem); }
  .button { border-radius: 0; min-height: 48px; }
  .nav-quote { background: transparent; border-color: var(--navy); color: var(--navy); }
  .nav-quote:hover { background: var(--navy); color: #fff; }
  .hero { background: #f8f7f1; color: var(--ink); padding: clamp(2.6rem, 5.4vw, 5.1rem) 0 clamp(2.3rem, 4.4vw, 4.2rem); border-bottom: 1px solid var(--line); }
  .hero-grid { grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 4vw, 4.3rem); }
  .hero h1 { font-size: clamp(2.7rem, 4.1vw, 4.1rem); line-height: 1.03; font-weight: 620; text-wrap: pretty; }
  .hero p { color: var(--body); }
  .hero .brand-tagline { margin: 0 0 1.35rem; color: var(--teal); font-size: .875rem; font-weight: 690; letter-spacing: .025em; max-width: none; }
  .hero .brand-tagline::before { content: ""; display: inline-block; vertical-align: .24em; margin-right: .65em; width: 1.75rem; border-bottom: 1px solid #9a7542; }
  .hero .button--light { background: var(--teal); color: #fff; }
  .hero .button--light:hover { background: #124e46; }
  .hero .button--outline { background: transparent; color: var(--ink); border-color: #8a9a90; }
  .hero .button--outline:hover { background: #e8eae0; }
  .hero-media { display: block; border: none; border-radius: 0; padding: 0; }
  .hero-frame { position: relative; aspect-ratio: 3 / 2; display: grid; place-content: center; overflow: hidden; background: #e1e3d9; }
  .hero-frame img { position: absolute; width: 100%; height: 100%; object-fit: cover; display: block; }
  .hero-frame p { margin: 0; }
  .hero-media figcaption { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); color: var(--body); padding: .65rem 0; }
  .hero-media details { text-align: right; }
  .hero-media summary { color: var(--teal); text-underline-offset: .2em; }
  .hero-media summary:hover { text-decoration: underline; }
  .hero-media ul { padding: .5rem 0 0; list-style: none; display: grid; gap: .15rem; }
  .hero-media li { color: var(--body); font-size: .8rem; }
  .slot { background: #efeee7; border: none; border-radius: 0; color: #53615c; font-size: .8rem; }
  .section { padding-block: clamp(3.4rem, 6vw, 5.8rem); }
  .section-head { border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; margin-bottom: 1.25rem; }
  h2 { font-weight: 610; }
  .category-grid { gap: 1.65rem 1rem; }
  .category { min-width: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 0 0 1rem; gap: .65rem; }
  .category .slot { aspect-ratio: 16 / 8; }
  .category h3, .category p, .category .text-action { margin-inline: 0; }
  .tint { background: #eeeee7; }
  .featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.3rem; }
  .featured-card { grid-template-columns: minmax(82px, .34fr) 1fr; align-content: start; gap: .85rem; background: transparent; padding: .9rem 0 1.15rem; border: 0; border-bottom: 1px solid #c8cec3; border-radius: 0; }
  .featured-card .slot { min-height: 88px; background: #e7e7df; }
  .featured-card h3 { font-size: 1.2rem; }
  .tech-row { border-bottom-color: var(--line); }
  .applications { background: #e9ede3; }
  .oem { background: #f0ede3; color: var(--navy); }
  .oem p { color: var(--body); }
  .oem .button--light { background: var(--teal); color: #fff; }
  .oem .capability-list li { border-color: #d3d1c4; }
  .cta { background: #e3ece3; border-top: 1px solid #c6d5c8; }
  footer { background: #f8f7f1; border-top: 1px solid var(--line); color: var(--navy); }
  .footer-links a, .footer-links button { color: var(--body); }
  .footer-links a:hover, .footer-links button:hover { color: var(--teal); }
  @media (max-width: 1320px) {
    .masthead-inner { min-height: 70px; }
  }
  @media (max-width: 800px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero h1 { max-width: 21ch; }
    .featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 680px) {
    .masthead .brand img { width: 105px; }
    .masthead .button { min-height: 43px; }
  }
  @media (max-width: 400px) {
    .featured-grid { grid-template-columns: 1fr; }
    .hero-media figcaption { font-size: .75rem; }
    .hero h1 { font-size: clamp(2.2rem, 9vw, 2.7rem); }
  }
  @media (max-width: 350px) { .masthead .brand img { width: 96px; } }
.admin-bar .masthead { top: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar .masthead { top: 0; } }
