/* ========================================
   Sylogico - Neo-Memphis Corporate Comic Design System
   Compatible with existing Tailwind setup
   ======================================== */

/* === GOOGLE FONTS === */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

/* === CSS VARIABLES === */
:root {
  /* PRIMARY: Cool Neutral Palette with Teal Accents */
  --agp-primary: #14b8a6;              /* Teal (replaces blue) */
  --agp-primary-light: #2dd4bf;        /* Light teal */
  --agp-primary-dark: #0d9488;         /* Deep teal */

  /* NEUTRALS: Charcoal & Silver */
  --agp-charcoal-950: #0a0a0a;
  --agp-charcoal-900: #171717;
  --agp-charcoal-800: #262626;
  --agp-charcoal-700: #404040;
  --agp-charcoal-600: #525252;

  --agp-silver-500: #737373;
  --agp-silver-400: #a3a3a3;
  --agp-silver-300: #d4d4d4;
  --agp-silver-200: #e5e5e5;
  --agp-silver-100: #f5f5f5;
  --agp-silver-50: #fafafa;

  /* ACCENTS: Teal/Cyan */
  --agp-accent-cool: #06b6d4;          /* Cyan accent */
  --agp-accent-teal: #0f766e;          /* Dark teal */

  /* BACKGROUNDS: Updated to use charcoal */
  --agp-dark-950: var(--agp-charcoal-950);
  --agp-dark-900: var(--agp-charcoal-900);
  --agp-dark-800: var(--agp-charcoal-800);
  --agp-white: var(--agp-silver-50);
  --agp-zinc-400: var(--agp-silver-400);
  --agp-zinc-600: var(--agp-charcoal-600);
  --agp-zinc-700: var(--agp-charcoal-700);

  /* GRADIENTS: Subtle teal accents (minimal use) */
  --agp-gradient-primary: linear-gradient(135deg, #14b8a6, #2dd4bf);
  --agp-gradient-cool: linear-gradient(135deg, #14b8a6, #06b6d4);
  --agp-gradient-deep: linear-gradient(135deg, #0f766e, #14b8a6);
  --agp-gradient-subtle: linear-gradient(135deg, #171717 0%, #262626 100%);
  --agp-gradient-overlay: linear-gradient(135deg, rgba(20, 184, 166, 0.05), rgba(45, 212, 191, 0.05));

  /* GLOWS: Teal instead of blue */
  --agp-glow: 0 0 30px rgba(20, 184, 166, 0.3);
  --agp-glow-strong: 0 0 40px rgba(20, 184, 166, 0.5);

  /* Typography - Keep existing */
  --agp-font-display: 'Space Grotesk', sans-serif;
  --agp-font-body: 'Inter', sans-serif;

  /* Spacing - Keep existing */
  --agp-nav-height: 80px;
}

/* === FIXED NAVIGATION STYLES === */
#sylogico-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(9, 9, 11, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(39, 39, 42, 0.8);
  height: var(--agp-nav-height);
}

.agp-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agp-nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
}

.agp-nav-logo:hover {
  opacity: 0.8;
}

.agp-logo-img {
  height: 45px;
  width: auto;
  display: block;
  /* Silver/white - clean minimalist look */
  filter: brightness(0) invert(1);
}

/* TEMP — placeholder testuale per logo Sylogico (in attesa logo definitivo).
   Font Black sans-serif compatto, ispirato al sample fornito. */
.agp-logo-text {
  font-family: 'Inter', 'Helvetica Neue', system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 900;
  font-size: 42px;
  letter-spacing: 0.02em;
  line-height: 1;
  color: #ffffff;
  display: inline-block;
  user-select: none;
}

.agp-nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.agp-nav-link {
  font-family: var(--agp-font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: #a1a1aa;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.agp-nav-link:hover {
  color: var(--agp-white);
}

.agp-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--agp-primary);
  transition: width 0.3s ease;
}

.agp-nav-link:hover::after {
  width: 100%;
}

/* Services Dropdown */
.agp-nav-dropdown {
  position: relative;
}

.agp-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 20px;
  background: rgba(24, 24, 27, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(39, 39, 42, 0.8);
  border-radius: 12px;
  padding: 12px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
}

.agp-nav-dropdown:hover .agp-dropdown-menu,
.agp-nav-dropdown:focus-within .agp-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.agp-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  color: #a1a1aa;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  font-size: 0.9rem;
}

