:root {
  --thm-brand: #0d9488;
  --thm-brand-deep: #0f766e;
  --thm-brand-soft: #ccfbf1;
  --thm-ink: #134e4a;
  --thm-body: #475569;
  --thm-surface: #eef6f5;
  --thm-bg: #f3f7f6;
  --thm-white: #ffffff;
  --thm-accent: #0891b2;
  --thm-font: "DM Sans", system-ui, sans-serif;
  --thm-display: "Fraunces", Georgia, serif;
  --thm-container: 1280px;
  --thm-gutter: 1rem;
  --thm-hero-copy: 40rem;
  --thm-radius-sm: 0.375rem;
  --thm-radius-md: 0.5rem;
  --thm-radius-lg: 0.625rem;
  --thm-section-y: 3.25rem;
  --thm-card-pad: 1.1rem 1.15rem;
  --thm-shadow-card: 0 4px 16px rgba(19, 78, 74, 0.06);
  --thm-prose-max: 45rem;
  --thm-intro-max: 720px;
  --thm-header-h: 76px;
}
@media (min-width: 1024px) {
  :root {
    --thm-container: 1520px;
    --thm-gutter: clamp(0.65rem, 1vw, 1rem);
    --thm-header-h: 96px;
  }
}
@media (min-width: 1440px) {
  :root {
    --thm-container: 1760px;
    --thm-gutter: clamp(0.5rem, 0.9vw, 0.9rem);
    --thm-header-h: 100px;
  }
}
@media (min-width: 1680px) {
  :root {
    --thm-container: 1920px;
    --thm-gutter: clamp(0.45rem, 0.75vw, 0.75rem);
    --thm-header-h: 104px;
  }
}
@media (min-width: 1920px) {
  :root {
    --thm-container: 2200px;
    --thm-gutter: clamp(0.4rem, 0.65vw, 0.65rem);
    --thm-header-h: 110px;
  }
}

html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }

body.thm-theme {
  margin: 0;
  font-family: var(--thm-font);
  color: var(--thm-body);
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(13, 148, 136, 0.08), transparent 50%),
    var(--thm-bg);
  line-height: 1.65;
  font-size: 1rem;
  padding-top: var(--thm-header-h);
}

