/*
Theme Name: The Digital Bounce
Theme URI: https://thedigitalbounce.com
Author: The Digital Bounce
Author URI: https://thedigitalbounce.com
Description: Custom WordPress theme for The Digital Bounce — ERP Consulting, VoIP Softswitch & AI Integration. Fully SEO-optimised with schema markup, conversion-focused layouts, and mobile-first responsive design.
Version: 2.0
License: Private
Text Domain: tdb
Tags: business, consulting, erp, voip, ai, seo
*/

/* ============================================================
   THE DIGITAL BOUNCE — Master Stylesheet
   thedigitalbounce.com
   ============================================================ */

:root {
  --navy:        #0A0F1E;
  --navy-mid:    #111827;
  --navy-soft:   #1a2235;
  --navy-card:   #141c2e;
  --electric:    #00D4FF;
  --edim:        rgba(0,212,255,0.10);
  --eglow:       rgba(0,212,255,0.22);
  --warm:        #FF6B35;
  --wdim:        rgba(255,107,53,0.10);
  --gold:        #F59E0B;
  --gdim:        rgba(245,158,11,0.10);
  --green:       #10B981;
  --grdim:       rgba(16,185,129,0.10);
  --text:        #E8EDF5;
  --muted:       #8A96A8;
  --dim:         #4A5568;
  --bdr:         rgba(255,255,255,0.06);
  --bde:         rgba(0,212,255,0.18);
  --radius:      10px;
  --radius-lg:   14px;
  --font-d:      'DM Serif Display', Georgia, serif;
  --font-b:      'DM Sans', system-ui, sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--navy); color: var(--text); font-family: var(--font-b); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-b); }

/* TYPOGRAPHY */
h1,h2,h3 { font-family: var(--font-d); letter-spacing: -0.02em; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; }
h3 { font-size: 1.2rem; line-height: 1.3; }
h4 { font-size: 0.95rem; font-weight: 600; color: var(--text); }
h1 em, h2 em { font-style: italic; color: var(--electric); }
h2 .warm { color: var(--warm); }
h2 .gold { color: var(--gold); }
p { color: var(--muted); line-height: 1.75; }
strong { color: var(--text); }

/* LAYOUT */
.tdb-wrap { padding-top: 68px; }
.tdb-section { padding: 5.5rem 5%; }
.tdb-inner { max-width: 1160px; margin: 0 auto; width: 100%; }
.tdb-inner-sm { max-width: 760px; margin: 0 auto; }
.tdb-inner-md { max-width: 960px; margin: 0 auto; }

/* GRIDS */
.tdb-col2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.tdb-colw { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 4.5rem; align-items: start; }
.tdb-g2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; }
.tdb-g3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.25rem; }
.tdb-g4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1rem; }

/* SECTION TAGS */
.tdb-tag { display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--electric); margin-bottom: 0.8rem; }
.tdb-tag.orange { color: var(--warm); }
.tdb-tag.gold { color: var(--gold); }
.tdb-tag.green { color: var(--green); }
.tdb-slead { font-size: 1rem; color: var(--muted); font-weight: 300; line-height: 1.8; margin-top: 0.6rem; margin-bottom: 2.75rem; }

/* GRID BACKGROUND */
.tdb-gbg { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px); background-size: 56px 56px; pointer-events: none; mask-image: radial-gradient(ellipse at 50% 50%, black 20%, transparent 80%); }

/* KICKER BADGE */
.tdb-kicker { display: inline-flex; align-items: center; gap: 8px; background: var(--edim); border: 0.5px solid var(--bde); border-radius: 100px; padding: 0.3rem 1rem; font-size: 0.73rem; font-weight: 700; color: var(--electric); letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 1.2rem; }
.tdb-kicker::before { content: ''; width: 6px; height: 6px; background: var(--electric); border-radius: 50%; animation: tdb-pulse 2s infinite; }
.tdb-kicker.gold { background: var(--gdim); border-color: rgba(245,158,11,0.22); color: var(--gold); }
.tdb-kicker.gold::before { background: var(--gold); }
@keyframes tdb-pulse { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.4; transform:scale(0.8); } }

