*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-primary: #1a3a5c;
  --color-primary-dark: #0f2440;
  --color-accent: #c45a2d;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-alt: #f5f7f9;
  --color-border: #e0e4e8;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --max-width: 1100px;
  --header-height: 72px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-primary);
}

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

/* ── Header / Nav ───────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-primary-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 32px;
  width: auto;
}

nav {
  display: flex;
  gap: 0.25rem;
}

nav a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.5rem 0.85rem;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}

nav a:hover,
nav a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* ── Hero ───────────────────────────────────────── */

.hero {
  position: relative;
  /* background: var(--color-primary-dark); */
  background-color: #000;
  color: #fff;
  padding: 4rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.5;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 650px;
  margin: 0 auto 2rem;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero .btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--color-accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
}

.hero .btn:hover {
  background: #d4673a;
  transform: translateY(-1px);
  color: #fff;
}

/* ── Page Header (inner pages) ──────────────────── */

.page-header {
  position: relative;
  /* background: var(--color-primary-dark); */
  background-color: #000;
  color: #fff;
  padding: 4rem 1.5rem;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: left;
  background-repeat: no-repeat;
  opacity: 0.50;
}

.page-header h1 {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ── Product Gallery ────────────────────────────── */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: #000;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0.85;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 1;
}

.gallery-item figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Content ────────────────────────────────────── */

.content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 2.5rem 0 1rem;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.content p {
  margin-bottom: 1rem;
  color: var(--color-text-light);
}

.content ul,
.content ol {
  margin: 0 0 1.5rem 1.5rem;
  color: var(--color-text-light);
}

.content li {
  margin-bottom: 0.5rem;
}

.content li ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ── Cards grid ─────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.75rem;
}

.card h3 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.card p {
  font-size: 0.95rem;
  margin: 0;
}

/* ── Highlights strip ───────────────────────────── */

.highlights {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 2rem 1.5rem;
}

.highlights-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.highlight-item strong {
  display: block;
  font-size: 1.75rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.highlight-item span {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

/* ── Metal category list ────────────────────────── */

.metal-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.metal-list > li {
  margin-bottom: 1.25rem;
}

.metal-list > li > strong {
  display: block;
  font-size: 1rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.metal-list > li > ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-bottom: 0;
}

/* ── Spec table ─────────────────────────────────── */

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.spec-item {
  background: var(--color-bg-alt);
  border-left: 4px solid var(--color-accent);
  padding: 1.25rem 1.5rem;
  border-radius: 0 6px 6px 0;
}

.spec-item dt {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.spec-item dd {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* ── Tooling comparison ─────────────────────────── */

.tooling-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.tooling-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.75rem;
}

.tooling-card h3 {
  color: var(--color-primary);
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.tooling-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tooling-card li {
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.tooling-card li:last-child {
  border-bottom: none;
}

/* ── Pattern method cards ───────────────────────── */

.pattern-card {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.pattern-card h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin: 0 0 0.5rem;
}

.pattern-card p {
  margin: 0;
  font-size: 0.95rem;
}

/* ── Quote checklist ────────────────────────────── */

.quote-steps {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.quote-steps > li {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.quote-steps > li:last-child {
  border-bottom: none;
}

.quote-steps > li::before {
  content: counter(step);
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 0.1rem;
}

.quote-steps > li > div > p {
  margin: 0;
}

/* ── Contact info ───────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.contact-block {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 2rem;
}

.contact-block h3 {
  color: var(--color-primary);
  margin: 0 0 1rem;
}

.contact-block p {
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-block a {
  font-weight: 500;
}

/* ── Footer ─────────────────────────────────────── */

.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 1.5rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-inner nav {
  gap: 0.5rem;
}

.footer-inner nav a {
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
}

.footer-copy {
  font-size: 0.8rem;
}

/* ── Responsive ─────────────────────────────────── */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-primary-dark);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  nav.open {
    display: flex;
  }

  nav a {
    padding: 0.75rem 1rem;
  }

  .hero {
    padding: 3rem 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-inner nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}
