/*
Theme Name: AOTP Agency
Theme URI: https://aotpagency.com
Author: AOTP
Description: Ahead of the Pack. One-page agency theme for AOTP.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: Private
Text Domain: aotp
*/

:root {
  --bg:        #0A0A0F;
  --surface:   #111118;
  --amber:     #F5A623;
  --amber-dim: rgba(245,166,35,0.12);
  --ice:       #E8EAED;
  --muted:     #6B7280;
  --highlight: #FF4D1C;
  --border:    rgba(232,234,237,0.08);
  --radius:    16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

#aotp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; background: rgba(10,10,15,0.85);
  backdrop-filter: blur(24px) saturate(160%); -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--border);
}
.nav-logo { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 800; color: var(--ice) !important; text-decoration: none; letter-spacing: -0.02em; }
.nav-logo span { color: var(--amber); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--muted) !important; text-decoration: none; letter-spacing: 0.02em; transition: color 0.2s; }
.nav-links a:hover { color: var(--ice) !important; }
.nav-cta { font-size: 13px; font-weight: 600; color: #0A0A0F !important; background: var(--amber); padding: 8px 18px; border-radius: 980px; text-decoration: none; transition: opacity 0.2s, transform 0.15s; }
.nav-cta:hover { opacity: 0.9; transform: scale(1.02); }

.aotp-hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 130px 24px 90px; position: relative; overflow: hidden; }
.aotp-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(232,234,237,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(232,234,237,0.03) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
.aotp-hero::after { content: ''; position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 800px; height: 600px; background: radial-gradient(ellipse at center, rgba(245,166,35,0.12) 0%, transparent 65%); pointer-events: none; }

.hero-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--amber-dim); border: 1px solid rgba(245,166,35,0.25); border-radius: 980px; padding: 6px 14px; font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); margin-bottom: 28px; opacity: 0; animation: fadeUp 0.8s ease forwards 0.1s; position: relative; z-index: 1; }
.hero-tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } }

.aotp-hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(44px, 7.5vw, 96px); font-weight: 800; line-height: 1.0; letter-spacing: -0.03em; color: var(--ice); max-width: 900px; margin-bottom: 12px; opacity: 0; animation: fadeUp 0.9s ease forwards 0.25s; position: relative; z-index: 1; }
.aotp-hero h1 .accent { color: var(--amber); }
.hero-tagline { font-family: 'Syne', sans-serif; font-size: clamp(16px, 2.2vw, 22px); font-weight: 500; color: var(--muted); letter-spacing: 0.01em; margin-bottom: 32px; opacity: 0; animation: fadeUp 0.9s ease forwards 0.38s; position: relative; z-index: 1; }
.hero-tagline em { color: var(--ice); font-style: normal; font-weight: 600; }
.hero-sub { font-size: 17px; font-weight: 300; color: var(--muted); max-width: 520px; line-height: 1.65; margin-bottom: 44px; opacity: 0; animation: fadeUp 0.9s ease forwards 0.5s; position: relative; z-index: 1; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; opacity: 0; animation: fadeUp 0.9s ease forwards 0.62s; position: relative; z-index: 1; }

.btn-amber { display: inline-flex; align-items: center; gap: 8px; background: var(--amber); color: #0A0A0F !important; font-size: 14px; font-weight: 700; padding: 14px 28px; border-radius: 980px; text-decoration: none; transition: opacity 0.2s, transform 0.15s; }
.btn-amber:hover { opacity: 0.92; transform: scale(1.02); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: transparent; color: var(--ice) !important; font-size: 14px; font-weight: 500; padding: 14px 28px; border-radius: 980px; border: 1px solid var(--border); text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.btn-ghost:hover { border-color: rgba(232,234,237,0.25); background: rgba(232,234,237,0.04); }

.aotp-stats-bar { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); display: flex; justify-content: center; padding: 0 24px; }
.stats-inner { display: flex; max-width: 960px; width: 100%; flex-wrap: wrap; }
.stat-item { flex: 1; min-width: 160px; padding: 40px 32px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'Syne', sans-serif; font-size: 42px; font-weight: 800; letter-spacing: -0.04em; color: var(--amber); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 8px; letter-spacing: 0.02em; }

.aotp-section { padding: 110px 24px; }
.section-inner { max-width: 980px; margin: 0 auto; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--amber); flex-shrink: 0; }
.section-title { font-family: 'Syne', sans-serif; font-size: clamp(28px, 4vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--ice); margin-bottom: 20px; }
.section-title .hl { color: var(--amber); }
.section-title .hl-red { color: var(--highlight); }
.section-body { font-size: 17px; font-weight: 300; color: var(--muted); max-width: 560px; line-height: 1.7; }

