/* BookMIAM Main Stylesheet — loaded async, non-critical styles */

/* ===== Hero sections ===== */
.bm-hero {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 50%, #99f6e4 100%);
    position: relative;
    overflow: hidden;
}
.bm-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    pointer-events: none;
}
.bm-hero-dark {
    background: linear-gradient(135deg, #0f766e 0%, #115e59 100%);
    color: #fff;
}

/* ===== USP blocks ===== */
.bm-usp-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background-color: #f0fdfa;
    color: #0d9488;
    margin-bottom: 1rem;
}

/* ===== Trust badges ===== */
.bm-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}
.bm-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #374151;
    white-space: nowrap;
}
.bm-trust-badge svg {
    width: 1rem;
    height: 1rem;
    color: #0d9488;
    flex-shrink: 0;
}

/* ===== How it works steps ===== */
.bm-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    counter-reset: step;
}
@media (min-width: 768px) {
    .bm-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .bm-steps {
        grid-template-columns: repeat(4, 1fr);
    }
}
.bm-step {
    text-align: center;
    position: relative;
}
.bm-step-number {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background-color: #0d9488;
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

/* ===== Pricing block ===== */
.bm-pricing-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bm-pricing-card:hover,
.bm-pricing-card--featured {
    border-color: #0d9488;
    box-shadow: 0 10px 15px -3px rgba(13, 148, 136, 0.1), 0 4px 6px -4px rgba(13, 148, 136, 0.1);
}
.bm-pricing-card--featured {
    position: relative;
}
.bm-pricing-card--featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: #0d9488;
    color: #fff;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.bm-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: #111827;
    line-height: 1;
}
.bm-price-suffix {
    font-size: 1rem;
    font-weight: 400;
    color: #6b7280;
}

/* ===== FAQ accordion ===== */
.bm-faq-item {
    border-bottom: 1px solid #e5e7eb;
}
.bm-faq-item:last-child {
    border-bottom: none;
}
.bm-faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1.4;
}
.bm-faq-question:hover {
    color: #0d9488;
}
.bm-faq-chevron {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    margin-left: 1rem;
    transition: transform 0.2s;
    color: #9ca3af;
}
.bm-faq-item[open] .bm-faq-chevron {
    transform: rotate(180deg);
}
.bm-faq-answer {
    padding: 0 0 1.25rem;
    color: #4b5563;
    line-height: 1.7;
    font-size: 0.9375rem;
}
.bm-faq-answer p {
    margin-bottom: 0.75rem;
}
.bm-faq-answer p:last-child {
    margin-bottom: 0;
}

/* ===== Author box ===== */
.bm-author-box {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 0.75rem;
    border: 1px solid #e5e7eb;
}
.bm-author-avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ===== Table of contents ===== */
.bm-toc {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.bm-toc-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
    margin-bottom: 0.75rem;
}
.bm-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bm-toc-list li {
    margin-bottom: 0.375rem;
}
.bm-toc-list a {
    font-size: 0.9375rem;
    color: #374151;
    transition: color 0.15s;
    display: block;
    padding: 0.25rem 0;
}
.bm-toc-list a:hover,
.bm-toc-list a.active {
    color: #0d9488;
}

/* ===== Key takeaways ===== */
.bm-key-takeaways {
    background: #f0fdfa;
    border-left: 4px solid #0d9488;
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.bm-key-takeaways h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f766e;
    margin-bottom: 0.75rem;
}
.bm-key-takeaways ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.bm-key-takeaways li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    color: #374151;
}
.bm-key-takeaways li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    background: #0d9488;
    border-radius: 9999px;
}

/* ===== Inline CTA ===== */
.bm-inline-cta {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid #99f6e4;
    border-radius: 0.75rem;
    padding: 1.5rem 2rem;
    text-align: center;
    margin: 2rem 0;
}
.bm-inline-cta p {
    font-size: 1.0625rem;
    font-weight: 600;
    color: #0f766e;
    margin-bottom: 0.75rem;
}

