/*
 Theme Name:   Astra Child - SalesRelief
 Theme URI:    https://salesrelief.com
 Description:  Astra Child Theme for SalesRelief
 Author:       SalesRelief
 Author URI:   https://salesrelief.com
 Template:     astra
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  astra-child
*/

/* ========================================
   SalesRelief Custom Styles
   ======================================== */

/* Typography */
body, h1, h2, h3, h4, h5, h6, p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Brand Colors */
:root {
    --sr-blue: #1e40af;
    --sr-indigo: #4f46e5;
    --sr-purple: #7c3aed;
    --sr-gray-900: #111827;
    --sr-gray-600: #4b5563;
    --sr-gray-500: #6b7280;
    --sr-gray-100: #f3f4f6;
}

/* Links */
a {
    color: var(--sr-blue);
    transition: color 0.2s ease;
}

a:hover {
    color: var(--sr-purple);
}

/* Header Styles */
.ast-primary-header-bar {
    border-bottom: 1px solid #e5e7eb;
}

.site-title a,
.site-title a:hover {
    color: var(--sr-gray-900);
    font-weight: 700;
}

/* Navigation */
.main-header-menu .menu-item > a {
    font-weight: 500;
}

.main-header-menu .menu-item > a:hover,
.main-header-menu .menu-item.current-menu-item > a {
    color: #bfdbfe;
}

/* Dropdown/Submenu Styling */
.main-header-menu .sub-menu {
    background: #ffffff !important;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 8px 0;
    min-width: 200px;
}

/* Prevent submenu from going off-screen on the right */
.main-header-menu > .menu-item:last-child > .sub-menu,
.main-header-menu > .menu-item:nth-last-child(2) > .sub-menu {
    right: 0;
    left: auto;
}

.main-header-menu .sub-menu .menu-item > a {
    color: #374151 !important;
    padding: 10px 20px;
    font-weight: 500;
}

.main-header-menu .sub-menu .menu-item > a:hover {
    background: #f3f4f6 !important;
    color: var(--sr-blue) !important;
}

/* Hide social icons in header (but NOT the menu) */
.ast-header-social-wrap,
.ast-builder-social-element,
.ast-social-icon-wrap,
.ast-header-html-1,
.ast-header-html-2,
[data-section="social-icons-1"],
[data-section="social-icons-2"],
.ast-header-social-1-wrap {
    display: none !important;
}

/* Force show the menu */
.ast-builder-menu-1,
.ast-builder-menu-1.ast-builder-layout-element,
.site-header-primary-section-right .ast-builder-menu-1 {
    display: flex !important;
}

/* Custom footer - hide Astra credit completely */
.ast-small-footer .ast-container {
    text-align: center;
}

.ast-small-footer .ast-footer-copyright {
    font-size: 0;
}

.ast-small-footer .ast-footer-copyright::before {
    content: '© 2026 SalesRelief. All rights reserved.';
    font-size: 14px;
    color: #6b7280;
}

/* Buttons */
.ast-button,
.button,
input[type="submit"],
.wp-block-button__link {
    background: linear-gradient(135deg, var(--sr-blue) 0%, var(--sr-indigo) 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ast-button:hover,
.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 64, 175, 0.3);
}

/* Entry Content */
.entry-content h2 {
    color: var(--sr-gray-900);
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
}

.entry-content h3 {
    color: var(--sr-gray-900);
    font-weight: 600;
}

.entry-content p {
    color: var(--sr-gray-600);
    line-height: 1.75;
}

/* Post Cards on Archive Pages */
.ast-article-post {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 32px;
}

.ast-article-post:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

/* Category Pages */
.ast-archive-description {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 48px 24px;
    text-align: center;
    margin-bottom: 48px;
    border-radius: 12px;
}

.ast-archive-description .ast-archive-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--sr-gray-900);
}

/* Footer */
.ast-small-footer {
    background: #f8fafc;
    border-top: 1px solid #e5e7eb;
}

.ast-footer-copyright {
    color: var(--sr-gray-500);
}

/* Sidebar Widgets */
.widget {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--sr-gray-900);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--sr-blue);
}

/* Comments */
.comments-area {
    background: #f8fafc;
    padding: 32px;
    border-radius: 12px;
    margin-top: 48px;
}

.comment-respond {
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

/* Front Page Full Width - Hide Sidebar */
body.home #secondary,
body.home .widget-area,
body.home aside {
    display: none !important;
}

body.home .site-content > .ast-container {
    max-width: 100% !important;
    display: block !important;
}

body.home #primary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    float: none !important;
}

body.home .ast-container {
    display: block !important;
}

/* Responsive */
@media (max-width: 768px) {
    .sr-hero h1 {
        font-size: 32px !important;
    }

    .sr-section {
        padding: 48px 16px;
    }
}
