/*
Theme Name: Trovita Neon-Authority
Theme URI: https://trovita.nl
Author: Trovita Digital
Author URI: https://trovita.nl
Description: A cutting-edge Full Site Editing (FSE) block theme for Trovita. Built with native Gutenberg blocks, featuring a dark neon aesthetic, glassmorphism UI elements, and conversion-optimised page architecture for digital marketing and SEO services.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: trovita-neon-authority
Tags: full-site-editing, block-theme, dark, custom-colors, custom-logo, custom-menu, wide-blocks, translation-ready, accessibility-ready

Trovita Neon-Authority WordPress Block Theme
Copyright (C) 2026 Trovita Digital. All rights reserved.
*/

/*
 * =====================================================================
 *  TROVITA NEON-AUTHORITY — GLOBAL STYLESHEET
 *  Version: 1.0.0
 *  Architecture: WordPress FSE Block Theme
 * =====================================================================
 *
 *  TABLE OF CONTENTS
 *  -----------------
 *  1. CSS Custom Properties (runtime tokens)
 *  2. Global Reset & Base
 *  3. Selection & Scrollbar
 *  4. Utility Classes
 *  5. Glassmorphism Cards
 *  6. Neon Glow Buttons
 *  7. Neon Badge / Label
 *  8. Section Dividers
 *  9. Animated Grid Background
 * 10. Header / Navigation
 * 11. Hero Section
 * 12. Service Cards Grid
 * 13. Testimonial / Review Cards
 * 14. Footer
 * 15. Animations & Keyframes
 * 16. Accessibility
 * 17. Responsive Overrides
 * =====================================================================
*/

/* =====================================================================
   1. CSS CUSTOM PROPERTIES
   ===================================================================== */
:root {
  /* Brand colours */
  --clr-base:         #151b2b;
  --clr-base-soft:    #1c2438;
  --clr-primary:      #90d3e0;
  --clr-secondary:    #3cabc7;
  --clr-tertiary:     #1484a3;
  --clr-accent:       #963b92;
  --clr-accent-light: #c45dbf;
  --clr-white:        #ffffff;
  --clr-white-muted:  rgba(255,255,255,0.65);
  --clr-white-subtle: rgba(255,255,255,0.12);

  /* Glass */
  --glass-bg:        rgba(255,255,255,0.04);
  --glass-border:    rgba(144,211,224,0.15);
  --glass-backdrop:  blur(16px) saturate(180%);

  /* Neon glows */
  --glow-sm:      0 0 12px rgba(144,211,224,0.30);
  --glow-md:      0 0 24px rgba(144,211,224,0.45), 0 0 48px rgba(144,211,224,0.15);
  --glow-lg:      0 0 40px rgba(144,211,224,0.50), 0 0 80px rgba(144,211,224,0.20);
  --glow-accent:  0 0 24px rgba(150,59,146,0.50),  0 0 48px rgba(150,59,146,0.20);

  /* Typography */
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body:    'Nunito', sans-serif;

  /* Transitions */
  --ease-default: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --ease-fast:    all 0.15s ease;
  --ease-slow:    all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Border radii */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;
}

/* =====================================================================
   2. GLOBAL RESET & BASE
   ===================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  background-color: var(--clr-base);
  color: var(--clr-white);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* =====================================================================
   3. SELECTION & SCROLLBAR
   ===================================================================== */
::selection {
  background-color: var(--clr-primary);
  color: var(--clr-base);
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--clr-base-soft);
}
::-webkit-scrollbar-thumb {
  background: var(--clr-tertiary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--clr-secondary);
}

/* =====================================================================
   4. UTILITY CLASSES
   ===================================================================== */

/* Text colour helpers */
.has-primary-color    { color: var(--clr-primary)  !important; }
.has-secondary-color  { color: var(--clr-secondary) !important; }
.has-accent-color     { color: var(--clr-accent)    !important; }
.has-white-color      { color: var(--clr-white)     !important; }
.has-muted-color      { color: var(--clr-white-muted) !important; }

/* Neon text glow */
.neon-text {
  color: var(--clr-primary);
  text-shadow: 0 0 20px rgba(144,211,224,0.6);
}
.neon-text-accent {
  color: var(--clr-accent-light);
  text-shadow: 0 0 20px rgba(150,59,146,0.6);
}

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--clr-primary);
  box-shadow: var(--glow-sm);
}

/* Neon HR divider */
.neon-divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--clr-primary) 50%, transparent 100%);
  opacity: 0.4;
  margin: 0;
}

/* =====================================================================
   5. GLASSMORPHISM CARDS
   ===================================================================== */
