/* ====================================================
   CDL Premium Design Overrides — Wave 5
   Fixes: invisible trust badges, plain hero, low contrast
   Adds: gradient hero, premium card design, animated CTAs
==================================================== */

/* === Premium Hero Banner (service + city pages) === */
.service-hero {
    background: linear-gradient(135deg, #1B365D 0%, #142845 50%, #0F1F38 100%);
    color: #fff;
    padding: 48px 36px;
    border-radius: 16px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(27, 54, 93, 0.25);
}
.service-hero::before {
    content: "";
    position: absolute;
    top: -50%; right: -20%;
    width: 60%; height: 200%;
    background: radial-gradient(circle, rgba(232, 168, 56, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.service-hero__title {
    color: #fff !important;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    line-height: 1.2;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.service-hero__subtitle {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 1.05rem;
    font-weight: 400;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}
.service-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.service-hero__meta .trust-badge {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #fff !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
    font-weight: 500;
    border-radius: 50px;
}
.service-hero__meta .trust-badge .icon {
    color: #E8A838 !important;
}

/* === Premium Service Image === */
.service-image {
    margin: -16px 0 32px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    position: relative;
}
.service-image img {
    width: 100% !important;
    height: auto !important;
    display: block;
    transition: transform 0.4s ease;
}
.service-image:hover img {
    transform: scale(1.02);
}
.service-image::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(27, 54, 93, 0.15) 100%);
    pointer-events: none;
}

/* === Inline CTA — premium button === */
.inline-cta {
    margin: 32px 0 !important;
    text-align: center;
}
.inline-cta .btn--cta {
    background: linear-gradient(135deg, #E8A838 0%, #D49228 100%);
    color: #1B365D;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(232, 168, 56, 0.35);
    transition: all 0.25s ease;
    text-decoration: none;
}
.inline-cta .btn--cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(232, 168, 56, 0.5);
}

/* === Service Intro — premium quote-style === */
.service-intro {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 28px 32px;
    border-left: 4px solid #E8A838 !important;
    border-radius: 0 12px 12px 0;
    margin-bottom: 32px !important;
    font-size: 1.05rem !important;
    line-height: 1.7;
    color: #1f2937;
}

/* === Service Content prose — better typography === */
.service-content.prose {
    font-size: 1rem;
    line-height: 1.75;
    color: #1f2937;
}
.service-content.prose h2 {
    font-size: 1.55rem;
    color: #1B365D;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
}
.service-content.prose h3 {
    font-size: 1.2rem;
    color: #1B365D;
    margin: 28px 0 12px;
}
.service-content.prose p {
    margin: 0 0 16px;
}
.service-content.prose ul,
.service-content.prose ol {
    margin: 16px 0 24px 24px;
    line-height: 1.75;
}
.service-content.prose li {
    margin-bottom: 8px;
}
.service-content.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.service-content.prose th {
    background: linear-gradient(135deg, #1B365D 0%, #142845 100%);
    color: #fff;
    text-align: left;
    padding: 14px 18px;
    font-weight: 600;
    font-size: 0.95rem;
}
.service-content.prose td {
    padding: 12px 18px;
    border-top: 1px solid #f3f4f6;
}
.service-content.prose tr:nth-child(even) td {
    background: #fafbfc;
}
.service-content.prose a {
    color: #1B365D;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 2px;
    text-decoration-color: rgba(232, 168, 56, 0.4);
    transition: all 0.2s ease;
}
.service-content.prose a:hover {
    color: #E8A838;
    text-decoration-color: #E8A838;
}
.service-content.prose strong {
    color: #1B365D;
    font-weight: 700;
}

/* === FAQ Section premium styling === */
.faq-section {
    margin: 48px 0;
    padding: 36px;
    background: linear-gradient(135deg, #fafbfc 0%, #f3f4f6 100%);
    border-radius: 14px;
    border: 1px solid #e5e7eb;
}
.faq-section .section-title {
    color: #1B365D;
    font-size: 1.5rem;
    margin: 0 0 24px;
}
.faq-list {
    display: grid;
    gap: 16px;
}
.faq-item {
    background: #fff;
    padding: 22px 26px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.faq-item:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}
.faq-item__question {
    font-size: 1.05rem;
    color: #1B365D;
    margin: 0 0 10px;
    font-weight: 700;
}
.faq-item__answer {
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0;
}

/* === Bottom CTA Banner === */
.cta-banner {
    background: linear-gradient(135deg, #1B365D 0%, #142845 100%);
    color: #fff;
    padding: 36px 32px;
    border-radius: 14px;
    text-align: center;
    margin: 48px 0;
    box-shadow: 0 12px 32px rgba(27, 54, 93, 0.2);
}
.cta-banner__title {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 0 12px;
}
.cta-banner__text {
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 22px;
    font-size: 1rem;
}
.cta-banner .btn--cta.btn--lg {
    background: linear-gradient(135deg, #E8A838 0%, #D49228 100%);
    color: #1B365D;
    padding: 18px 38px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(232, 168, 56, 0.35);
    text-decoration: none;
    display: inline-block;
    transition: all 0.25s ease;
}
.cta-banner .btn--cta.btn--lg:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(232, 168, 56, 0.5);
}

/* === Service Grid (Wave 4 enrichment) — upgrade === */
.services-grid-section {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.services-grid-section h2 {
    color: #1B365D;
    font-size: 1.55rem;
    margin: 0 0 6px;
}
.services-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 14px !important;
}
.service-card {
    border: 1px solid #e5e7eb !important;
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%) !important;
    padding: 20px 22px !important;
    border-radius: 10px !important;
}
.service-card:hover {
    border-color: #E8A838 !important;
    box-shadow: 0 8px 20px rgba(232, 168, 56, 0.15) !important;
    transform: translateY(-3px) !important;
}
.service-card__price {
    color: #E8A838 !important;
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 8px !important;
}
.service-card__name {
    color: #1B365D !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    margin-bottom: 6px !important;
}
.service-card__brief {
    color: #6b7280 !important;
    font-size: 0.825rem !important;
    line-height: 1.5 !important;
}

/* === Testimonials Section premium === */
.testimonials-section h2 {
    color: #1B365D;
    font-size: 1.55rem;
    text-align: center;
    margin: 0 0 6px;
}
.testimonials-section__lede {
    text-align: center;
    color: #6b7280;
    margin-bottom: 28px !important;
}
.testimonial {
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%) !important;
    border-color: #e5e7eb !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04) !important;
    border-radius: 12px !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(27, 54, 93, 0.08) !important;
}
.testimonial__stars {
    font-size: 1.15rem !important;
    letter-spacing: 0.08em !important;
}
.testimonial__quote {
    line-height: 1.65 !important;
    color: #1f2937 !important;
}
.testimonial__author {
    color: #1B365D !important;
    font-weight: 700 !important;
}

/* === Credentials Section already premium — minor tune === */
.credentials-section h2 {
    text-align: center;
    font-size: 1.55rem;
    margin: 0 0 24px !important;
}
.credentials-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
}
.credential-card {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
    transition: transform 0.2s ease;
}
.credential-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.1) !important;
}

