/* ============================================
   SYNLINK SCIENTIFIC - Main Stylesheet
   Colors derived from logo: Navy #1a2744, Steel Blue #3a5a8c, Silver #a0aab8
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a2744;
  --navy-light: #243355;
  --blue: #3a5a8c;
  --blue-light: #4a7ab5;
  --silver: #a0aab8;
  --silver-light: #c8cdd6;
  --offwhite: #f4f6f8;
  --white: #ffffff;
  --text: #2c3e50;
  --text-light: #5a6a7a;
  --accent: #2eaadc;
  --accent-dark: #1e8ab8;
  --success: #27ae60;
  --warning: #f39c12;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-main);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--navy); line-height: 1.3; }
h1 { font-size: 2.8rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; }

.section-title {
  text-align: center;
  margin-bottom: 1rem;
}
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}
.btn-outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}
.btn-lg { padding: 14px 36px; font-size: 1.05rem; }

/* --- Header / Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(26, 39, 68, 0.95);
  backdrop-filter: blur(10px);
  padding: 0;
  transition: all var(--transition);
}
.navbar.scrolled {
  box-shadow: var(--shadow-md);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-brand img {
  height: 44px;
  width: 44px;
  object-fit: contain;
  border-radius: 50%;
}
.navbar-brand span {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--white);
  letter-spacing: 0.5px;
}
.navbar-brand span em {
  font-style: normal;
  font-weight: 400;
  color: var(--white);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  color: var(--silver-light);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}
.nav-cta {
  margin-left: 12px;
}
.nav-cta .btn {
  padding: 8px 20px;
  font-size: 0.88rem;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 6px 0;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, #0f1b2e 0%, #1a2f4a 40%, #2a4a6e 100%);
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text h1 {
  color: var(--white);
  margin-bottom: 1.2rem;
  font-size: 3rem;
}
.hero-text h1 span {
  color: var(--accent);
}
.hero-text p {
  color: var(--silver-light);
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 500px;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-visual img {
  max-width: 320px;
  width: 100%;
  height: auto;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 3rem;
}
.hero-stat {
  text-align: center;
  padding: 16px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
}
.hero-stat .number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
}
.hero-stat .label {
  font-size: 0.85rem;
  color: var(--silver-light);
  margin-top: 4px;
}

/* --- Sections --- */
section { padding: 80px 0; }
section.alt-bg { background: var(--offwhite); }

/* --- Feature Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: linear-gradient(135deg, var(--accent), var(--blue-light));
  color: var(--white);
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { color: var(--text-light); font-size: 0.95rem; margin: 0; }

/* --- Product Cards / Catalog --- */
.catalog-header {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}
.search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 2px solid var(--silver-light);
  border-radius: var(--radius);
  padding: 0 16px;
  max-width: 400px;
  width: 100%;
  transition: border-color var(--transition);
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar input {
  border: none;
  outline: none;
  padding: 12px 8px;
  font-size: 0.95rem;
  width: 100%;
  font-family: var(--font-main);
}
.search-bar svg { color: var(--silver); flex-shrink: 0; }

.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-tag {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--silver-light);
  background: var(--white);
  color: var(--text);
  transition: all var(--transition);
}
.filter-tag:hover,
.filter-tag.active {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all var(--transition);
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.product-card-header {
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.product-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-lab { background: #e8f4fd; color: var(--blue); }
.badge-industrial { background: #e8fdf0; color: var(--success); }
.badge-both { background: #fef3e2; color: var(--warning); }
.badge-electronic { background: #f0e8fd; color: #7c3aed; }
.badge-pharma { background: #fde8ee; color: #dc2655; }
.badge-food { background: #fdf8e8; color: #b8860b; }

.product-card-body { padding: 16px 24px 24px; }
.product-card-body h3 { margin-bottom: 8px; font-size: 1.15rem; }
.product-card-body p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 16px; }
.product-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-light);
  padding-top: 16px;
  border-top: 1px solid var(--offwhite);
}
.product-meta span { display: flex; align-items: center; gap: 4px; }

/* --- Service Cards --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.04);
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--text-light); font-size: 0.95rem; }
.service-card ul {
  list-style: none;
  margin-top: 16px;
}
.service-card ul li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.service-card ul li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* --- About page --- */
.about-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 140px 0 80px;
  color: var(--white);
}
.about-hero h1 { color: var(--white); }
.about-hero p { color: var(--silver-light); font-size: 1.1rem; }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 28px;
}
.value-card {
  text-align: center;
  padding: 32px 24px;
}
.value-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
  background: var(--offwhite);
}

/* --- Contact & Forms --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--silver-light);
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-size: 0.95rem;
  transition: border-color var(--transition);
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-info-list {
  list-style: none;
}
.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--offwhite);
}
.contact-info-list li:last-child { border-bottom: none; }
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--offwhite);
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 60px 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: var(--silver-light); margin-bottom: 2rem; font-size: 1.1rem; }
.cta-banner .btn { margin: 0 8px; }

/* --- Page Headers --- */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  padding: 130px 0 60px;
  text-align: center;
}
.page-header h1 { color: var(--white); margin-bottom: 12px; }
.page-header p { color: var(--silver-light); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* --- Trusted / Partners --- */
.trusted-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  opacity: 0.5;
  filter: grayscale(1);
}
.trusted-logos span {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 1px;
}

/* --- Footer --- */
.footer {
  background: var(--navy);
  color: var(--silver-light);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-about img { height: 36px; margin-bottom: 16px; }
.footer-about p { font-size: 0.9rem; line-height: 1.7; color: var(--silver); }
.footer h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--silver); font-size: 0.9rem; }
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--silver);
}

/* --- No results message --- */
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-light);
  display: none;
}
.no-results h3 { margin-bottom: 8px; }

/* --- Responsive --- */
@media (max-width: 968px) {
  h1 { font-size: 2.2rem; }
  .hero { padding: 120px 0 60px; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero-text h1 { font-size: 2.4rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: 0; margin-top: 8px; }
  .hero-stats { grid-template-columns: 1fr; gap: 12px; }
  .hero-buttons { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .catalog-header { flex-direction: column; align-items: stretch; }
  .products-grid { grid-template-columns: 1fr; }
}
