/* ==========================================================================
   Customer Reports — Design System
   Bootstrap 5.3.3 base with brand overrides and component polish.
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
    /* Brand — Teal (primary action color) */
    --cr-teal: #0d7377;
    --cr-teal-hover: #095c5f;
    --cr-teal-light: #10a3a8;
    --cr-teal-subtle: rgba(13, 115, 119, .08);

    /* Brand — Amber (ratings, reviews, premium signals) */
    --cr-amber: #e6a817;
    --cr-amber-hover: #c48f14;
    --cr-amber-light: #f4c542;
    --cr-amber-subtle: rgba(230, 168, 23, .10);

    /* Brand — Slate (dark backgrounds, authority) */
    --cr-slate: #1a2332;
    --cr-slate-light: #253347;

    /* Neutrals */
    --cr-text: #2a3142;
    --cr-text-muted: #6b7a8d;
    --cr-gray-50: #f7f8fa;
    --cr-gray-100: #edf0f4;
    --cr-gray-200: #dce1e8;
    --cr-gray-300: #c4cad4;

    /* Shadows */
    --cr-shadow-sm: 0 1px 3px rgba(26, 35, 50, .06);
    --cr-shadow: 0 2px 8px rgba(26, 35, 50, .08);
    --cr-shadow-md: 0 4px 12px rgba(26, 35, 50, .10);
    --cr-shadow-lg: 0 8px 24px rgba(26, 35, 50, .12);
    --cr-shadow-xl: 0 12px 36px rgba(26, 35, 50, .16);

    /* Bootstrap overrides — this makes btn-success, bg-success, text-success all teal */
    --bs-success: #0d7377;
    --bs-success-rgb: 13, 115, 119;
    --bs-dark: #1a2332;
    --bs-dark-rgb: 26, 35, 50;
    --bs-light: #f7f8fa;
    --bs-light-rgb: 247, 248, 250;
}

/* ---------- Base ---------- */
body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--cr-text);
    background-color: #fff;
    font-size: 1rem;
    line-height: 1.6;
}

p {
    line-height: 1.7;
}

/* ---------- Navbar ---------- */
.navbar {
    box-shadow: 0 1px 4px rgba(26, 35, 50, .10);
}

.navbar-dark {
    background-color: var(--cr-slate) !important;
}

.navbar-dark .navbar-brand img {
    filter: brightness(0) invert(1);
}

/* ---------- Section Rhythm ---------- */
section.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

@media (min-width: 992px) {
    section.py-5 {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }
}

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

.section-eyebrow {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--cr-teal);
    margin-bottom: .5rem;
}

.section-eyebrow-amber {
    color: var(--cr-amber);
}

.section-heading {
    position: relative;
    padding-bottom: .75rem;
    font-size: 1.5rem;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--cr-teal), var(--cr-teal-light));
    border-radius: 2px;
}

.section-heading-center::after {
    left: 50%;
    transform: translateX(-50%);
}

/* ---------- Buttons ---------- */
.btn {
    border-radius: .5rem;
    font-weight: 600;
    padding: .625rem 1.5rem;
    font-size: .95rem;
    transition: all .2s ease;
}

.btn-sm {
    padding: .5rem 1.125rem;
    font-size: .875rem;
}

.btn-success {
    background-color: var(--cr-teal);
    border-color: var(--cr-teal);
    box-shadow: 0 2px 6px rgba(13, 115, 119, .25);
}

.btn-success:hover,
.btn-success:focus {
    background-color: var(--cr-teal-hover);
    border-color: var(--cr-teal-hover);
    box-shadow: 0 4px 12px rgba(13, 115, 119, .35);
    transform: translateY(-1px);
}

.btn-success:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(13, 115, 119, .20);
}

.btn-outline-success {
    color: var(--cr-teal);
    border-color: var(--cr-teal);
}

.btn-outline-success:hover {
    background-color: var(--cr-teal);
    border-color: var(--cr-teal);
    box-shadow: 0 4px 12px rgba(13, 115, 119, .25);
    transform: translateY(-1px);
}

.btn-lg {
    padding: .75rem 2rem;
    font-size: 1.05rem;
    border-radius: .625rem;
}

