/*
Theme Name: The Stocks Effect
Theme URI: https://www.janestocks.com
Author: Jane Stocks
Author URI: https://www.janestocks.com
Description: A modern, Fortune-50 calibre healthcare marketing consultant theme with scroll animations, frosted-glass navigation, and premium design. Built for WPEngine. Compatible with Elementor for additional pages.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Proprietary
License URI: https://www.janestocks.com
Text Domain: jane-stocks
Tags: one-column, custom-menu, featured-images, full-width-template, custom-logo
*/

/* ============================================
   THE STOCKS EFFECT — Modern Design System
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-primary: #1a1a2e;
  --color-primary-light: #2d2d4a;
  --color-accent: #6366f1;
  --color-accent-hover: #818cf8;
  --color-accent-soft: rgba(99, 102, 241, 0.08);
  --color-surface: #ffffff;
  --color-surface-elevated: #f8f9fc;
  --color-surface-muted: #f1f3f8;
  --color-text: #111827;
  --color-text-secondary: #6b7280;
  --color-text-tertiary: #9ca3af;
  --color-border: #e5e7eb;
  --color-border-light: #f3f4f6;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

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

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.04);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Custom Cursor (desktop only) --- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 2px;
  height: 2px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.4s;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out),
              border-color 0.3s, background 0.3s, opacity 0.4s;
}

body:hover .cursor-dot,
body:hover .cursor-ring {
  opacity: 1;
}

/* Subtle grow + tint on interactive elements */
.cursor-ring--hover {
  width: 36px;
  height: 36px;
  border-color: rgba(99, 102, 241, 0.18);
  background: rgba(99, 102, 241, 0.03);
}

/* Hide custom cursor elements on touch/mobile */
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

@media (max-width: 768px) {
  .cursor-dot, .cursor-ring { display: none !important; }
}

/* --- Skip to Content (ADA) --- */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 10000;
  background: var(--color-accent);
  color: white;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  text-decoration: none;
  box-shadow: var(--shadow-lg);
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 16px;
  clip: auto !important;
  clip-path: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  padding: 12px 24px !important;
  outline: none;
}

/* --- Focus Visible (keyboard tab navigation) --- */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Refined focus for buttons and pills */
.btn:focus-visible,
.navbar__link:focus-visible {
  outline-offset: 4px;
  border-radius: var(--radius-full);
}

/* Focus on dark backgrounds */
.hero *:focus-visible,
.contact *:focus-visible,
.footer *:focus-visible,
.navbar *:focus-visible,
.error-404 *:focus-visible {
  outline-color: rgba(129, 140, 248, 0.8);
}

/* Screen reader only utility */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  width: auto;
  margin: 0;
  overflow: visible;
  position: absolute;
  z-index: 10000;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* --- Text Selection --- */
::selection {
  background: rgba(99, 102, 241, 0.25);
  color: var(--color-primary);
}

::-moz-selection {
  background: rgba(99, 102, 241, 0.25);
  color: var(--color-primary);
}

/* Selection on dark backgrounds */
.hero ::selection,
.contact ::selection,
.error-404 ::selection,
.footer ::selection,
.navbar ::selection,
.mobile-menu ::selection {
  background: rgba(129, 140, 248, 0.4);
  color: white;
  -webkit-text-fill-color: white;
}

.hero ::-moz-selection,
.contact ::-moz-selection,
.error-404 ::-moz-selection,
.footer ::-moz-selection,
.navbar ::-moz-selection,
.mobile-menu ::-moz-selection {
  background: rgba(129, 140, 248, 0.4);
  color: white;
  -webkit-text-fill-color: white;
}

/* Gradient text selection fix */
.hero__title-accent::selection,
.hero__title-accent::-moz-selection {
  -webkit-text-fill-color: white;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography Utilities --- */
.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  background: var(--color-accent-soft);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-tag--light {
  color: var(--color-accent-hover);
  background: rgba(255, 255, 255, 0.1);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

.text-accent {
  color: var(--color-accent);
}

.text-accent-light {
  color: var(--color-accent-hover);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-accent);
  color: white;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25);
}

