/* -- Commission Express — Single Franchise Page (single.css v1.0.2) -- */

.cexp-single-wrap {
    --cexp-primary: #0d2b4e;
    --cexp-primary-hov: #1a3d6b;
    --cexp-accent: #c8921a;
    --cexp-accent2: #e5a820;
    --cexp-bg: #fafaf7;
    --cexp-card-bg: #ffffff;
    --cexp-text: #0d2b4e;
    --cexp-text-mid: #3d5a7a;
    --cexp-text-muted: #7a90a8;
    --cexp-border: #e2e8f0;
    --cexp-shadow: 0 2px 12px rgba(13, 43, 78, 0.08);

    font-family:
        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--cexp-text);
    background: var(--cexp-bg);
}

/* -- HERO -- */
.cexp-hero {
    background: var(--cexp-primary);
    background-image: linear-gradient(
        135deg,
        var(--cexp-primary) 0%,
        var(--cexp-primary-hov) 100%
    );
    background-size: cover;
    background-position: center;
    position: relative;
    padding: 40px 40px 36px;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
}

.cexp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7, 26, 48, 0.5) 0%,
        rgba(7, 26, 48, 0.8) 100%
    );
}

.cexp-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.cexp-breadcrumb {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.15s;
}

.cexp-breadcrumb:hover {
    color: var(--cexp-accent2);
}

.cexp-hero-title {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.2;
}

.cexp-hero-location {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cexp-hero-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    background: rgba(200, 146, 26, 0.25);
    color: var(--cexp-accent2);
    border: 1px solid rgba(200, 146, 26, 0.35);
    padding: 3px 10px;
}

/* -- 4 action buttons row -- */
.cexp-hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* -- SHARED BUTTONS -- */
.cexp-btn {
    display: inline-block;
    padding: 9px 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.2;
    transition: all 0.18s;
    white-space: nowrap;
}

/* -- Primary: solid navy -- */
.cexp-btn-primary {
    background: var(--cexp-primary);
    color: #fff;
    border-color: var(--cexp-primary);
}
.cexp-btn-primary:hover {
    background: var(--cexp-accent);
    border-color: var(--cexp-accent);
    color: var(--cexp-primary);
}

/* -- Accent: solid gold (Apply Now in hero) -- */
.cexp-btn-accent {
    background: var(--cexp-accent);
    color: #fff;
    border-color: var(--cexp-accent);
    padding: 10px 22px;
    font-size: 13px;
}
.cexp-btn-accent:hover {
    background: var(--cexp-accent2);
    border-color: var(--cexp-accent2);
    color: #fff;
}

/* -- Outline: transparent with white border (hero secondary buttons) -- */
.cexp-btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
    padding: 10px 20px;
    font-size: 12px;
}
.cexp-btn-outline:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

/* -- Full-width for sidebar -- */
.cexp-btn-full {
    display: block;
    text-align: center;
    width: 100%;
}

/* -- Secondary: outlined navy (sidebar) -- */
.cexp-btn-secondary {
    background: transparent;
    color: var(--cexp-primary);
    border-color: var(--cexp-border);
}
.cexp-btn-secondary:hover {
    border-color: var(--cexp-accent);
    color: var(--cexp-accent);
}

/* -- CONTENT LAYOUT -- */
.cexp-content-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 32px 40px 60px;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 28px;
    align-items: start;
}

/* -- SECTIONS (main column) -- */
.cexp-section {
    background: var(--cexp-card-bg);
    border: 1px solid var(--cexp-border);
    padding: 26px 28px;
    margin-bottom: 18px;
    box-shadow: var(--cexp-shadow);
}

.cexp-section-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--cexp-primary);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--cexp-border);
}

/* -- HP content typography -- */
.cexp-hp-content h1,
.cexp-hp-content h2,
.cexp-hp-content h3 {
    color: var(--cexp-primary);
    margin-top: 0;
}
.cexp-hp-content h2 {
    font-size: 20px;
    border-left: 3px solid var(--cexp-accent);
    padding-left: 12px;
}
.cexp-hp-content p {
    line-height: 1.7;
    color: var(--cexp-text-mid);
    margin-bottom: 12px;
}
.cexp-hp-content ul,
.cexp-hp-content ol {
    padding-left: 20px;
    color: var(--cexp-text-mid);
    line-height: 1.8;
    margin-bottom: 12px;
}
.cexp-hp-content a {
    color: var(--cexp-accent);
    text-decoration: none;
}
.cexp-hp-content a:hover {
    color: var(--cexp-primary);
}

