/* ============================================================
   WPG Blog Template — blog-style.css
   All classes prefixed with wpg- to avoid theme conflicts.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --wpg-gold:       #B8973D;
  --wpg-gold-h:     #9E7E2E;
  --wpg-gold-pale:  #F5EDD6;
  --wpg-gold-tint:  #FAF6EE;
  --wpg-dark:       #111111;
  --wpg-charcoal:   #222222;
  --wpg-body:       #3C3C3C;
  --wpg-muted:      #767676;
  --wpg-border:     #E3DBCA;
  --wpg-cream:      #F8F5F0;
  --wpg-white:      #FFFFFF;
  --wpg-ff-h:       'Playfair Display', Georgia, serif;
  --wpg-ff-b:       'DM Sans', Helvetica, sans-serif;
  --wpg-max:        1180px;
  --wpg-gut:        clamp(20px, 5vw, 72px);
}

body.wpg-single-post {
  font-family: var(--wpg-ff-b);
  color: var(--wpg-body);
  background: var(--wpg-white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.wpg-single-post a { text-decoration: none; color: inherit; }
body.wpg-single-post img { display: block; max-width: 100%; }

.wpg-wrap {
  max-width: var(--wpg-max);
  margin: 0 auto;
  padding: 0 var(--wpg-gut);
}

/* ── NAV ──────────────────────────────────────────────────────────────────── */
.wpg-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--wpg-border);
  transition: box-shadow .3s;
}
.wpg-nav.wpg-scrolled { box-shadow: 0 2px 24px rgba(0, 0, 0, .08); }

.wpg-nav-in {
  display: flex;
  align-items: center;
  height: 70px;
}

.wpg-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  margin-right: 32px;
}
.wpg-logo-txt strong {
  font-family: var(--wpg-ff-h);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--wpg-dark);
  display: block;
  line-height: 1.2;
}
.wpg-logo-txt span {
  font-size: 7.5px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--wpg-gold);
  margin-top: 3px;
  display: block;
}

.wpg-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  flex: 1;
}
.wpg-nav-links a {
  font-size: 13px;
  color: var(--wpg-muted);
  font-weight: 400;
  transition: color .2s;
  white-space: nowrap;
}
.wpg-nav-links a:hover,
.wpg-nav-links .current-menu-item > a { color: var(--wpg-dark); font-weight: 600; }

.wpg-nav-ctas {
  display: flex;
  gap: 10px;
  margin-left: 20px;
  flex-shrink: 0;
}
.wpg-nb-l {
  display: inline-flex;
  align-items: center;
  padding: 8px 17px;
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid #C8C8C8;
  color: var(--wpg-charcoal);
  border-radius: 3px;
  background: transparent;
  font-family: var(--wpg-ff-b);
  cursor: pointer;
  transition: border-color .2s;
}
.wpg-nb-l:hover { border-color: var(--wpg-dark); }
.wpg-nb-b {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  font-size: 12px;
  font-weight: 600;
  background: var(--wpg-gold);
  color: var(--wpg-white);
  border: none;
  border-radius: 3px;
  font-family: var(--wpg-ff-b);
  cursor: pointer;
  transition: background .2s;
}
.wpg-nb-b:hover { background: var(--wpg-gold-h); }

/* ── BLOG HERO ───────────────────────────────────────────────────────────── */
.wpg-blog-hero {
  padding-top: 70px;
  background: var(--wpg-dark);
  position: relative;
  overflow: hidden;
}
.wpg-blog-hero::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 550px; height: 550px;
  border: 1px solid rgba(184, 151, 61, .09);
  border-radius: 50%;
  pointer-events: none;
}

.wpg-bh-inner { padding: clamp(56px, 7vw, 96px) 0 0; }

