
/* Cleanic Detailing — Global Theme Override
   Applied site-wide to enforce the light design system.
   Font: Inter | Accent: #2563EB | Background: #FFFFFF / #F8F9FA
*/

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

body {
    font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
    background: #FFFFFF !important;
    color: #1F2937 !important;
    font-size: 16px;
    line-height: 1.6;
}

/* Headings */
h1, h2, h3, h4, h5, h6,
.wp-block-heading,
.entry-title {
    font-family: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
    color: #1F2937 !important;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* Body text */
p, li, td, th, label, span {
    color: #4B5563;
    line-height: 1.6;
}

/* Links */
a {
    color: #2563EB;
    transition: color 0.2s ease;
}
a:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

/* Navigation — light theme for inner pages, dark preserved for homepage sticky header */
#masthead {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E5E7EB !important;
    box-shadow: 0 1px 4px rgba(0,0,0,.04) !important;
}

/* ── Preserve the dark sticky site header (designed for dark bg) ── */
#site-header {
    background: rgba(10, 10, 10, 0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
}
#site-header .logo-name,
#site-header .logo-tagline {
    color: #ffffff !important;
}
#site-header .main-nav a {
    color: rgba(255,255,255,0.85) !important;
    font-weight: 500;
    font-size: 15px;
}
#site-header .main-nav a:hover {
    color: #00c896 !important;
    text-decoration: none !important;
}
#site-header .header-phone,
#site-header .header-phone a {
    color: rgba(255,255,255,0.7) !important;
}
/* Mobile hamburger — transparent, white icon */
#mobile-menu-btn {
    background: transparent !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 8px !important;
    font-size: 26px !important;
    min-width: 44px !important;
    min-height: 44px !important;
}
/* Mobile menu overlay */
#mobile-menu {
    background: rgba(10,10,10,0.97) !important;
}
#mobile-menu a {
    color: #ffffff !important;
}
#mobile-menu a:hover {
    color: #00c896 !important;
}

.wp-block-navigation a,
.nav-menu a,
.site-navigation a {
    color: #1F2937 !important;
    font-weight: 500;
    font-size: 15px;
}
.wp-block-navigation a:hover,
.nav-menu a:hover {
    color: #2563EB !important;
    text-decoration: none !important;
}

/* Buttons / CTAs */
.wp-block-button__link,
.wp-element-button,
button,
.button,
input[type="submit"] {
    background: #2563EB !important;
    color: #FFFFFF !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    padding: 12px 24px !important;
    border: none !important;
    transition: all 0.2s ease-in-out !important;
    cursor: pointer;
}
.wp-block-button__link:hover,
.wp-element-button:hover,
button:hover,
.button:hover,
input[type="submit"]:hover {
    background: #1D4ED8 !important;
    transform: translateY(-1px);
    color: #FFFFFF !important;
    text-decoration: none !important;
}

/* Cards / content boxes */
.wp-block-group,
.nfd-container,
article.post,
.entry,
.widget {
    background: #FFFFFF;
}

/* Secondary backgrounds */
.wp-block-cover,
.nfd-wb-hero__hero-29 {
    /* preserve hero images */
}

/* Blog post content */
.entry-content {
    color: #4B5563;
    font-size: 16px;
    line-height: 1.75;
}
.entry-content h2,
.entry-content h3 {
    color: #1F2937;
    margin-top: 2rem;
}
.entry-content strong {
    color: #1F2937;
    font-weight: 600;
}
.entry-content ul li::marker {
    color: #2563EB;
}

/* Post meta / dates / authors */
.post-meta,
.entry-meta,
.byline,
.posted-on {
    color: #6B7280;
    font-size: 14px;
}

/* Sidebar widgets */
.widget-title,
.widgettitle {
    color: #1F2937;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tables */
table {
    background: #FFFFFF;
    border-collapse: collapse;
    width: 100%;
}
table th {
    background: #F8F9FA;
    color: #1F2937;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 2px solid #E5E7EB;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
table td {
    padding: 12px 16px;
    border-bottom: 1px solid #E5E7EB;
    color: #4B5563;
}
table tbody tr:hover {
    background: #F8F9FA;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
textarea,
select {
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    padding: 10px 14px !important;
    font-size: 16px !important;
    color: #1F2937 !important;
    background: #FFFFFF !important;
    min-height: 44px;
    font-family: Inter, sans-serif !important;
    transition: border-color 0.2s;
}
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #2563EB !important;
    outline-offset: 2px !important;
    border-color: #2563EB !important;
}

/* Footer */
.site-footer,
footer,
#colophon {
    background: #F8F9FA !important;
    border-top: 1px solid #E5E7EB !important;
    color: #6B7280 !important;
}
.site-footer a,
footer a {
    color: #4B5563 !important;
}
.site-footer a:hover,
footer a:hover {
    color: #2563EB !important;
}

/* Images */
img {
    border-radius: 10px;
    max-width: 100%;
    height: auto;
}

/* Dividers */
hr {
    border: none;
    border-top: 1px solid #E5E7EB;
    margin: 2rem 0;
}

/* NFD theme overrides */
.nfd-bg-darker,
.is-style-nfd-theme-darker,
[data-nfd-theme="darker"] {
    background: #1F2937 !important;
}
.nfd-bg-dark,
.is-style-nfd-theme-dark {
    background: #374151 !important;
}

/* Ensure no dark backgrounds bleed through on white sections */
.is-style-nfd-theme-white,
[data-nfd-theme="white"] {
    background: #FFFFFF !important;
    color: #1F2937 !important;
}
.is-style-nfd-theme-white h1,
.is-style-nfd-theme-white h2,
.is-style-nfd-theme-white h3,
[data-nfd-theme="white"] h1,
[data-nfd-theme="white"] h2,
[data-nfd-theme="white"] h3 {
    color: #1F2937 !important;
}

/* Scrollbar (modern browsers) */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #F8F9FA; }
::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* Focus ring for accessibility */
:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 3px;
}

