/*
Theme Name: Eknetra Productions
Theme URI: https://eknetraproductions.com
Author: Eknetra Studio
Author URI: https://eknetraproductions.com
Description: Ultra-modern cinematic dark theme for Eknetra Productions — a premium video production company. Built for Elementor Free compatibility.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: Proprietary
Text Domain: eknetra
Tags: dark, cinematic, elementor, video-production, custom
*/

/* ============================================================
   EKNETRA THEME — GLOBAL DESIGN SYSTEM
   Colour palette, typography scale, resets, utilities
   ============================================================ */

/* ---------- 1. GOOGLE FONTS ---------- */
/* Loaded non-blocking via wp_enqueue_style('ekn-fonts') in functions.php */

/* ---------- 2. CSS CUSTOM PROPERTIES (DESIGN TOKENS) ---------- */
:root {

  /* Core Palette */
  --ekn-bg-void:        #0a0a0f;
  --ekn-bg-deep:        #0f0a18;
  --ekn-bg-surface:     #13091f;
  --ekn-bg-card:        rgba(255,255,255,0.03);
  --ekn-bg-card-hover:  rgba(255,255,255,0.06);

  /* Brand Colours */
  --ekn-gold:           #ffb800;
  --ekn-gold-dim:       rgba(255,184,0,0.15);
  --ekn-crimson:        #ff2d55;
  --ekn-crimson-dim:    rgba(255,45,85,0.15);
  --ekn-violet:         #7c3aed;
  --ekn-violet-dim:     rgba(124,58,237,0.12);
  --ekn-sky:            #0ea5e9;

  /* Text Hierarchy */
  --ekn-text-primary:   #f5f5f7;
  --ekn-text-secondary: #a1a1aa;
  --ekn-text-muted:     #71717a;
  --ekn-text-faint:     #52525b;

  /* Border */
  --ekn-border-subtle:  rgba(255,255,255,0.06);
  --ekn-border-mid:     rgba(255,255,255,0.1);
  --ekn-border-gold:    rgba(255,184,0,0.2);
  --ekn-border-violet:  rgba(124,58,237,0.25);

  /* Gradients */
  --ekn-grad-brand:     linear-gradient(135deg, #ff2d55, #ffb800);
  --ekn-grad-violet:    linear-gradient(135deg, #7c3aed, #ff2d55);
  --ekn-grad-gold:      linear-gradient(135deg, #ffb800, #ff2d55);
  --ekn-grad-surface:   linear-gradient(160deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));

  /* Typography */
  --ekn-font-display:   'Space Grotesk', 'Helvetica Neue', sans-serif;
  --ekn-font-rubik:     'Rubik', sans-serif;
  --ekn-font-body:      'Inter', system-ui, sans-serif;
  --ekn-font-mono:      'JetBrains Mono', 'Courier New', monospace;

  /* Type Scale (fluid clamp) */
  --ekn-text-xs:        11px;
  --ekn-text-sm:        13px;
  --ekn-text-base:      15px;
  --ekn-text-md:        17px;
  --ekn-text-lg:        20px;
  --ekn-text-xl:        clamp(24px, 3vw, 36px);
  --ekn-text-2xl:       clamp(32px, 4.5vw, 56px);
  --ekn-text-3xl:       clamp(40px, 6vw, 80px);
  --ekn-text-hero:      clamp(52px, 8vw, 110px);

  /* Spacing */
  --ekn-section-pad:    120px 6vw;
  --ekn-section-pad-sm: 80px 6vw;
  --ekn-max-width:      1400px;
  --ekn-content-width:  900px;

  /* Radius */
  --ekn-radius-sm:      8px;
  --ekn-radius-md:      14px;
  --ekn-radius-lg:      20px;
  --ekn-radius-xl:      28px;
  --ekn-radius-pill:    100px;

  /* Shadows */
  --ekn-shadow-gold:    0 20px 60px -10px rgba(255,184,0,0.3);
  --ekn-shadow-crimson: 0 20px 60px -10px rgba(255,45,85,0.3);
  --ekn-shadow-violet:  0 20px 60px -10px rgba(124,58,237,0.3);
  --ekn-shadow-card:    0 40px 80px -30px rgba(0,0,0,0.6);

  /* Transitions */
  --ekn-ease:           cubic-bezier(0.2, 0.8, 0.2, 1);
  --ekn-duration:       0.5s;
  --ekn-duration-fast:  0.25s;
}

/* ---------- 3. RESET + BASE ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--ekn-bg-void);
  color: var(--ekn-text-primary);
  font-family: var(--ekn-font-body);
  font-size: var(--ekn-text-base);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Prevent FOUC on Elementor pages */
.elementor-invisible { visibility: hidden; }

img, video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ekn-gold);
  text-decoration: none;
  transition: color var(--ekn-duration-fast) ease;
}