.wpg-bh-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.wpg-bh-cat {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--wpg-gold);
  background: rgba(184, 151, 61, .12);
  border: 1px solid rgba(184, 151, 61, .25);
  padding: 5px 12px;
  border-radius: 2px;
}
.wpg-bh-date,
.wpg-bh-read { font-size: 12px; color: rgba(255, 255, 255, .35); letter-spacing: .5px; }
.wpg-bh-dot  { width: 3px; height: 3px; background: rgba(255, 255, 255, .2); border-radius: 50%; }

.wpg-bh-inner h1 {
  font-family: var(--wpg-ff-h);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  color: var(--wpg-white);
  line-height: 1.16;
  letter-spacing: -.3px;
  max-width: 780px;
  margin-bottom: 20px;
}
.wpg-bh-deck {
  font-size: clamp(15px, 1.8vw, 18px);
  color: rgba(255, 255, 255, .6);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 48px;
}
.wpg-bh-rule {
  height: 3px;
  background: linear-gradient(90deg, var(--wpg-gold) 0%, transparent 100%);
}

/* ── BLOG BODY LAYOUT ────────────────────────────────────────────────────── */
.wpg-blog-body { padding: clamp(56px, 7vw, 96px) 0; }

.wpg-blog-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 64px;
  align-items: start;
}

/* ── AUTHOR BAR ──────────────────────────────────────────────────────────── */
.wpg-author-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--wpg-border);
  border-bottom: 1px solid var(--wpg-border);
  margin-bottom: 48px;
}
.wpg-author-ava {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--wpg-gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.wpg-author-info strong { font-size: 14px; font-weight: 600; color: var(--wpg-dark); display: block; }
.wpg-author-info span   { font-size: 12px; color: var(--wpg-muted); }

/* ── ARTICLE TYPOGRAPHY ──────────────────────────────────────────────────── */
.wpg-article h2 {
  font-family: var(--wpg-ff-h);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 500;
  color: var(--wpg-dark);
  margin: 48px 0 16px;
  line-height: 1.25;
}
.wpg-article h2:first-child { margin-top: 0; }

.wpg-article h3 {
  font-family: var(--wpg-ff-h);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  color: var(--wpg-dark);
  margin: 36px 0 12px;
  line-height: 1.3;
}

.wpg-article p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--wpg-body);
  margin-bottom: 20px;
}
.wpg-article p:last-child { margin-bottom: 0; }

/* Gutenberg block wrappers */
.wpg-article .wp-block-paragraph { font-size: 16px; line-height: 1.85; color: var(--wpg-body); margin-bottom: 20px; }
.wpg-article .wp-block-heading   { font-family: var(--wpg-ff-h); color: var(--wpg-dark); }

.wpg-article ul,
.wpg-article ol {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wpg-article ul li,
.wpg-article ol li {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--wpg-body);
  padding-left: 22px;
  position: relative;
}
.wpg-article ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--wpg-gold);
}
.wpg-article ol { counter-reset: wpg-ol; }
.wpg-article ol li::before {
  counter-increment: wpg-ol;
  content: counter(wpg-ol) '.';
  position: absolute;
  left: 0; top: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--wpg-gold);
}

/* Gutenberg list block */
.wpg-article .wp-block-list { list-style: none; padding-left: 0; }
.wpg-article .wp-block-list li { padding-left: 22px; position: relative; }
.wpg-article .wp-block-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--wpg-gold);
}

.wpg-article strong { color: var(--wpg-dark); font-weight: 600; }

/* ── CALLOUT BOX ─────────────────────────────────────────────────────────── */
.wpg-callout {
  background: var(--wpg-gold-tint);
  border-left: 3px solid var(--wpg-gold);
  border-radius: 0 4px 4px 0;
  padding: 24px 28px;
  margin: 32px 0;
}
.wpg-callout p { font-size: 15px; line-height: 1.75; color: var(--wpg-body); margin: 0; }

