/*
Theme Name: TBB
Template: astra
Description: TBB Child Theme for The Business Blocks website
Version: 1.0.0
Author: The Business Blocks
*/

/* ============================================================
   CSS VARIABLES — TBB Brand Colours
   ============================================================ */
:root {
  --pine:      #2d5550;
  --teal:      #3e8e79;
  --teal-lt:   rgba(62,142,121,.1);
  --teal-mid:  rgba(62,142,121,.18);
  --border:    rgba(45,85,80,.14);
  --border-lt: rgba(45,85,80,.08);
  --white:     #ffffff;
  --off:       #f5f8f7;
  --off2:      #edf2f1;
  --text:      #0e1f1c;
  --muted:     #5a7570;
  --subtle:    #8aa09d;
}

/* ============================================================
   RESET / BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: #ffffff !important;
  color: #0e1f1c;
  font-size: 14px;
  overflow-x: hidden;
}

/* Override any Astra background colours */
.site, #page, .ast-container, .entry-content {
  background: #ffffff !important;
}

/* ============================================================
   HEADER ACCENT BARS — gradient lines via CSS pseudo-elements
   Applied to Astra's #masthead — no PHP hooks needed
   ============================================================ */

/* Top gradient accent line */
#masthead::before {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #2d5550 0%, #3e8e79 50%, #2d5550 100%);
  background-size: 200% 100%;
  animation: tbb-accent-shimmer 4s ease infinite;
}

/* Bottom gradient accent line */
#masthead::after {
  content: "";
  display: block;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, #3e8e79 0%, #2d5550 50%, #3e8e79 100%);
  background-size: 200% 100%;
  animation: tbb-accent-shimmer 4s ease infinite reverse;
}

@keyframes tbb-accent-shimmer {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Force white nav — override Astra transparent header */
#masthead,
#masthead.site-header,
.ast-theme-transparent-header #masthead,
.ast-transparent-header #masthead,
#masthead .ast-main-header-wrap,
#masthead .main-header-bar,
#masthead .ast-desktop-header,
#masthead #ast-desktop-header {
  background: rgba(255,255,255,0.96) !important;
  backdrop-filter: blur(16px) !important;
}

/* Accent bars via border on masthead */
#masthead {
  border-top: 3px solid transparent !important;
  border-bottom: 3px solid transparent !important;
  border-image: linear-gradient(90deg, #2d5550, #3e8e79, #2d5550) 1 !important;
}

/* ============================================================
   RISING BLOCKS ANIMATION CANVAS
   ============================================================ */
.rising-blocks { position: relative; overflow: hidden; }
.rising-blocks .tbb-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.rising-blocks > *:not(.tbb-canvas) { position: relative; z-index: 1; }

/* ============================================================
   ANNO LABELS (mockup labels — hide in production if needed)
   ============================================================ */
