/*
Theme Name: ERP Consulting One Page
Theme URI: https://www.poynton.com.au/
Author: ERP Consulting
Author URI: https://www.poynton.com.au/
Description: A focused one-page WordPress theme for ERP Consulting, with an integrated discovery-call booking form.
Version: 1.0.1
Requires at least: 6.0
Requires PHP: 7.2
Text Domain: erp-onepage
*/

:root {
  --erp-navy: #08243d;
  --erp-navy-2: #0e3658;
  --erp-orange: #f28c1b;
  --erp-orange-dark: #d86f00;
  --erp-sky: #59b8e8;
  --erp-ink: #102033;
  --erp-text: #405166;
  --erp-soft: #f5f8fb;
  --erp-border: #dce5ee;
  --erp-white: #ffffff;
  --erp-shadow: 0 18px 45px rgba(8, 36, 61, 0.12);
  --erp-radius: 22px;
  --erp-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--erp-ink);
  background: var(--erp-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.erp-modal-open { overflow: hidden; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }

.erp-skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 12px 16px;
  background: var(--erp-white);
  color: var(--erp-navy);
}
.erp-skip-link:focus { left: 12px; top: 12px; }

.erp-container {
  width: min(calc(100% - 40px), var(--erp-container));
  margin-inline: auto;
}

.erp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(220,229,238,.9);
  backdrop-filter: blur(14px);
}
.erp-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.erp-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.erp-brand img {
  width: 270px;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
}
.erp-nav {
  display: flex;
  align-items: center;
  gap: 27px;
}
.erp-nav a {
  text-decoration: none;
  color: var(--erp-navy);
  font-size: .86rem;
  font-weight: 750;
  letter-spacing: .02em;
}
.erp-nav a:hover, .erp-nav a:focus { color: var(--erp-orange-dark); }
.erp-nav .erp-button { color: var(--erp-white); }

.erp-menu-toggle {
  display: none;
  border: 1px solid var(--erp-border);
  border-radius: 12px;
  background: var(--erp-white);
  color: var(--erp-navy);
  padding: 10px 13px;
  font-weight: 750;
}

.erp-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 20px;
  background: var(--erp-orange);
  color: var(--erp-white);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(242,140,27,.20);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.erp-button:hover, .erp-button:focus {
  background: var(--erp-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(242,140,27,.28);
}
.erp-button-outline {
  background: transparent;
  color: var(--erp-navy);
  border-color: var(--erp-navy);
  box-shadow: none;
}
.erp-button-outline:hover, .erp-button-outline:focus {
  color: var(--erp-white);
  background: var(--erp-navy);
}
.erp-button-light {
  background: var(--erp-white);
  color: var(--erp-navy);
  box-shadow: none;
}
.erp-button-light:hover, .erp-button-light:focus {
  background: #eef4f8;
  color: var(--erp-navy);
}
.erp-button-block { width: 100%; }

.erp-hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 78px;
  background:
    radial-gradient(circle at 88% 10%, rgba(89,184,232,.18), transparent 30%),
    linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
}
.erp-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -82px;
  width: 520px;
  height: 150px;
  border-radius: 60% 0 0 0;
  border-top: 22px solid var(--erp-sky);
  border-bottom: 34px solid var(--erp-orange);
  transform: rotate(-8deg);
  opacity: .9;
}
.erp-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 70px;
  align-items: center;
}
.erp-eyebrow {
  margin: 0 0 14px;
  color: var(--erp-orange-dark);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.erp-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--erp-navy);
  font-size: clamp(2.7rem, 5vw, 4.9rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.erp-accent { color: var(--erp-orange); }
.erp-hero-copy {
  max-width: 690px;
  margin: 25px 0 0;
  color: var(--erp-text);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}
.erp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 31px;
}
.erp-consultant {
  margin-top: 24px;
  color: var(--erp-navy);
  font-weight: 750;
}
.erp-consultant span {
  display: block;
  color: var(--erp-text);
  font-weight: 500;
  font-size: .95rem;
}
.erp-hero-mark {
  display: grid;
  place-items: center;
  min-height: 340px;
}
.erp-hero-mark img {
  width: min(100%, 520px);
  filter: drop-shadow(0 24px 26px rgba(8,36,61,.10));
}

