/* ─── Shared Public Page Styles ──────────────────────── */

/* ─── Navbar ─────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid #e8ecf1;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    padding: 0 24px;
    height: 64px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    padding: 0;
}

.navbar-brand img {
    height: 36px;
}

.brand-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navbar-links a {
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.navbar-links a:hover {
    color: var(--primary);
}

.btn-outline-sm {
    padding: 6px 16px;
    border: 1px solid var(--primary);
    border-radius: var(--radius);
    background: transparent;
    color: var(--primary) !important;
}

.btn-outline-sm:hover {
    background: var(--primary);
    color: #fff !important;
}

.btn-primary-sm {
    padding: 6px 16px;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff !important;
}

.btn-primary-sm:hover {
    background: var(--primary-dark);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar-toggle span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* ─── Public Main ────────────────────────────────────── */
.public-main {
    padding-top: 64px;
    min-height: calc(100vh - 64px);
}

/* ─── Section Styles ─────────────────────────────────── */
.section {
    padding: 80px 0;
}

.section-alt {
    background: var(--bg);
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 48px;
}

/* ─── Page Header ────────────────────────────────────── */
.page-header {
    padding: 48px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.85;
}

/* ─── Card Styles ────────────────────────────────────── */
.card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

/* ─── Mover Card (Directory) ─────────────────────────── */
.mover-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 24px;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mover-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.mover-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mover-card-logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bg);
    flex-shrink: 0;
}

.mover-card-logo-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), #2563eb);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    flex-shrink: 0;
}

.mover-card-info h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
}

.mover-card-info h3 a {
    color: inherit;
    text-decoration: none;
}

.mover-card-info h3 a:hover {
    color: var(--primary);
}

.mover-card-location {
    font-size: 13px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 4px;
}

.mover-card-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}

.mover-card-rating .stars {
    color: #f59e0b;
}

.mover-card-rating .count {
    color: var(--text-light);
    font-size: 13px;
}

.mover-card-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.badge-verified {
    background: #ecfdf5;
    color: #059669;
}

.badge-featured {
    background: #eff6ff;
    color: #2563eb;
}

.badge-vehicle {
    background: #f3f4f6;
    color: #374151;
}

.mover-card-bio {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mover-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.btn-view-profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    background: var(--primary);
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background 0.15s;
}

.btn-view-profile:hover {
    background: var(--primary-dark);
}

/* ─── Grid Layouts ───────────────────────────────────── */
.mover-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ─── Search / Filter Bar ────────────────────────────── */
.search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.search-bar input,
.search-bar select {
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 14px;
    background: #fff;
    outline: none;
}

.search-bar input:focus,
.search-bar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 106, 167, 0.1);
}

.search-bar input {
    flex: 1;
    min-width: 240px;
}

.search-bar .btn-search {
    padding: 10px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.search-bar .btn-search:hover {
    background: var(--primary-dark);
}

/* ─── Pagination ─────────────────────────────────────── */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination button,
.pagination a {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.pagination button:hover,
.pagination a:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* ─── Blog Card ──────────────────────────────────────── */
.blog-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.blog-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.blog-card-cover {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--bg);
}

.blog-card-cover-placeholder {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #e0e7ff, #c7d2fe);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 32px;
}

.blog-card-body {
    padding: 20px;
}

.blog-card-category {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 8px;
}

.blog-card-body h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-body h3 a {
    color: var(--text);
    text-decoration: none;
}

.blog-card-body h3 a:hover {
    color: var(--primary);
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

.blog-card-meta {
    font-size: 13px;
    color: var(--text-light);
}

/* ─── Static Page / Blog Detail ──────────────────────── */
.content-page {
    padding: 48px 0 80px;
}

.content-page .container {
    max-width: 800px;
}

.content-page h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text);
}

.content-body {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}

.content-body h2 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    color: var(--text);
}

.content-body h3 {
    font-size: 20px;
    font-weight: 600;
    margin-top: 24px;
    margin-bottom: 12px;
}

.content-body p {
    margin-bottom: 16px;
}

.content-body ul, .content-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.content-body li {
    margin-bottom: 8px;
}

