:root {
    --ink: #171717;
    --muted: #666;
    --line: #e8e2d7;
    --paper: #fffaf1;
    --red: #e62027;
    --yellow: #f6b31a;
    --cyan: #8fdff2;
    --green: #16865c;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 18%, rgba(230,32,39,.12), transparent 28%),
        radial-gradient(circle at 86% 12%, rgba(143,223,242,.18), transparent 30%),
        radial-gradient(circle at 18% 86%, rgba(246,179,26,.16), transparent 28%),
        linear-gradient(120deg, #fff 0%, #fffaf1 48%, #f3fbff 100%);
    background-size: 180% 180%, 170% 170%, 190% 190%, 100% 100%;
    animation: pageColourWash 18s ease-in-out infinite alternate;
    line-height: 1.55;
}

a { color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px clamp(18px, 5vw, 64px);
    background: rgba(255,255,255,.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.site-logo {
    display: block;
    width: clamp(170px, 24vw, 250px);
    height: auto;
}

nav {
    display: flex;
    align-items: center;
    gap: 18px;
    font-weight: 700;
}

nav a { text-decoration: none; }

.hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 480px);
    gap: clamp(28px, 6vw, 72px);
    align-items: center;
    padding: clamp(42px, 8vw, 92px) clamp(18px, 5vw, 64px);
    background:
        linear-gradient(120deg, rgba(17,17,17,.96) 0 58%, rgba(255,250,241,.9) 58% 100%),
        linear-gradient(115deg, #101010 0%, #101010 28%, #e62027 28%, #e62027 40%, #f6b31a 40%, #f6b31a 54%, #16865c 54%, #16865c 68%, #8fdff2 68%, #8fdff2 82%, #101010 82%);
    background-size: 100% 100%, 260% 260%;
    animation: colourFlow 16s ease-in-out infinite alternate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(115deg, rgba(255,255,255,.08) 0 2px, transparent 2px 34px),
        linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
    transform: translateX(-20%);
    animation: paintSweep 9s ease-in-out infinite;
    pointer-events: none;
}

.paint-drips {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: .72;
}

.drip {
    position: absolute;
    top: -34%;
    width: clamp(26px, 4vw, 58px);
    height: clamp(180px, 32vw, 440px);
    border-radius: 0 0 999px 999px;
    filter: blur(.15px);
    transform: translateY(-100%);
    animation: colourDrip 10s linear infinite;
}

.drip::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -18px;
    width: 1.18em;
    height: 1.18em;
    border-radius: 50%;
    transform: translateX(-50%);
    background: inherit;
    box-shadow: 0 18px 0 -6px currentColor, 0 42px 0 -10px currentColor;
}

.drip.red {
    left: 18%;
    color: rgba(230, 32, 39, .5);
    background: linear-gradient(to bottom, rgba(230,32,39,0), rgba(230,32,39,.72));
    animation-delay: -1s;
}

.drip.yellow {
    left: 31%;
    width: clamp(18px, 3vw, 40px);
    color: rgba(246, 179, 26, .48);
    background: linear-gradient(to bottom, rgba(246,179,26,0), rgba(246,179,26,.72));
    animation-delay: -5s;
    animation-duration: 12s;
}

.drip.blue {
    left: 48%;
    height: clamp(210px, 34vw, 470px);
    color: rgba(32, 118, 196, .46);
    background: linear-gradient(to bottom, rgba(32,118,196,0), rgba(32,118,196,.68));
    animation-delay: -3s;
    animation-duration: 11s;
}

.drip.green {
    left: 65%;
    width: clamp(22px, 3.6vw, 48px);
    color: rgba(22, 134, 92, .44);
    background: linear-gradient(to bottom, rgba(22,134,92,0), rgba(22,134,92,.66));
    animation-delay: -7s;
    animation-duration: 13s;
}

.drip.cyan {
    left: 80%;
    height: clamp(160px, 28vw, 360px);
    color: rgba(143, 223, 242, .42);
    background: linear-gradient(to bottom, rgba(143,223,242,0), rgba(143,223,242,.62));
    animation-delay: -9s;
    animation-duration: 14s;
}

.hero-copy {
    color: #fff;
    max-width: 720px;
    position: relative;
    z-index: 1;
    text-shadow: 0 3px 16px rgba(0,0,0,.58);
}
.eyebrow { color: var(--cyan); font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
h1 { font-size: clamp(42px, 7vw, 86px); line-height: .96; margin: 12px 0 18px; letter-spacing: 0; }
.hero-copy p { max-width: 620px; font-size: 19px; color: #f4f4f4; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 6px;
    border: 1px solid #fff;
    text-decoration: none;
    font-weight: 800;
}
.button.primary { background: var(--red); border-color: var(--red); color: white; }
.button.light { color: white; }

.paint-slider {
    width: min(100%, 540px);
    aspect-ratio: 16 / 10;
    justify-self: center;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0,0,0,.28);
    background: #111;
}

.paint-slider::after {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: inherit;
    pointer-events: none;
}

.paint-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    animation: paintSlide 15s infinite;
}

