/* ============================================================
   CUSTOM DARK THEME — Main Design System
   Premium dark mode CSS with design tokens, components,
   animations, and responsive layout.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700;800&family=Raleway:wght@300;400;500;600;700;800&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  --bg-primary:     #0D0D0F;
  --bg-surface:     #1A1A1F;
  --bg-elevated:    #242430;
  --bg-card:        #1E1E28;

  --accent:          #6C63FF;
  --accent-light:    #8B85FF;
  --accent-dark:     #4F49CC;
  --accent-contrast: #ffffff;
  --accent-glow:     rgba(108, 99, 255, 0.20);
  --accent-glow-lg:  rgba(108, 99, 255, 0.10);

  --text-primary:   #E8E8F0;
  --text-secondary: #ABABC0;
  --text-muted:     #66688A;
  --text-heading:   #FFFFFF;

  --border:         rgba(255, 255, 255, 0.07);
  --border-hover:   rgba(255, 255, 255, 0.12);
  --border-accent:  rgba(108, 99, 255, 0.30);

  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --radius-full:    9999px;

  --shadow-sm:      0 2px 8px rgba(0,0,0,0.30);
  --shadow:         0 4px 20px rgba(0,0,0,0.40);
  --shadow-lg:      0 8px 40px rgba(0,0,0,0.55);
  --shadow-glow:    0 0 30px rgba(108,99,255,0.20);

  --header-h:       70px;
  --transition:     0.22s ease;
  --transition-sl:  0.35s ease;

  --font-body:    'Inter', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-size:    16px;
  --line-height:  1.7;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: var(--line-height);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem;  }
h6 { font-size: 1rem;    }

p { margin-bottom: 1.2em; color: var(--text-primary); }
p:last-child { margin-bottom: 0; }

a {
  color: var(--accent-light);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--accent); }

strong, b { font-weight: 700; color: var(--text-heading); }
em, i { color: var(--text-secondary); }

small { font-size: 0.85em; color: var(--text-secondary); }

blockquote {
  border-left: 3px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--bg-surface);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-secondary);
}

code {
  font-family: 'Fira Code', 'Consolas', monospace;
  background: var(--bg-elevated);
  color: var(--accent-light);
  padding: 0.2em 0.5em;
  border-radius: var(--radius-sm);
  font-size: 0.88em;
  border: 1px solid var(--border);
}

pre {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.875rem;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

ul, ol { padding-left: 1.5rem; margin-bottom: 1.2em; }
li { margin-bottom: 0.4em; }

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

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
th, td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}
th {
  background: var(--bg-surface);
  color: var(--text-heading);
  font-weight: 600;
}
tr:hover td { background: rgba(255,255,255,0.02); }

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--wide  { max-width: 1400px; }
.container--narrow{ max-width: 780px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-gap { gap: 1rem; }

.text-center { text-align: center; }
.text-right  { text-align: right; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-light);
  color: var(--accent-contrast);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--accent-light);
  border: 1.5px solid var(--border-accent);
}
.btn-outline:hover {
  background: var(--accent-glow);
  color: var(--accent-light);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.85rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 0.95rem; }

/* Button contrast variants - intelligent text color based on background */
.btn-primary.btn-light,
.btn-primary--light {
  background: #ffffff;
  color: #0D0D0F;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.btn-primary.btn-light:hover,
.btn-primary--light:hover {
  background: #f0f0f0;
  color: #0D0D0F;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-primary.btn-dark,
.btn-primary--dark {
  background: #1a1a1f;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
.btn-primary.btn-dark:hover,
.btn-primary--dark:hover {
  background: #2a2a35;
  color: #ffffff;
}

.btn-outline.btn-outline-light,
.btn-outline--light {
  border-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}
.btn-outline.btn-outline-light:hover,
.btn-outline--light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition-sl);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,99,255,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-sl);
}
.card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-accent);
  transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }

