/* HSealing shared site system
   Cleaned version:
   - one custom header
   - one custom footer
   - one shared modal
   - one shared form language for hs-* and pc-* blocks
*/

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--hs-font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--hs-text);
  background: var(--hs-bg);
  overflow-x: hidden;
}

body.hs-modal-open {
  overflow: hidden;
}

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

a {
  color: var(--hs-accent);
  text-decoration: none;
  transition: color var(--hs-transition);
}

a:hover {
  color: var(--hs-accent-dark);
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 16px;
  color: var(--hs-title);
  line-height: 1.22;
  font-weight: 700;
  letter-spacing: -0.015em;
}

h1 {
  font-size: 46px;
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 28px;
}

h4 {
  font-size: 22px;
}

p,
ul,
ol {
  margin: 0 0 16px;
}

.hs-container {
  width: min(100% - 40px, var(--hs-container));
  margin: 0 auto;
}

.hs-section {
  padding: var(--hs-section-y) 0;
  background: var(--hs-bg);
}

.hs-section--alt {
  background: var(--hs-bg-alt);
}

.hs-grid {
  display: grid;
  gap: 24px;
}

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

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

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

.hs-grid--1 {
  /* Single-column variant — used by why-us "mini-hero" rows where each
     row is a full-width .hs-card with .hs-split inside. .hs-grid base
     gap: 24px gives consistent spacing between rows. */
  grid-template-columns: 1fr;
}

/* Site-wide eyebrow label (small caps above headings) */
.hs-eyebrow {
  display: inline-block;
  color: var(--hs-accent);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 10px;
}

/* Site-wide section head (centered eyebrow + H2/H3) */
.hs-section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 30px;
}
.hs-section-head__title {
  font-size: 32px;
  color: var(--hs-title);
  margin: 0;
  line-height: 1.25;
}
@media (max-width: 767px) {
  .hs-section-head__title { font-size: 26px; }
}

.site-header,
.main-navigation,
.site-footer,
.footer-widgets,
.widget-area,
.site-title,
.main-title {
  display: none;
}

/* Hide the auto-generated WordPress entry-header ONLY on our ACF templates
   (they render their own H1/banner from ACF fields). Default-template pages
   and blog posts keep their entry-header so users don't end up with pages
   that have no visible title.
 */
body:is(
  .page-template-tpl-product-collection-hero,
  .page-template-tpl-product-collection-v3,
  .page-template-tpl-raw-html,
  .page-template-tpl-thank-you
) .entry-header {
  display: none;
}

body.page :is(
  .page-header-image-single,
  .generate-page-header,
  .generate-featured-image,
  .featured-image,
  .post-image-above-header,
  .inside-article > .post-image
) {
  display: none !important;
}

.site-content .content-area {
  width: 100%;
  float: none;
}

.inside-article,
.entry-content,
.page.one-container .site-content,
.single.one-container .site-content,
.container.grid-container {
  max-width: 100%;
}

.inside-article {
  padding: 0;
}

/* Raw HTML (Full Width) rendering — active for:
   - pages using "Raw HTML (Full Width)" template (explicit opt-in)
   - all default-template pages (via page.php)
   Kills every width/padding wrapper so hand-written HTML can be truly
   edge-to-edge. Header/footer still render normally. */
body.hs-raw-html-active :is(
  #page,
  .site-content,
  .content-area,
  .site-main,
  .inside-article,
  .entry-content,
  .hs-raw-html
),
body.hs-raw-html-active .site-main > article.post,
body.hs-raw-html-active .site-main > article.page,
body.hs-raw-html-active .site-main > article.hentry {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.hs-raw-html-active .hs-raw-html {
  display: block;
}

.entry-content a {
  color: var(--hs-accent);
}

.entry-content a:hover {
  color: var(--hs-accent-dark);
  text-decoration: underline;
}

/* ==========================================================================
   Global table styling — applies to any <table> dropped into content areas
   (entry-content, pc-richtext, pcv3-richtext). One consistent look sitewide,
   mobile horizontal-scroll friendly.
   ========================================================================== */
:is(.entry-content, .pc-richtext, .pcv3-richtext) table {
  width: 100%;
  margin: 24px 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--hs-border);
}

:is(.entry-content, .pc-richtext, .pcv3-richtext) table th,
:is(.entry-content, .pc-richtext, .pcv3-richtext) table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border: none;
  border-top: 1px solid var(--hs-border);
}