.btn--primary:hover {
  background: var(--color-accent-hover);
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--sm {
  font-size: 0.8125rem;
  padding: 8px 20px;
  background: var(--color-accent);
  color: white;
  border-radius: var(--radius-full);
}

.btn--sm:hover {
  background: var(--color-accent-hover);
}

.btn--lg {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
}

/* --- Animations --- */
.animate-in > * {
  animation: fadeSlideUp 0.7s var(--ease-out) both;
}

.animate-in > *:nth-child(1) { animation-delay: 0s; }
.animate-in > *:nth-child(2) { animation-delay: 0.08s; }
.animate-in > *:nth-child(3) { animation-delay: 0.16s; }
.animate-in > *:nth-child(4) { animation-delay: 0.24s; }
.animate-in > *:nth-child(5) { animation-delay: 0.32s; }

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

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

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

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: all 0.4s var(--ease-out);
}

.navbar--scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--color-border-light);
}

/* Fallback for browsers without backdrop-filter */
@supports not (backdrop-filter: blur(20px)) {
  .navbar--scrolled {
    background: rgba(255, 255, 255, 0.98);
  }
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.5s var(--ease-out);
  transform: scale(1.5);
  transform-origin: left center;
}

.navbar--scrolled .navbar__logo {
  transform: scale(1);
}

.navbar__logo:hover {
  opacity: 0.8;
}

.navbar__logo-the {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.navbar__logo-stocks {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: white;
}

.navbar__logo-effect {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.7);
}

.navbar--scrolled .navbar__logo-the,
.navbar--scrolled .navbar__logo-effect {
  color: var(--color-text-tertiary);
}

.navbar--scrolled .navbar__logo-stocks {
  color: var(--color-text);
}

/* Trademark symbol */
.tm {
  font-size: 0.9em;
  font-weight: 800;
  opacity: 0.6;
  color: rgba(255, 255, 255, 0.5);
  vertical-align: super;
  line-height: 1;
  margin-left: 1px;
}

/* Desktop nav links — hidden on mobile, shown on desktop */
.navbar__desktop-links {
  display: none;
  align-items: center;
  gap: 8px;
  list-style: none;
}

@media (min-width: 769px) {
  .navbar__desktop-links {
    display: flex;
  }
}

/* ============================================
   MOBILE MENU — lives on <body>, not inside
   .navbar, so no stacking-context issues.
   Hidden by default; .mobile-menu--open shows it.
   ============================================ */
.mobile-menu {
  display: none !important;
  position: fixed;
  inset: 0;
  z-index: 9000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0f0f23 50%, #1a1a3e 100%);
  padding: 80px 32px 40px;
  overflow-y: auto;
}

.mobile-menu--open {
  display: flex !important;
}

/* Close button — always in the HTML, top-right */
.mobile-menu__close {
  position: absolute;
  top: 20px;
  right: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.25s var(--ease-out);
}

.mobile-menu__close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: rotate(90deg);
}

.mobile-menu__close:active {
  transform: rotate(90deg) scale(0.9);
}

/* Logo inside mobile menu */
.mobile-menu__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 600;
  margin-bottom: 48px;
  transition: opacity 0.2s;
}

.mobile-menu__logo:hover {
  opacity: 0.8;
}

.mobile-menu__logo .navbar__logo-the {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.mobile-menu__logo .navbar__logo-stocks {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-style: italic;
  font-weight: 600;
  color: white;
  letter-spacing: -0.02em;
}

.mobile-menu__logo .navbar__logo-effect {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
}

.mobile-menu__logo .tm {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Nav links */
.mobile-menu__links {
  list-style: none;
  text-align: center;
  margin: 0;
  padding: 0;
}

.mobile-menu__link {
  display: inline-block;
  color: rgba(255, 255, 255, 0.55);
  padding: 14px 28px;
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  border-radius: var(--radius-full);
  transition: color 0.25s var(--ease-out), background 0.25s var(--ease-out),
              transform 0.25s var(--ease-out);
}

.mobile-menu__link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(4px);
}

.mobile-menu__link:active {
  transform: translateX(4px) scale(0.98);
}

/* CTA button */
.mobile-menu__cta {
  margin-top: 32px;
  width: 100%;
  max-width: 280px;
  justify-content: center;
  font-size: 1rem;
  padding: 16px 32px;
}

.mobile-menu__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.4);
}

