/* All Points Manufacturing - design system
 * White-dominant, red/yellow brand accents, gradient transitions,
 * vertical timeline, scroll-snap section feel without breaking flow.
 * No build step -- single stylesheet sourced by every page.
 */

:root {
  --red: #c41e3a;
  --red-dark: #9b1730;
  --red-light: #e8344e;
  --yellow: #f4b223;
  --yellow-dark: #d99700;
  --yellow-light: #ffd05a;
  --ink: #1a1a1a;
  --ink-soft: #2d2d2d;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --line-soft: #f0f0f0;
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --bg-tint: #fdf6e7;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.04), 0 10px 15px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 20px rgba(0,0,0,0.05), 0 20px 40px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
h1 { font-size: clamp(36px, 5.5vw, 64px); letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 3.5vw, 44px); }
h3 { font-size: clamp(20px, 2vw, 26px); }
h4 { font-size: 18px; }

p { margin: 0 0 16px; }
a { color: var(--red); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red-dark); }

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

/* ---------- Layout ---------- */
.container {
  width: min(100%, var(--container));
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
section { padding: clamp(60px, 8vw, 120px) 0; }
section.tight { padding: clamp(40px, 5vw, 70px) 0; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 16px;
}
.section-header { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-header.left { margin-left: 0; text-align: left; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.25);
}
.btn-primary:hover { background: var(--red-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(196, 30, 58, 0.35); }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: #fff; color: #fff; }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 12px rgba(244, 178, 35, 0.3); }
.btn-yellow:hover { background: var(--yellow-dark); color: var(--ink); transform: translateY(-1px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 32px;
}
.site-header__logo img { height: 44px; width: auto; }
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-header__nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 15px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all .15s ease;
}
.site-header__nav a:hover { color: var(--red); background: var(--bg-tint); }
.site-header__nav a.active { color: var(--red); }
.site-header__cta { margin-left: 8px; }
.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-header__nav {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 16px var(--gutter);
    gap: 4px;
    transform: translateY(-110%);
    transition: transform .25s ease;
    box-shadow: var(--shadow-md);
  }
  .site-header__nav.open { transform: translateY(0); }
  .site-header__nav a { padding: 12px 16px; }
  .site-header__cta { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(80px, 12vw, 140px) 0 clamp(80px, 10vw, 120px);
  background:
    radial-gradient(1200px 600px at 85% 0%, rgba(244, 178, 35, 0.18), transparent 70%),
    linear-gradient(135deg, #fff 0%, #fff 55%, #fef5e0 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, #fff);
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero__title { font-size: clamp(40px, 5.5vw, 68px); }
.hero__title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--red), var(--yellow-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(196, 30, 58, 0.92), rgba(244, 178, 35, 0.92)),
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 50%);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 40px;
  overflow: hidden;
}
.hero__visual::before {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 40px, rgba(255,255,255,0.04) 40px 80px);
}
.hero__visual-content { position: relative; text-align: center; }
.hero__visual-content .big-number {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: clamp(60px, 8vw, 100px);
  line-height: 1;
  letter-spacing: -0.04em;
}
.hero__visual-content .label { font-size: 16px; opacity: 0.92; text-transform: uppercase; letter-spacing: 0.15em; margin-top: 12px; }
.hero__visual-content .sub-label { font-size: 15px; opacity: 0.85; margin-top: 24px; max-width: 280px; line-height: 1.5; }

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { aspect-ratio: 5 / 4; max-width: 480px; margin: 0 auto; }
}

/* ---------- Trust bar ---------- */
.trust-bar {
  background: #fff;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.trust-bar__inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}
.trust-bar__label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.trust-bar__logos {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  flex-wrap: wrap;
}
.trust-bar__logos img {
  height: 56px;
  width: auto;
  opacity: 0.85;
  filter: grayscale(0.1);
  transition: opacity .2s;
}
.trust-bar__logos img:hover { opacity: 1; }

/* ---------- Service cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: all .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--red), var(--yellow));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 22px;
}
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); margin-bottom: 0; }

/* ---------- Stats row ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding: 56px 0;
  text-align: center;
}
.stat__value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(38px, 4vw, 52px);
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--yellow-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.stat__label { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- Gradient band (section transition) ---------- */
.gradient-band {
  background: linear-gradient(135deg, var(--red) 0%, var(--yellow-dark) 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.gradient-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 400px at 10% 20%, rgba(255,255,255,0.12), transparent 60%),
    radial-gradient(800px 400px at 90% 80%, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}
.gradient-band h2 { color: #fff; }
.gradient-band p { color: rgba(255,255,255,0.92); }
.gradient-band .container { position: relative; }

.gradient-band-soft {
  background: linear-gradient(180deg, #fff 0%, var(--bg-tint) 60%, #fff 100%);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 0;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 32px;
  width: 3px;
  background: linear-gradient(180deg, var(--red), var(--yellow));
  border-radius: 2px;
}
.timeline__item {
  position: relative;
  padding: 0 0 44px 80px;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute;
  left: 18px;
  top: 6px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--red);
  box-shadow: 0 0 0 5px #fff, var(--shadow-sm);
}
.timeline__year {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.timeline__title { font-size: 22px; margin-bottom: 8px; }
.timeline__body { color: var(--muted); margin: 0; }

@media (max-width: 600px) {
  .timeline::before { left: 16px; }
  .timeline__item { padding-left: 56px; }
  .timeline__dot { left: 2px; width: 28px; height: 28px; }
}

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}
.team-member { text-align: center; }
.team-member__avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--yellow));
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: var(--shadow-md);
}
.team-member__name { font-size: 20px; margin-bottom: 4px; }
.team-member__role { color: var(--red); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 8px; }
.team-member__bio { color: var(--muted); font-size: 15px; line-height: 1.55; margin: 0; }

