/* Theme Global Styles - Hallgeir Gustavsen Design System */
:root {
  /* ─── Brand teal palette ──────────────────────────── */
  --teal-900: #092724;
  --teal-800: #0e3733;
  --teal-700: #144a45;
  --teal-100: #dcebe8;
  --teal-050: #eef6f4;

  /* Bokeh service colors — one per service area */
  --bokeh-blue: #1e63d6; /* Markedsføring */
  --bokeh-green: #1fd683; /* Performance   */
  --bokeh-pink: #e94b6e; /* Blogg         */
  --bokeh-orange: #f89a3a; /* Innhold       */
  --bokeh-emerald: #1ab58e; /* Support       */
  --bokeh-cyan: #1fa8e0; /* AI / KI       */
  --bokeh-purple: #7b3fd6; /* Arbeidsflyt   */
  --bokeh-gold: #e6a23a; /* Strategi / HubSpot */

  /* Ink / neutral scale */
  --ink-900: #0a1f1d;
  --ink-700: #2e3f3d;
  --ink-500: #5c6e6b;
  --ink-300: #98a6a3;
  --ink-100: #e2e8e7;
  --ink-050: #f2f5f4;

  /* Surface tokens */
  --bg: #fbfbf8;
  --paper: #ffffff;

  /* Semantic status */
  --success: #1fb077;
  --warn: #e6a23a;
  --error: #dc4b47;

  /* ─── Legacy / compat aliases ─────────────────────── */
  --primary-color: #092724;
  --primary-dark: #0e3733;
  --primary-light: #144a45;
  --primary-soft: #dcebe8;

  /* Accent: bokeh-orange replaces old lime green */
  --accent-color: #f89a3a;
  --accent-hover: #f8ac5a;
  --accent-dark: #d4832a;
  --accent-warm: #f89a3a;
  --accent-sky: #1fa8e0;

  --background-light: #fbfbf8;
  --background-cream: #eef6f4;
  --background-white: #ffffff;
  --surface-color: #ffffff;

  /* Text Colors */
  --text-dark: #0a1f1d;
  --text-body: #2e3f3d;
  --text-muted: #5c6e6b;
  --text-light: #98a6a3;
  --text-white: #ffffff;

  /* Module surfaces: set on section roots so headings/body inherit contrast */
  --module-heading-color: var(--ink-900);
  --module-body-color: var(--ink-700);

  /* Border Colors */
  --border-light: #e2e8e7;
  --border-medium: #98a6a3;
  --border-dark: #5c6e6b;

  /* Status Colors */
  --success-color: #1fb077;
  --warning-color: #e6a23a;
  --error-color: #dc4b47;
  --info-color: #1fa8e0;

  /* Typography */
  --font-family-base: 'Manrope', 'Manrope Fallback', 'Avenir Next', 'Segoe UI',
    sans-serif;
  --font-family-heading: 'Manrope', 'Manrope Fallback', 'Avenir Next',
    'Segoe UI', sans-serif;
  --font-family-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;

  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: clamp(2rem, 3.2vw, 2.75rem);
  --font-size-5xl: clamp(2.5rem, 5vw, 4.25rem);
  --font-size-6xl: clamp(3rem, 7vw, 6.25rem);
  --font-size-7xl: clamp(4rem, 9vw, 8rem);

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.2;
  --line-height-snug: 1.4;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.8;

  /* Spacing Scale */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-5: 1.5rem; /* 24px */
  --space-6: 2rem; /* 32px */
  --space-8: 3rem; /* 48px */
  --space-10: 4rem; /* 64px */
  --space-12: 5rem; /* 80px */
  --space-16: 6rem; /* 96px */
  --space-20: 8rem; /* 128px */
  --space-24: 10rem; /* 160px */

  --section-padding-sm: var(--space-12); /* 80px */
  --section-padding-md: var(--space-16); /* 96px */
  --section-padding-lg: var(--space-20); /* 128px */
  --section-padding-xl: var(--space-24); /* 160px */

  /* Container — slightly tighter default for editorial / premium rhythm */
  --container-max-width: 1160px;
  --container-padding: var(--space-6);

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows - crisp editorial depth */
  --shadow-xs: 0 1px 0 rgba(16, 44, 42, 0.08);
  --shadow-sm: 0 2px 8px rgba(16, 44, 42, 0.06);
  --shadow-md: 0 10px 28px rgba(16, 44, 42, 0.08);
  --shadow-lg: 0 18px 48px rgba(16, 44, 42, 0.12);
  --shadow-xl: 0 28px 70px rgba(16, 44, 42, 0.16);
  --shadow-2xl: 0 40px 90px rgba(16, 44, 42, 0.22);
  --shadow-inkline: 0 0 0 1px rgba(16, 44, 42, 0.08);

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-blur: 20px;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --transition-base: 320ms var(--ease-out-expo);
  /* Brand timing scale (§11 Motion) */
  --t-fast: 120ms;
  --t-base: 240ms;
  --t-slow: 480ms;
  --t-ambient: 8000ms;
  --module-section-y: clamp(5.5rem, 10vw, 12rem);
  --module-gutter: clamp(1rem, 3vw, 3.5rem);

  /* Z-Index Scale */
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal: 1050;
}

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

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

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--text-body);
  background: var(--bg);
}