/* ── Badges / Tags ────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-accent { background: var(--accent-glow); color: var(--accent-light); border: 1px solid var(--border-accent); }
.badge-muted  { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border); }

/* ── Section Styles ───────────────────────────────────────── */
.section {
  padding: 5rem 0;
}
.section--sm { padding: 3rem 0; }
.section--lg { padding: 8rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header .section-label {
  display: inline-block;
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  transition: all var(--transition-sl);
}

.site-header.header-solid {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.site-header.header-glass {
  background: rgba(13, 13, 15, 0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}

.site-header.header-transparent {
  background: transparent;
}

.site-header.shrunk {
  height: 58px;
  background: rgba(13, 13, 15, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.site-logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}
.site-logo .logo-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-heading);
  letter-spacing: -0.03em;
}
.site-logo .logo-text span { color: var(--accent-light); }

/* Navigation */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.site-nav .menu {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav .menu > li {
  margin: 0;
}

.site-nav .menu > li > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  text-decoration: none;
  position: relative;
}

.site-nav .menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 20px);
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: transform 0.25s ease;
}

.site-nav .menu > li > a:hover {
  color: var(--text-primary);
}

.site-nav .menu > li > a:hover::after {
  transform: translateX(-50%) scaleX(1);
}

.site-nav .menu > li.current-menu-item > a,
.site-nav .menu > li.current_page_item > a,
.site-nav .menu > li.current-menu-ancestor > a,
.site-nav .menu > li.current_page_ancestor > a {
  color: var(--accent);
}

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Mobile Menu Toggle (Hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 8px;
  cursor: pointer;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.menu-toggle:hover {
  background: var(--bg-surface);
  border-color: var(--border-hover);
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Navigation Drawer ─────────────────────────────── */

/* Overlay Backdrop */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Main Drawer */
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  box-shadow: 4px 0 30px rgba(0, 0, 0, 0.3);
}
.mobile-nav.open {
  transform: translateX(0);
}

/* Drawer Header */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-surface);
}
.mobile-nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.mobile-nav-logo .logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
}
.mobile-nav-logo .custom-logo {
  max-height: 36px;
  width: auto;
}
.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}
.mobile-nav-close:hover {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent-light);
}

/* Drawer Content - Scrollable Menu Area */
.mobile-nav-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 0;
}
.mobile-nav-content::-webkit-scrollbar {
  width: 4px;
}
.mobile-nav-content::-webkit-scrollbar-track {
  background: transparent;
}
.mobile-nav-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* Menu Items */
.mobile-nav .menu,
.mobile-nav .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mobile-nav .menu > li {
  margin: 0;
  padding: 0 0.75rem;
}

.mobile-nav .menu > li + li {
  margin-top: 0.25rem;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
}
.mobile-nav a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
  transition: height 0.2s ease;
}

.mobile-nav a:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.mobile-nav a:hover::before {
  height: 60%;
}

.mobile-nav .current-menu-item > a,
.mobile-nav .current_page_item > a,
.mobile-nav .current-menu-ancestor > a,
.mobile-nav .current_page_ancestor > a {
  color: var(--accent-light);
  background: var(--accent-glow);
}
.mobile-nav .current-menu-item > a::before,
.mobile-nav .current_page_item > a::before,
.mobile-nav .current-menu-ancestor > a::before,
.mobile-nav .current_page_ancestor > a::before {
  height: 60%;
}

/* Sub-menu */
.mobile-nav .sub-menu {
  margin-top: 0.25rem;
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
}

.mobile-nav .sub-menu a {
  font-size: 0.9rem;
  color: var(--text-muted);
  padding: 0.7rem 1rem;
}
.mobile-nav .sub-menu a:hover {
  color: var(--text-secondary);
}

/* Drawer Footer */
.mobile-nav-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}
.mobile-nav-footer .btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.9rem 1.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: var(--accent-contrast);
  border-radius: var(--radius);
  box-shadow: 0 4px 15px var(--accent-glow);
  text-decoration: none;
  transition: all var(--transition);
}
.mobile-nav-footer .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-glow);
}
.mobile-nav-social {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}
.mobile-nav-social .social-links {
  justify-content: center;
}
.mobile-nav-social .social-link {
  width: 38px;
  height: 38px;
}

/* Admin bar adjustment */
body.admin-bar .mobile-nav {
  top: 32px;
  height: calc(100vh - 32px);
}
@media (max-width: 782px) {
  body.admin-bar .mobile-nav {
    top: 46px;
    height: calc(100vh - 46px);
  }
}

/* ── Header Search ───────────────────────────────────────── */
body.search-open {
  overflow: hidden;
}

