/*
Theme Name: Apex Digital
Theme URI: https://example.com/apex-digital
Author: Apex Digital
Author URI: https://example.com
Description: A modern one-page agency WordPress theme for digital marketing, SEO and Local SEO agencies. Fully responsive, fast, and ready to customize from the WordPress Customizer.
Version: 1.0.1
Requires at least: 5.5
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: apex-digital
Tags: one-page, agency, business, marketing, seo, responsive, custom-colors, custom-logo, custom-menu
*/

/* ============================================================
   Base / Reset
   ============================================================ */
:root {
  --ad-bg: #0b0f1a;
  --ad-bg-2: #10162a;
  --ad-surface: #141b33;
  --ad-text: #e7ecf6;
  --ad-muted: #9aa6c3;
  --ad-primary: #6c5ce7;
  --ad-primary-2: #00d2ff;
  --ad-accent: #ff6b6b;
  --ad-border: rgba(255, 255, 255, 0.08);
  --ad-radius: 16px;
  --ad-max: 1160px;
  --ad-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--ad-bg);
  color: var(--ad-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }

p { margin: 0 0 1rem; color: var(--ad-muted); }

.ad-container { width: 100%; max-width: var(--ad-max); margin: 0 auto; padding: 0 24px; }

.ad-section { padding: 96px 0; position: relative; }

.ad-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ad-primary-2);
  margin-bottom: 14px;
}

.ad-section-title { font-size: clamp(28px, 4vw, 44px); }

.ad-section-lead { max-width: 620px; font-size: 18px; }

.ad-center { text-align: center; }
.ad-center .ad-section-lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.ad-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.ad-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--ad-primary), var(--ad-primary-2));
  box-shadow: 0 12px 30px rgba(108, 92, 231, 0.35);
}
.ad-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(108, 92, 231, 0.5); }
.ad-btn-ghost { color: var(--ad-text); border-color: var(--ad-border); background: rgba(255,255,255,0.02); }
.ad-btn-ghost:hover { border-color: var(--ad-primary-2); transform: translateY(-2px); }

/* ============================================================
   Header
   ============================================================ */
.ad-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  transition: background .3s ease, box-shadow .3s ease, padding .3s ease;
  padding: 18px 0;
}
.ad-header.is-scrolled {
  background: rgba(11, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 30px rgba(0,0,0,0.3);
  padding: 12px 0;
}
.ad-nav { display: flex; align-items: center; justify-content: space-between; }
.ad-brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.ad-brand .ad-logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ad-primary), var(--ad-primary-2));
  display: grid; place-items: center; color: #fff; font-weight: 900;
}
.ad-menu { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.ad-menu a { font-weight: 600; font-size: 15px; color: var(--ad-muted); transition: color .2s ease; }
.ad-menu a:hover { color: var(--ad-text); }
.ad-nav-cta { display: flex; align-items: center; gap: 16px; }
.ad-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.ad-burger span { display: block; width: 24px; height: 2px; background: var(--ad-text); margin: 5px 0; transition: .3s; border-radius: 2px; }

/* ============================================================
   Hero
   ============================================================ */
.ad-hero {
  position: relative;
  padding: 180px 0 120px;
  overflow: hidden;
  background:
    radial-gradient(60% 60% at 15% 10%, rgba(108,92,231,0.25), transparent 60%),
    radial-gradient(50% 50% at 90% 20%, rgba(0,210,255,0.18), transparent 60%),
    linear-gradient(180deg, var(--ad-bg), var(--ad-bg-2));
}
.ad-hero-inner { max-width: 780px; }
.ad-hero h1 { font-size: clamp(38px, 6vw, 68px); }
.ad-hero h1 .ad-grad {
  background: linear-gradient(135deg, var(--ad-primary-2), var(--ad-primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ad-hero p { font-size: 20px; max-width: 620px; }
.ad-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 30px; }
.ad-hero-stats { display: flex; gap: 40px; margin-top: 56px; flex-wrap: wrap; }
.ad-stat strong { display: block; font-size: 34px; font-weight: 800; color: var(--ad-text); }
.ad-stat span { color: var(--ad-muted); font-size: 14px; }

/* ============================================================
   Logos / trust bar
   ============================================================ */
.ad-trust { border-top: 1px solid var(--ad-border); border-bottom: 1px solid var(--ad-border); padding: 28px 0; }
.ad-trust-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; opacity: .7; font-weight: 700; letter-spacing: .04em; }

/* ============================================================
   Services
   ============================================================ */
.ad-grid { display: grid; gap: 26px; }
.ad-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ad-card {
  background: linear-gradient(180deg, var(--ad-surface), rgba(20,27,51,0.6));
  border: 1px solid var(--ad-border);
  border-radius: var(--ad-radius);
  padding: 34px 30px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.ad-card:hover { transform: translateY(-6px); border-color: rgba(108,92,231,0.5); box-shadow: var(--ad-shadow); }
.ad-card-icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(108,92,231,0.15); color: var(--ad-primary-2); margin-bottom: 20px;
}
.ad-card-icon svg { width: 28px; height: 28px; }
.ad-card h3 { font-size: 22px; }
.ad-card ul { list-style: none; padding: 0; margin: 18px 0 0; }
.ad-card ul li { color: var(--ad-muted); font-size: 15px; padding: 6px 0 6px 26px; position: relative; }
.ad-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ad-primary-2); font-weight: 800; }

