/*
Theme Name:  Impactus AI Child
Theme URI:   https://impactusgrowth.com
Description: Hello Elementor child theme for Impactus AI. Handles global design tokens, typography resets, Elementor colour/font overrides, utility classes, and custom component styles. All page layout is handled by Elementor Pro — this file keeps Hello out of the way and injects the brand system.
Author:      Impactus AI
Author URI:  https://impactusgrowth.com
Template:    hello-elementor
Version:     1.0.0
License:     GNU General Public License v2 or later
Text Domain: impactus-ai-child
*/

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* ── Brand Colours ── */
  --c-navy:         #0B1628;
  --c-navy2:        #112240;
  --c-navy3:        #0D1E38;
  --c-teal:         #00C9B1;
  --c-teal-dark:    #00A896;
  --c-teal-dim:     rgba(0, 201, 177, 0.12);
  --c-teal-glow:    rgba(0, 201, 177, 0.25);
  --c-teal-border:  rgba(0, 201, 177, 0.2);
  --c-gold:         #FFD166;
  --c-white:        #FFFFFF;
  --c-offwhite:     #F0F4F8;
  --c-gray:         #8899A6;
  --c-gray-light:   #C5D0DC;
  --c-red-soft:     #FF7070;

  /* ── Typography ── */
  --font-display:   'Barlow Condensed', sans-serif;
  --font-body:      'DM Sans', sans-serif;

  /* ── Spacing scale (use multiples of 8px) ── */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   40px;
  --space-xl:   64px;
  --space-2xl:  96px;
  --space-3xl:  120px;

  /* ── Radius ── */
  --radius-sm:  3px;
  --radius-md:  6px;

  /* ── Shadows ── */
  --shadow-card:   0 8px 32px rgba(0, 0, 0, 0.25);
  --shadow-teal:   0 8px 32px rgba(0, 201, 177, 0.25);
  --shadow-hover:  0 20px 60px rgba(0, 201, 177, 0.14);

  /* ── Transitions ── */
  --trans-fast:  0.18s ease;
  --trans-med:   0.3s ease;
  --trans-slow:  0.6s ease;
}

/* ============================================================
   2. GOOGLE FONTS IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;600;700;800;900&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300;1,500&display=swap');

/* ============================================================
   3. BASE RESET — neutralise Hello Elementor defaults
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  background-color: var(--c-navy);
  color: var(--c-white);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Kill Hello's default link colour */
a { color: var(--c-teal); text-decoration: none; transition: color var(--trans-fast); }
a:hover { color: var(--c-teal-dark); }

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

/* ============================================================
   4. TYPOGRAPHY SCALE
   ============================================================ */

/* Display headings — Barlow Condensed 900, all-caps */
h1, h2, h3,
.e-heading-display {
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: var(--c-white);
}

h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-white);
}

h1 { font-size: clamp(56px, 8vw, 96px); }
h2 { font-size: clamp(40px, 6vw, 72px); }
h3 { font-size: clamp(24px, 3.5vw, 36px); }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 2px; }

p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--c-gray-light);
  line-height: 1.75;
  margin-bottom: 1em;
}

p:last-child { margin-bottom: 0; }

/* Elementor Heading widget override — ensure font family sticks */
.elementor-widget-heading .elementor-heading-title {
  font-family: var(--font-display);
}

/* ============================================================
   5. NOISE / GRAIN OVERLAY (subtle texture on dark backgrounds)
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.025;
  mix-blend-mode: overlay;
}

/* ============================================================
   6. GRID BACKGROUND UTILITY
   ============================================================ */
.bg-grid {
  position: relative;
}
.bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image:
    linear-gradient(rgba(0, 201, 177, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 201, 177, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}
.bg-grid > * { position: relative; z-index: 1; }

/* ============================================================
   7. SECTION BACKGROUNDS
   ============================================================ */
.section-navy   { background-color: var(--c-navy)  !important; }
.section-navy2  { background-color: var(--c-navy2) !important; }
.section-light  { background-color: var(--c-offwhite) !important; color: var(--c-navy) !important; }

.section-light p,
.section-light li { color: #4A5568; }

.section-light h1,
.section-light h2,
.section-light h3,
.section-light h4 { color: var(--c-navy); }

/* ============================================================
   8. EYEBROW / TAG CHIP
   ============================================================ */
.eyebrow,
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--c-teal);
  background: var(--c-teal-dim);
  border: 1px solid var(--c-teal-border);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  line-height: 1;
}

