/* PMI Specialists, Inc. — shared stylesheet
   Light theme matching the legacy site: white + azure blue (#03a9f4), navy-teal ink (#17252a). */

:root {
  --bg: #ffffff;
  --bg-2: #f5fafd;          /* alt section / footer / card base */
  --surface: #ffffff;
  --surface-2: #eef6fc;     /* hover / chips */
  --border: #dbe7f0;
  --ink: #17252a;           /* dark navy-teal headings */
  --text: #1d2c33;
  --muted: #5f7683;
  --accent: #03a9f4;        /* primary azure blue */
  --accent-2: #0277bd;      /* deeper blue (gradients/hover) */
  --accent-3: #0693e3;
  --steel: #0288d1;
  --good: #00bf87;
  --bad: #e5342b;           /* red, for danger/wrong-alloy markers */
  --warn: #f79007;          /* legacy orange, used sparingly */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 44px -24px rgba(23, 37, 42, 0.28);
  --shadow-sm: 0 8px 24px -14px rgba(23, 37, 42, 0.25);
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(56vw 42vw at 90% -14%, rgba(3, 169, 244, 0.10), transparent 60%),
    radial-gradient(52vw 40vw at -6% 6%, rgba(2, 136, 209, 0.07), transparent 58%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; isolation: isolate; backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.94); border-bottom: 1px solid var(--border);
  will-change: transform;
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.brand .logo-badge {
  width: 68px; height: 56px; display: grid; place-items: center;
}
.brand .logo-badge img { width: 100%; height: 100%; object-fit: contain; }
.brand .name { line-height: 1.1; font-size: 16px; letter-spacing: 0.2px; }
.brand small { display: block; font-weight: 500; font-size: 10.5px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links > a, .dropdown > a {
  padding: 9px 13px; border-radius: 10px; color: var(--muted);
  font-size: 14.5px; font-weight: 500; transition: color .2s var(--ease), background .2s var(--ease); cursor: pointer;
}
.nav-links > a:hover, .dropdown > a:hover, .nav-links > a.active, .dropdown > a.active { color: var(--accent-2); background: var(--surface-2); }
.nav-links .btn { margin-left: 8px; }
/* Keep the primary CTA solid azure + white even on its own (active) page */
.nav-links > a.btn-primary, .nav-links > a.btn-primary.active {
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--steel));
}
.nav-links .btn.active { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); font-size: 22px; cursor: pointer; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px; padding: 8px; min-width: 260px;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s var(--ease);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 9px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; }
.dropdown-menu a:hover { background: var(--surface-2); color: var(--accent-2); }
.dropdown-menu.wide { min-width: 460px; }
.dropdown-menu.wide .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 12px 20px; border-radius: 12px;
  font-weight: 600; font-size: 14.5px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease); white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--steel)); color: #fff; box-shadow: 0 10px 26px -10px rgba(3, 169, 244, 0.65); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px rgba(3, 169, 244, 0.8); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { padding: 92px 0 68px; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent-2); padding: 7px 14px;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface-2); margin-bottom: 24px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 12px var(--good); }
.hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.05; letter-spacing: -1.5px; font-weight: 800; max-width: 16ch; color: var(--ink); }
.hero h1 .grad { background: linear-gradient(135deg, var(--accent), var(--steel) 55%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: clamp(16px, 2vw, 20px); color: var(--muted); max-width: 62ch; margin: 24px 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Element motif chips (Fe Ni Cr Mo ...) */
.elements { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 46px; }
.elements .el {
  width: 52px; height: 56px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border);
  display: grid; place-content: center; text-align: center; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; box-shadow: var(--shadow-sm);
}
.elements .el:hover { transform: translateY(-4px); border-color: var(--accent); }
.elements .el b { font-size: 17px; font-weight: 800; letter-spacing: 0.5px; color: var(--accent-2); }
.elements .el span { font-size: 10px; color: var(--muted); }

.stats { display: flex; gap: 40px; flex-wrap: wrap; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.stat b { font-size: 34px; font-weight: 800; letter-spacing: -1px; color: var(--accent-2); }
.stat span { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }

/* ---------- Sections ---------- */
section { padding: 74px 0; }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 64ch; margin-bottom: 42px; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -1px; line-height: 1.1; font-weight: 800; color: var(--ink); }
.section-head p { color: var(--muted); margin-top: 14px; font-size: 17px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Grid / cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: var(--shadow); }
.card .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 16px; font-size: 23px; }
.card h3 { font-size: 19px; letter-spacing: -0.3px; margin-bottom: 8px; color: var(--ink); }
.card p { color: var(--muted); font-size: 14.5px; }
.card .more { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-2); font-weight: 600; font-size: 14px; margin-top: 15px; }
.card .more::after { content: "→"; transition: transform .2s var(--ease); }
.card:hover .more::after { transform: translateX(4px); }
.card .tag { position: absolute; top: 18px; right: 18px; font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }

.features { list-style: none; display: grid; gap: 16px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features .check { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(0, 191, 135, 0.12); color: var(--good); font-weight: 800; font-size: 13px; margin-top: 2px; }
.features .check--warn { background: rgba(229, 52, 43, 0.12); color: var(--bad); }
.features li b { display: block; color: var(--ink); }
.features li span { color: var(--muted); font-size: 14.5px; }

/* Client logo tiles */
.client-logo { padding: 22px; min-height: 96px; }
.client-logo img { max-width: 100%; height: 40px; object-fit: contain; opacity: 0.82; transition: opacity 0.2s var(--ease); }
.client-logo:hover img { opacity: 1; }

.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 54px; align-items: center; }

/* ---------- Logo strip ---------- */
.logos { display: flex; flex-wrap: wrap; gap: 12px 30px; align-items: center; justify-content: center; }
.logos span { font-size: 18px; font-weight: 700; color: var(--muted); opacity: 0.8; letter-spacing: 0.3px; transition: color .2s, opacity .2s; }
.logos span:hover { color: var(--accent-2); opacity: 1; }

/* ---------- Page hero / detail ---------- */
.page-hero { padding: 62px 0 38px; }
.page-hero h1 { font-size: clamp(32px, 5vw, 52px); letter-spacing: -1.5px; font-weight: 800; line-height: 1.05; color: var(--ink); }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 68ch; margin-top: 16px; }
.breadcrumb { display: flex; gap: 8px; color: var(--muted); font-size: 13.5px; margin-bottom: 20px; align-items: center; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--accent-2); }
.breadcrumb span { opacity: 0.5; }

.spec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.spec { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; box-shadow: var(--shadow-sm); }
.spec b { font-size: 12.5px; color: var(--muted); font-weight: 600; display: block; text-transform: uppercase; letter-spacing: 0.6px; }
.spec p { font-size: 16px; margin-top: 6px; font-weight: 600; color: var(--ink); }

.prose { max-width: 72ch; }
.prose h2 { font-size: 26px; letter-spacing: -0.5px; margin: 38px 0 14px; color: var(--ink); }
.prose h3 { font-size: 19px; margin: 26px 0 10px; color: var(--ink); }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose ul { color: var(--muted); margin: 0 0 16px 20px; display: grid; gap: 8px; }
.prose strong { color: var(--ink); }

.callout { background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--radius-sm); padding: 20px 22px; margin: 26px 0; }
.callout b { color: var(--accent-2); }

.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: start; }
.sidebar-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; position: sticky; top: 96px; box-shadow: var(--shadow-sm); }
.sidebar-card h4 { font-size: 16px; margin-bottom: 14px; color: var(--ink); }
.sidebar-card .row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.sidebar-card .row:last-of-type { border-bottom: 0; }
.sidebar-card .row span { color: var(--muted); }
.sidebar-card .row b { color: var(--ink); }

