/*
Theme Name: Custom Cool Cars
Theme URI: https://customcoolcars.com
Author: Custom Cool Cars
Description: A high-energy RC car building, driving, and learning theme.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: customcoolcars
*/
:root {
    --bg:#0b1020;
    --panel:#151d31;
    --panel2:#1b2740;
    --text:#f4f7ff;
    --muted:#aebbd2;
    --blue:#31c5ff;
    --orange:#ff7b32;
    --lime:#c5ff50;
    --border:#30405d
}

* {
    box-sizing:border-box
}

html {
    scroll-behavior:smooth
}

body {
    margin:0;
    background:var(--bg);
    color:var(--text);
    font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;
    line-height:1.65
}

a {
    color:inherit;
    text-decoration:none
}

a:hover {
    color:var(--blue)
}

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

.container {
    width:min(1160px,calc(100% - 40px));
    margin:auto
}

.site-header {
    background:#0b1020eF;
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:50;
    backdrop-filter:blur(12px)
}

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

.header-inner {
    min-height:78px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px
}

.brand {
    font-weight:1000;
    letter-spacing:-1.2px;
    font-size:clamp(20px,2.5vw,27px);
    line-height:1.05
}

.brand span {
    color:var(--orange)
}

.brand small {
    display:block;
    font-size:9px;
    letter-spacing:3px;
    color:var(--blue);
    margin-top:5px
}

.menu {
    display:flex;
    gap:26px;
    list-style:none;
    margin:0;
    padding:0;
    font-weight:800;
    font-size:13px;
    text-transform:uppercase;
    letter-spacing:.8px
}

.menu a {
    padding:12px 0
}

.menu-toggle {
    display:none;
    background:var(--panel);
    border:1px solid var(--border);
    color:white;
    border-radius:8px;
    padding:8px 12px;
    font-weight:800
}

