/*
Theme Name: Triangle Service Theme
Theme URI: https://triangleservice.com
Description: Custom theme for Triangle Service — a modern local home service guide for the Triangle area of North Carolina.
Version: 1.0.0
Author: Triangle Service
Text Domain: triangle-service-theme
*/

/* =============================================
   CSS CUSTOM PROPERTIES
   ============================================= */
:root {
    --color-navy:      #0f2240;
    --color-navy-dark: #091929;
    --color-green:     #2e7d32;
    --color-green-lt:  #4caf50;
    --color-blue:      #1565c0;
    --color-blue-lt:   #1976d2;
    --color-teal:      #00695c;
    --color-orange:    #e65100;
    --color-amber:     #f57c00;
    --color-cta:       #e65100;
    --color-cta-hover: #bf360c;
    --color-white:     #ffffff;
    --color-gray-50:   #f9fafb;
    --color-gray-100:  #f3f4f6;
    --color-gray-200:  #e5e7eb;
    --color-gray-400:  #9ca3af;
    --color-gray-600:  #4b5563;
    --color-gray-800:  #1f2937;
    --color-text:      #1f2937;
    --color-text-muted:#6b7280;

    --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --radius-sm:   6px;
    --radius-md:   10px;
    --radius-lg:   16px;
    --radius-xl:   24px;

    --shadow-sm:   0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
    --shadow-md:   0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
    --shadow-lg:   0 10px 30px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
    --shadow-card: 0 2px 8px rgba(0,0,0,.08);

    --max-width: 1200px;
    --gap:       24px;
    --section-pad: 72px;
}

/* =============================================
   RESET & BASE
   ============================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-navy);
    margin-top: 0;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { margin-top: 0; }

ul, ol { padding-left: 1.5em; }

/* =============================================
   LAYOUT
   ============================================= */
.tsc-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.tsc-section {
    padding: var(--section-pad) 0;
}

.tsc-section--alt {
    background: var(--color-gray-50);
}

.tsc-section--dark {
    background: var(--color-navy);
    color: var(--color-white);
}

.tsc-section--dark h2,
.tsc-section--dark h3 {
    color: var(--color-white);
}

.tsc-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.tsc-section-header h2 {
    margin-bottom: 12px;
}

.tsc-section-header p {
    color: var(--color-text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.tsc-site-header {
    background: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.tsc-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
    gap: 24px;
}

.tsc-site-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-navy) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.tsc-site-logo span.accent { color: var(--color-green); }

.tsc-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tsc-nav > li > a {
    color: var(--color-gray-800);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: background .15s, color .15s;
    text-decoration: none;
    white-space: nowrap;
}

.tsc-nav > li > a:hover {
    background: var(--color-gray-100);
    color: var(--color-navy);
}

.tsc-nav-cta a {
    background: var(--color-cta) !important;
    color: var(--color-white) !important;
    border-radius: var(--radius-sm) !important;
    padding: 8px 16px !important;
    font-weight: 600 !important;
}

.tsc-nav-cta a:hover {
    background: var(--color-cta-hover) !important;
}

/* Mobile nav toggle */
.tsc-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--color-navy);
}

/* =============================================
   BUTTONS
   ============================================= */
.tsc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all .2s;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
}

.tsc-btn--primary {
    background: var(--color-cta);
    color: var(--color-white);
    border-color: var(--color-cta);
}
.tsc-btn--primary:hover {
    background: var(--color-cta-hover);
    border-color: var(--color-cta-hover);
    color: var(--color-white);
    text-decoration: none;
}

.tsc-btn--secondary {
    background: transparent;
    color: var(--color-navy);
    border-color: var(--color-gray-200);
}
.tsc-btn--secondary:hover {
    background: var(--color-gray-100);
    color: var(--color-navy);
    text-decoration: none;
}

.tsc-btn--outline-white {
    background: transparent;
    color: var(--color-white);
    border-color: rgba(255,255,255,0.6);
}
.tsc-btn--outline-white:hover {
    background: rgba(255,255,255,0.15);
    color: var(--color-white);
    text-decoration: none;
}

.tsc-btn--large {
    padding: 14px 28px;
    font-size: 1.05rem;
}

.tsc-btn--full { width: 100%; justify-content: center; }

/* =============================================
   HERO SECTION
   ============================================= */
