/* ============================================================
   COMPASS GLOBAL CSS
   Paste into: GoHighLevel > Site Settings > Custom CSS
   Do NOT add @import for fonts here — add the <link> tag
   in GHL > Site Settings > Head Tracking Code instead.
   ============================================================ */

/* --- Brand Tokens --- */
:root {
  --navy:        #1f355b;
  --blue:        #3d60a0;
  --light-blue:  #859ac1;
  --cream:       #eef3fa;
  --white:       #ffffff;
  --dark:        #0d1827;
  --text-muted:  #5a7090;
  --border:      rgba(61, 96, 160, 0.15);

  --font-headline: 'Montserrat', sans-serif;
  --font-body:     'Figtree', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-pill: 100px;

  --shadow-sm: 0 1px 3px rgba(13,24,39,0.08), 0 1px 2px rgba(13,24,39,0.06);
  --shadow-md: 0 4px 16px rgba(13,24,39,0.10), 0 2px 6px rgba(13,24,39,0.08);
  --shadow-lg: 0 12px 40px rgba(13,24,39,0.14), 0 4px 12px rgba(13,24,39,0.10);

  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Typography Scale --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headline);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--dark);
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem);  font-weight: 800; }
h2 { font-size: clamp(1.75rem, 4vw, 3rem);  font-weight: 700; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.875rem); font-weight: 700; }
h4 { font-size: clamp(1.1rem, 2vw, 1.5rem);  font-weight: 600; }

p {
  font-family: var(--font-body);
  line-height: 1.65;
}

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

.label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-blue);
}

/* --- Keyframes (12 total) ---
   aurora-drift, shine-sweep, marquee-scroll, column-scroll,
   accordion-open, accordion-close, loading-dots, fade-slide-up,
   shimmer, moving-border, gear-spin, chevron-bounce
   Note: hover float effects (cards, CTA) use CSS transition, not @keyframes.
   Note: count-up is JS-only DOM mutation — no keyframe needed.
*/

/* Hero aurora background drift */
@keyframes aurora-drift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Shine sweep on card borders */
@keyframes shine-sweep {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Logo cloud horizontal scroll */
@keyframes marquee-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Testimonial column vertical scroll */
@keyframes column-scroll {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

/* FAQ accordion open/close */
@keyframes accordion-open {
  from { max-height: 0; opacity: 0; }
  to   { max-height: 600px; opacity: 1; }
}

@keyframes accordion-close {
  from { max-height: 600px; opacity: 1; }
  to   { max-height: 0; opacity: 0; }
}

/* Hero loading dots */
@keyframes loading-dots {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40%            { opacity: 1;   transform: scale(1.0); }
}

/* General section entry (triggered by .is-visible via JS) */
@keyframes fade-slide-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Announcement bar shimmer */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Moving border button (background-position traversal) */
@keyframes moving-border {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Gear rotation on hover (announcement bar) */
@keyframes gear-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Scroll indicator chevron bounce */
@keyframes chevron-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50%       { transform: translateY(8px); opacity: 1; }
}

/* IntersectionObserver entry animation base state */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Layout Utilities --- */
.compass-section {
  width: 100%;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}

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

@media (max-width: 768px) {
  .compass-section { padding: 64px 0; }
  .compass-container { padding: 0 16px; }
}

/* --- Badge --- */
.compass-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(61, 96, 160, 0.08);
  border: 1px solid rgba(61, 96, 160, 0.2);
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.04em;
}

.compass-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* --- Buttons --- */
.compass-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: none;
  text-decoration: none;
}

.compass-btn-primary:hover {
  background: var(--blue);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.compass-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: rgba(61, 96, 160, 0.06);
  color: var(--blue);
  border: 1.5px solid rgba(61, 96, 160, 0.25);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), transform var(--transition);
  text-decoration: none;
}

.compass-btn-ghost:hover {
  background: rgba(61, 96, 160, 0.12);
  border-color: rgba(61, 96, 160, 0.45);
  transform: translateY(-1px);
}

/* Moving border button */
.compass-btn-moving-border {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px;
  border-radius: var(--radius-md);
  background: linear-gradient(
    90deg,
    #1f355b 0%,
    #3d60a0 22%,
    #c0d4ff 44%,
    #ffffff 50%,
    #c0d4ff 56%,
    #3d60a0 78%,
    #1f355b 100%
  );
  background-size: 300% 300%;
  animation: moving-border 2.5s linear infinite;
  text-decoration: none;
  cursor: pointer;
}

.compass-btn-moving-border-inner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 29px;
  background: var(--navy);
  border-radius: calc(var(--radius-md) - 3px);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: background var(--transition);
}

.compass-btn-moving-border:hover .compass-btn-moving-border-inner {
  background: var(--blue);
}

/* --- Card --- */
.compass-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

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

/* Shine border on hover */
.compass-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(61, 96, 160, 0.4),
    rgba(133, 154, 193, 0.6),
    rgba(61, 96, 160, 0.4),
    transparent
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--transition);
  animation: shine-sweep 2s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.compass-card:hover::before {
  opacity: 1;
}

/* Dot grid background utility */
.compass-dot-grid {
  background-image: radial-gradient(circle, rgba(61, 96, 160, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* Section headings block */
.compass-section-header {
  text-align: center;
  margin-bottom: 64px;
}

.compass-section-header h2 {
  margin-bottom: 16px;
}

.compass-section-header p {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* Video modal overlay */
.compass-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 24, 39, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.compass-modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.compass-modal-inner {
  width: min(860px, 90vw);
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  background: #000;
  box-shadow: var(--shadow-lg);
}

.compass-modal-inner iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.compass-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  color: rgba(255,255,255,0.7);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color var(--transition);
}

.compass-modal-close:hover {
  color: #fff;
}
