/* ═══════════════════════════════════════════════
   THE CONSCIOUS BODYBUILDER — main.css
   Global theme styles shared across all templates
═══════════════════════════════════════════════ */

/* ── CUSTOM PROPERTIES ── */
:root {
  --tcb-gold:      #b8975a;
  --tcb-gold-lt:   #d4b47a;
  --tcb-gold-dk:   #8f7040;
  --tcb-black:     #0a0a0a;
  --tcb-dark:      #111111;
  --tcb-dark2:     #181818;
  --tcb-smoke:     #f4f3ef;
  --tcb-white:     #ffffff;
  --tcb-muted:     #5c5c5c;
  --tcb-text:      #1e1e1e;
  --tcb-border:    rgba(184,151,90,0.22);
  --tcb-border-lt: rgba(255,255,255,0.08);
  --tcb-nav-h:     72px;
  --tcb-radius:    0px; /* intentionally square — editorial aesthetic */
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── BODY ── */
body {
  font-family: 'Barlow', Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: var(--tcb-text);
  background: var(--tcb-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SCREEN-READER ONLY ── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ═══════════════════════════════════════════════
   LAYOUT HELPERS
═══════════════════════════════════════════════ */
.tcb-wrap { max-width: 1120px; margin: 0 auto; padding: 0 48px; }
.tcb-post-wrap  { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.tcb-post-wrap--wide { max-width: 1120px; margin: 0 auto; padding: 0 48px; }

.tcb-sec       { padding: 100px 0; }
.tcb-sec--sm   { padding: 72px 0; }
.tcb-bg-white  { background: var(--tcb-white); }
.tcb-bg-black  { background: var(--tcb-black); }
.tcb-bg-dark   { background: var(--tcb-dark); }
.tcb-bg-dark2  { background: var(--tcb-dark2); }
.tcb-bg-smoke  { background: var(--tcb-smoke); }

/* ── TWO COL GRID ── */
.tcb-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.tcb-two-col--img-first { }
@media(max-width:900px) { .tcb-two-col { grid-template-columns: 1fr; gap: 48px; } }

/* ═══════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════ */
.tcb-h2 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(36px, 5.5vw, 64px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin-bottom: 28px;
}
.tcb-h3 {
  font-family: 'Barlow Condensed', Impact, sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.tcb-lbl {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--tcb-gold);
  margin-bottom: 16px;
}
.tcb-lbl--faint { color: rgba(255,255,255,0.3); }

.tcb-gold  { color: var(--tcb-gold); }
.tcb-white { color: var(--tcb-white); }
.tcb-red   { color: #c0392b; }
.tcb-muted { color: var(--tcb-muted); }

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.tcb-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 36px;
  transition: background 0.25s, transform 0.2s, color 0.2s, border-color 0.2s;
  text-decoration: none !important;
}
.tcb-btn--lg  { padding: 20px 48px; font-size: 13px; }
.tcb-btn--sm  { padding: 10px 22px; font-size: 11px; }
.tcb-btn--gold   { background: var(--tcb-gold); color: var(--tcb-black); border: 2px solid var(--tcb-gold); }
.tcb-btn--gold:hover { background: var(--tcb-gold-lt); border-color: var(--tcb-gold-lt); transform: translateX(3px); color: var(--tcb-black); }
.tcb-btn--black  { background: var(--tcb-black); color: var(--tcb-white); border: 2px solid rgba(255,255,255,0.15); }
.tcb-btn--black:hover { background: #1c1c1c; transform: translateX(3px); color: var(--tcb-white); }
.tcb-btn--outline { background: transparent; color: var(--tcb-gold); border: 1px solid var(--tcb-gold); padding: 15px 35px; }
.tcb-btn--outline:hover { background: var(--tcb-gold); color: var(--tcb-black); }
.tcb-btn-arrow { line-height: 1; }

/* ═══════════════════════════════════════════════
   NAVIGATION
═══════════════════════════════════════════════ */
.tcb-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: rgba(10,10,10,0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--tcb-border);
  height: var(--tcb-nav-h);
}
.tcb-nav__wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.tcb-nav__logo img { height: 50px; width: auto; }
.tcb-nav__logo-text {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tcb-white);
}
.tcb-nav__logo-text span { color: var(--tcb-gold); }

.tcb-nav__links { display: flex; align-items: center; gap: 32px; }
.tcb-nav__menu  { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.tcb-nav__menu a {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.tcb-nav__menu a:hover,
.tcb-nav__menu .current-menu-item > a { color: var(--tcb-white); }
/* Sub-menus */
.tcb-nav__menu .sub-menu {
  position: absolute;
  background: var(--tcb-dark);
  border: 1px solid var(--tcb-border);
  padding: 12px 0;
  min-width: 200px;
  display: none;
  z-index: 300;
  top: 100%;
  left: 0;
}
.tcb-nav__menu li { position: relative; }
.tcb-nav__menu li:hover > .sub-menu { display: block; }
.tcb-nav__menu .sub-menu a { display: block; padding: 10px 20px; font-size: 12px; color: rgba(255,255,255,0.6); }
.tcb-nav__menu .sub-menu a:hover { color: var(--tcb-white); background: rgba(255,255,255,0.04); }

/* Hamburger */
.tcb-nav__hamburger { display: none; flex-direction: column; justify-content: center; align-items: center; width: 36px; height: 36px; gap: 6px; }
.tcb-nav__hamburger span { display: block; width: 24px; height: 1.5px; background: var(--tcb-white); transition: all 0.3s; transform-origin: center; }
.tcb-nav__hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.tcb-nav__hamburger.open span:nth-child(2) { opacity: 0; }
.tcb-nav__hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav panel */
.tcb-nav__mobile {
  display: none;
  background: var(--tcb-dark);
  border-top: 1px solid var(--tcb-border);
  padding: 24px 48px;
}
.tcb-nav__mobile.open { display: block; }
.tcb-nav__mobile-menu { list-style: none; margin-bottom: 24px; }
.tcb-nav__mobile-menu a { display: block; padding: 13px 0; font-size: 20px; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); border-bottom: 1px solid var(--tcb-border-lt); }
.tcb-nav__mobile-menu a:hover { color: var(--tcb-white); }
.tcb-nav__mobile-cta { padding-top: 20px; }

.tcb-nav-spacer { height: var(--tcb-nav-h); }

@media(max-width:1024px) {
  .tcb-nav__links { display: none; }
  .tcb-nav__hamburger { display: flex; }
  .tcb-nav__wrap { padding: 0 24px; }
}

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.tcb-footer { background: var(--tcb-black); }
.tcb-footer__top { padding: 80px 0 60px; border-top: 1px solid var(--tcb-border); }
.tcb-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 60px; }
@media(max-width:960px) { .tcb-footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media(max-width:560px) { .tcb-footer__grid { grid-template-columns: 1fr; } }

.tcb-footer__logo img { height: 44px; width: auto; margin-bottom: 16px; }
.tcb-footer__logo-text { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 18px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); display: block; margin-bottom: 16px; }
.tcb-footer__logo-text span { color: var(--tcb-gold); }
.tcb-footer__tagline { font-size: 13px; color: rgba(255,255,255,0.35); font-weight: 300; line-height: 1.7; font-style: italic; margin-bottom: 20px; }
.tcb-footer__social { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.tcb-footer__social:hover { color: var(--tcb-gold); }

.tcb-footer__col-title { font-family: 'Barlow Condensed', sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.3); margin-bottom: 16px; }
.tcb-footer__col p { font-size: 14px; color: rgba(255,255,255,0.45); font-weight: 300; line-height: 1.75; }
.tcb-footer__email { font-size: 13px; color: var(--tcb-gold); text-decoration: underline; text-decoration-color: rgba(184,151,90,0.3); transition: color 0.2s; display: block; margin-bottom: 8px; }
.tcb-footer__email:hover { color: var(--tcb-gold-lt); }

.tcb-footer__bottom { border-top: 1px solid rgba(255,255,255,0.05); padding: 24px 0; }
.tcb-footer__bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.tcb-footer__copy { font-size: 11px; color: rgba(255,255,255,0.2); letter-spacing: 0.06em; }
.tcb-footer__nav { display: flex; gap: 24px; list-style: none; }
.tcb-footer__nav a { font-size: 11px; color: rgba(255,255,255,0.25); letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.2s; }
.tcb-footer__nav a:hover { color: rgba(255,255,255,0.6); }

/* ═══════════════════════════════════════════════
   SHARED COMPONENTS
═══════════════════════════════════════════════ */

/* Image frame with gold offset border */
.tcb-img-frame { position: relative; }
.tcb-img-frame::after {
  content: '';
  position: absolute;
  top: 20px; right: -20px; bottom: -20px; left: 20px;
  border: 1px solid rgba(184,151,90,0.28);
  z-index: 0;
  pointer-events: none;
}
.tcb-img-frame img, .tcb-img-frame__img { position: relative; z-index: 1; width: 100%; display: block; }

/* Pullquote */
.tcb-pullquote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(18px, 2.3vw, 24px);
  line-height: 1.55;
  color: var(--tcb-gold-dk);
  border-left: 4px solid var(--tcb-gold);
  padding: 18px 0 18px 30px;
  margin: 40px 0;
  background: rgba(184,151,90,0.04);
}
.tcb-pullquote cite { display: block; font-family: 'Barlow', sans-serif; font-style: normal; font-size: 10px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tcb-gold); margin-top: 14px; }

/* Credentials row */
.tcb-creds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tcb-cred  { font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 8px 14px; border: 1px solid rgba(184,151,90,0.3); color: var(--tcb-gold); }

/* Scroll reveal */
.tcb-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s ease; }
.tcb-reveal.tcb-visible { opacity: 1; transform: none; }
.tcb-d1 { transition-delay: 0.1s; }
.tcb-d2 { transition-delay: 0.2s; }
.tcb-d3 { transition-delay: 0.3s; }
.tcb-d4 { transition-delay: 0.4s; }

