/*
Theme Name: Ace Digitals Global
Theme URI: https://acedigitalsempire.com.ng
Author: Uchenna Richard (DigitalUche)
Author URI: https://acedigitalsempire.com.ng
Description: Official premium theme for Ace Digitals Global — Lagos-based AI-powered digital agency. Dark navy glassmorphism design with electric blue and gold accents.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Private
Text Domain: ace-digitals
Tags: dark, agency, portfolio, woocommerce, glassmorphism
*/

/* ── CSS VARIABLES ───────────────────────────────── */
:root {
  --navy:       #0F1B2E;
  --navy-mid:   #162238;
  --navy-light: #1A2A3E;
  --blue:       #0088FF;
  --cyan:       #00D4FF;
  --gold:       #FFD700;
  --gold-light: #FFED4E;
  --green-wa:   #25D366;
  --white:      #FFFFFF;
  --slate-200:  #e2e8f0;
  --slate-400:  #94a3b8;
  --slate-500:  #64748b;
  --slate-600:  #475569;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --transition: all 0.3s ease;
  --shadow-blue: 0 8px 32px rgba(0,136,255,0.25);
  --shadow-gold: 0 8px 32px rgba(255,215,0,0.2);
}

/* ── RESET & BASE ────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select {
  font-family: var(--font-body);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  border-radius: var(--radius);
  padding: 12px 16px;
  width: 100%;
  transition: var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(0,136,255,0.5);
}
input::placeholder, textarea::placeholder { color: var(--slate-500); }

/* ── TYPOGRAPHY ──────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 7vw, 5.5rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
p  { font-size: 1rem; line-height: 1.75; color: var(--slate-400); }

/* ── SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ── UTILITY CLASSES ─────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 860px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }
.text-center { text-align: center; }
.text-blue   { color: var(--blue); }
.text-cyan   { color: var(--cyan); }
.text-gold   { color: var(--gold); }

.grad-text-blue {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-text-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── GLASS CARDS ─────────────────────────────────── */
.glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
}
.glass-blue {
  background: rgba(0,136,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(0,136,255,0.2);
  border-radius: var(--radius-lg);
}
.glass-gold {
  background: rgba(255,215,0,0.06);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,215,0,0.2);
  border-radius: var(--radius-lg);
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  white-space: nowrap;
}
.btn-blue {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: var(--white);
}
.btn-blue:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-blue);
  color: var(--white);
}
.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--navy);
}
.btn-gold:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-green {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
}
.btn-green:hover { opacity: 0.9; transform: translateY(-2px); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  color: var(--white);
}
.btn-lg { padding: 18px 36px; font-size: 1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.8rem; }

/* ── SECTION LABELS ──────────────────────────────── */
.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.label-blue { background: rgba(0,136,255,0.12); color: var(--cyan); border: 1px solid rgba(0,136,255,0.25); }
.label-gold { background: rgba(255,215,0,0.1);  color: var(--gold); border: 1px solid rgba(255,215,0,0.25); }

/* ── GRID BACKGROUND ─────────────────────────────── */
.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* ── CARD HOVER ──────────────────────────────────── */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

/* ── REVEAL ANIMATION ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── DIVIDER ─────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  margin: 60px 0;
}

/* ── WHATSAPP PULSE ──────────────────────────────── */
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  50%       { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}
.wa-pulse { animation: wa-pulse 2.5s infinite; }

/* ── FADE IN UP ──────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.8s ease forwards; }

/* ── STARS ───────────────────────────────────────── */
.stars { color: #FFD700; font-size: 0.9rem; letter-spacing: 2px; }

/* ── GLOBAL BUTTON TEXT VISIBILITY FIX ─────────── */
.btn-blue  { color: #ffffff !important; }
.btn-green { color: #ffffff !important; background: #25D366 !important; }
.btn-gold  { color: #0F1B2E !important; }
.btn-outline { color: #ffffff; }
.btn-blue:hover, .btn-blue:visited  { color: #ffffff !important; }
.btn-green:hover, .btn-green:visited{ color: #ffffff !important; }
a.btn-blue  { color: #ffffff !important; }
a.btn-green { color: #ffffff !important; }
a.btn-gold  { color: #0F1B2E !important; }

/* ── MOBILE TIMELINE FIX ────────────────────────── */
@media (max-width: 700px) {
  .timeline-mobile-wrap {
    position: relative;
    padding-left: 36px;
  }
  .timeline-mobile-wrap::before {
    content: '';
    position: absolute;
    left: 10px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,#0088FF,#FFD700);
    opacity: 0.3;
  }
}

/* ── PAGE HERO MIN HEIGHT ───────────────────────── */
.page-hero {
  min-height: 380px;
  display: flex;
  align-items: center;
}

/* ── SERVICES GRID — 4 COL on wide, 2 on mid ────── */
@media (min-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── POST BODY IMAGES ───────────────────────────── */
.post-body img {
  border-radius: 16px;
  width: 100%;
  height: auto;
  display: block;
}

/* ── INLINE INLINE ──────────────────────────────── */
.post-body p { color: var(--slate-400); line-height: 1.85; margin-bottom: 20px; }
.post-body h2 { color: var(--white); font-size: 1.6rem; margin: 36px 0 14px; }
.post-body h3 { color: var(--white); font-size: 1.25rem; margin: 28px 0 12px; }
.post-body ul, .post-body ol { margin: 16px 0 24px 24px; }
.post-body li { color: var(--slate-400); font-size: 0.95rem; margin-bottom: 8px; line-height: 1.75; }
.post-body strong { color: var(--white); }
.post-body blockquote { border-left: 3px solid var(--blue); padding: 16px 24px; margin: 28px 0; background: rgba(0,136,255,0.06); border-radius: 0 12px 12px 0; }
.post-body blockquote p { color: var(--white); font-style: italic; margin: 0; }
.post-body a { color: var(--blue); }
.post-body a:hover { color: var(--cyan); }