.body-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header shell — background, blur, and sticky behavior come from the global Header module */
.theme-header {
  width: 100%;
  z-index: var(--z-sticky);
  background: transparent;
  border-bottom: none;
}

/* Main Content */
.theme-main {
  flex: 1;
  width: 100%;
  background: var(--background-light);
}

.theme-main > .container-fluid {
  padding-left: 0;
  padding-right: 0;
  max-width: none;
}

/* Mobile bottom dock — keep page actions above the floating nav pill */
@media (max-width: 768px) {
  body[data-mobile-nav='dock'] .body-wrapper {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 88px);
  }

  #hg-mobile-menu-portal [data-mobile-menu-dock] {
    z-index: var(--z-fixed, 1030);
  }

  #hg-mobile-menu-portal [data-mobile-menu-sheet],
  #hg-mobile-menu-portal [data-mobile-menu-backdrop] {
    z-index: calc(var(--z-fixed, 1030) - 1);
  }

  [data-hg-modenhetstest-slot='true'] {
    scroll-margin-bottom: calc(env(safe-area-inset-bottom, 0px) + 6rem);
  }
}

/* Container System */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

.container-fluid {
  width: 100%;
  padding: 0 var(--container-padding);
}

.container-narrow {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.container-wide {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Section Spacing */
.section {
  padding: var(--section-padding-md) 0;
}

.section-sm {
  padding: var(--section-padding-sm) 0;
}

.section-lg {
  padding: var(--section-padding-lg) 0;
}

.section-xl {
  padding: var(--section-padding-xl) 0;
}

/* Footer Styles */
.theme-footer {
  background-color: var(--primary-dark);
  color: var(--text-white);
  width: 100%;
  margin-top: auto;
}

/* Typography System */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  line-height: 1.05;
  color: var(--module-heading-color, var(--ink-900));
  margin: 0 0 var(--space-5) 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 {
  font-size: var(--font-size-6xl);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.035em;
}

h2 {
  font-size: var(--font-size-5xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.025em;
}

h3 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

h4 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.015em;
}

h5 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
}

h6 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
}

p {
  margin: 0 0 var(--space-4) 0;
  font-size: var(--font-size-lg);
  line-height: 1.72;
  color: var(--module-body-color, var(--text-body));
  text-wrap: pretty;
}

.text-large {
  font-size: var(--font-size-xl);
  line-height: var(--line-height-relaxed);
}

.text-small {
  font-size: var(--font-size-sm);
}

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

/* Links */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--primary-light);
}