/* BUTTONS */
.tdb-btn { display: inline-flex; align-items: center; gap: 8px; padding: 0.85rem 1.9rem; border-radius: 4px; font-weight: 600; font-size: 0.93rem; transition: transform 0.2s, box-shadow 0.2s; cursor: pointer; border: none; font-family: var(--font-b); }
.tdb-btn-e { background: var(--electric); color: var(--navy); }
.tdb-btn-e:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--eglow); }
.tdb-btn-o { background: var(--warm); color: #fff; }
.tdb-btn-o:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,53,0.3); }
.tdb-btn-g { background: var(--gold); color: var(--navy); }
.tdb-btn-g:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,158,11,0.3); }
.tdb-btn-gh { background: transparent; color: var(--text); border: 0.5px solid var(--bde); }
.tdb-btn-gh:hover { background: var(--edim); }

/* CARDS */
.tdb-card { background: var(--navy-card); border: 0.5px solid var(--bdr); border-radius: var(--radius-lg); padding: 1.85rem 1.65rem; position: relative; transition: border-color 0.25s, transform 0.25s; }
.tdb-card:hover { border-color: var(--bde); transform: translateY(-2px); }
.tdb-card-tl::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1.5px; background: linear-gradient(90deg, transparent, var(--electric), transparent); opacity: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; transition: opacity 0.25s; }
.tdb-card:hover.tdb-card-tl::before { opacity: 0.55; }
.tdb-cico { width: 44px; height: 44px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; margin-bottom: 1.1rem; background: var(--edim); border: 0.5px solid var(--bde); }
.tdb-cico.o { background: var(--wdim); border-color: rgba(255,107,53,0.22); }
.tdb-cico.g { background: var(--gdim); border-color: rgba(245,158,11,0.22); }
.tdb-cico.gr { background: var(--grdim); border-color: rgba(16,185,129,0.22); }
.tdb-learn { display: inline-flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--electric); font-weight: 500; margin-top: 0.9rem; transition: gap 0.2s; }
.tdb-learn:hover { gap: 10px; }

/* SIDEBAR CARD */
.tdb-scard { background: var(--navy-soft); border: 0.5px solid var(--bdr); border-radius: var(--radius-lg); overflow: hidden; position: sticky; top: 90px; }
.tdb-sh { background: linear-gradient(135deg, rgba(0,212,255,0.07), rgba(0,212,255,0.02)); border-bottom: 0.5px solid var(--bdr); padding: 1.4rem 1.65rem; }
.tdb-sh h4 { font-family: var(--font-d); font-size: 1.05rem; color: var(--text); margin-bottom: 0.2rem; }
.tdb-sh p { font-size: 0.78rem; color: var(--muted); }
.tdb-sb { padding: 1.1rem 1.65rem; }

