/* ===================================================================
   CODESPHERE AFRICA — SHARED SITE STYLESHEET
   Design tokens + components used across index.php, about.php,
   services.php, pricing.php, contact.php and includes/footer.php.
   Keep this file in sync if the homepage's inline tokens change.
   =================================================================== */
:root{
  --bg-base:      #08090c;
  --bg-surface:   #121419;
  --bg-surface-2: #191c24;
  --border-hair:  #23262f;
  --text-primary: #f4f5f7;
  --text-muted:   #9298a6;
  --text-faint:   #5c616e;
  --blue:         #3b82f6;
  --blue-dim:     #1d4ed8;
  --orange:       #f97316;
  --green:        #22c55e;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;
  --radius:       12px;
  --ease:         cubic-bezier(.22,1,.36,1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4,h5,h6{ font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); }
a{ text-decoration:none; color: inherit; }
.container{ max-width: 1200px; padding-left: 24px; padding-right: 24px; }
@media (min-width: 768px){ .container{ padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1200px){ .container{ padding-left: 40px; padding-right: 40px; max-width: 1200px; } }

::selection{ background: var(--blue); color: #fff; }

/* Skip-link accessibility */
.skip-link{ position:absolute; left:-999px; top:0; background:var(--blue); color:#fff; padding:.6rem 1rem; z-index:2000; border-radius:0 0 8px 0; }
.skip-link:focus{ left:0; }

/* Focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

/* ===================================================================
   SECTION RHYTHM
   =================================================================== */
.section{ padding: 96px 0; position: relative; }
.section-tight{ padding: 64px 0; }
.eyebrow{
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.eyebrow::before{ content: ''; width: 18px; height: 1px; background: var(--orange); display:inline-block; }
.section-title{ font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: .75rem; }
.section-subtitle{ color: var(--text-muted); font-size: 1.05rem; max-width: 620px; }
.section-head{ margin-bottom: 3rem; }
.hero, .stats-bar, .cta-banner, .section, .page-header{ padding-left: 0; padding-right: 0; }

/* Reveal-on-scroll (vanilla, no external lib) */
.reveal{ opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity: 1; transform: translateY(0); }

/* ===================================================================
   INNER-PAGE HEADER / BREADCRUMB
   (used by about.php, services.php, pricing.php, contact.php)
   =================================================================== */
.page-header{
  position: relative;
  padding: 148px 0 64px;
  background:
    radial-gradient(650px 380px at 88% -10%, rgba(59,130,246,.16), transparent 60%),
    radial-gradient(550px 320px at -5% 40%, rgba(249,115,22,.09), transparent 60%),
    var(--bg-base);
  border-bottom: 1px solid var(--border-hair);
  overflow: hidden;
}
.page-header-grid{
  position: absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 75% 10%, black 5%, transparent 65%);
  pointer-events: none;
}
.breadcrumb-csa{
  list-style:none; display:flex; flex-wrap:wrap; align-items:center; gap:.5rem;
  padding:0; margin: 0 0 1.5rem; font-family: var(--font-mono); font-size: .78rem;
}
.breadcrumb-csa li{ display:flex; align-items:center; gap:.5rem; color: var(--text-faint); }
.breadcrumb-csa a{ color: var(--text-muted); transition: color .2s; }
.breadcrumb-csa a:hover{ color: var(--orange); }
.breadcrumb-csa li[aria-current] { color: var(--text-primary); }
.page-header h1{ font-size: clamp(2.1rem, 4.2vw, 3.2rem); line-height: 1.1; margin-bottom: 1rem; max-width: 780px; }
.page-header h1 .accent{ color: var(--blue); }
.page-header-lead{ color: var(--text-muted); font-size: 1.08rem; max-width: 620px; margin: 0; }

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn-primary-csa{
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  background: var(--blue); color: #fff; padding: .95rem 1.75rem; border-radius: 10px;
  display: inline-flex; align-items: center; gap: .6rem; border: 1px solid var(--blue);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), background .22s;
}
.btn-primary-csa:hover{ background: var(--blue-dim); color:#fff; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(59,130,246,.65); }

.btn-outline-csa{
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  background: transparent; color: var(--text-primary); padding: .95rem 1.75rem; border-radius: 10px;
  border: 1px solid var(--border-hair); display: inline-flex; align-items: center; gap: .6rem;
  transition: border-color .22s, transform .22s var(--ease), background .22s;
}
.btn-outline-csa:hover{ border-color: var(--orange); color: var(--text-primary); background: rgba(249,115,22,.06); transform: translateY(-2px); }

.btn-whatsapp-csa{
  font-family: var(--font-body); font-weight: 600; font-size: .98rem;
  background: rgba(34,197,94,.1); color: var(--green); padding: .95rem 1.75rem; border-radius: 10px;
  border: 1px solid rgba(34,197,94,.35); display: inline-flex; align-items: center; gap: .6rem;
  transition: transform .22s var(--ease), background .22s;
}
.btn-whatsapp-csa:hover{ background: rgba(34,197,94,.18); color: var(--green); transform: translateY(-2px); }

/* ===================================================================
   STATS BAR
   =================================================================== */
.stats-bar{ background: var(--bg-surface); border-bottom: 1px solid var(--border-hair); padding: 52px 0; }
.stat-item{ text-align: center; }
.stat-number{ font-family: var(--font-display); font-size: 2.2rem; font-weight: 700; color: var(--text-primary); }
.stat-number .plus{ color: var(--orange); }
.stat-label{ color: var(--text-muted); font-size: .85rem; margin-top: .25rem; }

/* ===================================================================
   CARDS: SERVICES / PRICING / PRODUCTS / CONTACT / TESTIMONIALS
   =================================================================== */
.service-card{
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius);
  padding: 2rem; height: 100%; transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.service-card:hover{ transform: translateY(-6px); border-color: rgba(59,130,246,.4); background: var(--bg-surface-2); }
.service-card-icon{
  width: 48px; height: 48px; border-radius: 10px; display:flex; align-items:center; justify-content:center;
  background: rgba(59,130,246,.12); color: var(--blue); font-size: 1.2rem; margin-bottom: 1.25rem;
}
.service-card-title{ font-size: 1.15rem; margin-bottom: .6rem; }
.service-card-text{ color: var(--text-muted); font-size: .93rem; margin-bottom: 1.25rem; }
.service-card-link{ font-size: .87rem; font-weight: 600; color: var(--orange); display:inline-flex; align-items:center; gap:.4rem; }
.service-card-link i{ transition: transform .2s; }
.service-card-link:hover i{ transform: translateX(4px); }

.why-us-list{ list-style:none; padding:0; margin:0; }
.why-us-list li{ display:flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--border-hair); }
.why-us-list li:last-child{ border-bottom: none; }
.why-us-list i{ color: var(--green); margin-top: .2rem; }
.why-us-list strong{ color: var(--text-primary); }
.why-us-list span{ color: var(--text-muted); font-size: .95rem; }

.why-visual{
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: 16px; padding: 2.5rem;
  position: relative; overflow: hidden;
}
.why-visual::before{
  content:''; position:absolute; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.25), transparent 70%);
  top: -80px; right: -80px;
}
.why-visual .big-icon{ font-size: 3.2rem; color: var(--orange); }

.product-card{
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius);
  height: 100%; display:flex; flex-direction:column; overflow: hidden;
  border-top: 3px solid var(--blue); transition: transform .3s var(--ease), box-shadow .3s;
}
.product-card:hover{ transform: translateY(-6px); box-shadow: 0 30px 50px -25px rgba(0,0,0,.6); }
.product-card-header{ padding: 1.75rem 1.75rem 1rem; }
.product-card-icon{ width: 46px; height: 46px; border-radius: 10px; display:flex; align-items:center; justify-content:center; color:#fff; font-size: 1.1rem; margin-bottom: 1rem; }
.product-card-title{ font-size: 1.2rem; margin-bottom: .35rem; }
.product-card-tagline{ color: var(--text-muted); font-size: .88rem; }
.product-card-body{ padding: 0 1.75rem; flex: 1; }
.product-features{ list-style:none; padding:0; margin:0 0 1rem; }
.product-features li{ font-size: .88rem; color: var(--text-muted); padding: .4rem 0; display:flex; gap:.55rem; }
.product-features i{ color: var(--green); margin-top: .2rem; }
.product-card-footer{ padding: 1.75rem; }

.pricing-card{
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius);
  padding: 2.5rem; height:100%;
}
.pricing-card.featured{ border-color: var(--blue); background: linear-gradient(180deg, rgba(59,130,246,.08), var(--bg-surface) 40%); position: relative; }
.pricing-card.featured::after{
  content: 'MOST POPULAR'; position:absolute; top: -1px; right: 24px; background: var(--blue); color:#fff;
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .08em; padding: .3rem .7rem; border-radius: 0 0 6px 6px;
}
.pricing-label{ font-family: var(--font-mono); font-size: .8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.pricing-amount{ font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; margin-bottom: 1.5rem; }
.pricing-amount small{ font-size: 1rem; color: var(--text-muted); font-weight: 500; }

.process-step{ position: relative; }
.process-step-number{ font-family: var(--font-mono); font-size: .78rem; color: var(--orange); margin-bottom: .5rem; display:block; }
.process-step-icon{
  width: 52px; height: 52px; border-radius: 12px; background: var(--bg-surface); border: 1px solid var(--border-hair);
  display:flex; align-items:center; justify-content:center; color: var(--blue); font-size: 1.3rem; margin-bottom: 1.1rem;
}
.process-step-title{ font-size: 1.05rem; margin-bottom: .5rem; }
.process-step-desc{ color: var(--text-muted); font-size: .9rem; }
@media (min-width: 992px){
  .process-track{ position: relative; }
  .process-track::before{
    content:''; position: absolute; top: 26px; left: 12%; right: 12%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-hair) 15%, var(--border-hair) 85%, transparent);
  }
}

