/*
Theme Name: Markus Detailing
Theme URI: https://detailing.tampa-bay-cleaning.com
Author: Markus Detailing
Description: Custom B&W minimal theme for Markus Detailing - mobile auto detailing in Tampa Bay
Version: 1.0
Text Domain: markus-detailing
*/

/* =============== Reset + Base =============== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    font-size: 17px;
    line-height: 1.65;
    color: #111;
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* =============== Layout =============== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-dark { background: #000; color: #fff; }
.section-gray { background: #f7f7f7; }

/* =============== Typography =============== */
h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; color: #000; margin-bottom: 0.5em; }
h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.5vw, 44px); margin-top: 1.2em; }
h3 { font-size: clamp(20px, 2.2vw, 26px); margin-top: 1em; }
h4 { font-size: 18px; }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5em; margin-bottom: 1em; }
li { margin-bottom: 0.4em; }
strong { font-weight: 700; }
.lead { font-size: 21px; color: #444; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: #888; margin-bottom: 8px; display: block; }
.section-dark .eyebrow { color: #999; }

/* =============== Buttons =============== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 16px 28px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; font-size: 14px; text-decoration: none; border: 2px solid #000; background: #000; color: #fff; transition: all 0.2s ease; cursor: pointer; line-height: 1; }
.btn:hover { background: #fff; color: #000; transform: translateY(-2px); text-decoration: none; }
.btn-outline { background: transparent; color: #000; }
.btn-outline:hover { background: #000; color: #fff; }
.btn-light { background: #fff; color: #000; border-color: #fff; }
.btn-light:hover { background: transparent; color: #fff; }
.btn-sm { padding: 10px 18px; font-size: 12px; }

/* =============== Header =============== */
.site-header { position: sticky; top: 0; background: #fff; border-bottom: 1px solid #eee; z-index: 100; backdrop-filter: blur(10px); background: rgba(255,255,255,0.95); }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; gap: 32px; }
.site-logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; color: #000; }
.site-logo:hover { text-decoration: none; }
.logo-mark { font-size: 22px; font-weight: 900; letter-spacing: -0.02em; }
.logo-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.15em; color: #888; margin-top: 4px; text-transform: uppercase; }
.main-nav { display: flex; align-items: center; gap: 4px; flex: 1; justify-content: center; }
.main-nav a { padding: 10px 14px; font-size: 14px; font-weight: 600; text-decoration: none; color: #333; border-radius: 0; transition: color 0.15s; }
.main-nav a:hover { color: #000; text-decoration: underline; text-decoration-thickness: 2px; }
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #000; min-width: 220px; padding: 8px 0; z-index: 10; list-style: none; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.main-nav .menu-item-has-children:hover > .sub-menu { display: block; }
.main-nav .sub-menu li { margin: 0; }
.main-nav .sub-menu a { display: block; padding: 10px 18px; font-size: 13px; }
.main-nav .sub-menu a:hover { background: #000; color: #fff; }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-phone { font-size: 14px; font-weight: 700; text-decoration: none; color: #000; }
.header-phone:hover { text-decoration: underline; }

.mobile-toggle { display: none; background: transparent; border: 0; padding: 8px; width: 44px; height: 44px; flex-direction: column; gap: 6px; align-items: center; justify-content: center; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: #000; transition: all 0.2s; }

@media (max-width: 980px) {
    .mobile-toggle { display: flex; }
    .main-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #000; flex-direction: column; gap: 0; padding: 16px 0; }
    .main-nav.is-open { display: flex; }
    .main-nav a { padding: 14px 24px; width: 100%; text-align: left; border-bottom: 1px solid #f0f0f0; }
    .main-nav .sub-menu { position: static; display: block; border: 0; box-shadow: none; padding-left: 16px; }
    .header-phone { display: none; }
}

/* =============== Trust Bar =============== */
.trust-bar { background: #000; color: #fff; padding: 14px 0; }
.trust-bar-inner { display: flex; gap: 32px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 13px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.02em; }
.trust-item svg { width: 16px; height: 16px; }
.trust-stars { color: #ffd700; letter-spacing: 0.05em; }

/* =============== Hero =============== */
.hero { padding: 100px 0 120px; background: #fff; position: relative; }
.hero-inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: center; }
.hero-content h1 { margin-bottom: 24px; }
.hero-content .lead { margin-bottom: 32px; font-size: 22px; color: #555; }
.hero-meta { display: flex; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }
.hero-meta-num { font-size: 36px; font-weight: 900; letter-spacing: -0.02em; line-height: 1; }
.hero-meta-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: #888; font-weight: 700; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { background: #000; aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; color: #fff; padding: 40px; text-align: center; position: relative; overflow: hidden; }
.hero-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, #000 0%, #1a1a1a 100%); }
.hero-visual-content { position: relative; z-index: 1; }
.hero-visual-content .badge { font-size: 14px; text-transform: uppercase; letter-spacing: 0.15em; font-weight: 700; margin-bottom: 16px; opacity: 0.6; }
.hero-visual-content .stat { font-size: 80px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; margin-bottom: 8px; }
.hero-visual-content .label { font-size: 16px; opacity: 0.8; }

@media (max-width: 900px) {
    .hero { padding: 60px 0 80px; }
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { aspect-ratio: 4/3; padding: 32px; }
    .hero-visual-content .stat { font-size: 60px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { justify-content: center; }
}

/* =============== Content Pages =============== */
.page-header { padding: 64px 0 32px; border-bottom: 1px solid #eee; }
.page-header h1 { margin-bottom: 16px; }
.page-header .lead { color: #555; }
.page-content { padding: 48px 0 80px; }
.page-content .container-narrow { font-size: 18px; line-height: 1.7; }
.page-content h2 { margin-top: 2em; padding-top: 0.4em; }
.page-content h3 { margin-top: 1.6em; }
.page-content ul, .page-content ol { margin-bottom: 1.5em; }
.page-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 16px; }
.page-content table th, .page-content table td { border: 1px solid #ddd; padding: 12px 16px; text-align: left; }
.page-content table th { background: #000; color: #fff; font-weight: 700; }
.page-content table tr:nth-child(even) td { background: #fafafa; }
.page-content blockquote { border-left: 4px solid #000; padding: 8px 24px; margin: 1.5em 0; font-style: italic; color: #555; }
.page-content a { color: #000; }
.page-content img { margin: 1.5em 0; }

/* =============== Services Grid =============== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.service-card { background: #fff; border: 2px solid #000; padding: 32px 28px; text-decoration: none; color: #000; transition: all 0.2s ease; display: flex; flex-direction: column; }
.service-card:hover { background: #000; color: #fff; transform: translateY(-4px); text-decoration: none; }
.service-card h3 { font-size: 22px; margin-bottom: 12px; }
.service-card p { color: inherit; opacity: 0.8; font-size: 15px; flex: 1; }
.service-card .arrow { margin-top: 16px; font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; }

/* =============== Footer =============== */
.site-footer { background: #000; color: #fff; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: #888; margin-bottom: 20px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: #ccc; text-decoration: none; font-size: 14px; transition: color 0.15s; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-brand .logo-mark { color: #fff; font-size: 24px; margin-bottom: 16px; }
.footer-brand p { color: #999; font-size: 14px; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 36px; height: 36px; border: 1px solid #444; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.footer-social a:hover { background: #fff; color: #000; border-color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid #222; padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #777; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: #999; text-decoration: none; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 540px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* =============== Sticky CTA Bar (Mobile) =============== */
.sticky-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #000; padding: 12px; z-index: 200; gap: 8px; }
.sticky-cta a { flex: 1; padding: 14px; background: #fff; color: #000; text-align: center; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; text-decoration: none; }
.sticky-cta a.alt { background: transparent; color: #fff; border: 2px solid #fff; }
@media (max-width: 700px) {
    .sticky-cta { display: flex; }
    body { padding-bottom: 70px; }
}

/* =============== Breadcrumbs =============== */
.breadcrumbs { padding: 16px 0; font-size: 13px; color: #888; border-bottom: 1px solid #f0f0f0; }
.breadcrumbs a { color: #555; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }

/* =============== Blog =============== */
.blog-card { border-bottom: 1px solid #eee; padding: 32px 0; }
.blog-card h2 { margin-bottom: 8px; font-size: 28px; }
.blog-card h2 a { text-decoration: none; }
.blog-card h2 a:hover { text-decoration: underline; }
.blog-meta { font-size: 13px; color: #888; margin-bottom: 16px; }
.blog-excerpt { color: #555; }

/* =============== Reviews =============== */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.review-card { background: #fff; border: 1px solid #ddd; padding: 28px; }
.review-stars { color: #ffd700; font-size: 18px; margin-bottom: 12px; letter-spacing: 0.05em; }
.review-text { font-style: italic; color: #333; margin-bottom: 16px; }
.review-author { font-size: 13px; color: #888; font-weight: 600; }

/* =============== Misc =============== */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }
.mt-4 { margin-top: 32px; }

/* Visually hidden */
.screen-reader-text { position: absolute; left: -9999px; }

/* Hide WP block theme remnants */
.wp-block-post-title { display: none !important; }
.wp-site-blocks { padding: 0 !important; }
