:root {
  --primary: #1B365D;
  --accent: #F4A300;
  --bg: #F7F7F7;
  --text: #222222;
  --muted: #626b76;
  --card: #ffffff;
  --line: #dfe5ec;
  --shadow: 0 18px 45px rgba(27, 54, 93, 0.12);
  --radius: 8px;
  --max: 1180px;
}

[data-theme="dark"] {
  --bg: #111827;
  --text: #f5f7fa;
  --muted: #c4ccd7;
  --card: #182235;
  --line: #2a3850;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

[data-theme="dark"] .site-header {
  background: rgba(17, 24, 39, 0.94);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--primary);
}

[data-theme="dark"] .brand { color: #fff; }

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
  box-shadow: 0 8px 18px rgba(27, 54, 93, 0.14);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-weight: 700;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary);
}

[data-theme="dark"] .nav-menu a:hover,
[data-theme="dark"] .nav-menu a.active { color: var(--accent); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn,
.nav-toggle,
.dark-toggle {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  font-size: 1.25rem;
}

.hero {
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 28, 51, 0.82), rgba(12, 28, 51, 0.48), rgba(12, 28, 51, 0.18)),
    url("../images/hero-workshop.png") center / cover no-repeat;
}

.hero-content {
  max-width: 760px;
  padding: 110px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.12;
  color: inherit;
}

h1 {
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  max-width: 850px;
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

h3 {
  font-size: 1.25rem;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
}

.hero .lead {
  color: rgba(255, 255, 255, 0.88);
  max-width: 650px;
}

.hero-actions,
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--accent);
  color: #17243a;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(244, 163, 0, 0.24);
}

.btn-secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}

.btn-small {
  min-height: 42px;
  padding: 0 16px;
}

.section {
  padding: 88px 0;
}

.section.compact {
  padding: 50px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.process-step,
.review,
.stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card {
  padding: 26px;
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: rgba(244, 163, 0, 0.16);
  color: var(--primary);
  font-weight: 900;
  font-size: 1.3rem;
}

[data-theme="dark"] .feature-icon { color: var(--accent); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.image-frame {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-frame img,
.product-media img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 450ms ease;
}

.image-frame:hover img,
.product-card:hover .product-media img,
.gallery-item:hover img {
  transform: scale(1.045);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: -42px;
  position: relative;
  z-index: 2;
}

.stat-card {
  padding: 24px;
  text-align: center;
}

.stat-card strong {
  display: block;
  color: var(--primary);
  font-size: 2rem;
}

[data-theme="dark"] .stat-card strong { color: var(--accent); }

.process-step {
  padding: 28px;
}

.step-number {
  color: var(--accent);
  font-weight: 900;
  font-size: 2rem;
}

.cta {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #10233d);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta .lead {
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  color: rgba(255, 255, 255, 0.82);
  background: #10233d;
  padding: 58px 0 24px;
}

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

.footer-grid h3 {
  color: #fff;
  margin-bottom: 14px;
}

.footer-grid a {
  display: block;
  margin: 8px 0;
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.16);
  font-size: 0.9rem;
}

.whatsapp-float,
.back-to-top {
  position: fixed;
  right: 20px;
  z-index: 45;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
}

.whatsapp-float {
  bottom: 84px;
  background: linear-gradient(135deg, #2fe06f, #128c4a);
  color: #fff;
  border: 3px solid rgba(255, 255, 255, 0.9);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 36px rgba(18, 140, 74, 0.35);
}

.whatsapp-icon {
  width: 28px;
  height: 28px;
  display: block;
  background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23ffffff' d='M16.02 3.2C9.1 3.2 3.48 8.66 3.48 15.38c0 2.42.74 4.7 2.02 6.6L3.2 28.8l7.1-2.2a12.86 12.86 0 0 0 5.72 1.34c6.92 0 12.54-5.46 12.54-12.18S22.94 3.2 16.02 3.2Zm0 22.54c-1.78 0-3.5-.44-5.03-1.28l-.36-.2-4.2 1.3 1.36-4.02-.24-.38a10.05 10.05 0 0 1-1.76-5.78c0-5.5 4.6-9.98 10.23-9.98 5.64 0 10.23 4.48 10.23 9.98 0 5.5-4.59 10.36-10.23 10.36Zm5.62-7.56c-.3-.15-1.8-.86-2.08-.96-.28-.1-.48-.15-.68.15-.2.3-.78.96-.96 1.16-.18.2-.36.22-.66.07-.3-.15-1.28-.46-2.44-1.46-.9-.78-1.5-1.74-1.68-2.04-.18-.3-.02-.46.14-.6.14-.14.3-.36.46-.54.16-.18.2-.3.3-.5.1-.2.05-.38-.02-.54-.07-.15-.68-1.6-.94-2.18-.25-.56-.5-.48-.68-.49h-.58c-.2 0-.52.07-.8.38-.28.3-1.06 1.02-1.06 2.48s1.08 2.88 1.24 3.08c.15.2 2.12 3.16 5.14 4.42.72.3 1.28.48 1.72.62.72.22 1.38.19 1.9.12.58-.08 1.8-.72 2.06-1.42.25-.7.25-1.3.18-1.42-.08-.12-.28-.2-.58-.35Z'/%3E%3C/svg%3E");
}

.back-to-top {
  bottom: 24px;
  border: 0;
  color: #17243a;
  background: var(--accent);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  padding: 90px 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(12, 28, 51, 0.86), rgba(12, 28, 51, 0.38)),
    url("../images/manufacturing-floor.png") center / cover no-repeat;
}

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

.check-list li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 900;
}

.two-column {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
  align-items: start;
}

.gallery-masonry {
  columns: 3 280px;
  column-gap: 18px;
}

.gallery-item {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  border: 0;
  padding: 0;
  background: transparent;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.gallery-item img {
  aspect-ratio: 4 / 3;
}

.gallery-item.tall img {
  aspect-ratio: 3 / 4;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
}

.modal.open {
  display: grid;
}

.modal img {
  max-height: 86vh;
  border-radius: var(--radius);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
}

.contact-list {
  display: grid;
  gap: 16px;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  gap: 8px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: var(--card);
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.error {
  min-height: 18px;
  color: #b42318;
  font-size: 0.85rem;
}

.form-status.success {
  color: #157347;
  font-weight: 800;
}

.map-placeholder {
  min-height: 270px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(45deg, rgba(27,54,93,0.08) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(27,54,93,0.08) 25%, transparent 25%),
    var(--card);
  background-size: 28px 28px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
