/* ==========================================================
   PackPro ERP: site styles
   Palette taken from the logo: charcoal, signal orange, kraft
   ========================================================== */

:root {
  --ink: #2b2b2d;
  --charcoal: #3f3f3e;
  --muted: #625c53;
  --orange: #f47b0a;
  --orange-deep: #b8530a;      /* accessible orange for text on light */
  --orange-hover: #dc6a00;
  --kraft: #d9a35f;
  --kraft-soft: #f6e9d4;
  --paper: #fbf8f3;
  --white: #ffffff;
  --line: #e8e0d2;
  --dark: #26262a;
  --dark-2: #313136;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(43, 43, 45, .06), 0 2px 8px rgba(43, 43, 45, .05);
  --shadow-md: 0 10px 30px rgba(43, 43, 45, .10);
  --shadow-lg: 0 24px 60px rgba(43, 43, 45, .16);

  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 88px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0; letter-spacing: -.015em; color: var(--ink); }
p { margin: 0 0 1rem; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font: 700 1rem/1 var(--font-head);
  padding: 1rem 1.6rem; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}
.btn .ico { width: 1.15em; height: 1.15em; stroke-width: 2.2; transition: transform .15s ease; }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { background: var(--orange); color: #1d1d1f; box-shadow: 0 6px 18px rgba(244, 123, 10, .32); }
.btn-primary:hover { background: var(--orange-hover); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(244, 123, 10, .38); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(43, 43, 45, .06); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.brand { display: block; flex: none; }
.brand img { height: 64px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; gap: 4px; }
.primary-nav ul a {
  display: block; padding: 10px 12px; border-radius: 10px;
  font: 600 .95rem/1 var(--font-head); color: var(--charcoal); text-decoration: none;
  transition: color .15s, background-color .15s;
}
.primary-nav ul a:hover { background: var(--kraft-soft); color: var(--ink); }
.primary-nav ul a.active { color: var(--orange-deep); background: var(--kraft-soft); }
.nav-cta { padding: .8rem 1.3rem; font-size: .95rem; }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; color: var(--ink); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle .ico { width: 24px; height: 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(244, 123, 10, .10), transparent 60%),
    linear-gradient(180deg, var(--paper), #fff);
  padding: clamp(32px, 4.5vw, 56px) 0 clamp(48px, 6vw, 84px);
}
/* kraft corrugation stripes behind the visual */
.hero::before {
  content: ""; position: absolute; right: -4%; top: 0; bottom: 0; width: 46%;
  background: repeating-linear-gradient(90deg, rgba(217, 163, 95, .22) 0 10px, rgba(217, 163, 95, .08) 10px 20px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 35%, #000);
          mask-image: linear-gradient(90deg, transparent, #000 35%, #000);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 700 .82rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase;
  color: var(--orange-deep); margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--orange); }
.eyebrow-light { color: var(--kraft); }
.eyebrow-light::before { background: var(--kraft); }

.hero h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 800; margin-bottom: 1.2rem; }
.hl { color: var(--orange-deep); position: relative; white-space: nowrap; }
.hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: .34em; z-index: -1;
  background: var(--kraft-soft); border-radius: 4px;
}
.lead { font-size: clamp(1rem, 1.35vw, 1.12rem); color: var(--muted); max-width: 62ch; margin-bottom: 1rem; }
.hero-tagline { font: 700 clamp(1.02rem, 1.4vw, 1.15rem)/1.45 var(--font-head); color: var(--ink); max-width: 58ch; margin: 1.2rem 0 1.6rem; padding-left: 16px; border-left: 4px solid var(--orange); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 480px); }
.hero-img { width: 100%; height: auto; filter: drop-shadow(0 22px 40px rgba(43, 43, 45, .20)); }

/* corrugated flute divider (echoes the wave in the logo) */
.flute {
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='14' viewBox='0 0 20 14'%3E%3Cpath d='M0 7Q5 0 10 7T20 7' fill='none' stroke='%23d9a35f' stroke-width='2'/%3E%3C/svg%3E") repeat-x center;
}

