/* =========================================================
   UNISOLV — Design System
   Signature: a molecular-bond line motif (nodes + connecting
   lines in the accent cyan) used as section dividers, card
   hover states and the hero backdrop — a quiet nod to
   chemical structure diagrams without being literal iconography.
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Brand */
  --primary: #53329B;
  --secondary: #6645B0;
  --support: #866BCC;
  --light: #A891E1;
  --accent: #01B4D2;
  --ink: #1E1233;           /* near-black derived from primary, for max-contrast headings */
  --text: #58595B;
  --white: #FFFFFF;

  /* Derived surfaces */
  --bg-page: #FCFBFE;
  --bg-alt: #F5F2FA;
  --bg-dark: #241442;
  --border-soft: #E6E0F2;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  --gradient-dark: linear-gradient(160deg, #1E1233 0%, #3B2166 60%, #53329B 100%);

  /* Type */
  --font-display: 'Sora', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Layout */
  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(30, 18, 51, 0.06);
  --shadow-md: 0 12px 32px rgba(30, 18, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(30, 18, 51, 0.16);
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.3rem, 4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
p { color: var(--text); }
.lede { font-size: 1.15rem; color: var(--text); }
.mono { font-family: var(--font-mono); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--accent);
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--gradient-dark); color: rgba(255,255,255,0.88); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.72); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Molecular bond signature ---------- */
.bond-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 20px;
}
.bond-divider .node { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.bond-divider .line { height: 1px; flex: 0 0 48px; background: linear-gradient(90deg, var(--accent), transparent); }

.molecule-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(1,180,210,0.35) 0, rgba(1,180,210,0.35) 2px, transparent 2px),
    radial-gradient(circle at 32% 62%, rgba(1,180,210,0.28) 0, rgba(1,180,210,0.28) 2px, transparent 2px),
    radial-gradient(circle at 68% 30%, rgba(255,255,255,0.3) 0, rgba(255,255,255,0.3) 2px, transparent 2px),
    radial-gradient(circle at 84% 74%, rgba(1,180,210,0.3) 0, rgba(1,180,210,0.3) 2px, transparent 2px),
    radial-gradient(circle at 50% 88%, rgba(255,255,255,0.22) 0, rgba(255,255,255,0.22) 2px, transparent 2px),
    linear-gradient(115deg, transparent 49.6%, rgba(1,180,210,0.16) 49.6%, rgba(1,180,210,0.16) 50%, transparent 50%),
    linear-gradient(20deg, transparent 39.6%, rgba(255,255,255,0.10) 39.6%, rgba(255,255,255,0.10) 40%, transparent 40%);
  opacity: 0.9;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gradient-primary); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(1,180,210,0.35); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.4); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-dark { background: transparent; border-color: var(--primary); color: var(--primary); }
.btn-outline-dark:hover { background: var(--primary); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(252,251,254,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; color: var(--ink); }
.brand img { height: 38px; width: auto; }
.brand .dot { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav a.nav-link {
  display: block; padding: 10px 16px; font-weight: 500; font-size: 0.92rem;
  color: var(--ink); border-radius: 100px; transition: background 0.15s, color 0.15s;
  position: relative;
}
.main-nav a.nav-link:hover, .main-nav li.active a.nav-link { background: var(--bg-alt); color: var(--primary); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: 72px; left: 0; right: 0; bottom: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 20px 24px;
    transform: translateY(-110%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    overflow-y: auto;
    z-index: 99;
    box-sizing: border-box;
  }
  .main-nav.open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.25s ease, visibility 0s linear 0s;
  }
  .main-nav > ul { width: 100%; flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a.nav-link { width: 100%; box-sizing: border-box; }
  .nav-cta { width: 100%; flex-direction: column; align-items: stretch; margin-top: 18px; }
  .nav-cta .btn { width: 100%; text-align: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--gradient-dark);
  color: var(--white);
  padding: 120px 0 100px;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero h1 { color: var(--white); margin-bottom: 20px; }
.hero p.lede { color: rgba(255,255,255,0.78); margin-bottom: 34px; max-width: 620px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats { display: flex; gap: 44px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,0.16); padding-top: 30px; }
.hero-stats .stat-num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--white); }
.hero-stats .stat-label { font-size: 0.82rem; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--light); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-alt); color: var(--primary); margin-bottom: 20px;
}
.card:hover .card-icon { background: var(--gradient-primary); color: var(--white); }
.card h4 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.icon-card { text-align: left; }

