/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/

/* ============================================================
   DAC Training — Global Design Tokens
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
    /* ── Blue — Primary brand color (verified from davidallencapital.com 2026-06-02) ── */
    --dac-blue:         #0048B8;
    --dac-blue-hover:   #003FA3;
    --dac-blue-light:   #EEF3FC;

    /* ── Green — CTA & achievement accent (verified from davidallencapital.com 2026-06-02) ── */
    --dac-green:        #27BD68;
    --dac-green-hover:  #22A85D;
    --dac-green-mid:    #50BF80;
    --dac-green-light:  #5BD991;
    --dac-green-pale:   #E8F9EF;
    /* 2026-07-06: dedicated high-emphasis green for a single stat/number popping
       against a dark (navy/blue) surface -- e.g. the homepage cert-spotlight "40%+".
       --dac-green-light is a gradient endpoint, tuned to blend, not to pop; this is
       more saturated and reads noticeably brighter next to it. Scoped use only --
       do not swap into gradients or general accents in place of the existing greens. */
    --dac-green-bright: #3EE187;

    /* ── Neutrals ── */
    --dac-navy:         #0A083B;
    --dac-dark:         #1A2035;
    --dac-text:         #1E2A3A;
    --dac-muted:        #6B7280;
    --dac-border:       #E5E7EB;
    --dac-bg:           #F8FAFC;
    --dac-surface:      #FFFFFF;
    --dac-surface-raised: #F4F6FB;
    --dac-white:        #FFFFFF;
    /* 2026-07-06: dedicated page-canvas surface for the dashboard/learning-area/
       courses-list tint — a step darker than --dac-bg per Tyler's request ("close,
       just a little more"). Kept separate from --dac-bg on purpose: that token is
       already used broadly elsewhere (accordion headers, homepage/resources/subpages
       sections, 404, admin log, header transitions) and darkening it directly would
       ripple into all of those, not just the three spots this was scoped to. */
    --dac-canvas:       #F0F2F4;

    /* ── Semantic aliases ── */
    --dac-primary:        var(--dac-blue);
    --dac-primary-hover:  var(--dac-blue-hover);
    --dac-primary-light:  var(--dac-blue-light);
    --dac-secondary:      var(--dac-green-mid);
    --dac-accent:         var(--dac-green);
    --dac-accent-hover:   var(--dac-green-hover);
    --dac-accent-light:   var(--dac-green-pale);

    /* ── Status colors ── */
    --dac-error:          #DC2626;
    --dac-error-bg:       #FEF2F2;
    --dac-error-border:   #FCA5A5;
    --dac-error-text:     #991B1B;
    --dac-success:        #16A34A;
    --dac-success-bg:     #F0FDF4;
    --dac-success-border: #86EFAC;
    --dac-success-text:   #15803D;
    --dac-warning:        #D97706;
    --dac-warning-bg:     #FFFBEB;
    --dac-warning-border: #FDE68A;
    --dac-warning-text:   #92400E;

    /* ── Typography ── */
    --dac-font:       'Plus Jakarta Sans', sans-serif;
    --dac-text-xs:    0.75rem;
    --dac-text-sm:    0.875rem;
    --dac-text-base:  1rem;
    --dac-text-lg:    1.125rem;
    --dac-text-xl:    1.25rem;
    --dac-text-2xl:   1.5rem;
    --dac-text-3xl:   1.875rem;
    --dac-text-4xl:   2.25rem;
    --dac-text-5xl:   3rem;

    /* ── Border radius ── */
    --dac-radius-xs:   4px;
    --dac-radius-sm:   8px;
    --dac-radius-md:   12px;
    --dac-radius-lg:   16px;
    --dac-radius-xl:   24px;
    --dac-radius-pill: 50px;

    /* ── Shadows ── */
    --dac-shadow:    0 1px 3px rgba(0, 72, 184, 0.08), 0 4px 16px rgba(0, 72, 184, 0.06);
    --dac-shadow-md: 0 4px 12px rgba(0, 72, 184, 0.12), 0 16px 40px rgba(0, 72, 184, 0.08);
    --dac-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12), 0 32px 64px rgba(0, 0, 0, 0.08);

    /* ── Layout ── */
    --dac-header-height: 68px;
    --dac-page-top-gap:  48px;
}

/* Typography baseline — 17px rem base, scales all rem values proportionally */
html {
    font-size: 103.125%; /* 16.5px */
}

