/*
Theme Name: RetroPower Classic
Theme URI: https://www.retropowermotorsport.com
Description: Dark workshop theme for Retro Power Motorsport — moody automotive aesthetic
Author: Lee Plant
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: Private
Text Domain: retropower-classic
*/

/* ── Reset & Base ─────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-primary: #1a1a1a;
    --bg-elevated: #222;
    --bg-card: #262626;
    --bg-card-hover: #2c2c2c;
    --bg-hero: #111;
    --bg-surface: #1e1e1e;
    --border: rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text-primary: #e8e4de;
    --text-secondary: #9a9590;
    --text-muted: #6a6560;
    --text-light: #f3efe8;
    --rust: #d8613c;
    --rust-hover: #e87a56;
    --rust-glow: rgba(216,97,60,0.2);
    --chrome: #8a9bae;
    --chrome-bright: #b0c0d0;
    --amber: #c8a04e;
    --amber-dim: rgba(200,160,78,0.12);
    --taupe: #a89078;
    --font-heading: 'Outfit', 'Montserrat', -apple-system, sans-serif;
    --font-body: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --max-width: 1200px;
}

html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--rust); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--rust-hover); }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ── Typography ───────────────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; color: var(--text-primary); }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

/* ── Top Contact Strip ────────────────────────────────────────────── */
.contact-bar { background: #111; padding: 8px 0; font-size: 0.82rem; border-bottom: 1px solid var(--border); }
.contact-bar .wrap { display: flex; justify-content: center; align-items: center; gap: 32px; flex-wrap: wrap; }
.contact-bar a { color: var(--text-muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.contact-bar a:hover { color: var(--amber); }

/* ── Header ───────────────────────────────────────────────────────── */
.site-header { background: var(--bg-hero); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 80px; }
.site-logo { display: flex; align-items: center; gap: 12px; }
.site-logo img { height: 50px; width: auto; }
.site-logo-text {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.site-logo-text .logo-rust { color: var(--rust); }
.site-logo-text .logo-sub {
    display: block;
    font-family: var(--font-accent);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    font-weight: 600;
}

.main-nav { display: flex; align-items: center; gap: 0; }
.main-nav > a, .nav-dropdown > .nav-dropdown-toggle {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 8px 14px;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 5px;
}
.main-nav > a:hover, .main-nav > a.active,
.nav-dropdown:hover > .nav-dropdown-toggle { color: var(--text-primary); background: rgba(255,255,255,0.05); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle::after {
    content: '\25BE';
    font-size: 0.7em;
    opacity: 0.5;
    transition: transform 0.2s;
}
.nav-dropdown:hover .nav-dropdown-toggle::after { transform: rotate(180deg); }
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    padding: 8px 0;
    z-index: 1000;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
    display: block;
    padding: 10px 18px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.15s;
}
.nav-dropdown-menu a:hover {
    background: rgba(255,255,255,0.04);
    color: var(--rust);
    padding-left: 22px;
}

.nav-cta {
    background: var(--rust) !important;
    color: #fff !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    margin-left: 8px;
}
.nav-cta:hover { background: var(--rust-hover) !important; }
.nav-toggle { display: none; background: none; border: none; color: var(--text-primary); font-size: 1.5rem; cursor: pointer; padding: 8px; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero {
    background: var(--bg-hero);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}
/* Subtle radial glow behind logo */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.04) 0%, transparent 70%);
    pointer-events: none;
}
.hero .wrap {
    display: flex;
    align-items: center;
    gap: 48px;
    position: relative;
    z-index: 1;
}
.hero-image {
    flex: 0 0 auto;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.hero-image img { width: 100%; }
.hero-content { flex: 1; }
.hero-tagline {
    font-family: var(--font-accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--amber);
    margin-bottom: 14px;
    font-weight: 600;
}
.hero h1 { margin-bottom: 18px; color: #fff; }
.hero h1 em { font-style: italic; color: var(--rust); }
.hero-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.8;
}
.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-outline { color: var(--text-light); border-color: rgba(255,255,255,0.2); }
.hero .btn-outline:hover { border-color: var(--rust); color: var(--rust); }

/* ── Warm Divider ─────────────────────────────────────────────────── */
.warm-divider {
    height: 3px;
    background: linear-gradient(90deg, var(--taupe) 0%, var(--rust) 50%, var(--chrome) 100%);
    opacity: 0.4;
}

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    border: none; border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s;
}
.btn-primary { background: var(--rust); color: #fff; box-shadow: 0 4px 16px var(--rust-glow); }
.btn-primary:hover { background: var(--rust-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 24px var(--rust-glow); }
.btn-outline { background: transparent; color: var(--text-primary); border: 2px solid var(--border-hover); }
.btn-outline:hover { border-color: var(--rust); color: var(--rust); transform: translateY(-2px); }

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding: 68px 0; }
.section-products { background: var(--bg-surface); }
.section-features { background: var(--bg-elevated); }
.section-testimonial { background: var(--bg-surface); }
.section-header { text-align: center; margin-bottom: 44px; }
.section-header h2 { margin-bottom: 12px; }
.section-header p { color: var(--text-secondary); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }
.section-label {
    font-family: var(--font-accent);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--amber);
    margin-bottom: 8px;
    font-weight: 700;
}

/* ── Cards ─────────────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex; flex-direction: column;
}
.card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}
.card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #111;
}
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; opacity: 0.9; }
.card:hover .card-image img { transform: scale(1.04); opacity: 1; }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.1rem; margin-bottom: 8px; transition: color 0.2s; }
.card:hover .card-body h3 { color: var(--rust); }
.card-body p { color: var(--text-secondary); font-size: 0.88rem; flex: 1; }
.card-footer {
    padding: 14px 20px;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.card-link {
    font-size: 0.82rem; font-weight: 600;
    color: var(--rust);
    display: flex; align-items: center; gap: 4px;
}
.card-link::after { content: '\2192'; transition: transform 0.2s; }
.card:hover .card-link::after { transform: translateX(4px); }

/* ── Features ─────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: border-color 0.3s;
}
.feature-item:hover { border-color: var(--border-hover); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--rust-glow);
    color: var(--rust);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; margin: 0 auto 14px;
}
.feature-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-item p { color: var(--text-secondary); font-size: 0.88rem; }

/* ── Testimonial ──────────────────────────────────────────────────── */
.testimonial {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--taupe);
    border-radius: 4px 10px 10px 4px;
    padding: 32px 36px;
}
.testimonial blockquote {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.75;
    margin-bottom: 14px;
}
.testimonial cite { font-style: normal; font-weight: 600; color: var(--amber); font-size: 0.9rem; }

/* ── CTA Section ──────────────────────────────────────────────────── */
.cta-section {
    background: var(--bg-elevated);
    padding: 60px 0;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.cta-section h2 { color: var(--text-light); margin-bottom: 12px; }
.cta-section p { color: var(--text-secondary); margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-section .section-label { color: var(--amber); }
.cta-section .btn-outline { color: var(--text-light); border-color: rgba(255,255,255,0.15); }
.cta-section .btn-outline:hover { border-color: var(--amber); color: var(--amber); background: transparent; }

/* ── Footer ───────────────────────────────────────────────────────── */
.site-footer { background: #111; color: var(--text-light); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .site-logo-text { color: var(--text-light); }
.footer-brand .logo-rust { color: var(--rust); }
.footer-brand p { color: var(--text-muted); font-size: 0.88rem; margin-top: 12px; line-height: 1.7; }
.footer-col h4 {
    font-family: var(--font-accent); font-size: 0.78rem;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--amber); margin-bottom: 16px; font-weight: 600;
}
.footer-col a { display: block; color: var(--text-muted); font-size: 0.88rem; padding: 4px 0; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-light); }
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 0.8rem; color: var(--text-muted);
}

/* ── WP Content ───────────────────────────────────────────────────── */
.page-content { padding: 56px 0; }
.page-content .wrap { max-width: 900px; }
.page-hero { padding: 48px 0 36px; text-align: center; background: var(--bg-elevated); border-bottom: 1px solid var(--border); }
.entry-content p { margin-bottom: 1em; color: var(--text-secondary); line-height: 1.8; }
.entry-content img { border-radius: 8px; margin: 20px 0; }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.entry-content strong { color: var(--text-primary); }
.entry-content .wp-block-columns {
    display: grid; grid-template-columns: 1fr 2fr; gap: 24px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: 10px; padding: 24px; margin-bottom: 24px;
}

/* ── Responsive ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .main-nav {
        display: none; position: absolute; top: 80px; left: 0; right: 0;
        background: var(--bg-card); border-bottom: 1px solid var(--border);
        flex-direction: column; padding: 16px; z-index: 999;
    }
    .main-nav.open { display: flex; }
    .main-nav > a, .nav-dropdown > .nav-dropdown-toggle { width: 100%; padding: 12px 16px; }
    .nav-dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0 0 0 16px;
    }
    .nav-dropdown:hover .nav-dropdown-menu { display: block; }
    .nav-dropdown-menu a { padding: 10px 16px; }
    .site-header { position: relative; }
    .hero .wrap { flex-direction: column; text-align: center; }
    .hero-image { max-width: 280px; }
    .hero-buttons { justify-content: center; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
    .card-grid { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; }
    .contact-bar .wrap { flex-direction: column; gap: 6px; }
}