.header-search {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.header-search[hidden] {
  display: none;
}

.header-search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 9, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-search-panel {
  position: relative;
  width: min(680px, 100%);
  padding: 2rem;
  background: linear-gradient(180deg, rgba(36, 36, 48, 0.96), rgba(26, 26, 31, 0.98));
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(18px) scale(0.98);
  opacity: 0;
  transition: transform var(--transition-sl), opacity var(--transition-sl);
}

.header-search.open .header-search-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.header-search-eyebrow {
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.header-search-panel h2 {
  margin-bottom: 1.25rem;
}

.header-search-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.header-search-close:hover {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--border-hover);
}

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--header-h);
}

/* Hero Height Variants */
.hero-height-full  { min-height: 100vh; }
.hero-height-large { min-height: 80vh; }
.hero-height-medium { min-height: 60vh; }
.hero-height-small { min-height: 40vh; }

/* Hero Alignment */
.hero-align-left .hero-content { text-align: left; }
.hero-align-center .hero-content { 
  text-align: center; 
  margin-left: auto; 
  margin-right: auto; 
}
.hero-align-center .hero-content p { margin-left: auto; margin-right: auto; }
.hero-align-center .hero-actions { justify-content: center; }
.hero-align-right .hero-content { 
  text-align: right; 
  margin-left: auto; 
}
.hero-align-right .hero-content p { margin-left: auto; }
.hero-align-right .hero-actions { justify-content: flex-end; }

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img,
.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero.has-bg-media .hero-bg img,
.hero.has-bg-media .hero-bg video {
  opacity: 1;
}
.hero-bg img {
  opacity: 0.18;
}
.hero-video {
  position: absolute;
  inset: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,13,15,1) 0%,
    rgba(13,13,15,0.7) 50%,
    rgba(13,13,15,0.95) 100%
  );
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(13,13,15,0.95) 0%,
    rgba(13,13,15,0.6) 50%,
    rgba(13,13,15,0.9) 100%
  );
}
.hero.has-bg-media .hero-bg::after {
  display: none; /* Use custom overlay instead */
}
.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orb-float 8s ease-in-out infinite alternate;
}
.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -150px; right: -100px;
  animation-delay: 0s;
}
.hero-orb-2 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, #FF6B9D 0%, transparent 70%);
  bottom: 0; left: -80px;
  animation-delay: 2s;
}
.hero-orb-3 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, #43D9AD 0%, transparent 70%);
  top: 40%; left: 40%;
  animation-delay: 4s;
  opacity: 0.2;
}
@keyframes orb-float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -40px) scale(1.1); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
}
.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero-label::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.hero-content h1 {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-content p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 580px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Blog / Post Cards ────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2rem;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-sl);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.post-card-thumbnail {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elevated);
  position: relative;
}
.post-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-thumbnail img { transform: scale(1.05); }
.post-card-thumbnail-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-surface));
}
.post-card-thumbnail-placeholder svg { opacity: 0.2; }

.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.post-card-cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-light);
}
.post-card-date { font-size: 0.8rem; color: var(--text-muted); }
.post-card-body h3 { font-size: 1.15rem; margin-bottom: 0.6rem; line-height: 1.4; }
.post-card-body h3 a { color: var(--text-heading); transition: color var(--transition); }
.post-card-body h3 a:hover { color: var(--accent-light); }
.post-card-excerpt { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; flex: 1; }
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.post-card-footer .read-more {
  color: var(--accent-light);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap var(--transition);
}
.post-card-footer .read-more:hover { gap: 0.6rem; color: var(--accent-light); }

/* ── Single Post ──────────────────────────────────────────── */
.single-post { padding: 3rem 0 5rem; }
.post-hero {
  padding: calc(var(--header-h) + 3rem) 0 3rem;
  text-align: center;
  background: linear-gradient(to bottom, var(--bg-surface) 0%, transparent 100%);
}
.post-hero h1 { margin-bottom: 1.25rem; }
.post-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.875rem;
}
.post-meta a { color: var(--accent-light); }
.post-thumbnail {
  aspect-ratio: 16/6;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}
.post-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.post-content { max-width: 740px; margin: 0 auto; }
.post-content p,
.post-content li { font-size: 1.05rem; line-height: 1.8; }
.post-content h2,
.post-content h3,
.post-content h4 { margin-top: 2rem; margin-bottom: 0.75rem; }
.post-content img {
  border-radius: var(--radius);
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}

.post-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }

/* ── Breadcrumbs ─────────────────────────────────────────── */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumbs a:hover { color: var(--accent-light); }
.breadcrumbs span[aria-current="page"] { color: var(--text-primary); }
.breadcrumbs span[aria-hidden] { opacity: 0.4; }

/* ── Post Author Card ─────────────────────────────────────── */
.post-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.post-author .author-avatar img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-accent);
}
.post-author .author-info { display: flex; flex-direction: column; gap: 0.2rem; }
.post-author .author-name {
  font-weight: 700;
  color: var(--text-heading);
  font-size: 0.95rem;
}
.post-author .author-meta { font-size: 0.8rem; color: var(--text-muted); }

/* ── Page Content ─────────────────────────────────────────── */
.page-hero {
  padding: calc(var(--header-h) + 4rem) 0 3rem;
  background: linear-gradient(to bottom, var(--bg-surface) 0%, transparent 100%);
}
.page-hero--no-title {
  padding: calc(var(--header-h) + 1.5rem) 0 1.5rem;
}
.page-content { padding: 3rem 0 6rem; }
.page-content .entry-content { max-width: 820px; margin: 0 auto; }
.page-content--no-hero { padding-top: calc(var(--header-h) + 2rem); }
.page-content--full-width { padding: 0; }
.page-content--full-width.page-content--no-hero { padding-top: var(--header-h); }
.page-content--full-width > .alignfull,
.page-content--full-width > .wp-block-group.alignfull,
.page-content--full-width > section { margin-left: 0; margin-right: 0; max-width: none; }

/* ── Sidebar ──────────────────────────────────────────────── */
.content-sidebar-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
.sidebar { position: sticky; top: calc(var(--header-h) + 2rem); }
.widget {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.widget-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

/* ── Archive / Search ─────────────────────────────────────── */
.archive-hero {
  padding: calc(var(--header-h) + 3rem) 0 2.5rem;
  background: linear-gradient(to bottom, var(--bg-surface) 0%, transparent 100%);
}
.archive-hero .archive-label { color: var(--accent-light); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.5rem; display: block; }

/* ── 404 Page ─────────────────────────────────────────────── */
.error-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + 4rem) 0 4rem;
}
.error-404-code {
  font-size: clamp(6rem, 15vw, 12rem);
  font-family: var(--font-heading);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* ── Comments ─────────────────────────────────────────────── */
.comments-section {
  max-width: 740px;
  margin: 3rem auto 0;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}
.comments-title { margin-bottom: 2rem; }
.comment {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.comment:last-child { border-bottom: none; }
.comment-avatar img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.comment-body { flex: 1; }
.comment-author { font-weight: 700; color: var(--text-heading); font-size: 0.95rem; }
.comment-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.5rem; }

.comment-form-wrap { margin-top: 3rem; }
.comment-form-wrap h3 { margin-bottom: 1.5rem; }
.comment-form label { display: block; margin-bottom: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); }
.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  transition: border-color var(--transition);
  outline: none;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.comment-form textarea { min-height: 120px; resize: vertical; }

/* ── Search Form ──────────────────────────────────────────── */
.search-form {
  display: flex;
  gap: 0.5rem;
  max-width: 480px;
  flex-wrap: wrap;
}
.search-form input {
  flex: 1;
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.65rem 1.25rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.search-form input:focus { border-color: var(--accent); }
.search-form button { border-radius: var(--radius-full) !important; }
.header-search .search-form {
  margin-top: 1rem;
  max-width: none;
}
.header-search .search-field,
.header-search .search-form input {
  min-height: 56px;
  font-size: 1rem;
}

/* ── Pagination ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 4rem;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none;
}
.pagination a:hover { background: var(--bg-elevated); color: var(--text-primary); border-color: var(--border-hover); }
.pagination .current { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 4rem 0 0;
  margin-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .footer-logo { margin-bottom: 1rem; }
.footer-brand .footer-logo img { height: 32px; }
.footer-brand p { color: var(--text-muted); font-size: 0.9rem; max-width: 240px; }

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent-light); }

.footer-social {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent-light);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

/* Footer Contact Info */
.footer-contact-list { list-style: none; padding: 0; margin: 0; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}
.footer-contact-item:last-child { margin-bottom: 0; }
.footer-contact-icon {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}
.footer-contact-item a {
  color: var(--text-secondary);
  transition: color var(--transition);
}
.footer-contact-item a:hover { color: var(--accent-light); }
.footer-contact-address span { display: block; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copyright { color: var(--text-muted); font-size: 0.85rem; }
.footer-nav { display: flex; gap: 1.5rem; list-style: none; padding: 0; margin: 0; }
.footer-nav li { list-style: none; }
.footer-nav a { color: var(--text-muted); font-size: 0.85rem; transition: color var(--transition); }
.footer-nav a:hover { color: var(--accent-light); }

/* ── WordPress Specific ───────────────────────────────────── */
.wp-block-image { margin: 1.5rem 0; }
.aligncenter { display: block; margin: 0 auto; }
.alignleft { float: left; margin: 0.5rem 1.5rem 0.5rem 0; }
.alignright { float: right; margin: 0.5rem 0 0.5rem 1.5rem; }

.wp-caption { max-width: 100%; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.wp-caption-text { padding: 0.75rem 1rem; text-align: center; color: var(--text-muted); font-size: 0.85rem; background: var(--bg-surface); margin: 0; }

.entry-content a { color: var(--accent-light); border-bottom: 1px solid var(--border-accent); }
.entry-content a:hover { color: var(--accent); border-bottom-color: var(--accent); }

/* Screen reader text */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}

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

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--bg-elevated); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-dark); }

