/*
Theme Name: ProtectionPro Global Dealer Network
Theme URI: https://swifty.mobi/
Author: ProtectionPro Global Dealer Network
Description: A territory-first dealer network theme for verified trade access and global fulfilment.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: protectionpro-network
*/

:root {
  --pp-red: #e92824;
  --pp-red-dark: #b91f1b;
  --pp-ink: #080e1d;
  --pp-ink-soft: #11192b;
  --pp-paper: #f4f6f5;
  --pp-white: #ffffff;
  --pp-muted: #667085;
  --pp-line: #dfe3e8;
  --pp-success: #087a55;
  --pp-warning: #956000;
  --pp-radius: 18px;
  --pp-shadow: 0 22px 60px rgba(8, 14, 29, 0.12);
  --pp-max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  width: auto;
  height: auto;
  margin: 0;
  padding: 10px 16px;
  clip: auto;
  background: var(--pp-white);
}

.site-shell {
  width: min(calc(100% - 40px), var(--pp-max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 50;
  color: var(--pp-white);
  background: rgba(8, 14, 29, 0.76);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(8, 14, 29, 0.96);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
}

.header-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  color: var(--pp-white);
  text-decoration: none;
  letter-spacing: -0.04em;
  line-height: 0.95;
  font-weight: 850;
}

.brand strong {
  font-size: 22px;
}

.brand strong span,
.brand small span {
  color: var(--pp-red);
}

.brand small {
  margin-top: 5px;
  color: #cbd2df;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.primary-nav a {
  color: #e8ebf1;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav a:hover,
.primary-nav a:focus-visible {
  color: var(--pp-white);
}

.primary-nav .nav-cta {
  padding: 10px 17px;
  color: var(--pp-white);
  background: var(--pp-red);
  border-radius: 999px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--pp-white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 780px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--pp-white);
  background: var(--pp-ink);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(5, 9, 19, 0.98) 0%, rgba(5, 9, 19, 0.9) 42%, rgba(5, 9, 19, 0.18) 78%, rgba(5, 9, 19, 0.28) 100%),
    linear-gradient(0deg, rgba(5, 9, 19, 0.72), transparent 55%),
    url("assets/images/hero-device.jpg") center right / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 56%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(760px, 68%);
  padding: 152px 0 86px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--pp-red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 28px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero .eyebrow {
  color: #ff625d;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 830;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

h1 {
  max-width: 760px;
  font-size: clamp(54px, 7.1vw, 98px);
}

h1 span {
  color: var(--pp-red);
}

h2 {
  max-width: 900px;
  font-size: clamp(38px, 5.2vw, 68px);
}

h3 {
  font-size: clamp(24px, 2.5vw, 34px);
}

.hero-lead {
  max-width: 640px;
  margin: 26px 0 0;
  color: #dbe0ea;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  color: var(--pp-white);
  background: var(--pp-red);
  border: 1px solid var(--pp-red);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 760;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--pp-red-dark);
  border-color: var(--pp-red-dark);
  transform: translateY(-2px);
}

.button-secondary {
  color: var(--pp-white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.36);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 28px;
  margin: 48px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  list-style: none;
}

.hero-proof li {
  position: relative;
  padding-left: 17px;
  color: #bdc6d5;
  font-size: 13px;
  font-weight: 650;
}

.hero-proof li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 6px;
  height: 6px;
  content: "";
  background: var(--pp-red);
  border-radius: 50%;
}

.section {
  padding: 112px 0;
}

.section-soft {
  background: var(--pp-paper);
}

.section-dark {
  color: var(--pp-white);
  background: var(--pp-ink);
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  gap: 56px;
  align-items: end;
  margin-bottom: 58px;
}

.section-intro p {
  margin: 0 0 5px;
  color: var(--pp-muted);
  font-size: 18px;
}

.section-dark .section-intro p {
  color: #aeb8c9;
}

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

.opportunity-card {
  padding: 42px;
  border-radius: var(--pp-radius);
}

.opportunity-card h3 {
  margin-bottom: 24px;
}

.opportunity-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.opportunity-card li {
  position: relative;
  padding-left: 20px;
}

.opportunity-card li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--pp-red);
  border-radius: 50%;
}

.opportunity-card:first-child {
  background: var(--pp-paper);
}

.opportunity-card.route-card {
  color: var(--pp-white);
  background: var(--pp-ink);
  box-shadow: var(--pp-shadow);
}

.route-card p {
  color: #b7c0cf;
}

