/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0
*/
/* =============================================================
   DIABETES PERFORMANCE — DESIGN SYSTEM v2
   Athletic Authority meets Glassmorphism 2.0
   Accent: #00F1A9 | Base: Deep Navy | Style: Premium Performance
   ============================================================= */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700;800&display=swap');

/* ---------------------------------------------------------------
   1. DESIGN TOKENS
--------------------------------------------------------------- */
:root {
    /* --- Background Layers --- */
    --bg-base: #0a1118;
    --bg-surface: #0d1520;
    --bg-elevated: #111d2b;
    --bg-light: #F8FAFB;
    --bg-white: #FFFFFF;

    /* --- Accent --- */
    --cyan: #00F1A9;
    --cyan-deep: #00C98C;
    --cyan-glow: rgba(0, 241, 169, 0.15);
    --cyan-subtle: rgba(0, 241, 169, 0.08);

    /* --- Glass Surfaces (Dark context) --- */
    --glass-fill: rgba(255, 255, 255, 0.05);
    --glass-fill-mid: rgba(255, 255, 255, 0.08);
    --glass-fill-high: rgba(255, 255, 255, 0.12);
    --glass-border: rgba(255, 255, 255, 0.10);
    --glass-border-strong: rgba(255, 255, 255, 0.18);

    /* --- Glass Surfaces (Light context) --- */
    --glass-light-fill: rgba(255, 255, 255, 0.72);
    --glass-light-border: rgba(0, 0, 0, 0.06);

    /* --- Text --- */
    --text-primary: #ffffff;
    --text-secondary: #E0E0E0;
    --text-muted: #64748B;
    --text-dark: #0f1923;
    --text-dark-2: #1e293b;
    --text-mid: #475569;

    /* --- Typography --- */
    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    /* --- Spacing --- */
    --max-w: 1200px;
    --section-pad: 120px;
    --section-pad-sm: 80px;

    /* --- Border Radius --- */
    --radius: 20px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --radius-pill: 100px;

    /* --- Blur --- */
    --blur: blur(24px);
    --blur-sm: blur(12px);
    --blur-lg: blur(40px);

    /* --- Transitions --- */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 320ms;
    --duration-lg: 600ms;

    /* --- Shadows --- */
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.4);
    --shadow-cyan: 0 12px 40px rgba(0, 241, 169, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-base);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    transition: all var(--duration) var(--ease);
}

/* ---------------------------------------------------------------
   3. TYPOGRAPHY SYSTEM
--------------------------------------------------------------- */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    line-height: 1.1;
    font-weight: 400;
    letter-spacing: -0.02em;
}

/* Display scale — editorial */
.t-display {
    font-size: clamp(60px, 8vw, 110px);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.t-headline {
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
}

.t-title {
    font-size: clamp(24px, 3vw, 40px);
}

.t-body-lg {
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 1.7;
}

.t-body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
}

.t-small {
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
}

.t-label {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Accent color */
.accent {
    color: var(--cyan);
}

/* Light-context text */
.on-light {
    color: var(--text-dark);
}

.on-light-2 {
    color: var(--text-mid);
}

/* ---------------------------------------------------------------
   4. LAYOUT UTILITIES
--------------------------------------------------------------- */
.container {
    width: 92%;
    max-width: var(--max-w);
    margin-inline: auto;
}

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

@media (max-width: 768px) {
    .section {
        padding: var(--section-pad-sm) 0;
    }
}

/* ---------------------------------------------------------------
   5. GLASS SURFACE UTILITIES
--------------------------------------------------------------- */

/* Dark-context glass */
.glass {
    background: var(--glass-fill);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
}

.glass-elevated {
    background: var(--glass-fill-mid);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
}

.glass-high {
    background: var(--glass-fill-high);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}

/* Light-context glass */
.glass-light {
    background: var(--glass-light-fill);
    backdrop-filter: var(--blur-sm);
    -webkit-backdrop-filter: var(--blur-sm);
    border: 1px solid var(--glass-light-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

/* Accent glow border */
.glass-accent {
    background: var(--glass-fill);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: 1px solid rgba(0, 241, 169, 0.25);
    border-radius: var(--radius);
    box-shadow: 0 0 0 1px rgba(0, 241, 169, 0.08), var(--shadow-md);
}

/* ---------------------------------------------------------------
   6. SCROLL REVEAL ANIMATIONS
--------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity var(--duration-lg) var(--ease),
        transform var(--duration-lg) var(--ease);
}

.reveal.revealed {
    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.35s;
}

.reveal-delay-4 {
    transition-delay: 0.5s;
}

/* ---------------------------------------------------------------
   7. BUTTON SYSTEM
--------------------------------------------------------------- */

/* Pill CTA — primary brand action */
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 36px;
    border-radius: var(--radius-pill);
    background: var(--cyan);
    color: #070e0a;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-cyan);
    transition: all var(--duration) var(--ease);
    white-space: nowrap;
}

.btn-pill:hover {
    background: var(--cyan-deep);
    box-shadow: 0 16px 48px rgba(0, 241, 169, 0.3);
    transform: translateY(-2px);
}

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

.btn-pill .arrow {
    display: inline-flex;
    transition: transform var(--duration) var(--ease);
}

.btn-pill:hover .arrow {
    transform: translateX(4px);
}

/* Ghost button — secondary action on dark */
.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.05em;
    border: 1px solid var(--glass-border-strong);
    cursor: pointer;
    transition: all var(--duration) var(--ease);
}

.btn-ghost:hover {
    background: var(--glass-fill-mid);
    border-color: var(--cyan);
    color: var(--cyan);
}

/* Text link with underline accent */
.link-accent {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 241, 169, 0.4);
    padding-bottom: 2px;
    transition: all var(--duration) var(--ease);
}