.tsc-hero {
    background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-navy) 50%, #1a3a5c 100%);
    color: var(--color-white);
    padding: 80px 0 72px;
    position: relative;
    overflow: hidden;
}

.tsc-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.tsc-hero-inner {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.tsc-hero-eyebrow {
    display: inline-block;
    background: rgba(46,125,50,0.3);
    color: #a5d6a7;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(165,214,167,0.3);
}

.tsc-hero h1 {
    color: var(--color-white);
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 20px;
    font-weight: 800;
}

.tsc-hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255,255,255,0.8);
    margin-bottom: 40px;
    line-height: 1.7;
}

.tsc-hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

/* Search widget */
.tsc-search-widget {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 8px;
    display: flex;
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.tsc-search-widget select {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-white);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

.tsc-search-widget select:focus {
    outline: none;
    border-color: var(--color-blue);
}

.tsc-search-widget .tsc-btn {
    flex-shrink: 0;
}

/* =============================================
   FEATURED SERVICE CARDS (3 big ones)
   ============================================= */
.tsc-featured-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.tsc-featured-service-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--color-gray-200);
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
}

.tsc-featured-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
    color: var(--color-text);
}

.tsc-fsc-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.tsc-fsc-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 10px;
}

.tsc-fsc-desc {
    color: var(--color-text-muted);
    font-size: 0.93rem;
    margin-bottom: 20px;
    flex: 1;
}

.tsc-fsc-link {
    color: var(--color-cta);
    font-weight: 600;
    font-size: 0.9rem;
}

/* =============================================
   SERVICE GRID (small cards)
   ============================================= */
.tsc-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.tsc-service-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    padding: 16px 14px;
    border: 1px solid var(--color-gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    transition: all .2s;
    box-shadow: var(--shadow-sm);
}

.tsc-service-card:hover {
    border-color: var(--color-navy);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--color-navy);
}

.tsc-service-icon { font-size: 1.6rem; }
.tsc-service-name { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }

/* =============================================
   PROVIDER CARDS
   ============================================= */
.tsc-provider-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.tsc-provider-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .2s, box-shadow .2s;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tsc-provider-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.tsc-provider-card--featured {
    border-color: var(--color-amber);
    border-width: 2px;
}

.tsc-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--color-amber);
    color: var(--color-white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.tsc-provider-card__logo {
    background: var(--color-gray-50);
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--color-gray-200);
    overflow: hidden;
}

.tsc-provider-logo { width: 100%; height: 100%; object-fit: cover; }

.tsc-provider-logo-placeholder {
    width: 60px;
    height: 60px;
    background: var(--color-navy);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
}

.tsc-provider-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tsc-provider-name {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--color-navy);
}

