:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --ink: #141816;
  --muted: #5f675f;
  --line: #e6e3dc;
  --accent: #0f6b4c;
  --accent-dark: #0b5139;
  --whatsapp: #1f9d57;
  --whatsapp-dark: #178a4a;
  --shadow: 0 18px 40px rgba(20, 24, 22, 0.06);
  --radius: 22px;
  --container: 1160px;
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.bg-animation {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(160deg, #f8f7f3 0%, #f1f4f1 45%, #eef2ef 100%);
}

.molecule-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  background: rgba(247, 246, 243, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.site-main {
  position: relative;
  z-index: 1;
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  background: rgba(241, 239, 233, 0.55);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
}

@media (prefers-reduced-motion: reduce) {
  .molecule-canvas {
    display: none;
  }
}

img {
  max-width: 100%;
  display: block;
}

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

.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}

.narrow {
  width: min(100% - 2.5rem, 760px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(15, 107, 76, 0.14);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-name {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.brand-tagline {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.site-nav a:hover,
.mobile-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--ink);
  color: white !important;
}

.header-search-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  background: rgba(247, 246, 243, 0.35);
}

.header-search {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0;
}

.header-search-results {
  position: absolute;
  top: calc(100% - 0.35rem);
  left: 2.4rem;
  right: 0;
  z-index: 60;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 44px rgba(20, 24, 22, 0.16);
  padding: 0.35rem;
}

.header-search-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
}

.header-search-item:hover,
.header-search-item.is-active {
  background: rgba(15, 107, 76, 0.09);
}

.header-search-item-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
}

.header-search-item-meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.header-search-all {
  display: block;
  margin-top: 0.15rem;
  padding: 0.6rem 0.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand, #0f6b4c);
  border-radius: 0 0 12px 12px;
}

.header-search-all:hover,
.header-search-all.is-active {
  background: rgba(15, 107, 76, 0.09);
}

