/*
Theme Name: Supreme Auto Collision
Author: Readofia
Description: Custom one-page WordPress theme for Supreme Auto Collision & Motorsports.
Version: 2.0.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: supreme-auto-collision
*/

:root {
    --sac-black: #000;
    --sac-charcoal: #141415;
    --sac-steel: #28292b;
    --sac-silver: #b8b9bb;
    --sac-white: #f2f2f0;
    --sac-red: #d4231c;
}

* { box-sizing: border-box; }

body:not(.home),
body.blog,
body.archive,
body.search,
body.error404 {
    margin: 0;
    background: var(--sac-black);
    color: var(--sac-white);
    font-family: "Inter", sans-serif;
}

a { color: inherit; }
img { max-width: 100%; height: auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--sac-steel);
    background: rgba(8, 8, 9, .96);
    backdrop-filter: blur(12px);
}

.admin-bar .site-header { top: 32px; }

.site-header-inner,
.site-footer-inner {
    width: min(1180px, 90%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.site-header-inner { min-height: 92px; }
.site-branding img { display: block; width: auto; height: 72px; }
.site-branding .custom-logo { width: auto; max-width: 230px; object-fit: contain; }

.site-menu,
.site-menu-fallback ul {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-menu a,
.site-menu-fallback a {
    color: var(--sac-silver);
    font-family: "Oswald", sans-serif;
    font-size: 13px;
    letter-spacing: .08em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-menu a:hover,
.site-menu-fallback a:hover { color: #fff; }

.content-shell {
    width: min(1180px, 90%);
    min-height: 62vh;
    margin: 0 auto;
    padding: 90px 0 110px;
}

.content-shell-narrow { width: min(820px, 90%); }

.content-header {
    margin-bottom: 48px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--sac-steel);
}

.content-eyebrow,
.post-meta {
    margin: 0 0 12px;
    color: var(--sac-silver);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.content-header h1,
.empty-state h1 {
    margin: 0;
    font-family: "Oswald", sans-serif;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 1;
    text-transform: uppercase;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.post-card {
    overflow: hidden;
    border: 1px solid var(--sac-steel);
    background: var(--sac-charcoal);
}

.post-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-image img { transform: scale(1.035); }
.post-card-body { padding: 28px; }
.post-card h2 { margin: 0 0 16px; font: 600 28px/1.1 "Oswald", sans-serif; text-transform: uppercase; }
.post-card h2 a, .text-link { text-decoration: none; }
.post-excerpt, .post-card p { color: #a9aaad; line-height: 1.7; }
.text-link { color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; }

.featured-image { margin: 0 0 48px; overflow: hidden; border: 1px solid var(--sac-steel); }
.featured-image img { display: block; width: 100%; }

.entry-content {
    color: #d0d0d2;
    font-size: 17px;
    line-height: 1.85;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin: 1.6em 0 .6em;
    color: #fff;
    font-family: "Oswald", sans-serif;
    line-height: 1.15;
    text-transform: uppercase;
}

.entry-content a { color: #fff; text-decoration-color: var(--sac-red); }
.entry-content blockquote { margin: 2em 0; padding: 8px 0 8px 24px; border-left: 3px solid var(--sac-red); }
.entry-content .alignwide { width: min(1100px, 95vw); max-width: none; margin-left: 50%; transform: translateX(-50%); }

.pagination, .post-navigation-wrap { margin-top: 48px; }
.pagination .nav-links, .post-navigation { display: flex; justify-content: space-between; gap: 18px; }
.pagination a, .pagination span, .post-navigation a { color: #fff; text-decoration: none; }

.empty-state { padding: 80px 0; text-align: center; }
.empty-state p { color: var(--sac-silver); }
.theme-button {
    display: inline-block;
    margin-top: 20px;
    padding: 15px 24px;
    background: #fff;
    color: #000;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
}

.site-footer { border-top: 1px solid var(--sac-steel); background: #09090a; }
.site-footer-inner { min-height: 170px; padding: 34px 0; }
.site-footer strong { font-family: "Oswald", sans-serif; font-size: 20px; text-transform: uppercase; }
.site-footer p, .site-footer span { color: #858589; font-size: 13px; }
.site-footer-contact { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.site-footer-contact a { color: #fff; text-decoration: none; font-weight: 700; }

@media (max-width: 900px) {
    .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .site-navigation { display: none; }
}

@media (max-width: 782px) {
    .admin-bar .site-header { top: 46px; }
}

@media (max-width: 620px) {
    .site-header-inner { min-height: 78px; }
    .site-branding img { height: 58px; }
    .post-grid { grid-template-columns: 1fr; }
    .content-shell { padding: 64px 0 80px; }
    .site-footer-inner { align-items: flex-start; flex-direction: column; }
    .site-footer-contact { align-items: flex-start; }
}
