/* ============================================
   MR PRINTABLES — Main Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  color: #000;
  background: #fff;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}


/* --- Header --- */
.site-header {
  width: 100%;
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 0;
}

.logo-link {
  display: block;
  margin-bottom: 16px;
}

.logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  height: 35px;
  gap: 0;
}

.nav-link {
  font-family: 'Raleway', sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 35px;
  text-transform: uppercase;
  color: #000;
  padding: 0 20px;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.nav-link:hover {
  color: #0701f0;
}

.header-rule {
  width: 100%;
  height: 1px;
  background: #000;
  margin-top: 12px;
}


/* --- Main --- */
.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 16px;
}


/* --- Footer --- */
.site-footer {
  border-top: 1px solid #000;
  margin-top: 60px;
  padding: 32px 16px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.footer-nav {
  display: flex;
  gap: 24px;
}

.footer-nav a:hover {
  color: #0701f0;
}


/* --- Ad Unit --- */
.ad-unit {
  margin: 32px 0;
  width: 100%;
}


/* --- Category Page --- */
.category-hero {
  text-align: center;
  margin-bottom: 48px;
}

.category-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.category-description {
  font-size: 1rem;
  color: #444;
}

.subcategory-section {
  margin-bottom: 56px;
}

.subcategory-title {
  font-size: 1.25rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.subcategory-featured {
  margin-bottom: 24px;
}

.featured-banner {
  display: block;
  position: relative;
  overflow: hidden;
}

.featured-banner img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.featured-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 1rem;
}

/* Project thumbnail grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.project-thumb {
  display: block;
  text-align: center;
  border: 1px solid #e8e8e8;
  transition: border-color 0.15s ease;
}

.project-thumb:hover {
  border-color: #0701f0;
}

.project-thumb img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.project-thumb-title {
  display: block;
  font-size: 13px;
  padding: 8px;
  color: #222;
}


/* --- Project Page --- */
.project-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.gallery-main img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  border: 1px solid #e8e8e8;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid #e8e8e8;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.gallery-thumb.active,
.gallery-thumb:hover {
  border-color: #0701f0;
}

.project-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.project-title {
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.project-description {
  font-size: 1rem;
  color: #333;
  line-height: 1.7;
}

.download-btn {
  display: inline-block;
  background: #000;
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  text-align: center;
  transition: background 0.15s ease;
  align-self: flex-start;
}

.download-btn:hover {
  background: #0701f0;
}

.editable-btn {
  display: inline-block;
  border: 2px solid #000;
  color: #000;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  padding: 12px 28px;
  text-align: center;
  transition: all 0.15s ease;
  align-self: flex-start;
}

.editable-btn:hover {
  border-color: #0701f0;
  color: #0701f0;
}

.project-detail {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
}

.project-detail h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 32px 0 12px;
}

.project-detail p {
  margin-bottom: 16px;
}

.project-detail img {
  margin: 24px 0;
  width: 100%;
}


/* --- Responsive --- */
@media (max-width: 768px) {
  .site-nav {
    height: auto;
    padding: 8px 0;
  }

  .nav-link {
    font-size: 14px;
    padding: 4px 12px;
    line-height: 28px;
  }

  .project-top {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .category-title {
    font-size: 1.5rem;
  }
}
