/*
Theme Name: BG Digital Lab
Theme URI: https://bgdigitallab.online
Author: BG Digital Lab
Author URI: https://bgdigitallab.online
Description: A premium digital agency theme for BG Digital Lab — a full-service digital marketing, PR, AI, SEO, and brand development agency serving businesses across the United States.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
License URI: https://bgdigitallab.online
Text Domain: bgdigitallab
Tags: digital-agency, marketing, seo, business, one-page, custom-colors, custom-logo, full-width-template
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --bg: #050A0F;
  --surface: #0C1520;
  --surface2: #121E2C;
  --accent: #00E5FF;
  --accent2: #7B61FF;
  --accent3: #FF6B6B;
  --text: #F0F4F8;
  --muted: #8A9BB0;
  --border: rgba(0,229,255,0.12);
  --card-bg: rgba(12,21,32,0.95);
  --grad: linear-gradient(135deg, #00E5FF 0%, #7B61FF 100%);
  --container: 1200px;
  --gap: clamp(1rem, 4vw, 5rem);
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: 'Syne', 'Georgia', serif;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.8rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 700; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

section { position: relative; z-index: 1; }

/* === BUTTONS === */
.btn-primary, .btn-outline, .btn-submit {
  display: inline-block;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
  text-decoration: none;
  border: none;
}
.btn-primary {
  padding: 0.88rem 2.2rem;
  background: var(--grad);
  color: #fff;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-2px); }
.btn-outline {
  padding: 0.88rem 2.2rem;
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-submit {
  padding: 0.9rem 2.4rem;
  background: var(--grad);
  color: #fff;
  font-size: 0.88rem;
}
.btn-submit:hover { opacity: 0.88; transform: translateY(-2px); }

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* === SECTION LABELS === */
.section-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.85rem;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 100px;
  background: rgba(0,229,255,0.05);
}

/* ============================================================
   NAVIGATION
============================================================ */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(5,10,15,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 1rem;
}
.site-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span {
  background: none;
  -webkit-text-fill-color: var(--text);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.25rem);
}
.nav-menu a {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  white-space: nowrap;
  position: relative;
  padding-bottom: 2px;
}
.nav-menu a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transition: transform 0.25s;
}
.nav-menu a:hover { color: var(--accent); }
.nav-menu a:hover::after { transform: scaleX(1); }
.nav-cta-btn {
  padding: 0.5rem 1.35rem !important;
  background: transparent !important;
  border: 1.5px solid var(--accent) !important;
  color: var(--accent) !important;
  border-radius: 4px !important;
  transition: background 0.2s, color 0.2s !important;
  white-space: nowrap;
}
.nav-cta-btn::after { display: none !important; }
.nav-cta-btn:hover { background: var(--accent) !important; color: var(--bg) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
============================================================ */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,229,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.04) 1px, transparent 1px);
  background-size: 55px 55px;
  pointer-events: none;
}
.hero-glow-1 {
  position: absolute;
  width: clamp(400px, 55vw, 750px);
  height: clamp(400px, 55vw, 750px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(123,97,255,0.16) 0%, transparent 70%);
  top: -10%; right: -10%;
  pointer-events: none;
}
.hero-glow-2 {
  position: absolute;
  width: clamp(250px, 35vw, 500px);
  height: clamp(250px, 35vw, 500px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.1) 0%, transparent 70%);
  bottom: 0; left: -8%;
  pointer-events: none;
}
.hero-content {
  position: relative;
  max-width: 780px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.75rem;
  padding: 0.35rem 1.1rem;
  border: 1px solid rgba(0,229,255,0.22);
  border-radius: 100px;
  background: rgba(0,229,255,0.05);
}
.hero-badge::before {
  content: '';
  display: block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}
.hero-headline {
  margin-bottom: 1.5rem;
  line-height: 1.06;
}
.hero-headline .line2 {
  display: block;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
}

/* ============================================================
   STATS BAR
============================================================ */
#stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0;
  position: relative; z-index: 1;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stat-item { text-align: center; padding: 0.5rem; }
.stat-num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.2rem;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ============================================================
   ABOUT