/* Amber CTA button — for high-conversion actions */
.btn-amber {
    background-color: var(--cr-amber);
    border-color: var(--cr-amber);
    color: #fff;
    box-shadow: 0 2px 6px rgba(230, 168, 23, .30);
}

.btn-amber:hover {
    background-color: var(--cr-amber-hover);
    border-color: var(--cr-amber-hover);
    color: #fff;
    box-shadow: 0 4px 12px rgba(230, 168, 23, .40);
    transform: translateY(-1px);
}

/* ---------- Cards (global) ---------- */
.card {
    border: 1px solid var(--cr-gray-100);
    border-radius: .75rem;
    box-shadow: var(--cr-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
    overflow: hidden;
}

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

.card-body {
    padding: 1.75rem;
}

@media (min-width: 992px) {
    .card-body {
        padding: 2rem;
    }
}

.card-img-top {
    height: 220px;
    object-fit: cover;
}

.card-title {
    font-size: 1.15rem;
    line-height: 1.35;
}

.card-text {
    font-size: .95rem;
    line-height: 1.6;
}

.card-title a {
    transition: color .15s ease;
}

.card-title a:hover {
    color: var(--cr-teal) !important;
}

/* ---------- Category Chips (compact browse-by-category) ---------- */
.category-chip {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    border: 1px solid var(--cr-gray-100);
    border-radius: .625rem;
    background: #fff;
    text-decoration: none;
    color: var(--cr-text);
    height: 100%;
    box-shadow: var(--cr-shadow-sm);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.category-chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--cr-shadow);
    border-color: var(--cr-teal);
    color: var(--cr-text);
}

.category-chip-icon {
    width: 36px;
    height: 36px;
    border-radius: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cr-teal-subtle);
    color: var(--cr-teal);
    font-size: .9rem;
    flex-shrink: 0;
    transition: background .15s ease, color .15s ease;
}

.category-chip:hover .category-chip-icon {
    background: var(--cr-teal);
    color: #fff;
}

.category-chip-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.category-chip-name {
    font-weight: 600;
    font-size: .9rem;
    line-height: 1.2;
}

.category-chip-count {
    font-size: .75rem;
    color: var(--cr-text-muted);
}

.category-chip-arrow {
    font-size: .7rem;
    color: var(--cr-gray-300);
    transition: color .15s ease, transform .15s ease;
}

.category-chip:hover .category-chip-arrow {
    color: var(--cr-teal);
    transform: translateX(2px);
}

/* ---------- View All Card (inline grid CTA) ---------- */
.view-all-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    width: 100%;
    min-height: 280px;
    border: 2px dashed var(--cr-gray-200);
    border-radius: .75rem;
    background: var(--cr-gray-50);
    text-decoration: none;
    color: var(--cr-text);
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.view-all-card:hover {
    border-color: var(--cr-teal);
    background: #fff;
    transform: translateY(-4px);
    color: var(--cr-text);
}

.view-all-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cr-teal-subtle);
    color: var(--cr-teal);
    font-size: 1.25rem;
    transition: background .2s ease, color .2s ease;
}

.view-all-card:hover .view-all-card-icon {
    background: var(--cr-teal);
    color: #fff;
}

.view-all-card-text {
    font-weight: 700;
    font-size: 1rem;
}

.view-all-card-count {
    font-size: .8rem;
    color: var(--cr-text-muted);
}

/* ---------- Article Cards ---------- */
.article-card {
    border: 1px solid var(--cr-gray-100);
}

.article-card .card-img-top {
    transition: transform .3s ease;
}

.article-card:hover .card-img-top {
    transform: scale(1.05);
}

.article-card .card-img-wrapper {
    overflow: hidden;
    border-radius: .75rem .75rem 0 0;
}

/* ---------- Review Cards ---------- */
.review-card {
    border-top: 3px solid var(--cr-amber);
}

.review-card:hover {
    transform: translateY(-4px);
}

/* Horizontal review card — 3-zone layout (homepage) */
.review-card-h {
    border-top: none;
    border-left: 3px solid var(--cr-amber);
    transition: transform .2s ease, box-shadow .2s ease;
}
.review-card-h:hover {
    transform: translateY(-3px);
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.12) !important;
}

/* Zone 1: Image */
.review-card-h-img {
    height: 100%;
    min-height: 200px;
    overflow: hidden;
    background: var(--cr-gray-50, #f8f9fa);
    display: flex;
    align-items: center;
    justify-content: center;
}
.review-card-h-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1rem;
}