.eyebrow--live::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--c-teal);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.25; transform: scale(0.7); }
}

/* ============================================================
   9. BUTTONS
   ============================================================ */

/* Primary — teal, clipped corner */
.btn-primary,
.elementor-button.btn-primary,
a.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--c-teal);
  color: var(--c-navy) !important;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 16px 36px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--trans-fast), transform var(--trans-fast), box-shadow var(--trans-fast);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
  border-radius: 0 !important; /* override Elementor button radius */
}

.btn-primary:hover {
  background: #00e0c9;
  transform: translateY(-2px);
  box-shadow: var(--shadow-teal);
  color: var(--c-navy) !important;
}

/* Ghost — transparent, white border */
.btn-ghost,
.elementor-button.btn-ghost,
a.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--c-white) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 15px 36px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  cursor: pointer;
  text-decoration: none;
  transition: border-color var(--trans-fast), color var(--trans-fast);
  border-radius: 0 !important;
}

.btn-ghost:hover {
  border-color: var(--c-teal);
  color: var(--c-teal) !important;
}

/* Gold accent button (used in hero for secondary CTAs) */
.btn-gold,
a.btn-gold {
  background: var(--c-gold);
  color: var(--c-navy) !important;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.btn-gold:hover { background: #ffe08a; }

/* Elementor button widget global reset */
.elementor-widget-button .elementor-button {
  border-radius: 0 !important;
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase !important;
}

/* ============================================================
   10. CARDS
   ============================================================ */

/* Base dark card */
.card {
  background: var(--c-navy2);
  border: 1px solid var(--c-teal-border);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--trans-med), box-shadow var(--trans-med), border-color var(--trans-med);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--c-teal);
}

/* Left-accent card (pain point style) */
.card--accent-left {
  background: var(--c-navy2);
  border: 1px solid rgba(0, 201, 177, 0.12);
  padding: var(--space-md) var(--space-md) var(--space-md) calc(var(--space-md) + 6px);
  position: relative;
  transition: border-color var(--trans-fast), transform var(--trans-fast);
}

.card--accent-left::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--c-teal);
}

.card--accent-left:hover {
  border-color: var(--c-teal);
  transform: translateX(4px);
}

/* Top-accent card (agent / ICP / pricing style) */
.card--accent-top {
  background: var(--c-navy2);
  border: 1px solid var(--c-teal-border);
  padding: var(--space-lg);
  position: relative;
  overflow: hidden;
  transition: transform var(--trans-med), box-shadow var(--trans-med);
}

.card--accent-top::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-teal);
}

.card--accent-top:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

/* Featured card (pricing highlight) */
.card--featured {
  border-color: var(--c-teal) !important;
  box-shadow: 0 0 0 1px var(--c-teal), var(--shadow-hover);
}

/* Ghost text background watermark */
.card__bg-text {
  position: absolute;
  right: -16px; bottom: -16px;
  font-family: var(--font-display);
  font-size: 100px;
  font-weight: 900;
  color: rgba(0, 201, 177, 0.04);
  text-transform: uppercase;
  letter-spacing: -5px;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

/* White card (for light sections) */
.card--white {
  background: var(--c-white);
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.card--white:hover { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); }

/* ============================================================
   11. STAT / NUMBER DISPLAY
   ============================================================ */
.stat-number {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 64px);
  color: var(--c-teal);
  line-height: 1;
  display: block;
}

.stat-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--c-gray);
  margin-top: 6px;
  line-height: 1.5;
}

/* ============================================================
   12. ICON CIRCLE
   ============================================================ */