.header-search-hint {
  padding: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.header-search-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.header-search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font: inherit;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search-input:focus {
  outline: none;
  border-color: var(--brand, #0f6b4c);
  box-shadow: 0 0 0 3px rgba(15, 107, 76, 0.15);
}

.header-search-submit {
  flex-shrink: 0;
  padding: 0.7rem 1.4rem;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.2s ease;
}

.header-search-submit:hover {
  opacity: 0.9;
}

.header-search-submit:active {
  transform: scale(0.97);
}

@media (max-width: 600px) {
  .header-search {
    padding: 0.6rem 0;
    gap: 0.45rem;
  }

  .header-search-input {
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
  }

  .header-search-submit {
    padding: 0.6rem 1rem;
  }
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 5px auto;
  background: var(--ink);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0 1.25rem 1.25rem;
}

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

.hero {
  padding: 5.5rem 0 4rem;
}

.hero-inner {
  max-width: 760px;
  padding: 2.75rem 2.5rem 3rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 60px rgba(20, 24, 22, 0.08);
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.about-section h2,
.cta-box h2,
.content-card h1 {
  margin: 0;
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  max-width: 14ch;
}

.hero-lead,
.section-heading p,
.about-copy p,
.cta-box p {
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-lead {
  margin: 1.25rem 0 2rem;
  max-width: 52ch;
}

.hero-actions,
.product-body,
.about-points {
  display: flex;
  gap: 0.85rem;
}

.hero-actions {
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: white;
}

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

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: #cfcabe;
  background: rgba(255, 255, 255, 0.7);
}

.btn-whatsapp {
  width: 100%;
  margin-top: auto;
  background: var(--whatsapp);
  color: white;
}

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

.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-call {
  background: var(--accent);
  color: #fff;
}

.btn-call:hover {
  background: var(--accent-dark);
}

.btn-email {
  background: var(--ink);
  color: #fff;
}

.btn-email:hover {
  background: #000;
}

.btn-call svg,
.btn-email svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* 3-part inquire action group: WhatsApp / Email / Call */
.inquire-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: auto;
}

.inquire-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  min-height: 54px;
  padding: 0.55rem 0.35rem;
  border-radius: 14px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  color: #fff;
  text-align: center;
  transition: transform 0.15s ease, opacity 0.2s ease, background 0.2s ease;
}

.inquire-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.inquire-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.inquire-whatsapp {
  background: var(--whatsapp);
}

.inquire-whatsapp:hover {
  background: var(--whatsapp-dark);
  opacity: 1;
}

.inquire-email {
  background: var(--ink);
}

.inquire-call {
  background: var(--accent);
}

/* Compact variant for the search table rows */
.inquire-group-sm {
  gap: 0.3rem;
  margin-top: 0;
}

.inquire-group-sm .inquire-btn {
  min-height: 44px;
  padding: 0.4rem 0.3rem;
  font-size: 0.66rem;
  border-radius: 11px;
}

.inquire-group-sm .inquire-btn svg {
  width: 17px;
  height: 17px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.products-section,
.about-section,
.cta-section,
.page-section {
  padding: 2rem 0 5rem;
}

.section-heading {
  max-width: 620px;
  margin-bottom: 2.5rem;
}

.section-heading h2,
.about-section h2,
.cta-box h2 {
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  margin-bottom: 0.85rem;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(20, 24, 22, 0.09);
}

.product-image-wrap {
  aspect-ratio: 1 / 1;
  background: linear-gradient(180deg, #f3f1ec 0%, #ebe7df 100%);
  overflow: hidden;
}

.product-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.35rem;
}

.product-grade {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-body h3 {
  margin: 0.35rem 0 0.55rem;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.product-body p:not(.product-grade) {
  margin: 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.about-section {
  padding-top: 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.about-points {
  flex-direction: column;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

.about-points li {
  position: relative;
  padding-left: 1.2rem;
  color: var(--ink);
  font-weight: 500;
}

.about-points li + li {
  margin-top: 0.7rem;
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
}

.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f6b4c 0%, #124837 100%);
  color: white;
}

.cta-box p {
  color: rgba(255, 255, 255, 0.78);
  margin: 0.55rem 0 0;
}

.cta-box .btn-primary {
  background: white;
  color: var(--accent-dark);
  white-space: nowrap;
}

.cta-box .btn-primary:hover {
  background: #f3f7f4;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.6rem;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-brand {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-copy,
.footer-meta,
.footer-bottom p {
  color: var(--muted);
}

.footer-copy {
  margin: 0;
  max-width: 34ch;
}

.footer-label {
  margin: 0 0 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-link {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.footer-meta {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
}

.footer-bottom {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

.page-section {
  padding-top: 3.5rem;
}

.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.content-card h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 1rem;
}

.entry-content {
  color: var(--muted);
}

@media (max-width: 980px) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
  }

  .nav-toggle {
    display: inline-block;
  }

  .mobile-nav.is-open {
    display: flex;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-inner {
    padding: 1.75rem 1.5rem 2rem;
  }

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

  .about-grid,
  .cta-box {
    padding: 1.5rem;
  }
}

/* Lab chemicals searchable catalog */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lab-section {
  padding: 1rem 0 5rem;
}

.lab-heading {
  max-width: 720px;
}

.lab-toolbar {
  display: grid;
  grid-template-columns: 1.8fr 0.8fr;
  gap: 0.85rem;
  margin-bottom: 1rem;
  align-items: center;
}

.lab-page {
  padding-top: 3.5rem;
}

.lab-page h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.1;
  font-weight: 700;
}

.lab-search-label {
  display: block;
}

.lab-search,
.lab-company {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  font: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.lab-search:focus,
.lab-company:focus {
  border-color: rgba(15, 107, 76, 0.45);
  box-shadow: 0 0 0 4px rgba(15, 107, 76, 0.1);
}

.lab-meta {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.lab-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.lab-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

.lab-table th,
.lab-table td {
  padding: 0.95rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.lab-table th {
  position: sticky;
  top: 0;
  background: rgba(247, 246, 243, 0.96);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}

.lab-table tbody tr:last-child td {
  border-bottom: 0;
}

.lab-table tbody tr:hover {
  background: rgba(15, 107, 76, 0.04);
}

.lab-table td strong {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.btn-whatsapp-sm {
  width: auto;
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  font-size: 0.86rem;
  margin-top: 0;
}

.lab-actions {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
}

/* Search banner + expertise */
.search-banner {
  padding: 1rem 0 4rem;
}

.search-banner-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.25rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.search-banner-box h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.6vw, 2.1rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 700;
}

.search-banner-box p {
  margin: 0;
  color: var(--muted);
}

.search-banner-box .btn {
  white-space: nowrap;
}

.expertise-section {
  padding: 1rem 0 5rem;
}

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

.expertise-card {
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.expertise-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(20, 24, 22, 0.09);
}

.expertise-card::before {
  content: "";
  display: block;
  width: 2.2rem;
  height: 3px;
  border-radius: 999px;
  background: var(--accent);
  margin-bottom: 1rem;
}

.expertise-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.expertise-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

@media (max-width: 900px) {
  .lab-toolbar {
    grid-template-columns: 1fr;
  }

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

  .search-banner-box {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
  }

  .lab-table {
    min-width: 0;
  }

  .lab-table thead {
    display: none;
  }

  .lab-table,
  .lab-table tbody,
  .lab-table tr,
  .lab-table td {
    display: block;
    width: 100%;
  }

  .lab-table tr {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .lab-table tr:last-child {
    border-bottom: 0;
  }

  .lab-table td {
    border: 0;
    padding: 0.35rem 1rem;
  }

  .lab-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.15rem;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .lab-table td[data-label="Inquire"]::before {
    display: none;
  }

  .lab-table td[data-label="Inquire"] {
    padding-top: 0.7rem;
  }
}