a:hover { color: var(--ekn-text-primary); }

ul, ol { list-style: none; }

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ---------- 4. TYPOGRAPHY SYSTEM ---------- */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--ekn-font-display);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ekn-text-primary);
}

h1 { font-size: var(--ekn-text-hero); }
h2 { font-size: var(--ekn-text-3xl); }
h3 { font-size: var(--ekn-text-xl); }
h4 { font-size: var(--ekn-text-lg); }
h5 { font-size: var(--ekn-text-base); font-weight: 600; }
h6 { font-size: var(--ekn-text-xs); font-family: var(--ekn-font-mono); letter-spacing: 0.2em; text-transform: uppercase; }

p { line-height: 1.7; color: var(--ekn-text-secondary); }

/* Rubik variant for service/blog accent text */
.ekn-serif {
  font-family: var(--ekn-font-rubik) !important;
  letter-spacing: -0.02em;
}

/* Mono labels */
.ekn-label {
  font-family: var(--ekn-font-mono);
  font-size: var(--ekn-text-xs);
  color: var(--ekn-gold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
}

/* Gradient text utility */
.ekn-gradient-text {
  background: var(--ekn-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ekn-gradient-text-violet {
  background: var(--ekn-grad-violet);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 5. LAYOUT UTILITIES ---------- */

.ekn-container {
  max-width: var(--ekn-max-width);
  margin: 0 auto;
  width: 100%;
}

.ekn-content {
  max-width: var(--ekn-content-width);
  margin: 0 auto;
}

.ekn-section {
  padding: var(--ekn-section-pad);
}

.ekn-section-sm {
  padding: var(--ekn-section-pad-sm);
}

/* Flex helpers */
.ekn-flex         { display: flex; }
.ekn-flex-center  { display: flex; align-items: center; justify-content: center; }
.ekn-flex-between { display: flex; align-items: center; justify-content: space-between; }
.ekn-flex-col     { display: flex; flex-direction: column; }

/* Grid helper */
.ekn-grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* ---------- 6. COMPONENT LIBRARY ---------- */

/* --- 6a. BUTTONS --- */
.ekn-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--ekn-radius-pill);
  font-family: var(--ekn-font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s var(--ekn-ease);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Primary: Crimson-to-rose */
.ekn-btn-primary {
  background: linear-gradient(135deg, #ff2d55, #c41e3a);
  color: #ffffff;
  box-shadow: 0 12px 40px -8px rgba(255,45,85,0.5);
}
.ekn-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px -8px rgba(255,45,85,0.7);
  color: #ffffff;
}

/* Secondary: Glass */
.ekn-btn-secondary {
  background: rgba(255,255,255,0.06);
  color: var(--ekn-text-primary);
  border: 1px solid var(--ekn-border-mid);
  backdrop-filter: blur(12px);
}
.ekn-btn-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--ekn-border-gold);
  color: var(--ekn-text-primary);
}

/* Gold outline */
.ekn-btn-gold {
  background: transparent;
  color: var(--ekn-gold);
  border: 1px solid var(--ekn-gold);
}
.ekn-btn-gold:hover {
  background: var(--ekn-gold);
  color: var(--ekn-bg-void);
}

/* Violet variant */
.ekn-btn-violet {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
  color: #ffffff;
  box-shadow: 0 12px 40px -8px rgba(124,58,237,0.5);
}
.ekn-btn-violet:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px -8px rgba(124,58,237,0.7);
  color: #ffffff;
}

/* Large button modifier */
.ekn-btn-lg {
  padding: 20px 40px;
  font-size: 17px;
}

/* --- 6b. CARDS --- */
.ekn-card {
  background: var(--ekn-grad-surface);
  border: 1px solid var(--ekn-border-subtle);
  border-radius: var(--ekn-radius-lg);
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: all var(--ekn-duration) var(--ekn-ease);
  transform-style: preserve-3d;
}

.ekn-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--ekn-gold), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.ekn-card:hover {
  transform: translateY(-10px) rotateX(4deg) rotateY(-2deg);
  border-color: var(--ekn-border-gold);
  box-shadow: 0 40px 80px -30px rgba(255,45,85,0.2);
}