.agp-dropdown-item:hover {
  background: rgba(39, 39, 42, 0.5);
  color: var(--agp-white);
}

.agp-dropdown-icon {
  width: 18px;
  height: 18px;
  color: var(--agp-primary);
  flex-shrink: 0;
}

.agp-dropdown-badge {
  font-size: 0.7rem;
  color: #c084fc;
  margin-left: 6px;
}

/* Nested Dropdown (sub-menu) */
.agp-dropdown-nested {
  position: relative;
}

.agp-dropdown-nested > .agp-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.agp-dropdown-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  margin-left: 4px;
  background: rgba(24, 24, 27, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(39, 39, 42, 0.8);
  border-radius: 12px;
  padding: 12px;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.agp-dropdown-nested:hover > .agp-dropdown-submenu,
.agp-dropdown-nested:focus-within > .agp-dropdown-submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Mobile Menu Toggle */
.agp-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.agp-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--agp-white);
  transition: all 0.3s ease;
}

.agp-mobile-menu {
  display: none;
  position: fixed;
  top: var(--agp-nav-height);
  left: 0;
  right: 0;
  background: rgba(9, 9, 11, 0.98);
  backdrop-filter: blur(12px);
  padding: 24px;
  border-top: 1px solid rgba(39, 39, 42, 0.8);
  max-height: calc(100vh - var(--agp-nav-height));
  overflow-y: auto;
}

.agp-mobile-menu.active {
  display: block;
}

/* Contact Button in Nav */
.agp-nav-cta {
  padding: 10px 24px;
  background: var(--agp-gradient-primary);
  color: var(--agp-white);
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.agp-nav-cta:hover {
  transform: translateY(-2px);
}

/* Nav scroll state (toggled via JS class instead of inline styles) */
#sylogico-nav.scrolled {
  background: rgba(9, 9, 11, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Active nav link highlight */
.agp-nav-active {
  color: var(--agp-white) !important;
}

/* Auth login button (replaces inline styles in nav JS) */
.agp-auth-login-link {
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(20, 184, 166, 0.4);
  border-radius: 0.5rem;
  color: var(--agp-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

.agp-auth-login-link:hover {
  border-color: var(--agp-primary);
}

/* Auth avatar button */
.agp-auth-avatar {
  width: 28px;
  height: 28px;
  border-radius: 14px;
  background: rgba(20, 184, 166, 0.2);
  border: 2px solid rgba(20, 184, 166, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--agp-primary);
}

/* === FOOTER STYLES === */
#sylogico-footer {
  background: rgba(24, 24, 27, 0.5);
  border-top: 1px solid rgba(20, 184, 166, 0.3);
  padding: 60px 0 30px;
  margin-top: 80px;
  position: relative;
  z-index: 10;
  width: 100%;
  backdrop-filter: blur(10px);
}

.agp-footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.agp-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.agp-footer-heading {
  font-family: var(--agp-font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--agp-white);
}

.agp-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.agp-footer-link {
  color: #a1a1aa;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.agp-footer-link:hover {
  color: var(--agp-primary);
}

.agp-footer-bottom {
  border-top: 1px solid rgba(39, 39, 42, 0.8);
  padding-top: 30px;
  text-align: center;
  color: #52525b;
  font-size: 0.875rem;
}

/* === UTILITY CLASSES === */
.agp-gradient-text {
  color: var(--agp-silver-50);
  /* No gradient - clean professional text */
}

.agp-action-line {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--agp-primary) 0,
    var(--agp-primary) 20px,
    transparent 20px,
    transparent 40px
  );
  margin: 40px 0;
}

/* Comic Card Enhancement */
.agp-comic-card {
  border: 2px solid var(--agp-white);
  box-shadow: 4px 4px 0 var(--agp-dark-950);
  transition: transform 0.2s ease;
}

.agp-comic-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--agp-dark-950);
}

