/* ============================================
   South Jersey Professional Solutions — Styles
   ============================================ */

:root {
    --primary-color: #002147;
    --secondary-color: #B4975A;
    --accent-color: #D4B36A;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --border-radius: 8px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --transition-normal: 0.2s ease;
}

* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: white;
    margin: 0;
    padding: 0;
}

/* ============================================
   Navigation / Header
   ============================================ */

.main-nav {
    background-color: var(--primary-color);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--secondary-color);
}

.main-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 112px;
    width: auto;
    max-width: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 4px;
    transition: background-color var(--transition-normal);
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.nav-link:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle .bar {
    display: block;
    width: 24px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    margin: 3px 0;
}

/* Mobile nav */
@media (max-width: 991.98px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        padding: 0.5rem 0;
        border-bottom: 2px solid var(--secondary-color);
        gap: 0;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 1.5rem;
        border-radius: 0;
    }

    .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #003366 100%);
    padding: 4rem 0;
    color: white;
}

.hero-content {
    color: white;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.hero-badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-image {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-icon {
    color: var(--secondary-color);
    opacity: 0.6;
}

/* ============================================
   Sections
   ============================================ */

.section {
    padding: 3.5rem 0;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    text-align: center;
    color: #6c757d;
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
}

/* Who We Are */
.who-section {
    padding: 3.5rem 0;
    background-color: white;
}

.who-section .section-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--dark-text);
    max-width: 800px;
}

.who-section .section-highlight {
    color: var(--secondary-color);
    font-weight: 600;
}

/* Why Choose Us */
.why-section {
    padding: 3.5rem 0;
    background-color: var(--light-bg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.why-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 33, 71, 0.08);
}

.why-card-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.why-card h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.why-card p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0;
}

/* View All Services CTA */
.view-services-cta {
    text-align: center;
    padding: 2.5rem 0;
}

.view-services-cta h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.view-services-cta p {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* CTA Section */
.cta-section {
    padding: 3rem 0;
    background-color: var(--light-bg);
}

.cta-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.cta-text {
    color: #6c757d;
    margin-bottom: 1.5rem;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    border: 2px solid transparent;
    padding: 0.625rem 1.25rem;
    font-size: 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: var(--primary-color);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-outline-dark {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-dark:hover {
    background-color: var(--primary-color);
    color: white;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1.05rem;
}

/* ============================================
   Cards
   ============================================ */

.info-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 33, 71, 0.08);
}

.info-card h5 {
    color: var(--primary-color);
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.info-card p {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.service-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 33, 71, 0.08);
    height: 100%;
    transition: box-shadow var(--transition-normal);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
}

.service-card-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h5 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-card p {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0;
}

/* ============================================
   Tables
   ============================================ */

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
}

.data-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95rem;
}

.data-table tr:hover td {
    background-color: var(--light-bg);
}

/* ============================================
   Testimonials
   ============================================ */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.testimonial-card {
    background: white;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 33, 71, 0.08);
}

.testimonial-text {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    font-style: italic;
    margin-bottom: 1rem;
}

.testimonial-author {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
}

.testimonial-role {
    font-size: 0.8rem;
    color: #6c757d;
}

/* ============================================
   FAQ
   ============================================ */

.faq-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    cursor: pointer;
}

.faq-answer {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.faq-category {
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem 0;
}

footer .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

footer .site-logo {
    height: 112px;
    width: auto;
}

footer .footer-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

footer .footer-text p {
    margin-bottom: 0.25rem;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

footer a:hover {
    color: var(--accent-color);
}

/* ============================================
   Misc
   ============================================ */

.text-muted {
    color: #6c757d !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.border {
    border: 1px solid #dee2e6 !important;
}

.shadow-sm {
    box-shadow: var(--shadow-sm) !important;
}

.rounded {
    border-radius: var(--border-radius) !important;
}

.d-flex {
    display: flex !important;
}

.flex-wrap {
    flex-wrap: wrap !important;
}

.justify-content-center {
    justify-content: center !important;
}

.align-items-center {
    align-items: center !important;
}

.gap-3 {
    gap: 1rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

.p-3 {
    padding: 1rem !important;
}

.p-4 {
    padding: 1.5rem !important;
}

.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.text-center {
    text-align: center !important;
}

.text-decoration-none {
    text-decoration: none !important;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
}

.col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.col-lg-8 {
    flex: 0 0 66.66666667%;
    max-width: 66.66666667%;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

.col-lg-4 {
    flex: 0 0 33.33333333%;
    max-width: 33.33333333%;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
}

@media (max-width: 991.98px) {
    .col-lg-6,
    .col-lg-8,
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

.g-5 > * {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.row.g-5 {
    margin-right: -1.5rem;
    margin-left: -1.5rem;
}
/* Sticky sidebar for attorney onboarding */
.onboarding-content .row {
    align-items: flex-start;
}

.onboarding-content .col-lg-4 {
    position: sticky;
    top: 80px;
    align-self: flex-start;
}

/* ============================================
   Bootstrap grid fallback (CDN may not load)
   ============================================ */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -0.5rem;
    margin-left: -0.5rem;
    margin-bottom: 1rem;
}

.row.g-5 {
    margin-right: -1.5rem;
    margin-left: -1.5rem;
}

.g-5 > * {
    padding-right: 1.5rem;
    padding-left: 1.5rem;
}

.col-lg-8 {
    flex: 0 0 66.66666667%;
    max-width: 66.66666667%;
}

.col-lg-4 {
    flex: 0 0 33.33333333%;
    max-width: 33.33333333%;
}

@media (max-width: 991.98px) {
    .col-lg-8,
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}