:is(.entry-content, .pc-richtext, .pcv3-richtext) table thead th {
  background: var(--hs-accent);
  color: #fff;
  font-weight: 600;
  border-top: none;
  letter-spacing: 0.02em;
}

:is(.entry-content, .pc-richtext, .pcv3-richtext) table thead th a {
  color: #fff;
  text-decoration: underline;
}

:is(.entry-content, .pc-richtext, .pcv3-richtext) table tbody tr:nth-child(even) {
  background: var(--hs-bg-alt);
}

:is(.entry-content, .pc-richtext, .pcv3-richtext) table tbody tr:first-child td {
  border-top: none;
}

:is(.entry-content, .pc-richtext, .pcv3-richtext) table td:first-child {
  font-weight: 600;
  color: var(--hs-accent-dark);
}

/* Tables without a <thead> — keep them clean but no accent row */
:is(.entry-content, .pc-richtext, .pcv3-richtext) table:not(:has(thead)) tr:first-child {
  background: var(--hs-bg-alt);
  font-weight: 600;
}

/* Mobile horizontal scroll: parent gets overflow, table gets min-width */
@media (max-width: 767px) {
  :is(.entry-content, .pc-richtext, .pcv3-richtext) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  :is(.entry-content, .pc-richtext, .pcv3-richtext) table {
    min-width: 560px;
    font-size: 13px;
  }

  :is(.entry-content, .pc-richtext, .pcv3-richtext) table th,
  :is(.entry-content, .pc-richtext, .pcv3-richtext) table td {
    padding: 10px 12px;
  }
}

:is(.hs-btn, .hs-btn-inquiry, .pc-btn, .pc-btn-inquiry) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 28px;
  border: 1px solid var(--hs-accent);
  border-radius: var(--hs-radius-btn);
  background: #ffffff;
  color: var(--hs-accent);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  transition: background-color var(--hs-transition), color var(--hs-transition), border-color var(--hs-transition);
}

:is(.hs-btn, .hs-btn-inquiry, .pc-btn, .pc-btn-inquiry):is(:hover, :focus-visible) {
  background: var(--hs-btn-hover-bg, var(--hs-accent));
  color: var(--hs-btn-hover-text, #ffffff);
  border-color: var(--hs-btn-hover-bg, var(--hs-accent));
}

.hs-btn--full {
  width: 100%;
}

.hs-card {
  height: 100%;
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-card);
  overflow: hidden;
  box-shadow: var(--hs-shadow-card);
  transition: transform var(--hs-transition), box-shadow var(--hs-transition);
}

.hs-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hs-shadow-card-hover);
}

.hs-card__image {
  /* Container holds the 4:3 aspect (not the child) so SVG with default
     preserveAspectRatio doesn't letterbox vertically. font-size: 0
     collapses the whitespace text node between <div> and the <img>/<svg>
     in the HTML source. */
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  font-size: 0;
}
.hs-card__image :is(img, svg) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hs-card__body {
  padding: 24px;
  /* Flex column lets equal-height cards push .hs-card__link to bottom. */
  display: flex;
  flex-direction: column;
}

.hs-split {
  display: flex;
  align-items: center;
  gap: 40px;
}

.hs-split__media,
.hs-split__content {
  flex: 1 1 50%;
}

.hs-split__media img {
  width: 100%;
  border-radius: var(--hs-radius-card);
  box-shadow: var(--hs-shadow-card);
}


.hs-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--hs-border);
}

.hs-site-header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 74px;
  position: relative;
}

.hs-site-header__brand {
  display: flex;
  align-items: center;
}

.hs-site-header__logo,
.hs-site-footer__logo {
  display: inline-flex;
  align-items: center;
}

.hs-site-header__logo-image {
  max-height: 42px;
  width: auto;
}

.hs-site-footer__logo-image {
  max-height: 46px;
  width: auto;
}

.hs-site-header__brand-text,
.hs-site-footer__logo-fallback {
  color: var(--hs-title);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.hs-site-footer__logo-fallback {
  color: #ffffff;
}

.hs-site-header__nav {
  justify-self: center;
}

.hs-site-header__menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-site-header__menu,
.hs-site-header__menu .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hs-site-header__menu li {
  margin: 0;
}

.hs-site-header__menu > li {
  position: relative;
}

.hs-site-header__menu > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 74px;
}

.hs-site-header__menu a {
  color: var(--hs-title);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
}