/* Anchor offset for sticky header */
.anchor { scroll-margin-top: 96px; }

/* ---------- Table ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.table thead th { background: var(--surface-2); font-size: 12.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.table tbody tr:hover { background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: rgba(3,169,244,0.12); color: var(--accent-2); letter-spacing: 0.5px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(135deg, rgba(3,169,244,0.10), rgba(2,136,209,0.08)); border: 1px solid var(--border); border-radius: 24px; padding: 54px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); letter-spacing: -1px; font-weight: 800; color: var(--ink); }
.cta-band p { color: var(--muted); margin: 14px auto 28px; max-width: 56ch; font-size: 17px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 58px 0 32px; margin-top: 40px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.1fr; gap: 40px; }
.footer-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink); margin-bottom: 16px; }
.footer-grid a { display: block; color: var(--muted); font-size: 14.5px; padding: 5px 0; }
.footer-grid a:hover { color: var(--accent-2); }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 14px 0; max-width: 36ch; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13.5px; }

/* ---------- Figures & galleries ---------- */
.figure {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; box-shadow: var(--shadow-sm); margin: 0;
}
.figure .frame { position: relative; overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.figure .frame img {
  width: 100%; height: 100%; object-fit: cover; cursor: zoom-in;
  transition: transform .5s var(--ease); background: var(--surface-2);
}
.figure:hover .frame img { transform: scale(1.045); }
/* Show product shots in full (no crop) — e.g. equipment rental gallery */
.gallery-contain .frame { background: #fff; }
.gallery-contain .frame img { object-fit: contain; padding: 10px; }
.figure figcaption {
  padding: 11px 14px; font-size: 12.5px; line-height: 1.45; color: var(--muted);
  border-top: 1px solid var(--border);
}
.figure figcaption b { color: var(--ink); font-weight: 600; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
.gallery.cols-2 { grid-template-columns: repeat(2, 1fr); }
.gallery.tall .figure .frame { aspect-ratio: 3 / 4; }
.gallery.wide .figure .frame { aspect-ratio: 16 / 10; }

/* Single framed image (splits, sidebars) */
.media { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.media.ratio { aspect-ratio: 4 / 3; }

/* Page-hero banner image */
.hero-banner { margin-top: 30px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); aspect-ratio: 21 / 8; background: var(--surface-2); }
.hero-banner img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center;
  background: rgba(10, 20, 26, 0.86); backdrop-filter: blur(6px); padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox figure { max-width: 92vw; max-height: 92vh; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.7); background: #0b0f1a; }
.lightbox figcaption { color: #eaf4fb; font-size: 14.5px; text-align: center; max-width: 70ch; }
.lightbox .lb-btn {
  position: absolute; background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25); color: #fff;
  width: 46px; height: 46px; border-radius: 50%; font-size: 22px; cursor: pointer; display: grid; place-items: center;
  transition: background .2s; user-select: none;
}
.lightbox .lb-btn:hover { background: rgba(255,255,255,0.24); }
.lightbox .lb-close { top: 20px; right: 24px; }
.lightbox .lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .gallery.cols-2 { grid-template-columns: 1fr; }
  .hero-banner { aspect-ratio: 16 / 10; }
  .lightbox .lb-prev { left: 8px; } .lightbox .lb-next { right: 8px; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; color: var(--ink); font-family: inherit; font-size: 14.5px; transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(3,169,244,0.15); }
.field textarea { resize: vertical; min-height: 120px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-3, .grid-4, .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .split, .detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .sidebar-card { position: static; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 76px; left: 0; right: 0; flex-direction: column;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 12px; gap: 4px; align-items: stretch;
  }
  .nav-links.open > a, .nav-links.open .dropdown > a { padding: 12px 14px; }
  .dropdown-menu, .dropdown-menu.wide { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 12px; min-width: 0; }
  .dropdown-menu.wide .grid2 { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .spec-grid, .form-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 22px; }
  section { padding: 52px 0; }
}
