/*
Theme Name: YonMing AATF
Theme URI: https://yonmingaatf.com
Author: YonMing AATF
Author URI: https://yonmingaatf.com
Description: A modern WordPress theme for Authorized Automotive Treatment Facilities
Version: 4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yonming-aatf
*/

/* ========================================
   FONT FACE DECLARATIONS - LOCAL FONTS
   ======================================== */

@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/montserrat/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/montserrat/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/montserrat/Montserrat-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/montserrat/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/montserrat/Montserrat-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('assets/fonts/montserrat/Montserrat-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}


/* ========================================
   GENERAL STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Montserrat font for specific elements */
h1, h2, h3, h4, h5, h6,
.font-montserrat {
    font-family: 'Montserrat', sans-serif;
}

a {
    color: #0626a9;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #041c7a;
}

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

/* ========================================
   CUSTOM LOGO STYLES (ICON ONLY)
   ======================================== */

.custom-logo {
    max-height: 48px !important;
    width: auto !important;
    border-radius: 8px !important;
    display: none !important; /* Force hide */
}

/* ========================================
   LIGHTBOX CUSTOMIZATION
   ======================================== */

.sl-wrapper .sl-close,
.sl-wrapper .sl-navigation button {
    color: #fff;
}

.sl-wrapper .sl-close:hover,
.sl-wrapper .sl-navigation button:hover {
    color: #0626a9;
}

/* ========================================
   PAGINATION STYLES
   ======================================== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pagination li {
    display: inline-block;
}

.pagination a,
.pagination span {
    display: block;
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    color: #0626a9;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #0626a9;
    color: #fff;
    border-color: #0626a9;
}

.pagination .current {
    background-color: #0626a9;
    color: #fff;
    border-color: #0626a9;
}

/* ========================================
   WORDPRESS SPECIFIC
   ======================================== */

.wp-block-image {
    margin: 1rem 0;
}

.wp-block-image img {
    border-radius: 8px;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .no-print,
    header,
    footer,
    .wp-block-button {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}
/* Fix Get Quote button text visibility */
header a[class*="bg-primary"] {
    color: white !important;
}

header a[class*="bg-primary"]:hover {
    color: white !important;
}

/* Fix footer link visibility */
footer a {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
}

footer a:hover {
    color: rgba(255, 255, 255, 1) !important;
}

/* Fix mobile menu */
@media (max-width: 768px) {
    #primary-navigation {
        display: none;
    }
    #primary-navigation.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        padding: 1rem;
        z-index: 50;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    }
}
/* ========================================
   ADD THIS TO THE END OF YOUR style.css FILE
   ======================================== */

/* FIX GREEN HERO GRADIENT TO BLUE */
.gradient-hero {
    background: linear-gradient(135deg, #0626a9, #1e40af, #4169e1) !important;
    /* Blue gradient: from primary blue to royal blue to cornflower blue */
}

/* Alternative blue gradients you can try: */

/* Option 2 - Light to dark blue:
.gradient-hero {
    background: linear-gradient(135deg, #3b82f6, #2563eb, #1d4ed8) !important;
}
*/

/* Option 3 - Navy to royal blue:
.gradient-hero {
    background: linear-gradient(135deg, #1e3a8a, #1e40af, #3b82f6) !important;
}
*/

/* Option 4 - Your primary color gradient:
.gradient-hero {
    background: linear-gradient(135deg, #0626a9, #041c7a, #0626a9) !important;
}
*/

/* Ensure text remains readable on blue background */
.gradient-hero * {
    color: white !important;
}