.hero {
    overflow:hidden;
    position:relative;
    background:radial-gradient(ellipse at 78% 45%,#123d65 0%,transparent 50%),linear-gradient(125deg,#101b34,#080d1b);
    border-bottom:1px solid var(--border)
}

.hero:before {
    content:'';
    position:absolute;
    inset:0;
    background-image:linear-gradient(#ffffff08 1px,transparent 1px),linear-gradient(90deg,#ffffff08 1px,transparent 1px);
    background-size:52px 52px;
    transform:perspective(450px) rotateX(40deg) scale(1.5);
    opacity:.6
}

.hero-inner {
    position:relative;
    min-height:520px;
    display:grid;
    grid-template-columns:1.05fr .95fr;
    align-items:center;
    gap:25px;
    padding:80px 0
}

.eyebrow {
    color:var(--lime);
    font-weight:900;
    letter-spacing:3px;
    font-size:12px;
    text-transform:uppercase
}

.hero h1 {
    font-size:clamp(52px,7vw,96px);
    line-height:.95;
    letter-spacing:-5px;
    margin:20px 0 25px;
    font-weight:1000;
    text-transform:uppercase
}

.hero h1 em {
    color:var(--blue);
    font-style:normal
}

.hero p {
    font-size:18px;
    color:#c5d3eb;
    max-width:550px
}

.btn {
    display:inline-block;
    background:var(--orange);
    color:#101423;
    border-radius:8px;
    padding:14px 22px;
    font-weight:1000;
    text-transform:uppercase;
    font-size:13px;
    letter-spacing:1px;
    box-shadow:0 6px 0 #9d3e18;
    transition:transform .2s
}

.btn:hover {
    color:#101423;
    transform:translateY(-3px)
}

.btn.alt {
    background:transparent;
    color:white;
    border:2px solid #61718c;
    box-shadow:none
}

.hero-actions {
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    margin-top:30px
}

.car-scene {
    position:relative;
    min-height:350px;
    display:grid;
    place-items:center
}

.car-scene:before {
    content:'';
    position:absolute;
    width:82%;
    aspect-ratio:1;
    border:2px dashed #31c5ff55;
    border-radius:50%;
    box-shadow:0 0 90px #31c5ff22
}

.car-emoji {
    font-size:clamp(140px,18vw,240px);
    filter:drop-shadow(0 30px 15px #0008);
    transform:rotate(-12deg);
    line-height:1
}

.scene-tag {
    position:absolute;
    right:5%;
    bottom:12%;
    padding:8px 15px;
    border:1px solid var(--blue);
    background:#101c35;
    border-radius:6px;
    font-weight:900;
    color:var(--blue);
    letter-spacing:2px;
    transform:rotate(-4deg)
}

.ticker {
    background:var(--orange);
    color:#111624;
    padding:11px 0;
    text-align:center;
    font-weight:1000;
    text-transform:uppercase;
    letter-spacing:3px;
    font-size:12px
}

.section {
    padding:74px 0
}

.section-head {
    display:flex;
    align-items:end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:28px
}

.section h2 {
    font-size:clamp(30px,4vw,48px);
    text-transform:uppercase;
    letter-spacing:-1.7px;
    line-height:1.1;
    margin:7px 0
}

.section-intro {
    color:var(--muted);
    max-width:650px
}

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

.feature {
    border:1px solid var(--border);
    background:linear-gradient(145deg,#1c2944,#111a2e);
    padding:30px;
    border-radius:14px;
    transition:transform .2s,border-color .2s
}

.feature:hover,.post-card:hover {
    transform:translateY(-5px);
    border-color:var(--blue)
}

.feature .symbol {
    font-size:55px;
    line-height:1.2
}

.feature h3 {
    font-size:25px;
    line-height:1.1;
    text-transform:uppercase;
    margin:18px 0 10px
}

.feature p {
    color:var(--muted);
    font-size:15px
}

.feature .arrow {
    color:var(--blue);
    font-weight:900;
    text-transform:uppercase;
    font-size:12px;
    letter-spacing:1px
}

.feature:nth-child(2) .arrow {
    color:var(--orange)
}

.feature:nth-child(3) .arrow {
    color:var(--lime)
}

.dark-section {
    background:#10192b;
    border-block:1px solid var(--border)
}

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

.post-card {
    overflow:hidden;
    border:1px solid var(--border);
    background:var(--panel);
    border-radius:12px;
    transition:transform .2s,border-color .2s
}

.post-thumb {
    aspect-ratio:16/10;
    display:grid;
    place-items:center;
    background:linear-gradient(140deg,#214e70,#13213c);
    font-size:65px
}

.post-thumb img {
    width:100%;
    height:100%;
    object-fit:cover
}

.post-body {
    padding:23px
}

.post-meta {
    font-size:11px;
    color:var(--blue);
    text-transform:uppercase;
    letter-spacing:1.5px;
    font-weight:900
}

.post-body h3 {
    font-size:21px;
    line-height:1.25;
    margin:12px 0
}

.post-body p {
    color:var(--muted);
    font-size:14px
}

.callout {
    padding:45px;
    background:linear-gradient(115deg,#123c60,#1a2645);
    border:1px solid #315b79;
    border-radius:16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:30px
}

.callout h2 {
    margin:0 0 10px
}

.callout p {
    color:#c7d7e8;
    margin:0
}

.site-footer {
    border-top:1px solid var(--border);
    padding:35px 0;
    color:var(--muted);
    font-size:13px
}

.footer-inner {
    display:flex;
    justify-content:space-between;
    gap:15px;
    flex-wrap:wrap
}

.content-wrap {
    padding:70px 0;
    max-width:860px
}

.entry-title {
    font-size:clamp(34px,5vw,60px);
    letter-spacing:-2px;
    line-height:1.12
}

.entry-content {
    font-size:17px;
    color:#d9e1ef
}

.entry-content a {
    color:var(--blue);
    text-decoration:underline
}

.entry-content img {
    border-radius:10px
}

.entry-content h2,.entry-content h3 {
    color:white
}

.entry-content pre {
    overflow:auto
}

.pagination {
    margin-top:35px
}

.pagination .page-numbers {
    display:inline-block;
    padding:7px 13px;
    border:1px solid var(--border);
    border-radius:6px
}

.screen-reader-text {
    position:absolute;
    left:-9999px
}

.skip-link:focus {
    position:fixed;
    left:10px;
    top:10px;
    z-index:999;
    background:white;
    color:black;
    padding:10px
}

.wp-block-image img {
    height:auto
}

@media(max-width:800px) {
    .hero-inner {
        grid-template-columns:1fr;
        padding:65px 0 35px
    }

    .car-scene {
        min-height:230px
    }

    .car-emoji {
        font-size:155px
    }

    .hero h1 {
        letter-spacing:-3px
    }

    .cards,.posts {
        grid-template-columns:1fr 1fr
    }

    .menu-toggle {
        display:block
    }

    .nav-wrap {
        display:none;
        position:absolute;
        top:100%;
        left:0;
        right:0;
        background:#0d1526;
        border-bottom:1px solid var(--border);
        padding:16px 20px
    }

    .nav-wrap.open {
        display:block
    }

    .menu {
        flex-direction:column;
        gap:6px
    }

}

@media(max-width:560px) {
    .cards,.posts {
        grid-template-columns:1fr
    }

    .callout {
        flex-direction:column;
        align-items:flex-start;
        padding:28px
    }

    .section {
        padding:52px 0
    }

    .hero-inner {
        min-height:0
    }

    .hero h1 {
        font-size:56px
    }

    .section-head {
        display:block
    }

}

@media(prefers-reduced-motion:reduce) {
    *,*:before,*:after {
        scroll-behavior:auto!important;
        transition:none!important
    }

}





/* Featured images in post cards */
.post-card img,
.post-thumbnail img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
}

/* Featured image on individual blog posts */
.single-post .post-thumbnail img,
.single-post .wp-post-image {
    display: block;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    margin: 0 auto 24px;
    border-radius: 12px;
}