/* Button System — pill form, design system spec */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition-base),
    color var(--transition-base), border-color var(--transition-base),
    box-shadow var(--transition-base), transform var(--transition-base);
  white-space: nowrap;
  user-select: none;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-accent {
  background-color: var(--accent-color);
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
  font-weight: var(--font-weight-bold);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-accent:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.btn-ghost {
  background-color: transparent;
  color: var(--primary-color);
}

.btn-ghost:hover {
  background-color: rgba(26, 77, 77, 0.1);
}

.btn-large {
  padding: var(--space-5) var(--space-8);
  font-size: var(--font-size-lg);
}

.btn-small {
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-sm);
}

.btn-full {
  width: 100%;
}

/* HubSpot rich-text button override — pill form, on-brand */
.hs-button,
a.hs-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: 1;
  text-decoration: none;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  background-color: var(--primary-color);
  color: var(--text-white);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition-base),
    box-shadow var(--transition-base), transform var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.hs-button:hover,
a.hs-button:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hs-button--secondary,
a.hs-button--secondary {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.hs-button--secondary:hover,
a.hs-button--secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.hs-button--outline,
a.hs-button--outline {
  background-color: transparent;
  border-color: currentColor;
  color: inherit;
}

/* Card System - Modern, Premium */
.card {
  background-color: var(--surface-color);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-md);
  transition: box-shadow var(--transition-base),
    transform var(--transition-base), border-color var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-4px);
}

.card-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--space-6);
}

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

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

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

.bg-primary {
  background-color: var(--primary-color);
}

.bg-accent {
  background-color: var(--accent-color);
}

.bg-cream {
  background-color: var(--background-cream);
}

.bg-white {
  background-color: var(--background-white);
}

/* Responsive Typography */
@media (max-width: 1024px) {
  h1 {
    font-size: var(--font-size-5xl);
  }

  h2 {
    font-size: var(--font-size-4xl);
  }

  h3 {
    font-size: var(--font-size-3xl);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding-sm: var(--space-10);
    --section-padding-md: var(--space-12);
    --section-padding-lg: var(--space-16);
    --container-padding: var(--space-4);
  }

  h1 {
    font-size: var(--font-size-4xl);
  }

  h2 {
    font-size: var(--font-size-3xl);
  }

  h3 {
    font-size: var(--font-size-2xl);
  }

  h4 {
    font-size: var(--font-size-xl);
  }

  p {
    font-size: var(--font-size-base);
  }

  .grid-cols-2,
  .grid-cols-3,
  .grid-cols-4 {
    grid-template-columns: 1fr;
  }

  .btn-large {
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-base);
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: var(--font-size-3xl);
  }

  h2 {
    font-size: var(--font-size-2xl);
  }
}