.thm-main,
.thm-page-content {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.thm-theme h1,
.thm-theme h2,
.thm-theme h3,
.thm-theme h4 {
  font-family: var(--thm-display);
  color: var(--thm-ink);
  letter-spacing: -0.02em;
  font-weight: 550;
  line-height: 1.2;
}

.thm-container {
  width: 100%;
  max-width: var(--thm-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--thm-gutter);
  padding-right: var(--thm-gutter);
  box-sizing: border-box;
}
.thm-skip-link { position: absolute; left: -999px; top: 0; }
.thm-skip-link:focus { left: 1rem; top: 1rem; z-index: 100; background: #fff; padding: .5rem 1rem; }

/* Header — fixed so it stays visible while scrolling (sticky breaks with overflow-x on body). */
.thm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid rgba(13,148,136,.18);
  box-shadow: 0 1px 8px rgba(19,78,74,.05);
}
.thm-header.is-scrolled {
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(19,78,74,.14);
  border-bottom-color: rgba(13,148,136,.3);
}
.thm-theme .site-header,
.thm-theme header.thm-header {
  position: fixed !important;
  top: 0;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1000 !important;
}
/* Sit below the WP admin bar when logged in.
   Do not add extra body padding — WordPress already applies html.wp-toolbar padding-top. */
body.admin-bar .thm-header,
body.admin-bar.thm-theme header.thm-header {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  body.admin-bar .thm-header,
  body.admin-bar.thm-theme header.thm-header {
    top: 46px !important;
  }
}
/* Hide Hello Elementor / Elementor Theme Builder headers — theme header owns the nav. */
body.thm-theme #site-header:not(.thm-header),
body.thm-theme .site-header:not(.thm-header),
body.thm-theme .elementor-location-header {
  display: none !important;
}
.thm-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  box-sizing: border-box;
  width: 100%;
}
.thm-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.1;
  flex-shrink: 0;
}
.thm-logo__img {
  height: 56px;
  width: auto;
  max-width: min(280px, 52vw);
  display: block;
  object-fit: contain;
}
@media (min-width: 1024px) {
  .thm-logo__img { height: 70px; max-width: 340px; }
}
.thm-logo__name { font-family: var(--thm-display); font-size: 1.25rem; font-weight: 600; color: var(--thm-ink); }
.thm-logo__tag { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--thm-brand); margin-top: 2px; }
.thm-nav__list { display: none; list-style: none; margin: 0; padding: 0; gap: .35rem; align-items: center; }
.thm-nav__list > li { position: relative; list-style: none; }
.thm-nav__list > li > a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  text-decoration: none;
  color: #fff !important;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .01em;
  padding: .55rem .85rem;
  border-radius: var(--thm-radius-sm);
  background: var(--thm-brand);
  box-shadow: 0 1px 0 rgba(15, 118, 110, 0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.thm-nav__list > li > a:hover,
.thm-nav__list > li > a:focus-visible,
.thm-nav__list > li:hover > a,
.thm-nav__list > li:focus-within > a,
.thm-nav__list > li.current-menu-item > a,
.thm-nav__list > li.current-menu-ancestor > a {
  background: var(--thm-brand-deep);
  color: #fff !important;
  outline: none;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
}
.thm-nav__list .menu-item-has-children > a::after {
  content: "";
  width: 0; height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: .85;
  margin-top: 1px;
}
.thm-nav__list .sub-menu {
  position: absolute; left: 0; top: calc(100% + 6px);
  min-width: 14rem; width: max-content; max-width: min(18rem, calc(100vw - 2rem));
  margin: 0; padding: .45rem;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(13,148,136,.18);
  border-radius: var(--thm-radius-md);
  box-shadow: 0 12px 28px rgba(19,78,74,.12);
  opacity: 0; visibility: hidden; transform: translateY(.35rem);
  transition: .18s ease; z-index: 1100;
  overflow: hidden;
  box-sizing: border-box;
}
.thm-nav__list .sub-menu > li {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.thm-nav__list .sub-menu a {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: .6rem .75rem;
  font-weight: 600;
  font-size: .88rem;
  color: var(--thm-ink) !important;
  border-radius: var(--thm-radius-sm);
  background: transparent;
  box-shadow: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.thm-nav__list .sub-menu a:hover,
.thm-nav__list .sub-menu a:focus {
  background: var(--thm-brand);
  color: #fff !important;
}
.thm-nav__list > li:hover > .sub-menu,
.thm-nav__list > li:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: none;
}

.thm-header__actions { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.thm-social {
  display: flex;
  align-items: center;
  gap: .35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.thm-social__link {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--thm-radius-sm);
  color: #fff;
  background: var(--thm-brand);
  text-decoration: none;
  box-shadow: 0 1px 0 rgba(15, 118, 110, 0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.thm-social__link:hover,
.thm-social__link:focus-visible {
  background: var(--thm-brand-deep);
  color: #fff;
  outline: none;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
}
.thm-mobile-nav__social {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(13, 148, 136, 0.15);
}
.thm-mobile-nav__social .thm-social {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.thm-nav-toggle {
  border: 1px solid rgba(13,148,136,.28);
  background: #fff;
  width: 42px; height: 42px;
  border-radius: .7rem;
  display: grid; gap: 5px; place-content: center; cursor: pointer;
  flex-shrink: 0;
}
.thm-nav-toggle span { display: block; width: 18px; height: 2px; background: var(--thm-ink); border-radius: 2px; }
.thm-mobile-nav {
  display: none;
  padding: .85rem 1rem 1.15rem;
  border-top: 1px solid rgba(13,148,136,.15);
  background: #fff;
  max-height: min(78vh, 560px);
  overflow: auto;
}
.thm-mobile-nav.is-open { display: block; }
.thm-mobile-nav__list,
.thm-mobile-nav .thm-nav__list {
  display: grid !important;
  gap: .4rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.thm-mobile-nav .thm-nav__list > li,
.thm-mobile-nav__list > li { position: static; }
.thm-mobile-nav .thm-nav__list > li > a,
.thm-mobile-nav__list > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .75rem .9rem;
  text-decoration: none;
  color: #fff !important;
  border-radius: var(--thm-radius-sm);
  font-size: .95rem;
  font-weight: 700;
  background: var(--thm-brand);
  box-shadow: 0 1px 0 rgba(15, 118, 110, 0.18);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}
.thm-mobile-nav .thm-nav__list > li > a:hover,
.thm-mobile-nav .thm-nav__list > li > a:focus,
.thm-mobile-nav__list > li > a:hover,
.thm-mobile-nav__list > li > a:focus,
.thm-mobile-nav .menu-item-has-children.is-open > a {
  background: var(--thm-brand-deep);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.28);
}
.thm-mobile-nav .menu-item-has-children > a::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: .85;
  margin: 0;
  flex-shrink: 0;
  transition: transform .18s ease;
}
.thm-mobile-nav .menu-item-has-children.is-open > a::after {
  transform: rotate(180deg);
  opacity: .9;
}
.thm-mobile-nav .sub-menu {
  position: static !important;
  display: none;
  list-style: none;
  margin: .35rem 0 .2rem;
  padding: .2rem;
  min-width: 0;
  border: 0;
  border-radius: var(--thm-radius-sm);
  box-shadow: none;
  background: var(--thm-surface);
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}
.thm-mobile-nav .sub-menu a {
  display: block;
  padding: .6rem .75rem;
  font-weight: 600;
  font-size: .9rem;
  color: var(--thm-ink) !important;
  background: transparent !important;
  border-radius: var(--thm-radius-sm);
  box-shadow: none;
}
.thm-mobile-nav .sub-menu a:hover,
.thm-mobile-nav .sub-menu a:focus {
  background: var(--thm-brand) !important;
  color: #fff !important;
}
.thm-mobile-nav .sub-menu a::after { display: none !important; content: none !important; }
.thm-mobile-nav .menu-item-has-children.is-open > .sub-menu { display: grid; gap: .15rem; }
.thm-mobile-nav > .thm-btn,
.thm-mobile-nav a.thm-btn {
  width: 100%;
  margin-top: .35rem;
  color: #fff !important;
  justify-content: center;
  background: var(--thm-brand);
  border-color: transparent;
}
.thm-mobile-nav > .thm-btn:hover,
.thm-mobile-nav a.thm-btn:hover {
  background: var(--thm-brand-deep);
  color: #fff !important;
}

@media (max-width: 1023px) {
  .thm-header__inner { min-height: 76px; gap: .5rem; }
  .thm-logo {
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 7.5rem);
  }
  .thm-logo__img {
    height: 56px;
    max-width: min(260px, 52vw);
  }
  .thm-logo__name {
    font-size: .95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .thm-logo__tag { font-size: 9px; letter-spacing: .12em; }
  .thm-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: .55rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .thm-hero__actions .thm-btn {
    width: 100%;
    justify-content: center;
    padding: .75rem 1.15rem;
    font-size: .9rem;
    border-radius: var(--thm-radius-md);
    min-height: 2.75rem;
  }
  .thm-hero__actions .thm-btn--light {
    background: #fff;
    color: var(--thm-brand-deep) !important;
    border-color: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .18);
  }
  .thm-hero__actions .thm-btn--ghost {
    color: #fff !important;
  }
  .thm-hero__actions .thm-btn--light,
  .thm-hero__actions .thm-btn--primary { order: -2; }
  .thm-hero__actions .thm-btn--secondary { order: -1; }
  /* Desktop dropdown chrome must not affect the open mobile panel */
  .thm-mobile-nav .thm-nav__list .sub-menu {
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 390px) {
  .thm-header__actions .thm-social { display: none; }
  .thm-logo { max-width: calc(100% - 3rem); }
}

@media (min-width: 1024px) {
  .thm-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    min-height: 96px;
  }
  .thm-nav {
    position: static;
    left: auto;
    transform: none;
    z-index: 1;
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    display: flex;
    justify-content: center;
    pointer-events: auto;
    overflow: hidden;
  }
  .thm-nav .thm-nav__list {
    pointer-events: auto;
    max-width: 100%;
  }
  .thm-nav > ul + ul {
    display: none !important;
  }
  .thm-logo,
  .thm-header__actions {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
  }
  .thm-logo__img {
    height: 64px;
    max-width: 300px;
  }
  .thm-nav__list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    gap: .3rem;
  }
  .thm-nav__list > li > a {
    font-size: .8rem;
    font-weight: 700;
    padding: .48rem .62rem;
  }
  .thm-header__actions .thm-social__link {
    width: 2.15rem;
    height: 2.15rem;
  }
  .thm-header__actions .thm-social {
    gap: .28rem;
  }
  .thm-nav-toggle { display: none; }
  .thm-mobile-nav { display: none !important; }
}

@media (min-width: 1024px) and (max-width: 1280px) {
  .thm-nav__list { gap: .2rem; }
  .thm-nav__list > li > a { padding: .42rem .45rem; font-size: .72rem; }
  .thm-logo__img { height: 54px; max-width: 240px; }
  .thm-logo__name { font-size: 1.05rem; }
  .thm-header__actions .thm-social__link {
    width: 1.95rem;
    height: 1.95rem;
  }
}

@media (min-width: 1281px) and (max-width: 1439px) {
  .thm-nav__list > li > a { padding: .46rem .55rem; font-size: .78rem; }
  .thm-logo__img { height: 60px; max-width: 280px; }
}

/* Larger monitors — modest scale (keeps items from colliding) */
@media (min-width: 1440px) {
  .thm-header__inner { min-height: 100px; gap: 1rem; }
  .thm-logo__img { height: 72px; max-width: 340px; }
  .thm-logo__name { font-size: 1.3rem; }
  .thm-nav__list { gap: .35rem; }
  .thm-nav__list > li > a {
    font-size: .86rem;
    padding: .55rem .75rem;
  }
  .thm-header__actions .thm-social__link {
    width: 2.35rem;
    height: 2.35rem;
  }
}
@media (min-width: 1680px) {
  .thm-header__inner { min-height: 104px; gap: 1.1rem; }
  .thm-logo__img { height: 78px; max-width: 380px; }
  .thm-logo__name { font-size: 1.35rem; }
  .thm-nav__list { gap: .4rem; }
  .thm-nav__list > li > a {
    font-size: .9rem;
    padding: .58rem .82rem;
  }
  .thm-header__actions .thm-social__link {
    width: 2.45rem;
    height: 2.45rem;
  }
  .thm-header__actions .thm-social__link svg {
    width: 18px;
    height: 18px;
  }
}
@media (min-width: 1920px) {
  .thm-header__inner { min-height: 110px; gap: 1.2rem; }
  .thm-logo__img { height: 84px; max-width: 420px; }
  .thm-logo__name { font-size: 1.45rem; }
  .thm-nav__list { gap: .45rem; }
  .thm-nav__list > li > a {
    font-size: .94rem;
    padding: .62rem .9rem;
  }
  .thm-header__actions .thm-social__link {
    width: 2.6rem;
    height: 2.6rem;
  }
  .thm-header__actions .thm-social__link svg {
    width: 19px;
    height: 19px;
  }
}

/* Hearing Aids brand dropdown — 2 columns on desktop */
@media (min-width: 1024px) {
  .thm-nav__list > .thm-menu-hearing-aids > .sub-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 20rem;
    max-width: min(24rem, calc(100vw - 2rem));
    width: max-content;
  }
}

/* Buttons */
.thm-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: var(--thm-radius-sm); padding: .7rem 1.15rem; font-size: .9rem; font-weight: 600;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: .2s ease;
  box-sizing: border-box;
  max-width: 100%;
}
.thm-btn--primary { background: var(--thm-brand); color: #fff; box-shadow: 0 4px 14px rgba(15,118,110,.2); }
.thm-btn--primary:hover { background: var(--thm-brand-deep); color: #fff; }
.thm-btn--secondary { background: var(--thm-brand-soft); color: var(--thm-brand-deep); border-color: rgba(13,148,136,.35); }
.thm-btn--secondary:hover { background: #99f6e4; }
.thm-btn--outline { background: #fff; color: var(--thm-ink); border-color: rgba(13,148,136,.35); }
.thm-btn--light { background: #fff; color: var(--thm-brand-deep); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.thm-btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.75); }
.thm-btn--ghost:hover { background: #fff; color: var(--thm-brand-deep); }
.thm-btn--whatsapp { background: #0f766e; color: #fff; border-color: transparent; }
.thm-btn--whatsapp:hover { background: #115e59; color: #fff; }

/* Cards / sections */
.thm-section { padding: var(--thm-section-y) 0; }
.thm-section--surface {
  background:
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(13,148,136,.08), transparent 55%),
    linear-gradient(180deg, #e4f3f1 0%, #eef6f5 48%, #f3f7f6 100%);
}
.thm-section--panel { background: #fff; }
.thm-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(13,148,136,.22);
  border-radius: var(--thm-radius-md);
  padding: var(--thm-card-pad);
  box-shadow: var(--thm-shadow-card);
  color: inherit;
  text-decoration: none;
  height: 100%;
  margin: 0;
  box-sizing: border-box;
  min-height: 9.5rem;
}
.thm-card h2, .thm-card h3 { margin: .45rem 0 0; color: var(--thm-ink); font-size: 1.15rem; }
.thm-card p { margin: .55rem 0 0; color: var(--thm-body); flex: 1; font-size: .95rem; line-height: 1.6; }
.thm-card ol,
.thm-card ul {
  margin: .55rem 0 0;
  padding-left: 1.15rem;
  color: var(--thm-body);
  flex: 1;
  font-size: .95rem;
  line-height: 1.6;
}
.thm-card li { margin: .35rem 0 0; }
.thm-card li:first-child { margin-top: 0; }
.thm-card--compact {
  height: auto;
  min-height: 0;
  padding: .65rem .85rem;
}
.thm-card--compact .thm-card__label {
  margin-bottom: 0;
}
.thm-card--compact p {
  flex: none;
  margin-top: .35rem;
  margin-bottom: 0;
  line-height: 1.45;
}
.thm-card__label {
  display: inline-flex; align-self: flex-start; border-radius: var(--thm-radius-sm); padding: .22rem .55rem;
  background: var(--thm-brand-soft); color: var(--thm-brand-deep);
  font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.thm-card__meta {
  margin: .35rem 0 0; font-size: .8rem; font-weight: 600; color: var(--thm-brand);
  letter-spacing: .02em;
}
.thm-card__link {
  margin-top: 1rem; font-size: .875rem; font-weight: 700; color: var(--thm-brand-deep);
}
.thm-card__quote { font-size: 1.05rem; line-height: 1.55; color: var(--thm-ink); }
.thm-card__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.thm-card--featured {
  border-color: rgba(13,148,136,.35);
  border-left: 3px solid var(--thm-brand);
  background: linear-gradient(165deg, #fff 0%, #f0faf8 100%);
  box-shadow: var(--thm-shadow-card);
}
.thm-card--featured-service {
  border-left: 3px solid var(--thm-brand);
  background: #f8fdfc;
}
.thm-card--soft { background: #f7fcfb; }
.thm-card--article { padding: 2rem; max-width: none; margin: 0; width: 100%; box-sizing: border-box; }
.thm-card--hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.thm-card--hover:hover {
  transform: translateY(-2px);
  border-color: rgba(13,148,136,.45);
  box-shadow: 0 8px 22px rgba(19,78,74,.1);
}
.thm-card--hover:hover .thm-card__link { text-decoration: underline; }
.thm-eyebrow {
  display: inline-flex; border-radius: var(--thm-radius-sm); padding: .25rem .65rem;
  background: var(--thm-brand-soft); color: var(--thm-brand-deep);
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.thm-grid-2,
.thm-grid-3,
.thm-grid-4,
.thm-card-grid {
  display: grid !important;
  gap: 1.25rem !important;
  row-gap: 1.25rem !important;
  column-gap: 1.25rem !important;
  align-items: stretch;
  margin: 0;
  padding: 0;
}
.thm-grid-2 > *,
.thm-grid-3 > *,
.thm-grid-4 > *,
.thm-card-grid > * {
  margin: 0 !important;
  min-width: 0;
}
.thm-grid-2 > .thm-card,
.thm-grid-3 > .thm-card,
.thm-services-grid > .thm-card {
  align-self: stretch;
  height: 100%;
}
/* Compact / highlight cards must follow stretch rules so they size to content. */
.thm-grid-2:has(.thm-card--compact),
.thm-grid-3:has(.thm-card--compact),
.thm-highlights-grid {
  align-items: start !important;
}
.thm-grid-2 > .thm-card.thm-card--compact,
.thm-grid-3 > .thm-card.thm-card--compact,
.thm-card-grid > .thm-card.thm-card--compact,
.thm-highlight-card,
.thm-grid-2 > .thm-highlight-card,
.thm-highlights-grid > .thm-card,
.thm-highlights-grid > .thm-highlight-card {
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
  flex: 0 0 auto;
}
.thm-highlight-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(13,148,136,.22);
  border-radius: var(--thm-radius-md);
  padding: .7rem .9rem;
  box-shadow: var(--thm-shadow-card);
  color: inherit;
  margin: 0;
  box-sizing: border-box;
}
.thm-highlight-card .thm-card__label {
  margin-bottom: 0;
}
.thm-highlight-card p {
  flex: none !important;
  margin: .35rem 0 0 !important;
  color: var(--thm-body);
  font-size: .95rem;
  line-height: 1.45;
}
.thm-home-visit-cards {
  margin-top: 1.25rem;
}
.thm-home-visit-cards .thm-card {
  border-left: 3px solid rgba(13, 148, 136, .45);
  background: #fff;
}
@media (min-width: 640px) {
  .thm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thm-grid-4,
  .thm-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .thm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .thm-grid-4,
  .thm-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.thm-card-grid + .thm-section-link,
.thm-grid-4 + .thm-section-link {
  margin-top: 1.75rem;
  text-align: center;
}

/* Hero (home + inner pages) */
.thm-hero {
  position: relative; min-height: 88vh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden;
}
.thm-hero--page {
  min-height: clamp(260px, 34vh, 400px);
  align-items: center;
}
@media (min-width: 900px) { .thm-hero:not(.thm-hero--page) { align-items: center; } }
.thm-hero__media { position: absolute; inset: 0; background-size: cover; background-position: center; }
.thm-hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(7,36,34,.96) 0%, rgba(15,118,110,.88) 48%, rgba(13,148,136,.5) 100%);
}
/* Keep hero on the shared container width so left edges match header + sections */
.thm-hero__content {
  position: relative;
  z-index: 1;
  padding-top: 7.5rem;
  padding-bottom: 4rem;
  max-width: var(--thm-container);
}
.thm-hero--page .thm-hero__content {
  padding-top: 4.5rem;
  padding-bottom: 2.25rem;
  max-width: var(--thm-container);
}
.thm-hero__content > .thm-hero__brand,
.thm-hero__content > .thm-hero__eyebrow,
.thm-hero__content > .thm-hero__title,
.thm-hero__content > .thm-hero__text,
.thm-hero__content > .thm-hero__actions {
  max-width: var(--thm-hero-copy);
}
@media (min-width: 900px) {
  .thm-hero--page .thm-hero__content { padding-top: 4.5rem; }
}
.thm-hero__content,
.thm-hero__content h1,
.thm-hero__content p { color: #fff !important; }
.thm-hero__brand { font-family: var(--thm-display); font-size: clamp(2.4rem, 6vw, 3.75rem); margin: 0; font-weight: 600; overflow-wrap: break-word; word-break: break-word; }
.thm-hero__eyebrow {
  display: inline-flex; margin: 0; padding: .35rem .8rem; border-radius: 999px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35);
  color: #fff !important; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.thm-hero__title {
  font-family: var(--thm-display); font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 600; margin: 1rem 0 0; line-height: 1.15; color: #fff !important;
  overflow-wrap: break-word; word-break: break-word;
}
.thm-hero:not(.thm-hero--page) .thm-hero__title {
  font-family: var(--thm-font); font-size: clamp(1.35rem, 3vw, 2rem);
}
.thm-hero__text { margin: 1rem 0 0; color: rgba(255,255,255,.92) !important; font-size: 1.05rem; overflow-wrap: break-word; }
.thm-hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; width: 100%; max-width: 100%; box-sizing: border-box; }

/* Home hero — left copy + optional right image */
.thm-hero--home {
  min-height: auto;
  align-items: center;
}
.thm-hero--home .thm-hero__content {
  padding-top: 4.5rem;
  padding-bottom: 3rem;
  width: 100%;
}
.thm-hero--home .thm-hero__layout {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  max-width: none;
  width: 100%;
}
.thm-hero--home .thm-hero__copy {
  max-width: 40rem;
  min-width: 0;
}
.thm-hero--home .thm-hero__brand {
  font-size: clamp(2rem, 5vw, 3.1rem);
}
.thm-hero--home .thm-hero__title {
  font-family: var(--thm-font);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  margin-top: .75rem;
  line-height: 1.35;
  font-weight: 500;
}
.thm-hero--home .thm-hero__about {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, .92) !important;
  font-size: clamp(.92rem, 1.5vw, 1.05rem);
  line-height: 1.65;
  overflow-wrap: break-word;
}
.thm-hero--home .thm-hero__aside {
  position: relative;
  width: 100%;
  max-width: 36rem;
  margin: 0;
  border-radius: var(--thm-radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  height: auto;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
}
.thm-hero--home .thm-hero__aside img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (min-width: 900px) {
  .thm-hero--home {
    min-height: 78vh;
  }
  .thm-hero--home .thm-hero__content {
    padding-top: 5.5rem;
    padding-bottom: 4rem;
  }
  .thm-hero--home .thm-hero__layout--split {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr);
    gap: 2.25rem;
    align-items: center;
  }
  .thm-hero--home .thm-hero__copy {
    max-width: none;
  }
  .thm-hero--home .thm-hero__aside {
    max-width: none;
    width: 100%;
    aspect-ratio: 4 / 3;
    justify-self: stretch;
  }
}

@media (max-width: 767px) {
  .thm-hero:not(.thm-hero--page) {
    min-height: auto;
    align-items: flex-end;
  }
  .thm-hero__content.thm-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  .thm-hero__content {
    padding-top: 3.75rem;
    padding-bottom: 2rem;
  }
  .thm-hero--page .thm-hero__content {
    padding-top: 3rem;
    padding-bottom: 1.75rem;
  }
  .thm-hero__brand {
    font-size: clamp(1.65rem, 7vw, 2.1rem);
    line-height: 1.12;
  }
  .thm-hero:not(.thm-hero--page) .thm-hero__title {
    font-size: 1rem;
    line-height: 1.4;
    margin-top: .65rem;
  }
  .thm-hero__text {
    font-size: .92rem;
    margin-top: .65rem;
    line-height: 1.45;
  }
  .thm-hero--home .thm-hero__about {
    font-size: .9rem;
    margin-top: .75rem;
    line-height: 1.55;
  }
  .thm-hero--home .thm-hero__aside {
    max-height: none;
    max-width: 100%;
    aspect-ratio: 16 / 10;
  }
  .thm-hero--home .thm-hero__content {
    padding-top: 3.25rem;
    padding-bottom: 1.75rem;
  }
  .thm-hero__actions {
    margin-top: 1.1rem;
  }
}

.thm-page-content > .wp-block-group,
.thm-page-content > .wp-block-columns,
.thm-page-content > .wp-block-shortcode {
  width: 100%;
  max-width: var(--thm-container);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--thm-gutter);
  padding-right: var(--thm-gutter);
  box-sizing: border-box;
}
.thm-page-content > .wp-block-shortcode { margin-top: 1rem; margin-bottom: 1rem; }
.thm-theme .elementor-section.elementor-section-boxed > .elementor-container {
  max-width: var(--thm-container);
}
.thm-elementor-content {
  width: 100%;
  max-width: 100%;
}
/* Prevent Hello Elementor parent from shifting our layout */
.thm-theme .site-main,
.thm-theme main.thm-main {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  width: 100% !important;
}

/* CTA band */
.thm-cta {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #0e7490 100%);
  color: #fff; padding: 3.5rem 0;
}
.thm-cta h2, .thm-cta p { color: #fff !important; }
.thm-cta__inner { display: flex; flex-wrap: wrap; gap: 1.5rem; justify-content: space-between; align-items: center; }

/* Footer */
.thm-footer { background: var(--thm-ink); color: rgba(204,251,241,.85); padding: 3.5rem 0 0; }
.thm-footer__grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
@media (min-width: 900px) { .thm-footer__grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.thm-footer__brand { font-family: var(--thm-display); font-size: 1.6rem; color: #fff; margin: 0; }
.thm-footer__label { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: #99f6e4; font-weight: 700; }
.thm-footer__links, .thm-footer__contact { list-style: none; margin: .75rem 0 0; padding: 0; display: grid; gap: .4rem; }
.thm-footer__links a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .9rem; }
.thm-footer__links a:hover { color: #fff; }
.thm-footer__disclaimer { font-size: .75rem; opacity: .65; margin-top: 1.25rem; }
.thm-footer__copy { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 1rem; font-size: .75rem; opacity: .55; }

/* Home hero slideshow */
.thm-hero-slider {
  position: relative;
  width: 100%;
  min-height: min(62vh, 520px);
  background: var(--thm-ink);
  outline: none;
}
.thm-hero-slider__viewport {
  position: relative;
  width: 100%;
  min-height: inherit;
  overflow: hidden;
}
.thm-hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.thm-hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}
.thm-hero-slider__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.thm-hero-slider__caption {
  position: relative;
  z-index: 2;
  width: min(100%, 42rem);
  margin: 0 var(--thm-gutter);
  padding: 1.15rem 1.35rem 1.25rem;
  text-align: center;
  color: #fff;
  background: rgba(15, 118, 110, 0.78);
  backdrop-filter: blur(2px);
  box-sizing: border-box;
}
.thm-hero-slider__title {
  margin: 0;
  font-family: var(--thm-display);
  font-size: clamp(1.45rem, 3.5vw, 2.15rem);
  font-weight: 600;
  line-height: 1.2;
  color: #fff !important;
}
.thm-hero-slider__rule {
  display: block;
  width: 3rem;
  height: 2px;
  margin: 0.7rem auto 0;
  background: rgba(255, 255, 255, 0.85);
}
.thm-hero-slider__desc {
  margin: 0.75rem 0 0;
  font-size: clamp(0.92rem, 1.6vw, 1.05rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95) !important;
}
.thm-hero-slider__hit {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: block;
  text-decoration: none;
  cursor: pointer;
}
.thm-hero-slider__slide--link .thm-hero-slider__caption {
  z-index: 4;
  pointer-events: none;
}
.thm-hero-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.88);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.35);
}
.thm-hero-slider__nav:hover,
.thm-hero-slider__nav:focus-visible {
  background: var(--thm-brand);
  outline: none;
}
.thm-hero-slider__nav--prev { left: 0.85rem; }
.thm-hero-slider__nav--next { right: 0.85rem; }
.thm-hero-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 0.45rem;
}
.thm-hero-slider__dot {
  width: 0.55rem;
  height: 0.55rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.thm-hero-slider__dot.is-active,
.thm-hero-slider__dot:hover {
  background: #fff;
}
@media (min-width: 900px) {
  .thm-hero-slider { min-height: min(78vh, 720px); }
  .thm-hero-slider__caption { padding: 1.35rem 1.75rem 1.45rem; }
  .thm-hero-slider__nav--prev { left: 1.25rem; }
  .thm-hero-slider__nav--next { right: 1.25rem; }
}
@media (max-width: 640px) {
  .thm-hero-slider { min-height: min(62vh, 520px); }
  .thm-hero-slider__nav { width: 2.35rem; height: 2.35rem; }
}

/* Company intro under hero */
.thm-home-intro {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
  background:
    linear-gradient(180deg, rgba(204, 251, 241, 0.45), transparent 55%),
    var(--thm-bg);
}
.thm-home-intro__inner {
  max-width: var(--thm-intro-max);
  text-align: center;
}
.thm-home-intro__brand {
  margin: 0;
  font-family: var(--thm-display);
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 600;
  color: var(--thm-ink);
  line-height: 1.15;
}
.thm-home-intro__about {
  margin: 1rem auto 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--thm-body);
}

/* Floating action stack */
.thm-fab-stack {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
}
.thm-fab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.55rem 0.95rem 0.55rem 0.7rem;
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}
.thm-fab:hover {
  transform: scale(1.04);
  color: #fff !important;
}
.thm-fab__icon {
  display: grid;
  place-items: center;
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}
.thm-fab__icon svg { display: block; }
.thm-fab__label { white-space: nowrap; }
.thm-fab--book,
.thm-fab--test {
  background: var(--thm-brand-deep);
}
.thm-fab--book:hover,
.thm-fab--test:hover {
  background: var(--thm-brand);
}
.thm-fab--whatsapp {
  background: #25d366;
  box-shadow: 0 10px 24px rgba(16, 185, 129, 0.35);
}
.thm-fab--whatsapp:hover { background: #1ebe57; }
@media (max-width: 767px) {
  .thm-fab {
    width: 3.15rem;
    height: 3.15rem;
    min-height: 0;
    padding: 0;
    justify-content: center;
  }
  .thm-fab__label { display: none; }
}
/* Legacy single WhatsApp FAB (kept if template reused) */
.thm-whatsapp-fab {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 60;
  width: 56px; height: 56px; border-radius: 999px; background: #25d366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(16,185,129,.35); text-decoration: none;
}
.thm-whatsapp-fab:hover { transform: scale(1.05); color: #fff; }

/* Forms */
.thm-form { display: grid; gap: 1rem; }
.thm-form--2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .thm-form--2 { grid-template-columns: 1fr 1fr; } }
.thm-field label { display: block; font-size: .875rem; font-weight: 600; color: var(--thm-ink); margin-bottom: .4rem; }
.thm-field input, .thm-field select, .thm-field textarea {
  width: 100%; border: 1px solid rgba(13,148,136,.3); border-radius: .75rem;
  padding: .7rem .9rem; font: inherit; background: rgba(238,246,245,.7); color: var(--thm-ink);
  box-sizing: border-box;
}
.thm-field input:focus, .thm-field select:focus, .thm-field textarea:focus {
  outline: 2px solid rgba(13,148,136,.25); border-color: var(--thm-brand); background: #fff;
}

/* Offices grid (home) */
.thm-offices-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .thm-offices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .thm-offices-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.thm-office-card__title {
  margin: .35rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}
.thm-office-card__media {
  aspect-ratio: 4 / 3;
  border-radius: var(--thm-radius-sm);
  overflow: hidden;
  margin: -1.1rem -1.15rem 1rem;
  border-bottom: 1px solid rgba(13,148,136,.12);
}
.thm-office-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thm-office-card__body { display: flex; flex-direction: column; flex: 1; }
.thm-office-card__location {
  margin: .55rem 0 0;
  color: var(--thm-body);
  font-size: .95rem;
  line-height: 1.45;
}
.thm-office-card__phone {
  margin: .85rem 0 0;
}
.thm-office-card__phone a {
  color: var(--thm-brand-deep);
  font-weight: 700;
  text-decoration: none;
}
.thm-office-card__phone a:hover { text-decoration: underline; }

.thm-brand-card__logo,
.thm-brand-hero__logo {
  max-width: 140px;
  margin-bottom: .75rem;
}
.thm-brand-card__logo img,
.thm-brand-hero__logo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.thm-media-card--featured {
  border-left: 3px solid var(--thm-brand);
  background: linear-gradient(165deg, #fff 0%, #f0faf8 100%);
}

/* Contact page */
.thm-contact-page { overflow: visible; }
.thm-contact-page__inner {
  max-width: 40rem;
  margin-inline: auto;
}
.thm-contact-tabs {
  margin-top: .25rem;
}
.thm-contact-tabs__nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1rem;
}
.thm-contact-tabs__btn {
  flex: 1 1 auto;
  min-width: 5.5rem;
  border: 1px solid rgba(13,148,136,.28);
  background: #fff;
  color: var(--thm-ink);
  border-radius: .85rem;
  padding: .7rem 1rem;
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: .18s ease;
}
.thm-contact-tabs__btn:hover {
  border-color: rgba(13,148,136,.5);
  background: var(--thm-brand-soft);
}
.thm-contact-tabs__btn.is-active {
  background: var(--thm-brand);
  border-color: var(--thm-brand);
  color: #fff;
}
.thm-contact-tabs__panel { margin: 0; }
.thm-contact-tabs__panel[hidden] { display: none !important; }
.thm-contact-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 1rem;
}
.thm-contact-list li {
  display: grid !important;
  gap: .25rem;
  padding: .85rem 0 0;
  border-top: 1px solid rgba(13, 148, 136, 0.16);
}
.thm-contact-list li:first-child {
  padding-top: 0;
  border-top: 0;
}
.thm-contact-list strong {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--thm-brand-deep);
  font-weight: 700;
  font-family: var(--thm-font);
}
.thm-contact-list span,
.thm-contact-list a {
  color: var(--thm-ink) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.4;
  word-break: break-word;
}
.thm-contact-list a:hover {
  color: var(--thm-brand-deep) !important;
  text-decoration: underline;
}
.thm-contact-tabs__actions {
  margin-top: 1.35rem;
}
.thm-contact-tabs__actions .thm-btn {
  width: 100%;
  justify-content: center;
}
.thm-contact-tabs__wa-note {
  margin: .75rem 0 0;
  text-align: center;
  font-size: .88rem;
  color: var(--thm-body);
}

/* Hearing test */
.thm-test-shell { background: #fff; border: 1px solid rgba(13,148,136,.28); border-radius: 1.5rem; padding: 1.5rem; box-shadow: 0 8px 28px rgba(19,78,74,.06); }
.thm-test-alert { display: flex; gap: .75rem; padding: .9rem 1rem; border-radius: 1rem; background: #fffbeb; border: 1px solid #fde68a; color: #78350f; font-size: .9rem; margin-bottom: 1rem; }
.thm-test-options { display: grid; gap: .75rem; }
.thm-test-option {
  text-align: left; border: 1px solid rgba(13,148,136,.25); background: var(--thm-surface);
  border-radius: 1rem; padding: 1rem; cursor: pointer; font-weight: 600; color: var(--thm-ink);
}
.thm-test-option:hover { border-color: var(--thm-brand); background: var(--thm-brand-soft); }
.thm-tone-stage {
  border-radius: 1.5rem; min-height: 220px; padding: 1.5rem;
  background: linear-gradient(135deg, #134e4a, #0f766e 50%, #0d9488); color: #fff; position: relative; overflow: hidden;
}
.thm-wave { display: flex; align-items: flex-end; gap: 4px; height: 80px; justify-content: center; margin-top: 1.5rem; }
.thm-wave span { width: 6px; border-radius: 999px; background: rgba(255,255,255,.85); height: 12px; transition: height .15s; }
.thm-wave.is-playing span { animation: thmWave 0.9s ease-in-out infinite; }
.thm-wave span:nth-child(odd) { animation-delay: .05s; }
@keyframes thmWave { 0%,100% { height: 12px; } 50% { height: 42px; } }

/* Comparison */
.thm-compare-filters { display: grid; gap: .75rem; margin-bottom: 1rem; }
@media (min-width: 768px) { .thm-compare-filters { grid-template-columns: repeat(3, 1fr); } }
.thm-table-wrap { overflow-x: auto; border: 1px solid rgba(13,148,136,.25); border-radius: 1rem; background: #fff; }
.thm-table { width: 100%; border-collapse: collapse; min-width: 900px; font-size: .875rem; }
.thm-table th { text-align: left; padding: .85rem 1rem; background: var(--thm-surface); color: var(--thm-brand-deep); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.thm-table td { padding: .85rem 1rem; border-top: 1px solid rgba(13,148,136,.12); color: var(--thm-body); }
.thm-table td strong { color: var(--thm-ink); }

/* Section helpers */
.thm-section-head { margin-bottom: 1.35rem; max-width: var(--thm-intro-max); }
.thm-section-head h2 { margin: .55rem 0 0; font-size: clamp(1.45rem, 3vw, 1.85rem); }
.thm-section-head p { margin: .55rem 0 0; font-size: .98rem; line-height: 1.65; max-width: var(--thm-intro-max); }
.thm-section-head--center { text-align: center; margin-inline: auto; }
.thm-section-link { margin-top: 1.5rem; }
.thm-section-link a:not(.thm-btn) { font-weight: 700; color: var(--thm-brand-deep); text-decoration: none; }
.thm-section-link a:not(.thm-btn):hover { text-decoration: underline; }
.thm-section-link .thm-btn { text-decoration: none; }
.thm-section-link .thm-btn--primary { color: #fff; }
.thm-section-link .thm-btn--primary:hover { color: #fff; }

/* Trust / stats */
.thm-stats {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 1rem;
}
@media (min-width: 900px) {
  .thm-stats { grid-template-columns: repeat(4, 1fr); }
}
.thm-stat {
  background: #fff; border: 1px solid rgba(13,148,136,.22);
  border-radius: var(--thm-radius-md); padding: 1.1rem 1rem; text-align: center;
  box-shadow: var(--thm-shadow-card);
}
.thm-stat__value {
  display: block; font-family: var(--thm-display); font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600; color: var(--thm-ink); line-height: 1.1;
}
.thm-stat__label { display: block; margin-top: .4rem; font-size: .9rem; color: var(--thm-body); }
.thm-trust-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .thm-trust-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .thm-trust-badges { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.thm-trust-badge {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
  padding: .95rem 1rem;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(13,148,136,.2);
  border-radius: 999px;
  color: var(--thm-ink);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.3;
  box-shadow: none;
}

/* Testimonials carousel */
.thm-stories__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  max-width: none;
  margin-bottom: 1.5rem;
}
.thm-stories__head .thm-section-head,
.thm-stories__head > div:first-child { max-width: 40rem; }
.thm-stories__nav { display: flex; gap: .5rem; }
.thm-stories__btn {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(13,148,136,.3);
  background: #fff;
  color: var(--thm-ink);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: .18s ease;
}
.thm-stories__btn:hover:not(:disabled) {
  background: var(--thm-brand-soft);
  border-color: rgba(13,148,136,.55);
}
.thm-stories__btn:disabled {
  opacity: .35;
  cursor: default;
}
.thm-stories__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 -.25rem;
  padding: .25rem;
}
.thm-stories__viewport::-webkit-scrollbar { display: none; }
.thm-stories__track {
  display: flex;
  gap: 1.1rem;
  min-width: min-content;
}
.thm-stories__card {
  flex: 0 0 min(100%, 320px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0;
  background: #fff;
  border: 1px solid rgba(13,148,136,.22);
  border-radius: var(--thm-radius-md);
  padding: 1.2rem 1.15rem;
  box-shadow: var(--thm-shadow-card);
  box-sizing: border-box;
  min-height: 13rem;
}
@media (min-width: 720px) {
  .thm-stories__card { flex-basis: calc((100% - 1.1rem) / 2); }
}
@media (min-width: 1024px) {
  .thm-stories__card { flex-basis: calc((100% - 2.2rem) / 3); }
}
.thm-testimonial__quote {
  margin: 0; font-family: var(--thm-display); font-size: 1.15rem;
  line-height: 1.45; color: var(--thm-ink);
}
.thm-testimonial__meta {
  margin-top: auto; padding-top: 1rem;
  border-top: 1px solid rgba(13,148,136,.18);
  display: grid; gap: .2rem; font-size: .9rem;
}
.thm-testimonial__meta strong { color: var(--thm-ink); }
.thm-testimonial__meta span { color: var(--thm-body); }

/* Scroll video (home) — one-section full-bleed background */
.thm-scroll-frames {
  position: relative;
  height: 100vh;
  min-height: 560px;
  max-height: 900px;
  background: #072422;
}
@media (max-width: 767px) {
  .thm-scroll-frames { min-height: 480px; max-height: none; }
}
.thm-scroll-frames__sticky {
  position: relative;
  height: 100%;
  display: grid;
  place-items: end start;
  overflow: hidden;
  isolation: isolate;
}
.thm-scroll-frames__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #072422;
}
.thm-scroll-frames__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  pointer-events: none;
  user-select: none;
  background: #072422;
}
.thm-scroll-frames__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(7,36,34,.35) 0%, rgba(7,36,34,.15) 40%, rgba(7,36,34,.72) 100%),
    radial-gradient(ellipse 80% 60% at 70% 40%, transparent 30%, rgba(7,36,34,.45) 100%);
}
.thm-scroll-frames__copy {
  position: relative;
  z-index: 2;
  padding-bottom: clamp(2.5rem, 8vh, 5rem);
  max-width: var(--thm-container);
  color: #ecfdf8;
}
.thm-scroll-frames__copy > .thm-scroll-frames__eyebrow,
.thm-scroll-frames__copy > .thm-scroll-frames__title,
.thm-scroll-frames__copy > .thm-scroll-frames__text {
  max-width: var(--thm-hero-copy);
}
.thm-scroll-frames__eyebrow {
  display: inline-flex;
  margin: 0;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, .55);
  border: 1px solid rgba(153, 246, 228, .45);
  color: #ecfdf5;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
.thm-scroll-frames__title {
  margin: .7rem 0 .75rem;
  color: #f0fdfa;
  font-family: var(--thm-display);
  font-size: clamp(1.75rem, 4vw, 2.55rem);
  font-weight: 600;
  line-height: 1.15;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.thm-scroll-frames__text {
  margin: 0;
  color: rgba(240,253,250,.92);
  font-size: 1.05rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.3);
}
@media (prefers-reduced-motion: reduce) {
  .thm-scroll-frames,
  .thm-scroll-frames.is-reduced-motion { height: 100vh; min-height: 480px; }
}

/* Videos — larger responsive iframes */
.thm-video-strip {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  width: 100%;
}
@media (min-width: 768px) {
  .thm-video-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.35rem; }
}
.thm-video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 220px;
  overflow: hidden;
  background: #0f172a;
  border-radius: 1rem;
  box-shadow: 0 12px 32px rgba(19,78,74,.14);
  border: 1px solid rgba(13,148,136,.2);
}
@media (min-width: 768px) {
  .thm-video-embed { min-height: 260px; }
}
.thm-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.thm-video-empty {
  max-width: 40rem;
  margin: 0 auto;
  font-size: .95rem;
  color: var(--thm-body);
  text-align: center;
}

.thm-stories__nav--alone {
  display: flex;
  justify-content: flex-end;
  gap: .5rem;
  margin-bottom: 1rem;
}
.thm-scroll-frames--media-only .thm-scroll-frames__sticky {
  place-items: center;
}
.thm-scroll-frames--media-only {
  min-height: 420px;
  height: 70vh;
  max-height: 720px;
}
.thm-reveal { opacity: 1; transform: none; }
.js .thm-reveal { opacity: 0; transform: translateX(-20px); transition: opacity .55s ease, transform .55s ease; }
.js .thm-reveal.is-visible { opacity: 1; transform: none; }
.js .thm-reveal--right { transform: translateX(20px); }
.js .thm-reveal--up { transform: translateY(18px); }

.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px;
}

/* Home visit spotlight */
.thm-home-spotlight {
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 55%, #115e59 100%);
  color: #fff;
  padding: 2.25rem 0;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.thm-home-spotlight__inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .thm-home-spotlight__inner {
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
  }
}
.thm-home-spotlight__media {
  border-radius: var(--thm-radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.2);
}
.thm-home-spotlight__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thm-home-spotlight__eyebrow {
  display: inline-flex;
  margin: 0;
  padding: .25rem .6rem;
  border-radius: var(--thm-radius-sm);
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #ecfdf5;
}
.thm-home-spotlight h2 {
  margin: .65rem 0 0;
  color: #fff !important;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
}
.thm-home-spotlight p {
  margin: .65rem 0 0;
  color: rgba(255,255,255,.92);
  font-size: .98rem;
  line-height: 1.6;
  max-width: 36rem;
}
.thm-home-spotlight__list {
  margin: .85rem 0 0;
  padding: 0 0 0 1.1rem;
  color: rgba(255,255,255,.9);
  font-size: .92rem;
  line-height: 1.55;
}
.thm-home-spotlight__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.15rem;
}
@media (max-width: 640px) {
  .thm-home-spotlight__actions { flex-direction: column; }
  .thm-home-spotlight__actions .thm-btn { width: 100%; justify-content: center; }
}

/* Media cards (tests, styles, services) */
.thm-media-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(13,148,136,.22);
  border-radius: var(--thm-radius-md);
  overflow: hidden;
  box-shadow: var(--thm-shadow-card);
  height: 100%;
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.thm-media-card:hover {
  transform: translateY(-2px);
  border-color: rgba(13,148,136,.4);
  box-shadow: 0 8px 22px rgba(19,78,74,.1);
}
.thm-media-card__img {
  aspect-ratio: 4 / 3;
  background: var(--thm-surface);
  overflow: hidden;
}
.thm-media-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thm-media-card__body {
  padding: var(--thm-card-pad);
  display: flex;
  flex-direction: column;
  flex: 1;
}
.thm-media-card__body h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--thm-ink);
}
.thm-media-card__best {
  margin: .45rem 0 0;
  font-size: .78rem;
  font-weight: 700;
  color: var(--thm-brand);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.thm-media-card__body p {
  margin: .5rem 0 0;
  font-size: .92rem;
  line-height: 1.6;
  color: var(--thm-body);
  flex: 1;
}
.thm-media-card__link {
  margin-top: .85rem;
  font-size: .84rem;
  font-weight: 700;
  color: var(--thm-brand-deep);
}

.thm-grid-2--media {
  align-items: stretch;
}

.thm-type-intro {
  display: grid;
  gap: 1.35rem;
  align-items: start;
  margin: 0 0 1.75rem;
}
.thm-type-intro__copy {
  min-width: 0;
}
.thm-type-intro__best {
  margin: 0 0 .75rem;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--thm-brand-deep);
}
.thm-type-intro__copy p {
  margin: 0 0 .85rem;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--thm-body);
}
.thm-type-intro__copy p:last-child {
  margin-bottom: 0;
}
.thm-type-intro__media {
  min-width: 0;
}
.thm-type-intro__img {
  border-radius: var(--thm-radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--thm-surface);
  border: 1px solid rgba(13, 148, 136, .22);
  box-shadow: var(--thm-shadow-card);
}
.thm-type-intro__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Mobile: image above text */
.thm-type-intro--has-media .thm-type-intro__media {
  order: -1;
}
@media (min-width: 768px) {
  .thm-type-intro--has-media {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2rem;
    align-items: center;
  }
  .thm-type-intro--has-media .thm-type-intro__copy,
  .thm-type-intro--has-media .thm-type-intro__media {
    order: 0;
  }
  .thm-type-intro__img {
    aspect-ratio: 4 / 3;
  }
}
@media (min-width: 1024px) {
  .thm-type-intro--has-media {
    gap: 2.5rem;
  }
}