.testimonial-card{
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius);
  padding: 2.25rem; height: 100%;
}
.testimonial-stars{ color: var(--orange); font-size: .85rem; margin-bottom: 1rem; }
.testimonial-message{ font-size: 1.02rem; color: var(--text-primary); margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author{ display:flex; align-items:center; gap: .9rem; }
.testimonial-avatar{
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color:#fff; display:flex; align-items:center; justify-content:center;
  font-family: var(--font-display); font-weight: 700;
}
.testimonial-name{ font-weight: 600; font-size: .92rem; }
.testimonial-company{ color: var(--text-muted); font-size: .82rem; }

.contact-info-item{ display:flex; gap: 1rem; margin-bottom: 1.6rem; }
.contact-info-icon{
  width: 44px; height: 44px; border-radius: 10px; background: rgba(59,130,246,.12); color: var(--blue);
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.contact-info-text h6{ font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-faint); margin-bottom: .25rem; }
.contact-info-text p{ margin:0; color: var(--text-primary); font-size: .98rem; }
.contact-info-text a{ color: var(--text-primary); }
.contact-info-text a:hover{ color: var(--blue); }

.contact-card{ background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: 16px; padding: 2.25rem; }
.form-label{ font-size: .85rem; color: var(--text-muted); margin-bottom: .4rem; }
.form-control, .form-select{
  background: var(--bg-surface-2); border: 1px solid var(--border-hair); color: var(--text-primary);
  border-radius: 8px; padding: .7rem .9rem; font-size: .93rem;
}
.form-control:focus, .form-select:focus{
  background: var(--bg-surface-2); border-color: var(--blue); color: var(--text-primary); box-shadow: 0 0 0 3px rgba(59,130,246,.18);
}
.form-control::placeholder{ color: var(--text-faint); }
.form-check-input{ background-color: var(--bg-surface-2); border-color: var(--border-hair); }
.form-check-input:checked{ background-color: var(--blue); border-color: var(--blue); }
.form-check-label{ color: var(--text-muted); font-size: .88rem; }
.invalid-feedback{ font-size: .8rem; }

/* FAQ accordion */
.faq-accordion .accordion-item{
  background: var(--bg-surface); border: 1px solid var(--border-hair); border-radius: var(--radius) !important;
  margin-bottom: .9rem; overflow: hidden;
}
.faq-accordion .accordion-button{
  background: var(--bg-surface); color: var(--text-primary); font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 1.15rem 1.5rem; box-shadow: none;
}
.faq-accordion .accordion-button:not(.collapsed){ color: var(--blue); background: var(--bg-surface); }
.faq-accordion .accordion-button:focus{ box-shadow: none; outline: 2px solid var(--orange); outline-offset: -2px; }
.faq-accordion .accordion-button::after{ filter: invert(1) grayscale(1) brightness(1.6); }
.faq-accordion .accordion-body{ color: var(--text-muted); font-size: .95rem; padding: 0 1.5rem 1.4rem; }

/* ===================================================================
   CTA BANNER
   =================================================================== */
.cta-banner{
  background: linear-gradient(135deg, #0b1220, #131a2b 60%, #0b1220);
  border-top: 1px solid var(--border-hair); border-bottom: 1px solid var(--border-hair);
  padding: 90px 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before{
  content:''; position:absolute; inset:0;
  background: radial-gradient(500px 240px at 50% 0%, rgba(59,130,246,.22), transparent 70%);
}
.cta-banner-title{ font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: .9rem; position: relative; }
.cta-banner-text{ color: var(--text-muted); max-width: 520px; margin: 0 auto 2rem; position: relative; }

/* ===================================================================
   FOOTER
   =================================================================== */
.footer-csa{ background: var(--bg-surface); border-top: 1px solid var(--border-hair); padding: 60px 0 26px; }
.footer-brand{ font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: .9rem; }
.footer-brand .bracket{ color: var(--orange); }
.footer-desc{ color: var(--text-muted); font-size: .92rem; max-width: 320px; }
.footer-heading{ font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 1.1rem; }
.footer-links{ list-style:none; padding:0; margin:0; }
.footer-links li{ margin-bottom: .7rem; }
.footer-links a{ color: var(--text-muted); font-size: .92rem; transition: color .2s; }
.footer-links a:hover{ color: var(--orange); }
.footer-social a{
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border-hair); display:inline-flex;
  align-items:center; justify-content:center; color: var(--text-muted); margin-right: .6rem; transition: all .2s;
}
.footer-social a:hover{ color: #fff; background: var(--blue); border-color: var(--blue); }
.footer-bottom{ border-top: 1px solid var(--border-hair); margin-top: 2.5rem; padding-top: 1.6rem; font-size: .85rem; color: var(--text-faint); }

/* Floating WhatsApp button */
.float-whatsapp{
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 58px; height: 58px; border-radius: 50%; background: var(--green); color:#fff;
  display:flex; align-items:center; justify-content:center; font-size: 1.5rem;
  box-shadow: 0 10px 30px -8px rgba(34,197,94,.6);
  transition: transform .25s var(--ease);
}
.float-whatsapp:hover{ transform: scale(1.08); color:#fff; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 991px){
  .page-header{ padding-top: 128px; }
}
@media (max-width: 400px){
  .section{ padding: 64px 0; }
  .page-header{ padding-top: 100px; padding-bottom: 48px; }
  .btn-primary-csa, .btn-outline-csa, .btn-whatsapp-csa{ padding: .8rem 1.35rem; font-size: .9rem; }
  .float-whatsapp{ width: 50px; height: 50px; bottom: 16px; right: 16px; font-size: 1.3rem; }
}