/*
 * Global Stylesheet — D2C Theme
 * File: /wp-content/themes/YOUR-THEME/assets/css/global.css
 * Enqueued via functions.php using wp_enqueue_style()
 *
 * This file contains ALL global styles shared across every page:
 * — CSS variables (colors, fonts, spacing, radius, shadows)
 * — Base reset
 * — Typography (h1–h6, p, a, lists)
 * — Container / layout system
 * — Buttons
 * — Utility classes
 * — Responsive breakpoints
 *
 * HOW TO USE:
 * 1. Enqueue this file in functions.php (see implementation guide below)
 * 2. On any page, just use the classes: .container, .btn, .btn-primary, etc.
 * 3. Page-specific styles go in their OWN file (e.g. d2c-grow.css)
 */


/* ================================================
   1. CSS VARIABLES — Single source of truth
   Change here → updates the entire site
================================================ */
:root {

  /* --- Brand Colors --- */
  --accent:          #f76500;
  --accent-dim:      rgba(247, 101, 0, 0.15);
  --accent-glow:     rgba(247, 101, 0, 0.4);
  --accent-hover:    #ff7a1a;

  /* --- Text Colors --- */
  --text:            #ffffff;
  --text-muted:      rgba(255, 255, 255, 0.5);
  --text-dim:        rgba(255, 255, 255, 0.75);

  /* --- Backgrounds --- */
  --bg:              #0b0c15;
  --bg2:             #12131d;
  --bg3:             #1a1b28;

  /* --- Borders --- */
  --border:          rgba(255, 255, 255, 0.07);
  --border-accent:   rgba(247, 101, 0, 0.3);

  /* --- Glass / Surfaces --- */
  --glass:           rgba(255, 255, 255, 0.03);
  --glass-hover:     rgba(255, 255, 255, 0.06);

  /* --- Shadows --- */
  --shadow-accent:   0 0 60px rgba(247, 101, 0, 0.15);
  --shadow-card:     0 20px 60px rgba(0, 0, 0, 0.3);

  /* --- Radius --- */
  --radius:          16px;
  --radius-lg:       24px;
  --radius-full:     100px;

  /* --- Typography --- */
  --font-body:       'Onest', sans-serif;
  --font-heading:    'Outfit', sans-serif;

  /* --- Spacing Scale --- */
  --space-xs:        8px;
  --space-sm:        16px;
  --space-md:        24px;
  --space-lg:        40px;
  --space-xl:        64px;
  --space-2xl:       96px;
  --space-3xl:       120px;

  /* --- Container --- */
  --container-width: 1250px;
  --container-pad:   40px;
}


/* ================================================
   2. BASE RESET
================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 32.5px;
  color: var(--text);
  background-color: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

ul,
ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}


/* ================================================
   3. TYPOGRAPHY — h1 through h6
================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

/* Desktop heading sizes */
h1 { font-size: clamp(42px, 6vw,  82px); font-weight: 800; }
h2 { font-size: clamp(32px, 4vw,  56px); font-weight: 700; }
h3 { font-size: clamp(24px, 3vw,  40px); font-weight: 700; }
h4 { font-size: clamp(20px, 2vw,  28px); font-weight: 700; }
h5 { font-size: clamp(17px, 1.5vw, 22px); font-weight: 600; }
h6 { font-size: clamp(15px, 1.2vw, 18px); font-weight: 600; }

/* Paragraph */
p {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 68ch; /* keeps long text readable */
}

p + p {
  margin-top: 1em;
}

/* Lead / intro paragraph */
.lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-dim);
}

/* Small / caption text */
small,
.text-sm {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Accent / highlight text */
.text-accent  { color: var(--accent); }
.text-muted   { color: var(--text-muted); }
.text-dim     { color: var(--text-dim); }
.text-white   { color: var(--text); }

/* Alignment utilities */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }


/* ================================================
   4. SECTION LABEL (eyebrow text above headings)
================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}


/* ================================================
   5. CONTAINER / LAYOUT
================================================ */

/* Main centered container */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