/* Stagger animation */
.mobile-menu--open .mobile-menu__logo,
.mobile-menu--open .mobile-menu__links li,
.mobile-menu--open .mobile-menu__cta {
  animation: menuSlideIn 0.4s var(--ease-out) both;
}

.mobile-menu--open .mobile-menu__logo         { animation-delay: 0.05s; }
.mobile-menu--open .mobile-menu__links li:nth-child(1) { animation-delay: 0.08s; }
.mobile-menu--open .mobile-menu__links li:nth-child(2) { animation-delay: 0.12s; }
.mobile-menu--open .mobile-menu__links li:nth-child(3) { animation-delay: 0.16s; }
.mobile-menu--open .mobile-menu__links li:nth-child(4) { animation-delay: 0.2s; }
.mobile-menu--open .mobile-menu__links li:nth-child(5) { animation-delay: 0.24s; }
.mobile-menu--open .mobile-menu__cta           { animation-delay: 0.3s; }

.navbar__link {
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.navbar__link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.navbar--scrolled .navbar__link {
  color: var(--color-text-secondary);
}

.navbar--scrolled .navbar__link:hover {
  color: var(--color-text);
  background: var(--color-surface-muted);
}

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}

.navbar__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s var(--ease-out);
}

.navbar--scrolled .navbar__burger span {
  background: var(--color-text);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-primary) 0%, #0f0f1e 100%);
}

.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent-hover);
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 3.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--color-accent-hover) 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.65);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: white;
}

.hero__stat-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

.hero__stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.12);
}

.hero__scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
}

.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.3) 0%, transparent 100%);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  padding: 120px 0;
  background: var(--color-surface);
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about__text {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

.about__visual {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about__card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.4s var(--ease-out);
}

.about__card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.about__card-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  color: var(--color-accent);
}

.about__card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}

/* ============================================
   STRATEGY
   ============================================ */
.strategy {
  padding: 120px 0;
  background: var(--color-surface-elevated);
}

.strategy__header {
  text-align: center;
  margin-bottom: 64px;
}

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

.strategy__card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}

.strategy__card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.strategy__card-tag {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  color: var(--color-surface-muted);
  position: absolute;
  top: 16px;
  right: 24px;
  line-height: 1;
}

.strategy__card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  margin-bottom: 24px;
}

.strategy__card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 16px;
}

.strategy__card-desc {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.strategy__card-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-hover));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.strategy__card:hover .strategy__card-line {
  transform: scaleX(1);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  padding: 120px 0;
  background: var(--color-surface);
}

.services__header {
  text-align: center;
  margin-bottom: 64px;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.services__card {
  background: var(--color-surface-elevated);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all 0.4s var(--ease-out);
}

.services__card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.services__card-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-soft);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  margin: 0 auto 20px;
}

.services__card-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
}

.services__card-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

/* ============================================
   CLIENTS
   ============================================ */
.clients {
  padding: 120px 0;
  background: var(--color-surface-elevated);
}

.clients__header {
  text-align: center;
  margin-bottom: 64px;
}

/* Marquee (mobile-friendly infinite scroll) */
.clients__marquee-wrapper {
  display: none;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}

.clients__marquee {
  display: flex;
  gap: 32px;
  animation: marquee 30s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.clients__item {
  flex-shrink: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clients__item img {
  max-height: 60px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: all 0.3s var(--ease-out);
}

.clients__item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

.clients__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
}

/* Grid (desktop) */
.clients__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.clients__grid-item,
a.clients__grid-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: all 0.3s var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.clients__grid-item img {
  max-height: 160px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s var(--ease-out);
}

.clients__grid-item:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-sm);
}