/* ── WordPress Admin Bar Offset ──────────────────────────── */
/* When logged in, WP admin bar (32px desktop / 46px mobile) pushes the fixed header down */
body.admin-bar .site-header {
  top: 32px;
}
@media (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}

/* ── Selection ────────────────────────────────────────────── */
::selection { background: var(--accent-glow); color: var(--accent-light); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .content-sidebar-wrap { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ── WhatsApp Floating Button ─────────────────────────────── */
.whatsapp-btn {
  position: fixed;
  bottom: 2rem;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5), 0 4px 10px rgba(0,0,0,0.25);
}
.whatsapp-right { right: 2rem; }
.whatsapp-left { left: 2rem; }

.whatsapp-icon {
  width: 32px;
  height: 32px;
  color: #fff;
  flex-shrink: 0;
}

/* Tooltip - positioned outside the button */
.whatsapp-tooltip {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #1a1a1f;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  pointer-events: none;
}
/* Tooltip arrow */
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
}
/* Right position - tooltip goes left */
.whatsapp-right .whatsapp-tooltip {
  right: calc(100% + 12px);
  transform: translateY(-50%) translateX(10px);
}
.whatsapp-right .whatsapp-tooltip::after {
  left: 100%;
  border-left-color: #1a1a1f;
}
/* Left position - tooltip goes right */
.whatsapp-left .whatsapp-tooltip {
  left: calc(100% + 12px);
  transform: translateY(-50%) translateX(-10px);
}
.whatsapp-left .whatsapp-tooltip::after {
  right: 100%;
  border-right-color: #1a1a1f;
}
/* Show tooltip on hover */
.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
}
.whatsapp-right:hover .whatsapp-tooltip {
  transform: translateY(-50%) translateX(0);
}
.whatsapp-left:hover .whatsapp-tooltip {
  transform: translateY(-50%) translateX(0);
}

/* Pulse ring animation */
.whatsapp-btn::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: transparent;
  border: 3px solid #25D366;
  animation: whatsapp-ring 2s ease-out infinite;
  pointer-events: none;
}
@keyframes whatsapp-ring {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* ── CTA Popup Modal ──────────────────────────────────────── */
.cta-popup {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cta-popup[hidden] {
  display: none;
}

.cta-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease;
}

.cta-popup-panel {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 60px var(--accent-glow);
  animation: slideUp 0.3s ease;
  
  /* Hide scrollbar but keep functionality */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.cta-popup-panel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.cta-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  z-index: 10;
}

.cta-popup-close:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  transform: rotate(90deg);
}

.cta-popup-header {
  text-align: center;
  margin-bottom: 30px;
  display: block !important;
  visibility: visible !important;
}

.cta-popup-title {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
  margin: 0 0 10px;
  display: block !important;
}

.cta-popup-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
  display: block !important;
}

/* ── Universal Form Styling Inside Popup ─────────────────── */
.cta-popup-content {
  /* Reset any inherited styles */
}

/* Target ALL form elements inside popup content - universal selectors */
.cta-popup-content form {
  display: block;
}