.tsc-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tsc-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Category badge colors */
.cat-green  { background: #e8f5e9; color: #2e7d32; }
.cat-blue   { background: #e3f2fd; color: #1565c0; }
.cat-teal   { background: #e0f2f1; color: #00695c; }
.cat-orange { background: #fff3e0; color: #e65100; }
.cat-red    { background: #ffebee; color: #c62828; }
.cat-purple { background: #f3e5f5; color: #6a1b9a; }
.cat-gray   { background: #f5f5f5; color: #424242; }
.cat-yellow { background: #fffde7; color: #f57f17; }
.cat-brown  { background: #efebe9; color: #4e342e; }
.cat-default{ background: var(--color-gray-100); color: var(--color-gray-600); }

.tsc-provider-tagline {
    color: var(--color-text-muted);
    font-size: 0.88rem;
    margin-bottom: 8px;
    flex: 1;
}

.tsc-provider-cities,
.tsc-provider-phone {
    font-size: 0.85rem;
    color: var(--color-gray-600);
    margin-bottom: 8px;
}

.tsc-provider-card__actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.tsc-provider-card__actions .tsc-btn {
    flex: 1;
    justify-content: center;
    padding: 9px 12px;
    font-size: 0.85rem;
}

.tsc-phone-link { color: var(--color-navy); font-weight: 600; }

/* =============================================
   CITY GRID
   ============================================= */
.tsc-city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: var(--gap);
}

.tsc-city-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    padding: 28px 20px;
    text-align: center;
    text-decoration: none;
    color: var(--color-text);
    transition: all .2s;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tsc-city-card:hover {
    background: var(--color-navy);
    border-color: var(--color-navy);
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.tsc-city-name { font-weight: 700; font-size: 1rem; }
.tsc-city-state { font-size: 0.8rem; color: var(--color-text-muted); }
.tsc-city-card:hover .tsc-city-state { color: rgba(255,255,255,.7); }
.tsc-city-count { font-size: 0.75rem; color: var(--color-green); font-weight: 600; }
.tsc-city-card:hover .tsc-city-count { color: #a5d6a7; }

/* =============================================
   WHY SECTION
   ============================================= */
.tsc-why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.tsc-why-card {
    text-align: center;
    padding: 32px 24px;
}

.tsc-why-icon {
    font-size: 2.2rem;
    margin-bottom: 16px;
}

.tsc-why-card h3 { font-size: 1rem; margin-bottom: 8px; }
.tsc-why-card p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }

/* =============================================
   GUIDE CARDS (Blog Posts)
   ============================================= */
.tsc-guide-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
}

.tsc-guide-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    box-shadow: var(--shadow-sm);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}

.tsc-guide-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tsc-guide-card__img {
    height: 180px;
    background: var(--color-gray-100);
    overflow: hidden;
}

.tsc-guide-card__img img { width: 100%; height: 100%; object-fit: cover; }

.tsc-guide-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tsc-guide-card__cat {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-green);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.tsc-guide-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-navy);
    margin-bottom: 8px;
    flex: 1;
}

.tsc-guide-card__title a { color: inherit; text-decoration: none; }
.tsc-guide-card__title a:hover { color: var(--color-blue); }

.tsc-guide-card__excerpt {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.tsc-guide-card__meta {
    font-size: 0.78rem;
    color: var(--color-gray-400);
}

/* =============================================
   CTA BANNER
   ============================================= */
.tsc-cta-banner {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a3a5c 100%);
    color: white;
    padding: var(--section-pad) 0;
    text-align: center;
}

.tsc-cta-banner h2 { color: white; margin-bottom: 16px; }
.tsc-cta-banner p { color: rgba(255,255,255,.8); max-width: 600px; margin: 0 auto 32px; font-size: 1.05rem; }

.tsc-cta-banner .tsc-btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =============================================
   SEO LINK GRID
   ============================================= */
.tsc-seo-links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.tsc-seo-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-navy);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 14px;
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-gray-200);
    text-decoration: none;
    transition: all .15s;
}

.tsc-seo-links a:hover {
    background: var(--color-navy);
    color: white;
    border-color: var(--color-navy);
}

.tsc-seo-links a::before { content: '→'; color: var(--color-cta); }
.tsc-seo-links a:hover::before { color: #ffa070; }

/* =============================================
   ALERT MESSAGES
   ============================================= */
.tsc-alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 24px;
    font-weight: 500;
}

.tsc-alert--success { background: #e8f5e9; color: #1b5e20; border: 1px solid #a5d6a7; }
.tsc-alert--error   { background: #ffebee; color: #b71c1c; border: 1px solid #ef9a9a; }

.tsc-no-results {
    color: var(--color-text-muted);
    padding: 40px;
    text-align: center;
    background: var(--color-gray-50);
    border-radius: var(--radius-md);
    border: 1px dashed var(--color-gray-200);
}

/* =============================================
   SUBMISSION FORM
   ============================================= */
.tsc-submission-form-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.tsc-submission-form { }

.tsc-form-section {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    padding: 32px;
    margin-bottom: 24px;
}

.tsc-form-section h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--color-gray-100);
}

.tsc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.tsc-form-group { display: flex; flex-direction: column; gap: 6px; }
.tsc-form-group--full { grid-column: 1 / -1; }

.tsc-form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-gray-800);
}

.tsc-form-group input,
.tsc-form-group textarea,
.tsc-form-group select {
    padding: 11px 14px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-white);
    transition: border-color .15s, box-shadow .15s;
}

.tsc-form-group input:focus,
.tsc-form-group textarea:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
}

.required { color: var(--color-cta); }

.tsc-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
}

.tsc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-gray-200);
    transition: background .15s;
}

.tsc-checkbox-label:hover { background: var(--color-gray-50); }
.tsc-checkbox-label input { margin: 0; cursor: pointer; }