body {
    font-family: var(--dac-font) !important;
    font-size: 1rem;       /* 16px */
    line-height: 1.65;
    color: var(--dac-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body *:not([class*="dashicons"]):not([class*="fa-"]):not([class*="tutor-icon"]) {
    font-family: var(--dac-font) !important;
}

/* ============================================================
   Header — GPU Compositing
   #brx-header is a no-op (no Bricks header template is used).
   DO NOT add will-change: transform or transform: translateZ(0)
   to #dac-site-header — applying these to a position:sticky element
   in Firefox creates a compositor layer desync that causes visible
   scroll lag. The shadow effect uses opacity on ::after instead.
   ============================================================ */

#brx-header {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
}

/* ============================================================
   Global Element Resets
   ============================================================ */

a {
    color: var(--dac-blue);
    text-decoration: none;
}

a:hover {
    color: var(--dac-blue-hover);
}

/* Bricks button base */
.brxe-button a,
.brxe-button button {
    border-radius: var(--dac-radius-pill) !important;
    font-family: var(--dac-font) !important;
    font-weight: 600 !important;
}

/* ============================================================
   Shared Layout Utilities
   ============================================================ */

/*
 * Bricks Builder sets .brxe-container { width: 1100px; align-items: flex-start }
 * by default. This overrides both with higher specificity (.brxe-container.dac-container
 * = two classes vs one) so our containers are always responsive and children fill
 * the full width of the row.
 *
 * width: 100%        — replaces the fixed 1100px, prevents mobile overflow
 * max-width: 1200px  — caps the layout width on large screens
 * align-items: stretch — replaces flex-start so child divs (section headers,
 *                        grids, cards) expand to the container width instead of
 *                        shrinking to their content width
 */
.dac-container {
    max-width: 1200px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.brxe-container.dac-container {
    align-items: stretch;
}

/*
 * Apply to the first Bricks section on any page that lacks a hero.
 * Creates consistent breathing room below the 68px sticky header.
 * Usage in Bricks: add CSS class "dac-page-top-gap" to the section element.
 */
.dac-page-top-gap {
    padding-top: var(--dac-page-top-gap);
}

.dac-section-header {
    text-align: center;
    margin-bottom: 56px;
    width: 100%;
}

.dac-section-header__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--dac-dark);
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    text-align: center;
}

.dac-section-header__subtitle {
    font-size: 1.125rem;
    color: var(--dac-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.65;
    text-align: center;
}

/* ============================================================
   Shared Button System
   ============================================================ */

.dac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--dac-font);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: var(--dac-radius-pill);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
    white-space: nowrap;
    border: 2px solid transparent;
}

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

.dac-btn:active {
    transform: translateY(0);
}

.dac-btn:focus-visible {
    outline: 2px solid var(--dac-primary);
    outline-offset: 3px;
}

.dac-btn--primary {
    background: var(--dac-blue);
    color: #ffffff;
    border-color: var(--dac-blue);
    box-shadow: 0 4px 16px rgba(0, 72, 184, 0.32);
}

.dac-btn--primary:hover {
    background: var(--dac-blue-hover);
    border-color: var(--dac-blue-hover);
    color: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 72, 184, 0.4);
}

/* For use on dark/navy backgrounds */
.dac-btn--outline {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.4);
}

.dac-btn--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.7);
    color: #ffffff;
}

/* For use on light backgrounds */
.dac-btn--outline-blue {
    background: transparent;
    color: var(--dac-blue);
    border-color: var(--dac-blue);
}

.dac-btn--outline-blue:hover {
    background: var(--dac-blue-light);
    color: var(--dac-blue-hover);
    border-color: var(--dac-blue-hover);
}

.dac-btn--secondary {
    background: var(--dac-blue-light);
    color: var(--dac-blue);
    border-color: var(--dac-blue-light);
}

.dac-btn--secondary:hover {
    background: #dce6fb;
    color: var(--dac-blue-hover);
}

.dac-btn--white {
    background: #ffffff;
    color: var(--dac-blue);
    border-color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.16);
}

.dac-btn--white:hover {
    background: #f0f4ff;
    color: var(--dac-blue-hover);
}

.dac-btn--sm {
    font-size: 0.875rem;
    padding: 10px 22px;
}

@media (max-width: 480px) {
    .dac-btn {
        justify-content: center;
    }
}

/* ── Auth Gate (logged-out state for Marketing Hub + Support) ─ */

.dac-auth-gate {
    max-width: 480px;
    margin: 64px auto;
    padding: 48px 40px;
    background: var(--dac-white, #fff);
    border: 1px solid var(--dac-border);
    border-radius: var(--dac-radius-md);
    box-shadow: var(--dac-shadow-md);
    text-align: center;
}

.dac-auth-gate__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    background: var(--dac-blue-light);
    color: var(--dac-blue);
    border-radius: 50%;
}

.dac-auth-gate__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dac-navy);
    margin: 0 0 12px;
    line-height: 1.3;
}

.dac-auth-gate__desc {
    font-size: 0.9375rem;
    color: var(--dac-muted, #64748b);
    line-height: 1.6;
    margin: 0 0 28px;
}

.dac-auth-gate__btn {
    display: inline-block;
    padding: 13px 28px;
    background: var(--dac-blue);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(0, 72, 184, 0.25);
}

.dac-auth-gate__btn:hover {
    background: var(--dac-blue-hover);
    box-shadow: 0 4px 14px rgba(0, 72, 184, 0.35);
    color: #fff;
}

@media (max-width: 480px) {
    .dac-auth-gate {
        padding: 32px 20px;
        margin: 40px auto;
    }
}