/* ==================================================================
   Storefront sections -- shared anatomy (.hs)
   Workflow, About & Map, Catalogs, FAQ, Newsletter
   (template-parts/home-v2/*.php). Same language as the product and
   category pages: eyebrow pill + Oswald title + muted lead, white cards
   with 18px corners and soft borders, pill buttons, no heavy shadows.
   ================================================================== */

.hs {
  --hs-primary: var(--primary, #0F766E);
  --hs-ink: #1b2735;
  --hs-muted: #5b6777;
  --hs-line: #e3ebf4;
  --hs-soft: #f6f9fd;
  --hs-radius: 18px;
  clear: both;
  padding-block: clamp(40px, 6vw, 72px);
}

/* ---------- Section header ---------- */

.hs-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  max-width: 760px;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}

.hs-head.is-center {
  align-items: center;
  margin-inline: auto;
  text-align: center;
}

.hs-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hs-primary) 9%, #fff 91%);
  color: var(--hs-primary);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.hs-title {
  margin: 0;
  font-family: var(--oswald, "Oswald", sans-serif);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .3px;
  text-transform: uppercase;
  color: var(--hs-ink);
  text-wrap: balance;
}

.hs-lead {
  margin: 0;
  color: var(--hs-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hs-lead p:last-child {
  margin-bottom: 0;
}

/* ---------- Cards & buttons ---------- */

.hs-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--hs-line);
  border-radius: var(--hs-radius);
  transition: border-color .25s ease, transform .25s ease;
}

.hs-card:hover {
  border-color: color-mix(in srgb, var(--hs-primary) 35%, var(--hs-line) 65%);
}

.hs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border: 1.5px solid var(--hs-primary);
  border-radius: 999px;
  background: var(--hs-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .6px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: filter .2s ease, background .2s ease, color .2s ease;
}

.hs-btn:hover,
.hs-btn:focus {
  color: #fff;
  filter: brightness(1.08);
}

.hs-btn--ghost {
  background: transparent;
  color: var(--hs-primary);
}

.hs-btn--ghost:hover,
.hs-btn--ghost:focus {
  background: var(--hs-primary);
  color: #fff;
  filter: none;
}

.hs-btn i {
  font-size: 12px;
}

/* ==================================================================
   Workflow -- numbered step cards
   ================================================================== */

.hs-steps {
  display: grid;
  grid-template-columns: repeat(var(--hs-cols, 4), minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: hs-step;
}

.hs-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  counter-increment: hs-step;
}

.hs-step:hover {
  transform: translateY(-3px);
}

.hs-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--hs-primary);
  color: #fff;
  font-family: var(--oswald, "Oswald", sans-serif);
  font-size: 15px;
  font-weight: 700;
}

.hs-step__num::before {
  content: counter(hs-step, decimal-leading-zero);
}

.hs-step__media {
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  background: var(--hs-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hs-step__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.hs-step__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hs-ink);
  text-transform: none;
}

.hs-step__text {
  margin: 0;
  color: var(--hs-muted);
  font-size: .92rem;
  line-height: 1.6;
}

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

@media (max-width: 575.98px) {
  .hs-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  /* Tighter cards on a phone. */
  .hs-step {
    padding: 16px;
  }
}

/* ==================================================================
   About & Map
   ================================================================== */

.hs-about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.hs-about__text .hs-head {
  margin-bottom: 18px;
}

.hs-about__body {
  color: var(--hs-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.hs-about__body p:last-child {
  margin-bottom: 0;
}

.hs-about__text .hs-btn {
  margin-top: 22px;
}

.hs-map {
  overflow: hidden;
  padding: 6px;
}

.hs-map iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 380px;
  border: 0;
  border-radius: calc(var(--hs-radius) - 6px);
}

.hs-map--empty {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: var(--hs-soft);
  color: var(--hs-muted);
  text-align: center;
}

.hs-map--empty i {
  font-size: 32px;
  color: var(--hs-primary);
}

@media (max-width: 991.98px) {
  .hs-about {
    grid-template-columns: minmax(0, 1fr);
  }

  .hs-map iframe {
    min-height: 300px;
  }
}

/* ==================================================================
   Catalogs -- cover cards with a PDF badge
   ================================================================== */

.hs-catalogs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 22px;
}

.hs-catalog {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hs-catalog:hover {
  transform: translateY(-3px);
}

.hs-catalog__cover {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--hs-soft);
  overflow: hidden;
}

.hs-catalog__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2, 1, .3, 1);
}