/* VOIP LIST ITEMS */
.tdb-vi { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1rem 0; border-bottom: 0.5px solid var(--bdr); }
.tdb-vi:last-child { border-bottom: none; padding-bottom: 0; }
.tdb-vdot { width: 7px; height: 7px; background: var(--electric); border-radius: 50%; margin-top: 8px; flex-shrink: 0; }
.tdb-vi h5 { font-size: 0.87rem; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.tdb-vi p { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }

/* FEATURE LIST */
.tdb-fl { display: flex; flex-direction: column; gap: 0.9rem; }
.tdb-fl li { display: flex; align-items: flex-start; gap: 0.8rem; font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.tdb-fl li::before { content: ''; min-width: 18px; height: 18px; background: var(--edim); border: 0.5px solid var(--bde); border-radius: 50%; margin-top: 2px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6l3 3 5-5' stroke='%2300D4FF' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; }

/* STEPS */
.tdb-steps { display: flex; flex-direction: column; }
.tdb-step { display: flex; gap: 1.4rem; padding: 1.35rem 0; border-bottom: 0.5px solid var(--bdr); }
.tdb-step:last-child { border-bottom: none; }
.tdb-sn { font-family: var(--font-d); font-size: 1.5rem; color: var(--electric); opacity: 0.28; line-height: 1; width: 34px; flex-shrink: 0; padding-top: 2px; }
.tdb-step h4 { margin-bottom: 0.3rem; }
.tdb-step p { font-size: 0.86rem; line-height: 1.65; }

/* FAQ */
.tdb-faq { display: flex; flex-direction: column; margin-top: 2.25rem; }
.tdb-faq-item { border-bottom: 0.5px solid var(--bdr); }
.tdb-faq-q { width: 100%; background: none; border: none; color: var(--text); font-family: var(--font-b); font-size: 0.93rem; font-weight: 600; text-align: left; padding: 1.2rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.tdb-faq-icon { width: 20px; height: 20px; border: 0.5px solid var(--bde); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--electric); font-size: 1rem; flex-shrink: 0; transition: transform 0.25s; }
.tdb-faq-item.open .tdb-faq-icon { transform: rotate(45deg); }
.tdb-faq-a { display: none; font-size: 0.87rem; color: var(--muted); line-height: 1.75; padding-bottom: 1.2rem; }
.tdb-faq-item.open .tdb-faq-a { display: block; }

/* TESTIMONIALS */
.tdb-tg { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; margin-top: 2.75rem; }
.tdb-tc { background: var(--navy-soft); border: 0.5px solid var(--bdr); border-radius: var(--radius-lg); padding: 1.65rem; position: relative; }
.tdb-tc::before { content: '\201C'; font-family: var(--font-d); font-size: 3.2rem; color: var(--electric); opacity: 0.22; position: absolute; top: 0.4rem; left: 1.4rem; line-height: 1; }
.tdb-stars { color: var(--gold); font-size: 0.7rem; letter-spacing: 2px; margin-bottom: 0.6rem; }
.tdb-tb { font-size: 0.87rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.1rem; }
.tdb-au { display: flex; align-items: center; gap: 0.7rem; border-top: 0.5px solid var(--bdr); padding-top: 0.8rem; }
.tdb-av { width: 35px; height: 35px; border-radius: 50%; background: var(--edim); border: 0.5px solid var(--bde); display: flex; align-items: center; justify-content: center; font-size: 0.72rem; font-weight: 700; color: var(--electric); }
.tdb-an { font-size: 0.83rem; font-weight: 600; color: var(--text); }
.tdb-ar { font-size: 0.73rem; color: var(--dim); }

/* TRUST BAR */
.tdb-trust { padding: 1.85rem 5%; background: var(--navy-mid); border-top: 0.5px solid var(--bdr); border-bottom: 0.5px solid var(--bdr); }
.tdb-trust .tdb-inner { display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.tdb-tl { font-size: 0.7rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.tdb-ptags { display: flex; gap: 0.65rem; flex-wrap: wrap; justify-content: center; }
.tdb-ptag { font-size: 0.8rem; font-weight: 500; color: var(--muted); padding: 0.3rem 0.85rem; border: 0.5px solid var(--bdr); border-radius: 100px; transition: color 0.2s, border-color 0.2s; }
.tdb-ptag:hover { color: var(--electric); border-color: var(--bde); }

/* CTA BAND */
.tdb-ctab { border-top: 0.5px solid var(--bdr); text-align: center; background: var(--navy-mid); }
.tdb-ctab h2 { margin-bottom: 0.8rem; }
.tdb-cact { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.65rem; }
.tdb-ccont { display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap; }
.tdb-ccont a { font-size: 0.85rem; color: var(--electric); }
.tdb-ccont span { font-size: 0.85rem; color: var(--muted); }

/* PAGE HERO */
.tdb-phero { padding: 7rem 5% 4.5rem; background: var(--navy-mid); border-bottom: 0.5px solid var(--bdr); position: relative; overflow: hidden; }
.tdb-phero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(0,212,255,0.05), transparent 70%); pointer-events: none; }
.tdb-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--dim); margin-bottom: 1.2rem; flex-wrap: wrap; }
.tdb-breadcrumb a { color: var(--dim); transition: color 0.2s; }
.tdb-breadcrumb a:hover { color: var(--electric); }
.tdb-phero h1 { max-width: 820px; margin-bottom: 1rem; }
.tdb-phero .tdb-sub { font-size: 1.05rem; color: var(--muted); max-width: 640px; font-weight: 300; margin-bottom: 2rem; line-height: 1.75; }
.tdb-hactions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* STAT PILLS */
.tdb-stats-row { display: flex; gap: 2.5rem; flex-wrap: wrap; margin-top: 2rem; }
.tdb-stat-pill .num { font-family: var(--font-d); font-size: 2.1rem; color: var(--text); line-height: 1; }
.tdb-stat-pill .num em { color: var(--electric); font-style: normal; }
.tdb-stat-pill .lbl { font-size: 0.73rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }

/* COMPARE TABLE */
.tdb-ctbl { width: 100%; border-collapse: collapse; margin-top: 1.75rem; }
.tdb-ctbl th { padding: 0.9rem 1.1rem; text-align: left; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--dim); border-bottom: 0.5px solid var(--bdr); }
.tdb-ctbl td { padding: 0.9rem 1.1rem; font-size: 0.86rem; color: var(--muted); border-bottom: 0.5px solid var(--bdr); vertical-align: top; line-height: 1.55; }
.tdb-ctbl tr:last-child td { border-bottom: none; }
.tdb-ctbl td:first-child { color: var(--text); font-weight: 500; }
.tdb-ctbl .hl { background: rgba(0,212,255,0.04); }
.tdb-yes { color: var(--electric); font-weight: 600; }
.tdb-part { color: var(--gold); font-weight: 600; }

