/*
Theme Name: BestInLocal
Theme URI: https://example.com/bestinlocal
Author: OpenAI
Author URI: https://openai.com
Description: A clean, responsive WordPress theme for local businesses, directories, and community-focused websites.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bestinlocal
Tags: blog, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

:root {
  --bil-bg: #ffffff;
  --bil-surface: #f7f8fb;
  --bil-text: #1e293b;
  --bil-muted: #64748b;
  --bil-primary: #2563eb;
  --bil-primary-dark: #1d4ed8;
  --bil-border: #e2e8f0;
  --bil-radius: 16px;
  --bil-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --bil-max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bil-bg);
  color: var(--bil-text);
  line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--bil-primary); text-decoration: none; }
a:hover { color: var(--bil-primary-dark); }
.container { width: min(100% - 2rem, var(--bil-max)); margin-inline: auto; }
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #f1f5f9; clip: auto !important; clip-path: none;
  color: #0f172a; display: block; height: auto; left: 5px; line-height: normal;
  padding: 12px 16px; text-decoration: none; top: 5px; width: auto; z-index: 100000;
}

.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 1rem;
}
.site-branding { display: flex; align-items: center; gap: .9rem; }
.site-title {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin: 0;
}
.site-title a { color: var(--bil-text); }
.site-description { margin: 0; color: var(--bil-muted); font-size: .95rem; }
.custom-logo-link img { max-height: 52px; width: auto; }

.main-navigation ul {
  list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; align-items: center;
}
.main-navigation a {
  color: var(--bil-text); font-weight: 600; padding: .6rem .8rem; border-radius: 999px;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a { background: var(--bil-surface); }

.hero {
  padding: 5rem 0 3.5rem;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}
.hero__grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1.05; margin: 0 0 1rem;
}
.hero p { color: var(--bil-muted); font-size: 1.1rem; margin: 0 0 1.5rem; }
.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: var(--bil-primary); color: #fff; border: 0; border-radius: 999px;
  padding: .9rem 1.2rem; font-weight: 700; cursor: pointer; box-shadow: var(--bil-shadow);
}
.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover { background: var(--bil-primary-dark); color: #fff; }
.button--secondary {
  background: transparent; color: var(--bil-text); border: 1px solid var(--bil-border); box-shadow: none;
}
.button-group { display: flex; flex-wrap: wrap; gap: .85rem; }
.hero-card {
  background: #fff; border: 1px solid var(--bil-border); border-radius: 24px; padding: 1.5rem; box-shadow: var(--bil-shadow);
}
.hero-card__item + .hero-card__item { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--bil-border); }
.section { padding: 4.5rem 0; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 .75rem;
}
.section-copy { color: var(--bil-muted); max-width: 700px; }

.cards {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem;
}
.card, .post-card, .widget {
  background: #fff; border: 1px solid var(--bil-border); border-radius: var(--bil-radius);
  padding: 1.25rem; box-shadow: var(--bil-shadow);
}
.card h3, .post-card h2 { margin-top: 0; }
.card p, .post-card p { color: var(--bil-muted); }

.content-wrap {
  display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; padding: 3rem 0 4rem;
}
.content-wrap.no-sidebar { grid-template-columns: 1fr; }
.entry-title, .page-title {
  font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; margin: 0 0 1rem;
}
.entry-meta, .archive-description, .post-meta { color: var(--bil-muted); font-size: .95rem; }
.article-card + .article-card { margin-top: 1.25rem; }
.entry-content > * + * { margin-top: 1rem; }
.entry-content ul, .entry-content ol { padding-left: 1.2rem; }
blockquote {
  border-left: 4px solid var(--bil-primary); margin: 1.5rem 0; padding: .75rem 1rem; background: #eff6ff;
}

.widget-title { margin-top: 0; font-size: 1.1rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li + li { margin-top: .6rem; }

.site-footer {
  background: #0f172a; color: rgba(255,255,255,.82); padding: 2.5rem 0; margin-top: 2rem;
}
.site-footer a { color: #fff; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 1.5rem;
}
.footer-title { color: #fff; margin-top: 0; }
.footer-note {
    font-size: 17px;
    color: rgba(255, 255, 255, .7);
    text-align: center;
    padding: 10px;
    background: #000000;
}
.search-form {
  display: flex; gap: .5rem;
}
.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
textarea,
select {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--bil-border); background: #fff;
  color: var(--bil-text);
}

.comment-list { list-style: none; padding: 0; }
.comment-body { border: 1px solid var(--bil-border); border-radius: 14px; padding: 1rem; margin-bottom: 1rem; }

@media (max-width: 960px) {
  .hero__grid,
  .content-wrap,
  .footer-grid,
  .cards { grid-template-columns: 1fr; }
  .main-navigation ul { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 640px) {
  .site-header__inner { flex-direction: column; justify-content: center; padding: .8rem 0; }
  .hero { padding-top: 3rem; }
  .button-group { flex-direction: column; align-items: flex-start; }
}



.bil-header-search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bil-header-search-form input {
    padding: 9px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-width: 220px;
}

.bil-header-search-form button {
    padding: 9px 16px;
    background: #13287E;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.bil-search-only-form {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.bil-search-only-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.bil-search-only-form button {
    padding: 12px 24px;
    background: #13287E;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.bil-listings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.bil-listing-card {
    border: 1px solid #ddd;
    padding: 18px;
    border-radius: 8px;
    background: #fff;
}

.bil-listing-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.bil-view-btn {
    display: inline-block;
    margin-top: 10px;
    color: #13287E;
    font-weight: 600;
}

@media(max-width: 768px) {
    .bil-header-search-form,
    .bil-search-only-form {
        flex-direction: column;
        align-items: stretch;
    }

    .bil-listings {
        grid-template-columns: 1fr;
    }
}



.location-card {
    height: 145px !important;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 10px;
    text-align: left;
    align-items: end;
    display: flex;
    border-radius: 8px;
    position: relative;
}
.location-card::After {
    content: "";
    background: #00000073;
    width: 100%;
    height: 100%;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    z-index: 0;
    border-radius: 8px;
}
.location-card h3 {
    color: white;
    font-size: 21px;
    text-decoration: none !important;
    z-index: 2;
}

.serviceCategoryBx {
    text-align: center;
    align-items: center;
    display: block;
}
.serviceCategoryImg {
    width: 125px;
    height: 125px;
    border-radius: 200px;
    border: 1px solid #f4f4f4;
    margin: auto;
}

.serviceCategoryBx h3 {
    color: #13287e;
    font-size: 18px;
    text-decoration: none !important;
    margin-top: 16px;
    font-weight: 600;
}

.serviceCategoryList {
    display: flex;
    flex-wrap: wrap;
    gap: 37px;
}

.serviceCategoryItem {
    list-style: none;
}

.stateCitiesList {
    display: flex;
    gap: 17px;
    flex-wrap: wrap;
    padding: 0;
    margin: 0px;
}
.stateCitiesList a {
    color: #000000;
    font-size: 15px;
    font-weight: 500;
    line-height: 26px;
    background: #D9D9D9;
    border-radius: 4px;
    padding: 4px 11px;
    text-decoration: none;
}
.stateCitiesList li {
    text-decoration: none;
    list-style: none;
}
.stateCitiesList i {
    color: #13287e;
}
.category-heading {
    color: white;
    background: #13287e;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
    padding: 13px;
    font-size: 20px;
    text-align: center;
    letter-spacing: 1px;
}
.service-category-group {
    border: 1px solid #f4f4f4;
    border-top-right-radius: 10px;
    border-top-left-radius: 10px;
}
.listing-card a {
    color: #000000;
    font-size: 18px;
    text-decoration: none;
}
.listing-card i {
    color: #13287e;
}
.listing-card {
    list-style: none;
}
.listings {
    margin: 0px;
    display: flex;
    gap: 10px;
    flex-direction: column;
    padding: 16px;
}