.cta-popup-content p,
.cta-popup-content .form-group,
.cta-popup-content .wpcf7-form-control-wrap,
.cta-popup-content .wpforms-field,
.cta-popup-content .gfield,
.cta-popup-content .frm_form_field,
.cta-popup-content .nf-field-container {
  margin-bottom: 20px !important;
}

.cta-popup-content label,
.cta-popup-content .wpcf7-form label,
.cta-popup-content .wpforms-field-label,
.cta-popup-content .gfield_label,
.cta-popup-content .frm_primary_label,
.cta-popup-content .nf-field-label label {
  display: block !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin-bottom: 10px !important;
  font-family: var(--font-body) !important;
}

/* All text inputs, emails, tel, url, number, etc. */
.cta-popup-content input[type="text"],
.cta-popup-content input[type="email"],
.cta-popup-content input[type="tel"],
.cta-popup-content input[type="url"],
.cta-popup-content input[type="number"],
.cta-popup-content input[type="date"],
.cta-popup-content input[type="password"],
.cta-popup-content textarea,
.cta-popup-content select {
  display: block !important;
  width: 100% !important;
  padding: 14px 18px !important;
  font-size: 1rem !important;
  font-family: var(--font-body) !important;
  color: var(--text-primary) !important;
  background: var(--bg-primary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  transition: all 0.25s ease !important;
  box-sizing: border-box !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  appearance: none !important;
  outline: none !important;
}

.cta-popup-content input:focus,
.cta-popup-content textarea:focus,
.cta-popup-content select:focus {
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-glow), 0 0 20px var(--accent-glow) !important;
  background: var(--bg-elevated) !important;
}

.cta-popup-content input::placeholder,
.cta-popup-content textarea::placeholder {
  color: var(--text-muted) !important;
  opacity: 1 !important;
}

.cta-popup-content textarea {
  resize: vertical !important;
  min-height: 120px !important;
  line-height: 1.6 !important;
}

.cta-popup-content select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ABABC0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  padding-right: 45px !important;
  cursor: pointer !important;
}

/* All submit buttons */
.cta-popup-content input[type="submit"],
.cta-popup-content button[type="submit"],
.cta-popup-content .wpcf7-submit,
.cta-popup-content .wpforms-submit,
.cta-popup-content .gform_button,
.cta-popup-content .frm_button_submit,
.cta-popup-content .nf-element {
  display: block !important;
  width: 100% !important;
  padding: 16px 28px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  font-family: var(--font-body) !important;
  color: var(--accent-contrast) !important;
  background: var(--accent) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  box-shadow: 0 4px 15px var(--accent-glow) !important;
  margin-top: 10px !important;
}

.cta-popup-content input[type="submit"]:hover,
.cta-popup-content button[type="submit"]:hover,
.cta-popup-content .wpcf7-submit:hover,
.cta-popup-content .wpforms-submit:hover,
.cta-popup-content .gform_button:hover,
.cta-popup-content .frm_button_submit:hover {
  background: var(--accent-light) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 30px var(--accent-glow), var(--shadow-glow) !important;
}

/* Checkbox and Radio styling */
.cta-popup-content input[type="checkbox"],
.cta-popup-content input[type="radio"] {
  width: 20px !important;
  height: 20px !important;
  padding: 0 !important;
  margin-right: 10px !important;
  accent-color: var(--accent) !important;
  cursor: pointer !important;
}

.cta-popup-content input[type="checkbox"] + label,
.cta-popup-content input[type="radio"] + label {
  display: inline !important;
  font-weight: 400 !important;
  cursor: pointer !important;
}

/* Required field asterisk */
.cta-popup-content .required,
.cta-popup-content .wpcf7-form .required,
.cta-popup-content abbr[title="required"] {
  color: var(--accent) !important;
  text-decoration: none !important;
}

/* Error messages */
.cta-popup-content .wpcf7-not-valid-tip,
.cta-popup-content .wpforms-error,
.cta-popup-content .validation_message,
.cta-popup-content .frm_error {
  color: #ff6b6b !important;
  font-size: 0.85rem !important;
  margin-top: 8px !important;
  display: block !important;
}

/* Success messages */
.cta-popup-content .wpcf7-mail-sent-ok,
.cta-popup-content .wpforms-confirmation-container,
.cta-popup-content .gform_confirmation_message {
  background: rgba(108, 99, 255, 0.1) !important;
  border: 1px solid var(--accent) !important;
  color: var(--text-primary) !important;
  padding: 20px !important;
  border-radius: var(--radius) !important;
  text-align: center !important;
}