/* ── WARNING BOX ─────────────────────────────────────────────────────────── */
.wpg-warning-box {
  background: #fff8f8;
  border: 1px solid #e8c4c4;
  border-left: 3px solid #c0392b;
  border-radius: 0 4px 4px 0;
  padding: 24px 28px;
  margin: 32px 0;
}
.wpg-warn-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #c0392b;
  margin-bottom: 10px;
}
.wpg-warning-box p { font-size: 15px; line-height: 1.75; color: var(--wpg-body); margin: 0; }

/* ── TAKEAWAY GRID ───────────────────────────────────────────────────────── */
.wpg-takeaway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--wpg-border);
  border: 1px solid var(--wpg-border);
  border-radius: 4px;
  overflow: hidden;
  margin: 32px 0;
}
.wpg-tg-item  { background: var(--wpg-white); padding: 28px 24px; }
.wpg-tg-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--wpg-gold);
  margin-bottom: 8px;
}
.wpg-tg-text  { font-size: 14px; line-height: 1.65; color: var(--wpg-body); }

/* ── CASE STUDY CARD ─────────────────────────────────────────────────────── */
.wpg-case-study {
  background: var(--wpg-dark);
  border-radius: 4px;
  overflow: hidden;
  margin: 48px 0;
  border-left: 3px solid var(--wpg-gold);
}
.wpg-cs-header {
  padding: 28px 36px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.wpg-cs-eyebrow {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--wpg-gold);
  margin-bottom: 8px;
}
.wpg-cs-header h3 {
  font-family: var(--wpg-ff-h);
  font-size: 22px;
  font-weight: 500;
  color: var(--wpg-white);
  line-height: 1.2;
}
.wpg-cs-body   { padding: 28px 36px 36px; display: flex; flex-direction: column; gap: 20px; }
.wpg-cs-intro  { font-size: 15px; color: rgba(255, 255, 255, .6); line-height: 1.75; }
.wpg-cs-steps  { display: flex; flex-direction: column; gap: 12px; }
.wpg-cs-step   { display: flex; align-items: flex-start; gap: 14px; }
.wpg-cs-num    {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(184, 151, 61, .2);
  border: 1px solid rgba(184, 151, 61, .35);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: var(--wpg-gold);
  flex-shrink: 0; margin-top: 1px;
}
.wpg-cs-step-txt { font-size: 14px; color: rgba(255, 255, 255, .65); line-height: 1.65; }
.wpg-cs-result {
  background: rgba(184, 151, 61, .08);
  border: 1px solid rgba(184, 151, 61, .2);
  border-radius: 3px;
  padding: 20px 24px;
}
.wpg-cs-result-label {
  font-size: 9px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--wpg-gold); margin-bottom: 6px;
}
.wpg-cs-result p { font-size: 14px; color: rgba(255, 255, 255, .75); line-height: 1.65; margin: 0; }

/* ── INLINE CTA ──────────────────────────────────────────────────────────── */
.wpg-inline-cta {
  background: var(--wpg-cream);
  border: 1px solid var(--wpg-border);
  border-radius: 4px;
  padding: 36px;
  margin: 48px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.wpg-inline-cta-txt strong {
  display: block;
  font-family: var(--wpg-ff-h);
  font-size: 19px;
  font-weight: 500;
  color: var(--wpg-dark);
  margin-bottom: 6px;
}
.wpg-inline-cta-txt p { font-size: 14px; color: var(--wpg-muted); margin: 0; }
.wpg-inline-cta-btns  { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ── BUTTONS ─────────────────────────────────────────────────────────────── */
.wpg-btn-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--wpg-gold);
  color: var(--wpg-white);
  font-family: var(--wpg-ff-b);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.wpg-btn-g:hover { background: var(--wpg-gold-h); transform: translateY(-1px); color: var(--wpg-white); }

.wpg-btn-od {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--wpg-dark);
  font-family: var(--wpg-ff-b);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 13px 26px;
  border-radius: 3px;
  border: 1.5px solid var(--wpg-dark);
  cursor: pointer;
  transition: all .2s;
}
.wpg-btn-od:hover { background: var(--wpg-dark); color: var(--wpg-white); }