.slide-two { animation-delay: 5s; }
.slide-three { animation-delay: 10s; }

.paint-slide:first-child {
    opacity: 1;
}

.section {
    padding: clamp(42px, 7vw, 80px) clamp(18px, 5vw, 64px);
}

.section.alt {
    background:
        linear-gradient(135deg, rgba(255,250,241,.92), rgba(255,255,255,.86)),
        radial-gradient(circle at 92% 22%, rgba(246,179,26,.22), transparent 28%),
        radial-gradient(circle at 10% 78%, rgba(143,223,242,.2), transparent 30%);
}
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(28px, 4vw, 48px); margin: 0 0 8px; }
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 22px;
    background: white;
}
.card h3 { margin: 0 0 10px; }
.card p { color: var(--muted); margin: 0 0 14px; }
.phone { color: var(--green); font-weight: 800; text-decoration: none; }

.paint-card,
.branch-card {
    min-height: 148px;
    border: 0;
    box-shadow: 0 18px 46px rgba(18, 18, 18, .08);
    transition: transform .22s ease, box-shadow .22s ease;
}

.paint-card::before,
.branch-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .92;
    z-index: 0;
}

.paint-card::after,
.branch-card::after {
    content: "";
    position: absolute;
    right: -28px;
    top: -36px;
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    box-shadow: -38px 82px 0 -42px rgba(255,255,255,.45);
    z-index: 0;
}

.paint-card > *,
.branch-card > * {
    position: relative;
    z-index: 1;
}

.paint-card:hover,
.branch-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 58px rgba(18, 18, 18, .14);
}

.paint-card-1::before {
    background:
        radial-gradient(circle at 88% 22%, rgba(255,255,255,.5), transparent 24%),
        linear-gradient(135deg, rgba(230,32,39,.16), rgba(246,179,26,.22) 48%, rgba(255,255,255,.98) 49%);
}

.paint-card-2::before {
    background:
        radial-gradient(circle at 16% 100%, rgba(32,118,196,.22), transparent 32%),
        linear-gradient(135deg, rgba(143,223,242,.22), rgba(22,134,92,.18) 48%, rgba(255,255,255,.98) 49%);
}

.paint-card-3::before {
    background:
        radial-gradient(circle at 90% 86%, rgba(230,32,39,.18), transparent 30%),
        linear-gradient(135deg, rgba(246,179,26,.25), rgba(230,32,39,.13) 48%, rgba(255,255,255,.98) 49%);
}

.paint-card-4::before {
    background:
        radial-gradient(circle at 82% 18%, rgba(22,134,92,.2), transparent 29%),
        linear-gradient(135deg, rgba(32,118,196,.18), rgba(143,223,242,.2) 48%, rgba(255,255,255,.98) 49%);
}

.paint-card h3,
.branch-card h3 {
    display: inline-block;
    padding-bottom: 8px;
}

.paint-card h3::after,
.branch-card h3::after {
    content: "";
    display: block;
    width: 58px;
    height: 5px;
    margin-top: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--red), var(--yellow), var(--green), var(--cyan));
}

.branch-card {
    color: white;
}

.branch-card p,
.branch-card .phone {
    color: rgba(255,255,255,.92);
}