.hs-site-header__menu > li.menu-item-has-children > a::after {
  content: "";
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.hs-site-header__menu .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 40;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid var(--hs-border);
  border-radius: 10px;
  padding: 8px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.hs-site-header__menu .sub-menu li {
  position: relative;
}

.hs-site-header__menu .sub-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 6px;
  white-space: nowrap;
}

.hs-site-header__menu .sub-menu .sub-menu {
  top: -9px;
  left: calc(100% + 8px);
}

.hs-site-header__menu li:hover > .sub-menu,
.hs-site-header__menu li:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hs-site-header__menu .current-menu-item > a,
.hs-site-header__menu .current-menu-ancestor > a,
.hs-site-header__menu .current-menu-parent > a,
.hs-site-header__menu .current_page_item > a,
.hs-site-header__menu a:hover {
  color: var(--hs-accent);
}

.hs-site-header__menu .sub-menu .current-menu-item > a,
.hs-site-header__menu .sub-menu .current-menu-ancestor > a,
.hs-site-header__menu .sub-menu .current-menu-parent > a,
.hs-site-header__menu .sub-menu a:hover,
.hs-site-header__menu .sub-menu a:focus-visible {
  background: var(--hs-accent-soft);
  color: var(--hs-accent);
}

.hs-site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hs-site-header__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid var(--hs-accent);
  border-radius: 5px;
  background: var(--hs-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
}

.hs-site-header__toggle:hover,
.hs-site-header__toggle:focus-visible {
  background: var(--hs-accent);
  color: #ffffff;
  border-color: var(--hs-accent);
}

.hs-site-footer {
  background: var(--hs-footer);
  color: var(--hs-footer-text);
}

.hs-site-footer a {
  color: var(--hs-footer-text);
}

.hs-site-footer a:hover {
  color: #ffffff;
}

.hs-site-footer__inner {
  padding: 52px 0 24px;
}

.hs-site-footer__grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hs-site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hs-site-footer__text {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
}