/* ===== Social proof ===== */
.bm-testimonial {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.5rem;
    position: relative;
}
.bm-testimonial::before {
    content: '\201C';
    font-size: 4rem;
    color: #d1d5db;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    line-height: 1;
}
.bm-testimonial-text {
    font-style: italic;
    color: #374151;
    margin-bottom: 1rem;
    padding-top: 1rem;
}
.bm-testimonial-author {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
}

/* ===== CTA buttons ===== */
.bm-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #0d9488;
    color: #fff;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.bm-btn-primary:hover {
    background-color: #0f766e;
    box-shadow: 0 4px 6px -1px rgba(13, 148, 136, 0.25);
}
.bm-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background-color: #fff;
    color: #0d9488;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 0.5rem;
    border: 2px solid #0d9488;
    transition: background-color 0.2s, color 0.2s;
    cursor: pointer;
    text-decoration: none;
}
.bm-btn-secondary:hover {
    background-color: #f0fdfa;
}
.bm-btn-accent {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 2rem;
    background-color: #f59e0b;
    color: #fff;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 0.5rem;
    transition: background-color 0.2s, transform 0.1s;
    border: none;
    cursor: pointer;
    text-decoration: none;
}
.bm-btn-accent:hover {
    background-color: #d97706;
    transform: translateY(-1px);
}

/* ===== Breadcrumbs ===== */
.bm-breadcrumbs {
    font-size: 0.8125rem;
    color: #6b7280;
    padding: 1rem 0;
}
.bm-breadcrumbs a {
    color: #0d9488;
    transition: color 0.15s;
}
.bm-breadcrumbs a:hover {
    color: #0f766e;
}
.bm-breadcrumbs .separator {
    margin: 0 0.5rem;
    color: #d1d5db;
}

/* ===== Content typography ===== */
.bm-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 6rem;
}
.bm-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.bm-content p {
    margin-bottom: 1rem;
    color: #374151;
    line-height: 1.75;
}
.bm-content ul,
.bm-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
    color: #374151;
}
.bm-content li {
    margin-bottom: 0.375rem;
    line-height: 1.7;
}
.bm-content a {
    color: #0d9488;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.bm-content a:hover {
    color: #0f766e;
}
.bm-content blockquote {
    border-left: 4px solid #0d9488;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f9fafb;
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: #4b5563;
}
.bm-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    font-size: 0.9375rem;
}
.bm-content th {
    background: #f0fdfa;
    color: #0f766e;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #0d9488;
}
.bm-content td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}

/* ===== Related posts grid ===== */
.bm-related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .bm-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 1024px) {
    .bm-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== Location court info ===== */
.bm-court-info {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 0.75rem;
    padding: 1.5rem;
}
.bm-court-info h3 {
    color: #92400e;
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* ===== Last updated badge ===== */
.bm-last-updated {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

/* ===== Pagination ===== */
.nav-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.nav-links a,
.nav-links span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.15s;
}
.nav-links a {
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #374151;
}
.nav-links a:hover {
    background: #f0fdfa;
    border-color: #0d9488;
    color: #0d9488;
}
.nav-links .current {
    background: #0d9488;
    color: #fff;
    border: 1px solid #0d9488;
}

/* ===== WP Menu styling ===== */
#site-header .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
#site-header .menu li {
    position: relative;
}
#site-header .menu li a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    border-radius: 0.375rem;
    transition: color 0.15s, background-color 0.15s;
}
#site-header .menu li a:hover {
    color: #0d9488;
    background-color: #f0fdfa;
}
#site-header .menu li.current-menu-item > a,
#site-header .menu li.current-page-ancestor > a {
    color: #0d9488;
}
/* Mobile menu */
#mobile-menu .menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
#mobile-menu .menu li a {
    display: block;
    padding: 0.625rem 0.75rem;
    font-size: 1rem;
    color: #374151;
    border-radius: 0.375rem;
    transition: background-color 0.15s;
}
#mobile-menu .menu li a:hover {
    background-color: #f0fdfa;
    color: #0d9488;
}
/* Sub-menu */
#site-header .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 14rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
    padding: 0.5rem;
    z-index: 50;
    list-style: none;
}
#site-header .menu li:hover > .sub-menu {
    display: block;
}
#mobile-menu .sub-menu {
    list-style: none;
    padding-left: 1rem;
}
