/* PrimePrint Packaging CMS - Clean, modern, SEO-friendly CSS */
:root {
  --color-primary: #0f4c81;
  --color-primary-dark: #0a355c;
  --color-accent: #e8a838;
  --color-text: #1a1a1a;
  --color-text-muted: #555;
  --color-bg: #ffffff;
  --color-bg-light: #f7f9fc;
  --color-border: #e2e8f0;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --container: 1140px;
  --radius: 8px;
  --shadow: 0 4px 12px rgba(0,0,0,.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 760px; }
.section { padding: 4rem 0; }
.bg-light { background: var(--color-bg-light); }
.text-center { text-align: center; }

/* Skip link */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--color-primary); color: #fff; padding: .5rem 1rem; z-index: 100;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 70px;
}
.logo { font-size: 1.25rem; color: var(--color-primary); font-weight: 700; }
.logo:hover { text-decoration: none; }

.main-nav ul {
  display: flex; gap: 1.75rem; list-style: none; margin: 0; padding: 0;
  align-items: center;
}
.main-nav a { color: var(--color-text); font-weight: 500; }
.main-nav a[aria-current="page"] { color: var(--color-primary); }
.btn-nav {
  background: var(--color-primary); color: #fff !important;
  padding: .5rem 1.1rem; border-radius: var(--radius); font-weight: 600;
}
.btn-nav:hover { background: var(--color-primary-dark); text-decoration: none; }

.mobile-menu-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: .5rem;
}
.mobile-menu-toggle span {
  display: block; width: 22px; height: 2px; background: #333; margin: 5px 0;
}

/* Buttons */
.btn {
  display: inline-block; padding: .75rem 1.5rem; border-radius: var(--radius);
  font-weight: 600; text-align: center; border: 2px solid transparent;
  transition: .2s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: var(--color-primary-dark); }
.btn-outline { border-color: var(--color-primary); color: var(--color-primary); }
.btn-outline:hover { background: var(--color-primary); color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #0f4c81 0%, #1a6bb5 100%);
  color: #fff; padding: 5rem 0;
}
.hero h1 { font-size: clamp(2rem, 5vw, 2.75rem); margin: 0 0 1rem; line-height: 1.2; }
.hero-subtitle { font-size: 1.2rem; opacity: .95; max-width: 560px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero .btn-primary { background: var(--color-accent); color: #1a1a1a; }
.hero .btn-outline { border-color: #fff; color: #fff; }

/* Section header */
.section-header { margin-bottom: 2.5rem; }
.section-header h2 { font-size: 1.85rem; margin: 0 0 .5rem; }

/* Cards */
.services-grid, .posts-grid, .features-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.service-card, .post-card, .feature {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow);
}
.service-card h3, .post-card h2, .post-card h3 { margin-top: 0; font-size: 1.15rem; }
.link-more { font-weight: 600; font-size: .95rem; }

/* Page hero */
.page-hero {
  background: var(--color-bg-light); padding: 3rem 0; border-bottom: 1px solid var(--color-border);
}
.page-hero h1 { margin: 0 0 .5rem; font-size: 2rem; }

/* Breadcrumb */
.breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1.5rem; gap: .5rem; font-size: .9rem; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: .5rem; color: #999; }
.breadcrumb a { color: var(--color-text-muted); }

/* Content */
.content-body { font-size: 1.05rem; }
.content-body h2 { margin-top: 2rem; }
.lead { font-size: 1.2rem; color: var(--color-text-muted); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 3rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-weight: 500; margin-bottom: .35rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .7rem .9rem; border: 1px solid var(--color-border);
  border-radius: var(--radius); font: inherit;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.alert { padding: 1rem; border-radius: var(--radius); margin-bottom: 1.5rem; }
.alert-success { background: #d1fae5; color: #065f46; }
.alert-error { background: #fee2e2; color: #991b1b; }

/* CTA */
.cta { background: var(--color-primary); color: #fff; }
.cta h2 { margin-top: 0; }
.cta .btn-primary { background: var(--color-accent); color: #1a1a1a; }

/* Footer */
.site-footer { background: #0f172a; color: #cbd5e1; padding: 3.5rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-col h3, .footer-col h4 { color: #fff; margin-top: 0; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col a { color: #94a3b8; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #1e293b; padding-top: 1.5rem; font-size: .9rem; }

/* Pagination */
.pagination { display: flex; gap: 1.5rem; justify-content: center; margin-top: 2.5rem; align-items: center; }

/* Responsive */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-toggle { display: block; }
  .contact-grid, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .hero { padding: 3.5rem 0; }
}
/* Products */
.products-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.product-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.product-card-body { padding: 1.5rem; }
.product-card h2, .product-card h3 { margin-top: 0.35rem; font-size: 1.15rem; }
.product-cat {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.category-filter a {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
}
.category-filter a:hover,
.category-filter a.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  text-decoration: none;
}
.product-specs {
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--color-bg-light);
  border-radius: var(--radius);
}
.specs-text {
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.6;
}
.cta-box {
  margin-top: 2.5rem;
  padding: 1.75rem;
  background: var(--color-bg-light);
  border-radius: var(--radius);
  text-align: center;
}
.cta-box h2 { margin-top: 0; font-size: 1.35rem; }

/* Product thumbnails */
.product-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e2e8f0;
  position: relative;
}
.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, opacity .25s ease;
}
.product-card:hover .product-thumb img {
  transform: scale(1.04);
}
.product-thumb-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f4c81 0%, #1a6bb5 100%);
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
}
.product-thumb-placeholder.large {
  aspect-ratio: 4 / 3;
  min-height: 280px;
  font-size: 4rem;
  border-radius: var(--radius);
}

/* Product detail layout */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
.product-main-image {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.product-main-image img {
  width: 100%;
  height: auto;
  display: block;
}
.product-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .75rem;
}
.product-gallery img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--color-border);
}
.product-detail-info h1 {
  margin: .25rem 0 .75rem;
  font-size: 1.85rem;
}
.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}
.product-detail-content {
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}
.product-detail-content h2 {
  margin-top: 0;
}
@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
}
