/* =============================================
   HedgeLists — Global Style Overrides
   Applied site-wide on top of Kadence defaults
   ============================================= */

/* --- CSS Custom Properties --- */
:root {
    --hl-accent: #2EA3F2;
    --hl-accent-hover: #1A8FD8;
    --hl-black: #111111;
    --hl-text: #374151;
    --hl-text-muted: #6B7280;
    --hl-text-light: #9CA3AF;
    --hl-border: #E5E7EB;
    --hl-bg-subtle: #F8F9FA;
    --hl-bg-white: #FFFFFF;
    --hl-success: #1E8449;
    --hl-success-bg: #D5F5E3;
    --hl-star: #F4B942;
    --hl-radius-sm: 6px;
    --hl-radius: 8px;
    --hl-radius-lg: 12px;
    --hl-radius-xl: 16px;
    --hl-radius-pill: 24px;
}

/* --- Selection --- */
::selection {
    background: rgba(46, 163, 242, 0.15);
    color: #111;
}

/* --- Smooth scroll --- */
html {
    scroll-behavior: smooth;
}

/* --- Body --- */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* --- Links --- */
a {
    color: var(--hl-accent);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    color: var(--hl-accent-hover);
}

/* Underline links inside prose/content areas */
.entry-content a:not(.wp-block-button__link):not(.hl-btn),
.hl-seo-prose a {
    text-decoration: underline;
    text-decoration-color: rgba(46, 163, 242, 0.3);
    text-underline-offset: 2px;
}
.entry-content a:hover,
.hl-seo-prose a:hover {
    text-decoration-color: var(--hl-accent);
}

/* --- Buttons — global overrides --- */

/* Primary button (blue) */
.hl-btn,
.wp-block-button__link,
button[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .button.alt {
    background: var(--hl-accent) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--hl-radius) !important;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 1.4;
}
.hl-btn:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .button.alt:hover {
    background: var(--hl-accent-hover) !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* Ghost/outline button */
.hl-btn-ghost,
.hl-btn--ghost {
    background: transparent !important;
    color: #111 !important;
    border: 1.5px solid #111 !important;
    border-radius: var(--hl-radius) !important;
}
.hl-btn-ghost:hover,
.hl-btn--ghost:hover {
    background: #111 !important;
    color: #fff !important;
}

/* Small button variant */
.hl-btn-sm {
    font-size: 13px;
    padding: 8px 16px;
}

/* --- Form Inputs --- */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select {
    border: 1px solid var(--hl-border);
    border-radius: var(--hl-radius);
    padding: 10px 14px;
    font-size: 14px;
    font-family: inherit;
    color: var(--hl-text);
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
    -webkit-appearance: none;
}
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--hl-accent);
    box-shadow: 0 0 0 3px rgba(46, 163, 242, 0.1);
}

/* --- Horizontal rules --- */
hr {
    border: none;
    border-top: 0.5px solid var(--hl-border);
    margin: 32px 0;
}

/* --- Images --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Tables (basic) --- */
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--hl-border);
    font-size: 14px;
}
th {
    font-weight: 600;
    color: var(--hl-black);
    background: var(--hl-bg-subtle);
}

/* --- Blockquotes --- */
blockquote {
    border-left: 3px solid var(--hl-accent);
    padding: 12px 20px;
    margin: 24px 0;
    background: var(--hl-bg-subtle);
    border-radius: 0 var(--hl-radius) var(--hl-radius) 0;
    font-style: italic;
    color: var(--hl-text-muted);
}

/* --- Utility classes --- */
.text-accent { color: var(--hl-accent); }
.text-muted { color: var(--hl-text-muted); }
.text-light { color: var(--hl-text-light); }
.text-center { text-align: center; }
.bg-subtle { background: var(--hl-bg-subtle); }
.rounded { border-radius: var(--hl-radius-lg); }
.rounded-xl { border-radius: var(--hl-radius-xl); }

/* --- Badge/pill (reusable) --- */
.hl-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--hl-radius-pill);
    line-height: 1.3;
}
.hl-badge-blue {
    background: rgba(46, 163, 242, 0.1);
    color: var(--hl-accent);
}
.hl-badge-green {
    background: var(--hl-success-bg);
    color: var(--hl-success);
}

/* --- Subtle card style (reusable) --- */
.hl-card {
    background: #fff;
    border: 0.5px solid var(--hl-border);
    border-radius: var(--hl-radius-lg);
    padding: 24px;
}
.hl-card:hover {
    border-color: var(--hl-accent);
}

/* --- Override Kadence specifics if needed --- */

/* Ensure Kadence doesn't add unwanted purple/default accent */
:root {
    --global-palette1: #2EA3F2;
    --global-palette2: #1A8FD8;
    --global-palette3: #111111;
    --global-palette4: #374151;
    --global-palette5: #6B7280;
    --global-palette7: #F8F9FA;
    --global-palette8: #E5E7EB;
    --global-palette9: #FFFFFF;
}

/* Remove Kadence default underline on header/footer links */
.site-header a,
.site-footer a,
.hl-footer a {
    text-decoration: none;
}

/* Fix any Kadence button that might override our accent */
.wp-site-blocks .wp-block-button .wp-block-button__link {
    background: var(--hl-accent);
}
.wp-site-blocks .wp-block-button .wp-block-button__link:hover {
    background: var(--hl-accent-hover);
}

/* Site title/tagline — subtle subtitle under logo */
.site-branding .site-title,
.site-branding .site-title-wrap .site-title {
    font-size: 11px !important;
    font-weight: 400 !important;
    color: #94A3B8 !important;
    letter-spacing: 0.5px;
    margin-top: 2px;
    text-transform: uppercase;
}