/* === UNIFIED CARD (Consistent Background Logic) === */
.agp-card-unified {
  background: linear-gradient(135deg, rgba(38, 38, 38, 0.5), rgba(23, 23, 23, 0.7));
  border: 1px solid rgba(163, 163, 163, 0.12);
  border-radius: 20px;
  padding: 40px;
  backdrop-filter: blur(20px) saturate(120%);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.agp-card-unified::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.3), transparent);
  border-radius: 20px 20px 0 0;
}

.agp-card-unified:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.25);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 0 50px rgba(20, 184, 166, 0.08);
}


/* === RESPONSIVE === */
@media (max-width: 768px) {
  .agp-nav-links {
    display: none;
  }
  
  .agp-mobile-toggle {
    display: flex;
  }
  
  .agp-mobile-menu .agp-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .agp-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-top: 12px;
  }

  .agp-dropdown-submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    margin-left: 0;
    margin-top: 4px;
    background: transparent;
    border: none;
    padding: 0 0 0 16px;
    backdrop-filter: none;
  }
  
  #sylogico-nav {
    height: 70px;
  }
  
  :root {
    --agp-nav-height: 70px;
  }
}

/* === COMPATIBILITY === */
/* Ensure existing Tailwind classes work */
body {
  margin: 0;
  padding: 0;
}

/* Add top padding to body to account for fixed nav */
body {
  padding-top: var(--agp-nav-height);
}


/* === SHARED PAGE STYLES (moved from inline <style> blocks) === */

/* Global font */
* {
  font-family: 'Inter', sans-serif;
}

/* WebGL Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Noise Overlay */
.noise {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.02;
  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='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  z-index: 1;
}

/* Gradient Text */
.gradient-text {
  color: var(--agp-silver-50);
  /* No gradient - clean professional text */
}

/* Glow Button */
.glow-btn {
  position: relative;
  background: var(--agp-primary);  /* Solid teal */
  border: none;
  box-shadow:
    0 4px 14px rgba(20, 184, 166, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  border-radius: inherit;
}

.glow-btn:hover::before {
  opacity: 1;
}

.glow-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(20, 184, 166, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  background: var(--agp-primary-light);
}

/* Card Glow Effect */
.card-glow {
  position: relative;
  background: linear-gradient(135deg, rgba(38, 38, 38, 0.5), rgba(23, 23, 23, 0.7));
  border: 1px solid rgba(163, 163, 163, 0.12);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px) saturate(120%);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.card-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(20, 184, 166, 0.3), transparent);
  border-radius: 20px 20px 0 0;
}

.card-glow:hover {
  transform: translateY(-4px);
  border-color: rgba(20, 184, 166, 0.25);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.25),
    0 0 50px rgba(20, 184, 166, 0.08);
}

/* Fade-Up Scroll Animation */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Portfolio Filter Buttons */
.filter-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #27272a;
  background: rgba(24, 24, 27, 0.8);
  transition: all 0.3s ease;
  cursor: pointer;
}

.filter-btn.active {
  border-color: #14b8a6;
  background: rgba(20, 184, 166, 0.1);
  color: #14b8a6;
}

.filter-btn:hover {
  border-color: #14b8a6;
}

/* === ACCESSIBILITY === */

/* Skip to main content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--agp-primary);
  color: white;
  padding: 12px 24px;
  border-radius: 0 0 8px 8px;
  z-index: 10001;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* Focus indicators */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--agp-primary);
  outline-offset: 2px;
}

/* === FORM STYLES === */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(24, 24, 27, 0.6);
  border: 1px solid rgba(63, 63, 70, 0.6);
  border-radius: 12px;
  color: var(--agp-white);
  font-family: var(--agp-font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--agp-primary);
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
  outline: none;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-input.valid,
.form-select.valid,
.form-textarea.valid {
  border-color: #22c55e;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a1a1aa' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form-helper {
  font-size: 0.75rem;
  margin-top: 4px;
  display: none;
}

