/*
Theme Name: Inti Empire Blog
Description: Recognition blog theme for Inti Empire Group, matching the main website design.
Version: 1.0.0
Author: CR Creative Design
Text Domain: inti-empire-blog
*/

:root {
  --charcoal: #26262B;
  --charcoal-deep: #1C1C20;
  --cream: #FAF7F2;
  --yellow: #FFB400;
  --orange: #FF7A00;
  --orange-deep: #E85D04;
  --ink: #2C2C31;
  --muted: #6E6A64;
  --radius: 18px;
  --wrap: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-deep); text-decoration: none; }
a:hover { color: var(--orange); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.blog-header {
  background: var(--charcoal);
  border-bottom: 1px solid rgba(255, 180, 0, .18);
}
.blog-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.blog-logo .custom-logo-link { display: flex; align-items: center; }
.blog-logo .custom-logo { height: 52px; width: auto; }
.blog-logo__text { font-weight: 900; font-size: 24px; letter-spacing: .06em; color: var(--yellow); }
.blog-nav { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.blog-nav a {
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  transition: color .2s ease;
}
.blog-nav a:hover { color: var(--yellow); }
.blog-nav .btn-join {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--charcoal);
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 999px;
}
.blog-nav .btn-join:hover { color: var(--charcoal); filter: brightness(1.06); }

/* ---------- hero band ---------- */
.blog-hero {
  background: radial-gradient(1000px 420px at 70% -10%, rgba(255, 122, 0, .22), transparent 60%), var(--charcoal-deep);
  color: var(--cream);
  padding: 72px 0 64px;
}
.blog-hero .eyebrow {
  display: inline-block;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.blog-hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -.01em;
}
.blog-hero .grad {
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.blog-hero .sub {
  margin-top: 18px;
  max-width: 560px;
  color: rgba(250, 247, 242, .78);
  font-size: 17px;
}

/* ---------- post grid ---------- */
.blog-main { padding: 56px 24px 80px; }
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.post-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(38, 38, 43, .08);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(38, 38, 43, .14); }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #EDE8E0; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; }
.post-card__ph {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  opacity: .25;
}
.post-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card__tag {
  align-self: flex-start;
  background: rgba(255, 180, 0, .16);
  color: var(--orange-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.post-card h2 { font-size: 20px; font-weight: 800; line-height: 1.25; }
.post-card h2 a { color: var(--ink); }
.post-card h2 a:hover { color: var(--orange-deep); }
.post-card p { color: var(--muted); font-size: 15px; flex: 1; }
.post-card__date { color: var(--muted); font-size: 13px; font-weight: 600; }

.no-posts { text-align: center; color: var(--muted); padding: 60px 0; font-size: 17px; }

/* pagination */
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; justify-content: center; gap: 8px; }
.pagination .page-numbers {
  display: inline-block;
  min-width: 42px;
  text-align: center;
  padding: 9px 12px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(38, 38, 43, .08);
}
.pagination .page-numbers.current { background: linear-gradient(135deg, var(--yellow), var(--orange)); color: var(--charcoal); }

/* ---------- single ---------- */
.single-main, .page-main { padding: 56px 24px 80px; }
.article-card {
  max-width: 780px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 10px 30px rgba(38, 38, 43, .08);
}
.article-head { margin-bottom: 28px; }
.article-head .post-card__tag { margin-bottom: 14px; display: inline-block; }
.article-head h1 {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -.01em;
}
.article-meta { margin-top: 12px; color: var(--muted); font-size: 14px; font-weight: 600; }
.article-hero { border-radius: 14px; overflow: hidden; margin-bottom: 32px; }
.article-hero img { width: 100%; }

.entry-content { font-size: 17px; }
.entry-content > * + * { margin-top: 1.1em; }
.entry-content h2 { font-size: 28px; font-weight: 800; margin-top: 1.6em; line-height: 1.2; }
.entry-content h3 { font-size: 22px; font-weight: 800; margin-top: 1.5em; }
.entry-content blockquote {
  border-left: 4px solid var(--orange);
  background: rgba(255, 180, 0, .1);
  padding: 18px 24px;
  border-radius: 0 12px 12px 0;
  font-weight: 600;
  font-style: italic;
}
.entry-content blockquote p { margin: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li + li { margin-top: .4em; }
.entry-content img, .entry-content figure { border-radius: 12px; overflow: hidden; }
.entry-content figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content .wp-block-image img { border-radius: 12px; }

.back-link { max-width: 780px; margin: 28px auto 0; }
.back-link a { font-weight: 700; }

/* ---------- sidebar layout ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 36px;
  align-items: start;
}
.blog-sidebar { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 24px; }
.widget {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: 0 10px 30px rgba(38, 38, 43, .08);
}
.widget h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  margin-bottom: 14px;
}
.widget-list { list-style: none; }
.widget-list li { padding: 8px 0; border-bottom: 1px solid rgba(38, 38, 43, .07); font-size: 15px; color: var(--muted); }
.widget-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.widget-list li:first-child { padding-top: 0; }
.widget-list a { color: var(--ink); font-weight: 600; }
.widget-list a:hover { color: var(--orange-deep); }
.widget-date { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.searchform { display: flex; gap: 8px; }
.searchform input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 2px solid rgba(38, 38, 43, .12);
  border-radius: 12px;
  font: inherit;
  font-size: 15px;
  background: var(--cream);
  color: var(--ink);
}
.searchform input[type="search"]:focus { outline: none; border-color: var(--yellow); background: #fff; }
.searchform button {
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  border-radius: 12px;
  width: 46px;
  flex: 0 0 46px;
  display: grid;
  place-items: center;
  color: var(--charcoal);
  transition: filter .2s ease;
}
.searchform button:hover { filter: brightness(1.06); }

.widget--cta { background: var(--charcoal); color: rgba(250, 247, 242, .85); }
.widget--cta h3 { color: var(--yellow); }
.widget--cta p { font-size: 14.5px; margin-bottom: 16px; }
.widget--cta .btn-join {
  display: inline-block;
  background: linear-gradient(135deg, var(--yellow), var(--orange));
  color: var(--charcoal);
  font-weight: 700;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 999px;
}

.blog-layout .article-card { max-width: none; }
.blog-layout .back-link { max-width: none; }

@media (max-width: 920px) {
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}

/* ---------- footer ---------- */
.blog-footer {
  background: var(--charcoal-deep);
  color: rgba(250, 247, 242, .75);
  text-align: center;
  padding: 56px 24px 40px;
  margin-top: 40px;
}
.blog-footer img.footer-logo { height: 64px; width: auto; margin: 0 auto 18px; }
.blog-footer .tagline { color: var(--cream); font-weight: 600; }
.blog-footer .addr { font-size: 13px; margin-top: 10px; color: rgba(250, 247, 242, .45); }
.blog-footer .copy { font-size: 13px; margin-top: 22px; color: rgba(250, 247, 242, .4); }
.blog-footer a { color: var(--yellow); }

/* ---------- responsive ---------- */
@media (max-width: 640px) {
  .blog-header__bar { height: auto; padding: 14px 0; flex-direction: column; gap: 12px; }
  .blog-hero { padding: 48px 0 44px; }
  .blog-hero h1 { font-size: clamp(28px, 8.5vw, 34px); }
  .blog-hero h1 br { display: none; }
  .blog-main, .single-main, .page-main { padding-top: 36px; }
}
