/* EGES Vending — marketing site (white, minimal) */
:root {
  --bg: #ffffff;
  --soft: #f6f6f4;
  --line: #e5e5e2;
  --line-strong: #cfcfcb;
  --text: #111111;
  --muted: #6b6b68;
  --accent: #b8891a;
  --wrap: 1120px;
  --header: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 8px;
  border: 1px solid transparent;
  font: 600 0.93rem/1 var(--font);
  padding: 0.9rem 1.35rem;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-primary { color: #fff; background: var(--text); border-color: var(--text); }
.btn-primary:hover { background: #333; border-color: #333; }
.btn-outline { color: var(--text); background: var(--bg); border-color: var(--line-strong); }
.btn-outline:hover { border-color: var(--text); }
.btn-nav { padding: 0.6rem 1rem; font-size: 0.86rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--header);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand span span { font-weight: 400; color: var(--muted); margin-left: 0.3rem; }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a:not(.btn) { font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--text); }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; padding: 10px; }
.burger span { display: block; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 5rem 0 4.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3.5rem; align-items: center; }
.eyebrow { font-size: 0.82rem; font-weight: 600; color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); margin-bottom: 1.25rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34rem; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-points { display: flex; gap: 1.75rem; flex-wrap: wrap; margin-top: 2.5rem; font-size: 0.88rem; color: var(--muted); }
.hero-points li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 0.55rem; vertical-align: middle; }
.hero-media { background: var(--soft); border-radius: 20px; display: grid; place-items: center; padding: 2.5rem; min-height: 440px; }
.hero-media img { max-height: 400px; width: auto; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; border-top: 1px solid var(--line); }
.section-head { max-width: 40rem; margin-bottom: 2.75rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 0.75rem; }
.section-head p { color: var(--muted); font-size: 1.02rem; }

/* ---------- Machines ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.product-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.product-photo { background: var(--soft); height: 280px; padding: 1.25rem; }
.product-photo { overflow: hidden; }
.product-photo img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.product-photo.has-gallery img { cursor: zoom-in; }
.product-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; padding: 0.6rem 1.4rem 0; }
.product-thumb { padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); height: 56px; overflow: hidden; cursor: pointer; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-thumb.is-active { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(17, 17, 17, 0.85); display: grid; place-items: center; padding: 1.5rem; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 1.4rem; }
.product-card h3 { font-size: 1.1rem; margin-bottom: 0.35rem; }
.product-price { font-size: 1.05rem; font-weight: 600; margin-bottom: 1rem; }
.product-price span { color: var(--muted); font-weight: 400; font-size: 0.88rem; }
.product-specs { display: grid; gap: 0.4rem; font-size: 0.9rem; color: var(--muted); margin-bottom: 1.4rem; flex: 1; }
.product-specs li { padding-left: 1rem; position: relative; }
.product-specs li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }

.addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.addon { padding: 1.1rem 0 0; border-top: 1px solid var(--line); }
.addon strong { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; font-size: 0.95rem; }
.addon p { color: var(--muted); font-size: 0.88rem; margin-top: 0.3rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li { counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font-size: 0.85rem; font-weight: 600; color: var(--accent); margin-bottom: 0.75rem; }
.steps h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.steps p { color: var(--muted); font-size: 0.94rem; }
.note { margin-top: 2.25rem; padding: 1rem 1.2rem; background: var(--soft); border-radius: 12px; font-size: 0.92rem; color: var(--muted); }
.note strong { color: var(--text); font-weight: 600; }

/* ---------- Placement ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.split h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 0.9rem; }
.split p { color: var(--muted); margin-bottom: 1.5rem; }
.plain-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.plain-list li { padding: 0.85rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 46rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; padding: 1.15rem 2rem 1.15rem 0; font-weight: 500; list-style: none; position: relative; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; position: absolute; right: 0.25rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; font-weight: 400; color: var(--muted); }
.faq-item[open] summary::after { content: "–"; }
.faq-answer { padding: 0 2rem 1.25rem 0; color: var(--muted); font-size: 0.96rem; }
.faq-answer a, .mail a, .form-note a { text-decoration: underline; text-underline-offset: 3px; color: var(--text); }

/* ---------- Contact ---------- */
.mail { margin-top: 1rem; font-size: 0.95rem; }
.form { display: grid; gap: 0.9rem; }
.form label { display: grid; gap: 0.35rem; font-size: 0.82rem; font-weight: 500; }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 0.75rem 0.85rem;
  outline: none;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--text); box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08); }
.form textarea { resize: vertical; min-height: 110px; }
.form-note { font-size: 0.9rem; min-height: 1.2em; color: var(--muted); }
.form-note.success { color: #13795b; }
.form-note.error { color: #b42318; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 2rem 0; }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; font-size: 0.88rem; color: var(--muted); }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 920px) {
  .hero { padding: 3rem 0; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-media { min-height: 0; padding: 2rem; }
  .hero-media img { max-height: 300px; }
  .steps, .addons { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
  .burger { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 1.25rem 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav .btn { margin-top: 1rem; }
}
@media (max-width: 600px) { .product-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .plain-list { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