.hs-site-footer__heading {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hs-site-footer__menu {
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-site-footer__menu li {
  margin-bottom: 10px;
}

.hs-site-footer__menu a {
  color: rgba(255, 255, 255, 0.82);
}

.hs-site-footer__menu .current-menu-item > a,
.hs-site-footer__menu a:hover {
  color: #ffffff;
}

.hs-site-footer__contact {
  margin-bottom: 8px;
}

.hs-site-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 10px 22px;
  border: 1px solid #ffffff;
  border-radius: var(--hs-radius-btn);
  background: #ffffff;
  color: var(--hs-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: none;
}

.hs-site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
}

.hs-site-footer__copyright {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.hs-site-footer__bottom-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.hs-site-footer__bottom-links a {
  color: rgba(255, 255, 255, 0.82);
}

.hs-site-footer__bottom-links a:hover {
  color: #ffffff;
}

.hs-whatsapp,
.hs-back-to-top {
  position: fixed;
  right: 16px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  z-index: 999;
}

.hs-whatsapp {
  bottom: 200px;
  background: #25d366;
}

.hs-back-to-top {
  bottom: 30px;
  padding: 0;
  border: 1px solid var(--hs-accent-border);
  background: var(--hs-bg-alt);
  color: var(--hs-accent);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--hs-transition), transform var(--hs-transition), visibility var(--hs-transition), background-color var(--hs-transition);
}

.hs-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.hs-back-to-top:hover {
  background: var(--hs-accent-soft);
}

.hs-text-center {
  text-align: center;
}

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

  .hs-split {
    gap: 28px;
  }

  .hs-site-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hs-site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 991px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 32px;
  }

  .hs-split,
  :is(.hs-form-row, .pc-form-row) {
    flex-direction: column;
  }

  :is(.hs-form-row, .pc-form-row) {
    gap: 0;
  }

  .hs-site-header__inner {
    grid-template-columns: auto 1fr auto;
    gap: 16px;
    padding: 14px 0;
  }

  .hs-site-header__toggle {
    display: inline-flex;
    justify-self: end;
  }

  .hs-site-header__nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 30;
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--hs-border);
    border-top: 0;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
  }

  .hs-site-header__actions {
    display: none;
  }

  .hs-site-header.is-open .hs-site-header__nav {
    display: block;
  }

  .hs-site-header__menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 0;
  }

  .hs-site-header__menu li {
    width: 100%;
  }

  .hs-site-header__menu > li > a {
    min-height: 0;
  }

  .hs-site-header__menu a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border-radius: 5px;
  }

  .hs-site-header__menu > li.menu-item-has-children > a::after {
    margin-left: auto;
    transition: transform 0.22s ease;
  }

  /* Sub-menus on mobile: collapsed by default, toggled via JS click on
     parent. Parent <li> gets `.is-submenu-open` when expanded. */
  .hs-site-header__menu .sub-menu {
    position: static;
    min-width: 0;
    margin: 0;
    padding: 0 0 0 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
  }

  .hs-site-header__menu .menu-item-has-children.is-submenu-open > .sub-menu {
    display: block;
    padding-bottom: 6px;
  }

  .hs-site-header__menu > li.menu-item-has-children.is-submenu-open > a::after {
    transform: rotate(225deg) translateY(-1px);
  }

  .hs-site-header__menu .sub-menu a {
    padding: 10px 16px;
    white-space: normal;
  }

  .hs-site-header__menu li + li {
    margin-top: 2px;
  }

  .hs-site-header__menu a:hover,
  .hs-site-header__menu a:focus-visible,
  .hs-site-header__menu .current-menu-item > a,
  .hs-site-header__menu .current_page_item > a {
    background: var(--hs-accent-soft);
    color: var(--hs-accent);
  }

  .hs-site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .hs-site-footer__brand,
  .hs-site-footer__column--contact {
    grid-column: 1 / -1;
  }

  .hs-site-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767px) {
  :root {
    --hs-section-y: 56px;
  }

  .hs-container {
    width: min(100% - 24px, var(--hs-container));
  }
  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 26px;
  }

  h3 {
    font-size: 22px;
  }

  .hs-site-header__logo-image {
    max-height: 36px;
  }

  .hs-site-header__toggle {
    min-height: 40px;
    padding: 8px 14px;
  }

  .hs-site-header__menu a {
    color: var(--hs-accent);
  }

  .hs-modal {
    padding: 12px;
  }

  .hs-modal__header,
  .hs-modal__body,
  :is(.hs-form, .pc-form) {
    padding: 16px;
  }

  .hs-site-footer__inner {
    padding: 44px 0 24px;
  }

  .hs-site-footer__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hs-site-footer__brand,
  .hs-site-footer__column--contact {
    grid-column: auto;
  }

  .hs-whatsapp,
  .hs-back-to-top {
    right: 16px;
    width: 52px;
    height: 52px;
  }

  .hs-whatsapp {
    bottom: 200px;
  }

  .hs-back-to-top {
    bottom: 20px;
  }
}

/* Thank You Page */
.ty-page { width: 100%; }
.ty-container { max-width: 680px; margin: 0 auto; padding: 0 24px; }
.ty-hero { padding: 80px 0; text-align: center; }
.ty-icon { margin-bottom: 24px; }
.ty-title { font-size: 38px; color: var(--hs-title); margin: 0 0 16px; }
.ty-subtitle { font-size: 18px; color: var(--hs-text); margin: 0 0 24px; line-height: 1.6; }
.ty-content { margin-bottom: 32px; color: var(--hs-text); line-height: 1.7; }
.ty-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

@media (max-width: 767px) {
  .ty-hero { padding: 50px 0; }
  .ty-title { font-size: 28px; }
  .ty-actions { flex-direction: column; align-items: center; }
}

