:root {
  --blue: #1e6fe8;
  --blue-deep: #0d47a8;
  --red: #e31c24;
  --gold: #f0a500;
  --ink: #101114;
  --muted: #5c6270;
  --paper: #f6f4ef;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.12);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 60px rgba(16, 17, 20, 0.16);
  --radius: 22px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; }

.container { width: min(1240px, calc(100% - 40px)); margin-inline: auto; }
.wide { width: min(1440px, calc(100% - 28px)); margin-inline: auto; }

/* Top bar */
.topbar {
  background: #0b0c10;
  color: #d7d9e0;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 38px; gap: 16px;
}
.topbar a:hover { color: var(--gold); }

/* Glass header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(22px) saturate(140%);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(16, 17, 20, 0.08);
}
.header-inner {
  display: flex; align-items: stretch; justify-content: space-between;
  min-height: 86px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; background: transparent; padding: 0; align-self: center; }
.brand img {
  height: 58px; width: auto; display: block;
  background: transparent; border-radius: 0; padding: 0; box-shadow: none;
}
.nav { display: flex; align-items: stretch; gap: 6px; }
.nav > a, .has-mega > span {
  padding: 10px 14px; border-radius: 999px; font-weight: 500; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.nav > a { align-self: center; }
.nav > a:hover, .has-mega:hover > span { background: rgba(30, 111, 232, 0.1); color: var(--blue-deep); }
.has-mega { position: relative; display: flex; align-items: center; }
.mega {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  width: min(720px, 80vw); padding: 16px 22px 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(16,17,20,0.08);
  border-top: 0;
  border-radius: 0 0 22px 22px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; pointer-events: none;
  z-index: 80;
}
.mega::before { content: none; }
.has-mega:hover .mega, .has-mega:focus-within .mega, .has-mega.open .mega {
  opacity: 1; visibility: visible; pointer-events: auto;
}
.mega a { padding: 8px 4px; border-radius: 10px; position: relative; z-index: 1; }
.mega a:hover { color: var(--blue); background: #eef4ff; }
.header-cta { display: flex; gap: 10px; align-items: center; align-self: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 0; font-weight: 600; cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--blue-deep)); color: #fff; box-shadow: 0 12px 28px rgba(30,111,232,.32); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #c97d00); color: #1a1204; }
.btn-ghost { background: transparent; border: 1px solid rgba(16,17,20,.18); }
.btn-white { background: #fff; color: var(--ink); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; }

/* Hero */
.hero {
  position: relative; min-height: 88vh; display: grid; place-items: end start;
  color: #fff; overflow: hidden; isolation: isolate;
}
.hero-media {
  position: absolute; inset: 0; z-index: -2;
  background-size: cover; background-position: center;
  animation: ken 22s ease-in-out infinite alternate;
}
.hero-media.graphic {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #0b0c10;
  animation: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,10,16,.35) 0%, rgba(8,10,16,.72) 100%);
}
.hero-copy { padding: 0 0 72px; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--glass); border: 1px solid rgba(255,255,255,.22);
  padding: 6px 14px; border-radius: 999px; font-size: 0.8rem; letter-spacing: .14em;
  text-transform: uppercase; margin-bottom: 18px; backdrop-filter: blur(12px);
}
.hero h1, .page-hero h1, h1, h2 { font-family: var(--serif); font-weight: 600; line-height: 1.12; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); margin-bottom: 16px; }
.hero p { font-size: 1.15rem; color: #eceff5; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.paint-stroke {
  position: absolute; right: -8%; top: 12%; width: 42vw; max-width: 560px; height: 18px;
  border-radius: 40px; transform: rotate(-18deg); opacity: .85; z-index: -1;
  background: linear-gradient(90deg, var(--blue), var(--red) 55%, var(--gold));
  filter: blur(0.2px); animation: drift 8s ease-in-out infinite;
}

