/* New Wave Group — brief-aligned improvements (Phase 1) */
:root {
  --nw-orange: #E87722;
  --nw-dark: #1A1A1A;
  --nw-grey: #F5F5F5;
}

body {
  font-family: Inter, system-ui, -apple-system, sans-serif;
}

/* Prevent stacked hero slides before flicker JS initialises */
.flick-wrapper .flicker-example > ul {
  position: relative;
  min-height: 1px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.flick-wrapper .flicker-example > ul > li {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0 !important;
  visibility: hidden;
  pointer-events: none;
}
.flick-wrapper .flicker-example > ul > li:first-child {
  position: relative !important;
  opacity: 1 !important;
  visibility: visible;
}

/* Hero slider readability — overlay + text contrast (all pages) */
.flickerplate .flicks > li,
.flick-wrapper .flicker-example > ul > li {
  position: relative;
}
.flickerplate .flicks > li::before,
.flick-wrapper .flicker-example > ul > li::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.3) 35%,
    rgba(0, 0, 0, 0.35) 55%,
    rgba(0, 0, 0, 0.65) 100%
  );
}
.flickerplate .flick-content,
.flick-wrapper .flicker-example .flick-title,
.flick-wrapper .flicker-example .flick-sub-text,
.flickerplate .flick-title,
.flickerplate .flick-sub-text {
  position: relative;
  z-index: 2;
}
.flick-title,
.flick-sub-text {
  color: #fff !important;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.75),
    0 4px 24px rgba(0, 0, 0, 0.5) !important;
}
.flick-title span {
  color: var(--nw-orange) !important;
  text-shadow:
    0 1px 3px rgba(0, 0, 0, 1),
    0 2px 10px rgba(0, 0, 0, 0.85),
    0 0 20px rgba(0, 0, 0, 0.6) !important;
}

.contact.contactContainer.sideIcons {
  display: none !important;
}

/* Audience entry cards (homepage) */
.nw-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}
@media (max-width: 768px) {
  .nw-audience-grid { grid-template-columns: 1fr; }
}
.nw-audience-card {
  background: var(--nw-grey);
  border-left: 4px solid var(--nw-orange);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--nw-dark);
  display: block;
  transition: box-shadow 0.2s, transform 0.2s;
}
.nw-audience-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transform: translateY(-2px);
  color: var(--nw-dark);
}
.nw-audience-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  text-transform: none;
}
.nw-audience-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}
.nw-audience-card .nw-arrow {
  color: var(--nw-orange);
  font-weight: 700;
  margin-top: 0.75rem;
  display: inline-block;
}

/* Trust bar */
.nw-trust-bar {
  background: var(--nw-dark);
  color: #fff;
  padding: 1.25rem 0;
  margin: 0;
}
.nw-trust-bar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}
.nw-trust-stat {
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}
.nw-trust-stat strong { color: var(--nw-orange); }
.nw-trust-clients {
  font-size: 0.85rem;
  opacity: 0.9;
}
.nw-trust-badge img {
  height: 40px;
  width: auto;
}

/* NECA award cards */
.nw-neca-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.nw-neca-card {
  background: var(--nw-grey);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  border-top: 3px solid var(--nw-orange);
}
.nw-neca-card .year { font-weight: 700; color: var(--nw-orange); }
.nw-neca-card .type { font-weight: 600; margin: 0.25rem 0; }
.nw-neca-card p { font-size: 0.9rem; line-height: 1.6; margin: 0.5rem 0 0; }

/* Compliance checklist */
.nw-compliance-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.nw-compliance-list li {
  padding: 0.5rem 0 0.5rem 1.75rem;
  position: relative;
  line-height: 1.6;
}
.nw-compliance-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--nw-orange);
  font-weight: 700;
}

/* CTA buttons — orange background, white text */
.button.nw-cta,
a.button.nw-cta,
.button.butS1,
a.button.butS1,
a.button.butS1.nw-cta,
#enquiry input[type="submit"],
#enquiry input.button[type="submit"],
.siteContent input.button[type="submit"],
.siteContent .button.butS1 {
  background: var(--nw-orange) !important;
  border-color: var(--nw-orange) !important;
  color: #fff !important;
  border-radius: 8px;
  text-transform: none;
  font-weight: 600;
}
.button.nw-cta:hover,
a.button.nw-cta:hover,
.button.butS1:hover,
a.button.butS1:hover,
a.button.butS1.nw-cta:hover,
#enquiry input[type="submit"]:hover,
#enquiry input.button[type="submit"]:hover,
.siteContent input.button[type="submit"]:hover,
.siteContent .button.butS1:hover,
.button.nw-cta:active,
a.button.nw-cta:active,
.button.butS1:active,
a.button.butS1:active {
  background: #d06a1e !important;
  border-color: #d06a1e !important;
  color: #fff !important;
}

