/* ============ Micon General — clean, understated theme ============ */

:root {
  --bg: #f7f6f3;          /* warm off-white */
  --surface: #ffffff;
  --ink: #24292f;          /* dark slate for text */
  --ink-soft: #4d555e;
  --muted: #737b84;
  --line: #e4e1da;
  --accent: #a97b2f;       /* muted brass */
  --accent-soft: #f4ead8;
  --footer-bg: #2b3138;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(36, 41, 47, 0.07);
  --shadow-lg: 0 12px 32px rgba(36, 41, 47, 0.16);
}

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

html { scroll-behavior: smooth; }

/* keep anchored sections from hiding under the sticky header */
section, footer { scroll-margin-top: 84px; }

body {
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

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

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

/* ---------- header ---------- */

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  font-size: 1rem;
  border-radius: 8px;
  letter-spacing: 0.5px;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 1.05rem;
}

.brand-name em {
  font-style: normal;
  color: var(--accent);
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 1.6rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.site-nav a:hover { color: var(--accent); }

.site-nav .lang-toggle {
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 1px;
  color: var(--accent);
}

.site-nav .lang-toggle:hover { border-color: var(--accent); }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  padding: 5.5rem 0 4.5rem;
}

.hero-kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 3px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.1;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.hero-sub {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.75rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.3px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-primary {
  background: var(--ink);
  color: #ffffff;
}

.btn-primary:hover {
  background: #3a424b;
  transform: translateY(-1px);
}

/* ---------- inventory ---------- */

.inventory { padding: 4.5rem 0; }

.section-title {
  font-size: 1.9rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  background: var(--accent);
  margin-top: 0.6rem;
  border-radius: 2px;
}

.section-sub {
  color: var(--muted);
  margin: 1rem 0 2.2rem;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 1.6rem;
}

.item-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.item-photo {
  position: relative;
  aspect-ratio: 8 / 5;
  overflow: hidden;
  cursor: pointer;
  background: #edeae4;
}

.item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
}

.item-body {
  padding: 1.2rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.item-body h3 {
  color: var(--ink);
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
  cursor: pointer;
}

.item-body h3:hover { color: var(--accent); }

.item-meta {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.item-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 0.7rem;
}

.item-desc {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin-bottom: 1.2rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.item-body .btn { align-self: flex-start; }

.item-body h3 a { color: inherit; text-decoration: none; }
.item-body h3 a:hover { color: var(--accent); }

.item-photo { display: block; }

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-actions .btn { align-self: auto; }

.btn-contact {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

.btn-contact:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }

.btn-wa {
  background: #eaf7ef;
  color: #1c7c45;
  border-color: #cdeeda;
}

.btn-wa:hover { border-color: #1c7c45; color: #14603a; }

/* ---------- machine detail page ---------- */

.detail-wrap { padding: 2.5rem 0 4rem; }

.back-link {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.back-link:hover { color: var(--accent); }

.sold-banner {
  background: #f9e9e7;
  color: #b3453a;
  font-weight: 600;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 800px) {
  .detail-grid { grid-template-columns: 1fr; }
}

.detail-gallery img#d-main {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #edeae4;
}

.detail-thumbs {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}

.detail-thumbs img {
  width: 86px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid var(--line);
  cursor: pointer;
}

.detail-thumbs img.active { border-color: var(--accent); }

.detail-info .item-badge { position: static; display: inline-block; margin-bottom: 0.8rem; }

.detail-info h1 {
  font-size: 1.8rem;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.4rem;
}

.detail-price {
  color: var(--accent);
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0.6rem 0 1rem;
}

.detail-desc {
  color: var(--ink-soft);
  white-space: pre-line;
  margin-bottom: 1.6rem;
}

.detail-actions {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 340px;
}

.detail-actions .btn { text-align: center; }

/* ---------- why us ---------- */

.why-us {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 4.5rem 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}

.why-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}

.why-card h3 {
  color: var(--ink);
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.why-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--footer-bg);
  color: #d6d9dd;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: center;
  padding: 3rem 0 2rem;
}

.footer-brand { font-size: 1.3rem; color: #ffffff; }

.footer-brand em { color: #d9b36a; }

.footer-tag { color: #9aa1a9; }

.footer-contact { text-align: right; }

.footer-contact p { color: #9aa1a9; margin-bottom: 0.8rem; }

.site-footer .btn-primary {
  background: #ffffff;
  color: var(--ink);
}

.site-footer .btn-primary:hover { background: #e8e5df; }

.footer-legal {
  border-top: 1px solid #3c434b;
  padding: 1.2rem 0;
  color: #7d848c;
  font-size: 0.85rem;
}

/* ---------- modal ---------- */

.modal-backdrop[hidden] { display: none; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(36, 41, 47, 0.55);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 1rem;
}

.modal {
  background: var(--surface);
  border-radius: var(--radius);
  max-width: 720px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 1px solid var(--line);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-close:hover { color: var(--accent); }

.modal-gallery {
  position: relative;
  background: #edeae4;
}

.modal-gallery img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border: 1px solid var(--line);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.gallery-nav:hover { color: var(--accent); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }

.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.gallery-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(36, 41, 47, 0.25);
  cursor: pointer;
}

.gallery-dots span.active { background: var(--accent); border-color: var(--accent); }

.modal-body { padding: 1.5rem 1.7rem 1.8rem; }

.modal-body h3 {
  color: var(--ink);
  font-size: 1.4rem;
  margin-bottom: 0.3rem;
}

.modal-meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.5rem; }

.modal-price { color: var(--accent); font-weight: 700; font-size: 1.4rem; margin-bottom: 0.8rem; }

.modal-desc { color: var(--ink-soft); margin-bottom: 1.4rem; }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  .site-nav a { margin-left: 1rem; font-size: 0.85rem; }
  .hero { padding: 4rem 0 3.5rem; }
  .footer-contact { text-align: left; }
}