/* ─── Page Hero (theme banner) fixes ───────────────────────────── */

/* On custom landing pages (.clnc-lp), hide the theme's duplicate dark banner */
body:has(.clnc-lp) .page-hero {
    display: none !important;
}

/* On all other pages (blog posts, archive, etc.) — light the banner */
.page-hero {
    background: #F8F9FA !important;
    border-bottom: 1px solid #E5E7EB !important;
    padding: 48px 24px !important;
}
.page-hero h1,
.page-hero .section-title,
.page-hero h2 {
    color: #1F2937 !important;
    font-family: Inter, 'Segoe UI', Helvetica Neue, Arial, sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
}

/* Sub-page header phone — handled by #site-header block above */

/* Single post / article pages — light background */
.single-post,
.post-content,
article.post,
.entry-content {
    background: #FFFFFF !important;
    color: #1F2937 !important;
}

/* Blog archive cards — light */
.articles-grid .article-card,
.post-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.05) !important;
}

/* ─── Article Cards — light theme override ─────────────────────── */
.article-card {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    box-shadow: 0 2px 8px rgba(0,0,0,.05) !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}
.article-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.10) !important;
    transform: translateY(-2px) !important;
}

/* Thumbnail / image area — real photo cover */
.article-thumb {
    height: 220px !important;
    background-color: #EFF6FF !important;
    background-size: cover !important;
    background-position: center center !important;
    position: relative !important;
    display: block !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-bottom: 1px solid #E5E7EB !important;
}
/* Hide any stray emoji SVGs inside thumbnail */
.article-thumb img.emoji,
.article-thumb > img:not([class]) {
    display: none !important;
}
.article-thumb .article-category {
    position: absolute !important;
    bottom: 12px !important;
    left: 12px !important;
    margin-top: 0 !important;
}

/* Category pill */
.article-category {
    background: rgba(239,246,255,0.95) !important;
    color: #2563EB !important;
    border: 1px solid #BFDBFE !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 4px 10px !important;
    border-radius: 999px !important;
    margin-top: 0 !important;
    display: inline-block !important;
}

/* Card body */
.article-body {
    padding: 20px 24px 24px !important;
    background: #FFFFFF !important;
}
.article-meta {
    color: #6B7280 !important;
    font-size: 0.82rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
    margin-bottom: 10px !important;
}
.article-meta span,
.article-meta .meta-date,
.article-meta .meta-author {
    color: #6B7280 !important;
}
.article-meta .meta-sep {
    color: #D1D5DB !important;
}
/* Hide any emoji SVGs in meta */
.article-meta img.emoji {
    display: none !important;
}
.article-card h3,
.article-card h3 a {
    color: #1F2937 !important;
    font-weight: 600 !important;
    letter-spacing: -0.01em !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}
.article-card h3 a:hover {
    color: #2563EB !important;
}
.article-excerpt,
.article-card p {
    color: #4B5563 !important;
    font-size: 0.93rem !important;
    line-height: 1.65 !important;
}
.article-read-more {
    color: #2563EB !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    font-size: 0.9rem !important;
    display: inline-block !important;
    margin-top: 8px !important;
    transition: color 0.2s !important;
}
.article-read-more:hover {
    color: #1D4ED8 !important;
}

/* Articles grid/archive background */
.articles-page,
.articles-grid,
.archive-container,
body.archive,
body.blog {
    background: #F8F9FA !important;
}

/* Articles archive page-hero — already handled above but reinforce */
.articles-page .page-hero,
body.archive .page-hero {
    background: #F8F9FA !important;
    border-bottom: 1px solid #E5E7EB !important;
}


/* ─── Single Post — Professional Styles ─────────────────────────── */