/* ---------- Highlights strip ---------- */
.strip { background: #fff; border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { padding: 28px 20px; text-align: center; border-left: 1px solid var(--line); }
.strip-item:first-child { border-left: 0; }
.strip-item strong { display: block; font: 800 1.6rem/1.1 var(--font-head); color: var(--ink); }
.strip-item span { color: var(--muted); font-size: .95rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-tint { background: var(--paper); }
.section-dark { background: var(--dark); color: #e9e7e2; }
.section-dark h2 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto clamp(36px, 5vw, 60px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section h2, .cta h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 800; }
.sub { color: var(--muted); font-size: 1.1rem; margin-top: 1rem; }
.sub-light { color: #c9c6bf; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-copy h2 { margin-bottom: 1.4rem; }
.about-copy p { color: var(--muted); }
.textlink { color: var(--orange-deep); font-weight: 600; text-underline-offset: 3px; }
.about-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px); position: relative; overflow: hidden;
}
.about-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 14px, var(--kraft) 14px 28px);
}
.about-card h3 { font-size: 1.25rem; margin: .5rem 0 1.2rem; }
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.checklist li { display: flex; align-items: center; gap: .6rem; font-weight: 500; }
.checklist .ico { color: #fff; background: var(--orange-deep); border-radius: 50%; padding: 4px; width: 24px; height: 24px; stroke-width: 3; }
.about-foot { margin: 1.5rem 0 0; padding-top: 1.1rem; border-top: 1px dashed var(--kraft); color: var(--muted); font-size: .95rem; }

/* ---------- Module cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--kraft); }
.card:hover::after { transform: scaleX(1); }
.card h3 { font-size: 1.25rem; margin: 1.1rem 0 .55rem; }
.card p { color: var(--muted); margin: 0; font-size: 1rem; }

.icon-tile {
  display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
  background: var(--kraft-soft); color: var(--orange-deep);
}
.icon-tile .ico { width: 26px; height: 26px; }
.icon-tile-lg { width: 64px; height: 64px; border-radius: 18px; }
.icon-tile-lg .ico { width: 32px; height: 32px; }

/* ---------- Benefits ---------- */
.benefits-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.benefits-intro { position: sticky; top: calc(var(--header-h) + 32px); }
.benefits-intro h2 { margin-bottom: 0; }
.benefits-intro .btn { margin-top: 1.8rem; }
.benefit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.benefit {
  display: flex; align-items: center; gap: 16px; padding: 20px;
  background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius);
  font: 600 1rem/1.4 var(--font-head); color: #fff;
  transition: border-color .2s, transform .2s;
}
.benefit:hover { border-color: var(--orange); transform: translateY(-2px); }
.b-icon {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: rgba(244, 123, 10, .16); color: var(--orange);
}
.b-icon .ico { width: 24px; height: 24px; }

/* ---------- Deployment ---------- */
.deploy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 980px; margin-inline: auto; }
.deploy-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 40px); box-shadow: var(--shadow-sm);
}
.deploy-card h3 { font-size: 1.6rem; margin: 1.2rem 0 1.2rem; }
.ticks { display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange-deep) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- Showcase ---------- */
.show-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.show-card { margin: 0; text-align: center; transition: transform .2s; }
.show-card:hover { transform: translateY(-4px); }
.show-card img { width: 100%; height: auto; aspect-ratio: 1; filter: drop-shadow(0 14px 26px rgba(43, 43, 45, .16)); }
.show-card figcaption { padding: 20px 8px 0; display: grid; gap: 2px; }
.show-card strong { font: 800 1.2rem/1.2 var(--font-head); }
.show-card span { color: var(--muted); font-size: .98rem; }

/* ---------- Customer quote ---------- */
.quote {
  position: relative; max-width: 860px; margin: 0 auto; text-align: center;
  background: var(--kraft-soft); border-radius: var(--radius-lg); padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 64px);
}
.quote-ico { width: 52px; height: 52px; color: var(--orange); stroke-width: 1.5; margin: 0 auto 1rem; }
.quote blockquote { margin: 0; }
.quote blockquote p { font: 600 clamp(1.15rem, 2vw, 1.5rem)/1.5 var(--font-head); color: var(--ink); letter-spacing: -.01em; }
.quote figcaption { margin-top: 1.4rem; font: 700 .95rem/1 var(--font-head); color: var(--orange-deep); letter-spacing: .08em; text-transform: uppercase; }

