/*
Theme Name: HUB Theme
Theme URI: https://garage.bakrayot.co.il
Description: Authoritative, zero-bloat standalone theme for Garage Bakrayot HUB Ecosystem.
Version: 1.0.0
Author: Garage Bakrayot / HUB Team
Author URI: https://garage.bakrayot.co.il
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hub-theme
*/

/* Base CSS */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: Arial, "Noto Sans Hebrew", system-ui, sans-serif !important;
    font-size: 18px !important;
    line-height: 1.65 !important;
    color: #111827 !important;
    background-color: #FFFFFF !important;
}

/* Touch targets min 48px */
button, input[type="submit"], input[type="button"], a.wp-element-button, .button, a.cta-btn {
    min-height: 48px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    border-radius: 8px !important;
    transition: background 0.2s ease, border-color 0.2s ease !important;
}

/* Container */
.site-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Cards & Grid */
.hub-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.hub-card:hover {
    border-color: #CBD5E1;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

/* Responsive grid: 2x2 desktop, 1x1 mobile */
.hub-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .hub-grid-2x2 {
        grid-template-columns: 1fr;
    }
}

/* 3-column grid */
.hub-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 768px) {
    .hub-grid-3col {
        grid-template-columns: 1fr;
    }
}

/* Header Sticky */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #0F172A;
    border-bottom: 1px solid #1E293B;
}

/* Mobile Sticky Action Bar */
#mobile-actions-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0F172A;
    padding: 10px 16px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 12px;
}
#mobile-actions-bar a {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: #FFFFFF;
    background: #F97316;
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 700;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
#mobile-actions-bar a.whatsapp-btn {
    background: #25D366;
    color: #FFFFFF;
}

/* Table styling */
table.hub-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}
table.hub-table th, table.hub-table td {
    padding: 14px 16px;
    border: 1px solid #E2E8F0;
    text-align: right;
}
table.hub-table th {
    background: #0F172A;
    color: #E2E8F0;
}
table.hub-table tr:nth-child(even) {
    background: #F8FAFC;
}
