/* Solutions Centre Jersey. Colours and layout match the old WordPress (Total theme) site. */
@font-face { font-family: "Asap"; font-weight: 400; font-display: swap; src: url("/assets/fonts/asap-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Asap"; font-weight: 500; font-display: swap; src: url("/assets/fonts/asap-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Asap"; font-weight: 600; font-display: swap; src: url("/assets/fonts/asap-latin-600-normal.woff2") format("woff2"); }

:root {
  --purple: #662d91;     /* accent */
  --purple-2: #4f1f73;   /* hover */
  --green: #a3b11f;      /* headings (the old #bccb34, darkened a little so it is readable) */
  --text: #555;
  --heading: #222;
  --rule: #e6e6e6;
  --grey: #f5f5f5;
  --max: 1000px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Asap", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.7; color: var(--text); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
a:hover { color: var(--purple-2); }
p { margin: 0 0 1em; }
h1, h2, h3 { color: var(--heading); line-height: 1.3; font-weight: 500; margin: 0 0 .6em; }
.container { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.center { text-align: center; }
.green { color: var(--green); font-weight: 500; font-size: 1.5rem; }
.skip, .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip:focus { left: 10px; top: 10px; width: auto; height: auto; z-index: 100; background: #fff; color: #000; padding: 8px 12px; }
.icon { width: 1em; height: 1em; flex: none; }

/* Top bar, header and menu */
.top-bar { border-bottom: 1px solid var(--rule); font-size: 14px; }
.top-bar .container { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 24px; padding-block: 8px; }
.top-bar a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.top-bar a:hover { color: var(--purple); }
.top-bar .icon { width: 12px; height: 12px; }
.social { margin-left: auto; display: flex; gap: 6px; }
.social a { width: 26px; height: 26px; justify-content: center; border-radius: 3px; color: #fff; }
.social a:hover { color: #fff; opacity: .85; }
.social .tw { background: #000; }
.social .fb { background: #3b5998; }
.site-header { position: relative; z-index: 5; background: #fff; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-block: 22px; }
.logo img { width: 250px; }
.nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px 28px; }
.nav ul ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 6px 0; font-size: 18px; color: #444; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"], .nav a.current { color: var(--purple); }
.has-sub { position: relative; }
@media (min-width: 861px) {
  .has-sub > ul { display: none; position: absolute; top: 100%; left: -16px; min-width: 260px; background: #fff; border-top: 3px solid var(--purple); box-shadow: 0 6px 18px rgba(0, 0, 0, .12); padding: 6px 0; }
  .has-sub:hover > ul, .has-sub:focus-within > ul { display: block; }
  .has-sub > ul a { font-size: 15px; padding: 8px 16px; }
}
@media (max-width: 860px) {
  .logo img { width: 210px; }
  .nav { flex-basis: 100%; }
  .nav > ul { flex-direction: column; gap: 0; border-top: 1px solid var(--rule); margin-bottom: -22px; }
  .nav a { padding: 11px 0; border-bottom: 1px solid var(--rule); }
  .has-sub > ul a { padding-left: 20px; font-size: 16px; }
  .nav > ul > li:last-child > a { border-bottom: 0; }
  .social { margin-left: 0; }
}
.menu-toggle { color: var(--purple); }

/* Buttons */
.btn { display: inline-block; background: var(--purple); color: #fff; border: 0; border-radius: 3px; font: inherit; padding: 8px 18px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--purple-2); color: #fff; }
.btn-big { font-size: 18px; padding: 10px 26px; }
.btn-small { font-size: 14px; padding: 6px 14px; }
.btn[disabled] { opacity: .7; cursor: wait; }

/* Home */
.hero { padding-block: 10px 40px; }
.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center; }
.hero h1 { color: var(--green); font-size: 1.35rem; font-weight: 600; line-height: 1.5; }
.hero p { font-size: 15px; }
@media (max-width: 760px) { .hero .container { grid-template-columns: 1fr; } }
.band { padding-block: 50px; }
.band.grey { background: var(--grey); }
.band h2 { color: var(--purple); font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 600; }
.what { display: grid; grid-template-columns: 2fr 1fr; gap: 30px; align-items: center; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: #ededed; border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--text); font-size: 14px; transition: transform .2s; }
.card:hover { transform: translateY(-3px); color: var(--text); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card h3 { color: var(--purple); font-size: 1.25rem; font-weight: 600; margin: 14px 14px 6px; }
.card p { margin: 0 14px 18px; }
@media (max-width: 760px) { .what { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cards { grid-template-columns: 1fr; } }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.split img { border-radius: 10px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 760px; margin-inline: auto; }
.cert { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cert img { width: 200px; border: 1px solid var(--rule); margin-bottom: 14px; }
.cert p { flex: 1; font-size: 15px; }
@media (max-width: 600px) { .certs { grid-template-columns: 1fr; } }
.testimonials { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.testimonial { margin: 0; background: #fff; border-radius: 10px; padding: 24px; }
.testimonial blockquote { margin: 0 0 14px; font-style: italic; }
.testimonial blockquote .icon { width: 22px; height: 22px; color: var(--green); margin-bottom: 8px; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--heading); }
.testimonial figcaption img { width: 44px; border-radius: 50%; }
@media (max-width: 760px) { .testimonials { grid-template-columns: 1fr; } }
.get-in-touch { background: linear-gradient(rgba(102, 45, 145, .55), rgba(102, 45, 145, .55)), #444 url("/assets/img/get-in-touch.webp") center 30% / cover no-repeat; padding-block: 90px; }
.get-in-touch .btn { background: #fff; color: var(--purple); }
.get-in-touch .btn:hover { background: var(--grey); }

/* Inner pages */
.page-title { background: var(--grey); border-block: 1px solid var(--rule); padding-block: 14px; }
.page-title .container { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 20px; }
.page-title h1 { font-size: 1.35rem; font-weight: 400; margin: 0; }
.breadcrumbs { font-size: 13px; color: #999; }
.breadcrumbs a { color: #777; text-decoration: none; }
.breadcrumbs a:hover { color: var(--purple); }
.page { padding-block: 30px 60px; }
.prose hr { border: 0; border-top: 1px solid var(--green); width: 40%; margin: 30px auto; }
.prose .tt { width: 290px; margin: 0 0 1.2em; }
.cols { columns: 2 300px; column-gap: 40px; }
.cols li { break-inside: avoid; margin-bottom: 4px; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 40px; margin-top: 30px; }
.svc { display: flex; flex-direction: column; align-items: flex-start; }
.svc h3 { font-size: 1.45rem; font-weight: 400; }
.svc p { flex: 1; font-size: 15px; }
@media (max-width: 700px) { .svc-grid { grid-template-columns: 1fr; } }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin-top: 20px; }
@media (max-width: 760px) { .contact { grid-template-columns: 1fr; } }
.contact-details { list-style: none; margin: 0 0 20px; padding: 0; font-size: 17px; }
.contact-details li { display: flex; gap: 12px; margin-bottom: 10px; }
.contact-details a { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.contact-details a:hover { color: var(--purple); }
.contact-details .icon { width: 20px; height: 20px; color: var(--green); flex: none; }
address { font-style: normal; }
label { display: block; margin-bottom: 12px; font-size: 15px; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  display: block; width: 100%; margin-top: 4px; font: inherit; font-size: 16px; color: #333;
  background: #fff; border: 1px solid #ddd; border-radius: 3px; padding: 7px 10px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--purple); outline-offset: 0; border-color: var(--purple); }
.cf-turnstile { margin: 6px 0 10px; min-height: 65px; }
.notice { padding: 12px 16px; border-radius: 3px; margin: 16px 0 0; color: #fff; }
.notice.ok { background: var(--purple); }
.notice.err { background: #b3261e; }

/* Footer and call button */
.site-footer { background: #222; color: #aaa; font-size: 14px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-block: 34px 20px; }
.site-footer h2 { color: #fff; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.site-footer p { margin: 0 0 10px; }
.site-footer a { color: #aaa; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; }
.site-footer a:hover { color: #fff; }
.site-footer .icon { width: 14px; height: 14px; }
.addr { display: flex; gap: 10px; }
.addr .icon { margin-top: 5px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { border-top: 1px solid #333; padding-block: 6px; }
.copy { background: #1b1b1b; padding: 16px 20px; text-align: center; }
.copy a { color: #ddd; }
@media (max-width: 700px) { .footer-cols { grid-template-columns: 1fr; } }
.call { position: fixed; right: 16px; bottom: 16px; z-index: 20; width: 54px; height: 54px; border-radius: 50%; background: #25a244; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); }
.call:hover { color: #fff; background: #1e8a39; }
.call .icon { width: 24px; height: 24px; }

/* Lightbox */
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 95vw; max-height: 95vh; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .85); }
dialog.lightbox img { max-width: 95vw; max-height: 90vh; width: auto; }
dialog.lightbox button { position: fixed; top: 10px; right: 14px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }

/* Mobile menu: a hamburger button opens the menu (site.js). Without JavaScript the menu just shows. */
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .js .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0; background: none; border: 0; cursor: pointer; color: inherit; }
  .menu-toggle span, .menu-toggle span::before, .menu-toggle span::after { display: block; width: 26px; height: 3px; border-radius: 2px; background: currentColor; position: relative; transition: transform .2s, background .2s; }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; }
  .menu-toggle span::before { top: -8px; } .menu-toggle span::after { top: 8px; }
  .menu-toggle[aria-expanded="true"] span { background: transparent; }
  .menu-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }
  .js #menu:not(.open) { display: none; }
}