.form-helper.visible { display: block; }
.form-helper.error { color: #ef4444; }
.form-helper.success { color: #22c55e; }

/* Optional details toggle */
.optional-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  cursor: pointer;
  color: var(--agp-zinc-400);
  font-size: 0.9rem;
  transition: color 0.2s ease;
  border: none;
  background: none;
  width: 100%;
}

.optional-toggle:hover { color: var(--agp-white); }
.optional-toggle svg { transition: transform 0.3s ease; }
.optional-toggle.open svg { transform: rotate(180deg); }

.optional-fields {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.optional-fields.open { max-height: 200px; }

/* Submit button loading state */
.submit-btn .spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

.submit-btn.loading .spinner { display: inline-block; }
.submit-btn.loading .btn-text { opacity: 0; }

@keyframes spin { to { transform: rotate(360deg); } }

/* === COOKIE CONSENT BANNER === */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: rgba(24, 24, 27, 0.98);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(20, 184, 166, 0.2);
  padding: 20px 24px;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p {
  color: var(--agp-zinc-400);
  font-size: 0.875rem;
  line-height: 1.5;
  flex: 1;
  min-width: 250px;
}

.cookie-banner p a {
  color: var(--agp-primary-light);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn-accept {
  padding: 10px 24px;
  background: var(--agp-gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cookie-btn-accept:hover { transform: translateY(-1px); }

.cookie-btn-decline {
  padding: 10px 24px;
  background: transparent;
  color: var(--agp-zinc-400);
  border: 1px solid var(--agp-zinc-700);
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-btn-decline:hover {
  border-color: var(--agp-zinc-600);
  color: var(--agp-white);
}

/* === TOAST NOTIFICATIONS === */
.toast-container {
  position: fixed;
  top: calc(var(--agp-nav-height) + 16px);
  right: 16px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 16px 24px;
  border-radius: 12px;
  backdrop-filter: blur(16px);
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateX(120%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 400px;
}

.toast.visible { transform: translateX(0); }

.toast.success {
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
}

.toast.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

/* === SCROLL-TO-TOP BUTTON === */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--agp-gradient-primary);
  color: white;
  border: none;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.3);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(20, 184, 166, 0.5);
}

/* === TESTIMONIALS === */
.testimonial-card {
  background: rgba(24, 24, 27, 0.3);
  border: 1px solid rgba(20, 184, 166, 0.15);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  border-color: rgba(20, 184, 166, 0.3);
  background: rgba(24, 24, 27, 0.5);
}

.testimonial-stars {
  color: #fbbf24;
  font-size: 1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.testimonial-quote {
  color: var(--agp-zinc-400);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--agp-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  flex-shrink: 0;
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--agp-white);
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--agp-zinc-600);
}

/* === FAQ ACCORDION === */
.faq-item {
  border: 1px solid rgba(63, 63, 70, 0.4);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item:hover { border-color: rgba(20, 184, 166, 0.3); }

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: rgba(24, 24, 27, 0.4);
  border: none;
  color: var(--agp-white);
  font-family: var(--agp-font-body);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}

.faq-question:hover { background: rgba(24, 24, 27, 0.6); }

.faq-question svg {
  width: 20px;
  height: 20px;
  color: var(--agp-primary);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--agp-zinc-400);
  font-size: 0.9rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer { max-height: 300px; }

/* === PRICING CARDS === */
.pricing-card {
  background: rgba(24, 24, 27, 0.3);
  border: 1px solid rgba(63, 63, 70, 0.4);
  border-radius: 16px;
  padding: 36px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pricing-card:hover {
  border-color: rgba(20, 184, 166, 0.3);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: rgba(20, 184, 166, 0.5);
  background: rgba(20, 184, 166, 0.05);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--agp-gradient-primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--agp-font-display);
  color: var(--agp-white);
  line-height: 1;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--agp-zinc-400);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--agp-zinc-400);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pricing-features li::before {
  content: '\2713';
  color: var(--agp-primary);
  font-weight: 700;
  flex-shrink: 0;
}

/* === NEWSLETTER FOOTER === */
.newsletter-form {
  display: flex;
  gap: 8px;
  max-width: 400px;
}

.newsletter-form input {
  flex: 1;
  padding: 10px 16px;
  background: rgba(9, 9, 11, 0.6);
  border: 1px solid var(--agp-zinc-700);
  border-radius: 8px;
  color: var(--agp-white);
  font-size: 0.875rem;
  transition: border-color 0.3s ease;
}

.newsletter-form input:focus {
  border-color: var(--agp-primary);
  outline: none;
}

.newsletter-form button {
  padding: 10px 20px;
  background: var(--agp-gradient-primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.2s ease;
}

.newsletter-form button:hover { transform: translateY(-1px); }

/* === SOCIAL PROOF BAR === */
.social-proof-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
}

.social-proof-stat {
  text-align: center;
}

.social-proof-stat .number {
  font-family: var(--agp-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--agp-primary-light);
}

.social-proof-stat .label {
  font-size: 0.75rem;
  color: var(--agp-zinc-400);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === RELATED SERVICES === */
.related-service-card {
  background: rgba(24, 24, 27, 0.3);
  border: 1px solid rgba(63, 63, 70, 0.4);
  border-radius: 12px;
  padding: 24px;
  text-decoration: none;
  display: block;
  transition: all 0.3s ease;
}

.related-service-card:hover {
  border-color: rgba(20, 184, 166, 0.4);
  transform: translateY(-2px);
  background: rgba(24, 24, 27, 0.5);
}

.related-service-card h4 {
  color: var(--agp-white);
  font-weight: 600;
  margin-bottom: 8px;
}

.related-service-card p {
  color: var(--agp-zinc-400);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* === PORTFOLIO FILTER TRANSITIONS === */
.portfolio-item {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.95);
  position: absolute;
  pointer-events: none;
}

/* === BOOKING MODAL === */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.booking-modal-overlay.visible {
  opacity: 1;
  visibility: visible;
}

.booking-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  background: var(--agp-dark-900);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 16px;
  z-index: 10003;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  overflow: hidden;
}

.booking-modal.visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.booking-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(63, 63, 70, 0.5);
}

.booking-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(63, 63, 70, 0.3);
  border: none;
  color: var(--agp-zinc-400);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.booking-modal-close:hover {
  background: rgba(63, 63, 70, 0.6);
  color: var(--agp-white);
}

.booking-modal-body {
  padding: 0;
  height: calc(85vh - 80px);
}

.booking-modal-body iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* === SMOOTH SCROLL === */
html { scroll-behavior: smooth; }

@media (max-width: 768px) {
  .cookie-banner-inner { flex-direction: column; text-align: center; }
  .cookie-banner-actions { width: 100%; justify-content: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
  .booking-modal { width: 95%; max-height: 90vh; }
  .booking-modal-body { height: calc(90vh - 80px); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .fade-up.visible {
    opacity: 1;
    transform: none;
  }

  .delay-1, .delay-2, .delay-3, .delay-4 {
    transition-delay: 0s;
  }

  .glow-btn,
  .glow-btn::before,
  .card-glow,
  .agp-card-unified,
  .agp-nav-link::after {
    transition: none;
  }

  #bg-canvas {
    display: none;
  }
}

/* === PREMIUM ENHANCEMENTS === */

/* Silver shimmer effect for premium elements */
.silver-shimmer {
  position: relative;
  overflow: hidden;
}

.silver-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    transparent,
    rgba(212, 212, 212, 0.08),
    transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  50%, 100% { left: 100%; }
}

/* Refined depth system */
.depth-subtle {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.depth-moderate {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.1);
}

.depth-strong {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), 0 6px 16px rgba(0, 0, 0, 0.15);
}

