:root {
  --page-gutter: max(clamp(16px, 5vw, 72px), calc((100% - 1320px) / 2));
  --bg: #0c0d0f;
  --bg-soft: #14171a;
  --panel: #181b1f;
  --panel-2: #20242a;
  --ink: #f5f5f2;
  --muted: #b8bdc2;
  --muted-dark: #6f767d;
  --line: #373c42;
  --steel: #a8adb1;
  --gold: #d99a16;
  --gold-bright: #f4b51f;
  --copper: #9c6528;
  --blue: #2e8cff;
  --green: #1fae67;
  --danger: #c94a35;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(12, 13, 15, 0.88), rgba(12, 13, 15, 1)),
    radial-gradient(circle at 20% 0%, rgba(217, 154, 22, 0.14), transparent 34%),
    var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.topbar {
  display: flex;
  justify-content: safe center;
  gap: 20px;
  flex-wrap: nowrap;

  padding: 9px 18px;
  color: var(--muted);
  background: #070809;
  border-bottom: 1px solid rgba(217, 154, 22, 0.28);
  font-size: 0.86rem;
  font-weight: 700;
}

.topbar-item,
.footer-contact a,
.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topbar a:hover {
  color: var(--gold-bright);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px var(--page-gutter);
  background: rgba(12, 13, 15, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-logo {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 1px solid rgba(217, 154, 22, 0.45);
  border-radius: 7px;
}

.header-logo {
  width: clamp(210px, 22vw, 340px);
  height: 78px;
  object-fit: contain;
  border: 0;
  border-radius: 0;
  max-width: 100%;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #0c0d0f;
  background: var(--gold-bright);
  border-radius: 6px;
}

.main-nav,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a:hover {
  color: var(--gold-bright);
}

.nav-cta {
  padding: 10px 14px;
  color: #111 !important;
  background: var(--gold-bright);
  border-radius: 6px;
}

.hero {
  min-height: min(76svh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  padding: clamp(48px, 7vw, 92px) var(--page-gutter) clamp(48px, 6vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 9, 10, 0.82), rgba(8, 9, 10, 0.5)),
    url("../../Logo metalpro.jpg");
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 790px;
}

.hero h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(2rem, 1.2rem + 4vw, 4.8rem);
  line-height: 1.04;
  text-transform: none;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.hero-panel {
  display: grid;
  gap: 10px;
  padding: 22px;
  background: rgba(12, 13, 15, 0.78);
  border: 1px solid rgba(217, 154, 22, 0.55);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-panel strong {
  color: var(--gold-bright);
  font-size: 1.08rem;
  text-transform: uppercase;
}

.hero-panel span {
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 10px;
  font-weight: 700;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(2.55rem, 7vw, 5.35rem);
  line-height: 1;
  letter-spacing: 0;
  text-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(1.85rem, 4vw, 3.15rem);
  line-height: 1.05;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.13rem;
}

.hero p {
  max-width: 680px;
  color: #e3e6e7;
  font-size: 1.13rem;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 10px 16px;
  cursor: pointer;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, border 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #111;
  background: var(--gold-bright);
}

.button.primary:hover {
  background: #ffd15a;
}

.button.secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.button.ghost {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.section {
  padding: clamp(48px, 6vw, 78px) var(--page-gutter);
}

.section-heading {
  max-width: 800px;
  margin-bottom: 32px;
}

.section-heading p,
.split-section p,
.contact-section p,
.machinery-section p {
  color: var(--muted);
}

.services-section,
.process-section {
  background: #101214;
}

.service-list,
.machine-grid,
.process-grid {
  display: grid;
  gap: 16px;
}

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

.machine-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.service-list article,
.machine-grid article,
.process-grid article {
  background: linear-gradient(180deg, var(--panel), #111316);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.service-list article,
.machine-grid article,
.process-grid article {
  padding: 22px;
}

.service-list article {
  overflow: hidden;
  padding: 0;
}

.service-list article h3,
.service-list article p,
.service-list article .service-icon {
  margin-left: 22px;
  margin-right: 22px;
}

.service-list article p {
  margin-bottom: 24px;
  color: var(--muted);
}

.service-photo {
  width: 100%;
  height: 190px;
  object-fit: cover;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(217, 154, 22, 0.28);
  background-color: #0b0c0e;
  background-position: center;
  background-size: cover;
}

.service-icon,
.process-grid span {
  display: inline-grid;
  min-width: 48px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  color: #111;
  background: var(--gold-bright);
  border-radius: 5px;
  font-weight: 900;
}

.machine-grid ul {
  display: grid;
  gap: 10px;
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--muted);
}

.machine-grid a {
  color: var(--gold-bright);
  font-weight: 900;
}

.machine-grid article {
  overflow: hidden;
  padding: 0;
}

.machine-grid article h3,
.machine-grid article ul,
.machine-grid article a {
  margin-left: 24px;
  margin-right: 24px;
}

.machine-grid article a {
  display: inline-flex;
  margin-bottom: 24px;
}

.machine-photo {
  width: 100%;
  height: 210px;
  object-fit: cover;
  margin-bottom: 22px;
  border-bottom: 1px solid rgba(217, 154, 22, 0.28);
  background-color: #0b0c0e;
  background-position: center;
  background-size: cover;
}

.products-section {
  background:
    linear-gradient(180deg, rgba(20, 23, 26, 0.96), rgba(12, 13, 15, 0.98)),
    radial-gradient(circle at 80% 10%, rgba(46, 140, 255, 0.13), transparent 30%);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

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

.product-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #1a1d20;
}

.product-info {
  padding: 18px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.badge {
  padding: 4px 8px;
  color: #111;
  background: var(--gold-bright);
  border-radius: 999px;
  font-size: 0.72rem;
}

.empty-state {
  padding: 30px;
  color: var(--muted);
  background: var(--panel);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: start;
  background: #0f1113;
}

.contact-card {
  display: grid;
  gap: 12px;
  padding: 26px;
  font-size: 1.04rem;
  font-weight: 800;
}

.contact-card a {
  color: var(--ink);
}

.contact-card a:hover {
  color: var(--gold-bright);
}

.contact-card span {
  color: var(--muted);
}

.location-section {
  padding-right: 0;
  padding-left: 0;
  background: #15181b;
}

.location-heading {
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 0 var(--page-gutter) 32px;
  text-align: center;
}

.location-heading h2 {
  margin-bottom: 0;
}

.location-heading a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #c7efff;
  font-size: 1.1rem;
  font-weight: 800;
}

.map-shell {
  overflow: hidden;
  border-top: 1px solid rgba(217, 154, 22, 0.42);
  border-bottom: 1px solid rgba(217, 154, 22, 0.42);
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  box-shadow: var(--shadow);
}

.map-shell iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 45vw, 500px);
  border: 0;
}

.floating-whatsapp {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 20;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
  font-weight: 900;
}

.whatsapp-icon {
  width: 34px;
  height: 34px;
  fill: currentColor;
  stroke: none;
}

.whatsapp-mark {
  fill: currentColor;
  stroke: none;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 46px;
  align-items: center;
  padding: 42px var(--page-gutter) 96px;
  color: var(--muted);
  background:
    linear-gradient(90deg, rgba(7, 8, 9, 0.96), rgba(16, 24, 49, 0.9)),
    #070809;
  border-top: 1px solid rgba(217, 154, 22, 0.28);
}

.site-footer div {
  display: grid;
  gap: 8px;
}

.footer-logo {
  width: min(260px, 100%);
  border: 1px solid rgba(217, 154, 22, 0.38);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
}

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

.footer-address {
  min-width: 0;
  align-content: start;
}

.site-footer strong {
  color: var(--ink);
  text-transform: uppercase;
}

.site-footer a:hover {
  color: var(--gold-bright);
}

/* Keep content readable without hiding horizontal overflow. */
body {
  overflow-wrap: anywhere;
}

section[id] {
  scroll-margin-top: 120px;
}

:is(.hero-content, .brand, .main-nav, .section-heading, .footer-contact,
    .service-list > *, .machine-grid > *, .product-grid > *, .process-grid > *,
    .site-footer > *) {
  min-width: 0;
}

h1, h2, h3 {
  text-wrap: balance;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.topbar-item {
  min-height: 44px;
  flex: 0 0 auto;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 10px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 6px;
}

.product-meta {
  flex-wrap: wrap;
}

.badge {
  flex-shrink: 0;
}

.machine-grid article {
  display: flex;
  flex-direction: column;
}

.machine-grid article a {
  align-items: center;
  min-height: 44px;
  margin-top: auto;
}

.product-info p, .process-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.footer-contact a, .footer-contact span {
  min-width: 0;
  min-height: 44px;
}

.location-heading a {
  min-height: 44px;
}

@media (max-width: 1100px) {
  .product-grid, .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr);
    gap: 28px;
  }

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

@media (max-width: 900px) {
  .site-header {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .header-logo {
    width: clamp(180px, 40vw, 240px);
    height: 64px;
  }

  .main-nav {
    width: 100%;
    max-height: calc(100dvh - 100px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }

  .main-nav a {
    justify-content: flex-start;
    padding: 12px 8px;
  }

  .menu-ready .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu-ready .main-nav {
    display: none;
  }

  .menu-ready.menu-open .main-nav {
    display: flex;
  }

  section[id] {
    scroll-margin-top: 104px;
  }

  .service-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-list article:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 16px) / 2);
    justify-self: center;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .main-nav a {
    font-size: 0.875rem;
  }

  .hero h1 {
    line-height: 1.12;
  }

  .hero p {
    font-size: 1rem;
  }

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

  .button {
    text-align: center;
    min-height: 48px;
  }

  .service-list, .machine-grid, .product-grid, .process-grid, .contact-section {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-list article:last-child {
    grid-column: auto;
    width: 100%;
  }

  .service-photo {
    height: clamp(160px, 48vw, 250px);
  }

  .machine-photo {
    height: clamp(170px, 52vw, 270px);
  }

  .site-footer {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .footer-logo {
    width: min(230px, 100%);
    margin-inline: auto;
  }

  .floating-whatsapp {
    width: 56px;
    height: 56px;
  }
}

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

  .button {
    transition: none;
  }
}

.contact-short {
  display: none;
}

@media (max-width: 1100px) {
  .topbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    padding: 6px 8px;
  }

  .topbar-item {
    min-width: 0;
    min-height: 56px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 4px 2px;
    white-space: normal;
    text-align: center;
    font-size: 0.75rem;
  }

  .topbar-item + .topbar-item {
    border-left: 1px solid var(--line);
  }

  .contact-full {
    display: none;
  }

  .contact-short {
    display: inline;
  }
}