/* ==========================================================================
   Page Component Layer (.hs-page / .hs-pg-*)
   ==========================================================================
   Used by raw HTML / AI-generated pages dropped into the
   "Raw HTML (Full Width)" template. The wrapper <div class="hs-page"> is
   added by tpl-raw-html.php; everything below either inherits via that
   wrapper (typography defaults) or is opt-in via .hs-pg-* class names.

   The point of this layer is so AI-generated HTML helper pages don't need
   to write their own <style> — they assemble pages purely from class hooks
   and inherit the theme's brand visual language.

   Existing reusable primitives this layer composes with:
     .hs-container               max-width wrapper (1200px)
     .hs-section / --alt         vertical section padding
     .hs-grid / --2 / --3 / --4  responsive grid
     .hs-eyebrow                 small label above heading
     .hs-section-head            centered heading block
     .hs-card / __image / __body card primitive
     .hs-split / __media / __content   two-column split (used by hero)
     .hs-btn / .hs-btn-inquiry   buttons
     .hs-btn--full               full-width modifier

   New additions in this layer:
     .hs-page            typography defaults for raw-HTML body
     .hs-pg-hero         hero section (composes .hs-split inside)
     .hs-pg-hero--alt    grey-bg variant
     .hs-pg-hero--accent accent-soft-bg variant
     .hs-pg-stats        statistic number grid
     .hs-pg-stat__number / __label
     .hs-card--icon      card with icon-top instead of image-top
     .hs-card__icon      icon wrapper inside card
     .hs-card__title     card heading
     .hs-card__desc      card description paragraph
     .hs-card__link      "Learn more →" link at bottom
     .hs-card__meta      small meta row (specs etc.)
     .hs-pg-compare      comparison table wrapper (mobile horizontal scroll)
     .hs-pg-faq          FAQ accordion (also the schema-extraction hook)
     .hs-pg-cta          full-width CTA strip
     .hs-pg-cta--soft    accent-soft variant
     .hs-pg-trust        logo / certifications row
     .hs-pg-process      numbered step grid
   ========================================================================== */

/* --- Raw HTML typography defaults ---------------------------------------- */

.hs-page {
  font-family: var(--hs-font-base);
  color: var(--hs-text);
  line-height: 1.65;
}

.hs-page h1,
.hs-page h2,
.hs-page h3,
.hs-page h4 {
  color: var(--hs-title);
  font-weight: 700;
  line-height: 1.25;
}

.hs-page h1 { font-size: 40px; margin: 0 0 24px; }
.hs-page h2 { font-size: 32px; margin: 0 0 20px; }
.hs-page h3 { font-size: 22px; margin: 0 0 14px; }
.hs-page h4 { font-size: 18px; margin: 0 0 10px; }
.hs-page p  { margin: 0 0 16px; }
.hs-page p:last-child { margin-bottom: 0; }

.hs-page ul,
.hs-page ol { margin: 0 0 16px; padding-left: 24px; }
.hs-page li { margin: 4px 0; }
.hs-page li::marker { color: var(--hs-accent); }

.hs-page strong,
.hs-page b { color: var(--hs-title); }

.hs-page a:not([class]) {
  color: var(--hs-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--hs-transition);
}
.hs-page a:not([class]):hover { color: var(--hs-accent-dark); }

@media (max-width: 991px) {
  .hs-page h1 { font-size: 32px; }
  .hs-page h2 { font-size: 26px; }
}

@media (max-width: 575px) {
  .hs-page h1 { font-size: 26px; margin-bottom: 16px; }
  .hs-page h2 { font-size: 22px; margin-bottom: 14px; }
  .hs-page h3 { font-size: 18px; }
}

/* --- Hero section -------------------------------------------------------- */

.hs-pg-hero {
  padding: calc(var(--hs-section-y) * 0.7) 0;
  background: var(--hs-bg);
}

.hs-pg-hero--alt    { background: var(--hs-bg-alt); }
.hs-pg-hero--accent { background: var(--hs-accent-soft); }

.hs-pg-hero h1 {
  font-size: 48px;
  line-height: 1.15;
  margin: 0 0 20px;
}

.hs-pg-hero__lead {
  font-size: 18px;
  color: var(--hs-text);
  margin: 0 0 28px;
}

.hs-pg-hero__cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hs-pg-hero--center {
  text-align: center;
}
.hs-pg-hero--center .hs-pg-hero__lead {
  max-width: 720px;
  margin: 0 auto 28px;
}
.hs-pg-hero--center .hs-pg-hero__cta {
  justify-content: center;
}

@media (max-width: 991px) {
  .hs-pg-hero h1 { font-size: 36px; }
  .hs-pg-hero { padding: calc(var(--hs-section-y) * 0.55) 0; }
}
@media (max-width: 575px) {
  .hs-pg-hero h1 { font-size: 28px; }
  .hs-pg-hero__lead { font-size: 16px; }
}

/* --- Stats grid ---------------------------------------------------------- */

.hs-pg-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  text-align: center;
}

.hs-pg-stat__number {
  font-size: 48px;
  font-weight: 700;
  color: var(--hs-accent);
  line-height: 1;
  margin: 0 0 8px;
  display: block;
}

.hs-pg-stat__label {
  font-size: 15px;
  color: var(--hs-text);
  margin: 0;
}

@media (max-width: 575px) {
  .hs-pg-stat__number { font-size: 36px; }
}

