/*
Theme Name: Peak Performance Hub
Theme URI: https://peakperformancehub.com/
Description: Custom child theme for Peak Performance Hub — masculine performance/longevity telehealth aesthetic. Built on Hello Elementor with blaze-amber + gunmetal design system and dark mode.
Author: Peak Performance Hub
Author URI: https://peakperformancehub.com/
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Text Domain: pph
Tags: full-site-editing, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   PEAK PERFORMANCE HUB — DESIGN TOKENS
   Light: bone/concrete + charcoal + amber + gunmetal
   Dark : near-black gunmetal + amber glow + brass
   ============================================================ */

:root {
  /* ---------- LIGHT MODE (default) ---------- */
  --pph-bg:              #F3F0EA;
  --pph-bg-elevated:     #E9E5DD;
  --pph-bg-muted:        #DFD9CE;
  --pph-surface:         #FAF7F1;
  --pph-border:          #C9C2B3;

  --pph-text:            #0D0F12;
  --pph-text-secondary:  #2D3138;
  --pph-text-muted:      #5B6470;
  --pph-text-inverse:    #F3F0EA;

  --pph-accent:          #F25C1F;   /* BLAZE AMBER */
  --pph-accent-hover:    #D94A11;
  --pph-accent-2:        #2D3138;   /* GUNMETAL */
  --pph-accent-2-hover:  #0D0F12;
  --pph-accent-3:        #B8862C;   /* BRASS */

  --pph-shadow-sm:       0 1px 2px rgba(13, 15, 18, 0.06);
  --pph-shadow-md:       0 4px 16px rgba(13, 15, 18, 0.10);
  --pph-shadow-lg:       0 18px 44px rgba(13, 15, 18, 0.18);

  --pph-font-display:    "Oswald", "Inter", system-ui, sans-serif;
  --pph-font-body:       "Inter", system-ui, sans-serif;

  --pph-radius:          4px;
  --pph-radius-pill:     999px;

  --pph-container:       1240px;
  --pph-gutter:          clamp(1rem, 3vw, 2rem);
  --pph-section-y:       clamp(4rem, 8vw, 7rem);

  --pph-ease:            cubic-bezier(0.22, 1, 0.36, 1);
  --pph-base:            260ms;
}

[data-theme="dark"],
html[data-theme="dark"] body {
  --pph-bg:              #0D0F12;
  --pph-bg-elevated:     #14171C;
  --pph-bg-muted:        #1B1F25;
  --pph-surface:         #181C22;
  --pph-border:          #2A2F38;

  --pph-text:            #F2EFE9;
  --pph-text-secondary:  #BFB9AE;
  --pph-text-muted:      #7C8590;
  --pph-text-inverse:    #0D0F12;

  --pph-accent:          #FF6A2C;
  --pph-accent-hover:    #FF824D;
  --pph-accent-2:        #BFB9AE;
  --pph-accent-2-hover:  #F2EFE9;
  --pph-accent-3:        #D49A3A;

  --pph-shadow-sm:       0 0 0 1px rgba(255, 106, 44, 0.05);
  --pph-shadow-md:       0 8px 28px rgba(0, 0, 0, 0.55);
  --pph-shadow-lg:       0 24px 60px rgba(0, 0, 0, 0.7),
                         0 0 40px rgba(255, 106, 44, 0.10);
}

/* ============================================================
   BODY + TYPOGRAPHY DEFAULTS
   ============================================================ */
body {
  background: var(--pph-bg);
  color: var(--pph-text);
  font-family: var(--pph-font-body);
  -webkit-font-smoothing: antialiased;
  transition:
    background-color var(--pph-base) var(--pph-ease),
    color var(--pph-base) var(--pph-ease);
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: var(--pph-font-display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--pph-text);
}

h1, .elementor-widget-heading h1.elementor-heading-title { font-weight: 700; line-height: 0.95; }
h2, .elementor-widget-heading h2.elementor-heading-title { font-weight: 700; line-height: 1.0;  }
h3, .elementor-widget-heading h3.elementor-heading-title { font-weight: 700; line-height: 1.1;  }
h4, .elementor-widget-heading h4.elementor-heading-title { font-weight: 600; line-height: 1.2;  }

p { line-height: 1.65; color: var(--pph-text-secondary); }
a { color: var(--pph-accent); text-decoration: none; transition: color var(--pph-base) var(--pph-ease); }
a:hover { color: var(--pph-accent-hover); }

/* ============================================================
   ELEMENTOR BUTTON OVERRIDES
   Map Primary = blaze amber, Secondary = ghost
   ============================================================ */