.ekn-card:hover::before { opacity: 1; }

/* Glass card variant */
.ekn-card-glass {
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--ekn-radius-lg);
  padding: 32px;
}

/* --- 6c. ICON BOX --- */
.ekn-icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--ekn-radius-md);
  background: linear-gradient(135deg, rgba(255,45,85,0.15), rgba(124,58,237,0.1));
  border: 1px solid var(--ekn-border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ekn-icon-box svg {
  width: 28px;
  height: 28px;
  stroke: var(--ekn-gold);
  fill: none;
  stroke-width: 1.8;
}

/* --- 6d. BADGE/CHIP --- */
.ekn-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--ekn-radius-pill);
  font-family: var(--ekn-font-mono);
  font-size: var(--ekn-text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ekn-badge-gold {
  border: 1px solid rgba(255,184,0,0.4);
  color: var(--ekn-gold);
  background: rgba(255,184,0,0.06);
}

.ekn-badge-crimson {
  border: 1px solid rgba(255,45,85,0.4);
  color: var(--ekn-crimson);
  background: rgba(255,45,85,0.06);
}

.ekn-badge-violet {
  border: 1px solid rgba(124,58,237,0.4);
  color: var(--ekn-violet);
  background: rgba(124,58,237,0.08);
}

/* Pulse dot */
.ekn-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
  animation: eknPulse 2.5s ease-in-out infinite;
}

@keyframes eknPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.35; }
}

/* --- 6e. DIVIDERS --- */
.ekn-divider {
  border: none;
  height: 1px;
  background: var(--ekn-border-subtle);
  margin: 0;
}

.ekn-divider-gold {
  background: linear-gradient(90deg, transparent, var(--ekn-gold), transparent);
  opacity: 0.3;
}

/* --- 6f. SECTION HEADINGS --- */
.ekn-section-head {
  margin-bottom: 60px;
}

.ekn-section-head-centered {
  text-align: center;
  margin-bottom: 60px;
}

.ekn-section-head h2 {
  font-size: var(--ekn-text-2xl);
  margin-top: 16px;
}

.ekn-section-head p {
  color: var(--ekn-text-secondary);
  font-size: 16px;
  margin-top: 16px;
  max-width: 600px;
  line-height: 1.7;
}

/* --- 6g. PLAY BUTTON --- */
.ekn-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.ekn-play-btn::after {
  content: "";
  border-left: 16px solid #ffffff;
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}

.ekn-play-btn:hover {
  background: rgba(255,45,85,0.6);
  border-color: var(--ekn-crimson);
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(255,45,85,0.4);
}

/* ---------- 7. GLOBAL NAVIGATION ---------- */

