/* coloringpages.fun -- shared stylesheet for all custom-built pages
   (Home, Halloween category page, and all Halloween design pages) */

/* ===== Reset / base ===== */
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Nunito', system-ui, -apple-system, sans-serif; background:#FFF9F2; color:#2A2438; }
h1, h2, h3, .brand { font-family: 'Fredoka', system-ui, sans-serif; }
a { color: #E8722C; text-decoration: none; }
a:hover { color: #C75A1B; }

/* ===== Layout containers ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 1000px; margin: 0 auto; padding: 0 32px; }

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 28px; border-radius: 999px; font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 16px; cursor: pointer; border: none; white-space: nowrap; }
.btn-secondary { background: transparent; border: 2px solid #E7E1D6; color:#2A2438; }
.btn-outline { background:#fff; border:2px solid #EFE8DA; color:#2A2438; }
.btn-print { display:flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:12px; border-radius:12px; border:none; background:#FF6B4A; color:#fff; font-weight:800; font-size:14px; font-family:'Nunito',sans-serif; cursor:pointer; }
.btn-print:disabled { background:#E7E1D6; color:#8A8394; cursor:not-allowed; }

/* ===== Home: category cards ===== */
.cat-card { background: #fff; border: 1px solid #EFE8DA; border-radius: 20px; padding: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
a.cat-card { text-decoration:none; color:inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.cat-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(40,25,10,0.3); }
.cat-card.disabled { opacity: 0.55; cursor: default; }
.cat-icon-img { width: 168px; height: auto; border-radius: 16px; }
.badge-soon { font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform:uppercase; background:#F5F0E6; color:#8A8394; padding:3px 9px; border-radius:999px; }

/* ===== Home: value props ===== */
.val-tile { display: flex; flex-direction: column; gap: 14px; }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ===== Home: footer ===== */
.foot-col h4 { font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: #8A8394; margin: 0 0 16px; font-weight: 800; }
.foot-col a { display: block; color: #4A4456; font-size: 15px; font-weight: 600; margin-bottom: 12px; }
.foot-col a:hover { color: #E8722C; }
.social-btn { width: 40px; height: 40px; border-radius: 999px; background: #F5F0E6; display: flex; align-items: center; justify-content: center; color: #4A4456; }

/* ===== Halloween category (listing) page ===== */
.page-card { background:#fff; border:1px solid #EFE8DA; border-radius:20px; padding:20px; display:flex; flex-direction:column; gap:14px; }
.thumb-wrap { position:relative; flex:1; border-radius:12px; overflow:hidden; }
.thumb-wrap img { width:100%; height:100%; object-fit:cover; display:block; }
.tag { position:absolute; bottom:8px; left:8px; font-size:10px; font-weight:800; letter-spacing:0.03em; text-transform:uppercase; padding:4px 8px; border-radius:999px; color:#fff; }
.card-title-link { color:#2A2438; }
.card-title-link:hover { color:#E8722C; }

/* ===== Design pages: compare frames ===== */
.frame { border-radius:20px; overflow:hidden; border:1px solid #EFE8DA; background:#fff; }
.frame img { width:100%; display:block; }
.label { font-size:12px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; color:#8A8394; margin-bottom:10px; }

/* ===== Design pages: print handling ===== */
#printable-bw, #printable-color { display:none; }
@media print {
  .no-print { display:none !important; }
  body { background:#fff; margin:0; }
  #printable-bw, #printable-color { display:none !important; }
  #printable-bw img, #printable-color img { width:100%; }
  body[data-print="bw"] #printable-bw { display:block !important; }
  body[data-print="color"] #printable-color { display:block !important; }
}

/* ===== Responsive (scoped per page type so rules don't cross-apply) ===== */
@media (max-width: 900px) {
  #home-page .nav-links a { display: none !important; }
  #home-page .cat-grid { grid-template-columns: repeat(2,1fr) !important; }
  #home-page .val-grid { grid-template-columns: repeat(2,1fr) !important; }
  #home-page .foot-grid { grid-template-columns: 1fr 1fr !important; }
  #home-page h1 { font-size: 38px !important; }
}
@media (max-width: 860px) {
  #category-page .cards-grid { grid-template-columns: repeat(2,1fr) !important; }
  #category-page h1 { font-size: 34px !important; }
}
@media (max-width: 760px) {
  #design-page .compare-grid { grid-template-columns: 1fr !important; }
  #design-page .related-grid { grid-template-columns: 1fr !important; }
}

/* ===== WordPress theme-conflict fixes for the "Blank Canvas" template ===== */
body.page-template-blank-canvas main.wp-block-group { padding-top: 0 !important; margin-top: 0 !important; }
body.page-template-blank-canvas .entry-content > .alignfull { margin-top: 0 !important; }