.tsc-toggle-row { display: flex; gap: 16px; flex-wrap: wrap; }
.tsc-toggle-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.93rem; }

.tsc-form-hint { color: var(--color-text-muted); font-size: 0.88rem; margin-top: -12px; margin-bottom: 16px; }

.tsc-form-submit { text-align: center; padding: 8px 0; }

.tsc-form-disclaimer {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    margin-top: 12px;
    margin-bottom: 0;
}

/* =============================================
   ARCHIVE / FILTER BAR
   ============================================= */
.tsc-filter-bar {
    background: var(--color-gray-50);
    border-bottom: 1px solid var(--color-gray-200);
    padding: 20px 0;
}

.tsc-filter-bar-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.tsc-filter-bar-inner select {
    padding: 9px 16px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    background: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
}

.tsc-filter-bar-inner label { font-size: 0.9rem; font-weight: 600; color: var(--color-gray-800); }

/* =============================================
   SINGLE PROVIDER PAGE
   ============================================= */
.tsc-provider-single {
    padding: 40px 0 72px;
}

.tsc-provider-single-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}

.tsc-provider-header {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    padding: 32px;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.tsc-provider-header__logo {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-gray-200);
    background: var(--color-gray-50);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tsc-provider-header__logo img { width: 100%; height: 100%; object-fit: cover; }

.tsc-provider-header__info h1 { font-size: 1.6rem; margin-bottom: 8px; }

.tsc-provider-body {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    padding: 32px;
}

.tsc-provider-body h2 { font-size: 1.1rem; margin-bottom: 16px; margin-top: 28px; }
.tsc-provider-body h2:first-child { margin-top: 0; }

.tsc-provider-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tsc-provider-services-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.92rem;
    color: var(--color-gray-800);
}

.tsc-provider-services-list li::before { content: '✓'; color: var(--color-green); font-weight: 700; }

/* Sidebar */
.tsc-provider-sidebar {
    position: sticky;
    top: 88px;
}

.tsc-sidebar-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-gray-200);
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-sm);
}

.tsc-sidebar-card h3 {
    font-size: 0.95rem;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--color-gray-100);
}

.tsc-sidebar-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--color-gray-100);
    font-size: 0.88rem;
}

.tsc-sidebar-item:last-child { border-bottom: none; }
.tsc-sidebar-item__label { font-weight: 600; color: var(--color-gray-600); min-width: 60px; }
.tsc-sidebar-item__value { color: var(--color-text); }
.tsc-sidebar-item__check { color: var(--color-green); font-weight: 700; }

.tsc-sidebar-actions { display: flex; flex-direction: column; gap: 10px; }

/* =============================================
   TAXONOMY / ARCHIVE HERO
   ============================================= */
.tsc-archive-hero {
    background: linear-gradient(135deg, var(--color-navy) 0%, #1a3a5c 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.tsc-archive-hero h1 { color: white; margin-bottom: 16px; }
.tsc-archive-hero p { color: rgba(255,255,255,.8); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* =============================================
   ADVERTISE PAGE
   ============================================= */
.tsc-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--gap);
}

.tsc-package-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--color-gray-200);
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    transition: border-color .2s, box-shadow .2s;
}

.tsc-package-card:hover, .tsc-package-card--featured {
    border-color: var(--color-green);
    box-shadow: var(--shadow-md);
}

.tsc-package-card--featured {
    position: relative;
}