/* --- Card extensions (icon variant + content slots) ---------------------- */

.hs-card--icon {
  text-align: left;
}

.hs-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--hs-radius-card);
  background: var(--hs-accent-soft);
  color: var(--hs-accent);
  margin-bottom: 16px;
}
.hs-card__icon svg { width: 28px; height: 28px; }

.hs-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--hs-title);
  margin: 0 0 12px;
  line-height: 1.3;
}

.hs-card__desc {
  color: var(--hs-text);
  margin: 0 0 16px;
}
.hs-card__desc:last-child { margin-bottom: 0; }

.hs-card__meta {
  font-size: 14px;
  color: var(--hs-text);
  border-top: 1px solid var(--hs-border);
  padding-top: 12px;
  margin-top: 12px;
}
.hs-card__meta dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  margin: 0;
}
.hs-card__meta dt {
  font-weight: 600;
  color: var(--hs-title);
}
.hs-card__meta dd { margin: 0; }

.hs-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--hs-accent);
  font-weight: 600;
  text-decoration: none;
  margin-top: auto;
  padding-top: 12px;
}
.hs-card__link::after {
  content: '→';
  transition: transform var(--hs-transition);
}
.hs-card__link:hover { color: var(--hs-accent-dark); }
.hs-card__link:hover::after { transform: translateX(4px); }

/* --- Comparison table ---------------------------------------------------- */

.hs-pg-compare {
  overflow-x: auto;
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-card);
  background: var(--hs-surface);
  box-shadow: var(--hs-shadow-card);
}

.hs-pg-compare table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  margin: 0;
}

.hs-pg-compare th,
.hs-pg-compare td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--hs-border);
  font-size: 15px;
  vertical-align: middle;
}

.hs-pg-compare th {
  background: var(--hs-bg-alt);
  color: var(--hs-title);
  font-weight: 600;
  white-space: nowrap;
  position: sticky;
  top: 0;
}

.hs-pg-compare tr:last-child td { border-bottom: none; }

.hs-pg-compare tbody tr:hover { background: var(--hs-bg-alt); }

.hs-pg-compare td:first-child {
  font-weight: 600;
  color: var(--hs-title);
}

/* --- FAQ accordion (mirrors ACF Product Collection v3 visual for
       site-wide consistency: bordered card per Q, accent border on open,
       single +/− glyph on the right.)
   ----------------------------------------------------------------------- */

.hs-pg-faq {
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hs-pg-faq details {
  background: #ffffff;
  border: 1px solid var(--hs-border);
  border-radius: 12px;
  padding: 18px 22px;
  transition: border-color var(--hs-transition);
}
.hs-pg-faq details[open] { border-color: var(--hs-accent-border); }

.hs-pg-faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 32px;
  font-weight: 600;
  color: var(--hs-title);
  font-size: 17px;
}
.hs-pg-faq summary::-webkit-details-marker { display: none; }

.hs-pg-faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 22px;
  color: var(--hs-accent);
  line-height: 1;
  font-weight: 400;
}
.hs-pg-faq details[open] summary::after { content: "\2212"; }

.hs-pg-faq details > *:not(summary) {
  margin-top: 12px;
  color: var(--hs-text);
  font-size: 15px;
  line-height: 1.8;
}
.hs-pg-faq details > *:not(summary):last-child { margin-bottom: 0; }

/* --- CTA strip ----------------------------------------------------------- */

.hs-pg-cta {
  background: var(--hs-accent);
  color: #ffffff;
  padding: 60px 32px;
  border-radius: var(--hs-radius-card);
  text-align: center;
}

.hs-pg-cta--soft {
  background: var(--hs-accent-soft);
  color: var(--hs-title);
}

.hs-pg-cta h2,
.hs-pg-cta__title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 12px;
  color: inherit;
  line-height: 1.25;
}

.hs-pg-cta p,
.hs-pg-cta__lead {
  font-size: 17px;
  margin: 0 0 28px;
  color: inherit;
  opacity: 0.92;
}
.hs-pg-cta--soft p,
.hs-pg-cta--soft .hs-pg-cta__lead {
  opacity: 1;
  color: var(--hs-text);
}

.hs-pg-cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* When CTA strip uses default (filled) variant, invert button look so it
   reads correctly against the accent background. */
