/*
Theme Name: Procheck Compliance
Theme URI: https://procheckcompliance.com.au/
Author: Procheck Compliance
Description: A lightweight, accessible block theme for Procheck Compliance.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: procheck-compliance
*/

:root {
  --pc-navy: #073a68;
  --pc-navy-dark: #052b4f;
  --pc-orange: #f45108;
  --pc-orange-dark: #d94300;
  --pc-ink: #102944;
  --pc-muted: #53677c;
  --pc-pale: #f1f6fa;
  --pc-border: #d5e0e9;
  --pc-white: #fff;
  --pc-shadow: 0 18px 50px rgb(7 58 104 / 10%);
  --pc-radius: 8px;
  --pc-content: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--pc-white);
  color: var(--pc-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

a {
  color: var(--pc-navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { color: var(--pc-orange-dark); }

:focus-visible {
  outline: 3px solid var(--pc-orange);
  outline-offset: 3px;
}

img { height: auto; max-width: 100%; }

h1, h2, h3, h4, h5, h6 {
  color: var(--pc-navy-dark);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 { font-size: clamp(2.7rem, 4.6vw, 4.45rem); }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }

.wp-site-blocks { overflow: clip; }

.pc-container,
.pc-page-shell > * {
  margin-inline: auto;
  max-width: var(--pc-content);
  width: min(calc(100% - 40px), var(--pc-content));
}

.pc-page-shell {
  padding-block: clamp(48px, 7vw, 92px);
}

.pc-page-shell > .alignwide { max-width: var(--pc-content); }
.pc-page-shell > .alignfull { max-width: none; width: 100%; }

.pc-site-header {
  background: rgb(255 255 255 / 96%);
  border-bottom: 1px solid rgb(213 224 233 / 75%);
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-bar .pc-site-header { top: 32px; }

.pc-header-inner {
  align-items: center;
  display: flex;
  flex-wrap: nowrap !important;
  gap: 28px;
  justify-content: space-between;
  margin-inline: auto;
  max-width: 1440px !important;
  min-height: 92px;
  width: min(calc(100% - 40px), 1440px);
}

.pc-site-header .wp-block-site-logo { flex: 0 0 270px; }

.pc-site-header .wp-block-site-logo img,
.pc-footer-brand .wp-block-site-logo img {
  background: var(--pc-white);
  box-sizing: border-box;
  padding-right: 4.5%;
}

.pc-site-header .wp-block-site-logo img {
  max-height: 68px;
  object-fit: contain;
  width: auto;
}

.pc-site-header .wp-block-navigation {
  color: var(--pc-navy-dark);
  flex: 1 1 auto;
  font-size: 0.95rem;
  font-weight: 650;
}

.pc-site-header .wp-block-navigation__container {
  flex-wrap: nowrap;
  gap: 24px;
}

.pc-site-header a { text-decoration: none; }

.pc-header-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 18px;
}

.pc-phone {
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.pc-phone::before {
  color: var(--pc-orange);
  content: "☎";
  margin-right: 8px;
}

.wp-element-button,
.wp-block-button__link,
.pc-button,
button.pc-button,
input[type="submit"] {
  align-items: center;
  background: var(--pc-orange);
  border: 2px solid var(--pc-orange);
  border-radius: 5px;
  color: var(--pc-white);
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 750;
  justify-content: center;
  line-height: 1.2;
  min-height: 52px;
  padding: 14px 24px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.pc-button:hover,
button.pc-button:hover,
input[type="submit"]:hover {
  background: var(--pc-orange-dark);
  border-color: var(--pc-orange-dark);
  color: var(--pc-white);
  transform: translateY(-1px);
}

.is-style-outline > .wp-block-button__link,
.pc-button--outline {
  background: transparent;
  border-color: var(--pc-navy);
  color: var(--pc-navy);
}

.is-style-outline > .wp-block-button__link:hover,
.pc-button--outline:hover {
  background: var(--pc-navy);
  border-color: var(--pc-navy);
  color: var(--pc-white);
}

.pc-hero {
  min-height: min(760px, calc(100vh - 92px));
}

.pc-hero-grid {
  align-items: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 1.06fr);
  margin-inline: auto;
  max-width: 1440px;
  min-height: inherit;
}

.pc-hero-copy {
  align-self: center;
  padding: clamp(54px, 7vw, 110px) clamp(30px, 6vw, 88px);
}

.pc-hero-copy h1 {
  margin: 0 0 24px;
  max-width: 740px;
}

.pc-hero-copy > p {
  color: var(--pc-muted);
  font-size: clamp(1.08rem, 1.55vw, 1.32rem);
  max-width: 720px;
}

.pc-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-block: 32px;
}

.pc-licence {
  color: var(--pc-navy-dark);
  font-weight: 750;
  margin-bottom: 5px;
}

.pc-licence::before {
  border: 2px solid var(--pc-orange);
  border-radius: 50%;
  color: var(--pc-orange);
  content: "✓";
  display: inline-grid;
  height: 28px;
  margin-right: 10px;
  place-items: center;
  width: 28px;
}

.pc-hero-media,
.pc-hero-media figure,
.pc-hero-media img {
  height: 100%;
  margin: 0;
  min-height: 580px;
  width: 100%;
}

.pc-hero-media img { object-fit: cover; object-position: 55% center; }

.pc-section {
  padding-block: clamp(70px, 9vw, 130px);
}

.pc-section--pale { background: var(--pc-pale); }
.pc-section--navy { background: var(--pc-navy-dark); color: var(--pc-white); }
.pc-section--navy h2,
.pc-section--navy h3,
.pc-section--navy p,
.pc-section--navy li { color: var(--pc-white); }

.pc-section-intro {
  max-width: 710px;
}

.pc-service-layout {
  align-items: start;
  display: grid;
  gap: clamp(48px, 6vw, 84px);
  grid-template-columns: 0.95fr 1.05fr;
}

.pc-service-index {
  display: grid;
  gap: 0 28px;
  grid-template-columns: repeat(2, 1fr);
}

.pc-service-link {
  align-items: center;
  border-bottom: 1px solid var(--pc-border);
  display: flex;
  font-size: 1.05rem;
  font-weight: 750;
  gap: 16px;
  justify-content: space-between;
  min-height: 92px;
  text-decoration: none;
}

.pc-service-link::after {
  color: var(--pc-orange);
  content: "→";
  font-size: 1.35rem;
}

.pc-service-link:hover { padding-left: 6px; }

.pc-safety-grid {
  align-items: center;
  display: grid;
  gap: clamp(42px, 7vw, 100px);
  grid-template-columns: 0.82fr 1.18fr;
}

.pc-safety-grid figure { margin: 0; }
.pc-safety-grid img { border-radius: var(--pc-radius); box-shadow: var(--pc-shadow); }

.pc-check-list {
  list-style: none;
  margin: 24px 0 32px;
  padding: 0;
}

.pc-check-list li {
  margin-block: 10px;
  padding-left: 34px;
  position: relative;
}

.pc-check-list li::before {
  border: 2px solid var(--pc-orange);
  border-radius: 50%;
  color: var(--pc-orange);
  content: "✓";
  display: grid;
  font-size: 0.75rem;
  height: 22px;
  left: 0;
  place-items: center;
  position: absolute;
  top: 2px;
  width: 22px;
}

.pc-audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 54px;
}

.pc-audience-item {
  border-left: 1px solid var(--pc-border);
  min-height: 220px;
  padding: 16px clamp(24px, 4vw, 54px);
}

.pc-audience-item:first-child { border-left: 0; padding-left: 0; }
.pc-audience-item:last-child { padding-right: 0; }

.pc-process {
  align-items: center;
  border-block: 1px solid var(--pc-border);
  display: grid;
  gap: 28px;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  margin-top: 70px;
  padding-block: 34px;
}

.pc-process-step {
  align-items: baseline;
  display: flex;
  gap: 14px;
}

.pc-process-step strong {
  color: var(--pc-navy);
  font-size: 2.25rem;
}

.pc-area-grid {
  align-items: center;
  display: grid;
  gap: clamp(50px, 8vw, 120px);
  grid-template-columns: 0.8fr 1.2fr;
}

.pc-area-route {
  border-left: 3px solid var(--pc-navy);
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0 0 0 32px;
}

.pc-area-route li { position: relative; }
.pc-area-route li::before {
  background: var(--pc-navy);
  border: 3px solid var(--pc-pale);
  border-radius: 50%;
  content: "";
  height: 14px;
  left: -41px;
  position: absolute;
  top: 7px;
  width: 14px;
}
.pc-area-route li:nth-child(3)::before { background: var(--pc-orange); }

.pc-form-band {
  display: grid;
  gap: clamp(50px, 8vw, 120px);
  grid-template-columns: 0.7fr 1.3fr;
}

.pc-form-intro { padding-top: 18px; }

.pc-form {
  background: var(--pc-white);
  border: 1px solid var(--pc-border);
  border-radius: var(--pc-radius);
  box-shadow: var(--pc-shadow);
  padding: clamp(26px, 5vw, 54px);
}

.pc-form-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pc-field--full { grid-column: 1 / -1; }

.pc-field label,
.pc-fieldset legend {
  color: var(--pc-navy-dark);
  display: block;
  font-size: 0.93rem;
  font-weight: 750;
  margin-bottom: 8px;
}

.pc-field input,
.pc-field select,
.pc-field textarea {
  background: var(--pc-white);
  border: 1px solid #9eb1c1;
  border-radius: 4px;
  color: var(--pc-ink);
  font: inherit;
  min-height: 50px;
  padding: 11px 13px;
  width: 100%;
}

.pc-field textarea { min-height: 145px; resize: vertical; }

.pc-fieldset {
  border: 0;
  grid-column: 1 / -1;
  margin: 0;
  padding: 0;
}

.pc-service-options {
  display: grid;
  gap: 10px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pc-check-option {
  align-items: start;
  display: flex;
  gap: 9px;
}

.pc-check-option input { margin-top: 6px; }

.pc-form-status {
  border-left: 4px solid var(--pc-orange);
  margin-bottom: 24px;
  padding: 12px 16px;
}

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

.pc-content-hero {
  background: var(--pc-pale);
  padding-block: clamp(58px, 8vw, 100px);
}

.pc-content-hero > * {
  margin-inline: auto;
  max-width: 900px;
  text-align: center;
  width: min(calc(100% - 40px), 900px);
}

.pc-content-hero h1 { font-size: clamp(2.5rem, 5vw, 4.4rem); margin-bottom: 18px; }

.pc-content-grid {
  display: grid;
  gap: clamp(46px, 7vw, 92px);
  grid-template-columns: minmax(0, 1fr) 320px;
}

.pc-content-main > *:first-child { margin-top: 0; }

.pc-sidebar {
  align-self: start;
  background: var(--pc-pale);
  border-top: 4px solid var(--pc-orange);
  padding: 30px;
  position: sticky;
  top: 124px;
}

.pc-sidebar h2 { font-size: 1.6rem; }

.pc-related-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.pc-related-links li { border-top: 1px solid var(--pc-border); padding-block: 12px; }
.pc-related-links a { font-weight: 700; text-decoration: none; }

.pc-quote-strip {
  background: var(--pc-navy-dark);
  color: var(--pc-white);
  padding-block: 46px;
}

.pc-quote-strip-inner {
  align-items: center;
  display: flex;
  gap: 30px;
  justify-content: space-between;
  margin-inline: auto;
  width: min(calc(100% - 40px), var(--pc-content));
}

.pc-quote-strip h2,
.pc-quote-strip p { color: var(--pc-white); margin-block: 0; }
.pc-quote-strip h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }

.pc-site-footer {
  background: var(--pc-navy-dark);
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: rgb(255 255 255 / 78%);
  padding-block: 70px 30px;
}

.pc-footer-grid {
  display: grid;
  gap: clamp(36px, 4vw, 72px);
  grid-template-columns: minmax(300px, 1.35fr) repeat(3, minmax(170px, 1fr));
  margin-inline: auto;
  max-width: 1440px !important;
  width: min(calc(100% - 48px), 1440px) !important;
}

.pc-site-footer h2,
.pc-site-footer h3,
.pc-site-footer a { color: var(--pc-white); }
.pc-site-footer h3 { font-size: 1rem; letter-spacing: 0; }
.pc-site-footer a { text-decoration: none; }

.pc-footer-brand .wp-block-site-logo img { max-height: 84px; width: auto; }
.pc-footer-links { list-style: none; margin: 0; padding: 0; }
.pc-footer-links li { margin-block: 9px; }

.pc-footer-bottom {
  border-top: 1px solid rgb(255 255 255 / 14%);
  margin: 50px auto 0;
  max-width: 1440px !important;
  padding-top: 22px;
  width: min(calc(100% - 48px), 1440px) !important;
}

.pc-skip-link {
  background: var(--pc-white);
  left: 12px;
  padding: 12px 18px;
  position: fixed;
  top: -100px;
  z-index: 9999;
}
.pc-skip-link:focus { top: 12px; }

@media (max-width: 1120px) {
  .pc-header-actions .pc-phone { display: none; }
  .pc-site-header .wp-block-site-logo { flex-basis: 210px; }
  .pc-site-header .wp-block-navigation { font-size: 0.88rem; }
  .pc-site-header .wp-block-navigation__container { gap: 14px; }
  .pc-service-layout { grid-template-columns: 1fr; }
  .pc-process { grid-template-columns: 1fr 1fr; }
  .pc-process h2 { grid-column: 1 / -1; }
}

@media (max-width: 1000px) {
  .pc-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pc-process h2 { font-size: clamp(1.9rem, 3vw, 2.55rem); }

.pc-preview-menu { display: none; }

@media (max-width: 900px) {
  .admin-bar .pc-site-header { top: 46px; }
  .pc-site-header .wp-block-navigation__responsive-container-open { display: flex; }
  .pc-site-header .wp-block-navigation__container { display: none; }
  .pc-preview-nav { display: none !important; }
  .pc-preview-menu {
    background: transparent;
    border: 0;
    color: var(--pc-navy-dark);
    display: block;
    font: inherit;
    font-weight: 750;
    padding: 10px;
  }
  .pc-hero-grid,
  .pc-safety-grid,
  .pc-area-grid,
  .pc-form-band,
  .pc-content-grid { grid-template-columns: 1fr; }
  .pc-hero-media { order: -1; }
  .pc-hero-media,
  .pc-hero-media figure,
  .pc-hero-media img { min-height: 380px; }
  .pc-hero-copy { padding-inline: 24px; }
  .pc-audience-grid { grid-template-columns: 1fr; }
  .pc-audience-item,
  .pc-audience-item:first-child,
  .pc-audience-item:last-child {
    border-left: 0;
    border-top: 1px solid var(--pc-border);
    min-height: auto;
    padding: 30px 0;
  }
  .pc-sidebar { position: static; }
  .pc-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 660px) {
  body { font-size: 16px; }
  .pc-header-inner { gap: 10px; min-height: 78px; width: min(calc(100% - 24px), 1440px); }
  .pc-site-header .wp-block-site-logo { flex: 0 0 92px; }
  .pc-site-header .wp-block-site-logo img { max-height: 52px; max-width: 92px; }
  .pc-preview-logo { flex: 0 0 92px; }
  .pc-preview-logo img { width: 92px !important; }
  .pc-header-actions { gap: 8px; }
  .pc-header-actions .wp-block-button { display: block; }
  .pc-header-actions .wp-block-button__link,
  .pc-header-actions > .pc-button { font-size: 0.88rem; min-height: 46px; padding: 10px 13px; }
  .pc-hero-copy { padding-block: 44px 60px; }
  .pc-hero-media,
  .pc-hero-media figure,
  .pc-hero-media img { min-height: 300px; }
  .pc-service-index,
  .pc-form-grid,
  .pc-service-options,
  .pc-process,
  .pc-footer-grid { grid-template-columns: 1fr; }
  .pc-footer-grid,
  .pc-footer-bottom { width: min(calc(100% - 28px), 1440px) !important; }
  .pc-form { padding: 22px; }
  .pc-quote-strip-inner { align-items: flex-start; flex-direction: column; }
  .pc-section { padding-block: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; }
}