/* BLOG CARDS */
.tdb-blog-card { background: var(--navy-card); border: 0.5px solid var(--bdr); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.25s, transform 0.25s; }
.tdb-blog-card:hover { border-color: var(--bde); transform: translateY(-3px); }
.tdb-blog-img { height: 180px; background: linear-gradient(135deg, rgba(0,212,255,0.08), rgba(0,212,255,0.02)); display: flex; align-items: center; justify-content: center; font-size: 2.5rem; border-bottom: 0.5px solid var(--bdr); }
.tdb-blog-body { padding: 1.5rem; }
.tdb-blog-meta { display: flex; align-items: center; gap: 0.75rem; font-size: 0.75rem; color: var(--dim); margin-bottom: 0.75rem; }
.tdb-blog-cat { background: var(--edim); color: var(--electric); border: 0.5px solid var(--bde); border-radius: 100px; padding: 2px 8px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; }
.tdb-blog-card h3 { font-size: 1rem; color: var(--text); line-height: 1.4; margin-bottom: 0.5rem; }
.tdb-blog-read { font-size: 0.8rem; color: var(--electric); font-weight: 500; margin-top: 1rem; display: inline-flex; align-items: center; gap: 5px; }

/* CONTACT FORM */
.tdb-cform { background: var(--navy-soft); border: 0.5px solid var(--bdr); border-radius: var(--radius-lg); padding: 2.5rem; }
.tdb-frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 0; }
.tdb-fg { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.tdb-fg label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.tdb-fg input, .tdb-fg textarea, .tdb-fg select { background: var(--navy-card); border: 0.5px solid var(--bdr); border-radius: 6px; padding: 0.75rem 1rem; color: var(--text); font-family: var(--font-b); font-size: 0.9rem; transition: border-color 0.2s; width: 100%; }
.tdb-fg input:focus, .tdb-fg textarea:focus, .tdb-fg select:focus { outline: none; border-color: var(--bde); }
.tdb-fg select option { background: var(--navy-card); }
.tdb-fg textarea { min-height: 130px; resize: vertical; }
.tdb-submit { width: 100%; background: var(--electric); color: var(--navy); border: none; padding: 1rem; border-radius: 4px; font-size: 1rem; font-weight: 700; cursor: pointer; transition: opacity 0.2s; font-family: var(--font-b); }
.tdb-submit:hover { opacity: 0.88; }

/* ABOUT TIMELINE */
.tdb-timeline { display: flex; flex-direction: column; }
.tdb-tl-item { display: flex; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 0.5px solid var(--bdr); }
.tdb-tl-item:last-child { border-bottom: none; }
.tdb-tl-year { font-family: var(--font-d); font-size: 1rem; color: var(--electric); width: 52px; flex-shrink: 0; padding-top: 2px; }
.tdb-tl-item h4 { color: var(--text); margin-bottom: 0.3rem; }
.tdb-tl-item p { font-size: 0.86rem; line-height: 1.6; }

/* REVEAL ANIMATIONS */
.tdb-rv { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.tdb-rv.vis { opacity: 1; transform: translateY(0); }
.tdb-d1 { transition-delay: 0.08s; }
.tdb-d2 { transition-delay: 0.16s; }
.tdb-d3 { transition-delay: 0.24s; }
.tdb-d4 { transition-delay: 0.32s; }

/* WORDPRESS GUTENBERG ALIGNMENT */
.wp-block-image img { border-radius: var(--radius); }
.entry-content p { color: var(--muted); margin-bottom: 1.25rem; }
.entry-content h2, .entry-content h3 { color: var(--text); margin: 2rem 0 1rem; }
.entry-content ul { color: var(--muted); padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content a { color: var(--electric); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .tdb-col2, .tdb-colw { grid-template-columns: 1fr; gap: 2.5rem; }
  .tdb-scard { position: static; }
  .tdb-section { padding: 4rem 5%; }
  .tdb-hactions { flex-direction: column; }
}
@media (max-width: 600px) {
  .tdb-frow { grid-template-columns: 1fr; }
  .tdb-stats-row { gap: 1.5rem; }
  .tdb-cact { flex-direction: column; align-items: center; }
  .tdb-ctbl { font-size: 0.78rem; }
  .tdb-ctbl th, .tdb-ctbl td { padding: 0.65rem 0.6rem; }
}

/* ── COMPONENT IMPORTS ── */
/* nav-footer.css and components.css are enqueued via functions.php */

/* ── v5 ADDITIONS ── */
.tdb-col2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.tdb-g4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; }
.tdb-stat-pill .tdb-sp-num { font-family: var(--font-display); font-size: 2.1rem; color: var(--text); line-height: 1; }
.tdb-stat-pill .tdb-sp-lbl { font-size: .73rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 3px; }
.tdb-g2 { display: grid; grid-template-columns: repeat(auto-fit,minmax(280px,1fr)); gap: 1.25rem; }
.entry-content p { color: var(--muted); margin-bottom: 1.25rem; }
.entry-content h2, .entry-content h3 { color: var(--text); margin: 2rem 0 1rem; }
.entry-content ul { color: var(--muted); padding-left: 1.5rem; margin-bottom: 1.25rem; }
.entry-content a { color: var(--electric); }
.tdb-phero .tdb-kicker { display: inline-flex; align-items: center; gap: 8px; background: var(--edim); border: .5px solid var(--bde); border-radius: 100px; padding: .3rem 1rem; font-size: .73rem; font-weight: 700; color: var(--electric); letter-spacing: .07em; text-transform: uppercase; margin-bottom: 1.2rem; }
.tdb-phero .tdb-kicker::before { content: ''; width: 6px; height: 6px; background: var(--electric); border-radius: 50%; animation: tdb-pulse 2s infinite; }
.tdb-sp-num em { color: var(--electric); font-style: normal; }
@media(max-width:900px) {
  .tdb-col2 { grid-template-columns: 1fr; gap: 2.5rem; }
  .tdb-g4 { grid-template-columns: repeat(2,1fr); }
}
@media(max-width:600px) {
  .tdb-frow { grid-template-columns: 1fr; }
  .tdb-g4 { grid-template-columns: 1fr 1fr; }
}