.route-mark {
  display: inline-grid;
  width: 54px;
  height: 54px;
  margin-bottom: 55px;
  place-items: center;
  color: var(--pp-white);
  background: var(--pp-red);
  border-radius: 50%;
  font-size: 26px;
  font-weight: 800;
}

.flow-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.flow-grid::before {
  position: absolute;
  top: 39px;
  right: 12.5%;
  left: 12.5%;
  height: 1px;
  content: "";
  background: #344056;
}

.flow-card {
  position: relative;
  z-index: 1;
  min-height: 230px;
  padding: 28px;
  background: var(--pp-ink-soft);
  border: 1px solid #273149;
  border-radius: 14px;
}

.flow-card.featured {
  background: var(--pp-red);
  border-color: var(--pp-red);
}

.flow-number {
  display: grid;
  width: 24px;
  height: 24px;
  margin-bottom: 52px;
  place-items: center;
  color: var(--pp-white);
  background: #2a344b;
  border: 4px solid var(--pp-ink);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 800;
}

.flow-card.featured .flow-number {
  color: var(--pp-red);
  background: var(--pp-white);
  border-color: var(--pp-red);
}

.flow-card h3 {
  margin-bottom: 10px;
  font-size: 23px;
}

.flow-card p {
  margin: 0;
  color: #aeb8c9;
  font-size: 15px;
}

.flow-card.featured p {
  color: #ffe5e4;
}

.territory-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  overflow: hidden;
  background: var(--pp-white);
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
  box-shadow: var(--pp-shadow);
}

.territory-controls {
  padding: 46px;
  background: var(--pp-ink);
  color: var(--pp-white);
}

.territory-controls label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.territory-controls select {
  width: 100%;
  min-height: 56px;
  padding: 0 16px;
  color: var(--pp-ink);
  background: var(--pp-white);
  border: 0;
  border-radius: 10px;
}

.territory-note {
  margin: 18px 0 0;
  color: #9fabc0;
  font-size: 13px;
}

.territory-result {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 54px;
}