.elementor-button {
  font-family: var(--pph-font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border-radius: var(--pph-radius);
  transition:
    transform var(--pph-base) var(--pph-ease),
    background-color var(--pph-base) var(--pph-ease),
    box-shadow var(--pph-base) var(--pph-ease),
    color var(--pph-base) var(--pph-ease);
}

.elementor-button:hover { transform: translateY(-2px); }

/* Primary CTA — give buttons class "pph-btn-primary" OR style via Site Settings */
.elementor-button-primary,
.elementor-button.pph-btn-primary {
  background: var(--pph-accent);
  color: #FFFFFF;
  box-shadow: var(--pph-shadow-md), inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
.elementor-button-primary:hover,
.elementor-button.pph-btn-primary:hover {
  background: var(--pph-accent-hover);
  box-shadow: var(--pph-shadow-lg), inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}

[data-theme="dark"] .elementor-button-primary,
[data-theme="dark"] .elementor-button.pph-btn-primary {
  box-shadow:
    0 0 0 1px rgba(255, 106, 44, 0.45),
    0 10px 28px rgba(255, 106, 44, 0.28),
    inset 0 -3px 0 rgba(0, 0, 0, 0.3);
}

/* Ghost button — give class "pph-btn-ghost" */
.elementor-button.pph-btn-ghost {
  background: transparent;
  color: var(--pph-text);
  border: 1px solid var(--pph-text);
}
.elementor-button.pph-btn-ghost:hover {
  background: var(--pph-text);
  color: var(--pph-bg);
}

/* ============================================================
   ELEMENTOR NAV MENU — amber underline animation
   ============================================================ */
.elementor-nav-menu .elementor-item {
  font-family: var(--pph-font-display);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.92rem;
  color: var(--pph-text-secondary);
  position: relative;
}

.elementor-nav-menu .elementor-item::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 2px;
  width: 0;
  background: var(--pph-accent);
  transition: width var(--pph-base) var(--pph-ease);
}

.elementor-nav-menu .elementor-item:hover::after,
.elementor-nav-menu .elementor-item-active::after {
  width: 100%;
}

.elementor-nav-menu .elementor-item:hover {
  color: var(--pph-text);
}

/* ============================================================
   EYEBROW PILL — apply class "pph-eyebrow" to a text widget
   ============================================================ */
.pph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--pph-border);
  border-radius: var(--pph-radius-pill);
  background: var(--pph-surface);
  font-family: var(--pph-font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pph-text-secondary);
}

.pph-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pph-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--pph-accent) 22%, transparent);
}

/* ============================================================
   HERO BACKDROP — apply class "pph-hero-bg" to a Section
   ============================================================ */
.pph-hero-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.pph-hero-bg::before {
  content: "";
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 600px at 12% -8%,
      color-mix(in srgb, var(--pph-accent) 16%, transparent), transparent 60%),
    radial-gradient(900px 600px at 100% 30%,
      color-mix(in srgb, var(--pph-text) 10%, transparent), transparent 60%);
}
.pph-hero-bg::after {
  content: "";
  position: absolute; inset: 0; z-index: -1; opacity: 0.4;
  background-image:
    linear-gradient(var(--pph-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--pph-border) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 75%);
}

/* ============================================================
   CARD STYLE — apply class "pph-card" to a Section / Inner Section
   ============================================================ */
.pph-card {
  background: var(--pph-surface);
  border: 1px solid var(--pph-border);
  border-radius: var(--pph-radius);
  padding: 2rem;
  transition:
    transform var(--pph-base) var(--pph-ease),
    box-shadow var(--pph-base) var(--pph-ease),
    border-color var(--pph-base) var(--pph-ease);
}
.pph-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pph-shadow-lg);
  border-color: var(--pph-accent);
}
.pph-card.pph-card-amber-stripe {
  border-left: 3px solid var(--pph-accent);
}

/* ============================================================
   TICKER MARQUEE — apply class "pph-ticker" to an HTML widget
   ============================================================ */
.pph-ticker {
  display: flex;
  overflow: hidden;
  background: var(--pph-text);
  color: var(--pph-text-inverse);
  padding: 1.1rem 0;
  border-top: 1px solid color-mix(in srgb, var(--pph-accent) 30%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--pph-accent) 30%, transparent);
  font-family: var(--pph-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pph-ticker-track {
  display: inline-flex;
  gap: 2.5rem;
  animation: pph-marquee 40s linear infinite;
}
.pph-ticker .pph-diamond { color: var(--pph-accent); }
@keyframes pph-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   FOCUS RING
   ============================================================ */
:is(a, button, .elementor-button, input, textarea, select):focus-visible {
  outline: 2px solid var(--pph-accent);
  outline-offset: 3px;
}

/* ============================================================
   AFFILIATE DISCLOSURE — apply class "pph-affiliate-disclosure"
   ============================================================ */
.pph-affiliate-disclosure,
.pph-affiliate-disclosure p {
  font-family: var(--pph-font-body);
  font-size: 0.75rem;
  color: var(--pph-text-muted);
  font-style: italic;
}
