/* ============ Leilly Packaging — style.css ============ */
:root {
  --ink: #16233a;
  --ink-2: #1e2f4d;
  --ink-3: #2a3d5f;
  --text: #3b4a63;
  --muted: #6b7a92;
  --paper: #faf8f4;
  --paper-2: #f1ede5;
  --white: #ffffff;
  --accent: #e09b2d;
  --accent-dark: #c2821c;
  --line: #e4ddd0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 35, 58, .08);
  --font: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--paper); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }

.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 12px; }
.section { padding: 90px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }
.section-head-light h2 { color: var(--white); }
.section-head-light p { color: rgba(255,255,255,.72); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 14px 30px; border-radius: 10px; font-weight: 700; font-size: .95rem; transition: .2s; border: 2px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 6px 18px rgba(224,155,45,.35); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 9px 20px; font-size: .87rem; }
.btn-block { width: 100%; }
.link-arrow { color: var(--accent-dark); font-weight: 600; font-size: .92rem; }
.link-arrow:hover { text-decoration: underline; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.8); font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; gap: 16px; }
.topbar a { color: var(--accent); font-weight: 600; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: rgba(250,248,244,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 44px; width: auto; display: block; }
.logo-mark { width: 38px; height: 38px; border-radius: 9px; background: var(--accent); color: var(--white); display: grid; place-items: center; font-weight: 800; font-size: 1.25rem; }
.logo-text { font-weight: 800; font-size: 1.2rem; color: var(--ink); letter-spacing: .02em; display: flex; flex-direction: column; line-height: 1; }
.logo-text span { font-weight: 500; font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-weight: 600; font-size: .93rem; color: var(--ink-3); }
.nav a:not(.btn):hover { color: var(--accent-dark); }
.nav-cta { margin-left: 6px; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.menu-toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------- Hero ---------- */
.hero { padding: 84px 0 90px; background: linear-gradient(180deg, var(--paper) 0%, var(--paper) 78%, var(--paper-2) 100%); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-sub { color: var(--muted); font-size: 1.1rem; margin: 22px 0 30px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 38px; margin-top: 44px; flex-wrap: wrap; }
.stat strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.stat span { font-size: .84rem; color: var(--muted); }
.hero-image { position: relative; }
.hero-image img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--ink); color: rgba(255,255,255,.85); }
.trustbar-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; padding-top: 18px; padding-bottom: 18px; font-size: .88rem; font-weight: 600; }
.trustbar span { white-space: nowrap; }

