﻿:root {
  --bg: #f8fafc;
  --bg-alt: #eef3f7;
  --surface: #ffffff;
  --surface-soft: #f5f8ff;
  --panel: #ffffff;
  --panel-soft: #eef4fb;
  --border: rgba(16, 42, 71, 0.1);
  --text: #12273f;
  --muted: #566879;
  --heading: #12273f;
  --accent: #c33b27;
  --accent-strong: #8d1f19;
  --accent-soft: rgba(195, 59, 39, 0.16);
  --shadow: 0 24px 60px rgba(18, 39, 63, 0.08);
  --panel-shadow: 0 22px 50px rgba(18, 39, 63, 0.08);
  --overlay: rgba(248, 249, 251, 0.9);
  --hero-overlay: rgba(10, 23, 46, 0.72);
  --input-bg: #f6f8fd;
  --input-border: rgba(16, 42, 71, 0.12);
  --link: #c33b27;
  --toggle-bg: rgba(195, 59, 39, 0.08);
  --toggle-text: #12273f;
}

html[data-theme="dark"] {
  --bg: #0c121b;
  --bg-alt: #111827;
  --surface: rgba(17, 24, 39, 0.96);
  --surface-soft: #1d293b;
  --panel: rgba(17, 24, 39, 0.96);
  --panel-soft: rgba(17, 24, 39, 0.88);
  --border: rgba(148, 163, 184, 0.18);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --heading: #f8fafc;
  --accent: #38bdf8;
  --accent-strong: #0ea5e9;
  --accent-soft: rgba(56, 189, 248, 0.18);
  --shadow: 0 24px 54px rgba(0, 0, 0, 0.28);
  --panel-shadow: 0 24px 54px rgba(0, 0, 0, 0.24);
  --overlay: rgba(8, 14, 21, 0.72);
  --hero-overlay: rgba(8, 14, 21, 0.64);
  --input-bg: rgba(15, 23, 42, 0.95);
  --input-border: rgba(148, 163, 184, 0.18);
  --link: #7dd3fc;
  --toggle-bg: rgba(255, 255, 255, 0.06);
  --toggle-text: #e2e8f0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "DM Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
  scroll-behavior: smooth;
  transition: background 0.35s ease, color 0.35s ease;
}

.topbar {
  background: #12213a;
  color: #f5f8ff;
}

.topbar-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
}

.topbar-info a,
.topbar-links a {
  color: #f5f8ff;
  font-size: 0.9rem;
}