.link-accent:hover {
    color: var(--cyan);
    border-bottom-color: var(--cyan);
    gap: 14px;
}

/* ---------------------------------------------------------------
   8. ACCENT / HIGHLIGHT ELEMENTS
--------------------------------------------------------------- */

/* Eyebrow tag */
.tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    background: var(--cyan-subtle);
    border: 1px solid rgba(0, 241, 169, 0.2);
    border-radius: var(--radius-pill);
    padding: 6px 14px;
}

/* Stat/badge highlight */
.stat-badge {
    font-family: var(--font-display);
    font-size: 48px;
    color: var(--cyan);
    line-height: 1;
}

/* Divider line */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--glass-border-strong), transparent);
    margin: 40px 0;
}/* ── CUSTOM PAGE RESET ───────────────────────────
   Prevents Blocksy from constraining pushed pages */
.entry-content.is-layout-constrained {
    max-width: none !important;
    padding: 0 !important;
}
.entry-content.is-layout-constrained > * {
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* Override Blocksy heading color inheritance */
.dark-bg h1, .dark-bg h2, .dark-bg h3 { color: #ffffff !important; }
.light-bg h1, .light-bg h2, .light-bg h3 { color: #0f1923 !important; }/* ================================================================
   PUSHED PAGE OVERRIDES
   Add this block to the BOTTOM of blocksy-child/style.css
   
   Purpose: ensures all content pushed via Antigravity → WordPress
   MCP always wins over Blocksy's default heading/typography/color
   rules, for every current and future page.
   
   Why .entry-content prefix: Blocksy wraps all page content in
   .entry-content. Adding this prefix raises our specificity above
   Blocksy's own selectors so our rules reliably win.
================================================================ */

/* ── HEADING FONT & WEIGHT ──────────────────────────────────────
   Blocksy sets its own heading font and font-weight sitewide.
   We force DM Serif Display at weight 400 (our design system default)
   on all pushed content. .section-title overrides to 700 below.
─────────────────────────────────────────────────────────────── */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
    font-family: 'DM Serif Display', Georgia, serif !important;
    font-weight: 400 !important;
    letter-spacing: -0.02em !important;
    line-height: 1.1 !important;
}

/* Section titles are intentionally bold (700) */
.entry-content .section-title {
    font-weight: 700 !important;
}

/* ── HEADING COLORS BY SECTION CONTEXT ──────────────────────────
   Covers h1–h4 on both dark and light backgrounds.
   Uses .entry-content prefix for higher specificity than Blocksy.
─────────────────────────────────────────────────────────────── */
.entry-content .dark-bg h1,
.entry-content .dark-bg h2,
.entry-content .dark-bg h3,
.entry-content .dark-bg h4 {
    color: #ffffff !important;
}

.entry-content .light-bg h1,
.entry-content .light-bg h2,
.entry-content .light-bg h3,
.entry-content .light-bg h4 {
    color: #0f1923 !important;
}

/* ── BODY TEXT COLORS ────────────────────────────────────────────
   Blocksy may override paragraph/body text colors.
─────────────────────────────────────────────────────────────── */
.entry-content .prose p {
    color: #E0E0E0 !important; /* --text-secondary */
}

.entry-content .light-bg .prose p {
    color: #475569 !important; /* --text-mid */
}

/* ── SECTION BACKGROUNDS ─────────────────────────────────────────
   Ensures dark/light section backgrounds always render correctly.
─────────────────────────────────────────────────────────────── */
.entry-content .dark-bg {
    background: #0a1118 !important;
    color: #ffffff !important;
}

.entry-content .light-bg {
    background: #F8FAFB !important;
    color: #0f1923 !important;
}

/* ── BODY/PARAGRAPH FONT ─────────────────────────────────────────
   Ensures Inter is used for all body text, not Blocksy's default.
─────────────────────────────────────────────────────────────── */
.entry-content p,
.entry-content li {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.entry-content a:hover {
    color: inherit;
}
.entry-content .btn-cta-dark:hover,
.entry-content .btn-pill:hover,
.entry-content .btn-ghost:hover {
    color: #00F1A9 !important;
}