/* Teal accent glow (subtle) */
.teal-accent-glow {
  box-shadow: 0 0 20px rgba(20, 184, 166, 0.15);
}

/* ========================================
   THEME: Architectural Precision
   Monochromatic light + bold red/coral accent
   Instrument Serif display font
   For AEC C-suite decision makers
   ======================================== */

[data-theme="architectural"] {
  --agp-primary: #dc2626;
  --agp-primary-light: #ef4444;
  --agp-primary-dark: #b91c1c;

  --agp-accent-cool: #dc2626;
  --agp-accent-teal: #991b1b;

  --agp-font-display: 'Instrument Serif', 'Georgia', serif;

  --agp-gradient-primary: linear-gradient(135deg, #dc2626, #ef4444);
  --agp-gradient-cool: linear-gradient(135deg, #dc2626, #f87171);
  --agp-gradient-deep: linear-gradient(135deg, #991b1b, #dc2626);
  --agp-gradient-subtle: linear-gradient(135deg, #fafafa 0%, #f4f4f5 100%);
  --agp-gradient-overlay: linear-gradient(135deg, rgba(220, 38, 38, 0.03), rgba(239, 68, 68, 0.03));

  --agp-glow: 0 4px 14px rgba(220, 38, 38, 0.15);
  --agp-glow-strong: 0 8px 25px rgba(220, 38, 38, 0.2);

  --agp-dark-950: #ffffff;
  --agp-dark-900: #fafafa;
  --agp-dark-800: #f4f4f5;
  --agp-white: #18181b;
  --agp-zinc-400: #71717a;
  --agp-zinc-600: #a1a1aa;
  --agp-zinc-700: #e4e4e7;
}

/* --- Body & Global --- */
[data-theme="architectural"] body {
  background-color: #ffffff;
  color: #18181b;
}

[data-theme="architectural"] h1,
[data-theme="architectural"] h2,
[data-theme="architectural"] h3,
[data-theme="architectural"] h4,
[data-theme="architectural"] .agp-footer-heading,
[data-theme="architectural"] .pricing-price {
  font-family: var(--agp-font-display);
  font-weight: 400 !important;
  font-style: normal;
}

[data-theme="architectural"] #bg-canvas,
[data-theme="architectural"] .noise {
  display: none !important;
}

/* --- Tailwind Class Overrides --- */
[data-theme="architectural"] .bg-dark-950 {
  background-color: #ffffff !important;
}

[data-theme="architectural"] .text-white {
  color: #18181b !important;
}

[data-theme="architectural"] .text-zinc-400 {
  color: #71717a !important;
}

[data-theme="architectural"] .text-zinc-500 {
  color: #71717a !important;
}

[data-theme="architectural"] .border-zinc-700 {
  border-color: #e4e4e7 !important;
}

[data-theme="architectural"] .hover\:border-zinc-500:hover {
  border-color: #d4d4d8 !important;
}

[data-theme="architectural"] .hover\:bg-white\/5:hover {
  background-color: rgba(0, 0, 0, 0.03) !important;
}

[data-theme="architectural"] .text-accent-blue,
[data-theme="architectural"] .text-accent-teal {
  color: #dc2626 !important;
}

/* --- Navigation --- */
[data-theme="architectural"] #sylogico-nav {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid #e4e4e7;
}

[data-theme="architectural"] #sylogico-nav.scrolled {
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

[data-theme="architectural"] .agp-logo-img {
  filter: brightness(0);
}

[data-theme="architectural"] .agp-logo-text {
  color: #000000;
}

[data-theme="architectural"] .agp-nav-link {
  color: #71717a;
}

[data-theme="architectural"] .agp-nav-link:hover {
  color: #18181b;
}

[data-theme="architectural"] .agp-nav-active {
  color: #18181b !important;
}

[data-theme="architectural"] .agp-dropdown-menu {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #e4e4e7;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

[data-theme="architectural"] .agp-dropdown-item {
  color: #71717a;
}

[data-theme="architectural"] .agp-dropdown-item:hover {
  background: #f4f4f5;
  color: #18181b;
}

[data-theme="architectural"] .agp-mobile-toggle span {
  background: #18181b;
}

[data-theme="architectural"] .agp-mobile-menu {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #e4e4e7;
}

[data-theme="architectural"] .agp-nav-cta {
  color: #ffffff !important;
}

/* --- Auth UI --- */
[data-theme="architectural"] .agp-auth-login-link {
  border-color: rgba(220, 38, 38, 0.3);
}

[data-theme="architectural"] .agp-auth-avatar {
  background: rgba(220, 38, 38, 0.08);
  border-color: rgba(220, 38, 38, 0.25);
}

/* --- Cards --- */
[data-theme="architectural"] .agp-card-unified,
[data-theme="architectural"] .card-glow {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  backdrop-filter: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="architectural"] .agp-card-unified::before,
[data-theme="architectural"] .card-glow::before {
  background: none;
}

[data-theme="architectural"] .agp-card-unified:hover,
[data-theme="architectural"] .card-glow:hover {
  border-color: #d4d4d8;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

/* --- Buttons --- */
[data-theme="architectural"] .glow-btn {
  background: #dc2626;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.2);
  color: #ffffff !important;
}

[data-theme="architectural"] .glow-btn::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
}

[data-theme="architectural"] .glow-btn:hover {
  background: #b91c1c;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
  color: #ffffff !important;
}

/* --- Footer --- */
[data-theme="architectural"] #sylogico-footer {
  background: #fafafa;
  border-top: 1px solid #e4e4e7;
  backdrop-filter: none;
}

[data-theme="architectural"] .agp-footer-heading {
  color: #18181b;
}

[data-theme="architectural"] .agp-footer-link {
  color: #71717a;
}

[data-theme="architectural"] .agp-footer-bottom {
  border-top: 1px solid #e4e4e7;
  color: #a1a1aa;
}

/* --- Forms --- */
[data-theme="architectural"] .form-input,
[data-theme="architectural"] .form-select,
[data-theme="architectural"] .form-textarea {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  color: #18181b;
}

[data-theme="architectural"] .form-input:focus,
[data-theme="architectural"] .form-select:focus,
[data-theme="architectural"] .form-textarea:focus {
  border-color: var(--agp-primary);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

/* --- FAQ --- */
[data-theme="architectural"] .faq-item {
  border: 1px solid #e4e4e7;
}

[data-theme="architectural"] .faq-item:hover {
  border-color: rgba(220, 38, 38, 0.25);
}

[data-theme="architectural"] .faq-question {
  background: #fafafa;
  color: #18181b;
}

[data-theme="architectural"] .faq-question:hover {
  background: #f4f4f5;
}

[data-theme="architectural"] .faq-answer-inner {
  color: #71717a;
}

/* --- Pricing --- */
[data-theme="architectural"] .pricing-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  backdrop-filter: none;
}

[data-theme="architectural"] .pricing-card:hover {
  border-color: rgba(220, 38, 38, 0.25);
}

[data-theme="architectural"] .pricing-card.featured {
  border-color: rgba(220, 38, 38, 0.4);
  background: rgba(220, 38, 38, 0.02);
}

[data-theme="architectural"] .pricing-features li {
  color: #71717a;
}

/* --- Testimonials --- */
[data-theme="architectural"] .testimonial-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  backdrop-filter: none;
}

[data-theme="architectural"] .testimonial-card:hover {
  border-color: rgba(220, 38, 38, 0.25);
  background: #fafafa;
}

[data-theme="architectural"] .testimonial-quote {
  color: #71717a;
}

[data-theme="architectural"] .testimonial-name {
  color: #18181b;
}

/* --- Cookie Banner --- */
[data-theme="architectural"] .cookie-banner {
  background: rgba(255, 255, 255, 0.98);
  border-top: 1px solid #e4e4e7;
}

[data-theme="architectural"] .cookie-banner p {
  color: #71717a;
}

[data-theme="architectural"] .cookie-btn-accept {
  color: #ffffff;
}

[data-theme="architectural"] .cookie-btn-decline {
  color: #71717a;
  border: 1px solid #e4e4e7;
}

[data-theme="architectural"] .cookie-btn-decline:hover {
  border-color: #d4d4d8;
  color: #18181b;
}

/* --- Toast --- */
[data-theme="architectural"] .toast.success {
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #16a34a;
}

[data-theme="architectural"] .toast.error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #dc2626;
}

/* --- Scroll to Top --- */
[data-theme="architectural"] .scroll-top-btn {
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2);
  color: #ffffff;
}