.clients__grid-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* Fallback text style (when no logo available) */
.clients__grid-item span {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
  padding: 120px 0;
  background: var(--color-primary);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  color: white;
  margin-bottom: 16px;
}

.contact__text {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 32px;
}

.contact__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
}

.contact__feature svg {
  color: var(--color-accent-hover);
  flex-shrink: 0;
}

.contact__form-wrapper {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-xl);
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact__field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-surface-elevated);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s;
}

.contact__field input:focus,
.contact__field textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.contact__field input::placeholder,
.contact__field textarea::placeholder {
  color: var(--color-text-tertiary);
}

.contact__field textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__success {
  text-align: center;
  padding: 40px 20px;
  color: var(--color-accent);
}

.contact__success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-text);
  margin-top: 16px;
}

.contact__success p {
  color: var(--color-text-secondary);
  margin-top: 8px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0f0f1e;
  padding: 60px 0 32px;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__logo {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  transform: scale(1.4);
  transform-origin: center;
  margin-bottom: 8px;
}

.footer__logo-the {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.footer__logo-stocks {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-style: italic;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: -0.02em;
}

.footer__logo-effect {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.45);
}

.footer__logo .tm {
  font-size: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
}

.footer__tagline {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 10px;
  text-align: center;
  letter-spacing: 0.02em;
}

.footer__links {
  display: flex;
  gap: 32px;
}

.footer__links a {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.footer__links a:hover {
  color: white;
}

.footer__bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  width: 100%;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
}

/* ============================================
   GRAVITY FORMS OVERRIDES
   ============================================ */
.contact__form-wrapper .gform_wrapper {
  margin: 0;
  padding: 0;
}

.contact__form-wrapper .gform_wrapper .gform_body {
  padding: 0;
  padding-bottom: 35px;
}

.contact__form-wrapper .gform_wrapper .gfield {
  padding: 0;
}

.contact__form-wrapper .gform_wrapper .gfield_label {
  font-size: 0.8125rem !important;
  font-weight: 500 !important;
  color: var(--color-text-secondary) !important;
  margin-bottom: 6px !important;
  font-family: var(--font-sans) !important;
}

/* Hide required indicator or style it subtly */
.contact__form-wrapper .gform_wrapper .gfield_required {
  color: var(--color-accent) !important;
  font-size: 0.75rem !important;
}

/* Override GF default field spacing */
.contact__form-wrapper .gform_wrapper .gform_fields {
  gap: 20px !important;
}

.contact__form-wrapper .gform_wrapper .gfield {
  margin-bottom: 0 !important;
}

.contact__form-wrapper .gform_wrapper input[type="text"],
.contact__form-wrapper .gform_wrapper input[type="email"],
.contact__form-wrapper .gform_wrapper input[type="tel"],
.contact__form-wrapper .gform_wrapper input[type="url"],
.contact__form-wrapper .gform_wrapper textarea,
.contact__form-wrapper .gform_wrapper select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-surface-elevated);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.contact__form-wrapper .gform_wrapper input:focus,
.contact__form-wrapper .gform_wrapper textarea:focus,
.contact__form-wrapper .gform_wrapper select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.contact__form-wrapper .gform_wrapper input::placeholder,
.contact__form-wrapper .gform_wrapper textarea::placeholder {
  color: var(--color-text-tertiary);
}

.contact__form-wrapper .gform_wrapper textarea {
  resize: vertical;
  min-height: 100px;
}

.contact__form-wrapper .gform_wrapper .gform_footer,
.contact__form-wrapper .gform_wrapper .gform_page_footer {
  margin: 0;
  padding: 0;
}

