/* ==========================================================================
   JPM — Fabrication Solutions
   Static site stylesheet — matched to the real dit theme (colors, font,
   diagonal "cut corner" motif) pulled from the live jpm.instawp.xyz theme.
   ========================================================================== */

:root {
  --color-red: #D2232A;
  --color-red-dark: #a91b21;
  --color-black: #231F20;
  --color-dark-gray: #898788;
  --color-medium-gray: #918F8F;
  --color-light-gray: #C7C6C6;
  --color-gray: #F0F0F0;
  --color-beige: #F8F8F8;
  --color-white: #ffffff;
  --font-base: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --max-width: 1200px;
  --cut: 20px;
  --cut-sm: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-black);
  line-height: 1.6;
  background: var(--color-white);
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 16px;
  color: var(--color-black);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

/* Signature look: big display headlines are italic, with the key phrase
   picked out in red semi-bold via a .accent span */
.hero h1, .page-hero h1 {
  font-style: italic;
  font-weight: 400;
}
.accent {
  color: var(--color-red);
  font-weight: 600;
  font-style: italic;
}

p { margin: 0 0 16px; color: var(--color-dark-gray); }

ul { margin: 0 0 16px; padding-left: 20px; color: var(--color-dark-gray); }

/* ---------- Buttons: diagonal cut corners, uppercase, no radius ---------- */
.btn {
  display: inline-block;
  padding: 15px 36px;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  border: 2px solid var(--color-red);
  clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, var(--cut-sm) 100%, 0 calc(100% - var(--cut-sm)));
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
}
.btn-primary:hover {
  background: var(--color-red-dark);
  border-color: var(--color-red-dark);
}

.btn-outline {
  background: transparent;
  color: var(--color-red);
}
.btn-outline:hover {
  background: var(--color-red);
  color: var(--color-white);
}

.section {
  padding: 64px 0;
}
.section-alt {
  background: var(--color-gray);
}
.section-dark {
  background: var(--color-black);
  color: var(--color-white);
}
.section-dark h1, .section-dark h2, .section-dark p { color: var(--color-white); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-red);
  margin-bottom: 8px;
  display: block;
}

/* Red ring-bullet icon used on the three intro feature cards */
.icon-bullet {
  color: var(--color-red);
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-gray);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.site-logo img { height: 40px; width: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.main-nav > ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-black);
}
.main-nav a:hover { color: var(--color-red); }

.has-dropdown { position: relative; }
.dropdown {
  display: none;
  list-style: none;
  margin: 0;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid var(--color-gray);
  min-width: 260px;
  padding: 8px 0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.has-dropdown:hover .dropdown { display: block; }
.dropdown li a {
  display: block;
  padding: 10px 18px;
  font-weight: 500;
  text-transform: none;
}
.dropdown li a:hover { background: var(--color-gray); }

.header-actions { display: flex; align-items: center; gap: 16px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-black);
  margin: 5px 0;
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  body.nav-open .main-nav {
    display: flex;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    overflow-y: auto;
  }
  body.nav-open .main-nav > ul { flex-direction: column; gap: 4px; width: 100%; }
  body.nav-open .dropdown { position: static; box-shadow: none; border: none; display: block; padding-left: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--color-gray);
  padding-bottom: 56px;
}
.hero-image {
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), calc(100% - 40px) 100%, 0 100%);
  overflow: hidden;
  max-height: 420px;
}
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-body {
  padding-top: 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 860px) { .hero-body { grid-template-columns: 1fr; } }
.hero-body.single { grid-template-columns: 1fr; max-width: 680px; }
.hero h1 { color: var(--color-black); }
.hero p { color: var(--color-black); font-size: 1.05rem; }

.page-hero {
  padding: 72px 0;
  background: var(--color-black);
  color: var(--color-white);
}
.page-hero h1 { color: var(--color-white); }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 640px; }

/* ---------- Cards / grids ---------- */
.grid {
  display: grid;
  gap: 32px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-gray);
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.card-body { padding: 28px; }
.card h3, .card h4 { color: var(--color-red); }

