/* ============================================================
   ThinkBreak Insights — matched to main site tokens
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

@font-face {
  font-family: 'Rational Display';
  src: url('../fonts/RationalDisplayMedium.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens (mirroring main site exactly) --- */
:root {
  --bg:           hsl(135 25% 91%);
  --fg:           hsl(0 0% 8%);
  --primary:      hsl(24 85% 48%);
  --primary-fg:   hsl(0 0% 100%);
  --card-bg:      hsl(0 0% 100%);
  --card-border:  rgba(26, 66, 45, 0.15);
  --muted:        hsl(0 0% 40%);
  --brand-green:  #3daa4a;
  --dark-green:   #1a2e1a;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --font-sans:   'Rational Display', sans-serif;
  --font-serif:  'Fraunces', serif;
  --shadow-card: 0 2px 16px rgba(0,0,0,0.06);
  --max-w: 1200px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--fg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-serif); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* --- Layout --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 0; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(222,233,221,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 86px; gap: 2rem; }

.logo { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-serif); font-weight: 700; font-size: 1.15rem; color: var(--dark-green); }
.logo__tag { font-family: var(--font-sans); font-size: 0.65rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; background: var(--dark-green); color: #fff; padding: 2px 8px; border-radius: 99px; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a { font-family: var(--font-sans); font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.nav a:hover, .nav a.active { color: var(--fg); }

/* Main-site push button style */
.tb-push-btn { position: relative; width: 170px; height: 44px; border: none; background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; text-decoration: none; filter: drop-shadow(0 6px 10px rgba(228,121,32,0.45)); }
.tb-push-btn-back { width: 100%; height: 100%; border: 2.5px solid #c45e20; border-radius: 18px; background: hsl(24 85% 48%); box-shadow: 0 12px 16px rgba(0,0,0,0.12), 0 2px 0 rgba(0,0,0,0.35); transition: all 0.3s ease; }
.tb-push-btn-front { position: absolute; width: 98%; height: 100%; background: linear-gradient(#ffffff 60%, #f0ece8 100%); border-radius: 15px; transform: translateY(-4px); display: flex; align-items: center; justify-content: center; font-family: var(--font-sans); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06rem; color: #7a3519; box-shadow: 0 4px 6px hsl(24 85% 48%), inset 0 -2px 2px #c45e20; transition: all 0.1s ease; animation: tb-push-glow 2s infinite ease-in-out; }
@keyframes tb-push-glow { 50% { transform: translateY(-6px); box-shadow: 0 6px 18px rgba(228,121,32,0.65), inset 0 -2px 2px #c45e20; filter: brightness(1.03); } }
.tb-push-btn:hover .tb-push-btn-back { background: transparent; transform: translateY(3px); }
.tb-push-btn:hover .tb-push-btn-front { transform: translateY(-6px); animation: none; }
.tb-push-btn:active .tb-push-btn-front { transform: translateY(2px); }

/* Large variant — matches main site GET STARTED button */
.tb-push-btn--lg { width: 260px; height: 58px; }
.tb-push-btn--lg .tb-push-btn-back { border-radius: 22px; }
.tb-push-btn--lg .tb-push-btn-front { border-radius: 19px; font-size: 0.88rem; letter-spacing: 0.1rem; gap: 0.6rem; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--dark-green); border-radius: 2px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(160deg, var(--dark-green) 0%, #2e6e35 60%, #1e4a20 100%);
  color: #fff; position: relative; overflow: hidden;
}
.hero__noise { position: absolute; inset: 0; opacity: 0.2; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero .container { position: relative; z-index: 1; }
.hero__kicker { font-family: var(--font-sans); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--primary); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; max-width: 680px; margin-bottom: 1.25rem; }
.hero__sub { font-family: var(--font-sans); font-size: 1.05rem; color: rgba(255,255,255,0.72); max-width: 520px; line-height: 1.7; margin-bottom: 2.5rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

.btn { display: inline-flex; align-items: center; gap: 0.4rem; font-family: var(--font-sans); font-weight: 500; font-size: 0.9rem; padding: 0.65rem 1.4rem; border-radius: var(--r-md); border: none; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.btn--primary { background: var(--primary); color: var(--primary-fg); box-shadow: 0 2px 10px rgba(226,102,18,0.3); }
.btn--primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25); }
.btn--ghost:hover { background: rgba(255,255,255,0.18); }
.btn--outline { background: transparent; color: var(--dark-green); border: 1.5px solid var(--card-border); }
.btn--outline:hover { background: var(--dark-green); color: #fff; }

/* ============================================================
   FEATURED ARTICLE
   ============================================================ */
.featured { padding: 4rem 0 2rem; }
.featured__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  background: var(--card-bg);
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}
.featured__img { height: 400px; overflow: hidden; }
.featured__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.featured__inner:hover .featured__img img { transform: scale(1.04); }
.featured__body { padding: 2.5rem; display: flex; flex-direction: column; justify-content: center; }

.tag { display: inline-block; font-family: var(--font-sans); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; margin-bottom: 0.9rem; }
.tag--retirement { background: hsl(135 25% 84%); color: var(--dark-green); }
.tag--investment  { background: hsl(24 60% 92%); color: #7a3519; }
.tag--news        { background: hsl(130 40% 90%); color: #1a5e20; }
.tag--planning    { background: hsl(135 25% 84%); color: var(--dark-green); }

.featured__body h2 { font-size: 1.65rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--fg); margin-bottom: 0.9rem; }
.featured__body p { font-family: var(--font-sans); color: var(--muted); line-height: 1.7; margin-bottom: 1.5rem; }
.article-meta { display: flex; align-items: center; gap: 0.75rem; font-family: var(--font-sans); font-size: 0.8rem; color: var(--muted); margin-bottom: 1.25rem; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted); opacity: 0.5; }

/* ============================================================
   ARTICLE GRID
   ============================================================ */
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 2rem; }
.section-header h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.01em; }

.articles-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.card { background: var(--card-bg); border-radius: var(--r-lg); border: 1px solid var(--card-border); box-shadow: var(--shadow-card); overflow: hidden; display: flex; flex-direction: column; transition: transform 0.25s, box-shadow 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(0,0,0,0.10); }
.card__img { height: 195px; overflow: hidden; position: relative; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s; }
.card:hover .card__img img { transform: scale(1.05); }
.card__tag { position: absolute; top: 0.9rem; left: 0.9rem; }
.card__body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.3; color: var(--fg); margin-bottom: 0.6rem; transition: color 0.2s; }
.card:hover .card__body h3 { color: var(--primary); }
.card__body p { font-family: var(--font-sans); font-size: 0.88rem; color: var(--muted); line-height: 1.65; flex: 1; margin-bottom: 1rem; }
.card__footer { display: flex; align-items: center; justify-content: space-between; padding-top: 0.9rem; border-top: 1px solid var(--card-border); font-family: var(--font-sans); font-size: 0.78rem; color: var(--muted); }
.card__footer a { color: var(--brand-green); font-weight: 500; display: flex; align-items: center; gap: 4px; transition: gap 0.2s, color 0.2s; }
.card:hover .card__footer a { gap: 8px; color: var(--primary); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background-color: #20b627;
  background-image: linear-gradient(43deg, #20b627 0%, #2e6e35 46%, #3fd346 100%);
  box-shadow: rgba(0,0,0,0.20) 0px -23px 25px 0px inset, rgba(0,0,0,0.25) 0px -36px 30px 0px inset, rgba(0,0,0,0.10) 0px -79px 40px 0px inset, rgba(0,0,0,0.06) 0px 2px 1px, rgba(0,0,0,0.09) 0px 4px 2px, rgba(0,0,0,0.09) 0px 8px 4px, rgba(0,0,0,0.09) 0px 16px 8px, rgba(0,0,0,0.09) 0px 32px 16px;
  padding: 5rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-band__noise { position: absolute; inset: 0; opacity: 0.25; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.cta-band .container { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.5rem,3vw,2.25rem); color: #fff; margin-bottom: 0.9rem; }
.cta-band p { font-family: var(--font-sans); color: rgba(255,255,255,0.8); max-width: 500px; margin: 0 auto 2rem; }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  background: #fff;
  padding: 5rem 0;
  color: var(--fg);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.newsletter__text {}
.newsletter__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-green);
  background: rgba(61,170,90,0.12);
  border: 1px solid var(--brand-green);
  border-radius: 99px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
}
.newsletter__heading {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--dark-green);
  margin-bottom: 1rem;
  line-height: 1.2;
}
.newsletter__sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}
.tb-newsletter-card {
  background: #f8faf8;
  border-radius: var(--r-lg);
  padding: 2rem;
  border: 1.5px solid var(--card-border);
}
.newsletter__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.newsletter__field-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dark-green);
}
.newsletter__field input {
  background: #fff;
  border: 1.5px solid var(--card-border);
  border-radius: var(--r-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--fg);
  width: 100%;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.newsletter__field input::placeholder { color: rgba(0,0,0,0.3); }
.newsletter__field input:focus { border-color: var(--brand-green); }
.newsletter__submit {
  width: 100%;
  margin-top: 0.5rem;
}
.newsletter__btn {
  width: 100%;
}
.newsletter__btn .tb-push-btn-front {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.newsletter__status {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  min-height: 1.2em;
  text-align: center;
  color: var(--muted);
}
@media (max-width: 768px) {
  .newsletter__inner { grid-template-columns: 1fr; }
}
.site-footer { background: var(--dark-green); padding: 5rem 0 2rem; color: rgba(255,255,255,0.8); }
.footer__brand p { color: rgba(255,255,255,0.6); }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer__brand .logo { color: #fff; margin-bottom: 1rem; }
.footer__brand p { font-family: var(--font-sans); font-size: 0.875rem; line-height: 1.7; max-width: 280px; }
.footer__col h4 { font-family: var(--font-sans); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 1.1rem; }
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer__col ul li a { font-family: var(--font-sans); font-size: 0.875rem; color: rgba(255,255,255,0.6); transition: color 0.2s; }
.footer__col ul li a:hover { color: var(--primary); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 1.5rem; display: flex; align-items: center; justify-content: space-between; font-family: var(--font-sans); font-size: 0.78rem; }
.footer__bottom a { color: rgba(255,255,255,0.45); transition: color 0.2s; }
.footer__bottom a:hover { color: var(--primary); }

/* ============================================================
   ARTICLE PAGE
   ============================================================ */
.article-hero { background: linear-gradient(160deg, var(--dark-green), #2e6e35); padding: 4rem 0 0; color: #fff; position: relative; }
.article-hero__noise { position: absolute; inset: 0; opacity: 0.2; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.article-hero .container { position: relative; z-index: 1; }
.article-hero__inner { max-width: 800px; margin: 0 auto; }
.article-hero h1 { font-size: clamp(1.75rem,4vw,2.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: #fff; margin: 1rem 0 1.25rem; }
.article-hero__sub { font-family: var(--font-sans); color: rgba(255,255,255,0.72); font-size: 1.05rem; line-height: 1.7; margin-bottom: 2rem; }
.article-hero__img { margin-top: 3rem; border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; height: 400px; }
.article-hero__img img { width: 100%; height: 100%; object-fit: cover; }

.article-content { max-width: 800px; margin: 0 auto; padding: 3rem 2rem; }
.article-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--fg); margin: 2.5rem 0 1rem; }
.article-content h3 { font-size: 1.15rem; font-weight: 600; color: var(--fg); margin: 2rem 0 0.75rem; }
.article-content p { font-family: var(--font-sans); color: var(--muted); margin-bottom: 1.25rem; font-size: 1.02rem; line-height: 1.8; }
.article-content ul, .article-content ol { font-family: var(--font-sans); padding-left: 1.5rem; margin-bottom: 1.25rem; color: var(--muted); line-height: 1.8; }
.article-content blockquote { border-left: 3px solid var(--primary); padding: 1rem 1.5rem; margin: 2rem 0; background: hsl(24 60% 96%); border-radius: 0 var(--r-md) var(--r-md) 0; font-style: italic; color: var(--muted); }

/* In-article CTA — uses green-gradient from main site */
.article-cta {
  background-color: #20b627;
  background-image: linear-gradient(43deg, #20b627 0%, #2e6e35 46%, #3fd346 100%);
  box-shadow: rgba(0,0,0,0.20) 0px -23px 25px 0px inset, rgba(0,0,0,0.09) 0px 16px 8px, rgba(0,0,0,0.09) 0px 32px 16px;
  border-radius: var(--r-lg); padding: 2.5rem; text-align: center; margin: 3rem 0; color: #fff; position: relative; overflow: hidden;
}
.article-cta__noise { position: absolute; inset: 0; opacity: 0.2; mix-blend-mode: overlay; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.article-cta > *:not(.article-cta__noise) { position: relative; z-index: 1; }
.article-cta h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 0.75rem; }
.article-cta p { font-family: var(--font-sans); color: rgba(255,255,255,0.8); margin-bottom: 1.5rem; }

/* ============================================================
   SCROLL ANIMATIONS (match main site)
   ============================================================ */
.scroll-hidden { opacity: 0; transform: translateY(40px); }
.scroll-visible { animation: slideUp 0.7s cubic-bezier(0.16,1,0.3,1) forwards; }
@keyframes slideUp { from { opacity:0; transform:translateY(40px); } to { opacity:1; transform:translateY(0); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .articles-grid { grid-template-columns: repeat(2,1fr); }
  .featured__inner { grid-template-columns: 1fr; }
  .featured__img { height: 260px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .section { padding: 3rem 0; }
  .nav { display: none; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 86px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--card-border); padding: 1.5rem 1.25rem; gap: 1.25rem; z-index: 99; }
  .hamburger { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; }
  .featured__body { padding: 1.5rem; }
  .tb-push-btn { display: none; }
  .btn--cta-mobile { display: inline-flex; }
}