.icon-circle {
  width: 52px;
  height: 52px;
  background: var(--c-teal-dim);
  border: 1px solid var(--c-teal-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 22px;
}

.icon-circle--filled {
  background: var(--c-teal);
}

.icon-circle--sm {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.icon-circle--lg {
  width: 72px;
  height: 72px;
  font-size: 32px;
}

/* ============================================================
   13. STEP / PROCESS NUMBERS
   ============================================================ */
.step-badge {
  width: 48px;
  height: 48px;
  background: var(--c-teal);
  color: var(--c-navy);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-badge--outline {
  background: var(--c-navy);
  border: 1px solid var(--c-teal);
  color: var(--c-teal);
}

.step-badge--outline::before {
  content: '';
  position: absolute;
  inset: 5px;
  background: var(--c-teal-dim);
}

/* Vertical connector line between steps */
.step-connector {
  position: relative;
  padding-bottom: var(--space-lg);
}

.step-connector::before {
  content: '';
  position: absolute;
  left: 23px;
  top: 48px;
  bottom: 0;
  width: 1px;
  background: var(--c-teal-border);
}

.step-connector:last-child::before { display: none; }

/* ============================================================
   14. COMPARISON TABLE
   ============================================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
}

.compare-table thead th {
  padding: 16px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--c-teal-border);
}

.compare-table th.col-feature { color: var(--c-gray); }
.compare-table th.col-bad     { color: var(--c-red-soft); }
.compare-table th.col-good    {
  color: var(--c-teal);
  background: var(--c-teal-dim);
}

.compare-table tbody tr {
  border-bottom: 1px solid rgba(0, 201, 177, 0.06);
  transition: background var(--trans-fast);
}

.compare-table tbody tr:hover { background: rgba(0, 201, 177, 0.03); }

.compare-table td {
  padding: 18px 24px;
  font-size: 14px;
  vertical-align: middle;
  line-height: 1.5;
}

.compare-table td.col-feature { color: var(--c-gray); }
.compare-table td.col-bad     { color: #FF7070; }
.compare-table td.col-good    {
  color: var(--c-teal);
  font-weight: 500;
  background: var(--c-teal-dim);
}

/* ============================================================
   15. NAVIGATION (Elementor Pro Header)
   ============================================================ */

/* Sticky header base */
.site-header,
.e-con.sticky-header,
#site-header {
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  background: rgba(11, 22, 40, 0.88) !important;
  border-bottom: 1px solid rgba(0, 201, 177, 0.1);
  transition: background var(--trans-med);
}

.site-header.scrolled {
  background: rgba(11, 22, 40, 0.97) !important;
}

/* Nav links */
.elementor-nav-menu a,
.elementor-nav-menu .elementor-item {
  font-family: var(--font-body) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: var(--c-gray-light) !important;
  letter-spacing: 0.3px;
  transition: color var(--trans-fast) !important;
}

.elementor-nav-menu a:hover,
.elementor-nav-menu .elementor-item:hover {
  color: var(--c-teal) !important;
}

/* Nav logo */
.site-logo,
.custom-logo-link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-white) !important;
  text-decoration: none;
}

/* ============================================================
   16. DIVIDERS
   ============================================================ */
.divider-teal {
  height: 1px;
  background: var(--c-teal-border);
  margin: var(--space-md) 0;
}

.divider-teal--thick {
  height: 2px;
  background: var(--c-teal);
}

/* ============================================================
   17. SCROLL REVEAL ANIMATIONS
      Add class="reveal" to any Elementor widget via Advanced > CSS Classes
      Visibility controlled by impactus-ai.js IntersectionObserver
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delay helpers — add alongside .reveal */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ============================================================
   18. GLOW EFFECTS
   ============================================================ */
.glow-teal {
  box-shadow: 0 0 40px rgba(0, 201, 177, 0.2), 0 0 80px rgba(0, 201, 177, 0.08);
}

.text-glow-teal {
  text-shadow: 0 0 30px rgba(0, 201, 177, 0.4);
}

/* ============================================================
   19. ORBIT / HERO VISUAL ANIMATION
   ============================================================ */
.orbit-ring {
  border-radius: 50%;
  border: 1px solid rgba(0, 201, 177, 0.18);
  animation: orbit-spin 20s linear infinite;
}
.orbit-ring:nth-child(2) { border-color: rgba(0, 201, 177, 0.1); animation-duration: 14s; animation-direction: reverse; }
.orbit-ring:nth-child(3) { border-color: rgba(0, 201, 177, 0.06); animation-duration: 9s; }

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