/* ---------- Products ---------- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.product-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-img { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.product-card:hover .product-img img { transform: scale(1.04); }
.product-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product-body p { font-size: .93rem; color: var(--muted); flex: 1; }
.product-card--cta { background: var(--ink); border-color: var(--ink); justify-content: center; }
.product-card--cta h3 { color: var(--white); }
.product-card--cta p { color: rgba(255,255,255,.7); }
.product-card--cta .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- Industries ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.industry-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; transition: .25s; }
.industry-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.industry-icon { width: 46px; height: 46px; border-radius: 12px; background: #fbeed3; color: var(--accent-dark); display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 18px; }
.industry-card p { font-size: .92rem; color: var(--muted); margin-top: 8px; }

/* ---------- Capabilities ---------- */
.capabilities-inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: center; }
.capabilities-image { position: relative; }
.capabilities-image img { border-radius: var(--radius); box-shadow: var(--shadow); }
.capabilities-badge { position: absolute; bottom: -22px; left: -22px; background: var(--accent); color: var(--white); border-radius: 12px; padding: 16px 24px; box-shadow: var(--shadow); }
.capabilities-badge strong { display: block; font-size: 1.5rem; font-weight: 800; }
.capabilities-badge span { font-size: .8rem; opacity: .9; }
.capabilities-lede { color: var(--muted); margin: 18px 0 26px; }
.check-list { list-style: none; margin-bottom: 32px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { padding-left: 32px; position: relative; font-size: .97rem; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: #fbeed3; color: var(--accent-dark); font-size: .8rem; font-weight: 800; display: grid; place-items: center; }
.check-list strong { color: var(--ink); }

/* ---------- Process ---------- */
.section-dark { background: var(--ink); }
.section-dark h2 { color: var(--white); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.process-step { background: var(--ink-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 30px 26px; transition: .25s; }
.process-step:hover { background: var(--ink-3); transform: translateY(-4px); }
.step-num { font-size: .82rem; font-weight: 800; letter-spacing: .15em; color: var(--accent); display: block; margin-bottom: 14px; }
.process-step h3 { color: var(--white); margin-bottom: 10px; }
.process-step p { font-size: .92rem; color: rgba(255,255,255,.68); }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px 26px; }
.faq-item[open] { border-color: var(--accent); }
.faq-item summary { font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-dark); font-weight: 400; transition: .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 14px; color: var(--muted); font-size: .95rem; }

/* ---------- Quote ---------- */
.quote-inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.quote-copy > p { color: var(--muted); margin: 14px 0 24px; }
.quote-points { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.quote-points li { padding-left: 30px; position: relative; font-weight: 600; color: var(--ink-3); font-size: .95rem; }
.quote-points li::before { content: "✓"; position: absolute; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--white); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.quote-contact { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 24px; }
.quote-contact div { display: flex; gap: 14px; align-items: baseline; }
.quote-contact strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); min-width: 86px; }
.quote-contact a { color: var(--accent-dark); font-weight: 700; }
.quote-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-form label { display: flex; flex-direction: column; gap: 7px; font-size: .86rem; font-weight: 600; color: var(--ink-3); }
.quote-form input, .quote-form select, .quote-form textarea { font-family: inherit; font-size: .95rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--paper); color: var(--ink); transition: .2s; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { outline: none; border-color: var(--accent); background: var(--white); }
.form-note { font-size: .8rem; color: var(--muted); text-align: center; }
.form-note a { color: var(--accent-dark); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: #101b2e; color: rgba(255,255,255,.65); padding: 64px 0 0; font-size: .9rem; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand p { margin-top: 18px; max-width: 300px; }
.logo-light .logo-text { color: var(--white); }
.logo-light .logo-text span { color: rgba(255,255,255,.5); }
.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h4 { color: var(--white); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 6px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 22px; padding-bottom: 22px; font-size: .8rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .capabilities-inner, .quote-inner { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .capabilities-badge { left: 12px; bottom: -18px; }
  .nav { position: fixed; inset: 0 0 auto 0; top: 71px; background: var(--paper); flex-direction: column; padding: 30px 24px; gap: 22px; border-bottom: 1px solid var(--line); transform: translateY(-130%); transition: .3s; align-items: flex-start; }
  .nav.open { transform: none; }
  .menu-toggle { display: flex; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .product-grid, .industry-grid, .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
  .hero-stats { gap: 24px; }
  .topbar-inner { font-size: .74rem; }
}

/* ============ Product collection pages ============ */
.breadcrumb { padding: 20px 0 0; font-size: .84rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-dark); }
.page-hero { padding: 46px 0 10px; }
.page-hero .hero-sub { margin: 18px 0 0; }
.hero-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.chip2 { background: #fbeed3; color: var(--accent-dark); font-weight: 600; font-size: .84rem; padding: 7px 15px; border-radius: 999px; white-space: nowrap; }

.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: zoom-in; transition: .25s; }
.pcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pcard .pimg { aspect-ratio: 4/3; overflow: hidden; background: var(--paper-2); }
.pcard .pimg img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.pcard:hover .pimg img { transform: scale(1.05); }
.pcard .pbody { padding: 18px 20px 20px; }
.pcard h3 { font-size: 1.02rem; line-height: 1.35; }
.pcard p { font-size: .88rem; color: var(--muted); margin-top: 7px; }
.pcard .zoom-hint { display: inline-block; margin-top: 12px; font-size: .82rem; font-weight: 600; color: var(--accent-dark); }
.pcard .zoom-hint::after { content: " ⤢"; }

.spec-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .93rem; }
.spec-table th, .spec-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 220px; color: var(--ink); background: var(--paper-2); font-weight: 700; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }

.cta-band { background: var(--ink); color: rgba(255,255,255,.85); border-radius: var(--radius); padding: 44px; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white); font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.cta-band p { margin-top: 10px; font-size: .96rem; }
.cta-band .btn { flex-shrink: 0; }

.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; display: block; }
.related-card img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.related-card:hover img { transform: scale(1.06); }
.related-card span { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(10,16,28,.88)); color: var(--white); padding: 34px 16px 14px; font-weight: 700; font-size: .95rem; }

/* ---- Lightbox ---- */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(13,19,32,.92); display: none; align-items: center; justify-content: center; padding: 24px; }
.lb.open { display: flex; }
.lb-inner { background: var(--white); border-radius: 14px; max-width: 960px; width: 100%; max-height: 92vh; overflow: auto; display: grid; grid-template-columns: 1.45fr 1fr; position: relative; }
.lb-main { background: var(--paper-2); display: flex; align-items: center; }
.lb-main img { width: 100%; height: auto; max-height: 92vh; object-fit: contain; display: block; }
.lb-side { padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; }
.lb-title { font-size: 1.15rem; }
.lb-desc { color: var(--muted); font-size: .92rem; }
.lb-thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.lb-thumbs img { width: 62px; height: 62px; object-fit: cover; border-radius: 8px; cursor: pointer; border: 2px solid transparent; opacity: .7; transition: .2s; }
.lb-thumbs img:hover { opacity: 1; }
.lb-thumbs img.active { border-color: var(--accent); opacity: 1; }
.lb-quote { margin-top: auto; text-align: center; }
.lb-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--ink); color: var(--white); font-size: 1.1rem; cursor: pointer; z-index: 2; }
.lb-close:hover { background: var(--accent-dark); }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(22,35,58,.82); color: var(--white); font-size: 1.2rem; cursor: pointer; z-index: 2; }
.lb-prev { left: 12px; }
.lb-next { right: 12px; }
.lb-prev:hover, .lb-next:hover { background: var(--accent-dark); }

@media (max-width: 960px) {
  .pgrid { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .lb-inner { grid-template-columns: 1fr; max-height: 94vh; }
  .lb-main img { max-height: 56vh; }
}
@media (max-width: 620px) {
  .pgrid, .related-grid { grid-template-columns: 1fr; }
  .page-hero { padding-top: 30px; }
  .cta-band { padding: 30px 24px; }
  .spec-table th { width: 140px; }
}