.branch-card .phone {
    display: inline-flex;
    margin-top: 2px;
    padding: 7px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,.17);
}

.branch-card-1::before {
    background:
        radial-gradient(circle at 84% 20%, rgba(246,179,26,.55), transparent 28%),
        linear-gradient(135deg, #161616 0%, #3b2410 45%, #e62027 120%);
}

.branch-card-2::before {
    background:
        radial-gradient(circle at 86% 18%, rgba(143,223,242,.45), transparent 30%),
        linear-gradient(135deg, #111 0%, #14583f 48%, #16865c 115%);
}

.branch-card-3::before {
    background:
        radial-gradient(circle at 88% 18%, rgba(255,255,255,.32), transparent 30%),
        linear-gradient(135deg, #121212 0%, #184b78 46%, #2076c4 118%);
}

.brand-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.brand-logo-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    margin-bottom: 18px;
}
.brand-logo-panel img {
    display: block;
    width: 100%;
    height: auto;
}
.brand-chip {
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: white;
    font-weight: 800;
}

@keyframes colourFlow {
    0% { background-position: 0 0, 0% 40%; }
    50% { background-position: 0 0, 80% 50%; }
    100% { background-position: 0 0, 100% 62%; }
}

@keyframes pageColourWash {
    0% { background-position: 0% 20%, 100% 10%, 10% 100%, 0 0; }
    50% { background-position: 32% 8%, 70% 34%, 26% 70%, 0 0; }
    100% { background-position: 12% 44%, 54% 20%, 42% 88%, 0 0; }
}

@keyframes paintSweep {
    0%, 100% { opacity: .24; transform: translateX(-24%); }
    50% { opacity: .42; transform: translateX(18%); }
}

@keyframes colourDrip {
    0% { opacity: 0; transform: translateY(-100%) scaleY(.82); }
    12% { opacity: .78; }
    58% { opacity: .74; transform: translateY(58%) scaleY(1); }
    100% { opacity: 0; transform: translateY(156%) scaleY(1.08); }
}

@keyframes paintSlide {
    0% { opacity: 0; transform: scale(1.06); }
    6% { opacity: 1; }
    30% { opacity: 1; transform: scale(1); }
    38% { opacity: 0; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.06); }
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 440px);
    gap: 28px;
}

form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 800; }
input, textarea, select {
    width: 100%;
    border: 1px solid #d8d2c8;
    border-radius: 6px;
    padding: 12px 13px;
    font: inherit;
}
textarea { min-height: 130px; resize: vertical; }
button {
    min-height: 46px;
    border: 0;
    border-radius: 6px;
    background: var(--ink);
    color: white;
    font-weight: 800;
    cursor: pointer;
}

.notice { padding: 14px; border-radius: 6px; background: #e8f7ee; color: #12613c; }
.error { padding: 14px; border-radius: 6px; background: #ffe8e8; color: #9b1117; }

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 24px clamp(18px, 5vw, 64px);
    background: #111;
    color: white;
}
.site-footer div { display: flex; gap: 16px; flex-wrap: wrap; }

.admin-shell {
    min-height: 100vh;
    background: #f6f6f6;
}
.admin-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: #111;
    color: white;
}
.admin-main { padding: 24px; max-width: 1180px; margin: 0 auto; }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-card { background: white; border: 1px solid #ddd; border-radius: 8px; padding: 18px; }
.admin-card h2 { margin-top: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid #eee; vertical-align: top; }
.small-button { min-height: 34px; padding: 0 10px; background: var(--red); }

@media (max-width: 860px) {
    .site-header, .site-footer { align-items: flex-start; flex-direction: column; }
    .site-logo { width: min(76vw, 230px); }
    nav { flex-wrap: wrap; }
    .hero { grid-template-columns: 1fr; background: #111; }
    .hero {
        background:
            linear-gradient(150deg, rgba(17,17,17,.94), rgba(17,17,17,.82)),
            linear-gradient(120deg, #e62027, #f6b31a, #16865c, #8fdff2);
        background-size: 100% 100%, 220% 220%;
    }
    .grid, .contact-layout, .admin-grid { grid-template-columns: 1fr; }
    h1 { font-size: 44px; }
}