.thm-split__media.thm-media-card {
  height: auto;
  min-height: 0;
}

.thm-cta--inline {
  margin-top: 2.5rem;
  border-radius: var(--thm-radius-md);
  padding: 1.75rem;
}

.thm-cta--inline h2 {
  margin: 0;
}

.thm-cta--inline p {
  margin: .5rem 0 1rem;
}

.thm-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

/* FAQ blocks */
.thm-faq-block {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(13,148,136,.18);
}
.thm-faq-block h2 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
}
.thm-faq {
  border: 1px solid rgba(13,148,136,.18);
  border-radius: var(--thm-radius-md);
  padding: 1rem 1.1rem;
  margin-top: .75rem;
  background: #fff;
}
.thm-faq h3 {
  margin: 0;
  font-size: 1rem;
  font-family: var(--thm-font);
  font-weight: 700;
  color: var(--thm-ink);
}
.thm-faq p {
  margin: .45rem 0 0;
  font-size: .92rem;
  line-height: 1.6;
}

/* Why choose us trio */
.thm-why-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .thm-why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.thm-why-card {
  background: #fff;
  border: 1px solid rgba(13,148,136,.2);
  border-radius: var(--thm-radius-md);
  padding: var(--thm-card-pad);
  box-shadow: var(--thm-shadow-card);
}
.thm-why-card h3 {
  margin: .35rem 0 0;
  font-size: 1.05rem;
}
.thm-why-card p {
  margin: .5rem 0 0;
  font-size: .92rem;
  line-height: 1.6;
}