/* ── DISCLAIMER ──────────────────────────────────────────────────────────── */
.wpg-disclaimer {
  background: var(--wpg-cream);
  border: 1px solid var(--wpg-border);
  border-radius: 3px;
  padding: 18px 22px;
  margin-top: 40px;
}
.wpg-disclaimer p {
  font-size: 12px;
  color: var(--wpg-muted);
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

/* ── SIDEBAR ─────────────────────────────────────────────────────────────── */
.wpg-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.wpg-sidebar-card {
  background: var(--wpg-cream);
  border: 1px solid var(--wpg-border);
  border-radius: 4px;
  padding: 28px;
}
.wpg-sidebar-card h4 {
  font-family: var(--wpg-ff-h);
  font-size: 17px;
  font-weight: 500;
  color: var(--wpg-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
.wpg-sidebar-card p {
  font-size: 13.5px;
  color: var(--wpg-muted);
  line-height: 1.7;
  margin-bottom: 18px;
}
.wpg-sidebar-card .wpg-btn-g { width: 100%; font-size: 12px; padding: 12px 20px; }

.wpg-sidebar-dark             { background: var(--wpg-dark); border: none; }
.wpg-sidebar-dark h4          { color: var(--wpg-white); }
.wpg-sidebar-dark p           { color: rgba(255, 255, 255, .5); }

/* Related articles */
.wpg-related-list { display: flex; flex-direction: column; gap: 14px; }
.wpg-related-item {
  display: flex;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--wpg-border);
}
.wpg-related-item:last-child { border-bottom: none; padding-bottom: 0; }
.wpg-related-ico {
  width: 44px; height: 44px;
  border-radius: 3px;
  background: var(--wpg-gold-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.wpg-related-txt a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--wpg-dark);
  line-height: 1.4;
  display: block;
  transition: color .2s;
}
.wpg-related-txt a:hover { color: var(--wpg-gold); }
.wpg-related-txt span { font-size: 11px; color: var(--wpg-muted); }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.wpg-footer {
  background: #0C0C0C;
  padding: 56px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, .04);
}
.wpg-foot-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  margin-bottom: 28px;
}
.wpg-foot-brand strong {
  font-family: var(--wpg-ff-h);
  font-size: 15px;
  font-weight: 600;
  color: var(--wpg-white);
  display: block;
  margin-bottom: 4px;
}
.wpg-foot-brand span {
  font-size: 8.5px;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: var(--wpg-gold);
  display: block;
  margin-bottom: 16px;
}
.wpg-foot-brand p { font-size: 12.5px; color: rgba(255, 255, 255, .3); line-height: 1.7; max-width: 250px; }
.wpg-foot-col h4 {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .35);
  margin-bottom: 16px;
}
.wpg-foot-col ul   { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.wpg-foot-col ul a { font-size: 12.5px; color: rgba(255, 255, 255, .4); transition: color .2s; }
.wpg-foot-col ul a:hover { color: var(--wpg-gold); }

.wpg-foot-bot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.wpg-foot-copy { font-size: 11.5px; color: rgba(255, 255, 255, .18); }
.wpg-foot-leg  { display: flex; gap: 18px; }
.wpg-foot-leg a { font-size: 11.5px; color: rgba(255, 255, 255, .18); transition: color .2s; }
.wpg-foot-leg a:hover { color: rgba(255, 255, 255, .45); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .wpg-blog-layout        { grid-template-columns: 1fr; }
  .wpg-sidebar            { position: static; }
  .wpg-takeaway-grid      { grid-template-columns: 1fr; }
  .wpg-inline-cta         { flex-direction: column; align-items: flex-start; }
  .wpg-foot-top           { grid-template-columns: 1fr 1fr; gap: 28px; }
  .wpg-nav-links          { display: none; }
}

@media (max-width: 480px) {
  .wpg-foot-top { grid-template-columns: 1fr; }
  .wpg-nav-ctas .wpg-nb-l { display: none; }
}