/* Sections get comfortable vertical padding by default */
section {
  width: 100%;
  padding-top: var(--space-2xl);
  padding-bottom: var(--space-2xl);
  position: relative;
}

/* Section divider line */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 80px auto;
  max-width: 800px;
}


/* ================================================
   6. BUTTONS
================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

/* Primary — filled orange */
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 30px rgba(247, 101, 0, 0.4);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 0 50px rgba(247, 101, 0, 0.6);
}

/* Ghost — transparent with border */
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* Sizes */
.btn-sm {
  padding: 10px 20px;
  font-size: 13px;
}

.btn-lg {
  padding: 18px 40px;
  font-size: 17px;
}


/* ================================================
   7. CARDS — Base card style reused everywhere
================================================ */
.card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-accent);
  background: var(--glass-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card), var(--shadow-accent);
}


/* ================================================
   8. SCROLL REVEAL ANIMATIONS
================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }


/* ================================================
   9. UTILITY CLASSES
================================================ */

/* Spacing helpers */
.mt-sm  { margin-top: var(--space-sm); }
.mt-md  { margin-top: var(--space-md); }
.mt-lg  { margin-top: var(--space-lg); }
.mt-xl  { margin-top: var(--space-xl); }
.mb-sm  { margin-bottom: var(--space-sm); }
.mb-md  { margin-bottom: var(--space-md); }
.mb-lg  { margin-bottom: var(--space-lg); }
.mb-xl  { margin-bottom: var(--space-xl); }

/* Flex helpers */
.flex           { display: flex; }
.flex-center    { display: flex; align-items: center; justify-content: center; }
.flex-between   { display: flex; align-items: center; justify-content: space-between; }
.flex-wrap      { flex-wrap: wrap; }
.gap-sm         { gap: var(--space-sm); }
.gap-md         { gap: var(--space-md); }
.gap-lg         { gap: var(--space-lg); }

/* Display */
.hidden         { display: none !important; }
.sr-only        { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }


/* ================================================
   10. RESPONSIVE BREAKPOINTS
================================================ */

/* Tablet — max 1240px: container goes fluid */
@media (max-width: 1240px) {
  .container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
  }
}

/* Tablet — max 900px */
@media (max-width: 900px) {
  section {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  :root {
    --container-pad: 20px;
  }
}

/* Mobile — max 768px */
@media (max-width: 768px) {
  body {
    font-size: 17px;
    line-height: 28px;
  }

  h1 { font-size: clamp(32px, 8vw, 52px); }
  h2 { font-size: clamp(26px, 6vw, 40px); }
  h3 { font-size: clamp(22px, 5vw, 30px); }
  h4 { font-size: clamp(18px, 4vw, 24px); }
  h5 { font-size: 18px; }
  h6 { font-size: 16px; }

  p  { font-size: 16px; }

  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* Small mobile — max 480px */
@media (max-width: 480px) {
  .btn { width: 100%; justify-content: center; }
}
/* gradient */
.d2c-stats__heading-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #ff9940 55%, #b06aff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Rainbow cards */
.d2c-svc-card {
  background: var(--bg);
  padding: 40px 32px;
  position: relative;
  cursor: default;
  transition: background 0.3s;
}

.d2c-svc-card:hover { background: #111116; }

/* Rainbow glow border on hover */
.d2c-svc-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    #f76500, #ff4499, #9b59ff,
    #3b82f6, #06b6d4, #10b981, #f76500
  );
  background-size: 300% 300%;
  animation: d2c-rainbow 4s linear infinite;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s ease;
  border-radius: 4px;
}

.d2c-svc-card:hover::before { opacity: 1; }

.d2c-svc-card::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg);
  border-radius: 2px;
  z-index: 0;
  transition: background 0.3s;
}

.d2c-svc-card:hover::after { background: #111116; }

@keyframes d2c-rainbow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.d2c-svc-card__inner {
  position: relative;
  z-index: 1;
}

.flexcenterdiv
 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.pm-hero__heading-accent
 {
    background: linear-gradient(135deg, var(--accent) 0%, #ff9940 50%, #b06aff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}