/* ============================================
   SPRAYTECH - VEHICLE COLOUR PICKER PAGE
   ============================================ */

.colour-hero {
    position: relative;
    padding: 7rem 1.5rem 3rem;
    text-align: center;
    background: var(--black-mid);
    overflow: hidden;
}

.colour-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 0%, var(--yellow-glow-soft), transparent 60%);
    pointer-events: none;
}

.colour-hero-content { position: relative; max-width: 700px; margin: 0 auto; }

.colour-hero-content p {
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 1.05rem;
    margin-top: 0.8rem;
}

.colour-picker-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.colour-story {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2rem;
    align-items: center;
    background: linear-gradient(135deg, rgba(245,208,0,0.06), rgba(255,255,255,0.02));
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.story-copy h2,
.compromise-copy h2,
.feature-intro h2,
.visualizer-heading h3,
.finish-header h3,
.finish-header h4 {
    margin: 0 0 1rem;
    font-family: var(--font-headline);
    letter-spacing: 0.05em;
}

.story-copy h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.05;
}

.story-copy p,
.compromise-copy p,
.feature-intro p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.story-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.story-visual {
    display: flex;
    justify-content: center;
}

.story-visual img {
    width: min(100%, 480px);
    height: auto;
    border-radius: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-card);
}

.finish-showcase {
    margin: 2.5rem 0;
}

.finish-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.finish-header h3 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    text-transform: lowercase;
}

.finish-header h4 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    text-transform: lowercase;
    color: var(--yellow);
}

.finish-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}

.finish-card {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius);
    padding: 1rem 0.75rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--text);
}

.swatch {
    display: block;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.14);
    box-shadow: inset 0 0 12px rgba(0,0,0,0.25);
}

