/* TWAINO V8 */

/* --- RESET GAPS --- */
.home .entry-content > .alignfull + .alignfull,
.page-id-1028 .entry-content > .alignfull + .alignfull,
.page-id-35996 .entry-content > .alignfull + .alignfull { margin-top: 0 !important; }
.home .entry-content > .alignfull,
.page-id-1028 .entry-content > .alignfull,
.page-id-35996 .entry-content > .alignfull { margin-bottom: 0 !important; }


/* --- HERO --- */
.twaino-hero { padding: 45px 0 20px !important; overflow: hidden; }
.twaino-hero-flex { display: flex; gap: 30px; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 30px; flex-wrap: wrap; }
.twaino-hero-left { flex: 1; min-width: 300px; }
.twaino-hero-right { flex: 1.15; min-width: 340px; display: flex; justify-content: center; }
.twaino-hero h1 { font-size: 34px !important; font-weight: 700 !important; color: #010643 !important; line-height: 1.25 !important; margin-bottom: 12px !important; }
.twaino-tagline { font-size: 13px; font-weight: 600; letter-spacing: 3px; color: #56aea4; text-transform: uppercase; margin-bottom: 8px; display: block; }
.twaino-check-list { list-style: none; padding: 0; margin: 14px 0 20px; }
.twaino-check-list li { padding: 4px 0 4px 26px; position: relative; font-size: 15px; color: #444; }
.twaino-check-list li::before { content: '\2713'; position: absolute; left: 0; color: #56aea4; font-weight: 700; font-size: 15px; }
.twaino-hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.twaino-btn-primary { display: inline-block; background: #010643; color: #fff !important; padding: 12px 24px; border-radius: 28px; font-weight: 600; font-size: 14px; text-decoration: none; transition: all 0.3s; }
.twaino-btn-primary:hover { background: #0099bc; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(0,153,188,0.3); }
.twaino-btn-secondary { display: inline-block; background: transparent; color: #010643 !important; padding: 12px 24px; border-radius: 28px; font-weight: 600; font-size: 14px; text-decoration: none; border: 2px solid #010643; transition: all 0.3s; }
.twaino-btn-secondary:hover { background: #010643; color: #fff !important; }

/* Hero SVG */
.twaino-hero-svg { width: 100%; max-width: 540px; }
.hero-grid-line { stroke: #e8f0ee; stroke-width: 0.5; }
.hero-chart-line { stroke: #56aea4; stroke-width: 3; fill: none; stroke-dasharray: 800; stroke-dashoffset: 800; animation: drawLine 3s ease-out forwards; }
.hero-chart-area { opacity: 0; animation: fadeArea 1s ease-out 1.5s forwards; }
.hero-chart-dot { opacity: 0; }
.hero-chart-dot:nth-child(1) { animation: popDot 0.4s ease-out 0.5s forwards; }
.hero-chart-dot:nth-child(2) { animation: popDot 0.4s ease-out 0.9s forwards; }
.hero-chart-dot:nth-child(3) { animation: popDot 0.4s ease-out 1.3s forwards; }
.hero-chart-dot:nth-child(4) { animation: popDot 0.4s ease-out 1.7s forwards; }
.hero-chart-dot:nth-child(5) { animation: popDot 0.4s ease-out 2.1s forwards; }
.hero-chart-dot:nth-child(6) { animation: popDot 0.4s ease-out 2.5s forwards; }
.hero-chart-dot:nth-child(7) { animation: popDot 0.4s ease-out 2.8s forwards; }
.hero-leaf { opacity: 0; transform-origin: bottom center; }
.hero-leaf:nth-child(1) { animation: growLeaf 0.7s ease-out 1.0s forwards; }
.hero-leaf:nth-child(2) { animation: growLeaf 0.7s ease-out 1.4s forwards; }
.hero-leaf:nth-child(3) { animation: growLeaf 0.7s ease-out 1.8s forwards; }
.hero-leaf:nth-child(4) { animation: growLeaf 0.7s ease-out 2.2s forwards; }
.hero-leaf:nth-child(5) { animation: growLeaf 0.7s ease-out 2.6s forwards; }
.hero-label-box { opacity: 0; }
.hero-label-box.lb1 { animation: slideLabel 0.5s ease-out 1.0s forwards; }
.hero-label-box.lb2 { animation: slideLabel 0.5s ease-out 1.5s forwards; }
.hero-label-box.lb3 { animation: slideLabel 0.5s ease-out 2.0s forwards; }
.hero-label-box.lb4 { animation: slideLabel 0.5s ease-out 2.5s forwards; }
.hero-label-box.lb5 { animation: slideLabel 0.5s ease-out 3.0s forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeArea { to { opacity: 1; } }
@keyframes popDot { 0% { opacity:0; } 100% { opacity:1; } }
@keyframes growLeaf { 0% { opacity:0; transform:scale(0) rotate(-15deg); } 100% { opacity:1; transform:scale(1) rotate(0); } }
@keyframes slideLabel { 0% { opacity:0; transform:translateY(5px); } 100% { opacity:1; transform:translateY(0); } }

/* --- LOGOS SCROLLING --- */
.twaino-logos-section { padding: 16px 0 5px; overflow: hidden; position: relative; }
.twaino-logos-section > p { text-align: center; font-size: 11px; color: #aaa; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }
.twaino-logos-track { display: flex; align-items: center; gap: 60px; animation: logoScroll 30s linear infinite; width: max-content; }
.twaino-logos-track img { height: 40px; width: auto; max-width: 130px; object-fit: contain; opacity: 0.6; filter: grayscale(100%); transition: all 0.3s; }
.twaino-logos-track img:hover { opacity: 1; filter: none; }
.twaino-logos-section::before, .twaino-logos-section::after { content: ''; position: absolute; top: 0; bottom: 0; width: 60px; z-index: 2; pointer-events: none; }
.twaino-logos-section::before { left: 0; background: linear-gradient(90deg, #fff, transparent); }
.twaino-logos-section::after { right: 0; background: linear-gradient(270deg, #fff, transparent); }
@keyframes logoScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- COUNTER BAND --- */
.twaino-counter-band { padding: 20px 0 !important; }
.twaino-counter-grid { display: flex; justify-content: center; gap: 45px; flex-wrap: wrap; max-width: 800px; margin: 0 auto; }
.twaino-counter-item { text-align: center; color: #fff; }
.twaino-counter-number { font-size: 32px; font-weight: 700; line-height: 1.2; display: block; }
.twaino-counter-label { font-size: 11px; font-weight: 400; opacity: 0.9; margin-top: 2px; display: block; text-transform: uppercase; letter-spacing: 0.5px; }

/* --- SECTION TITLES --- */
.twaino-section-title { text-align: center; margin-bottom: 42px; position: relative; z-index: 1; }
.twaino-section-title.wp-block-group { padding: 0 !important; margin-top: 0; }
.twaino-section-title h2, .twaino-section-title .wp-block-heading { font-size: 30px; font-weight: 700; color: #010643; margin-bottom: 10px; margin-top: 0; }
.twaino-section-title p { font-size: 16px; color: #575760; max-width: 550px; margin: 0 auto; }

/* --- SERVICE CARDS --- */
.twaino-services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.twaino-service-card { background: #fff; border-radius: 14px; padding: 28px 20px; text-align: center; transition: all 0.3s; border: 1px solid #eee; position: relative; z-index: 1; }
.twaino-service-card:hover { transform: translateY(-5px); box-shadow: 0 10px 35px rgba(0,0,0,0.08); border-color: #56aea4; }
.twaino-service-card img { width: 160px; height: 160px; object-fit: contain; margin: 0 auto 14px; display: block; }
.twaino-service-card h3 { font-size: 17px; font-weight: 600; color: #010643; margin-bottom: 8px; }
.twaino-service-card p { font-size: 13px; color: #575760; line-height: 1.6; margin-bottom: 14px; }
.twaino-service-card a.twaino-card-link { color: #56aea4; font-weight: 600; font-size: 13px; text-decoration: none; }
.twaino-service-card a.twaino-card-link:hover { color: #0099bc; }

/* --- METHODOLOGY with ARROWS --- */
.twaino-methodology-wrap { display: flex; align-items: stretch; gap: 0; max-width: 1100px; margin: 0 auto; padding: 0 20px; justify-content: center; }
.twaino-method-card { flex: 1; max-width: 320px; background: #fff; border-radius: 16px; padding: 28px 22px; border: 1px solid #eee; position: relative; overflow: hidden; transition: all 0.3s; z-index: 1; }
.twaino-method-card:hover { transform: translateY(-4px); box-shadow: 0 10px 35px rgba(0,0,0,0.08); }
.twaino-method-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; }
.twaino-method-card.step-1::before { background: #56aea4; }
.twaino-method-card.step-2::before { background: #0099bc; }
.twaino-method-card.step-3::before { background: #010643; }
.twaino-method-num { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 12px; }
.twaino-method-card.step-1 .twaino-method-num { background: #56aea4; }
.twaino-method-card.step-2 .twaino-method-num { background: #0099bc; }
.twaino-method-card.step-3 .twaino-method-num { background: #010643; }
.twaino-method-card h3 { font-size: 17px; font-weight: 600; color: #010643; margin-bottom: 8px; }
.twaino-method-card p { font-size: 13px; color: #575760; line-height: 1.65; margin-bottom: 12px; }
.twaino-method-card a.twaino-card-link { color: #56aea4; font-weight: 600; font-size: 13px; text-decoration: none; }
.twaino-method-card a.twaino-card-link:hover { color: #0099bc; }
.twaino-method-arrow { display: flex; align-items: center; padding: 0 8px; color: #56aea4; font-size: 28px; flex-shrink: 0; }

/* --- RESULTS --- */
.twaino-results-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.twaino-result-card { background: #fff; border-radius: 16px; padding: 28px 22px; text-align: center; border: 1px solid #eee; transition: all 0.4s; position: relative; z-index: 1; }
.twaino-result-card:hover { transform: translateY(-4px); box-shadow: 0 10px 35px rgba(0,0,0,0.08); }
.twaino-chart-container { width: 200px; height: 160px; margin: 0 auto 14px; }
.twaino-chart-container svg { width: 100%; height: 100%; }
.twaino-line-chart .chart-line { stroke: #56aea4; stroke-width: 3; fill: none; stroke-dasharray: 500; stroke-dashoffset: 500; transition: stroke-dashoffset 2s ease-out; }
.twaino-line-chart .chart-area { fill: url(#areaGrad); opacity: 0; transition: opacity 1.5s ease-out 0.5s; }
.twaino-result-card.is-visible .chart-line { stroke-dashoffset: 0; }
.twaino-result-card.is-visible .chart-area { opacity: 1; }
.twaino-bar-chart .chart-bar { fill: #56aea4; transform: scaleY(0); transform-origin: bottom; transition: transform 1s cubic-bezier(0.34,1.56,0.64,1); }
.twaino-result-card.is-visible .chart-bar { transform: scaleY(1); }
.twaino-bar-chart .chart-bar:nth-child(2) { transition-delay: .1s; } .twaino-bar-chart .chart-bar:nth-child(3) { transition-delay: .2s; }
.twaino-bar-chart .chart-bar:nth-child(4) { transition-delay: .3s; } .twaino-bar-chart .chart-bar:nth-child(5) { transition-delay: .4s; }
.twaino-bar-chart .chart-bar:nth-child(6) { transition-delay: .5s; } .twaino-bar-chart .chart-bar:nth-child(7) { transition-delay: .6s; }
.twaino-donut-chart .donut-bg { fill: none; stroke: #e8f5f3; stroke-width: 12; }
.twaino-donut-chart .donut-fill { fill: none; stroke: #56aea4; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 283; stroke-dashoffset: 283; transition: stroke-dashoffset 2s ease-out; transform: rotate(-90deg); transform-origin: center; }
.twaino-result-card.is-visible .donut-fill { stroke-dashoffset: 14; }
.twaino-donut-text { font-size: 26px; font-weight: 700; fill: #010643; }
.twaino-donut-subtext { font-size: 11px; fill: #575760; }
.twaino-result-card .result-value { font-size: 28px; font-weight: 800; color: #56aea4; margin-bottom: 4px; }
.twaino-result-card h3 { font-size: 17px; font-weight: 600; color: #010643; margin-bottom: 6px; }
.twaino-result-card p { font-size: 13px; color: #575760; line-height: 1.6; }

/* --- FOUNDER --- */
.twaino-founder { padding: 55px 0 !important; }
.twaino-founder-grid { display: flex; align-items: center; gap: 44px; max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.twaino-founder-left { flex: 0 0 420px; display: flex; flex-direction: column; }
.twaino-founder-text { flex: 1; }
.twaino-founder-text h2 { font-size: 26px; font-weight: 700; color: #010643; margin-bottom: 4px; }
.twaino-founder-text .founder-role { font-size: 14px; color: #56aea4; font-weight: 600; margin-bottom: 12px; display: block; }
.twaino-founder-text p { font-size: 14px; color: #575760; line-height: 1.7; margin-bottom: 16px; }
.twaino-founder-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.twaino-btn-video { display: inline-flex; align-items: center; gap: 7px; background: #56aea4; color: #fff !important; padding: 10px 18px; border-radius: 22px; font-weight: 600; font-size: 13px; text-decoration: none; transition: all 0.3s; }
.twaino-btn-video:hover { background: #3d9e94; transform: translateY(-2px); }
.twaino-btn-video svg { width: 15px; height: 15px; fill: currentColor; }
.twaino-btn-linkedin { display: inline-flex; align-items: center; gap: 7px; background: #0077B5; color: #fff !important; padding: 10px 18px; border-radius: 22px; font-weight: 600; font-size: 13px; text-decoration: none; transition: all 0.3s; }
.twaino-btn-linkedin:hover { background: #005f94; transform: translateY(-2px); }
.twaino-btn-linkedin svg { width: 14px; height: 14px; fill: currentColor; }

/* --- RESOURCES --- */
.twaino-resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.twaino-resource-card { background: #fff; border-radius: 14px; overflow: hidden; border: 1px solid #eee; transition: all 0.3s; position: relative; z-index: 1; }
.twaino-resource-card:hover { transform: translateY(-4px); box-shadow: 0 10px 35px rgba(0,0,0,0.08); }
.twaino-resource-card img { width: 100%; height: auto; display: block; }
.twaino-resource-card .resource-body { padding: 18px; }
.twaino-resource-card h3 { font-size: 16px; font-weight: 600; color: #010643; margin-bottom: 6px; }
.twaino-resource-card p { font-size: 13px; color: #575760; line-height: 1.6; margin-bottom: 10px; }
.twaino-resource-card a.twaino-card-link { color: #56aea4; font-weight: 600; font-size: 13px; text-decoration: none; }

/* --- ARTICLES MARQUEE --- */
.twaino-articles-marquee { overflow: hidden; position: relative; padding: 10px 0; }
.twaino-articles-marquee::before, .twaino-articles-marquee::after { content: ''; position: absolute; top: 0; bottom: 0; width: 50px; z-index: 2; pointer-events: none; }
.twaino-articles-marquee::before { left: 0; background: linear-gradient(90deg, #f7f8f9, transparent); }
.twaino-articles-marquee::after { right: 0; background: linear-gradient(270deg, #f7f8f9, transparent); }
.twaino-articles-track { display: flex; gap: 20px; animation: articlesScroll 35s linear infinite; width: max-content; }
.twaino-articles-track:hover { animation-play-state: paused; }
@keyframes articlesScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.twaino-article-card { flex-shrink: 0; width: 290px; background: #fff; border-radius: 12px; overflow: hidden; border: 1px solid #eee; transition: all 0.3s; }
.twaino-article-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.08); }
.twaino-article-card img { width: 100%; height: 160px; object-fit: cover; }
.twaino-article-card .article-body { padding: 14px; }
.twaino-article-card h4 { font-size: 13.5px; font-weight: 600; color: #010643; line-height: 1.4; margin-bottom: 5px; }
.twaino-article-card h4 a { color: inherit; text-decoration: none; }
.twaino-article-card h4 a:hover { color: #56aea4; }
.twaino-article-card .article-meta { font-size: 11px; color: #999; }

/* --- FAQ (tabbed layout) --- */
.twaino-faq-tabbed { max-width: 820px; margin: 0 auto; padding: 0 20px; position: relative; overflow: visible; }
.twaino-faq-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.twaino-faq-tab { background: #f0f0f0; border: 2px solid transparent; padding: 10px 22px; font-size: 14px; font-weight: 600; color: #999; cursor: pointer; border-radius: 28px; transition: all 0.3s; white-space: nowrap; }
.twaino-faq-tab:hover { color: #010643; background: #e8f5f2; border-color: #c8e6e0; }
.twaino-faq-tab.is-active { background: #56aea4; color: #fff; border-color: #56aea4; }
.twaino-faq-tab.is-active:hover { background: #4a9e94; border-color: #4a9e94; color: #fff; }
.twaino-faq-panel { display: none; }
.twaino-faq-panel.is-active { display: block; animation: faqFadeIn 0.3s ease; }
@keyframes faqFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.twaino-faq-list { margin: 0; }
.twaino-faq-item { border: 1px solid #e5e5e5; border-radius: 10px; margin-bottom: 8px; overflow: hidden; background: #fff; transition: border-color 0.3s; position: relative; z-index: 1; }
.twaino-faq-item:hover, .twaino-faq-item.is-open { border-color: #56aea4; }
.twaino-faq-question { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; cursor: pointer; font-size: 14px; font-weight: 600; color: #010643; background: none; border: none; width: 100%; text-align: left; gap: 8px; }
.twaino-faq-question .faq-chevron { flex-shrink: 0; width: 16px; height: 16px; transition: transform 0.3s; color: #56aea4; }
.twaino-faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.twaino-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 18px; }
.twaino-faq-item.is-open .twaino-faq-answer { max-height: 400px; padding: 8px 18px 14px; }
.twaino-faq-answer p { margin: 0; font-size: 14px; color: #575760; line-height: 1.7; }

/* --- CTA + FOOTER GRADIENT --- */
.twaino-cta-section { padding: 50px 20px 30px !important; margin-bottom: 0 !important; }
.twaino-cta-box { background: linear-gradient(135deg, #010643, #0099bc); border-radius: 18px; padding: 50px 40px; text-align: center; max-width: 850px; margin: 0 auto; }
.twaino-cta-box h2 { font-size: 28px; font-weight: 700; margin-bottom: 12px; color: #fff; }
.twaino-cta-box p { font-size: 16px; opacity: 0.9; margin-bottom: 24px; color: #fff; }
.twaino-cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.twaino-btn-white { display: inline-block; background: #fff; color: #010643 !important; padding: 13px 28px; border-radius: 30px; font-weight: 600; font-size: 14px; text-decoration: none; transition: all 0.3s; }
.twaino-btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(255,255,255,0.3); }
.twaino-btn-outline-white { display: inline-block; background: transparent; color: #fff !important; padding: 13px 28px; border-radius: 30px; font-weight: 600; font-size: 14px; text-decoration: none; border: 2px solid #fff; transition: all 0.3s; }
.twaino-btn-outline-white:hover { background: #fff; color: #010643 !important; }
/* Gradient bridge */
.twaino-gradient-bridge {
    height: 80px; margin: 0 !important; padding: 0 !important;
    background: linear-gradient(to bottom, #f7f8f9 0%, #8dcfc7 40%, #56aea4 100%);
    width: 100vw !important; max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    position: relative; overflow: hidden;
}

/* --- KILL GAP --- */
.home .inside-article, .page-id-1028 .inside-article, .page-id-35996 .inside-article { padding-bottom: 0 !important; margin-bottom: 0 !important; }
.home .entry-content, .page-id-1028 .entry-content, .page-id-35996 .entry-content { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.home article.post-1028, .page-id-1028 article, .page-id-35996 article, .home .site-content, .page-id-1028 .site-content, .page-id-35996 .site-content { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.home #content, .page-id-1028 #content, .page-id-35996 #content { margin-bottom: 0 !important; padding-bottom: 0 !important; }
.home .site-main, .page-id-1028 .site-main, .page-id-35996 .site-main { margin-bottom: 0 !important; padding-bottom: 0 !important; }

/* ===========================
   DECORATIVE ELEMENTS — organic identity
   =========================== */

/* --- Section backgrounds: break the white-grey monotony --- */
.twaino-hero { background: linear-gradient(160deg, #fff 40%, #e8f5f2 100%); position: relative; overflow: hidden; }
.twaino-founder { background: linear-gradient(135deg, #edf7f5 0%, #fff 60%, #e8f5f2 100%) !important; }

/* Methodology: overflow visible for leaf decoration to extend beyond content */
.twaino-methodology-wrap { position: relative; overflow: visible; }
.twaino-methodology-wrap.twaino-reveal { overflow: visible; }
/* Parent blocks must also allow overflow for the leaf to show */
.wp-block-group:has(.twaino-methodology-wrap) { overflow: visible !important; }
.wp-block-group:has(.twaino-methodology-wrap) > .wp-block-group__inner-container { overflow: visible !important; }

/* --- Tropical leaf SVGs (realistic, not ghost-like) --- */
/* Leaf type 1: Monstera deliciosa — wide leaf with split edges + holes */
/* Leaf type 2: Elongated tropical leaf with prominent midrib + side veins */
/* Leaf type 3: Small fern-like cluster */

/* Hero: NO leaves (previous SVGs looked bad) — rely on canvas particles only */

/* Methodology: banana leaf decoration (real PNG, teal-tinted) */
.twaino-methodology-wrap::before {
    content: ''; position: absolute; pointer-events: none; z-index: 0; opacity: 0.18;
    width: 500px; height: 600px; top: -100px; right: -280px;
    background: url('/wp-content/themes/generatepress_child/banana-leaf-teal.webp') no-repeat center/contain;
    animation: floatLeaf2 12s ease-in-out infinite;
}

/* Founder section: dot grid top-right for subtle texture */
/* Founder: random organic shapes (generated by JS) */
.twaino-founder-grid { position: relative; overflow: visible; }
.wp-block-group:has(.twaino-founder-grid) { overflow: visible !important; }
.wp-block-group:has(.twaino-founder-grid) > .wp-block-group__inner-container { overflow: visible !important; }
.twaino-founder { position: relative; overflow: visible; }
.twaino-founder-photo, .twaino-founder-text { position: relative; z-index: 1; }

.twaino-blob {
    position: absolute; pointer-events: none; z-index: 0;
}

/* FAQ: no leaf (was ugly), just subtle dot grid */
.twaino-faq-tabbed { position: relative; overflow: visible; }
.twaino-faq-tabbed .twaino-section-title, .wp-block-group:has(.twaino-faq-tabbed) .twaino-section-title { position: relative; z-index: 1; }

@keyframes floatLeaf1 {
    0%, 100% { transform: translateY(0) rotate(-12deg); }
    50% { transform: translateY(-14px) rotate(-8deg); }
}
@keyframes floatLeaf2 {
    0%, 100% { transform: translateY(0) rotate(15deg); }
    50% { transform: translateY(-10px) rotate(20deg); }
}
@keyframes floatLeaf2Flip {
    0%, 100% { transform: scaleX(-1) translateY(0) rotate(15deg); }
    50% { transform: scaleX(-1) translateY(-10px) rotate(20deg); }
}

/* --- Dot grid patterns --- */
.twaino-services-grid { position: relative; }
.twaino-services-grid::before {
    content: ''; position: absolute; top: -40px; left: -30px; width: 150px; height: 150px;
    pointer-events: none; z-index: 0; opacity: 0.12;
    background: radial-gradient(circle, #56aea4 2px, transparent 2px);
    background-size: 16px 16px;
}
.twaino-services-grid::after {
    content: ''; position: absolute; bottom: -30px; right: -20px; width: 120px; height: 120px;
    pointer-events: none; z-index: 0; opacity: 0.08;
    background: radial-gradient(circle, #56aea4 1.5px, transparent 1.5px);
    background-size: 14px 14px;
}

/* Resources section: Monstera leaves top-left and bottom-right */
.twaino-resources-grid { position: relative; overflow: visible; }
.wp-block-group:has(.twaino-resources-grid) { overflow: visible !important; }
.wp-block-group:has(.twaino-resources-grid) > .wp-block-group__inner-container { overflow: visible !important; }

/* Monstera leaf — top-left (real PNG, teal-tinted) */
.twaino-resources-grid::before {
    content: ''; position: absolute; top: -60px; left: -120px; width: 210px; height: 250px;
    pointer-events: none; z-index: 0; opacity: 0.18;
    background: url('/wp-content/themes/generatepress_child/monstera-teal.webp') no-repeat center/contain;
    animation: floatLeaf1 14s ease-in-out infinite;
}

/* Monstera leaf — bottom-right (mirrored PNG, teal-tinted) */
.twaino-resources-grid::after {
    content: ''; position: absolute; bottom: -130px; right: -230px; width: 400px; height: 480px;
    pointer-events: none; z-index: 0; opacity: 0.15;
    background: url('/wp-content/themes/generatepress_child/monstera-teal-flip.webp') no-repeat center/contain;
    animation: floatLeaf2 16s ease-in-out infinite;
}

/* --- Counter band: orbiting rings + dots (user liked this) --- */
.twaino-counter-band { position: relative; overflow: hidden; }
.twaino-counter-band::before,
.twaino-counter-band::after {
    content: ''; position: absolute; border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 50%; pointer-events: none;
}
.twaino-counter-band::before {
    width: 250px; height: 250px; top: -100px; left: -80px;
    animation: orbitSpin 18s linear infinite;
}
.twaino-counter-band::after {
    width: 180px; height: 180px; bottom: -60px; right: -50px;
    animation: orbitSpin 14s linear infinite reverse;
}

/* Orbiting dots */
.twaino-counter-grid { position: relative; }
.twaino-counter-grid::before,
.twaino-counter-grid::after {
    content: ''; position: absolute; width: 10px; height: 10px;
    background: rgba(255,255,255,0.5); border-radius: 50%; pointer-events: none;
    box-shadow: 60px 20px 0 rgba(255,255,255,0.3), -40px -15px 0 rgba(255,255,255,0.2),
                120px -10px 0 rgba(255,255,255,0.25), -100px 5px 0 rgba(255,255,255,0.15),
                180px 10px 0 rgba(255,255,255,0.2), -160px -5px 0 rgba(255,255,255,0.15),
                250px -8px 0 rgba(255,255,255,0.18), -220px 12px 0 rgba(255,255,255,0.12);
}
.twaino-counter-grid::before {
    top: -30px; left: 60px;
    animation: orbitDot1 16s linear infinite;
}
.twaino-counter-grid::after {
    bottom: -25px; right: 80px;
    animation: orbitDot2 12s linear infinite;
}

@keyframes orbitSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
@keyframes orbitDot1 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(100px, -25px); }
    50% { transform: translate(200px, 0); }
    75% { transform: translate(100px, 25px); }
    100% { transform: translate(0, 0); }
}
@keyframes orbitDot2 {
    0% { transform: translate(0, 0); }
    25% { transform: translate(-80px, 15px); }
    50% { transform: translate(-160px, 0); }
    75% { transform: translate(-80px, -15px); }
    100% { transform: translate(0, 0); }
}

/* --- CTA box glow --- */
.twaino-cta-box { position: relative; overflow: hidden; }
.twaino-cta-box::before {
    content: ''; position: absolute; top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(86,174,164,0.2) 0%, transparent 50%);
    animation: ctaGlow 5s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes ctaGlow {
    0% { transform: translate(-5%, 5%); opacity: 0.6; }
    100% { transform: translate(5%, -5%); opacity: 1; }
}

/* --- SCROLL REVEAL (disabled — too much animation) --- */
.twaino-reveal { opacity: 1; transform: none; }
.twaino-reveal.is-visible { opacity: 1; transform: none; }

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .twaino-hero h1 { font-size: 26px !important; }
    .twaino-hero-right { min-width: 100%; }
    .twaino-services-grid { grid-template-columns: repeat(2, 1fr); }
    .twaino-service-card img { width: 120px; height: 120px; }
    .twaino-methodology-wrap { flex-direction: column; align-items: center; }
    .twaino-method-arrow { display: none; }
    .twaino-method-card { max-width: 100%; width: 100%; }
    .twaino-results-grid { grid-template-columns: 1fr; max-width: 380px; }
    .twaino-founder-grid { flex-direction: column; text-align: center; }
    .twaino-founder-left { flex: none; width: 100%; }
    .twaino-founder-buttons { justify-content: center; }
    .twaino-founder-stats { flex-direction: column; gap: 0; }
    .twaino-founder-stat { border-radius: 0 !important; }
    .twaino-founder-stat:first-child { border-radius: 10px 10px 0 0 !important; }
    .twaino-founder-stat:last-child { border-radius: 0 0 10px 10px !important; }
    .twaino-resources-grid { grid-template-columns: 1fr; max-width: 380px; }
    .twaino-counter-grid { gap: 20px; } .twaino-counter-number { font-size: 26px; }
    .mega-promo-card { display: none; }
    .twaino-faq-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .twaino-faq-tab { padding: 8px 14px; font-size: 13px; }
}
@media (max-width: 480px) { .twaino-services-grid { grid-template-columns: 1fr; } .twaino-hero-buttons { flex-direction: column; } .twaino-hero-buttons a { text-align: center; } }


/* === DECORATIVE PLANTS (same style as monstera on Resources) === */

/* Services section: palm leaf top-left, branch bottom-right */
.twaino-services-grid { position: relative; overflow: visible; }
.wp-block-group:has(.twaino-services-grid) { overflow: visible !important; }
.wp-block-group:has(.twaino-services-grid) > .wp-block-group__inner-container { overflow: visible !important; }

.twaino-services-grid::before {
    content: ''; position: absolute; top: -120px; left: -250px; width: 420px; height: 500px;
    pointer-events: none; z-index: 0; opacity: 0.18;
    background: url('/wp-content/themes/generatepress_child/plante-background-1.webp') no-repeat center/contain;
    animation: floatLeaf1Flip 14s ease-in-out infinite;
}


/* Results section: branch leaves top-right */
.twaino-results-grid { position: relative; overflow: visible; }
.wp-block-group:has(.twaino-results-grid) { overflow: visible !important; }
.wp-block-group:has(.twaino-results-grid) > .wp-block-group__inner-container { overflow: visible !important; }

.twaino-results-grid::before {
    content: ''; position: absolute; bottom: -130px; left: -230px; width: 400px; height: 480px;
    pointer-events: none; z-index: 0; opacity: 0.18;
    background: url('/wp-content/themes/generatepress_child/plante-background-3.webp') no-repeat center/contain;
    
    animation: floatLeaf2Flip 12s ease-in-out infinite;
}

/* FAQ section: dark branch bottom-left */
.twaino-faq-tabbed::before {
    content: ''; position: absolute; top: 50%; left: -300px; width: 420px; height: 500px; margin-top: -250px;
    pointer-events: none; z-index: 0; opacity: 0.18;
    background: url('/wp-content/themes/generatepress_child/plante-background-4.webp') no-repeat center/contain;
    animation: floatLeaf1 15s ease-in-out infinite;
}
.wp-block-group:has(.twaino-faq-tabbed) { overflow: visible !important; }
.wp-block-group:has(.twaino-faq-tabbed) > .wp-block-group__inner-container { overflow: visible !important; }

/* Hide on mobile */
@media (max-width: 768px) {
    .twaino-services-grid::before,
    .twaino-services-grid::after,
    .twaino-results-grid::before,
    .twaino-faq-tabbed::before { display: none; }
}

@keyframes floatLeaf1Flip {
    0%, 100% { transform: scaleX(-1) translateY(0) rotate(-12deg); }
    50% { transform: scaleX(-1) translateY(-14px) rotate(-8deg); }
}


/* === CASE STUDIES MARQUEE === */
.twaino-cases-marquee { overflow: hidden; margin-top: 40px; }
.twaino-cases-track {
    display: flex; gap: 24px; padding: 10px 0;
    animation: casesScroll 50s linear infinite;
    width: max-content;
}
.twaino-cases-track:hover { animation-play-state: paused; }

@keyframes casesScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.twaino-case-card {
    flex: 0 0 320px; background: #fff; border-radius: 16px; padding: 22px 20px;
    border: 1px solid #eee; transition: all 0.3s;
}
.twaino-case-card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-color: #56aea4; }
.twaino-case-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.twaino-case-logo { width: 48px; height: 48px; border-radius: 10px; object-fit: contain; flex-shrink: 0; background: #f8f8f8; }
.twaino-case-header h4 { margin: 0; font-size: 17px; color: #010643; font-weight: 700; }
.twaino-case-sector { font-size: 12px; color: #56aea4; font-weight: 600; display: block; }
.twaino-case-card p { font-size: 13px; color: #575760; line-height: 1.5; margin: 0 0 14px; }
.twaino-case-stats {
    display: flex; gap: 16px; padding-top: 12px;
    border-top: 1px solid #f0f0f0;
}
.twaino-case-stats > div { flex: 1; }
.twaino-case-stats strong { display: block; font-size: 18px; color: #010643; font-weight: 800; }
.twaino-case-stats span { font-size: 11px; color: #8e8e9a; }
.twaino-case-duration { display: block; margin-top: 8px; font-size: 11px; color: #56aea4; font-weight: 600; }
.twaino-cases-link { text-align: center; margin-top: 14px; }
.twaino-cases-link a { color: #56aea4; font-weight: 600; font-size: 14px; text-decoration: none; }
.twaino-cases-link a:hover { color: #0099bc; }

@media (max-width: 768px) {
    .twaino-case-card { flex: 0 0 280px; }
    .twaino-case-stats strong { font-size: 16px; }
    .twaino-cases-track { animation-duration: 35s; }
}

/* === TESTIMONIALS MARQUEE === */
.twaino-testimonials { overflow: hidden; }
.twaino-testimonials-track {
    display: flex; gap: 24px; padding: 10px 0;
    animation: testimonialsScroll 40s linear infinite;
    width: max-content;
}
.twaino-testimonials-track:hover { animation-play-state: paused; }

@keyframes testimonialsScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.twaino-testimonial-card {
    flex: 0 0 360px; background: #fff; border-radius: 16px; padding: 28px 24px;
    border: 1px solid #eee; transition: all 0.3s;
    position: relative;
}
.twaino-testimonial-card:hover { transform: translateY(-3px); box-shadow: 0 10px 35px rgba(0,0,0,0.08); border-color: #56aea4; }
.twaino-stars { color: #f5a623; font-size: 18px; margin-bottom: 12px; letter-spacing: 2px; }
.twaino-testimonial-card blockquote {
    font-size: 13.5px; color: #575760; line-height: 1.7; margin: 0 0 16px; padding: 0;
    border: none; font-style: italic;
}
.twaino-testimonial-author { display: flex; align-items: center; gap: 12px; }
.twaino-testimonial-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.twaino-testimonial-author > div { display: flex; flex-direction: column; gap: 2px; }
.twaino-testimonial-author strong { font-size: 14px; color: #010643; }
.twaino-testimonial-author span { font-size: 12px; color: #56aea4; font-weight: 500; }

.twaino-google-badge { text-align: center; margin-top: 14px; }
.twaino-google-badge a { color: #56aea4; font-weight: 600; font-size: 14px; text-decoration: none; }
.twaino-google-badge a:hover { color: #0099bc; }



/* === FOUNDER VIDEO + STATS === */
.twaino-founder-stats {
    display: flex; gap: 0; margin-bottom: 20px;
}
.twaino-founder-stat {
    flex: 1; text-align: center; padding: 14px 12px;
    border: 1px solid rgba(86,174,164,0.15); margin-right: -1px;
    background: rgba(255,255,255,0.7); transition: background 0.3s;
}
.twaino-founder-stat:first-child { border-radius: 10px 0 0 10px; }
.twaino-founder-stat:last-child { border-radius: 0 10px 10px 0; margin-right: 0; }
.twaino-founder-stat:hover { background: #fff; }
.twaino-founder-stat strong { display: block; font-size: 22px; color: #010643; font-weight: 800; }
.twaino-founder-stat span { font-size: 11px; color: #575760; }

.twaino-founder-video { width: 100%; }
.twaino-video-wrapper {
    position: relative; cursor: pointer; border-radius: 12px; overflow: hidden;
    width: 100%; aspect-ratio: 16/9; background: #000;
}
.twaino-video-wrapper img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: opacity 0.3s;
}
.twaino-video-wrapper:hover img { opacity: 0.85; }
.twaino-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: none; border: none; cursor: pointer; padding: 0;
    transition: transform 0.3s;
}
.twaino-play-btn svg { width: 68px; height: 48px; }
.twaino-play-btn:hover { transform: translate(-50%, -50%) scale(1.1); }
.twaino-video-wrapper iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none;
}

@media (max-width: 768px) {
    .twaino-video-wrapper { max-width: 100%; }
}


/* === VIDEO MODAL === */
.twaino-video-modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: 10000;
    background: rgba(0,0,0,0.85); display: flex; align-items: center; justify-content: center;
    cursor: pointer; animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.twaino-video-modal-inner {
    position: relative; width: 90vw; max-width: 900px; aspect-ratio: 16/9; cursor: default;
}
.twaino-video-modal-inner iframe {
    width: 100%; height: 100%; border: none; border-radius: 12px;
}
.twaino-video-modal-close {
    position: absolute; top: -40px; right: 0; background: none; border: none;
    color: #fff; font-size: 32px; cursor: pointer; line-height: 1;
    transition: transform 0.2s;
}
.twaino-video-modal-close:hover { transform: scale(1.2); }

/* === CTA STICKY MOBILE === */
.twaino-sticky-cta {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 999;
    background: #010643; padding: 12px 20px; text-align: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transform: translateY(100%); transition: transform 0.3s ease;
}
.twaino-sticky-cta.is-visible { transform: translateY(0); }
.twaino-sticky-cta a {
    display: block; background: #56aea4; color: #fff !important; padding: 12px 24px;
    border-radius: 28px; font-weight: 600; font-size: 14px; text-decoration: none;
    transition: background 0.3s;
}
.twaino-sticky-cta a:hover { background: #0099bc; }

@media (max-width: 768px) {
    .twaino-sticky-cta { display: block; }
    .twaino-testimonial-card { flex: 0 0 280px; }
    .twaino-testimonials-track { animation-duration: 30s; }
}