/* === Competitor Framing Section === */
.competitor-framing-section h2 {
    text-align: center;
    color: #1B365D;
    font-size: 1.55rem;
    margin: 0 0 8px;
}
.competitor-framing-section > p {
    text-align: center;
    color: #6b7280;
    margin-bottom: 24px !important;
}
.comparison-col h3 {
    color: #1B365D;
    margin: 0 0 14px !important;
}

/* === Nearby Cities Section === */
.nearby-cities-section h2 {
    color: #1B365D;
    font-size: 1.4rem;
    margin: 0 0 18px;
    padding-left: 16px;
    border-left: 4px solid #E8A838;
}

/* === Mobile Responsive === */
@media (max-width: 760px) {
    .service-hero {
        padding: 32px 22px;
    }
    .service-hero__title {
        font-size: 1.6rem;
    }
    .service-content.prose h2 {
        font-size: 1.3rem;
    }
    .service-content.prose table {
        display: block;
        overflow-x: auto;
    }
    .services-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
    .service-card {
        padding: 14px 16px !important;
    }
    .service-card__name {
        font-size: 0.9rem !important;
    }
    .testimonials-grid {
        grid-template-columns: 1fr !important;
    }
}

/* === Wave 6.1 — Fix About/Contact/SA hero white-on-white === */
.about-hero,
.contact-hero,
.service-areas-hero,
.blog-hero,
.page-hero,
.hero--basic {
    background: linear-gradient(135deg, #1B365D 0%, #142845 50%, #0F1F38 100%) !important;
    color: #fff;
    padding: 64px 24px;
    border-radius: 0;
    margin: 0 0 32px;
    position: relative;
}
.about-hero h1,
.about-hero .hero__title,
.contact-hero h1,
.service-areas-hero h1,
.blog-hero h1,
.page-hero h1,
.hero--basic h1 {
    color: #fff !important;
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    margin: 0 0 12px;
    line-height: 1.2;
}
.about-hero p,
.contact-hero p,
.service-areas-hero p,
.blog-hero p,
.page-hero p,
.hero--basic p {
    color: rgba(255,255,255,0.85) !important;
}
