 
 
/*
Theme Name: TCF Blog
Theme URI: https://thecustomerfactory.com/blog
Description: Clean, single-purpose blog theme for The Customer Factory. Focus: read stories, download the Social Publicity guide, or visit the main site. Brand Bible v1.7 (navy/gold/cream, Bitter + Open Sans).
Author: The Customer Factory
Version: 1.1
*/

:root{
  --navy:#1A314A;--navy-2:#122234;--navy-3:#274764;
  --gold:#C09048;--gold-2:#D3A75C;
  --forest:#2E5D3F;--rust:#B4552E;--rust-2:#9A4525;
  --dl-green:#2E7D32;--dl-green-2:#256628;
  --cream:#F5ECD9;--paper:#F8F1E1;--card:#FFFCF5;--walnut:#43342A;
  --ink:#1A314A;--muted:#5C5142;--line:#E6DABF;
  --serif:'Bitter',Georgia,'Times New Roman',serif;
  --sans:'Open Sans',system-ui,-apple-system,'Segoe UI',Arial,sans-serif;
}
*{box-sizing:border-box}
body{margin:0;font-family:var(--sans);color:var(--ink);background:var(--paper);font-size:18px;line-height:1.7;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--forest);text-decoration:none}
a:hover{text-decoration:underline}
h1,h2,h3,h4{font-family:var(--serif);color:var(--navy);line-height:1.18;letter-spacing:-.005em}
.wrap{max-width:1120px;margin:0 auto;padding:0 24px}
.btn{display:inline-flex;align-items:center;gap:.5rem;font-weight:700;font-size:.98rem;padding:.72rem 1.35rem;border-radius:9px;border:2px solid transparent;cursor:pointer;transition:transform .15s ease,background .2s ease;text-decoration:none}
.btn:hover{transform:translateY(-2px);text-decoration:none}
.btn-gold{background:var(--gold);color:var(--navy)}.btn-gold:hover{background:var(--gold-2)}
.btn-download{background:var(--dl-green);color:#fff;box-shadow:0 5px 16px -5px rgba(46,125,50,.55)}
.btn-download:hover{background:var(--dl-green-2);color:#fff}

/* ===== slim single-purpose sticky header: logo (-> main site) + Download button ===== */
.site-header{position:sticky;top:0;z-index:90;background:rgba(248,241,225,.96);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.site-header .bar{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;flex-wrap:nowrap;padding:7px 24px}
.site-header .brand{flex:0 0 auto;line-height:0}
.site-header .brand img{height:38px;width:auto}
.site-header .btn{padding:.55rem 1.15rem;font-size:.95rem}
.site-header .g-short{display:none}

/* ===== blog hero ===== */
.blog-hero{background:linear-gradient(180deg,var(--navy) 0%,var(--navy-2) 100%);color:#fff;text-align:center;padding:50px 0 44px;position:relative;overflow:hidden}
.blog-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(760px 340px at 50% -10%,rgba(192,144,72,.16),transparent 60%)}
.blog-hero .wrap{position:relative}
.blog-hero .ey{display:inline-flex;align-items:center;gap:10px;color:var(--gold-2);font-weight:700;font-size:.78rem;letter-spacing:.16em;text-transform:uppercase;margin-bottom:14px}
.blog-hero .ey::before,.blog-hero .ey::after{content:"";width:26px;height:2px;background:var(--gold)}
.blog-hero h1{color:#fff;font-size:clamp(2rem,4.4vw,3rem);margin:0}
.blog-hero p{color:#DCE3EC;font-size:1.16rem;margin:12px auto 0;max-width:40em}

/* ===== full-width endless feed ===== */
.content{padding:50px 0 70px}
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
@media(max-width:920px){.cards{grid-template-columns:repeat(2,1fr)}}
@media(max-width:600px){.cards{grid-template-columns:1fr}}
.card{background:var(--card);border:1px solid var(--line);border-radius:16px;overflow:hidden;display:flex;flex-direction:column;transition:transform .18s ease,box-shadow .2s ease}
.card:hover{transform:translateY(-4px);box-shadow:0 22px 46px -24px rgba(26,49,74,.4)}
.card .thumb{aspect-ratio:16/9;overflow:hidden;background:linear-gradient(135deg,var(--navy),var(--navy-3));display:flex;align-items:center;justify-content:center}
.card .thumb img{width:100%;height:100%;object-fit:contain}      /* CONTAIN = never cut off */
.card .thumb.ph span{font-family:var(--serif);color:var(--gold-2);font-weight:700;font-size:1.05rem;opacity:.9}
.card .body{padding:22px 22px 24px;display:flex;flex-direction:column;flex:1}
.card .cat{margin-bottom:8px}
.ctag{display:inline-block;font-size:.72rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
.ctag-video{color:var(--rust)}
.ctag-article{color:var(--forest)}
.card h2{font-size:1.24rem;margin:0 0 10px}
.card h2 a{color:var(--navy)}
.card .ex{color:var(--walnut);font-size:.97rem;margin:0 0 16px;flex:1}
.card .more{color:var(--rust);font-weight:700;font-size:.92rem;margin-top:auto}
.card .more:hover{text-decoration:underline}
.feed-status{text-align:center;color:var(--muted);font-size:.92rem;padding:26px 0 6px;min-height:24px}

/* ===== single post ===== */
.single{max-width:760px;margin:0 auto}
.single .back{font-weight:700;font-size:.9rem;display:inline-block;margin-bottom:18px}
.single .cat{font-size:.74rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--forest);margin-bottom:10px;display:block}
.single h1.title{font-size:clamp(1.9rem,4vw,2.7rem);margin:0 0 22px}
.single .feat{border-radius:16px;overflow:hidden;margin:0 0 28px;border:1px solid var(--line)}
.single .feat img{width:100%;max-height:460px;object-fit:cover;display:block}
.entry{font-size:1.08rem}
.entry p{margin:18px 0}
.entry h2,.entry h3{margin:30px 0 10px}
.entry a{color:var(--forest);text-decoration:underline}
.entry img{border-radius:12px;margin:20px 0}
.entry blockquote{border-left:4px solid var(--gold);background:var(--card);padding:14px 22px;margin:22px 0;border-radius:0 10px 10px 0;font-style:italic;color:var(--walnut)}
.entry ul,.entry ol{margin:16px 0 16px 22px}.entry li{margin:7px 0}
.entry img.emoji,.entry img.wp-smiley,img.emoji,img.wp-smiley{display:inline!important;width:1.15em!important;height:1.15em!important;max-width:22px!important;max-height:22px!important;margin:0 .05em!important;vertical-align:-.1em!important;border:0!important;box-shadow:none!important}
/* responsive video embeds restored from the old site — breakout wider than the
   760px reading column and centered on the page so they're big and watchable */
.entry .tcf-video,
.entry iframe[src*="vimeo"],
.entry iframe[src*="youtube"],
.entry iframe[src*="youtu.be"]{
  display:block;position:relative;left:50%;transform:translateX(-50%);
  width:min(1000px,92vw);aspect-ratio:16/9;height:auto;padding:0;
  margin:22px 0 34px;border:0;border-radius:14px;overflow:hidden;background:#000;
  scroll-margin-top:76px;   /* clear the sticky header when linked/scrolled to */
  box-shadow:0 30px 60px -24px rgba(0,0,0,.55)}
/* a video injected as the very first thing in a post shouldn't crowd the title/header */
.entry > .tcf-video:first-child{margin-top:6px}
.entry .tcf-video iframe{position:absolute;inset:0;left:0;top:0;transform:none;
  width:100%;height:100%;margin:0;border:0;border-radius:0;box-shadow:none;aspect-ratio:auto}
/* WordPress oEmbed wrappers around original video embeds */
.entry .wp-block-embed,.entry .wp-block-embed__wrapper{margin:36px 0}
.entry .wp-block-embed__wrapper iframe{margin:0}

/* ===== the footer offer (guide) ===== */
.post-cta{margin:46px 0 10px;padding:30px;background:linear-gradient(135deg,var(--navy),var(--navy-2));border-radius:18px;color:var(--cream);overflow:hidden}
.post-cta .cta-inner{display:flex;align-items:center;gap:30px}
.post-cta .cta-copy{flex:1}
.post-cta h3{color:#fff;font-size:1.5rem;margin:0 0 10px}
.post-cta p{color:#DCE3EC;margin:0 0 20px}
.post-cta .cta-cover{flex:0 0 auto;display:block}
.post-cta .cta-cover img{width:150px;height:auto;border-radius:5px;border:1px solid rgba(211,167,92,.75);box-shadow:0 0 0 5px rgba(245,236,217,.14), 0 22px 44px -14px rgba(0,0,0,.75);transition:transform .2s ease}
.post-cta .cta-cover:hover img{transform:translateY(-3px)}
@media(max-width:560px){.post-cta .cta-inner{flex-direction:column-reverse;text-align:center}.post-cta .cta-cover img{width:130px;margin:0 auto}}

/* ===== keep reading (3 other articles) ===== */
.more-reads{max-width:1120px;margin:60px auto 0}
.more-reads .mr-head{text-align:center;font-size:1.5rem;margin:0 0 26px;position:relative}
.more-reads .mr-head::after{content:"";display:block;width:56px;height:3px;background:var(--gold);border-radius:2px;margin:12px auto 0}

/* ===== minimal footer ===== */
.site-footer{background:var(--navy-2);color:#AEBED0;padding:36px 0;text-align:center;margin-top:24px}
.site-footer .f-brand{display:inline-block;background:#fff;border-radius:9px;padding:8px 14px;margin-bottom:16px}
.site-footer .f-brand img{height:40px}
.site-footer .f-links{display:flex;gap:12px 26px;justify-content:center;flex-wrap:wrap;margin-bottom:16px}
.site-footer .f-links a{color:#DCE3EC;font-weight:600}
.site-footer .f-links a.f-guide{background:var(--gold);color:var(--navy);font-weight:700;padding:9px 18px;border-radius:8px}
.site-footer .f-links a.f-guide:hover{background:var(--gold-2);text-decoration:none}
.site-footer .f-legal{font-size:.82rem;opacity:.75}

/* ===== responsive header — slim single row: logo + green Download button ===== */
@media(max-width:680px){
  .site-header .bar{min-height:50px;gap:10px;padding:6px 13px}
  .site-header .brand img{height:32px}
  .site-header .g-full{display:none}
  .site-header .g-short{display:inline}
  .site-header .btn-download{font-size:.8rem;line-height:1.1;font-weight:800;padding:.5rem .8rem;
    border-radius:9px;text-align:center;white-space:nowrap;flex:0 0 auto;
    display:inline-flex;align-items:center;justify-content:center}
}
@media(max-width:380px){
  .site-header .brand img{height:29px}
  .site-header .btn-download{font-size:.74rem;padding:.46rem .62rem}
}