#ekn-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0 6vw;
  transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

#ekn-nav.scrolled {
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.ekn-nav-inner {
  max-width: var(--ekn-max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

/* Logo */
.ekn-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.ekn-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ff2d55, #ffb800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ekn-font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ekn-bg-void);
  letter-spacing: -0.05em;
}

.ekn-logo-text {
  font-family: var(--ekn-font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ekn-text-primary);
  letter-spacing: -0.02em;
}

.ekn-logo-text span {
  color: var(--ekn-gold);
}

/* Desktop Menu */
.ekn-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.ekn-menu > li {
  position: relative;
}

.ekn-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ekn-text-secondary);
  border-radius: 8px;
  transition: all 0.25s ease;
}

.ekn-menu > li > a:hover,
.ekn-menu > li.current-menu-item > a {
  color: var(--ekn-text-primary);
  background: rgba(255,255,255,0.06);
}

/* Dropdown arrow */
.ekn-menu > li.menu-item-has-children > a::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  display: inline-block;
  transition: transform 0.25s ease;
  opacity: 0.6;
}

.ekn-menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(-135deg) translateY(0px);
}

/* Dropdown panel */
.ekn-menu .sub-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 240px;
  background: rgba(15,10,24,0.95);
  backdrop-filter: blur(24px);
  border: 1px solid var(--ekn-border-subtle);
  border-radius: var(--ekn-radius-md);
  padding: 8px;
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all 0.3s var(--ekn-ease);
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.8);
}

.ekn-menu li:hover > .sub-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.ekn-menu .sub-menu li a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ekn-text-secondary);
  border-radius: 6px;
  transition: all 0.2s ease;
}

.ekn-menu .sub-menu li a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--ekn-text-primary);
  padding-left: 20px;
}

/* Nav CTA */
.ekn-nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Mobile hamburger */
.ekn-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background 0.25s ease;
}

.ekn-hamburger:hover { background: rgba(255,255,255,0.06); }

.ekn-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ekn-text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile menu overlay */
.ekn-mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10,10,15,0.98);
  backdrop-filter: blur(24px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ekn-mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.ekn-mobile-menu a {
  font-family: var(--ekn-font-display);
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  color: var(--ekn-text-primary);
  letter-spacing: -0.02em;
  transition: color 0.25s ease;
}

.ekn-mobile-menu a:hover { color: var(--ekn-gold); }

.ekn-mobile-close {
  position: absolute;
  top: 24px;
  right: 6vw;
  font-size: 32px;
  color: var(--ekn-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.25s ease;
}

.ekn-mobile-close:hover { color: var(--ekn-text-primary); }

/* ---------- 8. GLOBAL FOOTER ---------- */

#ekn-footer {
  background: var(--ekn-bg-void);
  border-top: 1px solid var(--ekn-border-subtle);
  padding: 80px 6vw 40px;
  color: var(--ekn-text-secondary);
}

.ekn-footer-inner {
  max-width: var(--ekn-max-width);
  margin: 0 auto;
}

.ekn-footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.ekn-footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}

.ekn-footer-col h5 {
  font-family: var(--ekn-font-mono);
  font-size: var(--ekn-text-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ekn-text-muted);
  margin-bottom: 20px;
}

.ekn-footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ekn-footer-col ul a {
  font-size: 14px;
  color: var(--ekn-text-secondary);
  transition: color 0.25s ease;
}

.ekn-footer-col ul a:hover {
  color: var(--ekn-text-primary);
}

.ekn-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.ekn-footer-contact a { color: var(--ekn-text-secondary); }
.ekn-footer-contact a:hover { color: var(--ekn-gold); }

.ekn-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--ekn-border-subtle);
  gap: 24px;
  flex-wrap: wrap;
}

.ekn-footer-legal {
  font-family: var(--ekn-font-mono);
  font-size: var(--ekn-text-xs);
  color: var(--ekn-text-faint);
  letter-spacing: 0.08em;
}