============================================================ */
#about {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.about-text h2 { margin-bottom: 1.25rem; }
.about-text p {
  color: var(--muted);
  font-weight: 300;
  font-size: 1.02rem;
  margin-bottom: 1.1rem;
}
.about-card-wrap {
  position: relative;
}
.about-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--grad);
}
.about-card-header { margin-bottom: 1.5rem; }
.about-card-header h3 {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 800;
  margin-top: 0.25rem;
}
.values-list { display: flex; flex-direction: column; gap: 1.1rem; }
.value-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.val-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.18);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-top: 2px;
}
.val-text h4 {
  font-family: 'Syne', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.15rem;
}
.val-text p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  font-weight: 300;
}

/* ============================================================
   SERVICES
============================================================ */
#services {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p {
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 300;
  margin: 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card:hover {
  border-color: rgba(0,229,255,0.35);
  transform: translateY(-5px);
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.service-card:hover::after { transform: scaleX(1); }
.svc-icon {
  width: 50px; height: 50px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.ic1 { background: rgba(0,229,255,0.1); }
.ic2 { background: rgba(123,97,255,0.1); }
.ic3 { background: rgba(255,107,107,0.1); }
.ic4 { background: rgba(0,229,255,0.1); }
.ic5 { background: rgba(123,97,255,0.1); }
.ic6 { background: rgba(255,107,107,0.1); }
.service-card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.65rem;
}
.service-card p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.65;
  font-weight: 300;
  margin-bottom: 1.25rem;
}
.svc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.svc-tag {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(0,229,255,0.07);
  border: 1px solid rgba(0,229,255,0.15);
  color: var(--accent);
}

/* ============================================================
   WHY US
============================================================ */
#why-us {
  padding: clamp(4rem, 8vw, 7rem) 0;
}
.why-header { max-width: 520px; margin-bottom: 3.5rem; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.why-item {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}
.why-num {
  font-family: 'Syne', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.why-item h4 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.why-item p {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 300;
  margin: 0;
}

/* ============================================================
   CONTACT
============================================================ */
#contact {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-info h2 { margin-bottom: 1rem; }
.contact-info > p {
  color: var(--muted);
  font-weight: 300;
  font-size: 1.02rem;
  margin-bottom: 2rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1rem; }
.contact-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.c-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  background: rgba(12,21,32,0.8);
}
.c-text span {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}
.c-text strong { font-size: 0.92rem; font-weight: 500; }
.c-text a { color: var(--accent); }

/* FORM */
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
  background: rgba(18,30,44,0.95);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 0.78rem 1rem;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
textarea { resize: vertical; min-height: 130px; }
input:focus, select:focus, textarea:focus { border-color: rgba(0,229,255,0.4); }
input::placeholder, textarea::placeholder { color: rgba(138,155,176,0.45); }
select option { background: #0C1520; }
#form-msg {
  display: none;
  color: var(--accent);
  font-size: 0.88rem;
  padding: 0.5rem 0;
}

/* ============================================================
   FOOTER
============================================================ */
#site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  position: relative; z-index: 1;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .footer-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  margin-bottom: 0.6rem;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 280px;
  line-height: 1.6;
  margin: 0;
}
.footer-links-col h5 {
  font-family: 'Syne', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}
.footer-links-col ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-links-col a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}
.footer-links-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p { color: var(--muted); font-size: 0.8rem; margin: 0; }

/* ============================================================
   RESPONSIVE
============================================================ */

/* Large tablet */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet */
@media (max-width: 768px) {
  .nav-menu { display: none; flex-direction: column; align-items: flex-start; gap: 0; }
  .nav-menu.open {
    display: flex;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(5,10,15,0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1.25rem clamp(1.25rem, 5vw, 3rem);
    gap: 0.1rem;
  }
  .nav-menu.open a {
    padding: 0.75rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
  }
  .nav-menu.open a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}

/* Mobile */
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-outline { width: 100%; text-align: center; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-badge { animation: fadeUp 0.55s ease both 0.1s; }
.hero-headline { animation: fadeUp 0.55s ease both 0.2s; }
.hero-sub { animation: fadeUp 0.55s ease both 0.3s; }
.hero-btns { animation: fadeUp 0.55s ease both 0.4s; }

/* WordPress specific */
.wp-block-image img, .aligncenter { display: block; margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
