:root {
  --ink: #1b1c19;
  --muted: #6a6762;
  --nav-text: #3a3834;
  --line: #e7e0d3;
  --bg: #ffffff;
  --cream: #f2e6d4;
  --peach: #f9f3ea;
  --brown: #996e44;
  --red: #be2026;
  --footer-bg: #e7e8e5;
  --radius: 14px;
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: 2.6rem; }
h2 { font-size: 2rem; }
p { margin: 0 0 1em; color: var(--muted); }

.eyebrow {
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .09em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .6em;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 700;
  font-size: .95rem;
  background: transparent;
}
.btn:hover { text-decoration: none; background: var(--red); color: #fff; }
.btn.primary { background: var(--red); color: #fff; border-color: var(--red); }
.btn.primary:hover { background: #9c1a1f; border-color: #9c1a1f; }
.btn.cream { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn.cream:hover { background: #fff; border-color: #fff; }

/* Header */
.site-header {
  background: var(--cream);
  border-bottom: 1px solid rgba(153,110,68,.18);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  gap: 24px;
  flex-wrap: wrap;
}
.brand img { height: 40px; display: block; }
nav.main-nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
nav.main-nav a {
  color: var(--nav-text);
  font-weight: 600;
  font-size: .95rem;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--red);
  text-decoration: none;
  border-bottom-color: var(--red);
}
.lang-flags { display: flex; gap: 8px; align-items: center; font-size: 1.3rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(10,10,8,.72) 0%, rgba(10,10,8,.42) 45%, rgba(10,10,8,.15) 75%);
}
.hero .container { position: relative; z-index: 1; padding-bottom: 56px; padding-top: 90px; width: 100%; }
.hero .eyebrow { color: rgba(255,255,255,.75); }
.hero h1 {
  font-size: 3.2rem;
  text-transform: uppercase;
  max-width: 780px;
  margin-bottom: .3em;
}
.hero p.lead {
  color: rgba(255,255,255,.92);
  font-style: italic;
  font-size: 1.15rem;
  max-width: 620px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 20px; margin-bottom: 40px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 720px;
  margin-left: auto;
}
.hero-stats div {
  padding: 20px 22px;
  text-align: left;
  color: var(--ink);
  border-left: 1px solid rgba(0,0,0,.08);
}
.hero-stats div:first-child { border-left: none; }
.hero-stats strong { display: block; font-size: 1.8rem; color: var(--red); font-weight: 800; line-height: 1; margin-bottom: 6px; }
.hero-stats span { font-size: .82rem; color: var(--ink); font-weight: 600; line-height: 1.3; display: block; }

@media (max-width: 900px) {
  .hero-stats { grid-template-columns: 1fr; max-width: 100%; }
  .hero-stats div { border-left: none; border-top: 1px solid rgba(0,0,0,.08); }
  .hero-stats div:first-child { border-top: none; }
  .hero h1 { font-size: 2.2rem; }
}

/* Simple page hero for inner pages (no photo) */
.page-hero {
  background: var(--cream);
  padding: 64px 0;
}
.page-hero h1 { color: var(--brown); font-size: 2.4rem; }
.page-hero .lead { color: var(--nav-text); font-size: 1.05rem; max-width: 640px; }

/* Sections */
section.block { padding: 72px 0; }
section.block.bg-peach { background: var(--peach); }
section.block.bg-white { background: #fff; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
h2.red { color: var(--red); }
.section-head .heading-block h2 { color: var(--brown); }
.section-head .side-text { max-width: 380px; color: var(--muted); margin: 0; }
.link-arrow { font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); padding-bottom: 10px; display: inline-block; color: var(--ink); }
.link-arrow:hover { color: var(--red); text-decoration: none; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Category cards (photo already has label baked in) */
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3/4.2;
  display: block;
}
.category-card img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Machine cards (selected machines) */
.machine-card {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--peach);
}
.machine-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.machine-card .machine-card-body { padding: 18px 4px 0; }
.machine-card .model { color: var(--muted); font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; margin-bottom: 4px; }
.machine-card h3 { color: var(--brown); font-size: 1.2rem; margin-bottom: 0; }
.machine-card h3 a { color: inherit; }
.machine-card h3 a:hover { color: var(--red); text-decoration: none; }

/* Industries list (numbered rows) */
.industry-rows { list-style: none; padding: 0; margin: 0; }
.industry-rows li {
  display: flex;
  align-items: baseline;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-weight: 700;
  color: var(--brown);
  font-size: 1.1rem;
}
.industry-rows li:last-child { border-bottom: 1px solid var(--line); }
.industry-rows li .num { color: var(--muted); font-size: .8rem; font-weight: 700; min-width: 22px; }

/* Why Harmony numbered feature list */
.feature-rows { list-style: none; padding: 0; margin: 0; }
.feature-rows li { padding: 20px 0; border-top: 1px solid var(--line); display: flex; gap: 20px; }
.feature-rows li:last-child { border-bottom: 1px solid var(--line); }
.feature-rows li .num { color: var(--muted); font-size: .8rem; font-weight: 700; min-width: 22px; padding-top: 4px; }
.feature-rows li h3 { color: var(--brown); font-size: 1.15rem; margin-bottom: 4px; }
.feature-rows li p { margin: 0; }
.why-image { border-radius: var(--radius); overflow: hidden; }
.why-image img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 340px; }

/* Global presence map */
.map-wrap { position: relative; }
.map-wrap img { width: 100%; display: block; border-radius: var(--radius); }

/* CTA band */
.cta-band { background: var(--brown); color: #fff; }
.cta-band .eyebrow { color: rgba(255,255,255,.8); }
.cta-band h2 { color: #fff; max-width: 640px; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 420px; }
.cta-band .grid-2 { align-items: center; }

/* Footer */
.site-footer {
  background: var(--footer-bg);
  padding: 56px 0 0;
}
.site-footer .footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 32px; padding-bottom: 40px; }
@media (max-width: 900px) { .site-footer .footer-top { grid-template-columns: 1fr 1fr; } }
.site-footer .brand img { height: 46px; margin-bottom: 14px; }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink); margin-bottom: 14px; }
.site-footer address, .site-footer p { font-style: normal; color: var(--muted); margin: 0 0 14px; font-size: .92rem; line-height: 1.6; }
.site-footer a.footer-link { display: block; color: var(--muted); margin-bottom: 6px; font-size: .92rem; }
.site-footer a.see-map { font-weight: 700; font-size: .82rem; text-transform: uppercase; color: var(--ink); border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.site-footer a.see-map:hover { color: var(--red); border-color: var(--red); text-decoration: none; }
.social-icons { display: flex; gap: 10px; margin-top: 18px; }
.social-icons a {
  width: 34px; height: 34px; border-radius: 8px; background: var(--ink);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.social-icons a:hover { background: var(--red); text-decoration: none; }
.footer-bottom-bar { background: var(--red); height: 6px; margin-top: 24px; }

.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.whatsapp-float svg { width: 30px; height: 30px; }

/* Simple/plain pages (Machines, Industries, About, Contact) reuse tokens above */
.bg-soft { background: var(--peach); }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
}
.card h3 { margin-bottom: .35em; color: var(--brown); }

.machine-grid-card { display: flex; flex-direction: column; }
.machine-grid-card img {
  width: 100%; height: 190px; object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--peach);
}
.machine-grid-card .category-tag {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--red);
  font-weight: 700;
  margin-bottom: 4px;
}
.machine-grid-card .model { color: var(--muted); font-size: .85rem; margin-bottom: 2px; }