/* Team credentials */
.thm-team-card .thm-card__meta {
  font-size: .78rem;
  line-height: 1.45;
  color: var(--thm-brand-deep);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

/* Blog refresh */
.thm-blog-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .thm-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .thm-blog-grid.thm-blog-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.thm-blog-card {
  padding: 0;
  overflow: hidden;
  min-height: 0;
}
.thm-blog-card__media {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #134e4a, #0d9488);
  overflow: hidden;
}
.thm-blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thm-blog-card__body {
  padding: 1rem 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.thm-blog-card__cat {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--thm-brand);
}
.thm-blog-card__title {
  margin: .5rem 0 0;
  font-size: 1.12rem;
  line-height: 1.35;
  color: var(--thm-ink);
}
.thm-blog-card__excerpt {
  margin: .45rem 0 0;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--thm-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.thm-blog-card__meta {
  margin-top: auto;
  padding-top: .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 600;
  color: var(--thm-brand-deep);
}
.thm-blog-card__read {
  color: var(--thm-brand-deep);
  text-decoration: none;
  font-weight: 700;
}
.thm-blog-card a { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.thm-prose { max-width: var(--thm-prose-max); margin: 0 auto; }
.thm-card--article.thm-prose,
.thm-container > .thm-card--article { max-width: none; margin-inline: 0; }
.thm-container > .thm-section-head { max-width: var(--thm-intro-max); }
.thm-prose h2 { margin-top: 1.75rem; font-size: 1.55rem; }
.thm-prose h3 { margin-top: 1.25rem; font-size: 1.2rem; }
.thm-prose p { margin: .85rem 0; line-height: 1.65; }
.thm-prose ul { padding-left: 1.25rem; }
.thm-prose li { margin: .35rem 0; }
.thm-prose--page { max-width: none; margin: 0; }
.thm-prose--page p { font-size: 1rem; line-height: 1.7; color: var(--thm-body); }
.thm-prose--flush { margin: 0; }
.thm-split { align-items: start; gap: 1.5rem; margin: 1.25rem 0; }
.thm-split__content h3, .thm-split__content h4 { margin: 0 0 .75rem; color: var(--thm-ink); }
.thm-split__content h4 { font-size: 1rem; margin-top: 1rem; }
.thm-split__content ul { margin: .5rem 0 0; padding-left: 1.25rem; line-height: 1.65; }
.thm-test-deep-dive { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid rgba(13,148,136,.12); }
.thm-test-deep-dive:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.thm-article-panel {
  background: #fff;
  border: 1px solid rgba(13,148,136,.22);
  border-radius: var(--thm-radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--thm-shadow-card);
  max-width: 48rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .thm-article-panel { padding: 2.25rem 2rem; }
}
.thm-services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 640px) {
  .thm-services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) {
  .thm-services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.thm-styles-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 640px) {
  .thm-styles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .thm-styles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.thm-styles-grid > .thm-media-card {
  min-width: 0;
  height: 100%;
}
.thm-service-card__thumb {
  aspect-ratio: 16 / 9;
  border-radius: var(--thm-radius-sm);
  overflow: hidden;
  margin-bottom: .75rem;
  background: var(--thm-surface);
}
.thm-service-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Brand models (detail pages) */
.thm-brand-models-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 640px) {
  .thm-brand-models-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .thm-brand-models-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.thm-brand-model-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--thm-white);
  border: 1px solid rgba(13, 148, 136, 0.18);
  border-radius: var(--thm-radius-md);
  overflow: hidden;
  box-shadow: var(--thm-shadow-card);
  scroll-margin-top: 5.5rem;
}
.thm-brand-model-card__img {
  aspect-ratio: 16 / 10;
  background: var(--thm-surface);
  overflow: hidden;
}
.thm-brand-model-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thm-brand-model-card__body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
}
.thm-brand-model-card__body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--thm-ink);
}
.thm-brand-model-card__body p,
.thm-brand-model-card__desc {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--thm-body);
}

