/* ==========================================================================
   Xnivo — Header + Hero (redesign)
   Palette: deep teal #004F46 · primary green #087A43 · mint #E9F7EF
            white #FFFFFF · dark text #111827
   ========================================================================== */

@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
}

/* --------------------------------------------------------------------------
   1. Header / navigation bar
   -------------------------------------------------------------------------- */
.sh-header {
  position: relative;
  z-index: 60;
  background: #004F46;
  box-shadow: 0 2px 14px rgba(0, 40, 34, .25);
}

.sh-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 74px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.sh-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.sh-brand-logo {
  display: block;
  width: 145px;
  max-width: 48vw;
  height: auto;
  object-fit: contain;
  flex: 0 0 auto;
}

.sh-mark {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(150deg, #12A15F, #087A43);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
}

.sh-name {
  font-size: 22px;
  font-weight: 800;
  color: #FFFFFF !important;
  letter-spacing: .2px;
  line-height: 1.1;
  white-space: nowrap;
}

.sh-tagline {
  display: block;
  max-width: 128px;
  font-size: 11px;
  font-weight: 400;
  color: rgba(255, 255, 255, .62);
  letter-spacing: .3px;
  line-height: 1.2;
}

.sh-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.sh-nav a,
.sh-drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: #FFFFFF !important;
  text-decoration: none;
  transition: background .18s ease;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: normal;
  box-shadow: none;
  border-radius: 10px;
}

.sh-nav a:hover,
.sh-drop-btn:hover,
.sh-drop-btn[aria-expanded="true"] {
  background: rgba(255, 255, 255, .10);
  color: #FFFFFF !important;
}

.sh-nav svg { flex-shrink: 0; }

.sh-drop { position: relative; }

.sh-drop-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 540px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  background: #FFFFFF;
  border: 1px solid #E3EFE7;
  border-radius: 16px;
  box-shadow: 0 22px 50px -12px rgba(0, 40, 34, .35);
  padding: 14px;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.sh-drop-panel.is-open { display: grid; }

.sh-drop-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  color: #14532D !important;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.35;
  box-shadow: none;
}

.sh-drop-item:hover {
  background: #E9F7EF;
  color: #087A43 !important;
}

.sh-burger {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .10);
  border: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  line-height: normal;
  padding: 0;
}

/* --------------------------------------------------------------------------
   2. Hero
   -------------------------------------------------------------------------- */
.sh-hero {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(151, 217, 178, .32), rgba(151, 217, 178, 0) 70%),
    linear-gradient(180deg, #EAF7EF 0%, #FFFFFF 100%);
  padding: 76px 0 84px;
}

.sh-leaves,
.sh-mortar {
  position: absolute;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

.sh-leaves {
  left: -70px;
  top: -40px;
  width: 360px;
  opacity: .9;
}

.sh-mortar {
  right: -80px;
  top: 30px;
  width: 470px;
  opacity: .95;
}

.sh-container {
  position: relative;
  z-index: 1;
  max-width: 1346px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

/* Keep the wider card row from being capped by the shared content container. */
section.sh-hero .sh-container { max-width: 1346px; }

.sh-hero-title {
  font-family: "PT Sans", sans-serif !important;
  font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 600 !important;
  color: #111827 !important;
  line-height: 1.14;
  letter-spacing: -.5px;
  margin: 0 auto 22px;
  max-width: 780px;
}

.sh-hl {
  position: relative;
  display: inline-block;
  color: #087A43;
  font-weight: 700 !important;
  white-space: nowrap;
}

.sh-underline {
  position: absolute;
  left: -3%;
  bottom: -12px;
  width: 106%;
  height: 16px;
  display: block;
}

.sh-hero-desc {
  font-size: 17px;
  line-height: 1.65;
  color: #53636A;
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

/* Search bar ------------------------------------------------------------- */
.sh-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
  background: #FFFFFF;
  border: 1px solid #DCEEE3;
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  box-shadow: 0 18px 40px -16px rgba(0, 79, 70, .25);
  text-align: left;
}

.sh-s-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sh-s-input { flex: 1 1 auto; }

.sh-s-input svg,
.sh-s-select > svg { flex-shrink: 0; }

.sh-s-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: #111827;
  font-family: inherit;
  height: 44px;
  min-width: 0;
}

.sh-s-input input::placeholder { color: #8A979D; }

.sh-s-divider {
  width: 1px;
  height: 30px;
  background: #E3EFE7;
  flex-shrink: 0;
}

.sh-s-select select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 14.5px;
  color: #33424A;
  font-family: inherit;
  height: 44px;
  max-width: 220px;
  cursor: pointer;
  padding-right: 2px;
}

.sh-s-caret { margin-left: -4px; flex-shrink: 0; }

.sh-s-submit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 52px;
  padding: 0 30px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #0C9A55, #087A43);
  color: #FFFFFF !important;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 8px 18px -6px rgba(8, 122, 67, .5);
  line-height: normal;
  transition: filter .18s ease;
}