.tsc-package-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-green);
    color: white;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tsc-package-name { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.tsc-package-price { font-size: 1.8rem; font-weight: 800; color: var(--color-navy); margin-bottom: 4px; }
.tsc-package-price-note { font-size: 0.8rem; color: var(--color-text-muted); margin-bottom: 20px; }

.tsc-package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.tsc-package-features li {
    padding: 8px 0;
    font-size: 0.9rem;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid var(--color-gray-100);
}

.tsc-package-features li:last-child { border-bottom: none; }
.tsc-package-features li::before { content: '✓'; color: var(--color-green); font-weight: 700; flex-shrink: 0; }

/* =============================================
   FOOTER
   ============================================= */
.tsc-site-footer {
    background: var(--color-navy-dark);
    color: rgba(255,255,255,.7);
    padding: 64px 0 0;
}

.tsc-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.tsc-footer-brand .tsc-site-logo { color: white !important; margin-bottom: 12px; }
.tsc-footer-brand p { font-size: 0.88rem; line-height: 1.6; }

.tsc-footer-col h4 {
    color: white;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.tsc-footer-col ul { list-style: none; padding: 0; margin: 0; }
.tsc-footer-col ul li { margin-bottom: 8px; }
.tsc-footer-col ul li a { color: rgba(255,255,255,.65); font-size: 0.88rem; text-decoration: none; transition: color .15s; }
.tsc-footer-col ul li a:hover { color: white; }

.tsc-footer-bottom {
    padding: 20px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
    color: rgba(255,255,255,.4);
    flex-wrap: wrap;
    gap: 12px;
}

.tsc-footer-bottom a { color: rgba(255,255,255,.55); }
.tsc-footer-bottom a:hover { color: white; }

/* =============================================
   PAGE: SERVICES / CITIES OVERVIEW
   ============================================= */
.tsc-page-hero {
    background: var(--color-navy);
    color: white;
    padding: 56px 0;
    text-align: center;
}

.tsc-page-hero h1 { color: white; margin-bottom: 14px; }
.tsc-page-hero p { color: rgba(255,255,255,.8); max-width: 580px; margin: 0 auto; }

/* =============================================
   BREADCRUMBS
   ============================================= */
.tsc-breadcrumbs {
    font-size: 0.83rem;
    color: var(--color-text-muted);
    padding: 12px 0;
}

.tsc-breadcrumbs a { color: var(--color-text-muted); text-decoration: none; }
.tsc-breadcrumbs a:hover { color: var(--color-navy); }
.tsc-breadcrumbs span { margin: 0 6px; }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
    .tsc-featured-services { grid-template-columns: 1fr 1fr; }
    .tsc-provider-grid { grid-template-columns: 1fr 1fr; }
    .tsc-why-grid { grid-template-columns: 1fr 1fr; }
    .tsc-guide-grid { grid-template-columns: 1fr 1fr; }
    .tsc-footer-grid { grid-template-columns: 1fr 1fr; }
    .tsc-provider-single-layout { grid-template-columns: 1fr; }
    .tsc-provider-sidebar { position: static; }
}

@media (max-width: 768px) {
    :root { --section-pad: 48px; }

    .tsc-nav { display: none; }
    .tsc-nav.is-open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--color-gray-200); padding: 12px; box-shadow: var(--shadow-md); }
    .tsc-nav-toggle { display: flex; }

    .tsc-featured-services { grid-template-columns: 1fr; }
    .tsc-provider-grid { grid-template-columns: 1fr; }
    .tsc-why-grid { grid-template-columns: 1fr; }
    .tsc-guide-grid { grid-template-columns: 1fr; }
    .tsc-footer-grid { grid-template-columns: 1fr; }
    .tsc-packages-grid { grid-template-columns: 1fr; }

    .tsc-search-widget { flex-direction: column; }
    .tsc-hero { padding: 56px 0 48px; }
    .tsc-hero-actions { flex-direction: column; align-items: center; }
    .tsc-provider-header { flex-direction: column; }
    .tsc-provider-single-layout { grid-template-columns: 1fr; }
    .tsc-form-grid { grid-template-columns: 1fr; }
    .tsc-form-group--full { grid-column: 1; }
    .tsc-provider-services-list { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .tsc-city-grid { grid-template-columns: 1fr 1fr; }
    .tsc-service-grid { grid-template-columns: 1fr 1fr; }
    .tsc-footer-bottom { flex-direction: column; text-align: center; }
}

/* =============================================
   WORDPRESS ALIGNMENT CLASSES
   ============================================= */
.alignnone { margin: 0; }
.aligncenter { display: block; margin: 20px auto; }
.alignright { float: right; margin: 0 0 20px 20px; }
.alignleft  { float: left;  margin: 0 20px 20px 0; }
img.aligncenter { display: block; margin: 0 auto; }

/* WP caption */
.wp-caption { text-align: center; max-width: 100%; }
.wp-caption-text { font-size: 0.82rem; color: var(--color-text-muted); }

/* =============================================
   UTILITY
   ============================================= */
.tsc-text-center { text-align: center; }
.tsc-mt-0 { margin-top: 0; }
.tsc-mb-0 { margin-bottom: 0; }
.tsc-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-green);
    display: block;
    margin-bottom: 8px;
}
