/* ============================================================
   American Manufacturing — modern, clean theme
   ============================================================ */

:root {
  --navy-900: #0a1628;
  --navy-800: #0f1f38;
  --navy-700: #16294a;
  --steel-500: #2f6fed;
  --steel-400: #4f8bff;
  --steel-300: #7aa8ff;
  --accent: #ff6a3d;
  --ink: #0c1521;
  --slate-700: #33415c;
  --slate-600: #475068;
  --slate-500: #5b6b80;
  --slate-400: #8493a8;
  --slate-200: #d7deea;
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --line: #e4eaf3;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(12, 21, 33, .06), 0 1px 2px rgba(12, 21, 33, .04);
  --shadow-md: 0 12px 30px -12px rgba(12, 21, 33, .18);
  --shadow-lg: 0 30px 60px -20px rgba(12, 21, 33, .28);

  --font-body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-head: 'Space Grotesk', var(--font-body);

  --maxw: 1180px;
  --gut: 24px;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .95rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease;
}
.btn-primary { background: var(--steel-500); color: #fff; box-shadow: 0 8px 20px -8px rgba(47,111,237,.7); }
.btn-primary:hover { background: var(--steel-400); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .65rem; font-weight: 700; }
.brand-logo { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 1.6rem; margin-left: auto; }
.nav-link-contact { display: none; } /* shown only inside the mobile menu */
.nav a { font-size: .94rem; font-weight: 500; color: var(--slate-700); position: relative; padding: .3rem 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--steel-500); transition: width .2s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }
.nav-cta { margin-left: .4rem; padding: .6rem 1.2rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 75% -10%, var(--navy-700), var(--navy-900) 60%);
  color: #fff;
  padding: clamp(70px, 12vw, 140px) 0 clamp(60px, 8vw, 100px);
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: 1;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(900px 500px at 70% 0%, #000, transparent 75%);
}
/* Hero background slideshow built from the original product photos */
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slides::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(10,22,40,.94) 0%, rgba(10,22,40,.86) 45%, rgba(10,22,40,.62) 100%),
    linear-gradient(rgba(10,22,40,.45), rgba(10,22,40,.75));
}
.hero-inner { position: relative; z-index: 2; max-width: 860px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel-300); background: rgba(79,139,255,.12); border: 1px solid rgba(79,139,255,.25);
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.4rem;
}
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); margin-bottom: 1.2rem; max-width: 16ch; }
.hero-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--slate-200); max-width: 60ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: 3.5rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius); overflow: hidden;
}
.stat { background: rgba(10,22,40,.4); padding: 1.4rem 1.2rem; }
.stat .num { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; color: #fff; }
.stat .lbl { font-size: .82rem; color: var(--slate-400); margin-top: .25rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
.section-tag {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel-500); margin-bottom: .7rem;
}
.section-intro { color: var(--slate-500); font-size: 1.05rem; margin-top: .6rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.about-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 1.2rem; }
.about-copy p { color: var(--slate-700); font-size: 1.05rem; }
.mission-card {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #fff; border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-md);
}
.mission-card h3 { font-size: 1.2rem; margin-bottom: .8rem; color: var(--steel-300); }
.mission-card p { color: var(--slate-200); font-size: 1.02rem; }
.industries { display: grid; gap: .7rem; margin-top: 1.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); }
.industry { display: flex; align-items: center; gap: .7rem; font-weight: 500; font-size: .98rem; }
.industry .ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: rgba(79,139,255,.16); color: var(--steel-300); }
.industry .ico svg { width: 18px; height: 18px; }

/* ---------- Cards (capabilities) ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; }
.cap-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--steel-300); }
.cap-card .cap-num { font-family: var(--font-head); font-size: .8rem; font-weight: 700; color: var(--steel-500); letter-spacing: .08em; }
.cap-card h3 { font-size: 1.15rem; margin: .6rem 0 .5rem; }
.cap-card p { color: var(--slate-500); font-size: .95rem; margin: 0; }

/* ---------- Equipment ---------- */
.equipment-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.equip-col { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.equip-col h3 { font-size: 1.1rem; padding: 1.2rem 1.4rem; background: var(--navy-900); color: #fff; }
.equip-col ul { padding: .6rem 0; }
.equip-col li { padding: .7rem 1.4rem; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--slate-700); display: flex; gap: .6rem; }
.equip-col li:last-child { border-bottom: 0; }
.equip-col li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: .55rem; border-radius: 2px; background: var(--steel-500); }

/* ---------- Certifications ---------- */
.cert-layout { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2.4rem; align-items: start; }
.cert-grid { display: grid; gap: 1.4rem; }
.cert-banner {
  width: 100%; max-width: 460px; border-radius: var(--radius);
  border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-sm);
  margin-top: .2rem;
}
.cert-showcase { display: grid; gap: 1.4rem; justify-items: start; }
/* when there are no standard cards, badge + certificate sit side by side */
.cert-layout-solo { grid-template-columns: 1fr; }
.cert-layout-solo .cert-showcase { grid-template-columns: repeat(auto-fit, minmax(280px, max-content)); align-items: start; }
.cert-view {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .9rem; cursor: pointer; box-shadow: var(--shadow-sm);
  display: grid; gap: .7rem; justify-items: center; width: 100%; max-width: 320px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cert-view:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--steel-300); }