.sh-s-submit:hover { filter: brightness(1.06); }

.sh-search-results {
  box-sizing: border-box;
  width: min(880px, 100%);
  max-height: 340px;
  overflow-y: auto;
  margin: 10px auto 0;
  padding: 8px;
  border: 1px solid #D4E9DC;
  border-radius: 18px;
  background: #FFFFFF;
  box-shadow: 0 12px 28px rgba(0, 79, 70, .16);
  text-align: left;
}

.sh-search-results[hidden] { display: none; }

.sh-search-result {
  display: block;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #111827;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.sh-search-result:hover,
.sh-search-result:focus-visible { background: #E9F7EF; outline: none; }

.sh-search-result strong { display: block; color: #004F46; font-weight: 700; }
.sh-search-result small { display: block; margin-top: 3px; color: #53636A; font-size: 13px; line-height: 1.35; }
.sh-search-empty { margin: 0; padding: 12px 14px; color: #53636A; font-size: 14px; }

/* --------------------------------------------------------------------------
   3. Product information badges + featured product cards
   -------------------------------------------------------------------------- */
.sh-trust {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1120px;
  margin: 20px auto 0;
  padding: 10px 12px;
  list-style: none;
  background: linear-gradient(110deg, #FFFFFF, #F1FAF4);
  border: 1px solid #D4E9DC;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0, 79, 70, .10);
}

.sh-trust-item {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 12px;
  border-right: 1px solid #B9D9C8;
}

.sh-trust-item:last-child { border-right: 0; }

.sh-trust-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  flex: 0 0 54px;
  border: 1px solid #087A43;
  border-radius: 50%;
  background: #FFFFFF;
  color: #087A43;
}

.sh-trust-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sh-trust-copy { min-width: 0; }
.sh-trust-copy strong { display: block; color: #111827; font-size: 15px; line-height: 1.15; }
.sh-trust-copy small { display: block; margin-top: 4px; color: #53636A; font-size: 12px; line-height: 1.25; }

.sh-feat {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1298px;
  margin: 28px auto 0;
  text-align: left;
}

.feat-card {
  position: relative;
  overflow: hidden;
  background: #E9F7EF;
  border: 1px solid #DCEEE3;
  border-radius: 24px;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 18px;
}

.feat-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: -70px;
  right: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: #DFF1E6;
}

.feat-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: -60px;
  left: 32%;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: #D4E9DC;
  opacity: .7;
}

.feat-media {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.feat-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 190px;
  object-fit: contain;
}

.feat-body {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.feat-title {
  font-size: 25px;
  font-weight: 700 !important;
  color: #111827 !important;
  margin: 0 0 8px;
  line-height: 1.2;
}

.feat-text {
  font-size: 15px;
  line-height: 1.55;
  color: #53636A;
  margin: 0 0 18px;
  text-align: left;
}

.feat-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #0C9A55, #087A43);
  color: #FFFFFF !important;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px -8px rgba(8, 122, 67, .55);
  transition: filter .18s ease;
  line-height: normal;
  border: 0;
}

.feat-cta:hover {
  color: #FFFFFF !important;
  filter: brightness(1.07);
}

@media (min-width: 1401px) {
  .feat-card { box-sizing: border-box; height: 236px; }
  .feat-cta { box-sizing: border-box; width: 204px; justify-content: center; white-space: nowrap; }
}

/* --------------------------------------------------------------------------
   4. Focus + responsive
   -------------------------------------------------------------------------- */
.sh-header a:focus-visible,
.sh-drop-btn:focus-visible,
.sh-drop-item:focus-visible,
.sh-s-submit:focus-visible,
.feat-cta:focus-visible,
.sh-burger:focus-visible {
  outline: 2px solid #7ED0A2;
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .sh-inner { gap: 22px; }
  .sh-mortar { width: 380px; right: -90px; }
  .sh-leaves { width: 290px; }
  .sh-trust { grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 24px; }
  .sh-trust-item { min-height: 64px; }
  .sh-trust-item:nth-child(3) { border-right: 0; }
  .sh-trust-item:nth-child(n+4) { border-top: 1px solid #B9D9C8; }
  .sh-feat { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat-card { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 14px; padding: 18px; }
  .feat-media img { height: 160px; }
}

@media (max-width: 1280px) {
  .sh-mortar { width: 24vw; right: -10vw; top: 115px; }
}

@media (min-width: 901px) and (max-width: 1024px) {
  .sh-leaves { top: -140px; }
}

@media (max-width: 900px) {
  .sh-inner { height: 66px; }
  .sh-burger { display: inline-flex; }

  .sh-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    background: #004F46;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 16px;
    box-shadow: 0 18px 30px rgba(0, 30, 25, .35);
  }

  .sh-nav.is-open { display: flex; }

  .sh-nav a,
  .sh-drop-btn { box-sizing: border-box; width: 100%; justify-content: flex-start; padding: 12px 14px; }

  .sh-drop-panel {
    position: static;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    margin-top: 4px;
    box-shadow: none;
  }

  .sh-hero { padding: 56px 0 64px; }
  .sh-mortar { display: none; }
  .sh-leaves { width: 230px; left: -80px; top: -30px; opacity: .75; }
}

@media (max-width: 740px) {
  .sh-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: 24px;
    padding: 14px;
    gap: 6px;
  }

  .sh-s-divider { display: none; }

  .sh-s-input input,
  .sh-s-select select {
    height: 46px;
    max-width: none;
    width: 100%;
  }

  .sh-s-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }

  .sh-feat { grid-template-columns: 1fr; margin-top: 24px; }
  .sh-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; padding: 8px; }
  .sh-trust-item { justify-content: flex-start; min-height: 62px; padding: 6px 8px; border-right: 0; }
  .sh-trust-item:nth-child(odd) { border-right: 1px solid #B9D9C8; }
  .sh-trust-item:nth-child(n+3) { border-top: 1px solid #B9D9C8; }
  .sh-trust-item:nth-child(3) { border-right: 1px solid #B9D9C8; }
  .feat-card { grid-template-columns: minmax(112px, .8fr) minmax(0, 1.2fr); padding: 20px; }
  .feat-media img { height: 150px; }
}

@media (max-width: 480px) {
  .sh-inner { padding: 0 16px; }
  .sh-brand { gap: 8px; }
  .sh-brand-logo { width: 120px; }
  .sh-tagline { max-width: 104px; font-size: 9px; }
  .sh-name { font-size: 19px; }
  .sh-tagline { font-size: 10px; }
  .sh-mark { width: 38px; height: 38px; border-radius: 11px; }
  .sh-hero { padding: 48px 0 56px; }
  .sh-hero-desc { font-size: 15.5px; margin-bottom: 32px; }
  .sh-drop-panel { grid-template-columns: 1fr; }
  .sh-trust { grid-template-columns: 1fr; border-radius: 22px; }
  .sh-trust-item,
  .sh-trust-item:nth-child(odd),
  .sh-trust-item:nth-child(3) { border-right: 0; }
  .sh-trust-item:nth-child(n+2) { border-top: 1px solid #B9D9C8; }
  .feat-card { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 16px; }
  .feat-media img { height: 132px; }
  .feat-title { font-size: 21px; }
  .feat-text { font-size: 14px; }
  .feat-cta { padding: 10px 14px; font-size: 13.5px; }
}

@media (max-width: 740px) {
  .sh-hero-title {
    max-width: 100%;
    font-size: clamp(25px, calc(8.13vw - 3.9px), 50px);
    line-height: 1.16;
  }

  .sh-hero-first-line { display: inline-block; white-space: nowrap; }
  .sh-hero-rest { display: block; margin-top: .14em; }
  .sh-hero-title .sh-hl { font-size: 1.05em; }

  .sh-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 22px;
    padding: 8px;
  }

  .sh-trust-item {
    justify-content: flex-start;
    min-height: 68px;
    gap: 8px;
    padding: 7px;
    border-right: 0;
    border-bottom: 1px solid #B9D9C8;
  }

  .sh-trust-item:nth-child(1),
  .sh-trust-item:nth-child(3) { border-right: 1px solid #B9D9C8; }
  .sh-trust-item:nth-child(4) { border-bottom: 1px solid #B9D9C8; }
  .sh-trust-item:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 5px);
    justify-self: center;
    border: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .sh-trust-icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .sh-trust-icon svg { width: 28px; height: 28px; }
  .sh-trust-copy strong { font-size: 13px; }
  .sh-trust-copy small { font-size: 11.5px; }
}