/* ============================================================
   About / Why us
   ============================================================ */
.ad-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.ad-feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 18px; }
.ad-feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.ad-feature-list .ad-tick {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--ad-primary), var(--ad-primary-2)); color: #fff; font-weight: 900; font-size: 13px;
}
.ad-feature-list strong { color: var(--ad-text); display: block; }
.ad-media-card {
  background: linear-gradient(135deg, rgba(108,92,231,0.2), rgba(0,210,255,0.12));
  border: 1px solid var(--ad-border); border-radius: 24px; padding: 40px; min-height: 340px;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
}
.ad-metric { display: flex; align-items: baseline; gap: 12px; }
.ad-metric strong { font-size: 44px; font-weight: 900; }
.ad-metric span { color: var(--ad-muted); }
.ad-progress { height: 8px; background: rgba(255,255,255,0.08); border-radius: 999px; overflow: hidden; }
.ad-progress > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ad-primary), var(--ad-primary-2)); }

/* ============================================================
   Process
   ============================================================ */
.ad-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.ad-step { padding: 28px; border: 1px solid var(--ad-border); border-radius: var(--ad-radius); background: var(--ad-surface); }
.ad-step .ad-step-num {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 900;
  background: rgba(0,210,255,0.12); color: var(--ad-primary-2); margin-bottom: 16px; font-size: 18px;
}
.ad-step h3 { font-size: 18px; }

/* ============================================================
   CTA band
   ============================================================ */
.ad-cta-band {
  background: linear-gradient(135deg, var(--ad-primary), var(--ad-primary-2));
  border-radius: 28px; padding: 60px; text-align: center; box-shadow: var(--ad-shadow);
}
.ad-cta-band h2 { color: #fff; font-size: clamp(26px, 4vw, 40px); }
.ad-cta-band p { color: rgba(255,255,255,0.9); font-size: 18px; max-width: 560px; margin: 0 auto 26px; }
.ad-cta-band .ad-btn-primary { background: #fff; color: var(--ad-primary); box-shadow: 0 12px 30px rgba(0,0,0,0.25); }

/* ============================================================
   Contact
   ============================================================ */
.ad-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.ad-contact-item { display: flex; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--ad-border); }
.ad-contact-item:last-child { border-bottom: 0; }
.ad-contact-item .ad-ci-icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(108,92,231,0.15); color: var(--ad-primary-2); flex: 0 0 auto;
}
.ad-contact-item strong { display: block; color: var(--ad-text); }
.ad-contact-item span, .ad-contact-item a { color: var(--ad-muted); }
.ad-contact-item a:hover { color: var(--ad-primary-2); }
.ad-form { background: var(--ad-surface); border: 1px solid var(--ad-border); border-radius: var(--ad-radius); padding: 34px; }
.ad-field { margin-bottom: 18px; }
.ad-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--ad-text); }
.ad-field input, .ad-field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--ad-border);
  background: rgba(255,255,255,0.03); color: var(--ad-text); font-family: inherit; font-size: 15px;
}
.ad-field input:focus, .ad-field textarea:focus { outline: none; border-color: var(--ad-primary-2); }
.ad-field textarea { min-height: 130px; resize: vertical; }
.ad-form .ad-btn { width: 100%; justify-content: center; }

/* ============================================================
   Footer
   ============================================================ */
.ad-footer { border-top: 1px solid var(--ad-border); padding: 50px 0 30px; background: var(--ad-bg-2); }
.ad-footer-grid { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: center; }
.ad-footer .ad-brand { margin-bottom: 8px; }
.ad-footer-links { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.ad-footer-links a { color: var(--ad-muted); font-size: 15px; }
.ad-footer-links a:hover { color: var(--ad-text); }
.ad-footer-bottom { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--ad-border); text-align: center; font-size: 14px; color: var(--ad-muted); }
.ad-footer-bottom a { color: var(--ad-primary-2); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .ad-grid-3 { grid-template-columns: 1fr; }
  .ad-split { grid-template-columns: 1fr; gap: 34px; }
  .ad-steps { grid-template-columns: repeat(2, 1fr); }
  .ad-contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .ad-menu {
    position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px);
    background: var(--ad-bg-2); flex-direction: column; align-items: flex-start;
    padding: 100px 32px; gap: 26px; transform: translateX(100%); transition: transform .3s ease;
    box-shadow: var(--ad-shadow);
  }
  .ad-menu.is-open { transform: translateX(0); }
  .ad-burger { display: block; z-index: 1000; }
  .ad-nav-cta .ad-btn-ghost { display: none; }
}
@media (max-width: 560px) {
  .ad-section { padding: 70px 0; }
  .ad-hero { padding: 150px 0 80px; }
  .ad-steps { grid-template-columns: 1fr; }
  .ad-hero-stats { gap: 26px; }
  .ad-cta-band { padding: 40px 24px; }
  .ad-footer-grid { flex-direction: column; align-items: flex-start; }
}