.float-anim { animation: float-up 5s ease-in-out infinite; }
.float-anim-2 { animation: float-up 6s ease-in-out infinite 1s; }
.float-anim-3 { animation: float-up 7s ease-in-out infinite 2s; }

@keyframes float-up {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

/* ============================================================
   20. TEAL RADIAL GLOW BACKGROUNDS
      Add to Elementor section via Advanced > CSS Classes
   ============================================================ */
.glow-bg-tl {
  position: relative;
  overflow: hidden;
}
.glow-bg-tl::before {
  content: '';
  position: absolute;
  top: -150px; right: -150px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0, 201, 177, 0.09) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.glow-bg-tl > * { position: relative; z-index: 1; }

.glow-bg-br::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0, 168, 150, 0.07) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ============================================================
   21. GHOST WATERMARK TEXT
   ============================================================ */
.watermark-text {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(100px, 15vw, 200px);
  color: rgba(0, 201, 177, 0.03);
  text-transform: uppercase;
  letter-spacing: -8px;
  pointer-events: none;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
  z-index: 0;
}

/* ============================================================
   22. PRICING TABLE BADGE
   ============================================================ */
.featured-badge {
  background: var(--c-teal);
  color: var(--c-navy);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  text-align: center;
  padding: 7px 16px;
  display: block;
  width: 100%;
}

/* ============================================================
   23. UTILITY CLASSES
   ============================================================ */
.text-teal    { color: var(--c-teal) !important; }
.text-gold    { color: var(--c-gold) !important; }
.text-gray    { color: var(--c-gray) !important; }
.text-white   { color: var(--c-white) !important; }
.text-navy    { color: var(--c-navy) !important; }

.bg-teal      { background-color: var(--c-teal) !important; }
.bg-navy      { background-color: var(--c-navy) !important; }
.bg-navy2     { background-color: var(--c-navy2) !important; }
.bg-offwhite  { background-color: var(--c-offwhite) !important; }

.font-display { font-family: var(--font-display) !important; }
.font-body    { font-family: var(--font-body) !important; }
.font-900     { font-weight: 900 !important; }
.font-700     { font-weight: 700 !important; }
.uppercase    { text-transform: uppercase !important; }
.tracked-wide { letter-spacing: 3px !important; }

.border-teal  { border-color: var(--c-teal) !important; }
.border-left-teal { border-left: 3px solid var(--c-teal) !important; }
.border-top-teal  { border-top: 2px solid var(--c-teal) !important; }

.clip-angled {
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

.no-radius { border-radius: 0 !important; }

/* ============================================================
   24. ELEMENTOR WIDGET OVERRIDES
   ============================================================ */

/* Icon Box */
.elementor-widget-icon-box .elementor-icon-box-title {
  font-family: var(--font-display) !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.elementor-widget-icon-box .elementor-icon-box-description {
  font-family: var(--font-body) !important;
  color: var(--c-gray) !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
}

/* Icon List */
.elementor-widget-icon-list .elementor-icon-list-text {
  font-family: var(--font-body) !important;
  font-size: 14px !important;
  color: var(--c-gray-light) !important;
}

/* Progress bar / counter */
.elementor-widget-counter .elementor-counter-number-wrapper {
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  color: var(--c-teal) !important;
}

/* Divider widget */
.elementor-widget-divider .elementor-divider-separator {
  border-color: var(--c-teal-border) !important;
}

/* ============================================================
   25. RESPONSIVE OVERRIDES
   ============================================================ */
@media (max-width: 1024px) {
  h1 { font-size: clamp(44px, 7vw, 72px); }
  h2 { font-size: clamp(34px, 5.5vw, 56px); }
}

@media (max-width: 767px) {
  h1 { font-size: clamp(40px, 10vw, 60px); }
  h2 { font-size: clamp(32px, 8vw, 48px); }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .compare-table { font-size: 12px; }
  .compare-table th,
  .compare-table td { padding: 12px 10px; }

  .watermark-text { display: none; }
}
