/*
Theme Name: Rankup Digitals
Theme URI: https://rankupdigitals.com
Author: Rankup Digitals
Description: Premium dark agency theme with orange accent. All sections admin-editable via Theme Customizer.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
Text Domain: rankup
*/

/* ================================================================
   Rankup Digitals — Premium Dark Theme
   Orange #FF6B2B accent
   ================================================================ */

:root {
  --orange: #FF6B2B;
  --orange-hover: #E55A1F;
  --orange-glow: rgba(255,107,43,0.22);
  --orange-soft: rgba(255,107,43,0.08);
  --bg: #1C1C1E;
  --bg-alt: #141416;
  --card: #2A2A2C;
  --card-hover: #323234;
  --border: #333336;
  --border-hover: rgba(255,107,43,0.45);
  --white: #FFFFFF;
  --off-white: #F2F2F2;
  --gray: #A0A0A0;
  --gray-2: #6b6b6f;
  --green: #22C55E;
  --red: #EF4444;
  --font-head: 'Syne', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --radius: 16px;
  --radius-sm: 10px;
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body { overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--orange); color: var(--bg); }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 8px; }

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  line-height: 1.1;
  color: var(--white);
}
h1 { font-size: clamp(42px, 6vw, 72px); }
h2 { font-size: clamp(28px, 4vw, 48px); }
h3 { font-size: clamp(18px, 2vw, 24px); }
p { margin: 0 0 16px; }

/* Layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--orange); margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px;
  background: var(--orange);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 28px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600;
  font-size: 14px; letter-spacing: 0.01em;
  transition: all .25s cubic-bezier(.22,.61,.36,1);
  white-space: nowrap; border: 1.5px solid transparent;
}
.btn--primary {
  background: var(--orange); color: var(--bg);
  box-shadow: 0 8px 30px -8px var(--orange-glow);
}
.btn--primary:hover {
  background: var(--orange-hover); transform: translateY(-2px);
  box-shadow: 0 16px 44px -10px rgba(255,107,43,0.5);
}
.btn--ghost { border-color: var(--border); color: var(--off-white); }
.btn--ghost:hover { border-color: var(--orange); color: var(--orange); background: var(--orange-soft); }
.btn--block { width: 100%; justify-content: center; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .3s cubic-bezier(.22,.61,.36,1);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: 0 24px 60px -24px rgba(255,107,43,0.25);
  background: var(--card-hover);
}

/* Grid bg */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 70% 50% at 50% 30%, black 20%, transparent 75%);
  pointer-events: none;
}
.glow {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, var(--orange-glow) 0%, transparent 65%);
  filter: blur(60px); pointer-events: none; z-index: 0; opacity: .7;
}

/* Reveal */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ================================================================
   Navigation
   ================================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 20px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  transition: all .35s;
  border-bottom: 1px solid transparent;
}
.nav--scrolled {
  background: rgba(28,28,30,.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding-top: 14px; padding-bottom: 14px;
}
.nav__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 18px; letter-spacing: -0.02em;
}
.nav__logo img { height: 36px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 32px; font-size: 14px; font-weight: 500; }
.nav__links a { color: var(--gray); transition: color .2s; position: relative; }
.nav__links a:hover, .nav__links a.is-active { color: var(--white); }
.nav__links a.is-active::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -8px; height: 2px;
  background: var(--orange); border-radius: 2px;
}
.nav__cta { display: flex; align-items: center; gap: 12px; }
.nav__cta .btn { padding: 11px 20px; font-size: 13px; }

.hamburger {
  display: none; width: 42px; height: 42px;
  border-radius: 10px; border: 1px solid var(--border);
  align-items: center; justify-content: center;
}
.hamburger span {
  display: block; width: 16px; height: 1.5px; background: white; position: relative;
}
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0; width: 16px; height: 1.5px; background: white;
}
.hamburger span::before { top: -5px; }
.hamburger span::after { top: 5px; }

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0;
  background: rgba(20,20,22,.98);
  backdrop-filter: blur(24px); z-index: 60;
  padding: 100px var(--pad) var(--pad);
  display: flex; flex-direction: column; gap: 12px;
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.22,.61,.36,1);
}
.mobile-drawer.is-open { transform: none; }
.mobile-drawer a {
  font-family: var(--font-head); font-size: 28px; font-weight: 600;
  padding: 10px 0; border-bottom: 1px solid var(--border);
  color: var(--off-white);
}
.mobile-drawer a:hover { color: var(--orange); }
.mobile-drawer .btn { margin-top: 28px; }
.mobile-drawer__close {
  position: absolute; top: 24px; right: var(--pad);
  width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); display: grid; place-items: center;
}

