/* =========================================================
   Concept trade websites (shown in the home page cards).
   They reuse the main stylesheet, so they share our layout;
   this file only adds each trade's colour and the parts
   our own site doesn't have.
   ========================================================= */

/* Each trade gets its own world: background, panels, text, accent and fonts.
   (--blue is our stylesheet's name for "the accent", --navy for "the page".) */

/* Roofer: slate and terracotta, the colours of the roof itself. A sturdy slab serif. */
.c-roof {
  --navy: #E4E8EA; --navy-2: #D6DCDF; --card: #F6F7F8; --line: #C3CCD1;
  --text: #1B242A; --muted: #4B5961; --blue: #B0441A; --blue-dark: #943712; --on-accent: #FFFFFF;
  --yellow: #E39B2D; --shadow: 0 16px 34px -22px rgba(27,36,42,.45);
  --font-head: "Zilla Slab", Rockwell, serif; --font-body: "Work Sans", system-ui, sans-serif;
}
.c-roof h1, .c-roof h2, .c-roof h3 { letter-spacing: -0.01em; font-weight: 700; }

/* Plumber: clean and fresh. White, cool greys, a deep teal, a friendly sans pair. */
.c-plumb {
  --navy: #FFFFFF; --navy-2: #EFF6F7; --card: #FFFFFF; --line: #D3E3E7;
  --text: #0D2B37; --muted: #4A6572; --blue: #087C78; --blue-dark: #066562; --on-accent: #FFFFFF;
  --yellow: #F2B84B; --shadow: 0 16px 34px -22px rgba(13,43,55,.35);
  --font-head: "Red Hat Display", system-ui, sans-serif; --font-body: "Red Hat Text", system-ui, sans-serif;
}
.c-plumb h1, .c-plumb h2 { font-weight: 800; letter-spacing: -0.03em; }

/* Electrician: dark, bold and industrial. Charcoal, safety yellow, condensed capitals. */
.c-spark {
  --navy: #111111; --navy-2: #181818; --card: #1D1D1D; --line: #303030;
  --text: #F4F3EE; --muted: #ABAAA2; --blue: #FFD23F; --blue-dark: #F0BC14; --on-accent: #111111;
  --yellow: #FFFFFF; --shadow: 0 16px 34px -20px rgba(0,0,0,.8);
  --font-head: "Barlow Condensed", system-ui, sans-serif; --font-body: "Barlow", system-ui, sans-serif;
}
.c-spark h1, .c-spark h2, .c-spark h3, .c-spark .marquee li, .c-spark .logo span { text-transform: uppercase; letter-spacing: .01em; }
.c-spark .hero-title { font-size: clamp(3rem, 11vw, 4.6rem); line-height: .95; }

/* Swap our site's fixed navy and blueprint details for each trade's own colours */
.site-header, .call-bar { background: color-mix(in srgb, var(--navy) 94%, transparent); border-color: var(--line); }
.call-bar { box-shadow: var(--shadow); }
.section.alt, .trades, .site-footer { background: var(--navy-2); border-color: var(--line); }
.card, .trust div, .cta-band, .photo-panel { background: var(--card); border-color: var(--line); box-shadow: var(--shadow); }
.cta-band { background: color-mix(in srgb, var(--blue) 8%, var(--card)); border-color: color-mix(in srgb, var(--blue) 45%, transparent); }
.c-spark .cta-band { background: var(--card); }
.card::after, .cta-band::after, .section:not(.alt) + .section:not(.alt)::before { display: none; }
.card:hover { border-color: var(--line); }
.btn-primary, .ticks li::before, .steps li::before, .ba-tag.after, .mobile-menu .btn { color: var(--on-accent); }
.form input:focus, .form select:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.logo svg { color: var(--blue); }
.logo svg rect { fill: var(--card); }
.logo svg path { stroke: var(--text); }
::selection { background: var(--blue); color: var(--on-accent); }

.concept-banner { margin: 0; padding: 8px 20px; background: var(--yellow); color: #06111F; font-size: .8rem; font-weight: 600; text-align: center; }
.concept-banner a { color: inherit; }
/* Inside a home page card: no banner (the card is already labelled) and no scrollbar */
.embedded .concept-banner { display: none; }
.embedded { scrollbar-width: none; }
.embedded::-webkit-scrollbar { display: none; }

/* Services: a two-column list, not a wall of cards */
.svc { list-style: none; margin: 32px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.svc li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.svc .icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--blue) 14%, transparent); color: var(--blue); }
.svc .icon svg { width: 22px; height: 22px; }
.svc b { font-family: var(--font-head); font-size: 1.05rem; }
.svc span:last-child { color: var(--muted); font-size: .94rem; }
@media (min-width: 900px) { .svc { grid-template-columns: 1fr 1fr; column-gap: 48px; } }

/* How it works: four numbered steps */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; column-gap: 16px; }
.steps li::before { content: counter(step); grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #06111F; font-family: var(--font-head); font-weight: 700; }
.steps h3 { margin: 6px 0 4px; font-size: 1.1rem; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps li { grid-template-columns: 1fr; row-gap: 12px; } .steps li::before { grid-row: auto; } }

/* Before/after slider */
@property --p { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
.ba-fig { margin: 0; }
.ba { --p: 50%; position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); cursor: ew-resize; touch-action: pan-y; user-select: none; box-shadow: 0 24px 48px -24px rgba(0,0,0,.8); }
.ba svg { display: block; width: 100%; height: 100%; }
.ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--p)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: #fff; }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; background: #fff; color: #06111F; box-shadow: 0 6px 16px -4px rgba(0,0,0,.5); }
.ba-knob svg { width: 20px; height: 20px; }
.ba-tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 6px; background: rgba(17,17,17,.78); color: #fff; font: 700 .72rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; }
.ba-tag.after { left: auto; right: 12px; background: var(--blue); color: var(--on-accent); }
.ba-hint { margin-top: 10px; text-align: center; color: var(--muted); font-size: .85rem; }

@media (prefers-reduced-motion: no-preference) {
  .ba:not(.held) { animation: ba-sweep 12s ease-in-out infinite; }
  .ba .row { animation: ba-tile 12s ease-out infinite; animation-delay: calc(var(--r) * .35s); }
  .ba .draw { stroke-dasharray: 1; animation: ba-draw 12s ease-in-out infinite; }
  .ba .brk { animation: ba-flip 12s ease-out infinite; animation-delay: calc(var(--r) * .3s); }
  .ba .lit { animation: ba-lit 12s ease-in-out infinite; }
}
/* The handle sweeps across while the work happens: tiles drop on from the eaves up,
   pipes run in, breakers flip on and the light comes on. Then it all resets. */
@keyframes ba-sweep { 0%, 8% { --p: 85%; } 45%, 85% { --p: 15%; } 100% { --p: 85%; } }
@keyframes ba-tile { 0%, 8% { opacity: 0; transform: translateY(-8px); } 14%, 88% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes ba-draw { 0%, 10% { stroke-dashoffset: 1; } 40%, 88% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 1; } }
@keyframes ba-flip { 0%, 14% { transform: translateY(8px); } 18%, 88% { transform: none; } 94%, 100% { transform: translateY(8px); } }
@keyframes ba-lit { 0%, 42% { opacity: .1; } 50%, 88% { opacity: 1; } 96%, 100% { opacity: .1; } }

@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 1fr; } .split { grid-template-columns: 1fr 1fr; } }
