/* ============================================================
   Poly Global Manufacturing
   1. Tokens              6. Sections (shared)   11. Contact / form
   2. Base / reset        7. Capabilities        12. Footer
   3. Layout helpers      8. Why Poly Global     13. Motion / reveal
   4. Header / nav        9. Industries
   5. Buttons / hero     10. Quality & Supply
   ============================================================ */

/* 1. Tokens ------------------------------------------------- */
:root {
  --navy: #0d1f33;
  --navy-700: #15304c;
  --ink: #1b2a38;
  --body: #48555f;
  --muted: #6c7883;
  --line: #e3e7eb;
  --line-strong: #d0d7dd;
  --bg: #ffffff;
  --bg-alt: #f5f7f8;
  --steel: #2c5e7e;
  --steel-dark: #234c66;
  --steel-light: #8fb2c6;

  --maxw: 1180px;
  --pad: clamp(20px, 5vw, 48px);
  --section-y: clamp(4rem, 9vw, 7.25rem);
  --radius: 3px;

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 2. Base / reset ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

svg { display: block; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--steel); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { color: var(--steel-dark); }

h1, h2, h3 {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 650;
  line-height: 1.14;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.05rem, 1.25rem + 3.4vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 1.7vw, 2.35rem); }
h3 { font-size: 1.18rem; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
  border-radius: 2px;
}
.section--dark :focus-visible,
.hero :focus-visible { outline-color: var(--steel-light); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed;
  top: 0.5rem; left: 0.5rem;
  z-index: 200;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}
.skip-link:focus { transform: none; color: #fff; }

/* 3. Layout helpers -------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.narrow { max-width: 62ch; }
.prose { color: var(--body); }
.prose p + p { margin-top: 1rem; }

.section { padding-block: var(--section-y); }
.section--light { background: var(--bg); }
.section--alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--dark { background: var(--navy); color: rgba(255, 255, 255, 0.82); }
.section--dark h2 { color: #fff; }
.section--dark .prose { color: rgba(255, 255, 255, 0.8); }

.section__head { margin-bottom: clamp(2.25rem, 4vw, 3.5rem); }
.section__head .prose { margin-top: 1rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
}
.eyebrow__num { color: var(--muted); }
.eyebrow::after {
  content: "";
  flex: 0 0 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}
.eyebrow--light { color: var(--steel-light); }
.eyebrow--light .eyebrow__num { color: rgba(255, 255, 255, 0.55); }

/* 4. Header / nav ---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-scrolled {
  box-shadow: 0 1px 0 rgba(13, 31, 51, 0.05), 0 10px 26px -18px rgba(13, 31, 51, 0.32);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.brand__mark { color: var(--navy); flex: none; }
.brand__name {
  font-weight: 650;
  font-size: 0.82rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list {
  list-style: none;
  display: flex;
  gap: 1.6rem;
  padding: 0;
}
.nav__list a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  color: var(--body);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}
.nav__list a:hover,
.nav__list a.is-active { color: var(--ink); }
.nav__list a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--steel);
}
.nav__cta { white-space: nowrap; }

.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: #fff;
    cursor: pointer;
  }
  .nav-toggle__bar { position: relative; }
  .nav-toggle__bar,
  .nav-toggle__bar::before,
  .nav-toggle__bar::after {
    display: block;
    width: 20px; height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .nav-toggle__bar::before,
  .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bar::before { top: -6px; }
  .nav-toggle__bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-6px) rotate(-45deg); }

  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--pad) 1.25rem;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 30px -22px rgba(13, 31, 51, 0.35);
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.22s ease, visibility 0.22s ease;
  }
  .nav.is-open { visibility: visible; clip-path: inset(0 0 0 0); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__list a { display: block; padding: 0.9rem 0; font-size: 1rem; }
  .nav__list a.is-active::after { display: none; }
  .nav__cta { margin-top: 1rem; justify-content: center; text-align: center; }
}

/* 5. Buttons / hero ------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn--primary { background: var(--navy); color: #fff; }
.btn--primary:hover { background: var(--navy-700); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--navy); color: var(--ink); }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
  color: #fff;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 66px 66px;
  -webkit-mask-image: radial-gradient(120% 90% at 25% 12%, #000 0%, rgba(0, 0, 0, 0.25) 55%, transparent 80%);
  mask-image: radial-gradient(120% 90% at 25% 12%, #000 0%, rgba(0, 0, 0, 0.25) 55%, transparent 80%);
}
.hero__mark {
  position: absolute;
  right: -8%;
  bottom: -22%;
  width: min(52vw, 560px);
  color: #fff;
  opacity: 0.05;
}
.hero__inner {
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-bottom: clamp(3.5rem, 9vw, 6.5rem);
  max-width: 56ch;
}
.hero h1 { color: #fff; margin-bottom: 1.1rem; }
.hero__lead {
  font-size: clamp(1.05rem, 0.98rem + 0.5vw, 1.28rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 52ch;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}
.hero__meta {
  margin-top: 2.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

/* 7. Capabilities -------------------------------------- */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.cap {
  padding: clamp(1.4rem, 3vw, 2rem);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  transition: background-color 0.15s ease;
}
.cap:hover { background: #fff; }
.cap h3 { margin-bottom: 0.5rem; }
.cap h3::before {
  content: "";
  display: block;
  width: 22px; height: 2px;
  margin-bottom: 0.9rem;
  background: var(--steel);
}
.cap p { font-size: 0.96rem; color: var(--body); }

/* 8. Why Poly Global ---------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.pillar {
  background: var(--navy);
  padding: clamp(1.6rem, 3vw, 2.4rem);
}
.pillar h3 { color: #fff; font-size: 1.35rem; margin-bottom: 0.6rem; }
.pillar h3::before {
  content: "";
  display: block;
  width: 24px; height: 2px;
  margin-bottom: 1rem;
  background: var(--steel-light);
}
.pillar p { color: rgba(255, 255, 255, 0.75); font-size: 0.98rem; }

/* 9. Industries -------------------------------------- */
.ind-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  column-gap: 2.5rem;
  border-top: 1px solid var(--line);
}
.ind {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  font-size: 1.02rem;
}
.ind::before { content: "\2014"; color: var(--steel); flex: none; }

/* 10. Quality & Supply ------------------------------ */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.step {
  border-top: 2px solid var(--ink);
  padding-top: 1.1rem;
}
.step__n {
  display: block;
  margin-bottom: 0.7rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--steel);
}
.step h3 { margin-bottom: 0.45rem; }
.step p { font-size: 0.95rem; color: var(--body); }

/* 11. Contact ------------------------------------- */
.contact__email {
  display: inline-block;
  margin-top: 1.6rem;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--steel);
  font-size: clamp(1.1rem, 1rem + 0.7vw, 1.45rem);
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  word-break: break-word;
}
.contact__email:hover { color: var(--steel); }
.contact__loc { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

/* 12. Footer -------------------------------------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.7);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 720px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr; }
}
.site-footer .brand__mark { color: #fff; }
.site-footer .brand__name { color: #fff; }
.site-footer__brand p { margin-top: 0.6rem; font-size: 0.92rem; }
.site-footer__brand a { color: #fff; }
.site-footer__nav ul { list-style: none; padding: 0; display: grid; gap: 0.6rem; }
.site-footer__nav a { color: rgba(255, 255, 255, 0.72); text-decoration: none; font-size: 0.92rem; }
.site-footer__nav a:hover { color: #fff; }
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* 13. Motion / reveal ---------------------------- */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.55s ease, transform 0.55s ease;
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; }
  .js .reveal.is-visible { transition: none; }
}