.aotp-about { background: var(--bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; margin-top: 64px; }
.about-visual { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--border); aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding: 36px; }
.about-visual::before { content: ''; position: absolute; top: 0; right: 0; width: 180px; height: 180px; background: radial-gradient(circle at top right, rgba(245,166,35,0.18) 0%, transparent 70%); }
.about-visual-grid { position: absolute; top: 28px; right: 28px; display: grid; grid-template-columns: repeat(4, 5px); gap: 7px; opacity: 0.15; }
.about-visual-grid span { width: 5px; height: 5px; border-radius: 50%; background: var(--amber); display: block; }
.visual-chip { font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); background: var(--amber-dim); border: 1px solid rgba(245,166,35,0.2); border-radius: 4px; padding: 4px 8px; margin-bottom: 12px; display: inline-block; }
.visual-num { font-family: 'Syne', sans-serif; font-size: 72px; font-weight: 800; letter-spacing: -0.04em; color: var(--ice); line-height: 1; }
.visual-sub { font-size: 14px; color: var(--muted); margin-top: 6px; }
.about-text p { font-size: 16px; font-weight: 300; color: var(--muted); line-height: 1.75; margin-bottom: 20px; }
.about-text p strong { color: var(--ice); font-weight: 500; }
.about-text p:last-child { margin-bottom: 0; }

.aotp-services { background: var(--surface); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); margin-top: 56px; border-radius: var(--radius); overflow: hidden; }
.service-card { background: var(--bg); padding: 44px 40px; position: relative; overflow: hidden; transition: background 0.25s; }
.service-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.service-card:hover { background: #0d0d13; }
.service-card:hover::after { transform: scaleX(1); }
.service-num { font-family: 'Syne', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 0.12em; color: var(--highlight); margin-bottom: 20px; }
.service-card h3 { font-family: 'Syne', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--ice); margin-bottom: 14px; }
.service-card p { font-size: 14px; font-weight: 300; color: var(--muted); line-height: 1.7; }
.service-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--amber) !important; text-decoration: none; margin-top: 22px; transition: gap 0.2s; }
.service-link:hover { gap: 10px; }

.aotp-why { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); margin-top: 56px; border-radius: var(--radius); overflow: hidden; }
.why-card { background: var(--surface); padding: 36px 32px; transition: background 0.2s; }
.why-card:hover { background: #13131c; }
.why-num { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 800; letter-spacing: -0.04em; color: rgba(245,166,35,0.25); margin-bottom: 18px; transition: color 0.2s; }
.why-card:hover .why-num { color: var(--amber); }
.why-card h3 { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 700; color: var(--ice); margin-bottom: 10px; letter-spacing: -0.01em; }
.why-card p { font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.7; }

.aotp-cta { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 120px 24px; text-align: center; position: relative; overflow: hidden; }
.aotp-cta::before { content: ''; position: absolute; bottom: -200px; left: 50%; transform: translateX(-50%); width: 700px; height: 500px; background: radial-gradient(ellipse at center, rgba(255,77,28,0.1) 0%, transparent 65%); pointer-events: none; }
.aotp-cta::after { content: ''; position: absolute; top: -150px; left: 50%; transform: translateX(-50%); width: 600px; height: 400px; background: radial-gradient(ellipse at center, rgba(245,166,35,0.08) 0%, transparent 65%); pointer-events: none; }
.aotp-cta .eyebrow { justify-content: center; }
.aotp-cta .eyebrow::before { display: none; }
.aotp-cta .section-title { max-width: 640px; margin: 0 auto 20px; position: relative; z-index: 1; }
.cta-body { font-size: 17px; font-weight: 300; color: var(--muted); max-width: 480px; line-height: 1.65; margin: 0 auto 44px; position: relative; z-index: 1; }
.cta-actions { position: relative; z-index: 1; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.aotp-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 56px 24px; }
.footer-inner { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 40px; }
.footer-brand { font-family: 'Syne', sans-serif; font-size: 16px; font-weight: 800; color: var(--ice); letter-spacing: -0.02em; }
.footer-brand span { color: var(--amber); }
.footer-center { display: flex; flex-direction: column; gap: 20px; align-items: center; }
.footer-links { display: flex; gap: 24px; list-style: none; flex-wrap: wrap; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--muted) !important; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--ice) !important; }
.footer-copy { font-size: 12px; color: rgba(107,114,128,0.6); text-align: center; }
.footer-address { font-size: 12px; color: var(--muted); line-height: 1.8; text-align: right; }
.footer-address strong { display: block; font-size: 13px; color: var(--ice); font-weight: 600; margin-bottom: 4px; }

.aotp-divider { height: 1px; background: var(--border); max-width: 980px; margin: 0 auto; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  #aotp-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); min-width: 50%; }
  .stat-item:last-child { border-bottom: none; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-address { text-align: center; }
}

.admin-bar #aotp-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar #aotp-nav { top: 46px; } }