.contact__form-wrapper .gform_wrapper .gform_button,
.contact__form-wrapper .gform_wrapper input[type="submit"],
.contact__form-wrapper .gform_wrapper .gform_footer input[type="submit"],
.contact__form-wrapper .gform_wrapper .gform_page_footer input[type="submit"],
.contact__form-wrapper .gform_wrapper .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  font-family: var(--font-sans) !important;
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  padding: 16px 28px !important;
  border-radius: var(--radius-full) !important;
  border: none !important;
  cursor: pointer !important;
  background: var(--color-accent) !important;
  color: white !important;
  box-shadow: 0 2px 12px rgba(99, 102, 241, 0.25) !important;
  transition: all 0.3s var(--ease-out) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  line-height: 1.4 !important;
}

.contact__form-wrapper .gform_wrapper .gform_button::after,
.contact__form-wrapper .gform_wrapper input[type="submit"]::after,
.contact__form-wrapper .gform_wrapper .gform_footer input[type="submit"]::after,
.contact__form-wrapper .gform_wrapper .button::after {
  content: '';
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='22' y1='2' x2='11' y2='13'/%3E%3Cpolygon points='22 2 15 22 11 13 2 9 22 2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
}

.contact__form-wrapper .gform_wrapper .gform_button:hover,
.contact__form-wrapper .gform_wrapper input[type="submit"]:hover,
.contact__form-wrapper .gform_wrapper .gform_footer input[type="submit"]:hover,
.contact__form-wrapper .gform_wrapper .button:hover {
  background: var(--color-accent-hover) !important;
  box-shadow: 0 6px 24px rgba(99, 102, 241, 0.35) !important;
  transform: translateY(-1px);
}

/* GF confirmation message styled like success state */
.contact__form-wrapper .gform_confirmation_message {
  text-align: center;
  padding: 40px 20px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-accent);
}

/* Hide GF validation error styling clashes */
.contact__form-wrapper .gform_wrapper .gfield_error input,
.contact__form-wrapper .gform_wrapper .gfield_error textarea {
  border-color: #ef4444;
}

.contact__form-wrapper .gform_wrapper .validation_message {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 4px;
}

/* ============================================
   INNER PAGE STYLES
   ============================================ */
.page-content {
  padding: 140px 0 80px;
  min-height: 60vh;
}

.page-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  margin-bottom: 24px;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
}

.page-content p {
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
  max-width: 720px;
}

.page-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-content a:hover {
  color: var(--color-accent-hover);
}

.page-content img {
  border-radius: var(--radius-md);
  margin: 24px 0;
}

/* 404 Page — Branded fullscreen */
.error-404 {
  text-align: center;
  padding: 180px 24px 120px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary) 0%, #0a0a1a 50%, #12122a 100%);
  position: relative;
  overflow: hidden;
}

.error-404::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.error-404__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 700;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(99,102,241,0.15) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  position: relative;
}

.error-404__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 600;
  color: white;
  margin-top: 16px;
}

.error-404__subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--color-accent-hover);
  margin-top: 8px;
}

.error-404__text {
  color: rgba(255, 255, 255, 0.55);
  margin-top: 16px;
  margin-bottom: 40px;
  max-width: 440px;
  line-height: 1.7;
}

.error-404__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.error-404__logo {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-weight: 600;
  margin-bottom: 48px;
  opacity: 0.5;
}

.error-404__logo .navbar__logo-the {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.6);
}

.error-404__logo .navbar__logo-stocks {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-style: italic;
  color: white;
}

.error-404__logo .navbar__logo-effect {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   ACCESSIBILITY — Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .clients__marquee {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clients__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Logo stays at 1 on mobile */
  .navbar__logo {
    transform: scale(1);
  }

  /* Show burger on mobile */
  .navbar__burger {
    display: flex;
  }

  .hero__stats {
    gap: 24px;
  }

  .hero__stat-number {
    font-size: 1.5rem;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .strategy__grid {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .clients__grid {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding-bottom: 12px;
  }

  .clients__grid-item,
  a.clients__grid-item {
    flex: 0 0 auto;
    width: 160px;
    min-height: 100px;
    scroll-snap-align: start;
  }

  .footer__links {
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .hero__stats {
    flex-direction: column;
    gap: 16px;
  }

  .hero__stat-divider {
    width: 40px;
    height: 1px;
  }

}
