/* ============================================================
   FSCPRECISION - Marketing B2B Website Design System
   Style: European/American industrial supplier
   Colors: Deep navy + white + industrial orange CTA
   ============================================================ */

:root {
  --navy: #0B1F3A;
  --navy-deep: #071426;
  --navy-mid: #16325C;
  --accent: #E85D1F;
  --accent-dark: #C74A12;
  --steel: #5A6572;
  --steel-light: #8B96A3;
  --bg-light: #F5F7FA;
  --bg-white: #FFFFFF;
  --border: #E2E7EE;
  --text: #1C2733;
  --text-muted: #55616E;
  --success: #1D9E75;
  --radius: 8px;
  --radius-lg: 14px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--navy-mid); text-decoration: none; }
a:hover { color: var(--accent); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1 { font-size: 2.6rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.5px; }
h2 { font-size: 2rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.3px; }
h3 { font-size: 1.3rem; font-weight: 600; line-height: 1.35; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { color: var(--text-muted); }
.lead { font-size: 1.15rem; color: var(--steel); }

.section { padding: 72px 0; }
.section-dark { background: var(--navy); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #B9C4D2; }
.section-light { background: var(--bg-light); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head p { margin-top: 12px; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ---------- Buttons (tiered CTA system) ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost-light { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-ghost-dark { border-color: var(--navy); color: var(--navy); }
.btn-ghost-dark:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: 9px 20px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #8FA3BC;
  font-size: 0.8rem;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #C4D2E4; margin-left: 18px; }

/* ---------- Navigation ---------- */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--navy); }
.logo-mark {
  width: 34px; height: 34px; background: var(--navy); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 0.85rem; font-weight: 800;
}
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 0.9rem; font-weight: 500; color: var(--text); }
.main-nav a:hover { color: var(--accent); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-mid) 100%);
  color: #fff;
  padding: 90px 0 100px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .hl { color: #FF8A4C; }
.hero .lead { color: #C2CEDD; margin: 20px 0 32px; max-width: 540px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.hero-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: #D7E1EC;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { font-size: 0.8rem; color: #7E93AB; margin-top: 16px; }

.hero-video {
  background: var(--navy-deep);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  aspect-ratio: 16 / 10.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  aspect-ratio: 16 / 10.5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255,255,255,0.12);
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-img-badge {
  position: absolute; left: 18px; bottom: 18px;
  background: rgba(11,31,58,0.88); color: #fff;
  padding: 10px 16px; border-radius: var(--radius);
  font-size: 0.82rem; font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  backdrop-filter: blur(8px);
}
.hero-img-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 0 4px rgba(29,158,117,0.25);
}
.hero-video::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(232,93,31,0.08), transparent 55%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 14px);
}
.play-btn {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--accent);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.play-btn::after {
  content: "";
  border-style: solid;
  border-width: 12px 0 12px 20px;
  border-color: transparent transparent transparent #fff;
  margin-left: 5px;
}
.hero-video p { color: #8FA3BC; font-size: 0.85rem; position: relative; z-index: 1; }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--navy-deep); padding: 26px 0; }
.trust-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.trust-item strong { display: block; font-size: 1.55rem; color: #FF8A4C; font-weight: 700; }
.trust-item span { font-size: 0.8rem; color: #8FA3BC; }

/* ---------- Industry segmentation ---------- */
.industry-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.industry-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  text-align: center;
  transition: all 0.2s ease;
}
.industry-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(11,31,58,0.08); }
.industry-icon {
  width: 52px; height: 52px; margin: 0 auto 14px;
  background: var(--bg-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.industry-card h3 { font-size: 1rem; margin-bottom: 6px; }
.industry-card p { font-size: 0.8rem; line-height: 1.5; }

/* ---------- Process / How it works ---------- */
.process-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.process-step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 16px;
  position: relative;
}
.step-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.process-step h4 { font-size: 0.95rem; margin-bottom: 8px; }
.process-step p { font-size: 0.8rem; line-height: 1.5; }
.resp-tag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 10px;
}
.resp-customer { background: #FCEBEB; color: #A32D2D; }
.resp-us { background: #E1F5EE; color: #0F6E56; }

/* ---------- Capability cards ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cap-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all 0.2s ease;
}
.cap-card:hover { border-color: var(--navy); }
.cap-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.cap-card p { font-size: 0.88rem; }
.cap-card .more { display: inline-block; margin-top: 14px; font-size: 0.85rem; font-weight: 600; color: var(--accent); }

/* ---------- Data table ---------- */
.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 1px 3px rgba(11,31,58,0.06); }
.spec-table th { background: var(--navy); color: #fff; text-align: left; padding: 14px 20px; font-size: 0.85rem; }
.spec-table td { padding: 13px 20px; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.spec-table tr:last-child td { border-bottom: none; }
.spec-table td:first-child { font-weight: 600; color: var(--navy); width: 32%; }

/* ---------- Why choose / stats ---------- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 26px 22px; }
.why-card .num { font-size: 1.9rem; font-weight: 700; color: #FF8A4C; display: block; margin-bottom: 4px; }
.why-card h3 { font-size: 1rem; margin-bottom: 8px; }
.why-card p { font-size: 0.85rem; }

/* ---------- Case study ---------- */
.case-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: 340px 1fr;
}
.case-media {
  background: var(--bg-light);
  min-height: 260px;
  overflow: hidden;
}
.case-media img { width: 100%; height: 100%; object-fit: cover; min-height: 260px; }
.case-media-fallback {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  min-height: 260px;
  display: flex; align-items: center; justify-content: center;
  color: #6E84A0; font-size: 0.85rem;
  flex-direction: column; gap: 8px;
}
.case-body { padding: 32px; }
.case-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.case-tag { background: var(--bg-light); color: var(--navy-mid); font-size: 0.72rem; font-weight: 600; padding: 4px 12px; border-radius: 100px; }
.case-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.case-spec { border-left: 3px solid var(--accent); padding-left: 12px; }
.case-spec span { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.8px; color: var(--steel-light); }
.case-spec strong { font-size: 0.92rem; color: var(--navy); }
.case-result { background: #E1F5EE; border-radius: var(--radius); padding: 12px 18px; font-size: 0.88rem; color: #085041; }

/* ---------- Factory gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 14px;
  margin-top: 32px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-deep);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item:first-child { grid-row: span 2; }
.gallery-caption {
  position: absolute; left: 14px; bottom: 14px;
  background: rgba(11,31,58,0.85); color: #fff;
  padding: 6px 12px; border-radius: 6px;
  font-size: 0.75rem; font-weight: 600;
  backdrop-filter: blur(6px);
}
.fact-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.fact-stat strong { display: block; font-size: 1.8rem; color: var(--navy); font-weight: 700; line-height: 1.2; }
.fact-stat span { font-size: 0.85rem; color: var(--text-muted); }
.page-hero-photo {
  aspect-ratio: 21 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 28px;
  position: relative;
}
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-photo .gallery-caption { font-size: 0.85rem; padding: 8px 14px; }
.page-hero-photo-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}
.page-hero-photo-row img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }

/* Material blocks (used on materials.html) */
.material-block { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: start; margin: 24px 0 36px; }
.material-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--border); }
.material-block h3 { margin-bottom: 12px; color: var(--navy); }
.material-block h4 { font-size: 0.92rem; margin: 16px 0 8px; color: var(--navy); text-transform: uppercase; letter-spacing: 0.05em; }
.material-block ul { padding-left: 18px; font-size: 0.9rem; color: var(--text-muted); }
.material-block ul li { margin-bottom: 6px; }
.material-block p { font-size: 0.92rem; color: var(--text-muted); }

@media (max-width: 720px) {
  .material-block { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-item details summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  display: flex; justify-content: space-between; align-items: center;
}
.faq-item details summary::-webkit-details-marker { display: none; }
.faq-item details summary::after { content: "+"; font-size: 1.3rem; color: var(--accent); font-weight: 400; }
.faq-item details[open] summary::after { content: "−"; }
.faq-item details .faq-body { padding: 0 24px 18px; font-size: 0.9rem; color: var(--text-muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-mid) 100%);
  border-radius: var(--radius-lg);
  padding: 52px;
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 1.6rem; }
.cta-band p { color: #B9C4D2; margin-top: 8px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--navy); color: #fff; padding: 60px 0; }
.page-hero h1 { color: #fff; font-size: 2.2rem; }
.page-hero .lead { margin-top: 14px; max-width: 640px; }
.breadcrumb { font-size: 0.8rem; color: #8FA3BC; margin-bottom: 18px; }
.breadcrumb a { color: #C4D2E4; }

/* ---------- Quote form ---------- */
.quote-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.quote-form { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-field label .req { color: var(--accent); }
.form-field input, .form-field select, .form-field textarea {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.92rem;
  color: var(--text);
  background: #FBFCFE;
  transition: border-color 0.15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
}
.form-field textarea { min-height: 110px; resize: vertical; }
.file-drop {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  color: var(--steel);
  font-size: 0.88rem;
  background: #FBFCFE;
}
.file-drop strong { color: var(--navy); }
.file-drop .formats { font-size: 0.75rem; color: var(--steel-light); margin-top: 4px; }
.form-foot { margin-top: 20px; font-size: 0.78rem; color: var(--steel-light); }

.aside-card { background: var(--bg-light); border-radius: var(--radius-lg); padding: 26px; margin-bottom: 20px; }
.aside-card h3 { font-size: 1rem; margin-bottom: 12px; }
.aside-card ul { list-style: none; }
.aside-card li { font-size: 0.86rem; color: var(--text-muted); padding: 7px 0 7px 26px; position: relative; }
.aside-card li::before {
  content: "✓"; position: absolute; left: 0;
  color: var(--success); font-weight: 700;
}

/* ---------- Content prose (service pages) ---------- */
.prose { max-width: 780px; }
.prose h2 { margin: 40px 0 16px; font-size: 1.6rem; }
.prose h3 { margin: 28px 0 12px; }
.prose p { margin-bottom: 16px; }
.prose ul { margin: 0 0 16px 22px; color: var(--text-muted); }
.prose li { margin-bottom: 8px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #8FA3BC; padding: 60px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; margin-bottom: 44px; }
.site-footer h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; letter-spacing: 0.5px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #8FA3BC; font-size: 0.86rem; }
.site-footer a:hover { color: #fff; }
.footer-brand p { font-size: 0.86rem; margin-top: 14px; max-width: 300px; }
.footer-contact li { font-size: 0.86rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.78rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .industry-grid { grid-template-columns: repeat(3, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
  .case-card { grid-template-columns: 1fr; }
  .quote-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  h1 { font-size: 1.9rem; }
  h2 { font-size: 1.5rem; }
  .section { padding: 52px 0; }
  .main-nav {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column;
    padding: 20px 24px; gap: 16px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 12px 24px rgba(11,31,58,0.1);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .process-steps { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .case-specs { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .cta-band { padding: 34px 24px; }
  .topbar .hide-sm { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px 200px; }
  .gallery-item:first-child { grid-row: span 1; }
  .fact-row { grid-template-columns: 1fr 1fr; gap: 24px; }
  .page-hero-photo-row { grid-template-columns: 1fr; }
}