/* Colour journey quiz like Dulux */
.journey {
  margin-top: -48px; position: relative; z-index: 2;
}
.glass-panel {
  background: rgba(255,255,255,.78); backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.7); border-radius: 28px;
  box-shadow: var(--shadow); padding: 28px;
}
.journey h2 { font-size: 1.7rem; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip {
  border: 1px solid rgba(16,17,20,.12); background: #fff; padding: 10px 16px;
  border-radius: 999px; cursor: pointer; transition: .2s;
}
.chip:hover, .chip.active { border-color: var(--blue); color: var(--blue-deep); background: #eef4ff; }

/* Sections */
section { padding: 84px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.muted { color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.card {
  background: #fff; border-radius: 22px; overflow: hidden;
  box-shadow: 0 10px 30px rgba(16,17,20,.08);
  transition: transform .35s, box-shadow .35s;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card .media { height: 220px; overflow: hidden; background: #fff; }
.card .media img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 1.1s; }
.card .media.contain img { object-fit: contain; padding: 12px; }
.card:hover .media img { transform: scale(1.08); }
.card .body { padding: 18px 18px 22px; }
.card h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: 6px; }

/* Colour explorer */
.explorer { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filter-card {
  position: sticky; top: 110px;
  background: rgba(255,255,255,.8); backdrop-filter: blur(18px);
  border-radius: 22px; padding: 22px; border: 1px solid rgba(16,17,20,.06);
}
.filter-card h3 { font-family: var(--serif); margin-bottom: 14px; }
.filter-group { margin-bottom: 18px; }
.filter-group strong { display: block; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.filter-group label { display: flex; gap: 8px; align-items: center; margin: 6px 0; font-size: .95rem; cursor: pointer; }

.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 16px; }
.swatch {
  border: 0; background: transparent; text-align: left; cursor: pointer;
  animation: fadeup .6s both;
}
.swatch .tile {
  height: 150px; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  transition: transform .25s, box-shadow .25s;
}
.swatch:hover .tile { transform: scale(1.04); box-shadow: 0 16px 30px rgba(0,0,0,.16); }
.swatch figcaption { padding: 10px 4px 0; }
.swatch .name { font-weight: 600; }
.swatch .code { font-size: .8rem; color: var(--muted); }

/* Visualiser */
.visualiser {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: center;
}
.room-preview {
  position: relative; border-radius: 28px; overflow: hidden; min-height: 420px;
  background: #c9b8a4 center/cover no-repeat;
}
.room-preview .wall {
  position: absolute; inset: 12% 18% 22% 10%;
  background: #e07a4a; mix-blend-mode: multiply; opacity: .55;
  transition: background .4s;
}
.room-preview .glass-label {
  position: absolute; left: 18px; bottom: 18px;
  background: var(--glass-strong); backdrop-filter: blur(16px);
  padding: 12px 16px; border-radius: 16px;
}

/* Page hero */
.page-hero {
  min-height: 46vh; display: grid; place-items: end start; color: #fff;
  position: relative; isolation: isolate; overflow: hidden;
}
.page-hero .hero-media { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(8,10,16,.2), rgba(8,10,16,.7));
}
.page-hero .container { padding-bottom: 48px; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 4rem); }

.masonry {
  columns: 3 240px; column-gap: 16px;
}
.masonry figure { break-inside: avoid; margin-bottom: 16px; border-radius: 18px; overflow: hidden; position: relative; }
.masonry img { width: 100%; display: block; object-fit: cover; }
.masonry figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); color: #fff; font-weight: 500;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: 24px; height: 420px; width: 100%; object-fit: cover; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: linear-gradient(180deg, #fff, #f3f6fb); border-radius: 20px; padding: 22px;
  text-align: center; border: 1px solid rgba(30,111,232,.08);
}
.stat b { display: block; font-family: var(--serif); font-size: 2rem; color: var(--blue-deep); }

.form { display: grid; gap: 14px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1px solid rgba(16,17,20,.12); background: #fff;
}
.form textarea { min-height: 140px; resize: vertical; }

.calc-result {
  margin-top: 18px; padding: 18px; border-radius: 16px;
  background: #101114; color: #fff;
}
.calc-result span { color: var(--gold); font-size: 1.6rem; font-weight: 700; }

.newsletter {
  background: radial-gradient(1200px 400px at 10% 0%, rgba(30,111,232,.25), transparent),
              radial-gradient(800px 300px at 90% 100%, rgba(240,165,0,.22), transparent),
              #101114;
  color: #fff;
}
.newsletter .glass-panel { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); color: #fff; }
.newsletter input { padding: 14px 16px; border-radius: 999px; border: 0; min-width: 260px; }

footer {
  background: #0b0c10; color: #c9ccd4; padding: 56px 0 24px;
}
.footer-logo {
  height: 64px; width: auto; display: block;
  background: #fff; border-radius: 14px; padding: 8px 12px;
  margin-bottom: 14px;
}
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 36px; }
footer h4 { color: #fff; font-family: var(--serif); margin-bottom: 12px; }
footer a { display: block; margin: 6px 0; color: #c9ccd4; }
footer a:hover { color: var(--gold); }
.legal { border-top: 1px solid rgba(255,255,255,.08); padding-top: 16px; font-size: .85rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.reveal { opacity: 0; transform: translateY(24px); animation: fadeup .8s forwards; }
.delay-1 { animation-delay: .12s; }
.delay-2 { animation-delay: .24s; }
.delay-3 { animation-delay: .36s; }

.mobile-nav {
  display: none; position: fixed; inset: 86px 12px auto; z-index: 60;
  background: rgba(255,255,255,.95); backdrop-filter: blur(20px);
  border-radius: 20px; padding: 16px; box-shadow: var(--shadow);
}
.mobile-nav.open { display: grid; gap: 8px; }
.mobile-nav a { padding: 10px; border-radius: 12px; }
.mobile-nav a:hover { background: #eef4ff; }

@media (max-width: 980px) {
  .nav, .header-cta .btn-ghost { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .grid-3, .grid-4, .explorer, .visualiser, .split, .stats, .foot-grid, .grid-2 {
    grid-template-columns: 1fr;
  }
  .filter-card { position: static; }
  .hero { min-height: 78vh; }
  .masonry { columns: 2 160px; }
  .brand img { height: 46px; }
}
@media (max-width: 640px) {
  .masonry { columns: 1; }
  .hero-copy { padding-bottom: 48px; }
}

@keyframes ken { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes drift { 50% { transform: rotate(-18deg) translateX(-24px); } }
@keyframes rise { from { opacity: 0; transform: translateX(-50%) translateY(14px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