.glass-card,
.wp-block-group.is-glass {
  background: var(--glass-bg) !important;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-backdrop);
  -webkit-backdrop-filter: var(--glass-backdrop);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4),
              inset 0 1px 0 rgba(255,255,255,0.08);
  transition: var(--ease-default);
  position: relative;
  overflow: hidden;
}

.glass-card::before,
.wp-block-group.is-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(144,211,224,0.05) 0%, transparent 60%);
  pointer-events: none;
}

.glass-card:hover,
.wp-block-group.is-glass:hover {
  border-color: rgba(144,211,224,0.35);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5),
              0 0 32px rgba(144,211,224,0.08),
              inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(-4px);
}

/* Service icon wrapper inside cards */
.glass-card .service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(144,211,224,0.1);
  border: 1px solid rgba(144,211,224,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--glow-sm);
}

/* =====================================================================
   6. NEON GLOW BUTTONS
   ===================================================================== */

/* Primary CTA button */
.wp-block-button .wp-block-button__link,
.wp-block-button__link {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--radius-full) !important;
  transition: var(--ease-default);
  position: relative;
  overflow: hidden;
}

/* Primary button variant */
.wp-block-button.is-style-primary .wp-block-button__link,
.wp-block-button:not([class*="is-style"]) .wp-block-button__link {
  background: var(--clr-primary);
  color: var(--clr-base);
  padding: 0.875rem 2rem;
  box-shadow: 0 0 20px rgba(144,211,224,0.35),
              0 4px 16px rgba(0,0,0,0.3);
}
.wp-block-button.is-style-primary .wp-block-button__link:hover,
.wp-block-button:not([class*="is-style"]) .wp-block-button__link:hover {
  background: var(--clr-white);
  box-shadow: var(--glow-md),
              0 8px 24px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

/* Ghost button variant */
.wp-block-button.is-style-ghost .wp-block-button__link {
  background: transparent;
  color: var(--clr-primary);
  padding: 0.8125rem 1.875rem;
  border: 2px solid rgba(144,211,224,0.5);
  box-shadow: inset 0 0 0 0 var(--clr-primary);
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover {
  background: rgba(144,211,224,0.1);
  border-color: var(--clr-primary);
  color: var(--clr-white);
  box-shadow: var(--glow-sm),
              inset 0 0 16px rgba(144,211,224,0.08);
}

/* Accent button variant */
.wp-block-button.is-style-accent .wp-block-button__link {
  background: var(--clr-accent);
  color: var(--clr-white);
  padding: 0.875rem 2rem;
  box-shadow: var(--glow-accent),
              0 4px 16px rgba(0,0,0,0.3);
}
.wp-block-button.is-style-accent .wp-block-button__link:hover {
  background: var(--clr-accent-light);
  box-shadow: 0 0 32px rgba(196,93,191,0.6),
              0 8px 24px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

/* Large button modifier */
.wp-block-button.is-style-large .wp-block-button__link {
  padding: 1.125rem 2.5rem;
  font-size: 1rem;
}

/* =====================================================================
   7. NEON BADGE / LABEL
   ===================================================================== */
.badge {
  display: inline-block;
  padding: 0.25rem 0.875rem;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1px solid currentColor;
}
.badge-primary {
  color: var(--clr-primary);
  background: rgba(144,211,224,0.08);
  border-color: rgba(144,211,224,0.3);
}
.badge-accent {
  color: var(--clr-accent-light);
  background: rgba(150,59,146,0.08);
  border-color: rgba(150,59,146,0.3);
}

/* =====================================================================
   8. SECTION DIVIDERS
   ===================================================================== */
.section-wave {
  position: relative;
  overflow: hidden;
}
.section-wave::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--clr-base);
  clip-path: polygon(0 40%, 100% 0%, 100% 100%, 0% 100%);
}

/* =====================================================================
   9. ANIMATED GRID BACKGROUND
   ===================================================================== */
.grid-bg {
  position: relative;
}
.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(144,211,224,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(144,211,224,0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}
.grid-bg > * {
  position: relative;
  z-index: 1;
}

/* Radial glow overlay for hero sections */
.glow-overlay::after {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(144,211,224,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* =====================================================================
   10. HEADER / NAVIGATION
   ===================================================================== */
.wp-block-template-part[data-slug="header"] {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(21,27,43,0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(144,211,224,0.1);
  transition: var(--ease-default);
}

.site-header.scrolled {
  background: rgba(21,27,43,0.96);
  border-bottom-color: rgba(144,211,224,0.2);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

/* Navigation links */
.wp-block-navigation a {
  color: rgba(255,255,255,0.85) !important;
  text-decoration: none;
  transition: var(--ease-fast);
  position: relative;
}
.wp-block-navigation a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--clr-primary);
  transition: width 0.3s ease;
  box-shadow: var(--glow-sm);
}
.wp-block-navigation a:hover {
  color: var(--clr-primary) !important;
}
.wp-block-navigation a:hover::after {
  width: 100%;
}

/* Active nav item */
.wp-block-navigation .current-menu-item > a {
  color: var(--clr-primary) !important;
}

/* Mobile hamburger */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  color: var(--clr-primary) !important;
}

/* =====================================================================
   11. HERO SECTION
   ===================================================================== */
.hero-section {
  position: relative;
  overflow: hidden;
  background-color: var(--clr-base);
}

.hero-section .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
}

/* Animated neon lines in hero */
.hero-neon-line {
  position: absolute;
  width: 1px;
  background: linear-gradient(180deg, transparent 0%, var(--clr-primary) 50%, transparent 100%);
  opacity: 0.2;
  animation: neonLinePulse 4s ease-in-out infinite;
}

/* Stats/numbers */
.hero-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--clr-primary);
  text-shadow: 0 0 30px rgba(144,211,224,0.4);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-white-muted);
}