/* ---------- Demo CTA ---------- */
.cta { background: var(--dark); color: #fff; padding: clamp(64px, 8vw, 100px) 0; position: relative; }
.cta::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 18px, var(--kraft) 18px 36px);
}
.cta h2 { color: #fff; }
.cta-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.cta-head p { color: #c9c6bf; font-size: 1.1rem; margin-top: 1rem; }
.demo-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: stretch; }
.contact-list { display: grid; grid-template-rows: repeat(3, 1fr); gap: 18px; }
.contact-card {
  display: flex; align-items: center; gap: 20px;
  background: var(--dark-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius); padding: 26px 28px;
  transition: border-color .2s, transform .2s;
}
.contact-card:hover { border-color: var(--orange); transform: translateY(-2px); }
.contact-card .icon-tile { flex: none; width: 58px; height: 58px; background: rgba(244, 123, 10, .16); color: var(--orange); }
.contact-card h3 { color: #fff; font-size: 1.15rem; margin: 0 0 .3rem; }
.contact-card p { margin: 0; color: #d7d4cd; }
.contact-card a { text-decoration: none; }
.contact-card a:hover { color: var(--orange); }

/* ---------- Contact form + map ---------- */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 40px); box-shadow: var(--shadow-sm); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 6px; font: 700 .9rem/1.2 var(--font-head); color: var(--charcoal); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px;
  transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(244, 123, 10, .18); }
.field.invalid input, .field.invalid textarea { border-color: #c0392b; }
.cap-row { display: flex; gap: 10px; }
.cap-row input { flex: 1; min-width: 0; }
.cap-refresh { flex: none; width: 50px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--orange-deep); cursor: pointer; display: grid; place-items: center; transition: background-color .15s, border-color .15s; }
.cap-refresh:hover { background: var(--kraft-soft); border-color: var(--kraft); }
.cap-refresh .ico { width: 20px; height: 20px; transition: transform .35s; }
.cap-refresh:active .ico { transform: rotate(180deg); }
.captcha label strong { display: inline-block; margin-left: 4px; padding: 2px 10px; border-radius: 8px; background: var(--kraft-soft); color: var(--orange-deep); font: 800 1rem/1.4 var(--font-head); letter-spacing: .02em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { display: block; min-height: 1.1em; margin-top: 4px; font-size: .85rem; color: #b02a1c; }
.form-status { margin: 14px 0 0; font-size: .95rem; color: var(--muted); }
.form-status.ok { color: #1d6b3a; }

.form-title { font-size: 1.4rem; margin-bottom: 1.2rem; }

/* full-width map */
.map-full { background: var(--kraft-soft); line-height: 0; }
.map-full iframe { display: block; width: 100%; height: clamp(360px, 42vw, 520px); border: 0; }

.anchor { display: block; height: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #1d1d20; color: #cfcbc4; padding-top: clamp(48px, 6vw, 80px); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 48px; padding-bottom: 48px; }
.foot-logo { width: 230px; height: auto; margin-bottom: 1rem; }
.foot-brand p { color: #a9a59d; max-width: 34ch; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; transition: background-color .15s, transform .15s; }
.social a:hover { background: var(--orange); color: #1d1d1f; transform: translateY(-2px); }
.social .ico { width: 18px; height: 18px; }
.foot-title { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.1rem; }
.foot-links { display: grid; gap: 10px; }
.foot-links a, .foot-contact a { text-decoration: none; color: #cfcbc4; transition: color .15s; }
.foot-links a:hover, .foot-contact a:hover { color: var(--orange); }
.foot-contact { display: grid; gap: 14px; }
.foot-contact li { display: flex; gap: 12px; align-items: flex-start; }
.foot-contact .ico { color: var(--orange); margin-top: 3px; }
.footer-bar { border-top: 1px solid rgba(255, 255, 255, .09); padding: 22px 0; }
.footer-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-right: 64px; justify-content: flex-start; }
.footer-bar p { margin: 0; font-size: .92rem; color: #a9a59d; }
.ues-chip { background: #fff; border-radius: 12px; padding: 6px 10px; display: block; }
.ues-chip img { height: 52px; width: auto; }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--orange); color: #1d1d1f; box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--orange-hover); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .primary-nav ul a { padding: 10px 9px; font-size: .9rem; }
  .primary-nav { gap: 14px; }
  .brand img { height: 52px; }
}

@media (max-width: 900px) {
  :root { --header-h: 76px; }
  .nav-toggle { display: inline-flex; }
  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 8px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 20px 30px rgba(43, 43, 45, .10);
    padding: 12px 20px 22px; max-height: 0; overflow: hidden; visibility: hidden; opacity: 0;
    transition: max-height .3s ease, opacity .2s ease, visibility .3s;
  }
  .primary-nav.open { max-height: 560px; visibility: visible; opacity: 1; }
  .primary-nav ul { flex-direction: column; }
  .primary-nav ul a { padding: 14px 12px; font-size: 1rem; }
  .nav-cta { margin-top: 6px; }

  .hero-grid, .about-grid, .benefits-grid, .demo-grid { grid-template-columns: 1fr; }
  .hero::before { width: 70%; opacity: .6; }
  .benefits-intro { position: static; }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-item:nth-child(3) { border-left: 0; }
  .strip-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .show-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .contact-list { grid-template-rows: none; }
  .deploy-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .card-grid, .benefit-list, .checklist, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .hl { white-space: normal; }
  .contact-card { padding: 20px; gap: 16px; }
  .contact-card .icon-tile { width: 48px; height: 48px; }
  .hero-actions .btn { width: 100%; }
  .brand img { height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
