/* =============================================================
   WAFI WAHIDI THEME — main.css
   ============================================================= */

/* ── 0. CSS Variables ─────────────────────────────────────── */
:root {
  --orange:        #FF6B00;
  --orange-bright: #FF8C00;
  --orange-dark:   #CC5500;
  --black:         #0a0a0a;
  --dark:          #111111;
  --dark2:         #1a1a1a;
  --gray:          #888888;
  --light:         #f0f0f0;
  --white:         #ffffff;

  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Rajdhani', sans-serif;

  --transition: 0.25s ease;
  --radius:     2px;
  --nav-h:      72px;
}

/* ── 1. Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 18px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

/* ── 2. Typography ────────────────────────────────────────── */
h1, h2, h3, h4 { line-height: 1.1; }

.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: 5px; text-transform: uppercase;
  color: var(--orange); font-weight: 700; margin-bottom: 16px;
}
.section-label::before {
  content: ''; width: 30px; height: 2px; background: var(--orange);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 80px);
  line-height: 1; color: var(--white);
}
.section-title em { color: var(--orange); font-style: normal; }

/* ── 3. Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--orange); color: var(--black);
  padding: 16px 36px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 15px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; border: none; border-radius: var(--radius);
  transition: all var(--transition); position: relative; overflow: hidden;
}
.btn-primary::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%); transition: transform 0.3s;
}
.btn-primary:hover::before { transform: translateX(0); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(255,107,0,0.4); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent; color: var(--white);
  padding: 16px 36px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 15px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius); transition: all var(--transition);
}
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }

/* ── 4. Navigation ────────────────────────────────────────── */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 60px; height: var(--nav-h);
  background: rgba(10,10,10,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,107,0,0.12);
}

.nav-logo {
  display: flex; align-items: center; text-decoration: none;
}
.nav-logo-svg,
.nav-logo-icon,
.nav-logo .custom-logo { height: 46px; width: auto; object-fit: contain; display: block; }
.nav-logo-text {
  font-family: var(--font-display); font-size: 22px; letter-spacing: 2px; color: var(--white);
}
.nav-logo-text span { color: var(--orange); }

.nav-links {
  display: flex; align-items: center; gap: 40px; list-style: none;
}
.nav-links a {
  color: var(--gray); text-decoration: none;
  font-family: var(--font-body); font-weight: 600;
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  transition: color var(--transition); position: relative; padding-bottom: 4px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--orange); transition: width 0.3s;
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { width: 100%; }

/* CTA — Let's Talk button */
.nav-links a.nav-cta,
.nav-links li:last-child > a {
  background: var(--orange); color: var(--black) !important;
  padding: 8px 22px; border-radius: var(--radius); font-weight: 700 !important;
  border-bottom: none;
}
.nav-links a.nav-cta:hover,
.nav-links li:last-child > a:hover { background: var(--orange-bright); }
.nav-links a.nav-cta::after,
.nav-links li:last-child > a::after { display: none !important; }

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

/* ── 5. Hero ──────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 40px) 60px 80px;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 55% 45%;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 2;
  width: 100%;
}

#hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
  opacity: 0.85;
}

.hero-glow {
  position: absolute; top: -100px; right: -100px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,0,0.12) 0%, transparent 70%);
  z-index: 0; animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.08); }
}

/* ── Hero Graphic ─────────────────────────────────────────── */
.hero-graphic {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  animation: fadeUp 1s 0.4s ease both;
  min-width: 0;
}

.hero-geo-svg {
  width: 100%; max-width: 460px; height: auto;
  filter: drop-shadow(0 0 40px rgba(255,107,0,0.15));
}