.list-check {
  list-style: none;
  padding: 0;
}
.list-check li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
}
.list-check li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-red);
  font-weight: 700;
}

.tag-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag-list li {
  background: var(--color-gray);
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}

.industry-tile {
  position: relative;
  overflow: hidden;
  color: var(--color-white);
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.industry-tile img { aspect-ratio: 4/3; object-fit: cover; filter: brightness(0.6); }
.industry-tile .label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  font-weight: 700;
  font-size: 1.1rem;
}
.industry-tile .num {
  position: absolute;
  top: 16px;
  right: 16px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--color-gray);
  text-align: center;
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "PRECISION";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 900;
  color: rgba(210, 35, 42, 0.08);
  white-space: nowrap;
  letter-spacing: 0.05em;
  pointer-events: none;
  text-transform: uppercase;
  font-style: italic;
}
.cta-band .container {
  background: var(--color-white);
  padding: 56px 64px;
  position: relative;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
  max-width: 640px;
}
.cta-band h2 { color: var(--color-black); font-style: italic; font-weight: 400; }
.cta-band .eyebrow { color: var(--color-red); }
.cta-band p { color: var(--color-dark-gray); }
.cta-band .btn {
  background: transparent;
  color: var(--color-red);
  border-color: var(--color-red);
}
.cta-band .btn:hover { background: var(--color-red); color: var(--color-white); }

/* ---------- Video ---------- */
.video-wrap {
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.video-wrap video { width: 100%; display: block; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-gray);
  padding: 20px 0;
}
.faq-item h4 { margin-bottom: 8px; color: var(--color-red); }

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.form-grid .full { grid-column: 1 / -1; }

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
input, textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-light-gray);
  font-family: inherit;
  font-size: 0.95rem;
}
textarea { resize: vertical; min-height: 140px; }

.contact-info {
  background: var(--color-gray);
  padding: 32px;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}
.contact-info h4 { color: var(--color-red); margin-bottom: 8px; }
.contact-info p { margin-bottom: 8px; }
.contact-info a { color: var(--color-dark-gray); }
.contact-info a:hover { color: var(--color-red); }

/* ---------- Dropdown open via JS class (click/touch support) ---------- */
.has-dropdown.open .dropdown { display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-white);
  color: var(--color-black);
  padding: 64px 0 32px;
  border-top: 1px solid var(--color-light-gray);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 0;
  padding-bottom: 48px;
}
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 0; }
}

.footer-brand { padding-right: 3rem; }
.footer-brand p {
  color: var(--color-dark-gray);
  font-size: 0.9rem;
  margin-bottom: 6px;
}
.footer-brand a { color: var(--color-dark-gray); }
.footer-brand a:hover { color: var(--color-red); }

.footer-logo { margin-bottom: 20px; }
.footer-logo img { height: 36px; }

.footer-col {
  padding-left: 3rem;
  border-left: 1px dashed var(--color-light-gray);
}
.footer-col h4 {
  color: var(--color-black);
  margin-bottom: 14px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--color-dark-gray); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--color-red); }

.footer-address {
  padding-left: 3rem;
  border-left: 1px dashed var(--color-light-gray);
}
.footer-address p { color: var(--color-dark-gray); font-size: 0.9rem; margin-bottom: 6px; }
.footer-address a { color: var(--color-dark-gray); }
.footer-address a:hover { color: var(--color-red); }

@media (max-width: 768px) {
  .footer-brand { padding-right: 0; padding-bottom: 2rem; }
  .footer-col, .footer-address {
    border-left: none;
    border-top: 1px dashed var(--color-light-gray);
    padding-left: 0;
    padding-top: 2rem;
    margin-top: 2rem;
  }
}

.social-links { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--color-light-gray);
  color: var(--color-dark-gray);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  flex-shrink: 0;
}
.social-links a:hover {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}
.social-links svg { width: 15px; height: 15px; fill: currentColor; display: block; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px dashed var(--color-light-gray);
  color: var(--color-dark-gray);
  font-size: 0.8rem;
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}
.footer-bottom a { color: var(--color-dark-gray); }
.footer-bottom a:hover { color: var(--color-black); }