.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 800px) { .product-hero { grid-template-columns: 1fr; } }
.product-hero img { width: 100%; border-radius: var(--radius); background: var(--peach); }

.spec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .spec-grid { grid-template-columns: 1fr 1fr; } }
.spec-grid div { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.spec-grid span { display: block; font-size: .75rem; color: var(--muted); margin-bottom: 4px; }

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 800px) { .feature-list { grid-template-columns: 1fr; } }
.feature-list div { display: flex; gap: 10px; align-items: baseline; }
.feature-list span { color: var(--red); font-weight: 700; }

form.contact-form { display: grid; gap: 14px; max-width: 620px; }
form.contact-form label { font-size: .85rem; font-weight: 700; display: block; margin-bottom: 4px; }
form.contact-form input,
form.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}
form.contact-form button { justify-self: start; cursor: pointer; }
.alert-success { background: #eef7ee; border: 1px solid #b6dcb6; color: #245c24; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; }
.error-list { background: #fdecea; border: 1px solid #f3b4ac; color: #7c211a; padding: 12px 16px; border-radius: 8px; margin-bottom: 20px; }
.error-list ul { margin: 0; padding-left: 18px; }
.contact-block { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--peach); }
.contact-block a { display: block; margin: 6px 0; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 800px) { .timeline { grid-template-columns: 1fr 1fr; } }
.timeline strong { display: block; font-size: 1.1rem; margin-bottom: 4px; color: var(--brown); }
.timeline span { font-size: .85rem; color: var(--muted); }

.industry-card span.index { color: var(--red); font-weight: 700; font-size: .85rem; }