/* Zone 2: Details */
.review-card-h-details {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Zone 3: Action */
.review-card-h-action {
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(0,0,0,.08);
}

/* Mobile: stack vertically */
@media (max-width: 767.98px) {
    .review-card-h-img {
        min-height: 180px;
        max-height: 220px;
    }
    .review-card-h-action {
        border-left: none;
        border-top: 1px solid rgba(0,0,0,.08);
    }
}

/* ---------- Amber Utilities ---------- */
.bg-amber {
    background-color: var(--cr-amber) !important;
}

.bg-amber-subtle {
    background-color: var(--cr-amber-subtle) !important;
}

.text-amber {
    color: var(--cr-amber) !important;
}

.badge-amber {
    background-color: var(--cr-amber);
    color: #fff;
}

/* ---------- Teal Utilities ---------- */
.bg-teal-subtle {
    background-color: var(--cr-teal-subtle) !important;
}

.text-teal {
    color: var(--cr-teal) !important;
}

/* ---------- Badges ---------- */
.badge.bg-success {
    background-color: var(--cr-teal) !important;
}

/* ---------- Feature Icons (powered by section, etc.) ---------- */
.feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--cr-teal-subtle);
    color: var(--cr-teal);
    font-size: 1.75rem;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.feature-card:hover .feature-icon {
    background: var(--cr-teal);
    color: #fff;
    transform: scale(1.05);
}

.feature-card {
    padding: 2.5rem 2rem;
    border-radius: .75rem;
    transition: box-shadow .2s ease, transform .2s ease;
    border: 1px solid transparent;
}

.feature-card:hover {
    box-shadow: var(--cr-shadow-md);
    border-color: var(--cr-gray-100);
    transform: translateY(-2px);
}

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    background: var(--cr-slate);
    /* Replace with your hero image path */
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center top;
    overflow: hidden;
    min-height: 480px;
}

@media (min-width: 992px) {
    .hero-section {
        min-height: 560px;
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(26, 35, 50, .88) 0%,
        rgba(26, 35, 50, .75) 40%,
        rgba(13, 115, 119, .55) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (min-width: 992px) {
    .hero-content {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
}

.hero-lead {
    color: rgba(255, 255, 255, .7);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 540px;
}

.hero-stat {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    background: rgba(255, 255, 255, .10);
    border-radius: .5rem;
    border: 1px solid rgba(255, 255, 255, .12);
    backdrop-filter: blur(4px);
    font-size: .9rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem 1rem;
    background: var(--cr-teal);
    color: #fff;
    border-radius: 2rem;
    font-weight: 600;
    font-size: .85rem;
    box-shadow: 0 2px 8px rgba(13, 115, 119, .30);
}

/* Inner-page hero (no background image, gradient only) */
.hero-section-simple {
    background: linear-gradient(135deg, var(--cr-slate) 0%, #1e3040 60%, rgba(13,115,119,.3) 100%);
    padding: 4rem 0;
}

@media (min-width: 992px) {
    .hero-section-simple {
        padding: 5rem 0;
    }
}

/* ---------- Footer CTA Section ---------- */
.footer-cta {
    background: linear-gradient(135deg, var(--cr-slate) 0%, #1e3040 100%);
    padding: 4rem 0;
}

@media (min-width: 992px) {
    .footer-cta {
        padding: 5rem 0;
    }
}

.footer-cta-sub {
    color: rgba(255, 255, 255, .6);
    font-size: 1.05rem;
    line-height: 1.7;
}

.footer-cta-perks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .625rem;
}

.footer-cta-perks li {
    display: flex;
    align-items: center;
    gap: .625rem;
    color: rgba(255, 255, 255, .7);
    font-size: .95rem;
}

.footer-cta-perks li i {
    color: var(--cr-teal-light);
    font-size: .85rem;
    flex-shrink: 0;
}

.footer-cta-form-panel {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: .75rem;
    padding: 2rem;
}

.footer-cta-form-panel .form-control {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .12);
    color: #fff;
}

.footer-cta-form-panel .form-control::placeholder {
    color: rgba(255, 255, 255, .4);
}

.footer-cta-form-panel .form-control:focus {
    background: rgba(255, 255, 255, .12);
    border-color: var(--cr-teal-light);
    color: #fff;
    box-shadow: 0 0 0 .25rem rgba(13, 115, 119, .25);
}

.footer-cta-privacy {
    font-size: .7rem;
    color: rgba(255, 255, 255, .35);
    margin: .75rem 0 0;
}

.footer-cta-privacy a {
    color: rgba(255, 255, 255, .45);
}

.footer-cta-privacy a:hover {
    color: rgba(255, 255, 255, .7);
}

/* ---------- Pagination ---------- */
.page-item.active .page-link {
    background-color: var(--cr-teal);
    border-color: var(--cr-teal);
}

.page-link {
    color: var(--cr-teal);
    border-radius: .375rem;
}

.page-link:hover {
    color: var(--cr-teal-hover);
}

/* ---------- List Group Active ---------- */
.list-group-item.active {
    background-color: var(--cr-teal);
    border-color: var(--cr-teal);
}

/* ---------- Progress Bars ---------- */
.progress {
    height: 8px;
    border-radius: 1rem;
    background-color: var(--cr-gray-100);
}

.sub-rating-label { min-width: 85px; }
.progress.progress-sm {
    height: 5px;
}

/* ---------- Footer ---------- */
footer {
    background-color: var(--cr-slate);
}

footer a:hover {
    color: var(--cr-teal-light) !important;
}

.footer-trust-item {
    display: flex;
    align-items: center;
    gap: .625rem;
}

.footer-trust-item i {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* ---------- Category Hero (detail page) ---------- */
.category-hero-section {
    position: relative;
    overflow: hidden;
}

.category-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.category-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 35, 50, .80), rgba(13, 115, 119, .50));
    z-index: 1;
}

.category-hero-content {
    position: relative;
    z-index: 2;
}

/* ---------- Listicle Item Cards ---------- */
.listicle-item-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.listicle-item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--cr-shadow-lg) !important;
}