/* Orbit animations */
.geo-orbit-1 { animation: spinCW  30s linear infinite; transform-origin: 280px 280px; }
.geo-orbit-2 { animation: spinCCW 20s linear infinite; transform-origin: 280px 280px; }
.geo-hex     { animation: spinCW  60s linear infinite; transform-origin: 280px 280px; }
.geo-hex-inner { animation: spinCCW 45s linear infinite; transform-origin: 280px 280px; }
.geo-diamond { animation: pulseDiamond 4s ease-in-out infinite; transform-origin: 280px 280px; }
.geo-tri-1   { animation: pulseTri 3s ease-in-out infinite; transform-origin: 280px 280px; }
.geo-tri-2   { animation: pulseTri 3s 1.5s ease-in-out infinite; transform-origin: 280px 280px; }

.geo-dot-orbit   { animation: spinCW  12s linear infinite; transform-origin: 280px 280px; }
.geo-dot-orbit-2 { animation: spinCW  18s linear infinite; transform-origin: 280px 280px; }
.geo-dot-orbit-3 { animation: spinCCW 15s linear infinite; transform-origin: 280px 280px; }
.geo-dot-orbit-4 { animation: spinCCW 22s linear infinite; transform-origin: 280px 280px; }

@keyframes spinCW  { from { transform: rotate(0deg);   } to { transform: rotate(360deg);  } }
@keyframes spinCCW { from { transform: rotate(0deg);   } to { transform: rotate(-360deg); } }
@keyframes pulseDiamond {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}
@keyframes pulseTri {
  0%, 100% { opacity: 0.6; }
  50%       { opacity: 1; }
}

.hero-content { position: relative; z-index: 2; min-width: 0; }

.hero-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 28px;
  animation: fadeUp 0.8s ease both;
}
.hero-eyebrow-line { width: 50px; height: 2px; background: var(--orange); }
.hero-eyebrow-text {
  font-size: 13px; letter-spacing: 4px; text-transform: uppercase;
  color: var(--orange); font-weight: 600;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw, 100px);
  line-height: 0.9; margin-bottom: 30px;
  animation: fadeUp 0.8s 0.1s ease both;
}
.hero-title .name-first { color: var(--orange); }
.hero-title .name-last  { color: var(--white); display: block; }

.hero-sub {
  font-size: 20px; color: var(--gray); font-weight: 400;
  max-width: 520px; line-height: 1.7; margin-bottom: 50px;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-sub strong { color: var(--white); font-weight: 600; }

.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp 0.8s 0.3s ease both;
}

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 60px;
  display: flex; align-items: center; gap: 12px;
  color: var(--gray); font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  z-index: 2; animation: fadeUp 1s 0.6s ease both;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, var(--orange), transparent);
  animation: scrollAnim 2s ease-in-out infinite;
}
@keyframes scrollAnim {
  0%     { transform: scaleY(0); transform-origin: top; }
  50%    { transform: scaleY(1); transform-origin: top; }
  50.01% { transform: scaleY(1); transform-origin: bottom; }
  100%   { transform: scaleY(0); transform-origin: bottom; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── 6. Services ──────────────────────────────────────────── */
#services { padding: 120px 60px; }

.section-header { margin-bottom: 70px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.service-card {
  background: var(--dark2); padding: 50px 40px;
  position: relative; overflow: hidden;
  transition: background var(--transition);
}
.service-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,107,0,0.08), transparent);
  opacity: 0; transition: opacity 0.4s;
}
.service-card:hover::before { opacity: 1; }
.service-card::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 3px; background: var(--orange);
  transition: width 0.4s ease;
}
.service-card:hover::after { width: 100%; }

.service-number {
  font-family: var(--font-display); font-size: 72px;
  color: rgba(255,107,0,0.1); line-height: 1; margin-bottom: 10px;
  transition: color var(--transition);
}
.service-card:hover .service-number { color: rgba(255,107,0,0.22); }

.service-icon {
  width: 56px; height: 56px;
  background: rgba(255,107,0,0.1); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px; border: 1px solid rgba(255,107,0,0.2);
  transition: all var(--transition);
}
.service-card:hover .service-icon { background: rgba(255,107,0,0.2); border-color: var(--orange); }
.service-icon svg { width: 28px; height: 28px; fill: var(--orange); }

