/* Pennine Compliance - polish layer.
   Sits on top of the original page stylesheets (home-desktop.css etc.) and is loaded last. */

:root {
  --green: #3e7c27;
  --green-bright: #5aa83a;
  --panel: #2e2e2e;
  --panel-dark: #1f1f1f;
  --text: #f3f3f3;
  --muted: #c9c9c9;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--panel-dark);
  color: var(--text);
  font-family: Mukta, system-ui, -apple-system, 'Segoe UI', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

/* The exported styles name Mukta without a fallback; add one (icons keep their own font). */
body *:not(i) { font-family: Mukta, system-ui, -apple-system, 'Segoe UI', sans-serif !important; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid #8be05f;
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: Mukta, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.2px;
}

/* ---------- Header ---------- */

.line0 {
  border: 0;
  border-bottom: 3px solid var(--green);
  padding: 0 max(20px, calc((100% - 1200px) / 2));
  box-sizing: border-box;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.line0box0outer { justify-content: flex-start; }
.line0box1outer { justify-content: center; align-items: flex-end; }

.logo-link {
  display: flex;
  align-items: center;
  height: 100%;
}

.logo-link .line0box0inner {
  height: 75%;
  width: auto;
  max-height: 100%;
}

/* Desktop navigation */
.pg-desktop .line0 {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 110px;
}

.pg-desktop .line0box1outer { flex-direction: row; align-items: center; justify-content: flex-end; height: 100%; }

.custom-menu ul { gap: 4px; font-size: 18px; justify-content: flex-end; }
.custom-menu li { margin-right: 0; }

.custom-menu a,
.custom-menu a:visited {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-weight: 600;
  color: #fff;
  transition: color 0.2s;
}

.custom-menu a::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px; bottom: 2px;
  height: 2px;
  background: var(--green-bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.custom-menu a:hover::after,
.custom-menu a[aria-current='page']::after { transform: scaleX(1); }
.custom-menu a[aria-current='page'] { color: #fff; }

/* Mobile navigation */
.pg-mobile .line0 { height: 84px; }
.pg-mobile .line0box0outer { flex: 1; }
.pg-mobile .line0box1outer { flex: 0 0 auto; justify-content: center; align-items: flex-end; }

.mobile-burger {
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 8px;
  line-height: 1;
}
.mobile-menu-icon { font-size: 38px; background: none; -webkit-text-fill-color: #fff; color: #fff; }

.show-menu { border-bottom: 3px solid var(--green); }
.mobile-menu-list li { padding: 0; border-top: 1px solid #1f1f1f; }
.mobile-menu-list a {
  display: block;
  padding: 15px 0;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}
.mobile-menu-list a[aria-current='page'] { color: var(--green-bright); }

/* ---------- Links ---------- */

main a:not(.btn-cta) {
  color: #9fe27a;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(159, 226, 122, 0.45);
}
main a:not(.btn-cta):hover { text-decoration-color: currentColor; }

/* ---------- Buttons ---------- */

a.btn-cta,
a.btn-cta:visited,
button.btn-cta {
  display: inline-block;
  padding: 14px 34px;
  background: var(--green);
  color: #fff;
  font: 700 1.1rem/1.2 Mukta, system-ui, sans-serif;
  text-decoration: none;
  border: 2px solid var(--green);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(62, 124, 39, 0.35);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

a.btn-cta:hover,
button.btn-cta:hover:not(:disabled) {
  background: var(--green-bright);
  border-color: var(--green-bright);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(62, 124, 39, 0.45);
}

button.btn-cta:disabled { opacity: 0.6; cursor: wait; }

/* ---------- Text sections ---------- */

main div[class*='box'][class$='inner']:has(> p) {
  box-sizing: border-box;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px;
  font-size: 18px;
  line-height: 1.7;
  text-align: center;
  overflow: visible;
}

main p { max-width: 68ch; margin: 0 auto 1.1rem; }
main p:last-child { margin-bottom: 0; }
main h2 { margin: 0 0 1rem; font-size: clamp(1.6rem, 3vw, 2rem); color: #fff; }
main h2::after {
  content: '';
  display: block;
  width: 56px; height: 3px;
  margin: 12px auto 0;
  background: var(--green);
  border-radius: 2px;
}
main h1 { margin: 0 0 1rem; font-size: clamp(2rem, 4.5vw, 3rem); color: #fff; }

/* ---------- Home ---------- */

.pg-home .line1 { border-bottom: 3px solid var(--green); }

.pg-home .line1box0outer {
  background-image: linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.38)), url('../images/hero.jpg');
  background-position: center;
  background-size: cover;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.65);
}

.pg-home .line1box0inner { padding: 0 20px; text-align: center; }
.pg-home .line1 h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 8px; }
.pg-home .line1 h4 {
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  font-weight: 600;
  color: #e9f6e2;
}

.pg-home .line2 { background: var(--panel); height: auto; }
.pg-home .line3 { background: var(--panel); height: auto; border-bottom: 0; }
.pg-home .line3box0inner { padding: 8px 0 40px; margin-top: 0; width: auto; }
.pg-home .line4 { background: var(--panel); height: auto; border-top: 1px solid #3d3d3d; }
.pg-home .line4box0inner { margin-top: 0; }

.pg-home .line5 {
  height: 200px;
  background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/64d52f290db659.08927560.jpg');
  background-size: cover;
  background-position: center;
}

.pg-home .line6 { height: auto; padding: 28px 0; background: var(--panel); justify-content: center; border-bottom: 0; }
.pg-home .line6 a,
.pg-home .line6 a:hover {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  background: #000;
  border: 2px solid var(--green);
  border-radius: 50%;
  color: #fff;
  transition: background 0.2s, transform 0.2s;
}
.pg-home .line6 a:hover { background: var(--green); transform: translateY(-2px); }
.pg-home .line6 i { height: auto; font-size: 26px; line-height: 1; }
.pg-home .line6 [class$='outer'] { flex: 0 0 auto; margin: 0 14px; }

/* ---------- About / Services ---------- */

.pg-about .line1,
.pg-about .line4,
.pg-services .line1,
.pg-services .line2 { background: var(--panel); height: auto; }

/* accreditation logos */
.pg-about main img[class$='inner'] {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 150px;
  padding: 16px;
  object-fit: contain;
  background: #fff;
}
.pg-about main [class$='outer']:has(> img) { border: 0; background: #fff; }
.pg-about .line2 { height: auto; background: #fff; }
.pg-about .line3:has(img) { background: #fff; height: auto; }

/* service photos */
.pg-services main img[class$='inner'] {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}
.pg-services main [class$='outer']:has(> img) { overflow: hidden; }
.pg-services .line1box0inner,
.pg-services .line2box1inner { justify-content: center; }

/* ---------- Forms ---------- */

.pg-quotes .line1,
.pg-contact .line1 { height: auto; min-height: 60vh; background: var(--panel); border-bottom: 3px solid var(--green); }
.pg-quotes .line1box0outer,
.pg-contact .line1box0outer { display: block; width: 100%; font-size: 16px; margin: 0; }

.pc-main {
  box-sizing: border-box;
  display: block !important;
  width: 100% !important;
  max-width: 820px;
  height: auto !important;
  margin: 0 auto;
  padding: 40px 20px 56px;
  overflow: visible !important;
}

.pc-form h1 { text-align: center; }
.pc-lead { text-align: center; color: var(--muted); font-size: 17px; margin-bottom: 1.8rem !important; }
.pc-nowrap { white-space: nowrap; }

.pc-fieldset {
  margin: 0 0 20px;
  padding: 14px 22px 8px;
  background: #262626;
  border: 1px solid #484848;
  border-radius: 12px;
}
.pc-fieldset legend {
  padding: 0 10px;
  margin: 0;
  width: auto;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--green-bright);
}

.pc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
}
.pc-row label { margin: 0; flex: 1; }
.pc-form .pc-row input { width: 130px; flex: 0 0 auto; text-align: right; }

.pc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 8px;
}
.pc-full { grid-column: 1 / -1; }

.pc-form label {
  display: block;
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  color: #e6e6e6;
}

.pc-form input,
.pc-form textarea {
  box-sizing: border-box;
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 11px 14px;
  background: #0b0b0b;
  color: #fff;
  font: inherit;
  font-size: 16px;
  border: 1px solid #6a6a6a;
  border-radius: 8px;
  box-shadow: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pc-form textarea { min-height: 130px; resize: vertical; }
.pc-form input:focus,
.pc-form textarea:focus {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(90, 168, 58, 0.3);
  background: #0b0b0b;
  color: #fff;
}
.pc-form ::placeholder { color: #8d8d8d; }

.pc-hint { margin-top: 14px !important; text-align: center; font-size: 14px; color: var(--muted); }

.pc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pc-form .btn-cta { display: block; margin: 26px auto 0; }

.pc-status { min-height: 1.6em; margin: 16px auto 0 !important; text-align: center; font-weight: 600; }
.pc-status.success { color: #8fe36a; }
.pc-status.error { color: #ff9a8f; }
.pc-status.info { color: var(--muted); }

/* ---------- Footer ---------- */

[role='contentinfo'] {
  box-sizing: border-box;
  height: auto !important;
  min-height: 70px;
  align-items: center;
  padding: 14px 24px;
  background: #000;
  border-top: 3px solid var(--green);
  color: #d4d4d4;
  font-size: 15px;
}
[role='contentinfo'] [class$='inner'] { margin-top: 0 !important; height: auto !important; overflow: visible; }
[role='contentinfo'] p { margin: 0; max-width: none; }
[role='contentinfo'] a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
[role='contentinfo'] a:hover { color: #9fe27a; }

/* ---------- Small screens ---------- */

@media (max-width: 760px) {
  .pg-desktop .line0 { height: auto; min-height: 84px; flex-wrap: wrap; padding: 8px 14px; }
  .pg-desktop .line0box0outer,
  .pg-desktop .line0box1outer { flex: 1 1 100%; justify-content: center; height: auto; }
  .pg-desktop .logo-link { height: 64px; }
  .custom-menu ul { flex-wrap: wrap; justify-content: center; }
  .custom-menu a { padding: 6px 10px; font-size: 16px; }
}

@media (max-width: 640px) {
  main div[class*='box'][class$='inner']:has(> p) { padding: 36px 20px; font-size: 17px; }
  .pc-grid { grid-template-columns: 1fr; }
  .pc-row { align-items: flex-start; flex-direction: column; gap: 6px; }
  .pc-form .pc-row input { width: 100%; text-align: left; }
  .pc-main { padding: 28px 16px 44px; }
  .pg-about main img[class$='inner'] { height: 110px; padding: 10px; }
  .pg-mobile .line1 h1 { font-size: 1.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