.ekn-footer-social {
  display: flex;
  gap: 12px;
}

.ekn-social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--ekn-border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ekn-text-muted);
  transition: all 0.25s ease;
  font-size: 14px;
}

.ekn-social-link:hover {
  border-color: var(--ekn-gold);
  color: var(--ekn-gold);
  background: rgba(255,184,0,0.06);
}

/* ---------- 9. SCROLL PROGRESS BAR ---------- */

#ekn-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff2d55, #ffb800);
  z-index: 1100;
  width: 0%;
  transition: width 0.1s linear;
}

/* ---------- 10. PAGE TRANSITIONS ---------- */

.ekn-page-enter {
  animation: eknFadeIn 0.6s var(--ekn-ease) forwards;
}

@keyframes eknFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 11. SCROLL-REVEAL UTILITY ---------- */

.ekn-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ekn-ease), transform 0.7s var(--ekn-ease);
}

.ekn-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.ekn-reveal-delay-1 { transition-delay: 0.1s; }
.ekn-reveal-delay-2 { transition-delay: 0.2s; }
.ekn-reveal-delay-3 { transition-delay: 0.3s; }
.ekn-reveal-delay-4 { transition-delay: 0.4s; }

/* ---------- 12. CURSOR GLOW (OPTIONAL) ---------- */

.ekn-cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,184,0,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: left 0.1s ease, top 0.1s ease;
}

/* ---------- 13. ELEMENTOR OVERRIDES ---------- */

/* Force dark background on all Elementor sections */
.elementor-section,
.elementor-element {
  position: relative;
}

/* Remove default Elementor padding resets that break design */
.elementor-section .elementor-container {
  max-width: var(--ekn-max-width);
}

/* Elementor columns inherit font */
.elementor-widget-wrap {
  font-family: var(--ekn-font-body);
}

/* Elementor heading widgets */
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--ekn-font-display);
  letter-spacing: -0.03em;
}

/* Elementor text widgets */
.elementor-widget-text-editor {
  color: var(--ekn-text-secondary);
  font-size: var(--ekn-text-base);
  line-height: 1.7;
}

/* Elementor forms */
.elementor-form .elementor-field-group input,
.elementor-form .elementor-field-group textarea,
.elementor-form .elementor-field-group select {
  background: rgba(255,255,255,0.05) !important;
  border: 1px solid var(--ekn-border-subtle) !important;
  color: var(--ekn-text-primary) !important;
  border-radius: var(--ekn-radius-sm) !important;
  font-family: var(--ekn-font-body) !important;
  padding: 14px 18px !important;
  transition: border-color 0.25s ease !important;
}

.elementor-form .elementor-field-group input:focus,
.elementor-form .elementor-field-group textarea:focus {
  border-color: var(--ekn-gold) !important;
  background: rgba(255,255,255,0.07) !important;
  box-shadow: 0 0 0 3px rgba(255,184,0,0.1) !important;
}

.elementor-form .elementor-field-group input::placeholder,
.elementor-form .elementor-field-group textarea::placeholder {
  color: var(--ekn-text-faint) !important;
}

.elementor-form .elementor-button {
  background: linear-gradient(135deg, #ff2d55, #c41e3a) !important;
  border-radius: var(--ekn-radius-pill) !important;
  font-weight: 600 !important;
  padding: 16px 32px !important;
  box-shadow: 0 12px 40px -8px rgba(255,45,85,0.5) !important;
  transition: all 0.3s ease !important;
}

.elementor-form .elementor-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 20px 60px -8px rgba(255,45,85,0.7) !important;
}

/* Elementor gallery */
.elementor-gallery-item__overlay {
  background: rgba(10,10,15,0.7) !important;
  backdrop-filter: blur(8px) !important;
}

