/* Dynamic Imaging Solutions — modern shared styles */

:root {
  --red: #C8102E;
  --red-dark: #9B0C23;
  --ink: #0F1419;
  --ink-2: #3B434C;
  --ink-3: #6B7480;
  --line: #E5E7EB;
  --line-soft: #F1F3F6;
  --cream: #FAFAF7;
  --white: #FFFFFF;
  --library: #1E3A8A;
  --border: #0F766E;
  --industrial: #B45309;
  --navy: #1B2A3E;
  --ink-4: #9AA3AE;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--red); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--red-dark); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* Header */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--red); display: grid; place-items: center; color: var(--white); font-weight: 800; font-size: 14px; letter-spacing: 0; flex-shrink: 0; }
.brand-name { line-height: 1.6; }
.brand-name small { display: block; font-weight: 500; font-size: 11px; color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase; }
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { color: var(--ink-2); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--red); }
.nav-links a.active { color: var(--red); }
.nav-cta { background: var(--ink); color: var(--white) !important; padding: 10px 18px; border-radius: 8px; font-weight: 600; }
.nav-cta:hover { background: var(--red); color: var(--white) !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 6px; flex-shrink: 0; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: background 0.2s; }
.nav-toggle:hover span { background: var(--red); }
@media (max-width: 768px) {
  .nav { flex-wrap: wrap; position: relative; }
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: 8px 0 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; font-size: 16px; width: 100%; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-cta { background: none; color: var(--ink) !important; padding: 10px 0; border-radius: 0; }
  .nav-cta:hover { background: none; color: var(--red) !important; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 10px; font-weight: 600; font-size: 15px; transition: transform .15s ease, box-shadow .15s ease; border: none; cursor: pointer; }
.btn-primary { background: var(--red); color: var(--white) !important; }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(200,16,46,.2); }
.btn-secondary { background: var(--white); color: var(--ink) !important; border: 1px solid var(--line); }
.btn-secondary:hover { border-color: var(--ink); transform: translateY(-1px); }
.btn-sm { padding: 10px 16px; font-size: 14px; }

/* Page header area (for inner pages) */
.page-hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse at 90% 10%, rgba(200,16,46,.13), transparent 50%),
    radial-gradient(ellipse at 0% 90%, rgba(27,42,62,.07), transparent 50%),
    linear-gradient(160deg, #F3F2ED 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--line);
}
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--red); }
.crumbs .sep { color: var(--line); }
.page-eyebrow { font-size: 13px; font-weight: 600; color: var(--red); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; }
.page-title { font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 800; margin-bottom: 16px; }
.page-lede { font-size: 19px; color: var(--ink-2); max-width: 68ch; line-height: 1.55; }

/* Generic content body */
.content { padding: 64px 0 96px; }
.prose { max-width: 720px; margin: 0 auto; font-size: 16px; color: var(--ink-2); }
.prose h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 40px 0 12px; }
.prose h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 24px 0 8px; }
.prose h4 { font-size: 16px; font-weight: 700; color: var(--ink); margin: 20px 0 6px; }
.prose p { margin-bottom: 14px; }
.prose ul, .prose ol { margin: 6px 0 16px 24px; }
.prose li { margin-bottom: 5px; }
.prose li ul, .prose li ol { margin-top: 8px; }
.prose strong, .prose b { color: var(--ink); font-weight: 700; }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--red-dark); }
.prose img { margin: 24px 0; border-radius: 12px; border: 1px solid var(--line); }
.prose table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; }
.prose table td, .prose table th { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose table th { font-weight: 600; background: var(--line-soft); }
.prose blockquote { border-left: 3px solid var(--red); padding-left: 16px; margin: 24px 0; color: var(--ink-2); font-style: italic; }

/* Product detail layout */
.product-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; margin-bottom: 48px; }
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; gap: 32px; } }
.product-hero-image { background: var(--cream); border: 1px solid var(--line); border-radius: 16px; padding: 32px; display: grid; place-items: center; min-height: 320px; transition: border-color .15s ease, transform .15s ease; }
a.product-hero-image:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.product-hero-image img { max-width: 100%; max-height: 360px; }
.product-intro { font-size: 17px; color: var(--ink-2); }
.product-intro h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 32px 0 10px; letter-spacing: -0.01em; }
.product-intro ul { margin: 0 0 0 20px; }
.product-intro li { margin-bottom: 8px; }

