@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

:root {
    /* Tracon Corporate Palette */
    --brand-dark: #333333; 
    --brand-blue: #004c97; /* Tracon Blue */
    --brand-bg: #f4f5f7; /* Light Gray Background */
    --brand-gray: #dddddd; /* Borders */
    --brand-accent: #e65c00; /* Tracon Orange */
    --brand-accent-hover: #cc5200;
    --brand-white: #ffffff;
}

/* Global Font */
body, h1, h2, h3, h4, h5, h6, p, a, span, div {
    font-family: 'Open Sans', sans-serif !important;
}

body {
    background-color: var(--brand-bg) !important;
    color: var(--brand-dark);
}

/* 1. Header Styles - Tracon Style */
.ast-main-header-wrap, 
.ast-primary-header-bar, 
.site-header, 
.site-primary-header-wrap,
#ast-desktop-header {
    background-color: var(--brand-white) !important;
    border-bottom: 2px solid var(--brand-accent) !important; /* Orange line under header */
    position: relative !important;
    z-index: 9999;
}

.main-header-menu > .menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link {
    color: var(--brand-dark) !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    font-size: 14px;
    padding: 10px 15px;
}

.main-header-menu > .menu-item:hover > .menu-link,
.main-header-menu > .current-menu-item > .menu-link {
    color: var(--brand-accent) !important;
}

/* Hide Site Title that appears next to logo/phone */
.site-title, .ast-site-title-wrap, .site-description {
    display: none !important;
}

/* Enforce Tracon Logo Size (smaller, corporate) */
.site-branding, .site-logo-img, .custom-logo-link {
    max-width: none !important;
}

.site-logo-img img, .custom-logo-link img {
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 10px !important;
    margin: 0 !important;
    max-height: 80px !important; 
    max-width: 250px !important; 
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    object-position: left center;
}

.site-header-primary-section-left,
.ast-builder-layout-element[data-section="title_tagline"] {
    display: flex !important;
    justify-content: flex-start !important;
    align-items: center !important;
}

.ast-main-header-wrap .ast-container,
.site-primary-header-wrap .ast-container {
    max-width: 1400px !important;
}

/* Search Bar (Massive center search) */
.ast-header-search {
    flex-grow: 1;
    margin: 0 40px;
}

.ast-header-search .search-field {
    border-radius: 4px 0 0 4px !important;
    padding: 12px 20px !important;
    border: 2px solid var(--brand-blue) !important;
    background: var(--brand-white) !important;
    color: var(--brand-dark) !important;
    width: 100%;
}

.ast-header-search .search-submit {
    background-color: var(--brand-blue) !important;
    color: var(--brand-white) !important;
    border: 2px solid var(--brand-blue) !important;
    border-radius: 0 4px 4px 0 !important;
    padding: 12px 20px !important;
}

/* Phone Button in Menu */
.phone-menu-item {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.header-phone-btn {
    background: transparent;
    color: var(--brand-blue) !important;
    border: none;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 2. Footer Styles */
.site-footer {
    background-color: var(--brand-dark) !important;
    color: #aaa !important;
    border-top: 4px solid var(--brand-blue);
    padding: 40px 0;
}

.site-footer h3, .site-footer h4, .site-footer .widget-title {
    color: var(--brand-white) !important;
    text-transform: uppercase;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.site-footer a {
    color: #aaa !important;
}

.site-footer a:hover {
    color: var(--brand-accent) !important;
}

/* Reset WooCommerce buttons globally */
.woocommerce ul.products li.product .button,
.woocommerce button.button.alt,
.ast-button, .button, input[type="submit"] {
    background-color: var(--brand-accent) !important;
    color: var(--brand-white) !important;
    border-radius: 4px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    padding: 10px 20px !important;
    border: none !important;
    transition: background-color 0.2s ease !important;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce button.button.alt:hover,
.ast-button:hover, .button:hover, input[type="submit"]:hover {
    background-color: var(--brand-accent-hover) !important;
}