/* ═══════════════════════════════════════════════
   BLOG ARCHIVE
═══════════════════════════════════════════════ */
.tcb-archive__hero { padding: 72px 0 60px; }
.tcb-archive__title { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: clamp(44px, 7vw, 80px); line-height: 0.9; text-transform: uppercase; color: var(--tcb-white); margin-bottom: 16px; }
.tcb-archive__sub { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(255,255,255,0.3); }

.tcb-archive__body { padding: 72px 0; background: var(--tcb-smoke); }
.tcb-archive__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
@media(max-width:900px) { .tcb-archive__grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:600px) { .tcb-archive__grid { grid-template-columns: 1fr; } }

.tcb-archive__card { background: var(--tcb-white); overflow: hidden; }
.tcb-archive__card-img { display: block; aspect-ratio: 3/2; overflow: hidden; position: relative; }
.tcb-archive__card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.tcb-archive__card:hover .tcb-archive__card-img img { transform: scale(1.03); }
.tcb-archive__card-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.5)); padding: 24px 20px 16px; }
.tcb-archive__card-cat { font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tcb-gold); }
.tcb-archive__card-body { padding: 28px 28px 32px; }
.tcb-archive__card-meta { font-size: 11px; color: var(--tcb-muted); letter-spacing: 0.08em; margin-bottom: 12px; display: flex; gap: 8px; }
.tcb-archive__card-title { font-family: 'Barlow Condensed', sans-serif; font-size: 24px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.05; margin-bottom: 12px; }
.tcb-archive__card-title a { color: var(--tcb-black); transition: color 0.2s; }
.tcb-archive__card-title a:hover { color: var(--tcb-gold-dk); }
.tcb-archive__card-excerpt { font-size: 14px; color: #4a4a4a; font-weight: 300; line-height: 1.7; margin-bottom: 20px; }
.tcb-archive__card-link { font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tcb-gold-dk); transition: color 0.2s; }
.tcb-archive__card-link:hover { color: var(--tcb-gold); }