.erp-proof {
  position: relative;
  z-index: 4;
  margin-top: -1px;
  padding: 25px 0;
  background: var(--erp-navy);
  color: var(--erp-white);
}
.erp-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.erp-proof-item {
  padding: 8px 28px;
  border-right: 1px solid rgba(255,255,255,.18);
}
.erp-proof-item:first-child { padding-left: 0; }
.erp-proof-item:last-child { border-right: 0; }
.erp-proof strong {
  display: block;
  color: var(--erp-white);
  font-size: 1.55rem;
  line-height: 1.2;
}
.erp-proof span { color: #cbd9e5; font-size: .94rem; }

.erp-section { padding: 84px 0; }
.erp-section-soft { background: var(--erp-soft); }
.erp-section-heading {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}
.erp-section-heading h2 {
  margin: 0;
  color: var(--erp-navy);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.erp-section-heading p:last-child {
  margin: 15px auto 0;
  color: var(--erp-text);
  font-size: 1.08rem;
}

.erp-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.erp-card {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  padding: 31px;
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius);
  background: var(--erp-white);
  box-shadow: 0 10px 30px rgba(8,36,61,.06);
}
.erp-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--erp-orange), var(--erp-sky));
}
.erp-card-icon {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 16px;
  background: #eef5fa;
  color: var(--erp-navy);
  font-size: 1.6rem;
  font-weight: 900;
}
.erp-card h3 {
  margin: 0 0 12px;
  color: var(--erp-navy);
  font-size: 1.35rem;
  line-height: 1.25;
}
.erp-card p { margin: 0; color: var(--erp-text); }
.erp-card ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.erp-card li {
  position: relative;
  margin: 8px 0;
  padding-left: 18px;
  color: var(--erp-text);
}
.erp-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--erp-orange);
}

.erp-experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 54px;
  align-items: center;
}
.erp-experience-copy h2 {
  margin: 0;
  color: var(--erp-navy);
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.erp-experience-copy p { color: var(--erp-text); font-size: 1.08rem; }
.erp-checklist {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.erp-checklist li {
  position: relative;
  margin: 13px 0;
  padding-left: 34px;
  color: var(--erp-ink);
  font-weight: 650;
}
.erp-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border-radius: 50%;
  background: var(--erp-orange);
  color: var(--erp-white);
  font-size: .8rem;
}
.erp-result-panel {
  padding: 34px;
  border-radius: 26px;
  background: var(--erp-navy);
  color: var(--erp-white);
  box-shadow: var(--erp-shadow);
}
.erp-result-panel h3 { margin: 0 0 20px; font-size: 1.5rem; }
.erp-result {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.16);
}
.erp-result:first-of-type { border-top: 0; padding-top: 0; }
.erp-result strong {
  display: block;
  color: var(--erp-orange);
  font-size: 2.2rem;
  line-height: 1.1;
}
.erp-result span { display: block; margin-top: 7px; color: #d7e2eb; }

.erp-process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.erp-step {
  position: relative;
  padding: 30px 27px;
  border: 1px solid var(--erp-border);
  border-radius: var(--erp-radius);
  background: var(--erp-white);
}
.erp-step-number {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--erp-navy);
  color: var(--erp-white);
  font-weight: 900;
}
.erp-step h3 { margin: 0 0 8px; color: var(--erp-navy); font-size: 1.35rem; }
.erp-step p { margin: 0; color: var(--erp-text); }

.erp-cta {
  padding: 0 0 82px;
  background: var(--erp-soft);
}
.erp-cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
  background: var(--erp-navy);
  color: var(--erp-white);
  box-shadow: var(--erp-shadow);
}
.erp-cta-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -42px;
  width: 340px;
  height: 100px;
  border-top: 15px solid var(--erp-sky);
  border-bottom: 24px solid var(--erp-orange);
  border-radius: 50%;
  transform: rotate(-8deg);
  opacity: .9;
}
.erp-cta-copy, .erp-cta-actions { position: relative; z-index: 2; }
.erp-cta h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; }
.erp-cta p { margin: 12px 0 0; color: #d5e0e9; }
.erp-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }

.erp-footer {
  padding: 38px 0 26px;
  background: #061d31;
  color: #d3dee8;
}
.erp-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 36px;
  align-items: start;
}
.erp-footer-logo { width: 250px; filter: brightness(0) invert(1); opacity: .96; }
.erp-footer p { margin: 12px 0 0; }
.erp-footer h3 { margin: 0 0 12px; color: var(--erp-white); font-size: 1rem; }
.erp-footer a { color: #e8f2f9; text-decoration: none; }
.erp-footer a:hover { color: var(--erp-orange); }
.erp-footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #a9bac8;
  font-size: .88rem;
}

.erp-modal[hidden] { display: none; }
.erp-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
}
.erp-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,17,29,.76);
  backdrop-filter: blur(5px);
}
.erp-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  max-height: calc(100vh - 44px);
  overflow: auto;
  padding: 34px;
  border-radius: 24px;
  background: var(--erp-white);
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}
.erp-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--erp-navy);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}
.erp-modal h2 { margin: 0; color: var(--erp-navy); font-size: 2rem; }
.erp-modal-intro { margin: 8px 35px 24px 0; color: var(--erp-text); }
.erp-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.erp-field-full { grid-column: 1 / -1; }
.erp-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--erp-navy);
  font-size: .9rem;
  font-weight: 750;
}
.erp-field input, .erp-field select, .erp-field textarea {
  width: 100%;
  border: 1px solid #cbd7e2;
  border-radius: 11px;
  background: var(--erp-white);
  color: var(--erp-ink);
  padding: 12px 13px;
  outline: none;
}
.erp-field textarea { min-height: 112px; resize: vertical; }
.erp-field input:focus, .erp-field select:focus, .erp-field textarea:focus {
  border-color: var(--erp-sky);
  box-shadow: 0 0 0 3px rgba(89,184,232,.2);
}
.erp-honeypot {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.erp-form-note { margin: 13px 0 0; color: var(--erp-text); font-size: .84rem; }
.erp-form-message {
  margin-top: 15px;
  padding: 11px 13px;
  border-radius: 10px;
  background: #edf5fa;
  color: var(--erp-navy);
}
.erp-form-message.erp-error {
  background: #fff0ee;
  color: #9f2e20;
}

@media (max-width: 960px) {
  .erp-menu-toggle { display: inline-flex; }
  .erp-nav {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 74px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--erp-border);
    border-radius: 16px;
    background: var(--erp-white);
    box-shadow: var(--erp-shadow);
  }
  .erp-nav.erp-nav-open { display: flex; }
  .erp-nav a { padding: 12px; }
  .erp-nav .erp-button { margin-top: 8px; }
  .erp-hero-grid, .erp-experience-grid { grid-template-columns: 1fr; }
  .erp-hero-mark { min-height: 180px; }
  .erp-hero-mark img { width: min(78vw, 480px); }
  .erp-service-grid, .erp-process-grid { grid-template-columns: 1fr; }
  .erp-cta-panel { grid-template-columns: 1fr; }
  .erp-cta-actions { justify-content: flex-start; }
  .erp-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .erp-container { width: min(calc(100% - 28px), var(--erp-container)); }
  .erp-header-inner { min-height: 70px; }
  .erp-brand img { width: 205px; max-height: 50px; }
  .erp-hero { padding: 66px 0 54px; }
  .erp-hero-grid { gap: 38px; }
  .erp-hero::after { width: 310px; right: -130px; opacity: .55; }
  .erp-hero-actions, .erp-cta-actions { flex-direction: column; align-items: stretch; }
  .erp-hero-actions .erp-button, .erp-cta-actions .erp-button { width: 100%; }
  .erp-proof-grid { grid-template-columns: 1fr; }
  .erp-proof-item, .erp-proof-item:first-child {
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.18);
  }
  .erp-proof-item:last-child { border-bottom: 0; }
  .erp-section { padding: 64px 0; }
  .erp-card, .erp-result-panel { padding: 25px; }
  .erp-cta-panel { padding: 34px 25px; }
  .erp-footer-grid { grid-template-columns: 1fr; }
  .erp-form-grid { grid-template-columns: 1fr; }
  .erp-field-full { grid-column: auto; }
  .erp-modal-dialog { padding: 28px 20px 22px; }
}