.service-name {
  font-family: var(--font-display); font-size: 30px; letter-spacing: 1px;
  margin-bottom: 16px; color: var(--white);
}
.service-desc {
  color: var(--gray); font-size: 16px; line-height: 1.7;
  font-weight: 400; margin-bottom: 30px;
}
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--orange); border: 1px solid rgba(255,107,0,0.3);
  padding: 4px 10px; border-radius: var(--radius); font-weight: 600;
}

/* ── 7. About ─────────────────────────────────────────────── */
#about {
  padding: 120px 60px; background: var(--dark);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 100px; align-items: center;
  position: relative; overflow: hidden;
}
#about::before {
  content: 'WW';
  position: absolute; font-family: var(--font-display);
  font-size: 400px; color: rgba(255,107,0,0.025);
  right: -40px; bottom: -80px; line-height: 1; pointer-events: none;
}

.about-visual { position: relative; }

.about-photo-wrap {
  width: 100%; max-width: 420px;
  position: relative;
}

.about-photo-inner {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.about-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: 4px;
  filter: grayscale(15%) contrast(1.05);
  transition: filter 0.4s ease;
}

.about-photo:hover { filter: grayscale(0%) contrast(1); }

/* Decorative orange corner accent */
.about-photo-border {
  position: absolute;
  bottom: -12px; right: -12px;
  width: 60%; height: 60%;
  border: 3px solid var(--orange);
  border-radius: 4px;
  z-index: -1;
  pointer-events: none;
}

/* Subtle orange overlay gradient at bottom */
.about-photo-inner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 35%;
  background: linear-gradient(to top, rgba(255,107,0,0.18), transparent);
  pointer-events: none;
  border-radius: 0 0 4px 4px;
}

.about-stats {
  position: absolute; bottom: -20px; right: -20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  z-index: 2;
}
.stat-box { background: var(--orange); padding: 20px 24px; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 36px; color: var(--black); line-height: 1; }
.stat-label { font-size: 11px; color: rgba(0,0,0,0.7); letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }

.about-text .section-title { margin-bottom: 24px; }
.about-desc { color: var(--gray); font-size: 17px; line-height: 1.8; margin-bottom: 20px; font-weight: 400; }
.about-desc strong { color: var(--white); font-weight: 600; }

.about-skills { margin-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.skill-row { display: flex; flex-direction: column; gap: 6px; }
.skill-row-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.skill-pct { color: var(--orange); }
.skill-bar-bg { height: 3px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; }
.skill-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange-bright));
  border-radius: 2px; animation: barGrow 1.5s ease forwards; transform-origin: left;
}
@keyframes barGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── 8. Process ───────────────────────────────────────────── */
#process { padding: 120px 60px; }

.process-steps {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 0; margin-top: 70px; position: relative;
}
.process-steps::before {
  content: ''; position: absolute;
  top: 28px; left: 12.5%; right: 12.5%; height: 2px;
  background: linear-gradient(90deg, var(--orange), rgba(255,107,0,0.15));
  z-index: 0;
}

.process-step { padding: 0 30px; position: relative; z-index: 1; }
.step-dot {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--dark2); border: 2px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 28px;
  font-family: var(--font-display); font-size: 22px; color: var(--orange);
  transition: all var(--transition);
}
.process-step:hover .step-dot { background: var(--orange); color: var(--black); transform: scale(1.1); }
.step-name { font-family: var(--font-display); font-size: 22px; letter-spacing: 1px; margin-bottom: 10px; }
.step-desc { color: var(--gray); font-size: 15px; line-height: 1.7; font-weight: 400; }

/* ── 9. Contact ───────────────────────────────────────────── */
#contact {
  padding: 120px 60px; background: var(--dark);
  position: relative; overflow: hidden;
}
#contact::before {
  content: ''; position: absolute; bottom: -200px; left: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(255,107,0,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.contact-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 100px; align-items: start; position: relative; z-index: 1;
}

.contact-left .section-title { margin-bottom: 20px; }
.contact-sub { color: var(--gray); font-size: 17px; line-height: 1.8; margin-bottom: 40px; }

