/* Custom CSS for styles that can't be achieved with Tailwind */

/* WordPress Core Styles */
.alignleft {
    float: left;
    margin-right: 1.5em;
    margin-bottom: 1.5em;
}

.alignright {
    float: right;
    margin-left: 1.5em;
    margin-bottom: 1.5em;
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5em;
}

/* WordPress Gallery */
.gallery {
    display: grid;
    grid-gap: 1rem;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.gallery-item {
    position: relative;
}

.gallery-icon {
    display: block;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.5rem;
    font-size: 0.875rem;
}

/* WordPress Comments */
.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 0.5rem;
}

.comment-author {
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.comment-meta {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1rem;
}

/* Screen Reader Text */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    z-index: 999999;
}

.skip-link:focus {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 10px;
    background: white;
    color: black;
    text-decoration: underline;
}

/* Fix: Suppress Tailwind prose double/triple quotation marks on blockquotes */
.prose blockquote::before,
.prose blockquote::after {
    content: none !important;
}

.prose blockquote p:first-of-type::before,
.prose blockquote p:first-of-type::after,
.prose blockquote p:last-of-type::before,
.prose blockquote p:last-of-type::after {
    content: none !important;
}

/* Phase 3: CTA banner text contrast — text shadow for white-on-yellow legibility */
.cta-banner-text {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ============================================================================
 * Phase 4: Case Results card layout
 * Targets the_content() output inside .case-results-content wrapper.
 * Content structure: h2 > (h3 + p)* > hr > h2 > blockquote* > hr > p
 * ============================================================================ */

/* --- Case result cards (h3 = header, h3 + p = body) --- */
.case-results-content h3 {
    background: #323848;
    color: #FFBE59;
    border-left: 4px solid #FFBE59;
    padding: 0.875rem 1.25rem;
    margin-bottom: 0;
    border-radius: 0.75rem 0.75rem 0 0;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
    text-transform: none;  /* Override prose-headings uppercase for dollar amounts */
}

.case-results-content h3 + p {
    background: #2e3444;
    border-left: 4px solid #3d4455;
    padding: 1rem 1.25rem;
    margin-top: 0;
    margin-bottom: 2rem;
    border-radius: 0 0 0.75rem 0.75rem;
    font-size: 1rem;
    line-height: 1.75;
}

/* --- Section headings (h2) — "Representative Case Results", "Client Testimonials" --- */
.case-results-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(255, 190, 89, 0.3);
}

/* First h2 needs no top margin (directly follows disclaimer) */
.case-results-content > h2:first-of-type {
    margin-top: 1.5rem;
}

/* --- Testimonial blockquotes --- */
.case-results-content blockquote {
    background: #323848;
    border-left: 4px solid #FFBE59;
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem;
    margin: 0 0 1.5rem 0;
    font-style: normal;
}

.case-results-content blockquote p:first-child {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.case-results-content blockquote p:last-child {
    color: #FFBE59;
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* --- Separators (hr) --- */
.case-results-content hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2.5rem 0;
}

/* --- Disclaimer and legal notice paragraphs --- */
.case-results-content > p:first-child {
    background: rgba(255, 190, 89, 0.08);
    border: 1px solid rgba(255, 190, 89, 0.2);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.case-results-content > p:last-child {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    font-size: 0.8125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}