.anno { background: var(--teal); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; padding: 4px 12px; text-align: right; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px; height: 72px;
  position: sticky; top: 0; z-index: 100;
}
.nav-logo { display: flex; align-items: center; gap: 12px; }
.nav-logo img { height: 52px; width: auto; background: transparent; mix-blend-mode: normal; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: .2px; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-ghost { color: var(--muted); background: none; border: 1px solid var(--border); padding: 8px 18px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; }
.nav-cta { background: linear-gradient(135deg, var(--pine), var(--teal)); color: #fff; border: none; padding: 10px 22px; border-radius: 6px; font-size: 13px; font-weight: 700; cursor: pointer; }

/* ============================================================
   HERO
   ============================================================ */
.hero { background: var(--white); padding: 96px 52px 84px; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; background: var(--teal-lt); border: 1px solid var(--border); padding: 6px 16px; border-radius: 40px; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--teal); margin-bottom: 26px; }
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 6px var(--teal); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:.35;} }
.hero-tagline { font-size: 13px; font-weight: 800; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); margin-bottom: 18px; }
.hero h1 { font-size: 54px; font-weight: 800; line-height: 1.08; letter-spacing: -2px; color: var(--text); margin-bottom: 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--pine) 0%, var(--teal) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-sub { color: var(--muted); font-size: 16px; line-height: 1.8; max-width: 600px; margin: 0 auto 38px; }
.hero-btns { display: flex; gap: 14px; justify-content: center; margin-bottom: 60px; }
.btn-primary { background: linear-gradient(135deg, var(--pine) 0%, var(--teal) 100%); color: #fff; border: none; padding: 14px 30px; border-radius: 8px; font-size: 14px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 20px rgba(62,142,121,.3); }
.btn-outline { background: transparent; color: var(--pine); border: 1.5px solid var(--border); padding: 14px 28px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.hero-stats { display: inline-flex; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--white); box-shadow: 0 4px 24px rgba(45,85,80,.07); }
.hstat { padding: 18px 34px; border-right: 1px solid var(--border); text-align: center; }
.hstat:last-child { border-right: none; }
.hstat-num { font-size: 24px; font-weight: 800; color: var(--text); letter-spacing: -1px; }
.hstat-num em { color: var(--teal); font-style: normal; }
.hstat-label { font-size: 10px; text-transform: uppercase; letter-spacing: .8px; color: var(--subtle); margin-top: 4px; }

/* ============================================================
   FIND. FIX. SCALE. STRIP
   ============================================================ */
.tagline-strip { background: linear-gradient(135deg, var(--pine) 0%, var(--teal) 100%); padding: 52px; }
.tagline-inner { max-width: 1040px; margin: 0 auto; }
.tagline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.tg-item { padding: 0 36px; border-right: 1px solid rgba(255,255,255,.15); }
.tg-item:first-child { padding-left: 0; }
.tg-item:last-child { border-right: none; }
.tg-word { font-size: 32px; font-weight: 900; color: #fff; letter-spacing: -1px; margin-bottom: 6px; }
.tg-dash { width: 28px; height: 3px; background: rgba(255,255,255,.4); border-radius: 2px; margin-bottom: 12px; }
.tg-desc { color: rgba(255,255,255,.75); font-size: 13.5px; line-height: 1.75; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { background: var(--off); border-top: 1px solid var(--border-lt); border-bottom: 1px solid var(--border-lt); padding: 18px 52px; display: flex; align-items: center; justify-content: center; gap: 16px; }
.trust-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--subtle); font-weight: 600; white-space: nowrap; }
.trust-div { width: 1px; height: 18px; background: var(--border); }
.trust-logos { display: flex; gap: 18px; align-items: center; }
.trust-logo { border: 1px solid var(--border); border-radius: 6px; width: 80px; height: 28px; display: flex; align-items: center; justify-content: center; background: var(--white); }
.trust-logo span { font-size: 9px; font-weight: 800; color: var(--subtle); letter-spacing: .6px; }

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section { padding: 80px 52px; }
.section-inner { max-width: 1040px; margin: 0 auto; }
.s-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 10px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--teal); font-weight: 800; margin-bottom: 12px; }
.s-tag::before { content:""; display:block; width:16px; height:1.5px; background:var(--teal); }
.s-title { font-size: 30px; font-weight: 800; line-height: 1.18; letter-spacing: -.6px; color: var(--text); margin-bottom: 12px; }
.s-sub { font-size: 14.5px; color: var(--muted); line-height: 1.75; max-width: 560px; margin-bottom: 48px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services-section { background: var(--off); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.svc-card { background: var(--white); padding: 28px 24px; position: relative; overflow: hidden; transition: background .2s; }
.svc-card:hover { background: #f9fdfc; }
.svc-card::after { content:""; position:absolute; bottom:0; left:0; right:0; height:3px; background: linear-gradient(90deg, var(--pine), var(--teal)); transform:scaleX(0); transform-origin:left; transition:transform .3s; }
.svc-card:hover::after { transform: scaleX(1); }
.svc-icon { width: 44px; height: 44px; border-radius: 10px; background: var(--teal-lt); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 14px; }
.svc-pill { display: inline-block; background: var(--teal-lt); border: 1px solid var(--border); color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.svc-pill.ai { background: rgba(62,142,121,.18); border-color: rgba(62,142,121,.4); }
.svc-title { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.svc-desc { font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-section { background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-visual { background: linear-gradient(135deg, var(--pine) 0%, var(--teal) 100%); border-radius: 16px; height: 340px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.about-visual::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 30% 40%, rgba(255,255,255,.12), transparent 60%); }
.about-visual-label { color: rgba(255,255,255,.45); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; z-index: 1; position: relative; }
.about-badge { position: absolute; bottom: -14px; right: -14px; background: var(--white); border: 3px solid var(--off); border-radius: 12px; padding: 14px 18px; box-shadow: 0 8px 24px rgba(45,85,80,.12); }
.about-badge-num { font-size: 22px; font-weight: 800; color: var(--pine); }
.about-badge-label { font-size: 10px; color: var(--subtle); text-transform: uppercase; letter-spacing: .6px; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 11px; margin: 18px 0 26px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--text); line-height: 1.5; }
.ck { width: 20px; height: 20px; border-radius: 6px; flex-shrink: 0; margin-top: 1px; background: var(--teal-lt); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--teal); font-size: 10px; font-weight: 900; }

/* ============================================================
   PITCH / USE CASES
   ============================================================ */
.pitch-section { background: var(--white); }
.pitch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pitch-card { background: var(--off); border: 1px solid var(--border-lt); border-radius: 12px; padding: 26px; position: relative; }
.pitch-num { font-size: 40px; font-weight: 900; color: var(--teal-lt); line-height: 1; position: absolute; top: 16px; right: 20px; letter-spacing: -2px; }
.pitch-industry { display: inline-block; background: var(--teal-lt); border: 1px solid var(--border); color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; margin-bottom: 10px; }
.pitch-title { font-size: 14px; font-weight: 800; color: var(--text); margin-bottom: 10px; line-height: 1.35; }
.pitch-body { font-size: 12.5px; color: var(--muted); line-height: 1.75; font-style: italic; }

/* ============================================================
   CASE STUDIES
   ============================================================ */
.cases-section { background: var(--off); }
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { background: var(--white); border: 1px solid var(--border-lt); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 12px rgba(45,85,80,.05); }
.case-header { background: linear-gradient(135deg, var(--pine), var(--teal)); padding: 22px 24px; }
.case-industry { font-size: 9px; text-transform: uppercase; letter-spacing: 1px; color: rgba(255,255,255,.6); font-weight: 700; margin-bottom: 6px; }
.case-title { font-size: 16px; font-weight: 800; color: #fff; line-height: 1.25; }
.case-body { padding: 22px 24px; }
.case-challenge { font-size: 12px; color: var(--muted); line-height: 1.7; margin-bottom: 16px; }
.case-results { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.case-result { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); font-weight: 600; }
.case-result-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex-shrink: 0; }
.case-tag { display: inline-block; background: var(--teal-lt); border: 1px solid var(--border); color: var(--teal); font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; }

/* ============================================================
   PROCESS — HOW IT WORKS
   ============================================================ */
.process-section { background: var(--off); }
.steps-row { display: flex; gap: 0; position: relative; }
.steps-row::before { content:""; position:absolute; top:26px; left:26px; right:26px; height:1px; background: linear-gradient(90deg, var(--teal), var(--border), var(--border)); z-index:0; }
.step { flex:1; text-align:center; position:relative; z-index:1; padding:0 10px; }
.step-circle { width:52px; height:52px; border-radius:50%; border:1.5px solid var(--border); background:var(--white); display:flex; align-items:center; justify-content:center; margin:0 auto 16px; font-size:13px; font-weight:800; color:var(--subtle); }
.step-circle.active { background: linear-gradient(135deg, var(--pine), var(--teal)); border-color:transparent; color:#fff; box-shadow:0 4px 20px rgba(62,142,121,.3); }
.step-title { font-size:13px; font-weight:700; color:var(--text); margin-bottom:7px; }
.step-desc { font-size:12px; color:var(--muted); line-height:1.65; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.t-section { background: var(--white); }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tcard { background: var(--off); border: 1px solid var(--border-lt); border-radius: 12px; padding: 26px; position: relative; overflow: hidden; }
.tcard::before { content:'"'; position:absolute; top:12px; right:18px; font-size:70px; color:var(--teal-lt); font-family:Georgia,serif; line-height:1; }
.tcard-stars { color: var(--teal); font-size:13px; letter-spacing:2px; margin-bottom:10px; }
.tcard-text { font-size:13px; color:var(--muted); line-height:1.75; margin-bottom:18px; font-style:italic; }
.tcard-author { display:flex; align-items:center; gap:10px; }
.tcard-av { width:36px; height:36px; border-radius:10px; flex-shrink:0; background: linear-gradient(135deg, var(--pine), var(--teal)); display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:800; color:#fff; }
.tcard-name { font-size:13px; font-weight:700; color:var(--text); }
.tcard-role { font-size:11px; color:var(--subtle); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-section { background: linear-gradient(135deg, var(--pine) 0%, var(--teal) 100%); padding: 90px 52px; text-align: center; }
.cta-section .s-tag { color: rgba(255,255,255,.6); justify-content:center; margin-bottom:12px; }
.cta-section .s-tag::before { background:rgba(255,255,255,.5); }
.cta-section h2 { font-size:36px; font-weight:800; letter-spacing:-.8px; color:#fff; margin-bottom:14px; }
.cta-section p { color:rgba(255,255,255,.7); font-size:15px; margin-bottom:32px; }
.btn-white { background:#fff; color:var(--pine); border:none; padding:15px 34px; border-radius:8px; font-size:15px; font-weight:800; cursor:pointer; box-shadow:0 4px 20px rgba(0,0,0,.15); }
.cta-note { font-size:11px; color:rgba(255,255,255,.4); margin-top:14px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #f0f5f4; border-top: 1px solid var(--border-lt); padding: 52px 52px 24px; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 40px; max-width: 1040px; margin: 0 auto 40px; }
.footer-brand-sub { color: var(--subtle); font-size: 12.5px; line-height: 1.75; margin-top: 12px; max-width: 240px; }
.footer-col h4 { font-size: 9px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--subtle); font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: var(--muted); font-size: 12.5px; text-decoration: none; }
.footer-bottom { max-width: 1040px; margin: 0 auto; padding-top: 22px; border-top: 1px solid var(--border-lt); display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 11px; color: var(--subtle); }
.footer-logo { display: flex; align-items: center; gap: 10px; }
.footer-logo img { height: 44px; width: auto; background: transparent; }

/* ============================================================
   FLOATING BLOCKS — ensure canvas covers full section
   ============================================================ */
.elementor-section.rising-blocks,
.elementor-widget-wrap.rising-blocks,
section.rising-blocks {
    position: relative;
    overflow: hidden;
}
.rising-blocks .tbb-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}
.rising-blocks > *:not(.tbb-canvas) {
    position: relative;
    z-index: 1;
}

/* ============================================================
   SCROLL REVEAL ANIMATION
   ============================================================ */
.reveal { opacity:0; transform:translateY(28px); transition: opacity .6s cubic-bezier(.23,1,.32,1), transform .6s cubic-bezier(.23,1,.32,1); }
.reveal.visible { opacity:1; transform:translateY(0); }

/* ============================================================
   NAV LINK UNDERLINE SLIDE
   ============================================================ */
.nav-links a { position:relative; transition: color .2s; }
.nav-links a::after { content:""; position:absolute; left:0; bottom:-4px; width:0; height:1.5px; background:var(--teal); border-radius:2px; transition: width .25s cubic-bezier(.23,1,.32,1); }
.nav-links a:hover { color: var(--pine) !important; }
.nav-links a:hover::after { width:100%; }