.contact-links { display: flex; flex-direction: column; gap: 16px; }
.contact-link {
  display: flex; align-items: center; gap: 14px;
  color: var(--gray); text-decoration: none;
  font-size: 16px; font-weight: 500; transition: color var(--transition);
}
.contact-link:hover { color: var(--orange); }
.contact-link-icon {
  width: 40px; height: 40px;
  background: rgba(255,107,0,0.1); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  border: 1px solid rgba(255,107,0,0.2);
}
.contact-link-icon svg { width: 18px; height: 18px; fill: var(--orange); }

/* Form */
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label {
  font-size: 12px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gray); font-weight: 700;
}
.form-group input,
.form-group textarea,
.form-group select {
  background: var(--dark2); border: 1px solid rgba(255,255,255,0.08);
  color: var(--white); padding: 14px 18px;
  font-family: var(--font-body); font-size: 16px;
  border-radius: var(--radius); outline: none;
  transition: border-color var(--transition); resize: none;
  -webkit-appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #555; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--orange); }
.form-group textarea { min-height: 120px; }
.form-group select option { background: var(--dark2); }
.form-submit { margin-top: 8px; }
.form-submit .btn-primary { width: 100%; justify-content: center; }

.form-response {
  padding: 12px 16px; border-radius: var(--radius);
  font-size: 15px; font-weight: 600; display: none;
}
.form-response.success { background: rgba(0,200,100,0.1); color: #00c864; border: 1px solid rgba(0,200,100,0.3); display: block; }
.form-response.error   { background: rgba(255,50,50,0.1);  color: #ff5050; border: 1px solid rgba(255,50,50,0.3);  display: block; }

/* ── 10. Footer ───────────────────────────────────────────── */
#site-footer {
  padding: 28px 60px;
  background: var(--black);
  border-top: 1px solid rgba(255,107,0,0.1);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand { font-family: var(--font-display); font-size: 20px; letter-spacing: 2px; }
.footer-brand span { color: var(--orange); }
.footer-copy { color: var(--gray); font-size: 13px; letter-spacing: 1px; }
.footer-socials { display: flex; gap: 14px; }
.social-btn {
  width: 36px; height: 36px;
  background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.2);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all var(--transition);
}
.social-btn:hover { background: var(--orange); border-color: var(--orange); }
.social-btn svg { width: 16px; height: 16px; fill: var(--white); }

/* ── 11. Scroll Reveal ────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ── 12. WP Admin Bar offset ──────────────────────────────── */
.admin-bar #site-nav { top: 32px; }
@media (max-width: 782px) { .admin-bar #site-nav { top: 46px; } }

/* ── 13. Standard WP content pages ───────────────────────── */
.site-main {
  padding: calc(var(--nav-h) + 60px) 60px 80px;
  max-width: 900px; margin: 0 auto;
}
.site-main h1, .site-main h2, .site-main h3 { font-family: var(--font-display); color: var(--white); margin-bottom: 16px; }
.site-main p { color: var(--gray); line-height: 1.8; margin-bottom: 16px; }
.site-main a { color: var(--orange); }

/* ── 14. Responsive ───────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-graphic { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  #about { grid-template-columns: 1fr; padding: 80px 30px; gap: 60px; }
  .process-steps { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process-steps::before { display: none; }
}

@media (max-width: 768px) {
  #site-nav { padding: 14px 24px; }
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; gap: 0; list-style: none;
    background: rgba(10,10,10,0.97);
    border-top: 1px solid rgba(255,107,0,0.1);
    transform: translateX(100%); transition: transform 0.3s ease;
    padding: 20px 0;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 30px; font-size: 18px; display: block; }
  .nav-links a.nav-cta,
  .nav-links li:last-child > a { margin: 14px 30px; text-align: center; }

  #hero { padding: 100px 24px 60px; }
  .hero-inner { grid-template-columns: 1fr; gap: 0; }
  .hero-graphic { display: none; }
  .hero-scroll-hint { left: 24px; }

  #services, #process { padding: 80px 24px; }
  .services-grid { gap: 2px; }

  #about { padding: 80px 24px; }
  .about-stats { position: static; margin-top: 30px; width: fit-content; }

  #contact { padding: 80px 24px; }
  .contact-inner { grid-template-columns: 1fr; gap: 60px; }
  .form-row { grid-template-columns: 1fr; }

  #site-footer { flex-direction: column; align-items: center; padding: 30px 24px; text-align: center; }

  .process-steps { grid-template-columns: 1fr; gap: 32px; }
}

/* ═══════════════════════════════════════════════
   INTERNAL PAGE TEMPLATE
   ═══════════════════════════════════════════════ */

/* ── Page Banner ───────────────────────────────── */
.page-banner {
  position: relative;
  padding: calc(var(--nav-h) + 60px) 60px 60px;
  background: var(--dark);
  overflow: hidden;
  border-bottom: 1px solid rgba(255,107,0,0.12);
}

.page-banner-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,107,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.page-banner-glow {
  position: absolute; top: -120px; right: -120px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,107,0,0.14) 0%, transparent 70%);
  pointer-events: none;
}

.page-banner-pixels {
  position: absolute; bottom: 30px; right: 60px;
  opacity: 0.6;
}

.page-banner-inner {
  position: relative; z-index: 2;
  max-width: 760px;
}

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px;
  font-size: 13px; letter-spacing: 1px;
}
.breadcrumb a {
  color: var(--gray); text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: var(--orange); font-size: 11px; }