/* Homepage brand explorer */
.thm-brand-explorer-section {
  background:
    linear-gradient(180deg, rgba(238, 246, 245, 0.85) 0%, transparent 40%),
    var(--thm-bg);
}
.thm-brand-explorer {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.5rem;
}
.thm-brand-explorer__rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.thm-brand-explorer__brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: var(--thm-radius-md);
  background: var(--thm-white);
  color: var(--thm-ink);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.thm-brand-explorer__brand:hover,
.thm-brand-explorer__brand:focus-visible {
  border-color: var(--thm-brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}
.thm-brand-explorer__brand.is-active {
  background: var(--thm-brand-soft);
  border-color: var(--thm-brand);
  color: var(--thm-brand-deep);
}
.thm-brand-explorer__logo {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.thm-brand-explorer__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.thm-brand-explorer__name {
  white-space: nowrap;
}
.thm-brand-explorer__panels {
  min-width: 0;
}
.thm-brand-explorer__panel {
  background: var(--thm-white);
  border: 1px solid rgba(13, 148, 136, 0.16);
  border-radius: var(--thm-radius-md);
  padding: 1.25rem 1.15rem 1.35rem;
  box-shadow: var(--thm-shadow-card);
}
.thm-brand-explorer__panel.is-animating {
  animation: thm-brand-panel-in 0.22s ease both;
}
@keyframes thm-brand-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .thm-brand-explorer__panel.is-animating {
    animation: none;
  }
  .thm-brand-explorer__brand {
    transition: none;
  }
}
.thm-brand-explorer__panel-head {
  margin-bottom: 1.1rem;
  max-width: 40rem;
}
.thm-brand-explorer__panel-head h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  color: var(--thm-ink);
}
.thm-brand-explorer__panel-head p {
  margin: 0 0 0.85rem;
  line-height: 1.6;
  color: var(--thm-body);
}
.thm-brand-explorer__models {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}
.thm-brand-explorer__model {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 0.65rem;
  border-radius: var(--thm-radius-sm);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.thm-brand-explorer__model:hover,
.thm-brand-explorer__model:focus-visible {
  background: var(--thm-surface);
  border-color: rgba(13, 148, 136, 0.2);
  outline: none;
}
.thm-brand-explorer__model-img {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 5.5rem;
  border-radius: var(--thm-radius-sm);
  overflow: hidden;
  background: var(--thm-surface);
}
.thm-brand-explorer__model-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.thm-brand-explorer__model-title {
  display: block;
  font-weight: 600;
  color: var(--thm-ink);
  margin-bottom: 0.2rem;
}
.thm-brand-explorer__model-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--thm-body);
}
.thm-brand-explorer__empty {
  margin: 0;
  color: var(--thm-body);
  line-height: 1.6;
}

@media (min-width: 768px) {
  .thm-brand-explorer {
    display: grid;
    grid-template-columns: minmax(10rem, 30%) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
  }
  .thm-brand-explorer__rail {
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0;
  }
  .thm-brand-explorer__brand {
    width: 100%;
    justify-content: flex-start;
  }
  .thm-brand-explorer__models {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .thm-brand-explorer__model {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .thm-brand-explorer__model-img {
    aspect-ratio: 16 / 10;
    min-height: 8rem;
  }
}

@media (min-width: 1024px) {
  .thm-brand-explorer__panel {
    padding: 1.5rem 1.5rem 1.65rem;
  }
  .thm-brand-explorer__models {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
