/*
Theme Name: Dev Marketing Flow 2026
Theme URI: https://devmarketingflow.com
Author: DevMarketingFlow
Description: DevMarketingFlow — Stop Chasing Clients. Build The System That Makes Them Find You.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: devmarketingflow
*/

/* ============================================
   CROSS-BROWSER COLOR CONSISTENCY
   ─────────────────────────────────────────────
   All color values are defined as sRGB hex.
   sRGB hex is the CSS baseline — every browser
   renders it identically. We avoid oklch, lch,
   lab, and named colors which can vary.

   color-scheme: dark  →  tells the browser this
   is a dark UI so it does not inject light-mode
   defaults into form fields, scrollbars, or
   system UI overlays.

   forced-colors guard  →  preserves layout on
   Windows High Contrast / Forced Colours mode.

   print-color-adjust: exact  →  ensures colours
   are not washed out in print / PDF export.
   ============================================ */

/* ============================================
   CSS CUSTOM PROPERTIES — BRAND PALETTE
   All values are neutral sRGB hex — no blue
   undertones that Chromium-based browsers can
   amplify. Grays were re-neutralised after the
   original image-extracted values (#141A21,
   #1D2530, #6B7885) showed blue cast in AVG /
   Chrome. Replaced with channel-balanced neutrals.
   ─────────────────────────────────────────────
   --black      #0C0C0C  near-black (neutral)
   --accent     #4AFF00  vivid lime green (brand hero)
   --white      #F2F0F0  warm near-white
   --gray       #161616  card surface (neutral dark)
   --gray-mid   #222222  hover / elevated surface (neutral)
   --gray-light #888888  muted text, labels (neutral mid-gray)
   --border     rgba(255,255,255,0.07)

   RGBA companions (for opacity variants):
   --accent-rgb  74, 255, 0
   --black-rgb   12, 12, 12
   ============================================ */
:root {
  /* Core palette — all neutral sRGB, no blue cast */
  --black:      #0C0C0C;
  --accent:     #4AFF00;
  --white:      #F2F0F0;
  --gray:       #161616;
  --gray-mid:   #222222;
  --gray-light: #888888;
  --border:     rgba(255,255,255,0.07);

  /* RGB triplets — used for rgba() calls */
  --accent-rgb: 74, 255, 0;
  --black-rgb:  12, 12, 12;

  /* Tell every browser: ONLY dark — no auto-dark hue rotation (Chrome fix) */
  color-scheme: only dark;

  /* Ensure colours render in print / PDF */
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/*
  Hardcoded hex on html + body guarantees the
  correct colours even if WordPress injects a
  global-styles block that redefines our CSS vars.
  Both values use the sRGB brand palette — identical
  on every browser that renders sRGB correctly.
*/
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: #0C0C0C;
  color: #F2F0F0;
}

body {
  background-color: #0C0C0C;   /* --black hardcoded fallback */
  color: #F2F0F0;               /* --white hardcoded fallback */
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  /* sRGB colour space for all images */
  color-interpolation-filters: sRGB;
}

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

/* ============================================
   FOCUS RINGS — accessibility & keyboard nav
   ============================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ============================================
   GRID TEXTURE
   ============================================ */
.dmf-grid-bg {
  background-image:
    linear-gradient(rgba(var(--accent-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ============================================
   UTILITY
   ============================================ */
.accent {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 20px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 2rem;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  text-decoration: none;
}

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

.btn-primary {
  background: var(--accent);
  color: var(--black);
}

.btn-primary:hover {
  background: #7AFF33;
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.32);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: rgba(var(--accent-rgb), 0.07);
  border-color: rgba(var(--accent-rgb), 0.35);
  color: var(--white);
}

/* ============================================
   CARDS
   ============================================ */
.card {
  background: var(--gray);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.25s ease-out, background 0.25s ease-out;
}

.card:hover {
  border-color: rgba(var(--accent-rgb), 0.22);
  background: var(--gray-mid);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ============================================
   PULSE DOT
   ============================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  margin-right: 8px;
}

/* ============================================
   SECTION SPACING
   ============================================ */
.dmf-section {
  padding: 100px 0;
}

@media (max-width: 768px) {
  .dmf-section {
    padding: 72px 0;
  }
}

/* ============================================
   REDUCED MOTION — respect OS preference
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal,
  .reveal-stagger > *,
  .section-divider,
  .stage-line,
  .flow-arrow {
    opacity: 1;
    transform: none;
    animation: none !important;
    transition: none !important;
  }
}

/* ============================================
   FORCED-COLOR-ADJUST — prevent Chromium-based
   browsers (AVG Secure, Edge, Brave) from
   substituting brand colors with system colors.
   Applied unconditionally so the rule fires even
   outside Windows High Contrast mode.
   ============================================ */
.dmf-nav,
.dmf-hero,
.card,
.btn,
.btn-primary,
.btn-outline,
.section-label,
.accent,
.pulse-dot,
.flow-node,
.accordion-item,
.dmf-footer,
.stats-strip,
.hero-stat__number,
.stats-strip-num {
  forced-color-adjust: none;
}

/* ============================================
   FORCED COLOURS (Windows High Contrast)
   ============================================ */
@media (forced-colors: active) {
  .btn-primary {
    forced-color-adjust: none;
    background: var(--accent);
    color: var(--black);
    border: 2px solid ButtonText;
  }
  .card {
    forced-color-adjust: none;
    border: 1px solid ButtonText;
  }
}