.breadcrumb-current { color: var(--orange); font-weight: 600; }

/* Page title */
.page-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1;
  color: var(--white);
  margin-bottom: 20px;
}
.page-title::after {
  content: '.';
  color: var(--orange);
}

.page-subtitle {
  font-size: 18px; color: var(--gray);
  line-height: 1.7; max-width: 600px;
  font-weight: 400;
}
.page-subtitle p { margin: 0; }

/* ── Page Layout ───────────────────────────────── */
.page-wrap {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 60px 80px;
}

/* ── Main Content ──────────────────────────────── */
.page-content { min-width: 0; }

.page-article .entry-content {
  color: var(--gray);
  font-size: 17px;
  line-height: 1.85;
  font-weight: 400;
}

/* Typography inside content */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5 {
  font-family: var(--font-display);
  color: var(--white);
  margin: 48px 0 18px;
  line-height: 1.1;
}
.entry-content h1 { font-size: 52px; }
.entry-content h2 { font-size: 40px; }
.entry-content h3 { font-size: 30px; }
.entry-content h4 { font-size: 22px; }

.entry-content p { margin-bottom: 24px; }

.entry-content a {
  color: var(--orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,107,0,0.3);
  transition: border-color var(--transition);
}
.entry-content a:hover { border-color: var(--orange); }

.entry-content strong { color: var(--white); font-weight: 700; }
.entry-content em { color: var(--orange); font-style: italic; }

/* Lists */
.entry-content ul,
.entry-content ol {
  padding-left: 24px;
  margin-bottom: 24px;
}
.entry-content ul { list-style: none; padding-left: 0; }
.entry-content ul li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 10px;
}
.entry-content ul li::before {
  content: '';
  position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px;
  background: var(--orange); border-radius: 50%;
}
.entry-content ol li { margin-bottom: 10px; }
.entry-content ol li::marker { color: var(--orange); font-weight: 700; }

/* Blockquote */
.entry-content blockquote {
  border-left: 3px solid var(--orange);
  margin: 36px 0;
  padding: 20px 30px;
  background: var(--dark2);
  border-radius: 0 4px 4px 0;
}
.entry-content blockquote p {
  margin: 0;
  font-size: 19px;
  color: var(--white);
  font-style: italic;
}

