/* YUCHO Donut Machine — static site styles
   Design tokens carried over from the supplier's DESIGN.md:
   deep navy structure + a single fire-orange inquiry accent. */

:root {
  --primary: #0b2545;
  --primary-strong: #071a33;
  --primary-soft: #13355c;
  --primary-tint: #e4ebf4;
  --accent: #cc3a0f;
  --accent-strong: #a82e0b;
  --accent-tint: #fce7df;
  --background: #f4f6f8;
  --surface: #ffffff;
  --surface-sunken: #f7f9fb;
  --ink: #101e2e;
  --ink-muted: #46535f;
  --border: #d3dae2;
  --on-primary: #ffffff;
  --on-dark-muted: #c3cedc;
  --radius: 10px;
  --maxw: 1180px;
  --shadow: 0 6px 24px rgba(11, 37, 69, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Inter, system-ui, -apple-system, Arial, sans-serif;
  color: var(--ink);
  background: var(--background);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-soft); text-decoration: none; }
a:hover { color: var(--accent); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--primary);
  color: var(--on-primary);
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; letter-spacing: .5px; font-size: 20px; }
.brand:hover { color: #fff; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: #fff;
}
.brand small { display: block; font-size: 9px; letter-spacing: 1.6px; font-weight: 600; color: var(--on-dark-muted); }
.brand-logo {
  display: block; height: 40px; width: auto; max-width: 190px; object-fit: contain;
  /* Full-colour YUCHO logo on a light plate so the blue wordmark stays legible on the dark header. */
  background: #fff; border-radius: 6px; padding: 4px 8px; box-sizing: border-box;
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav a { color: #dfe7f0; padding: 8px 11px; border-radius: 6px; font-size: 14px; font-weight: 600; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.1); color: #fff; }
.nav-cta {
  background: var(--accent) !important; color: #fff !important; padding: 9px 16px !important; border-radius: 6px;
}
.nav-cta:hover { background: var(--accent-strong) !important; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; margin-left: auto; cursor: pointer; }

/* ---------- Nav dropdown (machine categories) ---------- */
.nav-dropdown { position: relative; }
.nav-dropdown-top { display: flex; align-items: center; }
.nav-dropdown-top > a { padding-right: 4px; }
.nav-caret {
  background: none; border: 0; color: #dfe7f0; cursor: pointer;
  font-size: 12px; line-height: 1; padding: 8px 9px 8px 2px; border-radius: 6px;
}
.nav-caret:hover, .nav-dropdown.open .nav-caret { color: #fff; background: rgba(255,255,255,.1); }
.nav-dropdown.open > .nav-dropdown-top > a { background: rgba(255,255,255,.1); color: #fff; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0; z-index: 80;
  min-width: 250px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px; box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; color: var(--ink); font-size: 13.5px; font-weight: 600;
  padding: 9px 11px; border-radius: 5px; white-space: nowrap;
}
.dropdown-menu a:hover, .dropdown-menu a:focus { background: var(--primary-tint); color: var(--primary); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--primary-strong), var(--primary-soft));
  color: #fff; padding: 68px 0 60px; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,90,31,.22), transparent 68%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.eyebrow { color: #ff8a5c; font-weight: 700; letter-spacing: 1.5px; font-size: 12px; text-transform: uppercase; }
.hero h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.12; margin: 14px 0 18px; font-weight: 800; }
.hero p.lead { font-size: 17px; color: #dbe6f2; max-width: 640px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 26px; font-size: 13px; color: var(--on-dark-muted); }
.hero-badges span::before { content: "✓ "; color: #ff8a5c; font-weight: 800; }
.hero-img { border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.35); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 7px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-strong); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-dark { background: var(--primary); color: #fff; }
.btn-dark:hover { background: var(--primary-soft); color: #fff; }
.btn-sm { padding: 8px 14px; font-size: 13px; }

/* ---------- Sections ---------- */
section { padding: 62px 0; }
section.tint { background: var(--surface); }
section.sunken { background: var(--surface-sunken); }
.section-head { margin-bottom: 34px; max-width: 760px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.2; margin: 8px 0 12px; color: var(--primary); }
.section-head p { color: var(--ink-muted); font-size: 16px; margin: 0; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 8px; color: var(--primary); font-size: 18px; }
.card p { margin: 0; color: var(--ink-muted); font-size: 14.5px; }
.feature-card { border-top: 4px solid var(--accent); }
.feature-card .ic { font-size: 26px; margin-bottom: 8px; }

.product-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.product-card .thumb { background: #fff; aspect-ratio: 4/3; display: grid; place-items: center; padding: 14px; border-bottom: 1px solid var(--border); }
.product-card .thumb img { max-height: 100%; object-fit: contain; }
.product-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card .model { font-size: 11px; font-weight: 800; letter-spacing: 1.2px; color: var(--accent); text-transform: uppercase; }
.product-card h3 { font-size: 17px; margin: 0; }
.product-card .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: var(--primary-tint); color: var(--primary) !important; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 20px; }
.product-card .card-foot { margin-top: auto; padding-top: 10px; }

.cat-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; color: inherit; }
.cat-card:hover { color: inherit; box-shadow: 0 10px 30px rgba(11,37,69,.14); }
.cat-card .cat-img {
  height: 190px; flex: 0 0 190px; min-height: 0;
  background: #fff; display: flex; align-items: center; justify-content: center;
  padding: 16px; border-bottom: 1px solid var(--border); overflow: hidden;
}
.cat-card .cat-img img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.cat-card .cat-body { padding: 18px; flex: 1 1 auto; }
.cat-card h3 { margin: 0 0 6px; line-height: 1.3; }
.cat-card p { font-size: 13.5px; margin: 0; line-height: 1.55; }

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 13px; color: var(--ink-muted); padding: 16px 0 0; }
.crumb a { color: var(--ink-muted); }
.crumb span { margin: 0 7px; color: var(--border-strong, #a9b4c0); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--primary); color: #fff; padding: 46px 0 42px; }
.page-hero h1 { font-size: clamp(27px, 3.6vw, 40px); margin: 8px 0 12px; line-height: 1.18; }
.page-hero p { color: #dbe6f2; font-size: 16px; max-width: 780px; margin: 0; }

/* ---------- Product detail ---------- */
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.gallery-main { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; aspect-ratio: 4/3; display: grid; place-items: center; }
.gallery-main img { max-height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs img { width: 76px; height: 76px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 5px; }
.highlights { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.highlight { background: var(--accent-tint); color: var(--accent-strong); font-weight: 700; font-size: 12px; padding: 5px 11px; border-radius: 5px; }

.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.spec-table th, .spec-table td { padding: 11px 15px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.spec-table th { background: var(--primary-tint); color: var(--primary); font-weight: 700; width: 38%; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }

/* ---------- FAQ / process ---------- */
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 14px; }
.faq-item h3 { margin: 0 0 8px; font-size: 17px; color: var(--primary); }
.faq-item p { margin: 0; color: var(--ink-muted); }
.steps { counter-reset: step; display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: 150px 1fr; gap: 22px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; align-items: center; }
.step img { border-radius: 8px; width: 150px; height: 110px; object-fit: cover; background: var(--surface-sunken); }
.step h3 { margin: 0 0 6px; color: var(--primary); }
.step p { margin: 0; color: var(--ink-muted); font-size: 14.5px; }

.prose h2 { color: var(--primary); font-size: 25px; margin-top: 34px; }
.prose h3 { color: var(--primary-soft); font-size: 19px; margin-top: 24px; }
.prose p, .prose li { color: var(--ink-muted); font-size: 16px; }
.prose ul { padding-left: 22px; }
.takeaway { background: var(--primary-tint); border-left: 4px solid var(--accent); padding: 18px 22px; border-radius: 0 8px 8px 0; margin: 22px 0; }
.takeaway h3 { margin: 0 0 8px; }
.takeaway ul { margin: 0; }

/* ---------- Inquiry band / CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary), var(--primary-soft)); color: #fff; padding: 50px 0; }
.cta-band h2 { margin: 0 0 10px; font-size: 30px; }
.cta-band p { color: #dbe6f2; margin: 0 0 22px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-strong); color: var(--on-dark-muted); padding: 48px 0 26px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 34px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 14px; letter-spacing: .3px; }
.site-footer a { color: var(--on-dark-muted); }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 7px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 34px; padding-top: 18px; font-size: 12.5px; }

/* ---------- Floating WhatsApp chat widget ---------- */
.wa-chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
}
.wa-chat-toggle {
  order: 2;
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer;
  background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform .15s ease;
}
.wa-chat-toggle:hover { transform: scale(1.06); }
.wa-chat-toggle svg { width: 30px; height: 30px; fill: #fff; }

.wa-chat-panel {
  order: 1;
  width: 320px; max-width: calc(100vw - 40px);
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 14px 44px rgba(0,0,0,.24);
  color: #333; display: none;
}
.wa-chat.open .wa-chat-panel { display: block; }

.wa-chat-head {
  background: #1eaa53; color: #fff; padding: 18px 16px 16px;
  display: flex; gap: 12px; align-items: flex-start; position: relative;
}
.wa-chat-head-icon { flex: 0 0 30px; width: 30px; height: 30px; }
.wa-chat-head-icon svg { width: 30px; height: 30px; fill: #fff; }
.wa-chat-head strong { font-size: 17px; line-height: 1.25; display: block; }
.wa-chat-head p { margin: 6px 0 0; font-size: 13px; line-height: 1.4; color: #fff; font-weight: 700; }
.wa-chat-close {
  position: absolute; top: 8px; right: 10px; background: none; border: 0;
  color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: .9;
}
.wa-chat-close:hover { opacity: 1; }

.wa-chat-body { padding: 16px 14px 14px; }
.wa-chat-reply { color: #8a9099; font-size: 12.5px; margin: 0 0 12px 2px; }

.wa-chat-member {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: #f5f6f7; border-left: 3px solid #1eaa53; border-radius: 6px;
  padding: 12px; color: #333;
}
.wa-chat-member:hover { background: #eef7f1; }
.wa-chat-avatar {
  flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #25d366;
}
.wa-chat-avatar svg { width: 24px; height: 24px; fill: #fff; }
.wa-chat-meta { flex: 1 1 auto; min-width: 0; }
.wa-chat-meta strong { display: block; font-size: 14.5px; color: #2b2f36; }
.wa-chat-meta small { display: block; font-size: 12px; color: #8a9099; margin-top: 3px; }
.wa-chat-go { flex: 0 0 20px; width: 20px; height: 20px; }
.wa-chat-go svg { width: 20px; height: 20px; fill: #1eaa53; }

.note { font-size: 12.5px; color: var(--ink-muted); margin-top: 10px; }
.empty { padding: 40px; text-align: center; color: var(--ink-muted); }

@media (max-width: 900px) {
  .hero-grid, .detail-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; width: 100%; }
  .nav.open { display: flex; flex-direction: column; align-items: stretch; }
  .nav > a { width: 100%; }
  .menu-toggle { display: block; }
  .header-inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .brand-logo { height: 28px; }
  /* On touch screens the dropdown is a block that expands under its trigger. */
  .nav-dropdown { width: 100%; }
  .nav-dropdown-top { justify-content: space-between; }
  .nav-caret { font-size: 16px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.25); }
  .dropdown-menu {
    display: none; position: static; min-width: 0; width: 100%;
    background: var(--primary-soft); border: 0; box-shadow: none;
    padding: 4px 0 8px; margin: 2px 0 6px;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu a { color: #dfe7f0; padding: 9px 14px; }
  .dropdown-menu a:hover, .dropdown-menu a:focus { background: rgba(255,255,255,.1); color: #fff; }
  .step { grid-template-columns: 1fr; }
  .step img { width: 100%; height: 170px; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  section { padding: 44px 0; }
}