/* =====================================================================
   12. SERVICE CARDS GRID
   ===================================================================== */
.services-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  padding: 2rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: var(--glass-backdrop);
  transition: var(--ease-default);
  cursor: pointer;
}
.service-card:hover {
  border-color: rgba(144,211,224,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5),
              0 0 30px rgba(144,211,224,0.08);
}

/* Number counter on service cards */
.card-number {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  color: rgba(144,211,224,0.35);
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

/* =====================================================================
   13. TESTIMONIAL / REVIEW CARDS
   ===================================================================== */
.review-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 1.5rem;
  font-family: Georgia, serif;
  font-size: 5rem;
  line-height: 1;
  color: var(--clr-primary);
  opacity: 0.15;
}

.review-stars {
  color: #fbbf24;
  font-size: 0.875rem;
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.google-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  background: rgba(66,133,244,0.1);
  border: 1px solid rgba(66,133,244,0.3);
}

.google-score-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--clr-white);
  line-height: 1;
}

/* =====================================================================
   14. FOOTER
   ===================================================================== */
.site-footer {
  background: var(--clr-base-soft);
  border-top: 1px solid rgba(144,211,224,0.1);
  position: relative;
  overflow: hidden;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--clr-primary) 50%, transparent 100%);
  opacity: 0.5;
  box-shadow: 0 0 16px rgba(144,211,224,0.3);
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary);
  text-shadow: var(--glow-sm);
}

.footer-nav a {
  color: var(--clr-white-muted);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--ease-fast);
}
.footer-nav a:hover {
  color: var(--clr-primary);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4) !important;
  font-size: 0.8125rem;
}

/* =====================================================================
   15. ANIMATIONS & KEYFRAMES
   ===================================================================== */
@keyframes neonPulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 20px rgba(144,211,224,0.6); }
  50%       { opacity: 0.8; text-shadow: 0 0 40px rgba(144,211,224,0.9), 0 0 80px rgba(144,211,224,0.3); }
}

@keyframes neonLinePulse {
  0%, 100% { opacity: 0.2; transform: scaleY(1); }
  50%       { opacity: 0.5; transform: scaleY(1.1); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(144,211,224,0.15); }
  50%       { border-color: rgba(144,211,224,0.4); }
}

@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Animate-on-scroll helper (works without JS via CSS only) */
.animate-fade-up {
  animation: fadeInUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.animate-fade-left {
  animation: fadeInLeft 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}
.animate-float {
  animation: floatY 4s ease-in-out infinite;
}
.animate-neon {
  animation: neonPulse 3s ease-in-out infinite;
}

/* Stagger helpers */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* =====================================================================
   16. ACCESSIBILITY
   ===================================================================== */
:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 3px;
  border-radius: 3px;
}

.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;
}

@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;
  }
}

/* =====================================================================
   17. RESPONSIVE OVERRIDES
   ===================================================================== */
@media (max-width: 767px) {
  .wp-block-columns {
    flex-direction: column;
  }
  .wp-block-column {
    flex-basis: 100% !important;
  }
  .glass-card {
    padding: 1.25rem !important;
  }
}

@media (min-width: 1440px) {
  body {
    font-size: 17px;
  }
}

/* =====================================================================
   EDITOR SPECIFIC OVERRIDES
   ===================================================================== */
.editor-styles-wrapper {
  background-color: var(--clr-base) !important;
  color: var(--clr-white) !important;
}