/* Elementor tabs */
.elementor-tab-title {
  color: var(--ekn-text-muted) !important;
  border-bottom: 2px solid var(--ekn-border-subtle) !important;
  font-family: var(--ekn-font-mono) !important;
  font-size: var(--ekn-text-xs) !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  transition: all 0.25s ease !important;
}

.elementor-tab-title.elementor-active {
  color: var(--ekn-gold) !important;
  border-bottom-color: var(--ekn-gold) !important;
}

/* Elementor accordion */
.elementor-accordion .elementor-tab-title {
  background: transparent !important;
  border-top: 1px solid var(--ekn-border-subtle) !important;
  color: var(--ekn-text-primary) !important;
  font-family: var(--ekn-font-display) !important;
  font-size: 18px !important;
  padding: 20px 0 !important;
}

.elementor-accordion .elementor-tab-content {
  color: var(--ekn-text-secondary) !important;
  background: transparent !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

/* ---------- 14. WORDPRESS BLOCK EDITOR (GUTENBERG) OVERRIDES ---------- */

.wp-block-cover {
  background-color: var(--ekn-bg-void) !important;
}

.wp-block-quote {
  border-left: 3px solid var(--ekn-gold);
  padding-left: 24px;
  font-family: var(--ekn-font-rubik);
  font-style: italic;
  color: var(--ekn-text-secondary);
  font-size: 18px;
}

.wp-block-code,
.wp-block-preformatted {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ekn-border-subtle);
  border-radius: var(--ekn-radius-sm);
  font-family: var(--ekn-font-mono);
  color: var(--ekn-gold);
  font-size: 13px;
}

/* ---------- 15. BLOG / SINGLE POST ---------- */

.ekn-post-header {
  background: linear-gradient(180deg, #13091f 0%, #0a0a0f 100%);
  padding: 160px 6vw 80px;
}

.ekn-post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 80px 6vw;
}

.ekn-post-content h2,
.ekn-post-content h3 {
  color: var(--ekn-text-primary);
  margin: 40px 0 16px;
}

.ekn-post-content p {
  color: var(--ekn-text-secondary);
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.ekn-post-content a {
  color: var(--ekn-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Blog card */
.ekn-blog-card {
  background: var(--ekn-grad-surface);
  border: 1px solid var(--ekn-border-subtle);
  border-radius: var(--ekn-radius-lg);
  overflow: hidden;
  transition: all var(--ekn-duration) var(--ekn-ease);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.ekn-blog-card:hover {
  transform: translateY(-8px);
  border-color: var(--ekn-border-gold);
  box-shadow: var(--ekn-shadow-card);
  color: inherit;
}

.ekn-blog-card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--ekn-bg-surface), var(--ekn-bg-deep));
  overflow: hidden;
}

.ekn-blog-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ekn-ease);
}

.ekn-blog-card:hover .ekn-blog-card-thumb img {
  transform: scale(1.05);
}

.ekn-blog-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ekn-blog-card-meta {
  font-family: var(--ekn-font-mono);
  font-size: var(--ekn-text-xs);
  color: var(--ekn-text-faint);
  letter-spacing: 0.12em;
  margin-bottom: 12px;
}

.ekn-blog-card h3 {
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.ekn-blog-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ekn-text-secondary);
  flex: 1;
}

.ekn-blog-card-link {
  margin-top: 20px;
  font-family: var(--ekn-font-mono);
  font-size: 12px;
  color: var(--ekn-gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- 16. PORTFOLIO / CASE STUDY ---------- */

.ekn-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.ekn-portfolio-item {
  position: relative;
  border-radius: var(--ekn-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--ekn-bg-surface);
  border: 1px solid var(--ekn-border-subtle);
  transition: all 0.6s var(--ekn-ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.ekn-portfolio-item:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: var(--ekn-border-gold);
  box-shadow: 0 40px 80px -30px rgba(255,45,85,0.25);
}

.ekn-portfolio-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(10,10,15,0.95) 100%);
  z-index: 1;
}

.ekn-portfolio-meta {
  position: relative;
  z-index: 2;
  padding: 28px;
}

.ekn-portfolio-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ekn-ease);
}