/* Code */
.entry-content code {
  background: var(--dark2);
  color: var(--orange);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  border: 1px solid rgba(255,107,0,0.2);
}
.entry-content pre {
  background: var(--dark2);
  border: 1px solid rgba(255,107,0,0.15);
  border-radius: 4px;
  padding: 24px;
  overflow-x: auto;
  margin-bottom: 28px;
}
.entry-content pre code {
  background: none; border: none; padding: 0;
  font-size: 14px; line-height: 1.7;
}

/* Images */
.entry-content img {
  max-width: 100%; height: auto;
  border-radius: 4px;
  margin-bottom: 24px;
  border: 1px solid rgba(255,107,0,0.1);
}

/* Tables */
.entry-content table {
  width: 100%; border-collapse: collapse;
  margin-bottom: 28px; font-size: 15px;
}
.entry-content th {
  background: var(--dark2);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  padding: 14px 18px; text-align: left;
  border-bottom: 2px solid var(--orange);
}
.entry-content td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--gray);
}
.entry-content tr:hover td { background: rgba(255,107,0,0.04); }

/* Horizontal rule */
.entry-content hr {
  border: none;
  border-top: 1px solid rgba(255,107,0,0.2);
  margin: 40px 0;
}

/* Page links (paginated content) */
.page-links {
  margin-top: 40px;
  display: flex; gap: 8px; align-items: center;
  font-size: 14px; color: var(--gray);
}
.page-links span, .page-links a {
  padding: 6px 14px;
  border: 1px solid rgba(255,107,0,0.2);
  border-radius: 2px;
}
.page-links a { color: var(--white); text-decoration: none; transition: all var(--transition); }
.page-links a:hover { background: var(--orange); border-color: var(--orange); color: var(--black); }

/* ── Sidebar ───────────────────────────────────── */
.page-sidebar {
  display: flex; flex-direction: column; gap: 24px;
}

.sidebar-card {
  background: var(--dark2);
  border: 1px solid rgba(255,107,0,0.1);
  border-radius: 4px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.sidebar-card::before {
  content: '';
  position: absolute; top: 0; left: 0;
  width: 3px; height: 100%;
  background: var(--orange);
}

.sidebar-card-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--orange); font-weight: 700; margin-bottom: 12px;
}
.sidebar-card-title {
  font-family: var(--font-display); font-size: 22px;
  color: var(--white); margin-bottom: 10px;
}
.sidebar-card-text {
  color: var(--gray); font-size: 15px; line-height: 1.7;
  margin-bottom: 16px;
}
.sidebar-link {
  color: var(--orange); text-decoration: none; font-size: 14px;
  font-weight: 600; letter-spacing: 1px;
  transition: letter-spacing var(--transition);
}
.sidebar-link:hover { letter-spacing: 2px; }

/* Services list */
.sidebar-services-list {
  list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.sidebar-services-list a {
  display: flex; align-items: center; gap: 10px;
  color: var(--gray); text-decoration: none; font-size: 15px;
  font-weight: 500; transition: color var(--transition);
}
.sidebar-services-list a:hover { color: var(--white); }
.sidebar-service-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange); flex-shrink: 0;
}

/* CTA card special styling */
.sidebar-cta { background: rgba(255,107,0,0.06); }
.sidebar-cta::before { background: var(--orange); }

/* ── Back Strip ────────────────────────────────── */
.page-back-strip {
  padding: 24px 60px;
  background: var(--dark);
  border-top: 1px solid rgba(255,107,0,0.1);
}
.page-back-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--gray); text-decoration: none; font-size: 14px;
  font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  transition: color var(--transition);
}
.page-back-link:hover { color: var(--orange); }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
  .page-wrap { grid-template-columns: 1fr; padding: 50px 30px 60px; gap: 40px; }
  .page-sidebar { flex-direction: row; flex-wrap: wrap; }
  .sidebar-card { flex: 1 1 260px; }
}

@media (max-width: 768px) {
  .page-banner { padding: calc(var(--nav-h) + 40px) 24px 40px; }
  .page-banner-pixels { display: none; }
  .page-wrap { padding: 40px 24px 60px; }
  .page-sidebar { flex-direction: column; }
  .page-back-strip { padding: 24px; }
  .entry-content h2 { font-size: 30px; }
  .entry-content h3 { font-size: 24px; }
}