/* Loading/spinner states */
.cta-popup-content .wpcf7-spinner,
.cta-popup-content .wpforms-submit-spinner {
  margin: 10px auto !important;
}

/* File upload styling */
.cta-popup-content input[type="file"] {
  padding: 12px !important;
  background: var(--bg-elevated) !important;
  border: 2px dashed var(--border) !important;
  cursor: pointer !important;
}

.cta-popup-content input[type="file"]:hover {
  border-color: var(--accent) !important;
}

/* Hide unwanted elements */
.cta-popup-content .wpcf7-response-output:empty,
.cta-popup-content br {
  display: none !important;
}

.cta-popup-content .wpcf7-response-output {
  margin: 15px 0 0 !important;
  padding: 15px !important;
  border-radius: var(--radius) !important;
}

/* ── Ninja Forms Styling ─────────────────────────────────── */
.cta-popup-content .nf-form-wrap,
.cta-popup-content .ninja-forms-form-wrap,
.cdt-contact__form-container .nf-form-wrap,
.cdt-contact__form-container .ninja-forms-form-wrap {
  font-family: var(--font-body) !important;
}

/* Hide broken required fields text that shows raw HTML */
.cta-popup-content .nf-form-fields-required,
.cta-popup-content .nf-form-required-items,
.cdt-contact__form-container .nf-form-fields-required,
.cdt-contact__form-container .nf-form-required-items {
  display: none !important;
}

/* Ninja Forms field containers */
.cta-popup-content .nf-field-container,
.cdt-contact__form-container .nf-field-container {
  margin-bottom: 20px !important;
}

/* Ninja Forms labels */
.cta-popup-content .nf-field-label label,
.cta-popup-content .ninja-forms-field-label,
.cdt-contact__form-container .nf-field-label label,
.cdt-contact__form-container .ninja-forms-field-label {
  display: block !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--text-primary) !important;
  margin-bottom: 10px !important;
}

/* Ninja Forms inputs */
.cta-popup-content .ninja-forms-field,
.cta-popup-content .nf-element,
.cdt-contact__form-container .ninja-forms-field,
.cdt-contact__form-container .nf-element {
  width: 100% !important;
  padding: 14px 18px !important;
  font-size: 1rem !important;
  font-family: var(--font-body) !important;
  color: var(--text-primary) !important;
  background: var(--bg-primary) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  transition: all 0.25s ease !important;
  box-sizing: border-box !important;
}

.cta-popup-content .ninja-forms-field:focus,
.cta-popup-content .nf-element:focus,
.cdt-contact__form-container .ninja-forms-field:focus,
.cdt-contact__form-container .nf-element:focus {
  outline: none !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 4px var(--accent-glow) !important;
}

/* Ninja Forms submit button */
.cta-popup-content .nf-field-element input[type="submit"],
.cta-popup-content .nf-field-element button[type="submit"],
.cta-popup-content .ninja-forms-field.nf-element.btn,
.cdt-contact__form-container .nf-field-element input[type="submit"],
.cdt-contact__form-container .nf-field-element button[type="submit"] {
  display: block !important;
  width: 100% !important;
  padding: 16px 28px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  font-family: var(--font-body) !important;
  color: var(--accent-contrast) !important;
  background: var(--accent) !important;
  border: none !important;
  border-radius: var(--radius) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  box-shadow: 0 4px 15px var(--accent-glow) !important;
}

.cta-popup-content .nf-field-element input[type="submit"]:hover,
.cta-popup-content .nf-field-element button[type="submit"]:hover,
.cdt-contact__form-container .nf-field-element input[type="submit"]:hover,
.cdt-contact__form-container .nf-field-element button[type="submit"]:hover {
  background: var(--accent-light) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 8px 30px var(--accent-glow) !important;
}

/* Ninja Forms required asterisk */
.cta-popup-content .ninja-forms-req-symbol,
.cdt-contact__form-container .ninja-forms-req-symbol {
  color: var(--accent) !important;
}

/* Ninja Forms error messages */
.cta-popup-content .nf-error-msg,
.cdt-contact__form-container .nf-error-msg {
  color: #ff6b6b !important;
  font-size: 0.85rem !important;
  margin-top: 8px !important;
}