.territory-status {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 24px;
  padding: 7px 11px;
  color: var(--pp-muted);
  background: var(--pp-paper);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.territory-result h3 {
  max-width: 620px;
  margin-bottom: 18px;
}

.territory-result p {
  max-width: 620px;
  margin: 0;
  color: var(--pp-muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  counter-reset: dealer-step;
}

.step {
  position: relative;
  min-height: 224px;
  padding: 26px 23px;
  counter-increment: dealer-step;
  border-top: 1px solid var(--pp-line);
  border-bottom: 1px solid var(--pp-line);
  border-left: 1px solid var(--pp-line);
}

.step:last-child {
  border-right: 1px solid var(--pp-line);
}

.step::before {
  display: block;
  margin-bottom: 38px;
  content: "0" counter(dealer-step);
  color: var(--pp-red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.step h3 {
  margin-bottom: 10px;
  font-size: 22px;
}

.step p {
  margin: 0;
  color: var(--pp-muted);
  font-size: 14px;
}

.release-rule {
  margin-top: 24px;
  padding: 18px 22px;
  color: var(--pp-white);
  background: var(--pp-ink);
  border-left: 6px solid var(--pp-red);
  font-size: 14px;
  font-weight: 690;
}

.order-track {
  display: grid;
  gap: 16px;
}

.order-row {
  display: grid;
  grid-template-columns: 90px repeat(5, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.order-owner {
  color: var(--pp-red);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.order-item {
  position: relative;
  min-height: 78px;
  display: flex;
  align-items: center;
  padding: 12px 14px 12px 28px;
  background: var(--pp-white);
  border: 1px solid var(--pp-line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 720;
}

.order-item::before {
  position: absolute;
  left: 14px;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--pp-ink);
  border-radius: 50%;
}

.order-row:nth-child(2) .order-item {
  color: var(--pp-white);
  background: var(--pp-ink);
  border-color: var(--pp-ink);
}

.order-row:nth-child(2) .order-item::before {
  background: var(--pp-red);
}

.control-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.control-card {
  padding: 42px;
  background: var(--pp-white);
  border: 1px solid var(--pp-line);
  border-radius: var(--pp-radius);
}

.control-card h3 {
  margin-bottom: 26px;
}

.control-card ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.control-card li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-top: 1px solid var(--pp-line);
}

.control-card li::before {
  position: absolute;
  top: 1.45em;
  left: 0;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--pp-red);
  border-radius: 50%;
}

.application-wrap {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 64px;
  align-items: start;
}

.application-copy {
  position: sticky;
  top: 120px;
}

.application-copy h2 {
  margin-bottom: 24px;
}

.application-copy > p {
  color: #adb6c7;
}

.application-points {
  display: grid;
  gap: 16px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}

.application-points li {
  position: relative;
  padding-left: 28px;
  color: #d8dee8;
  font-size: 14px;
}

.application-points li::before {
  position: absolute;
  top: 0.45em;
  left: 0;
  width: 12px;
  height: 7px;
  content: "";
  border-bottom: 2px solid var(--pp-red);
  border-left: 2px solid var(--pp-red);
  transform: rotate(-45deg);
}

.dealer-form,
.plugin-required {
  padding: 42px;
  color: var(--pp-ink);
  background: var(--pp-white);
  border-radius: var(--pp-radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.2);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label,
.form-field legend {
  color: #344054;
  font-size: 13px;
  font-weight: 760;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--pp-ink);
  background: #fbfcfd;
  border: 1px solid #ccd3dc;
  border-radius: 9px;
  outline: 0;
}

.form-field textarea {
  min-height: 130px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--pp-red);
  box-shadow: 0 0 0 3px rgba(233, 40, 36, 0.12);
}

.checkbox-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  margin: 24px 0;
  color: #475467;
  font-size: 13px;
}

.checkbox-field input {
  margin-top: 4px;
}

.form-note {
  margin: 14px 0 0;
  color: var(--pp-muted);
  font-size: 12px;
}

.form-message {
  margin-bottom: 24px;
  padding: 15px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 650;
}

.form-success {
  color: #075b3f;
  background: #e8f7f1;
  border: 1px solid #a7ddca;
}

.form-error {
  color: #8f1c18;
  background: #fff0ef;
  border: 1px solid #f3b7b4;
}

.site-footer {
  padding: 46px 0;
  color: #aeb7c8;
  background: #050912;
  border-top: 1px solid #212a3d;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 44px;
  align-items: end;
}

.footer-meta {
  margin: 22px 0 0;
  max-width: 720px;
  font-size: 12px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
  font-size: 13px;
}

.footer-links a {
  text-decoration: none;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.content-page {
  min-height: 70vh;
  padding: 150px 0 90px;
}

.content-page article {
  max-width: 820px;
}

.content-page .entry-content {
  margin-top: 32px;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 980px) {
  .hero {
    min-height: 720px;
  }

  .hero-inner {
    width: min(760px, 84%);
  }

  .section-intro,
  .application-wrap {
    grid-template-columns: 1fr;
  }

  .application-copy {
    position: static;
  }

  .flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .flow-grid::before {
    display: none;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .step,
  .step:last-child {
    border: 1px solid var(--pp-line);
    border-radius: 12px;
  }

  .order-row {
    grid-template-columns: 78px repeat(3, minmax(0, 1fr));
  }

  .order-item:nth-last-child(-n+2) {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .site-shell {
    width: min(calc(100% - 28px), var(--pp-max));
  }

  .header-inner {
    min-height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 18px 20px 24px;
    align-items: stretch;
    flex-direction: column;
    gap: 7px;
    background: var(--pp-ink);
    border-bottom: 1px solid #2c3548;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    padding: 11px 7px;
  }

  .primary-nav .nav-cta {
    margin-top: 6px;
    text-align: center;
  }

  .hero {
    min-height: 760px;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(5, 9, 19, 1) 0%, rgba(5, 9, 19, 0.86) 62%, rgba(5, 9, 19, 0.4) 100%),
      url("assets/images/hero-device.jpg") 62% center / cover no-repeat;
  }

  .hero::after {
    display: none;
  }

  .hero-inner {
    width: 100%;
    padding-top: 136px;
    align-self: end;
  }

  h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .section {
    padding: 80px 0;
  }

  .section-intro {
    gap: 22px;
    margin-bottom: 38px;
  }

  .opportunity-grid,
  .territory-panel,
  .control-grid,
  .form-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .opportunity-card,
  .territory-controls,
  .territory-result,
  .control-card,
  .dealer-form,
  .plugin-required {
    padding: 28px;
  }

  .flow-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .flow-card,
  .step {
    min-height: auto;
  }

  .flow-number,
  .step::before {
    margin-bottom: 24px;
  }

  .order-row {
    grid-template-columns: 1fr;
  }

  .order-owner {
    margin-top: 12px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

