/* ==========================================================
   KOPBUD — Shared subpage styles
   Extends tokens.css with nav, footer, buttons, layout,
   breadcrumbs, subpage hero, content sections, FAQ, CTA.
   ========================================================== */

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; padding: 0; overflow-x: clip; max-width: 100%; width: 100%; }
body { background: var(--white); color: var(--text-primary); overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* ----------- Layout ----------- */
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
@media (min-width: 768px) { .container { padding: 0 40px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--binance-yellow);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--binance-yellow); display: inline-block; }
.eyebrow.dark::before { background: var(--ink); }
.eyebrow.dark { color: var(--ink); }

.section-title {
  font-size: clamp(28px, 4.5vw, 52px); font-weight: 700; line-height: 1.04;
  letter-spacing: -0.02em; margin: 16px 0 0; text-wrap: balance;
}
.lede {
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55;
  color: var(--text-secondary); max-width: 60ch; margin-top: 16px; text-wrap: pretty;
}
section { padding: clamp(64px, 9vw, 120px) 0; }

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 15px; line-height: 1; padding: 16px 24px;
  border-radius: 6px; white-space: nowrap; cursor: pointer; text-decoration: none;
  transition: background var(--t-base), color var(--t-base), transform var(--t-base), box-shadow var(--t-base);
}
.btn-primary { background: var(--binance-yellow); color: var(--ink); }
.btn-primary:hover { background: var(--ink); color: var(--binance-yellow); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-lg { padding: 20px 32px; font-size: 16px; }

/* ----------- Utility bar ----------- */
.utility-bar { background: var(--ink); color: rgba(255,255,255,0.85); font-size: 13px; padding: 8px 0; }
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.utility-bar a { color: #fff; }
.utility-bar a:hover { color: var(--binance-yellow); }
.utility-bar .util-left { display: flex; gap: 24px; flex-wrap: wrap; }
.utility-bar .util-item { display: inline-flex; align-items: center; gap: 8px; }
.utility-bar svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .utility-bar .util-left { gap: 14px; font-size: 12px; }
  .utility-bar .util-item span.label { display: none; }
}

/* ----------- Nav ----------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 38px; height: 38px; border-radius: 6px; overflow: hidden; display: grid; place-items: center; flex-shrink: 0; }
.brand-mark img { width: 38px; height: 38px; display: block; border-radius: 6px; }
.brand-name { font-weight: 700; font-size: 19px; letter-spacing: 0.01em; line-height: 1; }
.brand-sub { font-size: 11px; color: var(--slate); font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }
.nav-links { display: flex; gap: 32px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-primary); font-weight: 500; font-size: 14px; position: relative; padding: 8px 0; }
.nav-links a:hover { color: var(--binance-yellow); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); white-space: nowrap; }
.nav-phone svg { width: 18px; height: 18px; color: var(--binance-yellow); flex-shrink: 0; }
@media (max-width: 700px) { .nav-phone { font-size: 16px !important; gap: 6px; } .nav-phone svg { width: 16px; height: 16px; } }
@media (max-width: 400px) { .nav-phone { font-size: 14px !important; } }
@media (max-width: 900px) { .nav-links { display: none; } }
@media (max-width: 540px) { .nav-cta .btn { display: none; } .brand-sub { display: none; } }

/* ----------- Breadcrumbs ----------- */
.breadcrumbs {
  padding: 16px 0; font-size: 13px; color: var(--slate);
  border-bottom: 1px solid var(--border-light); background: var(--snow);
}
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; }
.breadcrumbs li + li::before { content: "›"; color: var(--slate); margin-right: 2px; }
.breadcrumbs a { color: var(--text-secondary); font-weight: 500; text-decoration: none; }
.breadcrumbs a:hover { color: var(--binance-yellow); }
.breadcrumbs span { color: var(--slate); font-weight: 500; }