/* Ninja Forms success message */
.cta-popup-content .nf-response-msg,
.cdt-contact__form-container .nf-response-msg {
  background: rgba(108, 99, 255, 0.1) !important;
  border: 1px solid var(--accent) !important;
  color: var(--text-primary) !important;
  padding: 20px !important;
  border-radius: var(--radius) !important;
  text-align: center !important;
}

/* Hide Ninja Forms title if using popup title */
.cta-popup-content .nf-form-title,
.cta-popup-content .nf-form-title h3 {
  display: none !important;
}

/* Default popup form styles (fallback form) */
.cta-popup-form .form-group {
  margin-bottom: 20px;
}

.cta-popup-form label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.cta-popup-form input[type="text"],
.cta-popup-form input[type="email"],
.cta-popup-form input[type="tel"],
.cta-popup-form textarea,
.cta-popup-form select {
  width: 100%;
  padding: 14px 18px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}

.cta-popup-form input:focus,
.cta-popup-form textarea:focus,
.cta-popup-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.cta-popup-form input::placeholder,
.cta-popup-form textarea::placeholder {
  color: var(--text-muted);
}

.cta-popup-form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Popup animations */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Popup responsive */
@media (max-width: 640px) {
  .cta-popup-panel {
    padding: 30px 24px;
    max-height: 85vh;
    border-radius: var(--radius-lg);
  }
  
  .cta-popup-title {
    font-size: 1.5rem;
  }
  
  .cta-popup-content input[type="text"],
  .cta-popup-content input[type="email"],
  .cta-popup-content input[type="tel"],
  .cta-popup-content textarea {
    padding: 12px 14px !important;
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --header-h: 70px; }
  
  /* Add more padding for mobile - increased horizontal padding */
  .container { padding: 0 1.5rem; }
  .header-inner { padding: 0 1.5rem; }
  .section { padding: 3.5rem 0; }
  .site-content { padding-top: 1rem; }
  .site-footer { padding: 3rem 0 0; margin-top: 3rem; }
  .footer-grid { padding-bottom: 2rem; gap: 2.5rem; }
  
  .site-nav, .header-actions .btn-header-cta { display: none; }
  .menu-toggle { display: flex; }
  .header-search-panel { padding: 1.5rem; }
  .header-search .search-form > * { width: 100%; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 1.25rem 0; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .posts-grid { grid-template-columns: 1fr !important; gap: 1.5rem; }
  .post-meta { flex-direction: column; gap: 0.5rem; }
  
  /* Entry content and article padding */
  .entry-content { padding: 0 0.25rem; }
  .single .entry-content, 
  .page .entry-content { padding: 0; }
  
  /* Post card adjustments for mobile */
  .post-card { max-width: 100%; }
  .post-card-body { padding: 1.25rem; }
  .post-card h2, .post-card h3 { font-size: 1.1rem; }
  .post-card-excerpt { font-size: 0.9rem; -webkit-line-clamp: 2; }
  
  /* Force center alignment on mobile for better UX */
  .hero-align-left .hero-content,
  .hero-align-right .hero-content { text-align: center; margin: 0 auto; }
  .hero-align-left .hero-actions,
  .hero-align-right .hero-actions { justify-content: center; }
  .hero-align-left .hero-content p,
  .hero-align-right .hero-content p { margin-left: auto; margin-right: auto; }
  
  /* WhatsApp button mobile adjustments */
  .whatsapp-btn { bottom: 1.5rem; width: 54px; height: 54px; }
  .whatsapp-icon { width: 28px; height: 28px; }
  .whatsapp-right { right: 1.25rem; }
  .whatsapp-left { left: 1.25rem; }
  .whatsapp-tooltip { display: none; } /* Hide tooltip on mobile - tap opens WhatsApp directly */
}

@media (max-width: 1024px) {
  .site-nav .menu > li > a {
    padding-inline: 0.8rem;
    font-size: 0.88rem;
  }
}

@media (max-width: 480px) {
  .section { padding: 2.5rem 0; }
  .container { padding: 0 1.25rem; }
  .header-inner { padding: 0 1.25rem; }
  .footer-col-title { margin-bottom: 1rem; }
  .footer-contact-item { margin-bottom: 0.6rem; }
  .footer-nav { gap: 1rem; flex-wrap: wrap; justify-content: center; }
}