.tcb-pagination { margin-top: 56px; text-align: center; }
.tcb-pagination .nav-links { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.tcb-pagination .page-numbers { font-size: 13px; font-weight: 500; letter-spacing: 0.1em; padding: 10px 18px; border: 1px solid rgba(0,0,0,0.12); color: var(--tcb-black); transition: all 0.2s; }
.tcb-pagination .page-numbers.current { background: var(--tcb-gold); color: var(--tcb-black); border-color: var(--tcb-gold); }
.tcb-pagination .page-numbers:hover { background: var(--tcb-black); color: var(--tcb-white); border-color: var(--tcb-black); }

.tcb-archive__cta { padding: 80px 0; }
.tcb-archive__cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.tcb-archive__cta-inner .tcb-h2 { margin-bottom: 0; }

/* ═══════════════════════════════════════════════
   WIDGET
═══════════════════════════════════════════════ */
.tcb-widget { margin-bottom: 40px; }
.tcb-widget__title { font-family: 'Barlow Condensed', sans-serif; font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--tcb-black); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--tcb-gold); }

/* ═══════════════════════════════════════════════
   RESPONSIVE GLOBAL
═══════════════════════════════════════════════ */
@media(max-width:768px) {
  .tcb-wrap, .tcb-post-wrap, .tcb-post-wrap--wide { padding: 0 24px; }
  .tcb-sec, .tcb-sec--sm { padding: 64px 0; }
}
@media(max-width:600px) {
  .tcb-two-col { grid-template-columns: 1fr; gap: 40px; }
  .tcb-footer__grid { grid-template-columns: 1fr; }
}