.cert-view img { max-height: 300px; width: auto; border-radius: 6px; box-shadow: var(--shadow-sm); }
.cert-view-label { font-weight: 600; font-size: .95rem; color: var(--steel-500); display: flex; align-items: center; gap: .4rem; }
.cert-view-label::after { content: "↗"; }
.cert-card {
  display: flex; gap: 1.2rem; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.cert-badge {
  flex: none; width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--steel-500), var(--navy-800)); color: #fff;
}
.cert-badge svg { width: 30px; height: 30px; }
.cert-card h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.cert-card p { color: var(--slate-500); font-size: .92rem; margin: 0; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem; }
.gallery-item {
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden;
  background: var(--bg-alt); border: 1px solid var(--line); cursor: pointer;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--slate-400); font-size: .85rem; text-align: center; padding: 1rem; }

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.team-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.team-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.team-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.avatar {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
  background: linear-gradient(135deg, var(--steel-400), var(--navy-800)); color: #fff;
}
.team-card .name { font-weight: 700; font-family: var(--font-head); font-size: 1.08rem; }
.team-card .role { color: var(--steel-500); font-size: .88rem; font-weight: 500; }
.team-links { display: grid; gap: .45rem; font-size: .92rem; }
.team-links a { color: var(--slate-700); display: flex; align-items: center; gap: .55rem; }
.team-links a:hover { color: var(--steel-500); }
.team-links svg { width: 15px; height: 15px; flex: none; color: var(--slate-400); }

/* ---------- Terms (accordion) ---------- */
.terms-wrap { display: grid; gap: 2rem; }
.terms-group > h3 { font-size: 1.3rem; margin-bottom: 1rem; padding-bottom: .6rem; border-bottom: 2px solid var(--line); }
.accordion { display: grid; gap: .6rem; }
.acc-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.acc-head {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1rem 1.2rem; font-size: 1rem; font-weight: 600; font-family: var(--font-body); color: var(--ink);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.acc-head:hover { background: var(--bg-alt); }
.acc-head .chev { flex: none; transition: transform .2s ease; color: var(--steel-500); font-size: 1.2rem; line-height: 1; }
.acc-item.open .acc-head .chev { transform: rotate(45deg); }
/* Collapsed by default; clicking .acc-head toggles .open (JS). A <noscript>
   rule in <head> opens them when JS is disabled so the text stays readable.
   Animates grid row 0fr → 1fr — resize-safe, no frozen pixel height. */
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
/* The collapsing element carries NO padding (padding would peek through at 0fr).
   Padding lives on the inner content wrapper instead. */
.acc-body-inner { overflow: hidden; min-height: 0; }
.acc-body-content { padding: 0 1.2rem 1.1rem; color: var(--slate-600); font-size: .96rem; }
.acc-bullets { list-style: disc; padding-left: 1.3rem; margin: .7rem 0 0; display: grid; gap: .4rem; }
.acc-bullets li { color: var(--slate-600); }
.acc-links { margin: .8rem 0 0; display: grid; gap: .45rem; }
.acc-links a { color: var(--steel-500); font-weight: 500; }
.acc-links a:hover { text-decoration: underline; }
.acc-links span { color: var(--slate-500); }

/* ---------- Contact ---------- */
.section-contact { background: radial-gradient(900px 500px at 20% 0%, var(--navy-700), var(--navy-900)); color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.section-contact .section-tag { color: var(--steel-300); }
.section-contact h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .8rem; }
.section-contact .section-intro { color: var(--slate-200); }
.contact-list { display: grid; gap: 1.1rem; margin-top: 1.8rem; }
.contact-list li { display: flex; align-items: center; gap: 1rem; }
.contact-list .ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(79,139,255,.18); color: var(--steel-300); }
.contact-list .ico svg { width: 20px; height: 20px; }
.contact-list .c-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate-400); }
.contact-list .c-value { font-size: 1.05rem; font-weight: 500; color: #fff; }
.contact-list a.c-value:hover { color: var(--steel-300); }
.contact-map iframe { width: 100%; height: 380px; border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); filter: grayscale(.15); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: var(--slate-200); padding-top: 3.5rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2.5rem; }
.footer-brand { display: flex; gap: 1rem; max-width: 420px; align-items: flex-start; }
.footer-logo-chip { flex: none; background: #fff; border-radius: 12px; padding: .7rem .9rem; box-shadow: var(--shadow-sm); }
.footer-logo-chip img { height: 40px; width: auto; display: block; }
.footer-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.1rem; }
.footer-brand p { color: var(--slate-400); font-size: .92rem; margin: 0; }
.footer-meta { display: grid; gap: .5rem; font-size: .95rem; }
.footer-meta a:hover { color: #fff; }
.footer-meta .fm-label { color: var(--slate-400); font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .8rem; padding: 1.4rem 0; margin-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: var(--slate-400); }
.footer-certs { font-weight: 600; letter-spacing: .04em; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,14,24,.92); display: grid; place-items: center; padding: 4vw; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 88vh; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.lightbox-close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; cursor: pointer; }

/* ---------- Reveal animation (only when JS is present) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid, .cert-layout { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.menu-open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: .5rem 0;
  }
  .site-header.menu-open .nav a { padding: .9rem var(--gut); border-bottom: 1px solid var(--line); }
  .site-header.menu-open .nav a::after { display: none; }
  .site-header.menu-open .nav .nav-link-contact { display: block; color: var(--steel-500); font-weight: 600; border-bottom: 0; }
}
@media (max-width: 480px) {
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