/* Product item grid (for SKUs within a product page) */
.sku-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 760px) { .sku-grid { grid-template-columns: 1fr; } }
.sku-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--white); display: grid; grid-template-columns: 160px 1fr; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; box-shadow: 0 2px 10px rgba(15,20,25,0.06); }
.sku-card:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -12px rgba(15,20,25,0.12); border-color: var(--ink-3); }
.sku-card-image { background: var(--cream); display: grid; place-items: center; padding: 16px; border-right: 1px solid var(--line); }
.sku-card-image img { max-width: 100%; max-height: 140px; }
.sku-card-body { padding: 20px; font-size: 14px; color: var(--ink-2); }
.sku-card-body .sku-id { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 6px; }
.sku-card-body ul { margin: 8px 0 0 18px; font-size: 13px; }
.sku-card-body li { margin-bottom: 4px; }
@media (max-width: 520px) { .sku-card { grid-template-columns: 1fr; } .sku-card-image { border-right: none; border-bottom: 1px solid var(--line); } }

/* Index/hub cards */
.hub-section { padding: 64px 0 96px; }
.hub-section h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.025em; margin-bottom: 8px; }
.hub-section .section-note { color: var(--ink-3); font-size: 15px; margin-bottom: 32px; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  border-radius: 14px; padding: 24px; text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 12px rgba(15,20,25,0.07), 0 1px 3px rgba(15,20,25,0.04);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--ink-3); border-top-color: var(--red-dark); box-shadow: 0 16px 40px -8px rgba(15,20,25,0.18), 0 4px 12px rgba(15,20,25,0.07); }
.card-image { background: var(--cream); border-radius: 10px; aspect-ratio: 4/3; display: grid; place-items: center; margin-bottom: 16px; overflow: hidden; }
.card-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.card h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 4px; }
.card p { font-size: 14px; color: var(--ink-3); }

/* Sibling product grid (on product detail pages) */
.sibling-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .sibling-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .sibling-grid { grid-template-columns: repeat(2, 1fr); } }
.sibling-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.sibling-card:hover { transform: translateY(-3px); border-color: var(--ink-3); box-shadow: 0 12px 28px -10px rgba(15,20,25,0.12); }
.sibling-card-image { background: var(--cream); aspect-ratio: 4/3; display: grid; place-items: center; padding: 12px; }
.sibling-card-image img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sibling-card-image-empty { background: linear-gradient(135deg, var(--cream), var(--line-soft)); }
.sibling-card-title { padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.sibling-card:hover .sibling-card-title { color: var(--red); }

/* List grid (compact text-only product lists) */
.list-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 4px 24px -4px rgba(15,20,25,0.09); }
@media (max-width: 720px) { .list-grid { grid-template-columns: 1fr; } }
.list-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 22px; background: var(--white);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  text-decoration: none; color: var(--ink);
  transition: background .12s ease, color .12s ease;
  font-size: 15px;
}
.list-item:nth-child(2n) { border-right: none; }
@media (max-width: 720px) {
  .list-item { border-right: none; }
}
.list-item:hover { background: var(--cream); color: var(--red); }
.list-item strong { font-weight: 600; flex: 1; }
.list-item .list-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3);
  padding: 4px 8px; background: var(--line-soft); border-radius: 6px;
  white-space: nowrap;
}
.list-item .arrow { color: var(--ink-3); font-size: 14px; transition: transform .15s ease; }
.list-item:hover .arrow { transform: translateX(4px); color: var(--red); }

/* Callout (CTA block inside content) */
.callout {
  margin: 48px 0;
  padding: 32px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 50%, #1F2937 100%);
  color: var(--white);
  box-shadow: 0 8px 32px -8px rgba(15,20,25,0.25);
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.callout-body { flex: 1; min-width: 280px; }
.callout h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; color: var(--white); }
.callout p { color: rgba(255,255,255,.8); font-size: 15px; margin: 0; }
.callout .btn-primary { background: var(--red); }
.callout .btn-primary:hover { background: var(--red-dark); }

/* Related brands ribbon */
.ribbon { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; }
.ribbon-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 768px) { .ribbon-grid { grid-template-columns: 1fr; } }
.ribbon-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.ribbon-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ribbon-card[data-accent="library"] { --accent: var(--library); }
.ribbon-card[data-accent="border"] { --accent: var(--border); }
.ribbon-card[data-accent="industrial"] { --accent: var(--industrial); }
.ribbon-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
.ribbon-card strong { display: block; font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.ribbon-card span { color: var(--ink-3); font-size: 13px; }

/* Footer */
footer.site { padding: 48px 0 32px; background: var(--cream); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.footer-brand p { color: var(--ink-3); font-size: 14px; max-width: 300px; margin-top: 16px; }
.footer-col h5 { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--ink-2); font-size: 14px; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink-3); flex-wrap: wrap; gap: 8px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .footer-grid > *:nth-child(1),
  .footer-grid > *:nth-child(2) { grid-column: 1 / -1; }
}