.listicle-rank {
    width: 40px;
    height: 40px;
    background-color: var(--cr-teal);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

/* ---------- Article Content (rendered HTML) ---------- */
.article-content h2,
.article-content h3,
.article-content h4 {
    margin-top: 1.5rem;
    margin-bottom: .75rem;
    font-weight: 700;
}

.article-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
    margin: 1rem 0;
}

.article-content ul,
.article-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--cr-teal);
    padding: .75rem 1rem;
    margin: 1rem 0;
    background: var(--cr-gray-50);
    border-radius: .25rem;
}

/* ---------- Mobile CTA Bar ---------- */
.mobile-cta-bar {
    display: none;
    z-index: 1040;
}

@media (max-width: 991.98px) {
    .mobile-cta-bar {
        display: block;
    }
}

/* ---------- Shared Utility Classes ---------- */
.sidebar-sticky {
    top: 80px;
}

.sidebar-thumb {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: .375rem;
}

.product-card-img {
    height: 180px;
    object-fit: contain;
    padding: 1rem;
    background: var(--cr-gray-50);
}

.article-hero-img {
    max-height: 450px;
    object-fit: cover;
    width: 100%;
}

.product-hero-img {
    max-height: 300px;
    object-fit: contain;
}

.card-pros {
    background-color: var(--bs-success-bg-subtle, #d4edda);
    border: none;
}

.card-cons {
    background-color: var(--bs-danger-bg-subtle, #f8d7da);
    border: none;
}

.verdict-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

/* ---------- Listicle Images ---------- */
.listicle-brand-img {
    max-width: 80px;
    max-height: 60px;
    object-fit: contain;
}
.listicle-product-img {
    max-width: 120px;
    max-height: 100px;
    object-fit: contain;
}
.listicle-compare-img {
    max-width: 50px;
    max-height: 35px;
    object-fit: contain;
}
.listicle-sidebar-thumb {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.listicle-stat-label {
    font-size: .7rem;
}

/* ---------- Mobile Scroll Strips (filter pills, breadcrumbs) ---------- */
.overflow-auto::-webkit-scrollbar {
    display: none;
}
.overflow-auto {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.overflow-auto .btn,
.overflow-auto .breadcrumb-item {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ---------- Misc ---------- */
.text-truncate {
    max-width: 200px;
}