[data-theme="architectural"] .scroll-top-btn:hover {
  box-shadow: 0 6px 16px rgba(220, 38, 38, 0.3);
}

/* --- Newsletter --- */
[data-theme="architectural"] .newsletter-form input {
  background: #ffffff;
  border: 1px solid #e4e4e7;
  color: #18181b;
}

[data-theme="architectural"] .newsletter-form input:focus {
  border-color: var(--agp-primary);
}

[data-theme="architectural"] .newsletter-form button {
  color: #ffffff;
}

/* --- Filter Buttons --- */
[data-theme="architectural"] .filter-btn {
  border: 1px solid #e4e4e7;
  background: #ffffff;
  color: #71717a;
}

[data-theme="architectural"] .filter-btn.active {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.04);
  color: #dc2626;
}

[data-theme="architectural"] .filter-btn:hover {
  border-color: #dc2626;
}

/* --- Related Services --- */
[data-theme="architectural"] .related-service-card {
  background: #ffffff;
  border: 1px solid #e4e4e7;
}

[data-theme="architectural"] .related-service-card:hover {
  border-color: rgba(220, 38, 38, 0.3);
  background: #fafafa;
}

[data-theme="architectural"] .related-service-card h4 {
  color: #18181b;
}

[data-theme="architectural"] .related-service-card p {
  color: #71717a;
}

