/*
Theme Name: Local Equipment Source
Theme URI: https://localequipmentsource.com
Author: AEI Paint Booths
Author URI: https://aeipaintbooths.com
Description: A professional directory theme for Local Equipment Source - connecting businesses with local paint finishing equipment and service providers across all 50 US states.
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: local-equipment-source
Tags: directory, business, equipment, custom-menu, custom-logo, featured-images
*/

/* ==========================================================================
   CSS Reset & Base
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0 auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

a {
    text-decoration: none;
    color: #770B0B;
    transition: color 0.3s ease;
}

a:hover {
    color: #B91818;
}

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    width: 100%;
    text-align: center;
    overflow: hidden;
    margin-bottom: 0;
    background-image: url('images/lqsheader3.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: 0 0 25px 0 rgba(12, 3, 25, 0.8);
    border-bottom: 3px #DBDC85 solid;
    border-top: 3px #252018 solid;
}

.header-callout {
    text-align: left;
    padding: 6px 0 4px 0;
    overflow: hidden;
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    border-bottom: 3px #DBDC85 solid;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-callout h1 {
    width: 50%;
    text-align: left;
    font-size: 14px;
    padding: 0 0 0 20px;
    color: #fff;
    margin: 0;
}

.header-phone {
    font-size: 14px;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    text-align: right;
    padding: 0 20px 0 0;
    font-weight: bold;
}

.header-phone a {
    color: #fff;
    text-decoration: none;
}

.header-tagline {
    width: 100%;
    text-align: center;
    font-size: 14px;
    color: #FFF9B1;
    font-family: Arial, Helvetica, sans-serif;
    padding: 10px 0;
    background-color: #291322;
}

.header-images {
    margin: 0 auto;
    text-align: center;
    padding: 5px 0 15px 0;
    overflow: hidden;
    width: 80%;
}

.header-images img {
    border-radius: 10px;
    margin: 0 0.45%;
    border: 2px #DBDC85 solid;
    box-shadow: 0 0 15px 0 rgba(12, 3, 25, 0.8);
}

.header-images .site-logo {
    width: 39%;
    height: auto;
}

.header-images .header-thumb {
    width: 7%;
    height: auto;
}

.header-message {
    text-align: center;
    padding: 10px 20px;
    color: #000000;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 16px;
    line-height: 1.5;
}

.header-subtitle {
    text-align: center;
    font-size: 16px;
    width: 100%;
    color: #FFF9B1;
    padding: 5px 0 10px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.main-navigation {
    margin: 0 auto;
    padding: 5px 0 10px 0;
    width: 90%;
    margin-left: 5%;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 15px;
    overflow: hidden;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.main-navigation ul li {
    margin: 0.5% 0.8%;
    text-align: center;
    border: 4px #DBDC85 solid;
    border-radius: 15px;
    padding: 8px 15px;
    background-color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.95);
    transition: background 0.3s ease;
}

.main-navigation ul li:hover {
    background-color: #e8e8e8;
}

.main-navigation ul li a {
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-decoration: none;
    color: #770B0B;
}

.main-navigation ul li:hover a {
    color: #000;
}

/* ==========================================================================
   State Grid (Homepage)
   ========================================================================== */
.state-grid-section {
    background: white;
    margin: 0 auto;
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}

.state-grid {
    list-style: none;
    margin: 0;
    padding: 0 0.5%;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
}

.state-grid li {
    border: 1px #535353 solid;
    border-radius: 5px;
    margin: 0.2%;
    padding: 0.60% 0.05%;
    width: 9.5%;
    text-align: center;
    transition: background 0.3s ease;
}

.state-grid li a {
    color: #535353;
    font-weight: bold;
    text-decoration: none;
    font-size: 0.85em;
}

.state-grid li:hover,
.state-grid li.active {
    background: #535353;
}

.state-grid li:hover a,
.state-grid li.active a {
    color: #FFF9B1;
}

/* State content area */
.state-content {
    margin: 0 auto;
    width: 88%;
    overflow: hidden;
    background-color: #f5f5f5;
    border-radius: 25px;
    font-size: 1.1em;
    text-align: center;
    color: #000040;
    font-family: Arial, Helvetica, sans-serif;
    padding: 15px 20px;
    margin-top: 15px;
}

.state-content a {
    color: #B91818;
    font-weight: bold;
    line-height: 35px;
    font-size: 20px;
    text-decoration: none;
    margin: 0 10px;
}

.state-content a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Content Area
   ========================================================================== */
.site-content {
    margin: 0 auto;
    width: 90%;
    max-width: 1200px;
    padding: 20px 0;
}

.content-area {
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.page-content,
.entry-content {
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
    background-color: #f5f5f5;
    font-size: 16px;
    text-align: left;
    padding: 20px;
    color: #000040;
    font-family: Arial, Helvetica, sans-serif;
    border-radius: 15px;
    box-shadow: 0 0 7px 0 rgba(12, 3, 25, 0.8);
    margin-bottom: 15px;
}

.entry-content h2 {
    color: #000040;
    font-size: 22px;
    margin-bottom: 10px;
}

.entry-content p {
    padding: 0 1%;
    margin-bottom: 15px;
}

.page-title,
.entry-title {
    font-size: 24px;
    color: #000040;
    margin-bottom: 15px;
    text-align: center;
}

.entry-title a {
    color: #770B0B;
    text-decoration: none;
}

.entry-title a:hover {
    color: #B91818;
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.widget-area {
    width: 25%;
    float: right;
    padding: 0 0 0 20px;
}

.widget {
    margin-bottom: 20px;
    padding: 15px;
    background: #FEFCF9;
    border: 1px #00004a solid;
    border-radius: 15px;
    box-shadow: 0 0 7px 0 rgba(12, 3, 25, 0.8);
}

.widget-title {
    font-size: 18px;
    color: #000040;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px #DBDC85 solid;
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.widget ul li a {
    color: #770B0B;
    font-weight: bold;
    text-decoration: none;
}

.widget ul li a:hover {
    color: #B91818;
}

/* ==========================================================================
   State Archive Page
   ========================================================================== */
.state-archive-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 0;
}

.state-card {
    width: calc(33.333% - 10px);
    background: #FEFCF9;
    border: 4px #DBDC85 solid;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.state-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, 0.5);
}

.state-card h3 {
    font-size: 18px;
    color: #000040;
    margin-bottom: 10px;
}

.state-card a {
    color: #770B0B;
    font-weight: bold;
    font-size: 16px;
}

.state-card a:hover {
    color: #B91818;
}

/* City list within state */
.city-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

.city-list li {
    padding: 5px 0;
}

.city-list li a {
    color: #B91818;
    font-weight: bold;
    font-size: 14px;
}

/* ==========================================================================
   Single State/City Page
   ========================================================================== */
.location-header {
    text-align: center;
    padding: 20px;
    background: #291322;
    color: #FFF9B1;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 0 25px 0 rgba(12, 3, 25, 0.8);
    border: 2px #DBDC85 solid;
}

.location-header h1 {
    font-size: 28px;
    width: 100%;
    text-align: center;
    padding: 0;
}

.location-header p {
    color: #F3F4BD;
    font-size: 16px;
}

.breadcrumbs {
    width: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: bold;
    color: #00001a;
    padding: 10px 0;
    margin-bottom: 15px;
}

.breadcrumbs a {
    color: #00001a;
    text-decoration: underline;
}

.breadcrumbs a:hover {
    color: #770B0B;
}

/* Equipment listing sections */
.equipment-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
}

.equipment-category {
    width: calc(50% - 8px);
    background: #FEFCF9;
    border: 1px #00004a solid;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 0 7px 0 rgba(12, 3, 25, 0.8);
}

.equipment-category h3 {
    color: #000040;
    font-size: 18px;
    margin-bottom: 8px;
    text-align: left;
    width: 100%;
}

.equipment-category ul {
    list-style: none;
    padding: 0;
}

.equipment-category ul li {
    padding: 4px 0;
}

.equipment-category ul li a {
    color: #770B0B;
    font-weight: bold;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    width: 100%;
    margin: 25px 0 0 0;
    font-size: 18px;
    background-color: #333;
    background-image: url('images/dgrey062.gif');
    color: #F3F4BD;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    text-align: center;
    overflow: hidden;
    border-top: 5px #B91818 solid;
    border-bottom: 5px #B91818 solid;
    padding: 20px 0;
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
    overflow: hidden;
    padding: 10px 20px;
}

.footer-message {
    font-size: 16px;
    color: #F3F4BD;
    margin-bottom: 15px;
    font-style: italic;
}

.footer-contact {
    font-size: 16px;
    color: #F3F4BD;
}

.footer-contact a {
    color: #FFFFDB;
    text-decoration: none;
    font-weight: bold;
}

.footer-contact a:hover {
    text-decoration: underline;
    color: #fff;
}

.footer-nav {
    margin: 15px 0;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 0;
}

.footer-nav ul li a {
    font-size: 14px;
    color: #FFFFDB;
    font-weight: bold;
    text-decoration: none;
}

.footer-nav ul li a:hover {
    text-decoration: underline;
}

.site-info {
    margin-top: 15px;
    font-size: 12px;
    color: #aaa;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media screen and (max-width: 768px) {
    .header-images {
        width: 95%;
    }

    .header-images .site-logo {
        width: 50%;
    }

    .header-images .header-thumb {
        width: 12%;
    }

    .header-callout {
        flex-direction: column;
        text-align: center;
    }

    .header-callout h1 {
        width: 100%;
        text-align: center;
        padding: 5px;
        font-size: 12px;
    }

    .header-phone {
        text-align: center;
        padding: 5px;
    }

    .state-grid li {
        width: 30%;
        font-size: 0.75em;
        padding: 8px 2px;
    }

    .state-card {
        width: 100%;
    }

    .equipment-category {
        width: 100%;
    }

    .site-content {
        width: 95%;
    }

    .widget-area {
        width: 100%;
        float: none;
        padding: 0;
    }

    .main-navigation ul li {
        width: 45%;
    }
}

@media screen and (max-width: 490px) {
    .header-phone {
        display: none;
    }

    .header-images .header-thumb {
        width: 9%;
    }

    .state-grid li {
        width: 47%;
    }

    .main-navigation ul li {
        width: 95%;
    }

    .header-tagline {
        font-size: 10px;
    }

    .header-message {
        font-size: 12px;
    }
}
