:root {
  --bg: #f5fbfa;
  --surface: #ffffff;
  --text: #133434;
  --muted: #567676;
  --brand: #0f8f86;
  --brand-dark: #0b6f68;
  --line: #dcefed;
  --shadow: 0 12px 30px rgba(12, 90, 86, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo span {
  color: var(--brand);
}

.site-nav {
  display: flex;
  gap: 1.2rem;
}

.site-nav a {
  color: var(--muted);
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--brand-dark);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
}

.hero {
  padding: 5.5rem 0 4rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(15, 143, 134, 0.15), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(15, 143, 134, 0.1), transparent 33%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  color: var(--brand);
  font-weight: 600;
  margin: 0 0 0.45rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-size: clamp(1.9rem, 3vw, 3rem);
  max-width: 20ch;
  margin-bottom: 1rem;
}

.hero-copy {
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.btn {
  display: inline-block;
  padding: 0.78rem 1.05rem;
  border-radius: 10px;
  font-weight: 600;
}

.btn.primary {
  background: var(--brand);
  color: #fff;
}

.btn.primary:hover {
  background: var(--brand-dark);
}

.btn.ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: #fff;
}

.hero-card,
.product-card,
.partner-card,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
}

.hero-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.section {
  padding: 4rem 0;
}

.section.alt {
  background: #ffffff;
}

.narrow {
  max-width: 760px;
}

.narrow p {
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.section-head p {
  color: var(--muted);
  max-width: 45ch;
  margin-bottom: 0.5rem;
}

.product-showcase {
  position: relative;
}

.product-showcase.has-active {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: start;
}

.product-showcase .product-grid.has-active {
  grid-template-columns: 1fr;
}

.product-image-float {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 360px;
  justify-self: center;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(24px);
  transition:
    opacity 380ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    visibility 380ms ease;
}

.product-image-float::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle, rgba(15, 143, 134, 0.14), transparent 70%);
  z-index: -1;
}

.product-image-float img {
  display: block;
  width: 100%;
  max-height: min(520px, 70vh);
  height: auto;
  object-fit: contain;
  margin: 0 auto;
}

.product-image-float .extra-img {
  display: none;
  max-height: min(340px, 45vh);
  margin-bottom: 1rem;
  border-radius: 12px;
}

.product-image-float.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.product-card {
  padding: 1.1rem 1.1rem 1.3rem;
  align-self: start;
  transform-origin: center;
  will-change: transform;
  transition: transform 250ms ease-out, border-color 200ms ease;
}

.product-card p {
  color: var(--muted);
  min-height: 4.6rem;
}

.product-card.expandable:hover {
  transform: translateY(-4px);
  border-color: #c7e7e4;
}

.product-bottom {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.expand-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all 220ms ease;
}

.expand-btn:hover {
  border-color: #b9e1dd;
  background: #f4fbfa;
}

.chevron {
  font-size: 1rem;
  line-height: 1;
  transition: transform 260ms ease;
}

.product-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 260ms ease,
    transform 260ms ease;
}

.product-details p {
  margin-top: 0.9rem;
  margin-bottom: 0.6rem;
  min-height: auto;
}