.hs-catalog:hover .hs-catalog__cover img {
  transform: scale(1.03);
}

.hs-catalog__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  color: var(--hs-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .6px;
}

.hs-catalog__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 18px 20px 20px;
}

.hs-catalog__title {
  margin: 0;
  font-family: var(--oswald, "Oswald", sans-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hs-ink);
}

.hs-catalog__text {
  margin: 0;
  color: var(--hs-muted);
  font-size: .92rem;
  line-height: 1.6;
}

.hs-catalog__foot {
  margin-top: auto;
  padding-top: 10px;
}

.hs-catalog__soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hs-muted);
  font-size: 13px;
  font-weight: 700;
}

/* ==================================================================
   FAQ -- two columns of expanding cards (native <details>)
   ================================================================== */

.hs-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  align-items: start;
}

.hs-faq__col {
  display: grid;
  gap: 14px;
}

.hs-faq__item > summary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--hs-ink);
}

.hs-faq__item > summary::-webkit-details-marker {
  display: none;
}

.hs-faq__item > summary:focus {
  outline: none;
}

.hs-faq__item > summary:focus-visible {
  background: var(--hs-soft);
  border-radius: var(--hs-radius);
}

.hs-faq__q {
  flex: 1 1 auto;
}

.hs-faq__toggle {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--hs-primary) 10%, #fff 90%);
  color: var(--hs-primary);
  font-size: 12px;
}

.hs-faq__item[open] {
  border-color: color-mix(in srgb, var(--hs-primary) 35%, var(--hs-line) 65%);
}

.hs-faq__item[open] .hs-faq__toggle {
  background: var(--hs-primary);
  color: #fff;
}

.hs-faq__item[open] .hs-faq__toggle i::before {
  content: "\f068"; /* minus */
}

.hs-faq__a {
  padding: 0 20px 18px;
  color: var(--hs-muted);
  font-size: .95rem;
  line-height: 1.7;
}

.hs-faq__a p:last-child {
  margin-bottom: 0;
}

@media (max-width: 767.98px) {
  .hs-faq {
    grid-template-columns: minmax(0, 1fr);
  }

  .hs-faq__item > summary {
    padding: 16px;
    font-size: .95rem;
  }

  .hs-faq__a {
    padding: 0 16px 16px;
  }
}

/* ==================================================================
   Newsletter -- rounded banner card
   ================================================================== */

.hs-news {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border-radius: 24px;
  border: 1px solid var(--hs-line);
  background: var(--hs-news-bg, var(--hs-soft));
  color: var(--hs-news-text, var(--hs-ink));
}

.hs-news__intro {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.hs-news__badge {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hs-primary);
  color: #fff;
  font-size: 22px;
}

.hs-news .hs-title {
  color: inherit;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.hs-news__sub {
  margin: 8px 0 0;
  opacity: .8;
  line-height: 1.6;
}

/* ID-qualified: the old home-v1-premium.css newsletter rules are ID-based. */
#premium-newsletter-form.hs-news__form {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  padding: 0 6px 0 20px;
  border: 1px solid var(--hs-line);
  border-radius: 999px;
  background: #fff;
}

.hs-news__form:focus-within {
  border-color: var(--hs-primary);
}

#premium-newsletter-form.hs-news__form input[type="email"] {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--hs-ink);
  font-size: 15px;
}

.hs-news__form .hs-btn {
  flex: 0 0 auto;
  height: 44px;
}

.hs-news__msg {
  margin-top: 10px;
  font-size: 13px;
}

@media (max-width: 767.98px) {
  .hs-news {
    grid-template-columns: minmax(0, 1fr);
  }

  .hs-news__intro {
    flex-direction: column;
    gap: 12px;
  }

  .hs-news__badge {
    flex-basis: 48px;
    width: 48px;
    height: 48px;
    font-size: 19px;
  }

  .hs-news__form {
    height: 52px;
    padding-left: 16px;
  }

  /* 16px stops iOS zooming into the field. */
  #premium-newsletter-form.hs-news__form input[type="email"] {
    font-size: 16px;
  }

  .hs-news__form .hs-btn {
    height: 40px;
    padding: 0 16px;
  }

  .hs-news__form .hs-btn .hs-btn__label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hs-card,
  .hs-catalog__cover img {
    transition: none;
  }
}

/* Phones: tighter vertical rhythm between storefront sections. */
@media (max-width: 767.98px) {
  .hs {
    padding-block: 12px;
  }
}