/* ---------- Feature list ---------- */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.feature-list li {
  position: relative;
  padding: 20px 20px 20px 56px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--ink-soft);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--yellow));
  background-image: linear-gradient(135deg, var(--red), var(--yellow)),
                    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.feature-list li::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---------- Process steps (Grow With Us) ---------- */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 28px 28px;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -16px;
  left: 28px;
  width: 48px;
  height: 32px;
  background: linear-gradient(135deg, var(--red), var(--yellow-dark));
  color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 14px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, var(--ink) 0%, #2a1518 60%, var(--red-dark) 100%);
  color: #fff;
  text-align: center;
  padding: clamp(60px, 8vw, 100px) 0;
}
.cta-banner h2 { color: #fff; max-width: 720px; margin: 0 auto 16px; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 600px; margin: 0 auto 32px; font-size: 18px; }
.cta-banner__buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.75);
  padding: 80px 0 28px;
  font-size: 15px;
}
.site-footer a { color: rgba(255,255,255,0.85); }
.site-footer a:hover { color: var(--yellow); }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}
.site-footer__brand img { height: 56px; filter: brightness(0) invert(1); margin-bottom: 20px; }
.site-footer__brand p { color: rgba(255,255,255,0.65); max-width: 320px; line-height: 1.55; }
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: rgba(255,255,255,0.55);
}
@media (max-width: 760px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.form-label .req { color: var(--red); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  font-family: inherit;
  font-size: 16px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
  width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.12);
}
.form-textarea { min-height: 140px; resize: vertical; }
.form-help { font-size: 13px; color: var(--muted); }
.form-checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.form-checkbox input { margin-top: 3px; flex-shrink: 0; }
.form-status {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 15px;
  display: none;
}
.form-status.show { display: block; }
.form-status.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.form-status.error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ---------- Blog ---------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.blog-card__cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--red), var(--yellow));
  position: relative;
}
.blog-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 30px, rgba(255,255,255,0.06) 30px 60px);
}
.blog-card__body { padding: 24px 24px 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card__tag { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.blog-card__title { font-size: 20px; margin: 0 0 10px; }
.blog-card__title a { color: var(--ink); }
.blog-card__title a:hover { color: var(--red); }
.blog-card__excerpt { color: var(--muted); font-size: 15px; flex: 1; margin: 0 0 16px; }
.blog-card__meta { color: var(--muted); font-size: 13px; }

.post {
  max-width: 720px;
  margin: 0 auto;
}
.post header { margin-bottom: 40px; }
.post h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 16px; }
.post__meta { color: var(--muted); font-size: 14px; }
.post__body h2 { font-size: 28px; margin-top: 48px; margin-bottom: 16px; }
.post__body h3 { font-size: 22px; margin-top: 36px; margin-bottom: 12px; }
.post__body p { font-size: 17px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 18px; }
.post__body ul, .post__body ol { padding-left: 24px; margin-bottom: 18px; }
.post__body li { font-size: 17px; line-height: 1.75; margin-bottom: 6px; color: var(--ink-soft); }
.post__body blockquote {
  margin: 32px 0;
  padding: 20px 28px;
  background: var(--bg-tint);
  border-left: 4px solid var(--yellow);
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--ink-soft);
}
.post__body code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }

/* ---------- Page hero (smaller, used on inner pages) ---------- */
.page-hero {
  background:
    radial-gradient(800px 400px at 80% 0%, rgba(244, 178, 35, 0.18), transparent 70%),
    linear-gradient(180deg, #fff, var(--bg-tint));
  padding: clamp(60px, 8vw, 100px) 0 clamp(40px, 5vw, 60px);
  text-align: center;
}
.page-hero h1 { font-size: clamp(34px, 4.5vw, 54px); margin-bottom: 16px; }
.page-hero p { max-width: 660px; margin: 0 auto; font-size: clamp(17px, 1.4vw, 19px); color: var(--muted); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* Reveal animation (subtle on scroll-into-view) */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