.hs-pg-cta:not(.hs-pg-cta--soft) :is(.hs-btn, .hs-btn-inquiry) {
  background: #ffffff;
  color: var(--hs-accent);
  border-color: #ffffff;
}
.hs-pg-cta:not(.hs-pg-cta--soft) :is(.hs-btn, .hs-btn-inquiry):is(:hover, :focus-visible) {
  background: var(--hs-accent-dark);
  color: #ffffff;
  border-color: var(--hs-accent-dark);
}

@media (max-width: 575px) {
  .hs-pg-cta { padding: 40px 24px; }
  .hs-pg-cta h2,
  .hs-pg-cta__title { font-size: 24px; }
  .hs-pg-cta p,
  .hs-pg-cta__lead { font-size: 15px; }
}

/* --- Trust / logo strip -------------------------------------------------- */

.hs-pg-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 32px;
  align-items: center;
  justify-items: center;
}

.hs-pg-trust img,
.hs-pg-trust__logo {
  max-height: 60px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.62;
  transition: filter var(--hs-transition), opacity var(--hs-transition);
}

.hs-pg-trust img:hover,
.hs-pg-trust__logo:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* --- Process / numbered step grid ---------------------------------------- */

.hs-pg-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  counter-reset: hs-pg-step;
}

.hs-pg-process__step,
.hs-pg-process > li {
  position: relative;
  padding: 36px 24px 24px;
  background: var(--hs-surface);
  border: 1px solid var(--hs-border);
  border-radius: var(--hs-radius-card);
  counter-increment: hs-pg-step;
  list-style: none;
}

.hs-pg-process__step::before,
.hs-pg-process > li::before {
  content: counter(hs-pg-step, decimal-leading-zero);
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 32px;
  font-weight: 700;
  color: var(--hs-accent-soft);
  line-height: 1;
}

.hs-pg-process h3 {
  font-size: 17px;
  margin: 0 0 8px;
  padding-right: 50px;
  color: var(--hs-title);
}

.hs-pg-process p {
  font-size: 15px;
  margin: 0;
  color: var(--hs-text);
}

/* --- Mobile grid graceful degradation ------------------------------------ */
/* Existing .hs-grid--3 / --4 don't drop columns on narrow viewports.
   Add page-component-friendly responsive defaults. */

@media (max-width: 991px) {
  .hs-grid--3,
  .hs-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .hs-grid--2,
  .hs-grid--3,
  .hs-grid--4 {
    grid-template-columns: 1fr;
  }
}

/* --- End of Page Component Layer ----------------------------------------- */

/* Accent section variant — solid brand-color background with white text.
   Use case: trust-stats banner ("腰线") in the middle of a long page.
   Auto-inverts headings, eyebrow, paragraphs, .hs-pg-stat__number/__label,
   and unclassed links. Buttons inside: existing .hs-pg-cta button-invert
   rules don't apply here, so .hs-btn / .hs-btn-inquiry inside .hs-section--accent
   keep their default outline look (works fine on accent background). */
.hs-section--accent {
  background: var(--hs-accent);
  color: #ffffff;
}
.hs-section--accent :is(h1, h2, h3, h4) {
  color: #ffffff;
}
.hs-section--accent p {
  color: rgba(255, 255, 255, 0.92);
}
.hs-section--accent .hs-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}
.hs-section--accent .hs-section-head__title {
  color: #ffffff;
}
.hs-section--accent .hs-pg-stat__number {
  color: #ffffff;
}
.hs-section--accent .hs-pg-stat__label {
  color: rgba(255, 255, 255, 0.85);
}
.hs-section--accent a:not([class]) {
  color: #ffffff;
  text-decoration: underline;
}

/* When .hs-split is nested inside .hs-card (e.g. why-us mini-hero rows),
   the content side needs internal padding for breathing room. The image
   side stays flush to the card edge (full-bleed, with .hs-card overflow
   hidden clipping it to the rounded corners). */
.hs-card > .hs-split > .hs-split__content {
  padding: 28px 32px;
}
@media (max-width: 991px) {
  .hs-card > .hs-split > .hs-split__content {
    padding: 24px;
  }
}

/* Hero image radius override: 5px (smaller than card 10px for sharper look).
   Also covers inline <svg> placeholders that mirror the same aspect ratio. */
.hs-pg-hero :is(img, svg) {
  border-radius: 5px;
}
.hs-pg-hero .hs-split__media :is(img, svg) {
  width: 100%;
  height: auto;
  display: block;
}