/* Loader + header logo sizing (inline data URI) */
#loader #icon,
a.logo img {
  max-width: 280px;
  width: auto;
  height: auto;
  display: block;
}

/* Footer service area */
.nw-footer-service-area {
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.85;
  padding: 0.5rem 1rem 1rem;
  line-height: 1.6;
}
.nw-footer-licence {
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 0.25rem;
}

/* Contact map */
#mapDiv {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
}
#mapDiv iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* Sentence case — reduce ALL CAPS in content */
.siteContent h1,
.siteContent h2 {
  text-transform: none;
}

/* Section backgrounds */
.nw-section-alt {
  background: var(--nw-grey);
  padding: 2rem 0;
}

/* Service type select on forms */
#enquiry select.nw-service-select,
.siteContent select.nw-service-select {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}

/* Featured case study highlight */
.nw-case-highlight {
  background: var(--nw-grey);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-left: 4px solid var(--nw-orange);
}

/* FontAwesome fallback: ensure slider scroll icon renders if primary font load is slow */
@font-face {
  font-family: 'FontAwesome';
  src: url('/fonts/fontawesome-webfont.woff2') format('woff2'),
       url('/fonts/fontawesome-webfont.woff') format('woff'),
       url('/fonts/fontawesome-webfont.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* CSS fallback for hero scroll-down indicator (FA glyph f103) */
.arrow .scroll:before {
  font-family: FontAwesome, sans-serif;
}
.arrow .scroll span:empty {
  display: none;
}

/* Phase 2: case study cards */
.nw-case-grid, .nw-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.nw-case-card {
  display: block;
  text-decoration: none;
  color: var(--nw-dark);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  transition: box-shadow 0.2s;
}
.nw-case-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.12); color: var(--nw-dark); }
.nw-case-img {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.nw-case-body { padding: 1rem 1.25rem; }
.nw-case-type { font-size: 0.8rem; color: var(--nw-orange); font-weight: 600; text-transform: uppercase; }
.nw-case-body h3 { margin: 0.35rem 0; font-size: 1.05rem; text-transform: none; }
.nw-case-body p { font-size: 0.9rem; line-height: 1.6; margin: 0; }
.nw-case-card .nw-arrow, .nw-resource-card .nw-arrow {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nw-orange);
}

/* Resource cards */
.nw-resource-card {
  display: block;
  background: var(--nw-grey);
  border-left: 4px solid var(--nw-orange);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  text-decoration: none;
  color: var(--nw-dark);
}
.nw-resource-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); color: var(--nw-dark); }
.nw-resource-card h3 { margin: 0 0 0.5rem; font-size: 1.05rem; text-transform: none; }
.nw-resource-card p { margin: 0; font-size: 0.9rem; line-height: 1.6; }

/* CEC accreditation badge */
.nw-cec-badge {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 1rem 0;
}
.nw-cec-pending {
  background: #fff3e0;
  border: 1px dashed var(--nw-orange);
  color: #8a4b00;
}

/* Client logo text row */
.nw-client-logos {
  text-align: center;
  padding: 1rem;
  background: var(--nw-dark);
  color: #fff;
}
.nw-client-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
  margin-right: 0.75rem;
}
.nw-client-name {
  display: inline-block;
  margin: 0 0.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.85;
}

/* NAP footer polish */
.nw-footer-nap {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}
.nw-footer-nap a { color: inherit; text-decoration: none; }
.nw-footer-nap a:hover { color: var(--nw-orange); }
.nw-gbp-hint {
  font-size: 0.75rem;
  opacity: 0.55;
  font-style: italic;
  margin-bottom: 0.25rem;
}

/* Inter typography override */
body, .siteContent, #menu nav, .siteContent p, .siteContent li {
  font-family: Inter, system-ui, -apple-system, sans-serif !important;
}
.flick-title, .flick-sub-text {
  font-family: Inter, system-ui, sans-serif !important;
}