.swatch.gloss { background: linear-gradient(135deg, #dfe7f7, #4a6bdb 50%, #1e2f64); }
.swatch.matte { background: linear-gradient(135deg, #3a3a3a, #090909); }
.swatch.lustre { background: linear-gradient(135deg, #f4e9d0, #d9b26a 55%, #8e5e24); }
.swatch.metallic { background: linear-gradient(135deg, #dfe4eb, #7d8595 48%, #2c3133); }
.swatch.flip { background: linear-gradient(135deg, #2d7ff9, #7d2cf7, #ff4fd8, #ff9a3d); }
.swatch.iridescent { background: linear-gradient(135deg, #c2fff0, #8ecfff, #d9a7ff, #f4f0b4); }
.swatch.carbon { background: linear-gradient(135deg, #272727, #0d0d0d 60%, #444); }

.finish-card strong {
    font-family: var(--font-ui);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.compromise-block {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 1.5rem;
    align-items: center;
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
}

.compromise-copy h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.compromise-copy h2 span { color: var(--yellow); }

.compromise-visual {
    display: flex;
    justify-content: center;
}

.compromise-visual img {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    border-radius: var(--radius);
}

.feature-panel {
    background: rgba(245,208,0,0.04);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
}

.feature-intro { text-align: center; max-width: 760px; margin: 0 auto 1.5rem; }
.feature-intro h2 { font-size: clamp(2rem, 3vw, 2.8rem); }

.feature-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
}

.feature-item {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius);
    min-height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
    color: var(--text);
    font-family: var(--font-ui);
    font-weight: 600;
    line-height: 1.5;
}

.visualizer-heading {
    text-align: center;
    margin: 1.5rem 0 1rem;
}

.visualizer-heading h3 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.shift-video {
    width: 100%;
    max-width: 1040px;
    aspect-ratio: 16 / 9;
    margin: 0 auto 2rem;
    overflow: hidden;
    background: #111;
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}

.shift-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.colour-visualizer {
    display: grid;
    grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
    gap: 1.5rem;
    align-items: center;
    padding: 1.2rem;
    margin-bottom: 2rem;
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    --preview-colour: #f2f0eb;
}

.visualizer-copy { padding: 1rem; }
.visualizer-copy h3 { margin: 0.35rem 0 0.6rem; font-size: 2rem; }
.visualizer-copy p { color: var(--text-muted); line-height: 1.6; }
.visualizer-note { color: var(--yellow); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; }

.visualizer-stage {
    position: relative;
    min-height: 280px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #1b1b1b;
}

.visualizer-stage img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: center 70%;
    filter: saturate(0.75) contrast(1.05);
}

.visualizer-tint {
    position: absolute;
    inset: 38% 0 0;
    background: var(--preview-colour);
    mix-blend-mode: color;
    opacity: 0.7;
    pointer-events: none;
    transition: background 0.25s ease;
}

.colour-filter-bar {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.colour-filter-btn {
    padding: 0.55rem 1.3rem;
    background: var(--black-soft);
    border: 1px solid var(--black-border);
    border-radius: 999px;
    color: var(--text-muted);
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition);
}

.colour-filter-btn:hover { border-color: var(--yellow-dim); color: var(--text); }

.colour-filter-btn.active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: var(--black);
}

.colour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.1rem;
    margin-bottom: 2rem;
}

.colour-tile {
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    transition: var(--transition);
    text-align: center;
}

.colour-tile:hover {
    border-color: var(--yellow-dim);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.colour-tile.selected {
    border-color: var(--yellow);
    box-shadow: 0 0 0 3px var(--yellow-glow-soft), var(--shadow-yellow);
}

.colour-tile.hidden { display: none; }

.tile-face {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.4);
    position: relative;
}

.colour-tile.selected .tile-face::after {
    content: '\2713';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    font-size: 1.4rem;
    text-shadow: 0 0 6px rgba(0,0,0,0.9);
}

.tile-face.metallic { box-shadow: inset 0 0 10px rgba(0,0,0,0.4), inset -5px -5px 12px rgba(255,255,255,0.15); }
.tile-face.pearl { box-shadow: inset 0 0 10px rgba(0,0,0,0.15), 0 0 14px rgba(255,255,255,0.15); }

.tile-face.custom-face {
    background: conic-gradient(from 180deg, #f5d000, #c1121c, #1a2f57, #17301f, #f5d000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--black);
    font-size: 1.3rem;
}

.tile-info { line-height: 1.3; }

.tile-info strong {
    display: block;
    font-family: var(--font-ui);
    font-size: 0.9rem;
    color: var(--text);
}

.tile-info em {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.colour-custom-panel {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    margin: 0 auto 2rem;
    max-width: 500px;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--black-card);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
}

.colour-custom-panel input[type="color"] {
    width: 52px;
    height: 44px;
    padding: 2px;
    background: var(--black-soft);
    border: 1px solid var(--black-border);
    border-radius: var(--radius);
    cursor: pointer;
}

.colour-custom-panel input[type="text"] {
    flex: 1;
    min-width: 180px;
    background: var(--black-soft);
    border: 1px solid var(--black-border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--font-ui);
    font-size: 0.9rem;
    padding: 0.7rem 1rem;
}

.colour-sticky-bar {
    position: sticky;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    background: var(--black-soft);
    border: 1px solid var(--black-border);
    border-radius: var(--radius-lg);
    padding: 1.1rem 1.5rem;
    box-shadow: var(--shadow-card);
}

.sticky-preview {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.sticky-swatch {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.15);
    flex: 0 0 auto;
}

.sticky-text { display: flex; flex-direction: column; line-height: 1.3; }

.sticky-text strong {
    font-family: var(--font-ui);
    font-size: 1rem;
    color: var(--text);
}

.sticky-text em {
    font-style: normal;
    font-size: 0.75rem;
    color: var(--yellow);
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .colour-story,
    .compromise-block,
    .colour-visualizer { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .colour-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
    .tile-face { width: 52px; height: 52px; }
    .story-copy h2,
    .compromise-copy h2,
    .feature-intro h2,
    .visualizer-heading h3 { line-height: 1.15; }
    .colour-sticky-bar { justify-content: center; text-align: center; }
}