/* HubSpot Column Width Overrides */
/* Force Columns to use 100% width instead of fixed pixel widths */
.dnd-column,
.widget-type-cell,
[data-widget-type='cell'] {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

/* Ensure modules inside Columns use full width */
.dnd-column > *,
.widget-type-cell > *,
[data-widget-type='cell'] > * {
  width: 100% !important;
  max-width: 100% !important;
}

/* Override HubSpot's row-fluid-wrapper constraints */
.row-fluid-wrapper {
  width: 100% !important;
  max-width: 100% !important;
}

/* Ensure Sections use full width when set to full width */
.dnd_section[data-content-alignment='full-width'] .row-fluid-wrapper,
.dnd_section[data-content-alignment='full-width'] .dnd-column {
  width: 100% !important;
  max-width: 100% !important;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-left {
  animation: slideInFromLeft 0.6s ease-out;
}

.animate-slide-in-right {
  animation: slideInFromRight 0.6s ease-out;
}

/* ==========================================
   ENHANCEMENT UTILITIES - Modern Patterns
   ========================================== */

/* Gradient Accent Bars - Appears on hover */
.accent-bar-top {
  position: relative;
  overflow: hidden;
}

.accent-bar-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.accent-bar-top:hover::before {
  opacity: 1;
}

/* Enhanced Card Hover Effects */
.card-hover {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-2xl);
}

/* Glass Morphism Effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.2);
}

.glass-light {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-medium {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-strong {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* Enhanced Button Animations */
.btn-shimmer {
  position: relative;
  overflow: hidden;
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 200%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.6s ease;
}

.btn-shimmer:hover::after {
  left: 100%;
}

/* Image Enhancement */
.image-modern {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  transition: transform 0.4s ease;
}

.image-modern:hover {
  transform: scale(1.05);
}

/* Circular Icon Badge */
.icon-badge {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-light);
  border-radius: 50%;
  color: var(--accent-color);
  font-size: 28px;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.icon-badge:hover {
  background: var(--accent-color);
  color: var(--text-dark);
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* Social Link Badges */
.social-badge {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--background-light);
  color: var(--text-body);
  border-radius: 50%;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-badge:hover {
  background: var(--accent-color);
  color: var(--text-dark);
  border-color: var(--accent-color);
  transform: translateY(-3px) scale(1.1);
  box-shadow: var(--shadow-lg);
}

/* Gradient Text Effect */
.gradient-text {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Entrance Animations with Delays */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.animate-delay-1 {
  animation-delay: 0.1s;
  animation-fill-mode: backwards;
}
.animate-delay-2 {
  animation-delay: 0.2s;
  animation-fill-mode: backwards;
}
.animate-delay-3 {
  animation-delay: 0.3s;
  animation-fill-mode: backwards;
}
.animate-delay-4 {
  animation-delay: 0.4s;
  animation-fill-mode: backwards;
}
.animate-delay-5 {
  animation-delay: 0.5s;
  animation-fill-mode: backwards;
}

/* Loading States */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--background-light);
  border-top: 4px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Pulse Animation for Badges */
@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(248, 154, 58, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(248, 154, 58, 0);
  }
}

.pulse-badge {
  animation: pulse 2s ease-in-out infinite;
}

/* Enhanced Shadow on Hover */
.hover-shadow {
  transition: box-shadow 0.3s ease;
}

.hover-shadow:hover {
  box-shadow: var(--shadow-2xl);
}

/* Text Styles */
.text-gradient {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    var(--primary-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

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

/* Floating Elements for Backgrounds */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-30px);
  }
}

.floating-element {
  animation: float 6s ease-in-out infinite;
}

/* Responsive Utilities */
@media (max-width: 768px) {
  .card-hover:hover {
    transform: translateY(-4px) scale(1.01);
  }

  .icon-badge {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }
}

/* --------------------------------------------------------------------------
   Module surface polish — shared rhythm for HubSpot-rendered sections
   (moved from Header bundle so global styles load from one place)
   -------------------------------------------------------------------------- */
:where(
    .section,
    .accordionSection,
    .anchorLinks,
    .cardArticlesSection,
    .cardTestimonialSection,
    .carouselTestimonialSection,
    .contactIconsSection,
    .content,
    .ctaWrapper,
    .faqSection,
    .fullScreenVideo,
    .glassCardGrid,
    .gridLayout,
    .headline,
    .iconBox,
    .iconColumnsSection,
    .imageBox,
    .imageThreeColumnsSection,
    .latestArticlesSection,
    .leftImageRightContent,
    .listSection,
    .logoBarSection,
    .pricingSection,
    .rightContentLeftImage,
    .searchInputWrapper,
    .sectionCtaForm,
    .statsSection,
    .teamSection,
    .testimonialSection,
    .timeline-container,
    .video-container
  ) {
  container-type: inline-size;
  padding-block: var(--module-section-y, clamp(5rem, 9vw, 10rem));
}