.product-details h4 {
  margin: 1rem 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-details ul {
  margin: 0 0 0.2rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.product-details li + li {
  margin-top: 0.25rem;
}

.product-details strong {
  color: var(--text);
  font-weight: 600;
}

.product-card.is-open .product-details {
  opacity: 1;
  transform: translateY(0);
}

.product-card.is-open .expand-btn {
  border-color: #9ed5cf;
  background: #eaf8f7;
}

.product-card.is-open .chevron {
  transform: rotate(45deg);
}

.product-showcase.has-active:not(.has-image) {
  grid-template-columns: 1fr;
}

.product-showcase.has-active:not(.has-image) .product-image-float {
  display: none;
}

.product-showcase--partner .product-image-float::before {
  background: radial-gradient(circle, rgba(215, 171, 105, 0.18), transparent 70%);
}

.product-showcase .product-grid.has-active .product-card:not(.is-open) {
  display: none;
}

.product-showcase .product-grid.has-active .product-card.is-open {
  transform: none;
  opacity: 1;
  grid-column: auto;
  grid-row: auto;
}

.product-showcase .product-grid.has-active .product-card.is-open p {
  min-height: auto;
}

.product-showcase .product-grid.has-active .product-card.is-open {
  border-color: #9ed5cf;
}

.product-showcase--partner .product-grid.has-active .product-card.is-open {
  border-color: #c59660;
}

.product-badge {
  display: inline-block;
  background: #eaf8f7;
  color: var(--brand-dark);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.tag {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.partner-card {
  padding: 1.4rem;
}

.partner-card span {
  color: var(--brand);
}

.partner-card p,
.partner-card li,
.contact-card p {
  color: var(--muted);
}

.partner-card p strong {
  color: var(--text);
}

.partner-section {
  background: linear-gradient(165deg, #2b1d14 0%, #16110e 100%);
}

.partner-section .eyebrow {
  color: #d7ab69;
}

.partner-section h2,
.partner-section h3 {
  color: #f5e6d4;
}

.partner-section .section-head > p {
  color: #cfb292;
}

.partner-section .partner-card {
  background: #231811;
  border-color: #5a402a;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

.partner-section .partner-card span {
  color: #d7ab69;
}

.partner-section .partner-card p,
.partner-section .partner-card li {
  color: #d8c1a5;
}

.partner-section .partner-card p strong {
  color: #f5e6d4;
}

.partner-products-head {
  margin-top: 2rem;
}

.partner-grid .product-card {
  background: #231811;
  border-color: #5a402a;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.partner-grid .product-card h3 {
  color: #f5e6d4;
}

.partner-grid .product-card p,
.partner-grid .product-details ul,
.partner-grid .tag {
  color: #d8c1a5;
}

.partner-grid .product-details h4 {
  color: #f5e6d4;
}

.partner-grid .product-details strong {
  color: #f5e6d4;
}

.partner-grid .product-badge {
  background: #5a402a;
  color: #f6e7cf;
}

.partner-grid .tag {
  border-color: #73563e;
}

.partner-grid .expand-btn {
  border-color: #73563e;
  background: #2c1f16;
  color: #f5e6d4;
}

.partner-grid .expand-btn:hover {
  border-color: #9a754e;
  background: #3a291d;
}

.partner-grid .product-card.expandable:hover {
  border-color: #9a754e;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.4);
}

.partner-grid .product-card.is-open .expand-btn {
  border-color: #c59660;
  background: #5a402a;
}

.page-hero {
  padding: 4.5rem 0 2.5rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(15, 143, 134, 0.12), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(15, 143, 134, 0.08), transparent 33%);
}

.page-hero h1 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  max-width: none;
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--muted);
  max-width: 58ch;
  margin: 0;
}

.nav-link-active {
  color: var(--brand-dark);
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1rem;
}

.contact-card {
  padding: 1.2rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  gap: 1rem;
}

.footer-wrap a {
  color: var(--brand-dark);
  font-weight: 600;
}

.section-head a {
  color: var(--brand-dark);
  font-weight: 600;
}

.partner-section .section-head a {
  color: #d7ab69;
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .product-showcase.has-active {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

  .product-image-float {
    max-width: min(300px, 80%);
    margin: 0 auto;
    transform: translateY(12px);
  }

  .product-image-float.is-visible {
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 73px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: none;
    flex-direction: column;
    padding: 0.8rem 4%;
  }

  .site-nav.open {
    display: flex;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-image-float {
    max-width: min(260px, 85%);
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }
}

/* Homepage redesign enhancements */
.hero {
  overflow: hidden;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-products {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-product-composition {
  position: relative;
  width: min(500px, 100%);
  height: 500px;
  perspective: 800px;
}

.hero-product-composition::before {
  content: "";
  position: absolute;
  inset: 14% 8%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(15, 143, 134, 0.14), transparent 66%);
}

.hero-prod {
  position: absolute;
  left: 50%;
  top: 50%;
  height: auto;
  cursor: default;
  will-change: transform, opacity;
  transition: transform 800ms cubic-bezier(0.4, 0, 0.2, 1), opacity 600ms ease, z-index 0ms;
}

.hero-prod--center {
  width: min(245px, 54%);
  transform: translate(-50%, -50%) translateZ(0) scale(1);
  z-index: 3;
  opacity: 1;
  cursor: pointer;
}

.hero-prod--left {
  width: min(210px, 48%);
  transform: translate(-130%, -45%) translateZ(-80px) rotateY(15deg) scale(0.85);
  z-index: 1;
  opacity: 0.65;
}

.hero-prod--right {
  width: min(210px, 48%);
  transform: translate(30%, -45%) translateZ(-80px) rotateY(-15deg) scale(0.85);
  z-index: 1;
  opacity: 0.65;
}

.hero-prod--back {
  width: min(180px, 42%);
  transform: translate(-50%, -50%) translateZ(-160px) scale(0.6);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.hero-product-composition:hover .hero-prod--left {
  transform: translate(-135%, -45%) translateZ(-80px) rotateY(18deg) scale(0.85);
}

.hero-product-composition:hover .hero-prod--right {
  transform: translate(35%, -45%) translateZ(-80px) rotateY(-18deg) scale(0.85);
}

.hero-product-composition:hover .hero-prod--center {
  transform: translate(-50%, -52%) translateZ(0) scale(1.02);
}

.trust-strip {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 1rem 0;
}

.trust-badge {
  background: #f9fdfc;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.trust-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
}

.trust-badge strong {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.trust-badge span {
  color: var(--muted);
  font-size: 0.83rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
  align-items: start;
}

.about-text p {
  color: var(--muted);
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.3rem;
}

.about-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.visual-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.visual-product-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  will-change: transform;
  transition: transform 250ms ease-out, border-color 200ms ease;
}

.visual-product-card:hover {
  transform: translateY(-6px);
  border-color: #bde5e1;
}

.visual-product-img {
  min-height: 218px;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: radial-gradient(circle at 50% 50%, #eefaf8 0%, #f9fdfc 70%);
}

.visual-product-img img {
  max-height: 175px;
  width: auto;
  border-radius: 8px;
  transition: transform 250ms ease-out;
}

.visual-product-card:hover .visual-product-img img {
  transform: translateY(-3px) scale(1.02);
}

.visual-product-info {
  padding: 1rem 1rem 1.15rem;
}

.visual-product-info .tag {
  display: inline-block;
  margin-bottom: 0.55rem;
}

.visual-product-info h3 {
  margin-bottom: 0.5rem;
}

.visual-product-info p {
  margin: 0;
  color: var(--muted);
}

.card-link {
  display: inline-block;
  margin-top: 0.7rem;
  color: var(--brand-dark);
  font-weight: 600;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  will-change: transform, opacity;
  transition: opacity 400ms ease-out, transform 400ms ease-out;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

@media (max-width: 900px) {
  .hero-layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-product-composition {
    width: min(400px, 96vw);
    height: 390px;
  }

  .hero-prod--center {
    width: min(210px, 56%);
  }

  .hero-prod--left,
  .hero-prod--right {
    width: min(185px, 50%);
  }

  .trust-strip-inner {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .visual-product-grid {
    grid-template-columns: 1fr;
  }

  .hero-product-composition {
    width: min(360px, 98vw);
    height: 330px;
  }

  .hero-prod--center {
    width: min(210px, 62%);
  }

  .hero-prod--left,
  .hero-prod--right {
    width: min(180px, 56%);
  }
}

/* Product Detail Page (PDP) — stacked layout */
.pdp-section {
  padding: 2.5rem 0;
}

.pdp-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.pdp-product-img {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, #eefaf8 0%, transparent 70%);
  padding: 1rem;
  border-radius: 16px;
}

.pdp-product-img img {
  max-height: 240px;
  width: auto;
  object-fit: contain;
}

.pdp-science {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pdp-science-card {
  width: 52%;
  background: var(--surface);
  padding: 0;
  overflow: hidden;
}

.pdp-science-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}

.pdp-science-card--wide {
  max-width: none;
}

.pdp-intro .product-badge {
  margin-bottom: 0.5rem;
}

.pdp-intro h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
  margin-bottom: 0.5rem;
}

.pdp-intro .tag {
  margin-bottom: 0.75rem;
}

.pdp-intro p {
  color: var(--muted);
  margin-top: 0.5rem;
}

.pdp-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.pdp-col h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-dark);
  margin: 0 0 0.6rem;
}

.pdp-col ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.pdp-col li + li {
  margin-top: 0.3rem;
}

.pdp-col strong {
  color: var(--text);
  font-weight: 600;
}

.pdp-footer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
}

.pdp-claims {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.claim-pill {
  display: inline-block;
  background: #eaf8f7;
  color: var(--brand-dark);
  border: 1px solid #c7e7e4;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
}

.pdp-usage h4 {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-dark);
  margin: 0 0 0.4rem;
}

.pdp-usage p {
  color: var(--muted);
  margin: 0;
}

.pdp-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
  width: min(1120px, 92%);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 900px) {
  .pdp-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pdp-product-img {
    justify-self: center;
  }

  .pdp-details {
    grid-template-columns: 1fr;
  }

  .pdp-science {
    flex-direction: column;
    align-items: center;
  }

  .pdp-science-card--wide {
    max-width: none;
    width: 90%;
  }
}

@media (max-width: 700px) {
  .pdp-hero {
    gap: 1.25rem;
  }

  .pdp-product-img img {
    max-height: 190px;
  }

  .pdp-science-card {
    width: 90%;
  }
}
