/*
Theme Name:   SalesWaly Premium Child Theme
Theme URI:    https://saleswaly.com
Description:  Bulletproof custom theme with zero Astra bleed-through. Light/Dark mode enabled.
Author:       Kamran Tufail
Template:     astra
Version:      2.1.0
*/

/* ==========================================================================
GLOBAL DESIGN TOKENS (LIGHT MODE DEFAULT)
========================================================================== */
:root {
/* Brand Colors */
--color-orange:       #F47920;
--color-orange-light: #FF9940;
--color-orange-dark:  #C25F0F;
--color-gold:         #F5C842;

/* Backgrounds - Light Mode */
--bg-primary:         #FFFFFF;
--bg-surface:         #F5F5F5;
--bg-elevated:        #EAEAEA;
--bg-muted:           #D4D4D4;

/* Text - Light Mode */
--text-primary:       #111111;
--text-secondary:     #444444;
--text-muted:         #666666;
--text-accent:        var(--color-orange);

/* Borders - Light Mode */
--border-subtle:      #E0E0E0;
--border-default:     #CCCCCC;
--border-accent:      var(--color-orange);

/* Typography */
--font-heading:       'Montserrat', sans-serif;
--font-body:          'Inter', sans-serif;

/* Spacing & Radius */
--space-xs: 8px; --space-sm: 16px; --space-md: 24px; --space-lg: 48px;
--radius-sm: 6px; --radius-md: 10px; --radius-lg: 16px; --radius-pill: 999px;
--ease: 0.2s ease; --ease-md: 0.3s ease;
}
/* ==========================================================================
DARK MODE OVERRIDES
========================================================================== */
[data-theme="dark"] {
--bg-primary:         #080808;
--bg-surface:         #141414;
--bg-elevated:        #1E1E1E;
--bg-muted:           #2A2A2A;

--text-primary:       #FFFFFF;
--text-secondary:     #CCCCCC;
--text-muted:         #888888;

--border-subtle:      #2E2E2E;
--border-default:     #444444;
}

/* ==========================================================================
STRICT RESETS (KILL BROWSER/ASTRA DEFAULTS)
========================================================================== /
/ 1. Kill Browser Default Blue Selection Highlight */
::selection {
background-color: var(--color-orange) !important;
color: #FFFFFF !important;
}

/* 2. Kill Browser Default Blue Focus Outline */
*:focus-visible, input:focus, textarea:focus, select:focus, button:focus, a:focus {
outline: 2px solid var(--color-orange) !important;
outline-offset: 2px !important;
box-shadow: none !important;
}

/* 3. Global Link Reset (Stops Astra from turning links blue) */
a {
color: var(--text-accent) !important;
text-decoration: none !important;
transition: color var(--ease);
}
a:hover {
color: var(--color-orange-light) !important;
}

/* ==========================================================================
CORE STYLES (OVERRIDING ASTRA)
========================================================================== */
body, .ast-container, #page, .site {
background-color: var(--bg-primary) !important;
color: var(--text-primary) !important;
font-family: var(--font-body) !important;
transition: background-color var(--ease-md), color var(--ease-md);
-webkit-font-smoothing: antialiased;
margin: 0;
padding: 0;
}

h1, h2, h3, h4, h5, h6 {
font-family: var(--font-heading) !important;
color: var(--text-primary) !important;
font-weight: 700 !important;
margin-top: 0;
}

/* ==========================================================================
GLOBAL COMPONENTS
========================================================================== */
.btn-primary {
display: inline-flex;
align-items: center;
justify-content: center;
background-color: var(--color-orange) !important;
color: #FFFFFF !important;
font-family: var(--font-heading) !important;
font-weight: 700 !important;
border-radius: var(--radius-md) !important;
padding: 12px var(--space-md) !important;
transition: background-color var(--ease), transform var(--ease) !important;
border: none !important;
cursor: pointer !important;
text-decoration: none !important;
}

.btn-primary:hover {
background-color: var(--color-orange-light) !important;
transform: translateY(-2px);
color: #FFFFFF !important;
}

.theme-toggle-btn {
background: var(--bg-elevated) !important;
border: 1px solid var(--border-subtle) !important;
color: var(--text-primary) !important;
padding: 8px !important;
border-radius: var(--radius-pill) !important;
cursor: pointer !important;
display: flex !important;
align-items: center !important;
justify-content: center !important;
transition: border-color var(--ease) !important;
width: 40px;
height: 40px;
}

.theme-toggle-btn:hover {
border-color: var(--color-orange) !important;
}