/* ========================================
   ChemAnchor Pro - Clean Light Theme
   Hilti-inspired: White + Red accents
   ======================================== */

:root {
  --red: #E30613;
  --red-dark: #b3050f;
  --red-light: #ffe5e7;
  --red-glow: rgba(227, 6, 19, 0.15);
  --white: #ffffff;
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-muted: #555555;
  --text-dim: #888888;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --success: #00a854;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ========== TYPOGRAPHY ========== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

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

/* ========== LAYOUT ========== */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  margin-bottom: 14px;
}

.section-header p {
  max-width: 580px;
  margin: 0 auto;
}

.badge {
  display: inline-block;
  background: var(--red-light);
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 18px;
}

/* ===== Language Dropdown ===== */
.lang-dropdown {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 1.5px solid #ddd;
  color: #555;
  padding: 9px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.lang-btn:hover {
  border-color: #E30613;
  color: #E30613;
  background: #fff5f5;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  list-style: none;
  min-width: 140px;
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s ease;
  z-index: 100;
}

.lang-dropdown.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-menu li {
  padding: 10px 18px;
  cursor: pointer;
  font-size: 0.95rem;
  color: #444;
  transition: all 0.2s ease;
}

.lang-menu li:hover {
  background: #fff5f5;
  color: #E30613;
}

/* ========== NAVBAR ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar .container {
  padding-left: 0px;
  padding-right: 24px;
  max-width: 85%;
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.85);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 132px; /* taller header */
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  margin-left: 0;
}

.logo img {
  height: 62px;          /* bigger logo */
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--red);
  background: var(--red-light);
}

.nav-cta {
  margin-left: 12px;
  background: var(--red) !important;
  color: white !important;
  padding: 14px 28px !important;
  font-weight: 600 !important;
  font-size: 1.05rem !important;
}

.nav-cta:hover {
  background: var(--red-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--red-glow);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ========== HERO ========== */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 132px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.hero h1 {
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--red);
}

.hero p {
  font-size: 1.18rem;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px var(--red-glow);
}

.btn-outline {
  background: white;
  color: var(--text);
  border: 1px solid var(--border-dark);
}

.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: var(--red-light);
}

.btn-full {
  width: 100%;
}

/* ========== CARDS / GRID ========== */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: #f0c0c3;
}

.card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 250px;
  height: 250px;
  background: var(--red-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  margin-bottom: 18px;
  color: var(--red);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  font-size: 0.97rem;
}

.product-card {
  text-align: center;
}

.product-card .card-icon {
  margin-left: auto;
  margin-right: auto;
  font-size: 1.6rem;
}

.product-name {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--red);
  margin-bottom: 8px;
}


/* =========================================================
   RE-10 TECHNICAL DATA
   ========================================================= */

.technical-data-title {
  color: #E30613;
  font-size: 42px;
  font-weight: 400;
  margin: 0 0 45px;
  letter-spacing: 0;
}

.technical-data-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.technical-data-list li {
  position: relative;
  padding-left: 21px;
  margin-bottom: 27px;
  font-size: 19px;
  line-height: 1.4;
  color: #111;
}

.technical-data-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 7px;
  height: 7px;
  background: #E30613;
}

/* ========== PROCESS ========== */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 12px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 38px;
  height: 38px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  transform: translateX(-50%);
}

.step h3 {
  margin: 10px 0 8px;
  padding-left: 28px;
}

.step p {
  padding-left: 28px;
  font-size: 0.95rem;
}

/* ========== ABOUT ========== */
.about-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-image {
  width: 100% !important;
  height: 400px !important;
  overflow: hidden;
  border-radius: 16px;
}

.about-image img {
  width: 100% !important;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.stat {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--red);
  display: block;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ========== CONTACT ========== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--red-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.contact-item p {
  font-size: 0.95rem;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 7px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-glow);
  background: white;
}

.form-group textarea {
  min-height: 130px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .icon {
  font-size: 3rem;
  color: var(--success);
  margin-bottom: 14px;
}

/* ========== FOOTER ========== */
.footer {
  background: #111;
  color: #ccc;
  padding: 60px 0 28px;
}

.footer .logo img {
  height: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.95rem;
  max-width: 280px;
  color: #999;
}

.footer h4 {
  margin-bottom: 18px;
  font-size: 0.95rem;
  color: white;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: #999;
  font-size: 0.93rem;
}

.footer-links a:hover {
  color: var(--red);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.88rem;
  color: #666;
}

/* ========== PAGE HERO ========== */
.page-hero {
  padding: 180px 0 70px;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f7f8fa 100%);
  position: relative;
}

.page-hero h1 {
  margin-bottom: 14px;
}

.page-hero p {
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.12rem;
}

/* ========== UTILITIES ========== */
.text-center { text-align: center; }
.mt-4 { margin-top: 36px; }
.mb-4 { margin-bottom: 36px; }

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {

  .lang-dropdown {
    width: 100%;
  }

  .lang-btn {
    width: 100%;
    justify-content: space-between;
  }

  .lang-menu {
    position: static;
    box-shadow: none;
    border: none;
    margin-top: 6px;
    display: none;
  }

  .lang-dropdown.open .lang-menu {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: white;
    flex-direction: column;
    padding: 140px 28px 40px;
    gap: 8px;
    border-left: 1px solid var(--border);
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 18px;
    font-size: 1.1rem;
  }

  .nav-cta {
    margin-left: 0;
    margin-top: 12px;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding: 160px 0 70px;
  }

  .section {
    padding: 70px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .logo img {
    height: 48px;
  }

  .nav-inner {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

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

/* ========== ANIMATIONS ========== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content > * {
  opacity: 0;
  animation: fadeUp 0.7s ease forwards;
}

.hero-content .badge { animation-delay: 0.1s; }
.hero-content h1 { animation-delay: 0.2s; }
.hero-content p { animation-delay: 0.3s; }
.hero-content .hero-buttons { animation-delay: 0.4s; }