/* Breadcrumb */
.post-breadcrumb {
    color: #6B7280 !important;
    font-size: 13px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
}
.post-breadcrumb a {
    color: #6B7280 !important;
    text-decoration: none !important;
}
.post-breadcrumb a:hover {
    color: #2563EB !important;
    text-decoration: underline !important;
}
.post-breadcrumb .bc-sep {
    color: #D1D5DB !important;
}
.post-breadcrumb .bc-current {
    color: #9CA3AF !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 260px !important;
}

/* Category pill on single post */
.post-cat-pill {
    display: inline-block !important;
    background: #EFF6FF !important;
    color: #2563EB !important;
    border: 1px solid #BFDBFE !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    padding: 4px 12px !important;
    border-radius: 999px !important;
    text-decoration: none !important;
}
.post-cat-pill:hover {
    background: #DBEAFE !important;
    text-decoration: none !important;
}

/* Single post H1 */
.single-post h1 {
    color: #111827 !important;
    font-size: clamp(26px, 3.5vw, 40px) !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 16px !important;
}

/* Clean byline — no emoji */
.post-meta {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    color: #6B7280 !important;
    font-size: 0.875rem !important;
    margin-bottom: 28px !important;
}
.post-meta img.emoji {
    display: none !important;
}
.post-meta .meta-sep {
    color: #D1D5DB !important;
}
.post-meta .meta-date,
.post-meta .meta-author,
.post-meta .meta-loc {
    color: #6B7280 !important;
}

/* Hero image */
.post-hero-image {
    border-radius: 12px !important;
    overflow: hidden !important;
    margin-bottom: 36px !important;
    aspect-ratio: 16 / 7 !important;
}
.post-hero-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}

/* Article body text */
.post-content {
    color: #1F2937 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}
.post-content h2 {
    color: #111827 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    margin: 36px 0 14px !important;
    letter-spacing: -0.01em !important;
}
.post-content h3 {
    color: #111827 !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    margin: 28px 0 10px !important;
}
.post-content p {
    margin-bottom: 18px !important;
    color: #374151 !important;
}
.post-content ul,
.post-content ol {
    padding-left: 24px !important;
    margin-bottom: 18px !important;
}
.post-content li {
    margin-bottom: 8px !important;
    color: #374151 !important;
}
.post-content strong {
    color: #111827 !important;
}
.post-content a {
    color: #2563EB !important;
    text-decoration: underline !important;
}
.post-content a:hover {
    color: #1D4ED8 !important;
}

/* Tags */
.post-tags {
    margin-top: 32px !important;
    padding-top: 24px !important;
    border-top: 1px solid #E5E7EB !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}
.post-tags .tags-label {
    color: #6B7280 !important;
    font-size: 13px !important;
}
.post-tag {
    background: #F3F4F6 !important;
    border: 1px solid #E5E7EB !important;
    color: #4B5563 !important;
    font-size: 12px !important;
    padding: 3px 10px !important;
    border-radius: 999px !important;
    text-decoration: none !important;
}
.post-tag:hover {
    background: #EFF6FF !important;
    color: #2563EB !important;
    border-color: #BFDBFE !important;
}

/* CTA box — light theme */
.post-cta-box {
    background: #EFF6FF !important;
    border: 1px solid #BFDBFE !important;
    border-radius: 16px !important;
    padding: 36px 32px !important;
    margin-top: 48px !important;
    text-align: center !important;
}
.post-cta-icon {
    margin-bottom: 16px !important;
    display: flex !important;
    justify-content: center !important;
}
.post-cta-box h3 {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 10px !important;
}
.post-cta-box p {
    color: #4B5563 !important;
    margin-bottom: 22px !important;
    font-size: 0.95rem !important;
}
.post-cta-buttons {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

/* Related articles */
.post-related {
    margin-top: 56px !important;
}
.post-related-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 24px !important;
}

/* Mobile tweaks */
@media (max-width: 640px) {
    .post-hero-image { aspect-ratio: 4 / 3 !important; }
    .post-cta-box { padding: 24px 20px !important; }
    .post-breadcrumb .bc-current { max-width: 160px !important; }
    .article-thumb { height: 180px !important; }
}


/* ── Hero & Dark Section Overrides ─────────────────────────────────────────
   The hero, MIRAKN, urgent-CTA, and contact sections have dark backgrounds.
   The global h1/h2 colour must be restored to white for those sections.
   ─────────────────────────────────────────────────────────────────────── */
#hero h1, #hero h2, #hero h3, #hero h4,
#hero .hero-title,
#hero .hero-description,
#hero .hero-stat-label {
    color: #ffffff !important;
}
#hero .hero-title .highlight {
    color: #00c896 !important;
}
#hero .hero-stat-num {
    color: #00c896 !important;
}
#urgent-cta h2,
#urgent-cta p,
#urgent-cta strong {
    color: #ffffff !important;
}
#mirakn h2,
#mirakn p,
#mirakn .section-title {
    color: #ffffff !important;
}
#contact h2, #contact h3,
#contact .contact-method-label {
    color: #ffffff !important;
}
#testimonials .section-title {
    color: #1F2937 !important;
}