/* ── Top Bar ──────────────────────────────────── */
#top-bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 950;
  background: var(--orange);
  height: 38px;
  display: flex; align-items: center;
}
.top-bar-inner {
  width: 100%; max-width: 100%;
  padding: 0 60px;
  display: flex; align-items: center;
  justify-content: space-between;
}
.top-bar-msg {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--black); font-weight: 600;
}
.top-bar-msg svg { flex-shrink: 0; }
.top-bar-phone {
  display: flex; align-items: center; gap: 8px;
  color: var(--black); text-decoration: none;
  font-family: var(--font-display); font-size: 18px;
  letter-spacing: 2px; font-weight: 700;
  transition: opacity var(--transition);
}
.top-bar-phone:hover { opacity: 0.75; }

/* Offset nav and hero for top bar */
:root { --topbar-h: 38px; }
#site-nav { top: var(--topbar-h); }
.admin-bar #top-bar { top: 32px; }
.admin-bar #site-nav { top: calc(32px + var(--topbar-h)); }
@media (max-width: 782px) {
  .admin-bar #top-bar { top: 46px; }
  .admin-bar #site-nav { top: calc(46px + var(--topbar-h)); }
}

#hero,
.page-banner {
  padding-top: calc(var(--nav-h) + var(--topbar-h) + 40px);
}

@media (max-width: 600px) {
  .top-bar-inner { padding: 0 20px; }
  .top-bar-msg { display: none; }
  .top-bar-phone { font-size: 15px; }
}

/* ═══════════════════════════════════════════════
   MY WORK SECTION
   ═══════════════════════════════════════════════ */

#work {
  padding: 120px 60px;
  background: var(--dark);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Work Card ─────────────────────────────────── */
.work-card {
  background: var(--dark2);
  border: 1px solid rgba(255,107,0,0.1);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.work-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,107,0,0.4);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,107,0,0.15);
}

/* Featured card */
.work-card--featured {
  border-color: var(--orange);
  position: relative;
}
.work-card--featured::before {
  content: '★ Featured';
  position: absolute; top: 14px; right: 14px;
  background: var(--orange); color: var(--black);
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; padding: 3px 10px; border-radius: 2px;
  z-index: 3;
}

/* Screenshot image */
.work-card-img {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--black);
}
.work-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.work-card:hover .work-card-img img {
  transform: scale(1.05);
}

/* Empty placeholder image area */
.work-card-img--empty {
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,107,0,0.04);
  border-bottom: 1px solid rgba(255,107,0,0.08);
}

/* Hover overlay with View button */
.work-card-overlay {
  position: absolute; inset: 0;
  background: rgba(10,10,10,0.75);
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.work-card:hover .work-card-overlay { opacity: 1; }

.work-card-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: var(--black);
  padding: 12px 24px; border-radius: 2px;
  font-family: var(--font-body); font-weight: 700;
  font-size: 13px; letter-spacing: 2px; text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}
.work-card-btn:hover { background: var(--orange-bright); }

/* Card body */
.work-card-body {
  padding: 26px 28px 28px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}

.work-card-cat {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--orange); font-weight: 700;
}

.work-card-title {
  font-family: var(--font-display);
  font-size: 22px; letter-spacing: 0.5px;
  color: var(--white); line-height: 1.2;
}
.work-card-title a {
  color: var(--white); text-decoration: none;
  transition: color var(--transition);
}
.work-card-title a:hover { color: var(--orange); }

.work-card-desc {
  color: var(--gray); font-size: 14px;
  line-height: 1.7; font-weight: 400;
  margin: 0;
}

.work-card-tech {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 4px;
}

/* Placeholder card */
.work-card--placeholder {
  opacity: 0.5;
  pointer-events: none;
}

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1100px) {
  #work { padding: 80px 30px; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 640px) {
  #work { padding: 80px 24px; }
  .work-grid { grid-template-columns: 1fr; }
}