/* ----------- Subpage Hero ----------- */
.sub-hero {
  position: relative; background: var(--ink); color: #fff;
  padding: clamp(60px, 9vw, 100px) 0 clamp(50px, 7vw, 80px);
  overflow: hidden; isolation: isolate;
}
.sub-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 85% 30%, rgba(240,185,11,0.18), transparent 70%),
              radial-gradient(40% 60% at 0% 100%, rgba(240,185,11,0.08), transparent 70%);
  pointer-events: none; z-index: -1;
}
.sub-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--binance-yellow) 0 16px, var(--ink) 16px 32px);
  opacity: 0.85; z-index: 1;
}
.sub-hero .eyebrow { color: var(--binance-yellow); margin-bottom: 20px; }
.sub-hero .eyebrow::before { background: var(--binance-yellow); }
.sub-hero h1 {
  font-size: clamp(32px, 5vw, 60px); font-weight: 700; line-height: 1.0;
  letter-spacing: -0.025em; margin: 0 0 20px; text-wrap: balance; color: #fff;
}
.sub-hero h1 .accent { color: var(--binance-yellow); }
.sub-hero .hero-lead {
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55;
  color: rgba(255,255,255,0.78); max-width: 60ch; margin-bottom: 32px;
}
.sub-hero .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ----------- Content sections ----------- */
.content-section { background: var(--white); }
.content-section.alt { background: var(--snow); }
.content-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 900px) { .content-grid { grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; } }
.content-grid.reverse { direction: ltr; }
@media (min-width: 900px) { .content-grid.reverse { grid-template-columns: 1fr 1.15fr; } }

.content-text h2 { font-size: clamp(24px, 3.5vw, 40px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 14px 0 20px; color: var(--ink); }
.content-text p { font-size: 16px; line-height: 1.7; color: var(--text-secondary); margin-top: 16px; max-width: 60ch; }
.content-text p strong { color: var(--ink); font-weight: 600; }
.content-text ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.content-text ul li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 15px; line-height: 1.55; color: var(--text-secondary);
}
.content-text ul li::before {
  content: ""; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px;
  background: var(--binance-yellow); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M8.5 13.5l-3-3 1-1 2 2 5-5 1 1z' fill='%231E2026'/%3E%3C/svg%3E");
  background-size: 100%; background-repeat: no-repeat;
}

/* ----------- Process steps ----------- */
.process-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 40px; }
@media (min-width: 700px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }
.process-step {
  background: var(--white); border: 1px solid var(--border-light); border-radius: 12px;
  padding: 28px 24px; position: relative; transition: transform var(--t-base), box-shadow var(--t-base);
}
.process-step:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(34,33,38,0.08); }
.process-step .step-num {
  font-size: 36px; font-weight: 700; color: var(--binance-yellow);
  letter-spacing: -0.02em; line-height: 1; display: block; margin-bottom: 12px;
}
.process-step h3 { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.25; margin: 0 0 8px; }
.process-step p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; margin: 0; }

/* ----------- For whom ----------- */
.audience-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 36px; }
@media (max-width: 540px) { .audience-grid { grid-template-columns: 1fr; } }
@media (min-width: 900px) { .audience-grid { grid-template-columns: repeat(4, 1fr); } }
.audience-card {
  background: var(--white); border: 1px solid var(--border-light); border-radius: 12px;
  padding: 24px 20px; text-align: center; transition: transform var(--t-base), border-color var(--t-base);
}
.audience-card:hover { transform: translateY(-2px); border-color: var(--binance-yellow); }
.audience-card .a-icon {
  width: 48px; height: 48px; background: var(--ink); border-radius: 10px;
  display: grid; place-items: center; color: var(--binance-yellow); margin: 0 auto 14px;
}
.audience-card .a-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }
.audience-card h4 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.audience-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.45; margin: 0; }

/* ----------- Equipment strip ----------- */
.equipment-strip {
  margin-top: 0; background: var(--ink); border-radius: 16px; padding: 32px; color: #fff;
  display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 800px) { .equipment-strip { grid-template-columns: 1fr auto; align-items: center; } }