.topbar-info a + a {
  margin-left: 24px;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

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

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

.section {
  padding: 88px 0;
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 16px;
}

h1,
h2,
h3,
h4 {
  margin-top: 0;
  color: var(--heading);
}

h1 {
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  line-height: 1.1;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #12213a;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #c33b27, #8d1f19);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #f8fafc;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}

.nav a {
  color: #f8fafc;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 14px 22px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease,
    background-color 0.24s ease, color 0.24s ease;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: var(--surface);
  box-shadow: 0 18px 34px rgba(195, 59, 39, 0.25);
}

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

.btn-outline {
  color: #f8fafc;
  border-color: rgba(248, 249, 251, 0.22);
  background: rgba(248, 249, 251, 0.08);
}

.btn-outline:hover {
  transform: translateY(-2px);
  background: rgba(248, 249, 251, 0.14);
}

.btn-nav {
  padding: 10px 16px;
  background: #c33b27;
  border-color: transparent;
  color: #ffffff;
}

.hero {
  position: relative;
  padding: 120px 0 96px;
  overflow: hidden;
  min-height: 640px;
  background: linear-gradient(180deg, rgba(10, 23, 46, 0.92), rgba(10, 23, 46, 0.65) 50%),
    url("images/b8db91996ca4b88e73e27b551b1ed026.jpg.jpeg") center center / cover no-repeat;
  color: #f8fbff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 18%),
    radial-gradient(circle at bottom right, rgba(195, 59, 39, 0.18), transparent 20%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 40px;
}

.hero-copy {
  max-width: 620px;
}

.hero h1 {
  color: #ffffff;
  margin-bottom: 24px;
  font-size: clamp(2.8rem, 4vw, 4.4rem);
}

.hero .lead {
  margin-bottom: 36px;
  color: rgba(248, 251, 255, 0.86);
  font-size: 1.1rem;
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 38px;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.hero-features li {
  position: relative;
  padding-left: 26px;
  color: rgba(248, 251, 255, 0.88);
}

.hero-features li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

.hero-media {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  width: 100%;
  max-width: 460px;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 56px rgba(18, 39, 63, 0.18);
  border: 1px solid rgba(195, 59, 39, 0.12);
}

.hero-card img {
  width: 100%;
  display: block;
  height: 320px;
  object-fit: cover;
}

.hero-card-copy {
  padding: 26px 28px 32px;
}

.hero-card-copy span {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 0.82rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.hero-card-copy strong {
  display: block;
  color: var(--heading);
  font-size: 1.35rem;
  line-height: 1.25;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(15, 94, 153, 0.18);
  border-radius: 999px;
}

.hero-stats span {
  color: rgba(248, 251, 255, 0.8);
}

.hero-card,
.feature-panel,
.quality-panel,
.export-panel,
.card,
.timeline article,
.contact-form,
.map-card,
.catalogue-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.split-grid,
.contact-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-panel,
.quality-panel,
.export-panel {
  padding: 34px;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-list article {
  padding-top: 14px;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

.products .card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}

.card {
  padding: 24px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 46px rgba(18, 39, 63, 0.14);
}

.card h3 {
  margin-top: 18px;
  margin-bottom: 14px;
}

.card a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.card a:hover {
  text-decoration: underline;
}

.customer-gallery {
  position: relative;
  margin-top: 32px;
  padding: 48px 0 36px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96) 70%);
  border: 1px solid rgba(18, 39, 63, 0.08);
  border-radius: 160px;
  box-shadow: 0 36px 90px rgba(18, 39, 63, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.24);
  min-height: 240px;
  overflow: hidden;
}

.customer-gallery::before,
.customer-gallery::after {
  content: "";
  position: absolute;
  top: 10%;
  bottom: 10%;
  width: 170px;
  pointer-events: none;
  z-index: 1;
  border-radius: 999px;
  filter: blur(18px);
}

.customer-gallery::before {
  left: -40px;
  background: rgba(195, 59, 39, 0.14);
}

.customer-gallery::after {
  right: -40px;
  background: rgba(56, 189, 248, 0.11);
}

.customer-slider-track {
  overflow: hidden;
  position: relative;
}

.customer-slider {
  display: flex;
  gap: 28px;
  align-items: center;
  width: max-content;
  animation: slideLogos 35s linear infinite;
  padding: 0 80px;
}

.customer-slider:hover {
  animation-play-state: paused;
}

.customer-card {
  min-width: 220px;
  width: 220px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 72px;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7ff 100%);
  border: 1px solid rgba(18, 39, 63, 0.08);
  box-shadow: 0 20px 40px rgba(18, 39, 63, 0.1);
  padding: 18px;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.customer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 48px rgba(18, 39, 63, 0.12);
}

.customer-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background-color:  rgba(130, 186, 130, 0.849);
}

@keyframes slideLogos {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.section-intro {
  max-width: 680px;
  color: var(--muted);
  margin-bottom: 20px;
}

.gallery-note {
  margin-top: 18px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .customer-slider {
    padding: 0 80px;
    animation-duration: 22s;
  }

  .customer-card {
    min-width: 200px;
    height: 132px;
  }
}

@media (max-width: 700px) {
  .customer-gallery {
    padding: 18px 0 12px;
  }

  .customer-gallery::before,
  .customer-gallery::after {
    display: none;
  }

  .customer-slider {
    gap: 18px;
    padding: 0 16px;
    animation-duration: 20s;
  }

  .customer-card {
    min-width: 180px;
    height: 120px;
  }

  .customer-control {
    display: none;
  }
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.product-image {
  position: relative;
  margin: -24px -24px 18px;
  overflow: hidden;
  border-radius: 22px 22px 14px 14px;
}

.product-image img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  filter: saturate(0.95) contrast(1.04);
}

.product-image.gate-valve-image img {
  object-fit: contain;
  background: #f8fafc;
}

.media-frame.is-missing {
  min-height: 180px;
  border: 1px dashed rgba(56, 189, 248, 0.24);
}

.media-frame.is-missing::after {
  content: "Image unavailable";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.timeline {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.timeline article {
  padding: 28px;
}

.timeline span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.14);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 18px;
}

.quality-panel ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.quality-panel li {
  margin-bottom: 12px;
}

.export-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-list {
  margin: 18px 0 0;
  padding-left: 0;
  list-style: none;
}

.contact-list li {
  margin-bottom: 12px;
  color: var(--text);
}

.contact-list strong {
  color: var(--heading);
}

.contact-list a {
  color: var(--accent);
}

.contact-form {
  padding: 28px;
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--text);
}

.map-section {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 88px 0 100px;
}

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

.map-card {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.map-frame {
  width: 100%;
  height: 340px;
  background: #0b1220;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.map-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 28px 32px;
  flex-wrap: wrap;
}

.map-actions p {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  border-radius: 16px;
  padding: 16px 18px;
  font: inherit;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
  outline: none;
}

.site-footer {
  background: #12213a;
  color: #f5f8ff;
  border-top: 1px solid rgba(255, 251, 251, 0.08);
}

.site-footer p,
.site-footer a,
.site-footer h4 {
  color: #f3f4f7;
  margin: 0;
}

.footer-column a,
.footer-column p {
  color: rgba(245, 248, 255, 0.82);
}

.footer-column a:hover {
  color: #ffffff;
}

.site-footer a {
  color: var(--accent);
  text-decoration: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding: 48px 0 32px;
}

.footer-column h4 {
  margin-bottom: 16px;
  font-size: 1rem;
  color: #ffffff;
}

.footer-column a,
.footer-column p {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-copy {
  border-top: 1px solid rgba(242, 243, 245, 0.08);
  padding: 22px 0 12px;
  text-align: center;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
}

@media (max-width: 920px) {
  .hero {
    padding: 96px 0 64px;
  }

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

  .hero-grid,
  .split-grid,
  .contact-grid,
  .products .card-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .nav {
    position: fixed;
    top: 78px;
    right: -100%;
    width: min(85vw, 320px);
    height: calc(100vh - 78px);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background: var(--panel);
    border-left: 1px solid var(--border);
    transition: right 0.25s ease;
  }

  .nav.open {
    right: 0;
  }

  .nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .menu-toggle {
    display: block;
  }

  .map-frame {
    height: 260px;
  }

  .map-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (min-width: 921px) {
  .hero::before {
    background-attachment: fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