/* Skip rendering off-screen module sections — improves TTI and paint cost */
:where(
    .accordionSection,
    .cardArticlesSection,
    .cardTestimonialSection,
    .carouselTestimonialSection,
    .contactIconsSection,
    .faqSection,
    .fullScreenVideo,
    .glassCardGrid,
    .iconColumnsSection,
    .imageThreeColumnsSection,
    .latestArticlesSection,
    .leftImageRightContent,
    .listSection,
    .logoBarSection,
    .pricingSection,
    .rightContentLeftImage,
    .sectionCtaForm,
    .statsSection,
    .teamSection,
    .testimonialSection,
    .timeline-container,
    .video-container
  ) {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

:where(.container) {
  padding-inline: var(--module-gutter, clamp(1rem, 3vw, 3rem));
}

:where(
    .card,
    .columnCard,
    .statItem,
    .testimonialSlide,
    .testimonialCard,
    .pricingCard,
    .teamMember,
    .featureCard,
    .iconColumn,
    .iconBoxInner,
    .faqItem,
    .accordionItem,
    .contactItem,
    .articleCard,
    .logo-item,
    .timeline-content,
    .video-wrapper,
    .imageWrapper,
    .searchForm
  ) {
  border-radius: var(--radius-xl, 16px);
  border: 1px solid
    color-mix(in srgb, var(--border-light, #e5ddcb) 72%, transparent);
  box-shadow: var(--shadow-inkline, 0 0 0 1px rgba(16, 44, 42, 0.08));
  transition: transform
      var(--transition-base, 320ms cubic-bezier(0.16, 1, 0.3, 1)),
    box-shadow var(--transition-base, 320ms cubic-bezier(0.16, 1, 0.3, 1)),
    border-color var(--transition-base, 320ms cubic-bezier(0.16, 1, 0.3, 1));
}

:where(
    .card,
    .columnCard,
    .statItem,
    .testimonialSlide,
    .testimonialCard,
    .pricingCard,
    .teamMember,
    .featureCard,
    .iconColumn,
    .faqItem,
    .accordionItem,
    .contactItem,
    .articleCard,
    .logo-item
  ):hover {
  transform: translateY(-4px);
  border-color: color-mix(
    in srgb,
    var(--accent-color, #f89a3a) 48%,
    var(--border-light, #e5ddcb)
  );
  box-shadow: var(--shadow-lg, 0 18px 48px rgba(16, 44, 42, 0.12));
}

:where(
    .button,
    .btn,
    .cta,
    .ctaButton,
    .cardLink,
    .columnLink,
    .featureLink,
    .notificationCta
  ) {
  border-radius: var(--radius-md, 10px);
  font-weight: 800;
  letter-spacing: 0;
}

:where(
    .title,
    .sectionTitle,
    .contentTitle,
    .headline,
    .ctaTitle,
    .statValue,
    .cardTitle,
    .columnTitle,
    .featureTitle,
    .testimonialQuote
  ) {
  font-family: var(--font-family-heading, Georgia, serif);
  letter-spacing: 0;
  text-wrap: balance;
}

:where(
    .description,
    .sectionDescription,
    .contentText,
    .cardText,
    .columnText,
    .featureDescription,
    .testimonialText,
    .statLabel
  ) {
  line-height: 1.68;
  text-wrap: pretty;
}

:where(.eyebrow, .subtitle, .subheadline, .cardTag, .sectionEyebrow) {
  color: var(--primary-light, #2e6f68);
  font-family: var(--font-family-base, sans-serif);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: var(--font-size-xs, 0.75rem);
}

:where(img, video, iframe) {
  max-width: 100%;
}

@container (max-width: 640px) {
  :where(.container) {
    padding-inline: clamp(1rem, 5vw, 1.5rem);
  }

  :where(
      .card,
      .columnCard,
      .statItem,
      .pricingCard,
      .testimonialSlide,
      .featureCard
    ) {
    border-radius: var(--radius-lg, 12px);
  }
}

/* Scroll-reveal utility (§11 Motion — fade + translate, never bounce) */
.js-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-base) var(--ease-out-expo),
    transform var(--t-base) var(--ease-out-expo);
}
.js-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.js-reveal[data-delay='1'] {
  transition-delay: 80ms;
}
.js-reveal[data-delay='2'] {
  transition-delay: 160ms;
}
.js-reveal[data-delay='3'] {
  transition-delay: 240ms;
}
.js-reveal[data-delay='4'] {
  transition-delay: 320ms;
}

@media (prefers-reduced-motion: reduce) {
  :where(*) {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  .js-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
