.hwe-rich-text {
  max-width: 100%;
  overflow-x: auto;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hwe-rich-text img,
.hwe-rich-text video,
.hwe-rich-text iframe,
.hwe-rich-text svg {
  max-width: 100%;
  height: auto !important;
}

.hwe-rich-text table {
  max-width: 100%;
}

.hwe-rich-text pre,
.hwe-rich-text code {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre-wrap;
}

/*
 * Testimonials (widget and pack). The <section> is full-bleed (edge to edge, like the footer);
 * the content lives in the template .container. To use a background image later, set on the
 * section (or :root):  --hwe-testimonials-bg-image: url(...);  --hwe-testimonials-overlay: rgba(0, 0, 0, 0.55);
 */
.hwe-testimonials-section {
  --hwe-testimonials-bg: var(--hwe-footer-color, #0f172a);
  --hwe-testimonials-bg-image: none;
  --hwe-testimonials-overlay: transparent;
  --hwe-testimonials-text: #fff;
  --hwe-testimonials-accent: #d4a05a;
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: clamp(2.5rem, 8vw, 6rem) 0;
  color: var(--hwe-testimonials-text);
  background-color: var(--hwe-testimonials-bg);
  background-image: linear-gradient(var(--hwe-testimonials-overlay), var(--hwe-testimonials-overlay)), var(--hwe-testimonials-bg-image);
  background-size: cover;
  background-position: center;
}

@supports (color: color-mix(in srgb, red 50%, white)) {
  .hwe-testimonials-section {
    --hwe-testimonials-accent: color-mix(in srgb, var(--hwe-hero-background-color, #d4a05a) 55%, #fff);
  }
}

.hwe-testimonials {
  position: relative;
  max-width: 100%;
  text-align: center;
  overflow-wrap: anywhere;
}

.hwe-t-kicker {
  margin: 0 0 0.5rem;
  color: var(--hwe-testimonials-accent);
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.hwe-t-heading {
  margin: 0 0 clamp(1.5rem, 4vw, 2.5rem);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 5vw, 2.75rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: inherit;
}

.hwe-testimonials .carousel-inner {
  overflow: hidden;
}

.hwe-testimonial {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 clamp(2.5rem, 10%, 6rem);
}

.hwe-t-quote {
  display: block;
  height: 0.6em;
  margin-bottom: 0.25em;
  color: var(--hwe-testimonials-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  line-height: 1;
}

.hwe-testimonial-body {
  max-width: 44rem;
  margin: 1rem auto 0.75rem;
  font-weight: 300;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.6;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.hwe-testimonial-body p {
  margin: 0;
}

.hwe-testimonial-stars {
  margin-bottom: 1rem;
  color: #f5c542;
  font-size: 0.95rem;
  letter-spacing: 0.15em;
}

.hwe-t-person {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 100%;
  text-align: left;
}

.hwe-testimonial-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  aspect-ratio: 1 / 1;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  overflow: hidden;
  background: var(--hwe-testimonials-accent);
  color: #111;
  font-weight: 600;
  font-size: 1.25rem;
}

.hwe-testimonial-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.hwe-t-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hwe-testimonial-author {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.hwe-t-role {
  color: var(--hwe-testimonials-accent);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

/* Thin light arrows on the left/right edges, vertically centered. */
.hwe-testimonials .carousel-control-prev,
.hwe-testimonials .carousel-control-next {
  width: clamp(2rem, 8%, 4rem);
  color: var(--hwe-testimonials-text);
  opacity: 0.7;
}

.hwe-testimonials .carousel-control-prev:hover,
.hwe-testimonials .carousel-control-next:hover {
  opacity: 1;
}

.hwe-testimonials .carousel-control-prev-icon,
.hwe-testimonials .carousel-control-next-icon {
  width: 1.4rem;
  height: 1.4rem;
  background-image: none;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  filter: none;
}

.hwe-testimonials .carousel-control-prev-icon {
  transform: rotate(45deg);
}

.hwe-testimonials .carousel-control-next-icon {
  transform: rotate(-135deg);
}

/* Small round dots. */
.hwe-testimonials .carousel-indicators {
  position: static;
  margin: 1.5rem 0 0;
  justify-content: center;
}

.hwe-testimonials .carousel-indicators [data-bs-target] {
  flex: none;
  box-sizing: border-box;
  width: 0.6rem;
  height: 0.6rem;
  margin: 0 0.35rem;
  padding: 0;
  border: 1px solid var(--hwe-testimonials-text);
  border-radius: 50%;
  background-color: transparent;
  background-clip: border-box;
  opacity: 0.7;
}

.hwe-testimonials .carousel-indicators .active {
  background-color: var(--hwe-testimonials-text);
  opacity: 1;
}

.hwe-t-cta {
  margin-top: 2rem;
  border: 1px solid var(--hwe-testimonials-accent);
  border-radius: 0.2rem;
  color: var(--hwe-testimonials-accent);
  background: transparent;
}

.hwe-t-cta:hover,
.hwe-t-cta:focus-visible {
  background: var(--hwe-testimonials-accent);
  color: #111;
}

@media (max-width: 575.98px) {
  .hwe-testimonial {
    padding: 0 2.25rem;
  }

  .hwe-testimonials .carousel-control-prev,
  .hwe-testimonials .carousel-control-next {
    width: 2rem;
  }

  .hwe-testimonials .carousel-control-prev-icon,
  .hwe-testimonials .carousel-control-next-icon {
    width: 1rem;
    height: 1rem;
  }
}

/* Testimonial form modal (built by testimonials.js) */
.hwe-t-modal .modal-dialog {
  width: min(32rem, calc(100vw - 2rem));
  max-width: min(32rem, calc(100vw - 2rem));
  height: calc(100dvh - 2rem);
  max-height: 44rem;
  margin: 1rem auto;
}

/* Fixed box: header and footer stay put, only the body scrolls (form wraps all three). */
.hwe-t-modal .modal-content {
  height: 100%;
  max-height: 100%;
  overflow: hidden;
}

.hwe-t-modal .modal-content > form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.hwe-t-modal .modal-header,
.hwe-t-modal .modal-footer {
  flex: 0 0 auto;
}

.hwe-t-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.hwe-t-avatar {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 4.5rem;
  min-width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.25rem;
  padding: 0;
  border: 2px dashed #adb5bd;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  background: #f1f3f5;
  color: #6c757d;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hwe-t-avatar:hover,
.hwe-t-avatar:focus-visible {
  border-color: #0d6efd;
  color: #0d6efd;
}

.hwe-t-avatar:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.35);
}

.hwe-t-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hwe-t-avatar svg {
  width: 2.5rem;
  height: 2.5rem;
}

.hwe-t-avatar.has-photo {
  border-style: solid;
}

/* Rating: only stars, no button chrome. Gray outline -> gold fill (selected or hovered). */
.hwe-t-stars {
  display: inline-flex;
  gap: 0.15rem;
}

.hwe-t-stars button {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  margin: 0;
  padding: 0.1rem;
  border: 0;
  border-radius: 0.25rem;
  background: none;
  box-shadow: none;
  color: #adb5bd;
  cursor: pointer;
  line-height: 1;
}

.hwe-t-stars button svg {
  width: 2rem;
  height: 2rem;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  transition: fill 0.12s, color 0.12s, transform 0.12s;
}

.hwe-t-stars button.is-on,
.hwe-t-stars button.is-hover {
  color: #f5a623;
}

.hwe-t-stars button.is-on svg,
.hwe-t-stars button.is-hover svg {
  fill: currentColor;
}

.hwe-t-stars button:hover svg {
  transform: scale(1.12);
}

.hwe-t-stars button:focus-visible {
  outline: 2px solid #0d6efd;
  outline-offset: 2px;
}

/* File picker layer: sits above the testimonial modal content. */
.hwe-t-filelayer {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
}

.hwe-t-filelayer[hidden] {
  display: none;
}

.hwe-t-filebox {
  width: 100%;
  max-width: min(26rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 1.25rem;
  border-radius: 0.5rem;
  background: #fff;
  color: #212529;
}

.hwe-t-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 9rem;
  padding: 1rem;
  border: 2px dashed rgba(0, 0, 0, 0.35);
  border-radius: 0.5rem;
  text-align: center;
  cursor: pointer;
}

.hwe-t-dropzone:hover,
.hwe-t-dropzone.is-over,
.hwe-t-dropzone:focus-visible {
  border-color: #0d6efd;
  background: rgba(13, 110, 253, 0.06);
  outline: none;
}

/* Hero sits on a flex body (d-flex flex-column). iOS Safari uses the text min-content as
   min-width, so a long subhead (letter-spacing on .hwe-kicker) blows past the viewport.
   Desktop 50% lives in the pack @media (min-width: 992px) and still wins there. */
.hwe-hero {
  min-width: 0;
  max-width: 100%;
}
.hwe-hero .container,
.hwe-hero .container > * {
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.hwe-kicker {
  overflow-wrap: anywhere;
  word-break: break-word;
}
@media (max-width: 991.98px) {
  .hwe-kicker { letter-spacing: 0.06em; }
}

/* ---- Home sections: about, areas, steps, faq (structure shared by every pack) ----
   The pack only sets --hwe-hero-background-color / --hwe-hero-text-color; sections follow them. */
.hwe-section { --hwe-accent: var(--hwe-accent-color, var(--hwe-hero-background-color, #111111)); }
.hwe-section-alt { background: #f6f8fb; }
@supports (background: color-mix(in srgb, red 6%, white)) {
  .hwe-section-alt { background: color-mix(in srgb, var(--hwe-accent) 6%, #fff); }
}
.hwe-section-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 600; }
.hwe-eyebrow {
  color: var(--hwe-accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hwe-about-photo {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: .75rem;
}
.hwe-area-card .card-body { border-top: 3px solid var(--hwe-accent); border-radius: .375rem; }
.hwe-steps-list { counter-reset: none; }
.hwe-step-number {
  display: block;
  color: var(--hwe-accent);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
}
.hwe-accordion .accordion-button { font-weight: 600; }
.hwe-accordion .accordion-button:not(.collapsed) {
  color: var(--hwe-accent);
  background-color: transparent;
  box-shadow: none;
}
.hwe-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(0, 0, 0, .1); }

/* ---- Floating WhatsApp (corner of the screen; hero, contact and footer keep their own buttons) ---- */
.hwe-wa-float {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
}
.hwe-wa-float:hover, .hwe-wa-float:focus-visible { color: #fff; filter: brightness(.95); }
@media (max-width: 575.98px) {
  .hwe-wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .hwe-wa-float { padding: .85rem; }
}

/* ---- Topics (same rhythm as areas, separate classes) ---- */
.hwe-topic-card .card-body { border-top: 3px solid var(--hwe-accent); border-radius: .375rem; }

/* ---- Contact: closing section, two columns (mobile: WhatsApp first, facts below) ---- */
.hwe-contact-facts { margin: 0; }
.hwe-contact-facts dt {
  color: var(--hwe-accent);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hwe-contact-facts dd {
  margin: 0 0 1rem;
  overflow-wrap: anywhere;
}
.hwe-contact-facts a { color: inherit; }

/* ---- Card icons (drawn inline from icons/{slug}.svg, colored by currentColor) ---- */
.hwe-icon { display: inline-block; width: 2.5rem; height: 2.5rem; margin-bottom: .75rem; color: var(--hwe-accent, var(--hwe-accent-color, var(--hwe-hero-background-color))); }
.hwe-icon svg { display: block; width: 100%; height: 100%; }
.hwe-step .hwe-icon { width: 1.75rem; height: 1.75rem; margin-bottom: .5rem; }
.hwe-step .hwe-icon + .hwe-step-number { display: block; }

/* ---- Footer socials (the footer is a pack shell; the box itself is shared chrome) ---- */
.hwe-social-link { display: inline-flex; align-items: center; color: inherit; text-decoration: none; }
.hwe-social-link .hwe-icon { width: 1.5rem; height: 1.5rem; margin: 0; color: currentColor; }

/* ---- Site top: logo, three-line hamburger, hero that grows with its copy ---- */
.navbar-brand { display: inline-flex; align-items: center; gap: .5rem; }
.hwe-nav-logo { height: 2rem; width: 2rem; object-fit: contain; flex: none; }

/* Hamburger = three bars in currentColor (same colour as the brand and links); becomes an X when open. */
.hwe-burger {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bs-navbar-brand-color, #fff);
  box-shadow: none;
}
.hwe-burger:focus { box-shadow: none; }
.hwe-burger:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.hwe-burger-bars,
.hwe-burger-bars::before,
.hwe-burger-bars::after {
  display: block;
  width: 1.5rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform .2s ease, background-color .2s ease;
}
.hwe-burger-bars { position: absolute; left: 50%; top: 50%; margin: -1px 0 0 -.75rem; }
.hwe-burger-bars::before,
.hwe-burger-bars::after { content: ""; position: absolute; left: 0; top: 0; }
.hwe-burger-bars::before { transform: translateY(-7px); }
.hwe-burger-bars::after { transform: translateY(7px); }
.hwe-burger[aria-expanded="true"] .hwe-burger-bars { background: transparent; }
.hwe-burger[aria-expanded="true"] .hwe-burger-bars::before { transform: rotate(45deg); }
.hwe-burger[aria-expanded="true"] .hwe-burger-bars::after { transform: rotate(-45deg); }

@media (prefers-reduced-motion: reduce) {
  .hwe-burger-bars, .hwe-burger-bars::before, .hwe-burger-bars::after { transition: none; }
}

/* Hero grows with title, subtitle and button (a fixed 16:9 box clipped them on phones). */
.hwe-hero {
  height: auto;
  min-height: clamp(22rem, 70vh, 36rem);
}
@media (min-width: 992px) {
  .hwe-hero { min-height: min(36rem, calc(100vw * 9 / 16)); }
}

/* ---- WhatsApp button in the menu (flag whatsapp.menu; packs restyle it) ---- */
.hwe-nav-wa { margin-left: .75rem; border: 1px solid currentColor; color: #fff; border-radius: 999px; font-weight: 600; }
.hwe-nav-wa:hover, .hwe-nav-wa:focus-visible { color: #fff; opacity: .85; }
/* ---- Menu: list or hamburger per device (menu.desktop / menu.mobile). Generic: no pack selectors here.
   Hamburger = a panel that opens over the page (absolute under the bar, no push-down); list = links in the bar. ---- */
:where(.hwe-nav) { position: relative; z-index: 30; }
.hwe-nav .hwe-nav-wa { margin-left: .75rem; }
@keyframes hwe-menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (min-width: 992px) {
  .hwe-nav-d-hamburger .hwe-burger { display: block; }
  .hwe-nav-d-hamburger .navbar-collapse {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 1;
    flex-basis: auto; max-height: calc(100vh - 4rem); overflow-y: auto;
    padding: .5rem 1.5rem 1rem;
    background: var(--hwe-menu-color);
    border-top: 1px solid rgba(128, 128, 128, .25);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .18);
  }
  .hwe-nav-d-hamburger .navbar-collapse.collapsing { transition: none; }
  .hwe-nav-d-hamburger .navbar-collapse.show { animation: hwe-menu-in .18s ease-out; }
  .hwe-nav-d-hamburger .navbar-nav { flex-direction: column; width: 100%; margin-left: 0 !important; }
  .hwe-nav-d-hamburger .nav-link { padding: .6rem 0; }
  .hwe-nav-d-hamburger .hwe-nav-wa { margin: .5rem 0 .25rem; display: inline-block; }
  .hwe-nav-d-list .hwe-burger { display: none; }
  .hwe-nav-d-list .navbar-collapse {
    display: flex !important; position: static; flex-grow: 1; flex-basis: auto;
    height: auto !important; max-height: none; overflow: visible; padding: 0;
    background: none; border: 0; box-shadow: none; align-items: center;
  }
  .hwe-nav-d-list .navbar-nav { flex-direction: row; flex-wrap: wrap; width: auto; }
  .hwe-nav-d-list .nav-link { padding: .5rem; }
  .hwe-nav-d-list .hwe-nav-wa { margin: 0 0 0 .75rem; }
}
@media (max-width: 991.98px) {
  .hwe-nav-m-hamburger .hwe-burger { display: block; }
  .hwe-nav-m-hamburger .navbar-collapse {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 1;
    flex-basis: auto; max-height: calc(100vh - 4rem); overflow-y: auto;
    padding: .5rem 1.5rem 1rem;
    background: var(--hwe-menu-color);
    border-top: 1px solid rgba(128, 128, 128, .25);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .18);
  }
  .hwe-nav-m-hamburger .navbar-collapse.collapsing { transition: none; }
  .hwe-nav-m-hamburger .navbar-collapse.show { animation: hwe-menu-in .18s ease-out; }
  .hwe-nav-m-hamburger .navbar-nav { flex-direction: column; width: 100%; margin-left: 0 !important; }
  .hwe-nav-m-hamburger .nav-link { padding: .6rem 0; }
  .hwe-nav-m-hamburger .hwe-nav-wa { margin: .5rem 0 .25rem; display: inline-block; }
  .hwe-nav-m-list .hwe-burger { display: none; }
  .hwe-nav-m-list .navbar-collapse {
    display: flex !important; position: static; flex-grow: 1; flex-basis: 100%;
    height: auto !important; max-height: none; overflow: visible; padding: 0;
    background: none; border: 0; box-shadow: none; align-items: center;
  }
  .hwe-nav-m-list .navbar-nav { flex-direction: row; flex-wrap: wrap; width: auto; }
  .hwe-nav-m-list .nav-link { padding: .5rem; }
  .hwe-nav-m-list .hwe-nav-wa { margin: 0 0 0 .75rem; }
}
@media (prefers-reduced-motion: reduce) {
  .hwe-nav .navbar-collapse.show { animation: none; }
}

/* ---- steps with photo, feature, stats, quote (structure shared by every pack) ---- */
.hwe-steps-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: .75rem; }
.hwe-feature-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: .75rem; }
.hwe-feature-kicker { color: var(--hwe-accent); font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.hwe-checklist { list-style: none; margin: 1rem 0 0; padding: 0; }
.hwe-checklist li { display: flex; align-items: flex-start; gap: .65rem; padding: .35rem 0; }
.hwe-check { flex: none; width: 1.35rem; height: 1.35rem; margin-top: .1rem; color: var(--hwe-accent); }
.hwe-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; margin: 0; }
@media (min-width: 992px) { .hwe-stats-grid { grid-template-columns: repeat(var(--hwe-stats-cols, 4), minmax(0, 1fr)); } }
.hwe-stat { border-top: 2px solid var(--hwe-accent); padding-top: 1rem; }
.hwe-stat-title { font-size: 1.25rem; font-weight: 600; margin: 0 0 .25rem; }
.hwe-stat-text { margin: 0; opacity: .8; }
.hwe-quote-block { margin: 0; text-align: center; }
.hwe-quote-text { font-size: clamp(1.4rem, 1rem + 1.8vw, 2.2rem); line-height: 1.3; margin: 0 auto; max-width: 48rem; }
.hwe-quote-cite { display: block; margin-top: 1rem; font-style: normal; font-size: .9rem; }