.ekn-portfolio-item:hover img {
  transform: scale(1.06);
}

/* ---------- 17. VIDEO LIGHTBOX ---------- */

.ekn-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.ekn-lightbox-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.ekn-lightbox-content {
  position: relative;
  max-width: 1000px;
  width: 90vw;
}

.ekn-lightbox-content iframe,
.ekn-lightbox-content video {
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--ekn-radius-md);
}

.ekn-lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  font-size: 32px;
  color: var(--ekn-text-muted);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.25s ease;
}

.ekn-lightbox-close:hover { color: var(--ekn-text-primary); }

/* ---------- 18. NOISE TEXTURE OVERLAY ---------- */

.ekn-noise::after {
  content: "";
  position: absolute;
  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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 1;
}

/* ---------- 19. SCROLLBAR STYLING ---------- */

::-webkit-scrollbar {
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-track { background: var(--ekn-bg-void); }
::-webkit-scrollbar-thumb {
  background: var(--ekn-text-faint);
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover { background: var(--ekn-gold); }

/* ---------- 20. SELECTION COLOUR ---------- */

::selection {
  background: rgba(255,184,0,0.25);
  color: var(--ekn-text-primary);
}

/* ---------- 23. ELEMENTOR CSS ISOLATION ---------- */
/* Prevent Elementor Free defaults from overriding theme dark background */

.elementor-section { background: transparent !important; }
.elementor-section > .elementor-container { max-width: none !important; padding: 0 !important; }
.elementor-widget-wrap { padding: 0 !important; }
.elementor-widget { margin-bottom: 0 !important; }
.elementor-widget-html { width: 100%; }
.elementor-element { --e-global--color-primary: #ffb800; --e-global--color-text: #f5f5f7; }
.elementor h1,
.elementor h2,
.elementor h3,
.elementor h4,
.elementor h5,
.elementor h6 {
	color: var(--ekn-text-primary);
	font-family: var(--ekn-font-display);
}
.elementor p { color: var(--ekn-text-secondary); font-family: var(--ekn-font-body); }

/* Kill Elementor's top/bottom section padding defaults */
.elementor-section .elementor-container { padding-top: 0 !important; padding-bottom: 0 !important; }

/* Ensure Elementor HTML widgets get full bleed */
.elementor-widget-html .elementor-widget-container { overflow: visible; }

/* ---------- 24. SKIP LINK (a11y) ---------- */
.ekn-skip-link {
	position: fixed;
	top: -100px;
	left: 16px;
	z-index: 10000;
	padding: 12px 24px;
	background: var(--ekn-gold);
	color: var(--ekn-bg-void);
	font-weight: 600;
	border-radius: 0 0 8px 8px;
	transition: top 0.3s ease;
	text-decoration: none;
}
.ekn-skip-link:focus { top: 0; }

/* ---------- 25. REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}

/* ---------- 21. RESPONSIVE BREAKPOINTS ---------- */

@media (max-width: 1200px) {
  :root {
    --ekn-section-pad: 100px 5vw;
  }

  .ekn-footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  :root {
    --ekn-section-pad: 80px 5vw;
    --ekn-section-pad-sm: 60px 5vw;
  }

  .ekn-menu,
  .ekn-nav-cta .ekn-btn {
    display: none;
  }

  .ekn-hamburger { display: flex; }

  .ekn-portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --ekn-section-pad: 60px 5vw;
  }

  .ekn-footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .ekn-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .ekn-btn-lg {
    padding: 16px 28px;
    font-size: 15px;
  }
}

/* ---------- 22. PRINT STYLES ---------- */

@media print {
  #ekn-nav,
  #ekn-footer,
  #ekn-progress,
  .ekn-cursor-glow {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
  }
}