/* --- Booking Modal --- */
[data-theme="architectural"] .booking-modal {
  background: #ffffff;
  border: 1px solid #e4e4e7;
}

[data-theme="architectural"] .booking-modal-header {
  border-bottom: 1px solid #e4e4e7;
}

[data-theme="architectural"] .booking-modal-close {
  background: #f4f4f5;
  color: #71717a;
}

[data-theme="architectural"] .booking-modal-close:hover {
  background: #e4e4e7;
  color: #18181b;
}

/* --- Action Line --- */
[data-theme="architectural"] .agp-action-line {
  height: 1px;
  background: #e4e4e7;
}

/* --- Gradient Text --- */
[data-theme="architectural"] .gradient-text,
[data-theme="architectural"] .agp-gradient-text {
  color: #18181b !important;
  -webkit-text-fill-color: #18181b !important;
}

/* --- Service Icon Containers (override inline styles) --- */
[data-theme="architectural"] .service-icon-container {
  background: rgba(220, 38, 38, 0.04) !important;
  border-color: rgba(220, 38, 38, 0.15) !important;
}

/* --- Logo Carousel --- */
[data-theme="architectural"] .logo-carousel-wrapper {
  background: #f4f4f5 !important;
  border: 1px solid #e4e4e7;
}

[data-theme="architectural"] .logo-carousel-wrapper > div[style*="position: absolute"][style*="left: 0"] {
  background: linear-gradient(to right, #f4f4f5, transparent) !important;
}

[data-theme="architectural"] .logo-carousel-wrapper > div[style*="position: absolute"][style*="right: 0"] {
  background: linear-gradient(to left, #f4f4f5, transparent) !important;
}

/* --- Premium Enhancements --- */
[data-theme="architectural"] .silver-shimmer::after {
  display: none;
}

[data-theme="architectural"] .teal-accent-glow {
  box-shadow: 0 0 20px rgba(220, 38, 38, 0.06);
}

/* --- Social Proof --- */
[data-theme="architectural"] .social-proof-stat .number {
  color: var(--agp-primary);
}

/* --- Inline style overrides for benefit boxes --- */
[data-theme="architectural"] [style*="rgba(20, 184, 166"] {
  background: rgba(220, 38, 38, 0.03) !important;
  border-color: rgba(220, 38, 38, 0.08) !important;
}

/* --- Reduced motion support for architectural theme --- */
@media (prefers-reduced-motion: reduce) {
  [data-theme="architectural"] .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