.content-body img {
    max-width: 100%;
    border-radius: 8px;
    margin: 16px 0;
}

.content-body a {
    color: var(--primary);
}

/* ─── FAQ Accordion ──────────────────────────────────── */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    background: none;
    border: none;
    width: 100%;
    text-align: left;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question .faq-arrow {
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 0 24px 18px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-light);
}

.faq-item.open .faq-answer {
    display: block;
}

/* ─── Mover Profile Page ─────────────────────────────── */
.profile-hero {
    padding: 48px 0;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
}

.profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 32px;
}

.profile-logo {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    object-fit: cover;
    background: rgba(255,255,255,0.2);
    flex-shrink: 0;
}

.profile-logo-placeholder {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    flex-shrink: 0;
}

.profile-hero-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.profile-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 15px;
    opacity: 0.9;
    flex-wrap: wrap;
}

.profile-hero-meta .stars {
    color: #fbbf24;
}

.profile-content {
    padding: 48px 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}

.profile-section {
    margin-bottom: 32px;
}

.profile-section h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary);
    display: inline-block;
}

.profile-bio {
    font-size: 15px;
    line-height: 1.7;
    color: #4b5563;
}

/* Services list */
.service-list {
    display: grid;
    gap: 12px;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: var(--radius);
}

.service-item-name {
    font-weight: 500;
    color: var(--text);
}

.service-item-price {
    font-weight: 600;
    color: var(--primary);
}

/* Profile sidebar */
.profile-sidebar .sidebar-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-card h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.btn-get-quote {
    display: block;
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-get-quote:hover {
    background: var(--primary-dark);
}

/* Review card */
.review-card {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.review-card:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.review-author {
    font-weight: 600;
    color: var(--text);
}

.review-date {
    font-size: 13px;
    color: var(--text-light);
}

.review-stars {
    color: #f59e0b;
    margin-bottom: 8px;
}

.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: #4b5563;
}

.review-response {
    margin-top: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border-radius: var(--radius);
    border-left: 3px solid var(--primary);
}

.review-response-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 4px;
}

.review-response-text {
    font-size: 14px;
    color: #4b5563;
}

/* No results */
.no-results {
    text-align: center;
    padding: 64px 0;
    color: var(--text-light);
}

.no-results h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

/* Loading spinner */
.loading-spinner {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

/* ─── Featured Movers Section ────────────────────────── */
.featured-movers-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ─── Blog Detail ────────────────────────────────────── */
.blog-detail-header {
    margin-bottom: 32px;
}

.blog-detail-category {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    margin-bottom: 12px;
}

.blog-detail-header h1 {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
}

.blog-detail-meta {
    font-size: 14px;
    color: var(--text-light);
}

.blog-detail-cover {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 32px;
    max-height: 400px;
    object-fit: cover;
}

/* ─── Footer ─────────────────────────────────────────── */
.footer {
    background: var(--primary-dark);
    color: #fff;
    padding: 20px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-about p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.7;
    margin-top: 16px;
    max-width: 280px;
}

.footer-logo {
    height: 36px;
    border-radius: 6px;
}

.footer-brand-text {
    color: #fff;
    font-size: 22px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid var(--secondary);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-bottom p {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    margin: 0;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social a {
    opacity: 0.7;
    transition: opacity 0.2s;
    display: flex;
}

.footer-social a:hover {
    opacity: 1;
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
    .mover-grid,
    .blog-grid,
    .featured-movers-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .navbar-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--primary);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--secondary);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    .navbar-links.open {
        display: flex;
    }

    .navbar-toggle {
        display: flex;
    }

    .mover-grid,
    .blog-grid,
    .featured-movers-grid {
        grid-template-columns: 1fr;
    }

    .page-header h1 {
        font-size: 28px;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .profile-hero-inner {
        flex-direction: column;
        text-align: center;
    }

    .profile-hero-meta {
        justify-content: center;
    }

    .profile-hero-info h1 {
        font-size: 26px;
    }

    .search-bar {
        flex-direction: column;
    }

    .search-bar input {
        min-width: auto;
    }

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

    .content-page h1 {
        font-size: 28px;
    }
}