.equipment-strip h4 {
  color: #fff; font-size: 13px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 8px;
}
.equipment-strip .machine-name {
  font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; color: #fff;
  letter-spacing: -0.01em; line-height: 1.1;
}
.equipment-strip .machine-name span { color: var(--binance-yellow); }
.buckets { display: flex; gap: 12px; flex-wrap: wrap; }
.bucket {
  border: 1px solid rgba(255,255,255,0.18); border-radius: 8px;
  padding: 14px 18px; text-align: center; min-width: 84px;
}
.bucket .size {
  font-size: 22px; font-weight: 700; color: var(--binance-yellow);
  letter-spacing: -0.02em; line-height: 1; display: block; margin-bottom: 4px;
}
.bucket .label {
  font-size: 11px; color: rgba(255,255,255,0.6); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* ----------- FAQ ----------- */
.faq-section { background: var(--white); }
.faq-list { max-width: 800px; margin: 40px auto 0; display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:first-child { border-top: 1px solid var(--border-light); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; cursor: pointer; width: 100%; text-align: left;
  font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.4;
}
.faq-q svg { width: 20px; height: 20px; flex-shrink: 0; transition: transform 300ms ease; color: var(--binance-yellow); }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 400ms ease, padding 300ms ease;
  font-size: 15px; color: var(--text-secondary); line-height: 1.65; padding: 0 0 0 0;
}
.faq-item.open .faq-a { max-height: 300px; padding: 0 0 20px 0; }

/* ----------- CTA band ----------- */
.cta-band {
  background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 0;
  position: relative; overflow: hidden; text-align: center;
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(50% 50% at 50% 50%, rgba(240,185,11,0.15), transparent 70%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band h2 {
  font-size: clamp(28px, 4vw, 48px); font-weight: 700; color: #fff;
  letter-spacing: -0.02em; line-height: 1.08; margin: 0 0 16px;
}
.cta-band p { font-size: 18px; color: rgba(255,255,255,0.75); margin: 0 auto 32px; max-width: 50ch; }
.cta-band .cta-phone {
  font-size: clamp(32px, 5vw, 52px); font-weight: 700; color: var(--binance-yellow);
  text-decoration: none; display: block; margin-bottom: 24px; letter-spacing: -0.01em;
}
.cta-band .cta-phone:hover { color: #fff; }
.cta-band .cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ----------- Related services ----------- */
.related { background: var(--snow); }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
@media (min-width: 700px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card {
  background: var(--white); border: 1px solid var(--border-light); border-radius: 12px;
  padding: 28px 24px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(34,33,38,0.08); }
.related-card::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--binance-yellow); transform: scaleX(0); transform-origin: left;
  transition: transform 300ms ease;
}
.related-card:hover::after { transform: scaleX(1); }
.related-card .r-icon {
  width: 48px; height: 48px; background: var(--ink); border-radius: 10px;
  display: grid; place-items: center; color: var(--binance-yellow);
}
.related-card .r-icon svg { width: 24px; height: 24px; stroke-width: 1.8; }
.related-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 0; }
.related-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; margin: 0; flex-grow: 1; }
.related-card .r-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 13px; color: var(--ink);
}
.related-card .r-link svg { width: 14px; height: 14px; transition: transform var(--t-base); }
.related-card:hover .r-link svg { transform: translateX(4px); }

/* ----------- Footer ----------- */
.footer { background: var(--ink); color: rgba(255,255,255,0.7); padding: 56px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 40px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.footer h5 { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer ul a { color: rgba(255,255,255,0.7); }
.footer ul a:hover { color: var(--binance-yellow); }
.footer .brand-block { max-width: 360px; }
.footer .brand-block p { color: rgba(255,255,255,0.6); font-size: 14px; font-weight: 400; line-height: 1.6; margin: 16px 0 0; }
.footer .brand-block .brand-mark::after { border-color: var(--ink); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap; color: rgba(255,255,255,0.5); font-size: 13px;
}
.footer-bottom .footer-seo { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.footer-bottom .footer-seo a {
  color: rgba(255,255,255,0.65); text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.18); padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.footer-bottom .footer-seo a:hover { color: #fff; border-bottom-color: rgba(255,255,255,0.6); }
.footer-bottom .footer-seo .sep { color: rgba(255,255,255,0.25); }

/* ----------- Sticky mobile call ----------- */
.mobile-call {
  display: none; position: fixed; bottom: 16px; left: 16px; right: 16px;
  background: var(--binance-yellow); color: var(--ink); border-radius: 999px;
  padding: 14px 22px; font-weight: 700; font-size: 15px; text-decoration: none;
  z-index: 100; box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  align-items: center; justify-content: center; gap: 10px;
}
.mobile-call svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .mobile-call { display: flex; } body { padding-bottom: 80px; } }

/* ----------- Reveal ----------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }
