/* ============================================================
   The Plumbing Directory — Shared Design System
   Matched to Brilliant Directories theme
   ============================================================
   Color Palette (from BD site):
     Primary:        #205081  rgb(32, 80, 129)
     Accent Cyan:    #27c5f4  rgb(39, 197, 244)
     CTA Red:        #d9534f  rgb(217, 83, 79)
     CTA Green:      #2ab27b  rgb(42, 178, 123)
     Nav Dark:       #231f20  rgb(35, 31, 32)
     Text:           #292929  rgb(41, 41, 41)
     Text Muted:     #777777
     Link:           #337ab7  rgb(51, 122, 183)
     Link Hover:     #23527c  rgb(35, 82, 124)
     Module BG:      #fafafa  rgb(250, 250, 250)
     Border:         #eeeeee  rgb(238, 238, 238)
     Footer BG:      #232323  rgb(35, 35, 35)
     Footer Text:    #efefef  rgb(239, 239, 239)
     Body Font:      'Open Sans', sans-serif
     Nav Font:       'Archivo Black', sans-serif
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */

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

html {
    background: #232323;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #292929;
    background-color: #fff;
}

a {
    color: #337ab7;
    text-decoration: none;
    transition: color 0.3s;
}

a:hover {
    color: #23527c;
    text-decoration: underline;
}

/* ── Layout ───────────────────────────────────────────────── */

.container {
    max-width: 1170px;
    margin: 0 auto;
    padding: 0 15px;
}

main {
    padding: 30px 0 40px;
}

/* ── Header ──────────────────────────────────────────────── */

.header {
    background: #fff;
    border-bottom: none;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    opacity: 0.95;
}

.logo-img {
    height: 80px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.btn:hover {
    text-decoration: none;
}

.btn-get-listed {
    background-color: #27c5f4;
    border-color: #27c5f4;
    color: #fff !important;
}

.btn-get-listed:hover {
    background-color: rgba(39, 197, 244, 0.9);
    color: #fff !important;
}

/* ── Main Navigation (Cyan Bar) ──────────────────────────── */

.main-nav {
    background-color: #27c5f4;
}

.main-nav .container {
    display: flex;
    align-items: center;
    position: relative;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: #231f20;
    font-size: 22px;
    cursor: pointer;
    padding: 12px 0;
}

.nav-list {
    display: flex;
    list-style: none;
    width: 100%;
}

.nav-list li {
    flex: 1;
    text-align: center;
}

.nav-list li a {
    display: block;
    padding: 14px 20px;
    color: #231f20;
    font-family: 'Archivo Black', sans-serif;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-list li a:hover {
    color: #000;
    text-decoration: none;
}

/* ── Breadcrumbs ──────────────────────────────────────────── */

.breadcrumbs {
    background: #fff;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.breadcrumbs ul {
    list-style: none;
    display: flex;
    gap: 0;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: #999;
    font-size: 13px;
}

.breadcrumbs a {
    color: rgba(119, 119, 119, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumbs .current {
    color: #777;
}

/* ── Typography ───────────────────────────────────────────── */

.h1, .h2, .h3, .h4, .h5, .h6, h1, h2, h3, h4, h5, h6 {
    font-family: 'Open Sans', sans-serif;
}

h1 {
    font-size: 34px;
    color: #3e3e3e;
    margin-bottom: 20px;
    padding-bottom: 0;
    border-bottom: none;
    font-weight: 600;
}

h2 {
    font-size: 28px;
    color: #3e3e3e;
    margin-top: 30px;
    margin-bottom: 16px;
    padding-left: 0;
    border-left: none;
    font-weight: 600;
}

h3 {
    color: #3e3e3e;
    font-size: 18px;
    margin-bottom: 8px;
    font-weight: 600;
}

h4 {
    color: #3e3e3e;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.intro-text {
    color: #292929;
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}

/* ── Content Sections (module/well style) ────────────────── */

.content-section {
    background: #fafafa;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 {
    margin: 0;
    font-size: 22px;
}

/* ── Category Description Block ───────────────────────────── */

.category-description {
    background: #fafafa;
    padding: 20px 25px;
    margin-bottom: 25px;
    border-radius: 4px;
    border: 1px solid #eee;
    border-left: 4px solid #205081;
}

.category-description p {
    color: #292929;
    font-size: 14px;
    line-height: 1.8;
    margin: 0;
}

/* ── Item Grid & Cards ────────────────────────────────────── */

.item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.item-card {
    background: #fff;
    padding: 20px;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.item-card:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-color: #ddd;
}

.item-card h3 {
    color: #3e3e3e;
    font-size: 16px;
    margin-bottom: 8px;
}

.item-card h3 a {
    color: #337ab7;
}

.item-card h3 a:hover {
    color: #23527c;
}

.item-card p {
    color: #292929;
    font-size: 13px;
    line-height: 1.6;
}

.item-card a {
    display: inline-block;
    margin-top: 8px;
    color: #337ab7;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: color 0.2s;
}

.item-card a:hover {
    color: #23527c;
    text-decoration: underline;
}

/* ── Brand Meta (founded, buyer type) ─────────────────────── */

.brand-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 12px;
}

.brand-meta-item {
    display: flex;
    align-items: center;
    color: #205081;
    font-weight: 600;
}

.brand-meta-item::before {
    content: "\2022";
    margin-right: 6px;
    color: #205081;
}

.brand-meta-item:first-child::before {
    content: none;
}

/* ── Read Time Badge ──────────────────────────────────────── */

.read-time {
    display: inline-block;
    font-size: 12px;
    color: #999;
    margin-top: 6px;
    font-style: italic;
}

.read-time::before {
    content: "\01F4D6 ";
}

/* ── View All Button ──────────────────────────────────────── */

.view-all-btn {
    display: inline-block;
    padding: 8px 20px;
    background: #205081;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
    font-size: 13px;
}

.view-all-btn:hover {
    background: rgba(32, 80, 129, 0.9);
    color: #fff;
    text-decoration: none;
}

/* ── Table of Contents ────────────────────────────────────── */

.toc-section {
    background: #fafafa;
    padding: 25px;
    margin-bottom: 25px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.toc-title {
    font-size: 18px;
    color: #3e3e3e;
    margin-bottom: 16px;
    text-align: center;
    font-weight: 600;
}

.toc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
}

.toc-link {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #fff;
    color: #337ab7;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    border: 1px solid #eee;
}

.toc-link:hover {
    background: #205081;
    color: #fff;
    text-decoration: none;
    border-color: #205081;
}

.toc-link::before {
    content: "\25B8";
    margin-right: 8px;
    font-size: 14px;
}

/* ── FAQ List ─────────────────────────────────────────────── */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

.faq-item {
    background: #fff;
    padding: 18px;
    border-radius: 4px;
    border: 1px solid #eee;
}

.faq-item h3 {
    color: #3e3e3e;
    font-size: 15px;
    margin-bottom: 8px;
}

.faq-item p {
    color: #292929;
    font-size: 13px;
    line-height: 1.6;
}

/* ── Hub Page Styles ──────────────────────────────────────── */

.hub-hero {
    background: linear-gradient(135deg, rgba(32, 80, 129, 0.9) 0%, rgba(32, 80, 129, 0.8) 100%);
    color: #fff;
    padding: 40px 30px;
    border-radius: 4px;
    margin-bottom: 25px;
    text-align: center;
}

.hub-hero h1 {
    color: #fff;
    border-bottom: none;
    margin-bottom: 12px;
    padding-bottom: 0;
    font-weight: 600;
}

.hub-hero p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.hub-card {
    background: #fafafa;
    padding: 22px;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: all 0.2s ease;
}

.hub-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border-color: #ddd;
}

.hub-card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #3e3e3e;
}

.hub-card .emoji {
    font-size: 1.8rem;
    margin-bottom: 10px;
    display: block;
}

.hub-card p {
    color: #292929;
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.hub-card a.card-link {
    display: inline-block;
    color: #337ab7;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.hub-card a.card-link:hover {
    color: #23527c;
    text-decoration: underline;
}

/* ── Brand Overview Page ──────────────────────────────────── */

.brand-header {
    background: #fafafa;
    padding: 25px;
    border-radius: 4px;
    border: 1px solid #eee;
    margin-bottom: 25px;
}

.brand-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 16px;
}

.brand-info-item {
    padding: 12px 14px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #eee;
}

.brand-info-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.brand-info-value {
    font-size: 14px;
    color: #292929;
    font-weight: 600;
}

/* ── List Page Styles (category sub-pages) ────────────────── */

.list-intro {
    background: #fafafa;
    padding: 20px 25px;
    border-radius: 4px;
    border: 1px solid #eee;
    margin-bottom: 25px;
}

.list-intro p {
    color: #292929;
    font-size: 14px;
    line-height: 1.7;
}

.list-count {
    display: inline-block;
    background: #205081;
    color: #fff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* ── Empty State ──────────────────────────────────────────── */

.empty-state {
    text-align: center;
    padding: 50px 25px;
    color: #999;
}

.empty-state p {
    font-size: 14px;
    margin-top: 8px;
}

/* ── Footer ──────────────────────────────────────────────── */

.footer {
    margin-top: 40px;
}

.footer-newsletter {
    background: #2ab27b;
    padding: 12px 0;
    text-align: center;
}

.footer-newsletter .container {
    display: flex;
    justify-content: center;
    gap: 0;
}

.btn-newsletter {
    background: #2ab27b;
    border: 2px solid #fff;
    border-right: 1px solid #fff;
    border-radius: 4px 0 0 4px;
    color: #fff !important;
    padding: 10px 24px;
    font-weight: 600;
    font-size: 14px;
}

.btn-newsletter:hover {
    background: rgba(42, 178, 123, 0.85);
    color: #fff !important;
}

.btn-newsletter-subscribe {
    background: #fff;
    border: 2px solid #fff;
    border-left: 1px solid #eee;
    border-radius: 0 4px 4px 0;
    color: #2ab27b !important;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 14px;
}

.btn-newsletter-subscribe:hover {
    background: #f5f5f5;
    color: #2ab27b !important;
}

.footer-main {
    background: #232323;
    color: #efefef;
    padding: 35px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.footer-col p {
    font-size: 13px;
    line-height: 1.6;
    color: #efefef;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 6px;
}

.footer-col ul a {
    color: #efefef;
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: #fff;
    text-decoration: none;
}

.footer-cta {
    background: #232323;
    padding: 15px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-cta-inner {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-mail-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2ab27b;
    color: #fff;
    font-size: 18px;
}

.btn-cta-listed {
    background: #d9534f;
    border-color: #d9534f;
    color: #fff !important;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
}

.btn-cta-listed:hover {
    background: rgba(217, 83, 79, 0.9);
    color: #fff !important;
}

.footer-bottom {
    background: #1a1a1a;
    padding: 14px 0;
}

.footer-bottom .container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    color: rgba(239,239,239,0.7);
}

.footer-bottom span {
    color: rgba(239,239,239,0.7);
}

.footer-bottom a {
    color: rgba(239,239,239,0.7);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-bottom a:hover {
    color: #fff;
    text-decoration: none;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 1100px) {
    .nav-list li a {
        padding: 12px 10px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 22px;
    }

    .header-inner {
        padding: 15px 0;
    }

    .logo-img {
        height: 60px;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        text-align: left;
        border-top: 1px solid rgba(0,0,0,0.1);
    }

    .nav-list li a {
        padding: 12px 15px;
    }

    .item-grid {
        grid-template-columns: 1fr;
    }

    .hub-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .view-all-btn {
        width: 100%;
        text-align: center;
    }

    .toc-grid {
        grid-template-columns: 1fr;
    }

    .brand-info-grid {
        grid-template-columns: 1fr;
    }

    .hub-hero {
        padding: 25px 15px;
    }

    .hub-hero h1 {
        font-size: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-newsletter .container {
        flex-direction: column;
        gap: 0;
    }

    .btn-newsletter {
        border-radius: 4px 4px 0 0;
        border-right: 2px solid #fff;
        border-bottom: none;
    }

    .btn-newsletter-subscribe {
        border-radius: 0 0 4px 4px;
        border-left: 2px solid #fff;
        border-top: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .content-section {
        padding: 18px;
    }

    h1 {
        font-size: 22px;
    }

    .hub-card {
        padding: 16px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }

    .btn-cta-listed {
        padding: 10px 24px;
        font-size: 14px;
    }
}