/* Product card */
.product-card {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-md);
  overflow: hidden; transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.product-card .thumb { aspect-ratio: 4/3; background: var(--bg-alt); overflow: hidden; position: relative; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--white); font-size: 0.7rem; font-weight: 600; padding: 5px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: .04em; }
.product-card .body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.product-card .cat { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; }
.product-card .code { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text); opacity: .7; margin-top: 6px; }
.product-card h4 { margin-bottom: 8px; }
.product-card .desc { font-size: 0.9rem; flex: 1; margin-bottom: 16px; }
.product-card .actions { display: flex; gap: 10px; margin-top: auto; }

/* News card */
.news-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.news-card .thumb { aspect-ratio: 16/10; background: var(--bg-alt); overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { padding: 22px; }
.news-card .meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }

/* ---------- Stats strip ---------- */
.stats-strip { background: var(--bg-dark); color: var(--white); padding: 56px 0; }
.stats-strip .grid-4 { text-align: center; }
.stats-strip .stat-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.stats-strip .stat-label { color: rgba(255,255,255,.7); font-size: .85rem; margin-top: 6px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- Tabs / filters ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-chip {
  padding: 9px 18px; border-radius: 100px; border: 1px solid var(--border-soft);
  background: var(--white); font-size: 0.85rem; font-weight: 500; color: var(--text);
  transition: all .15s;
}
.filter-chip:hover, .filter-chip.active { background: var(--gradient-primary); border-color: transparent; color: var(--white); }

/* ---------- Timeline (milestones) ---------- */
.timeline { position: relative; padding-left: 32px; border-left: 2px solid var(--border-soft); }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item::before { content: ''; position: absolute; left: -38px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--bg-alt); }
.timeline-item .year { font-family: var(--font-mono); color: var(--primary); font-weight: 600; margin-bottom: 4px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 13px 16px; border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); background: var(--white); font-size: 0.95rem; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(1,180,210,0.15); outline: none; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-card { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--shadow-sm); }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row-2 { grid-template-columns: 1fr; } }

.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 24px; }
.alert-success { background: #E4F9EE; color: #12684A; border: 1px solid #B9EDD3; }
.alert-error { background: #FDECEC; color: #A32323; border: 1px solid #F6C6C6; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,0.7); padding: 72px 0 0; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.1); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.site-footer .brand { color: var(--white); margin-bottom: 14px; }
.site-footer h5 { color: var(--white); font-family: var(--font-display); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.site-footer ul li { margin-bottom: 11px; }
.site-footer a:hover { color: var(--accent); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; transition: all .15s; }
.footer-social a:hover { background: var(--accent); border-color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 26px 0; font-size: 0.82rem; flex-wrap: wrap; gap: 10px; }

/* ---------- Breadcrumb / page header ---------- */
.page-header { background: var(--gradient-dark); color: var(--white); padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); position: relative; z-index: 1; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.pill { display: inline-block; padding: 5px 14px; border-radius: 100px; background: var(--bg-alt); color: var(--primary); font-size: 0.78rem; font-weight: 600; }
.divider-line { height: 1px; background: var(--border-soft); border: none; margin: 40px 0; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span { background: var(--bg-alt); color: var(--primary); font-size: 0.78rem; padding: 6px 12px; border-radius: 100px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; }
.pagination a, .pagination span { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--border-soft); font-size: 0.9rem; }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--gradient-primary); color: var(--white); border-color: transparent; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--text); }

/* ---------- Product category groups (products.php default view) ---------- */
.category-group { margin-bottom: 64px; }
.category-group:last-child { margin-bottom: 0; }
.category-group-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--border-soft);
}
.category-group-head h2 { font-size: 1.5rem; }

/* ---------- Homepage search card ---------- */
.home-search-card {
  background: var(--gradient-primary);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  color: var(--white);
}
.home-search-copy h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 6px; }
.home-search-copy p { color: rgba(255,255,255,0.8); font-size: 0.92rem; max-width: 420px; }
.home-search-form { display: flex; gap: 10px; flex: 1 1 380px; max-width: 480px; }
.home-search-form .form-control {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.28);
  color: var(--white);
}
.home-search-form .form-control::placeholder { color: rgba(255,255,255,0.65); }
.home-search-form .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(1,180,210,0.25); }
@media (max-width: 640px) {
  .home-search-card { flex-direction: column; align-items: stretch; text-align: center; padding: 28px 24px; }
  .home-search-form { max-width: 100%; }
}