/* -- Icons grid -- */
.cexp-icons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 18px;
}
.cexp-icon-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.cexp-icon-dot {
    width: 46px;
    height: 46px;
    background: rgba(200, 146, 26, 0.1);
    border: 1.5px solid rgba(200, 146, 26, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cexp-accent);
    flex-shrink: 0;
}
.cexp-icon-text {
    font-size: 13px;
    color: var(--cexp-text-mid);
    line-height: 1.6;
}

/* -- TABS -- */
.cexp-tabs-section {
    padding: 0;
    overflow: hidden;
}
.cexp-tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--cexp-border);
}
.cexp-tab-btn {
    padding: 13px 22px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--cexp-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}
.cexp-tab-btn:hover {
    color: var(--cexp-primary);
}
.cexp-tab-btn.active {
    color: var(--cexp-primary);
    border-bottom-color: var(--cexp-accent);
}
.cexp-tab-panel {
    display: none;
    padding: 22px 28px;
    color: var(--cexp-text-mid);
    line-height: 1.7;
}
.cexp-tab-panel.active {
    display: block;
}
.cexp-tab-panel p {
    margin-bottom: 12px;
}
.cexp-tab-panel h2,
.cexp-tab-panel h3 {
    color: var(--cexp-primary);
    margin-bottom: 10px;
}

/* -- RATES GRID -- */
.cexp-rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.cexp-rate-card {
    background: var(--cexp-bg);
    border: 1px solid var(--cexp-border);
    border-top: 3px solid var(--cexp-accent);
    padding: 16px 12px;
    text-align: center;
}
.cexp-rate-value {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--cexp-primary);
    margin-bottom: 5px;
    line-height: 1;
}
.cexp-rate-label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--cexp-text-muted);
}

/* -- SIDEBAR -- */
.cexp-content-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cexp-sidebar-card {
    background: var(--cexp-card-bg);
    border: 1px solid var(--cexp-border);
    padding: 18px;
    box-shadow: var(--cexp-shadow);
}

.cexp-sidebar-card-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cexp-text-muted);
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cexp-border);
}

.cexp-contact-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--cexp-text-mid);
}

.cexp-contact-row.location {
    align-items: flex-start;
}

.cexp-contact-row p {
    margin: 0;
    padding: 0;
    line-height: 1.5;
}
.cexp-contact-row a {
    color: var(--cexp-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s;
}
.cexp-contact-row a:hover {
    color: var(--cexp-accent);
}
.cexp-contact-icon {
    color: var(--cexp-accent);
    flex-shrink: 0;
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}
.cexp-small-link {
    font-size: 11px;
    color: var(--cexp-accent) !important;
    font-weight: 600 !important;
    display: inline-block;
    margin-top: 4px;
}

/* -- Serving states -- */
.cexp-serving-states {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--cexp-border);
    align-items: center;
}
.cexp-serving-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cexp-text-muted);
    flex-basis: 100%;
    margin-bottom: 4px;
}
.cexp-state-tag {
    background: var(--cexp-primary);
    color: var(--cexp-accent2);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
}

.cexp-sidebar-actions {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--cexp-border);
}

/* -- Sidebar image -- */
.cexp-sidebar-img-card {
    padding: 0;
    overflow: hidden;
}
.cexp-sidebar-img-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* -- Meta card -- */
.cexp-sidebar-meta {
    padding: 14px 18px;
}
.cexp-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 0;
    border-bottom: 1px solid var(--cexp-border);
    font-size: 12px;
}
.cexp-meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.cexp-meta-label {
    color: var(--cexp-text-muted);
}
.cexp-meta-value {
    font-weight: 600;
    color: var(--cexp-primary);
}

/* -- RESPONSIVE -- */
@media (max-width: 768px) {
    .cexp-hero {
        padding: 28px 18px 26px;
    }
    .cexp-hero-actions {
        gap: 6px;
    }
    .cexp-btn-outline,
    .cexp-btn-accent {
        padding: 8px 14px;
        font-size: 11px;
    }
    .cexp-content-wrap {
        grid-template-columns: 1fr;
        padding: 18px 16px 40px;
    }
    .cexp-content-sidebar {
        position: static;
    }
    .cexp-icons-grid {
        grid-template-columns: 1fr;
    }
    .cexp-rates-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