/* ================================================================
   Footer
   ================================================================ */
.footer {
  background: var(--bg-alt); border-top: 1px solid var(--border);
  padding: 80px 0 32px;
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 60px; padding-bottom: 60px;
  border-bottom: 1px solid var(--border);
}
.footer h4 {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 22px; font-weight: 400;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.footer ul a { color: rgba(255,255,255,.7); font-size: 14px; transition: color .2s; }
.footer ul a:hover { color: var(--orange); }
.footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; font-size: 13px; color: var(--gray);
  flex-wrap: wrap; gap: 16px;
}
.footer__social { display: flex; gap: 10px; margin-top: 20px; }
.footer__social a {
  width: 38px; height: 38px; border: 1px solid var(--border);
  border-radius: 10px; display: grid; place-items: center;
  transition: all .2s; color: var(--gray);
}
.footer__social a:hover { border-color: var(--orange); color: var(--orange); }

/* FAB */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 40;
  background: var(--orange); color: var(--bg);
  border-radius: 999px; padding: 14px 22px;
  font-weight: 600; font-size: 14px;
  box-shadow: 0 12px 40px -8px rgba(255,107,43,0.5);
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .25s;
}
.fab:hover { transform: translateY(-3px); background: var(--orange-hover); }

/* ================================================================
   Grids
   ================================================================ */
.service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.two-col { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }

/* Project thumbnails */
.project-thumb {
  aspect-ratio: 4/3; border-radius: var(--radius);
  overflow: hidden; position: relative;
}
.project-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.project-thumb__cat {
  position: absolute; left: 18px; top: 16px;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.8); background: rgba(0,0,0,.3);
  padding: 4px 10px; border-radius: 6px; backdrop-filter: blur(6px);
}
.project-thumb__name {
  position: absolute; left: 20px; bottom: 20px; right: 20px;
  font-family: var(--font-head); font-weight: 700;
  font-size: 24px; letter-spacing: -0.02em;
}

/* Stats row */
.stats-row {
  display: flex; justify-content: center; gap: clamp(20px, 5vw, 56px);
  flex-wrap: wrap; color: var(--gray); font-size: 13px;
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .14em;
}
.stats-row span span { color: var(--off-white); }

/* Badges */
.badge-row { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.badge {
  padding: 10px 20px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--card); font-size: 13px; color: var(--gray);
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(180deg, var(--orange-soft), transparent), var(--card);
  border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(44px, 6vw, 80px); text-align: center;
}

/* Forms */
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray);
}
.input, .textarea, .select {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px 16px;
  color: var(--white); font: inherit; font-size: 15px;
  transition: border-color .2s; width: 100%;
}
.input:focus, .textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-glow); }
.textarea { resize: vertical; min-height: 120px; }

/* Animations */
.page-enter { animation: pageIn .45s; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Blog single */
.blog-content { max-width: 760px; margin: 0 auto; }
.blog-content p { color: var(--gray); font-size: 16px; line-height: 1.8; margin-bottom: 22px; }
.blog-content h2 { font-size: 28px; margin: 44px 0 16px; }
.blog-content h3 { font-size: 22px; margin: 32px 0 12px; }
.blog-content ul, .blog-content ol { color: var(--gray); margin: 16px 0; padding-left: 24px; }
.blog-content li { margin-bottom: 8px; line-height: 1.7; }
.blog-content img { border-radius: var(--radius); margin: 24px 0; width: 100%; }
.blog-content a { color: var(--orange); text-decoration: underline; }
.blog-content blockquote {
  border-left: 3px solid var(--orange); padding: 16px 24px;
  margin: 24px 0; background: var(--card); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--off-white); font-style: italic;
}

/* Page hero */
.page-hero { padding-top: 170px; position: relative; overflow: hidden; }
.page-hero .container { position: relative; z-index: 1; text-align: center; max-width: 860px; }

/* Video embed */
.video-wrap {
  aspect-ratio: 16/9; border-radius: var(--radius);
  overflow: hidden; position: relative; margin-bottom: 16px;
}
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: none; }

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 900px) {
  .nav__links, .nav__cta .btn { display: none; }
  .hamburger { display: flex; }
  .service-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .two-col { grid-template-columns: 1fr; gap: 48px; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 16px; font-size: 12px; }
}
@media (max-width: 500px) {
  .footer__grid { grid-template-columns: 1fr; }
  .project-thumb__name { font-size: 20px; }
  .fab { padding: 12px 18px; font-size: 13px; right: 16px; bottom: 16px; }
  .mobile-drawer a { font-size: 24px; }
}
