/* ==========================================================================
   PVC SOLUTIONS USA — Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--pvc-header-h-sticky) + 1rem);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--pvc-bg);
  color: var(--pvc-text);
  font-family: var(--pvc-font-body);
  font-size: var(--pvc-fs-body);
  font-weight: var(--pvc-fw-regular);
  line-height: var(--pvc-lh-relax);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.pvc-nav-open { overflow: hidden; }

/* --- Headings ----------------------------------------------------------- */

h1, h2, h3, h4, h5, h6,
.pvc-h1, .pvc-h2, .pvc-h3, .pvc-h4 {
  margin: 0 0 var(--pvc-s-4);
  font-family: var(--pvc-font-display);
  font-weight: var(--pvc-fw-bold);
  line-height: var(--pvc-lh-snug);
  letter-spacing: var(--pvc-ls-heading);
  color: var(--pvc-navy);
  text-wrap: balance;
}

h1, .pvc-h1 {
  font-size: var(--pvc-fs-h1);
  font-weight: var(--pvc-fw-black);
  line-height: var(--pvc-lh-tight);
  letter-spacing: var(--pvc-ls-display);
}

h2, .pvc-h2 { font-size: var(--pvc-fs-h2); font-weight: var(--pvc-fw-black); }
h3, .pvc-h3 { font-size: var(--pvc-fs-h3); }
h4, .pvc-h4 { font-size: var(--pvc-fs-h4); }
h5 { font-size: var(--pvc-fs-body); }
h6 {
  font-family: var(--pvc-font-util);
  font-size: var(--pvc-fs-sm);
  font-weight: var(--pvc-fw-semibold);
  letter-spacing: var(--pvc-ls-eyebrow);
  text-transform: uppercase;
}

/* Two-tone headline: wrap the emphasised words in <em> or .pvc-accent */
.pvc-h1 em, .pvc-h2 em, .pvc-h3 em,
h1 em, h2 em, h3 em,
.pvc-accent {
  font-style: normal;
  color: var(--pvc-red);
}

.pvc-on-dark h1, .pvc-on-dark h2, .pvc-on-dark h3,
.pvc-on-dark h4, .pvc-on-dark h5, .pvc-on-dark h6 { color: var(--pvc-text-invert); }
.pvc-on-dark { color: var(--pvc-text-invert-mut); }
.pvc-on-dark p { color: var(--pvc-text-invert-mut); }

/* --- Body copy ---------------------------------------------------------- */

p { margin: 0 0 var(--pvc-s-4); }
p:last-child { margin-bottom: 0; }

.pvc-lead {
  font-size: var(--pvc-fs-lead);
  line-height: var(--pvc-lh-normal);
  color: var(--pvc-text-muted);
}

.pvc-on-dark .pvc-lead { color: var(--pvc-text-invert-mut); }

.pvc-measure { max-width: var(--pvc-container-text); }
.pvc-measure-center { max-width: var(--pvc-container-text); margin-inline: auto; }

strong, b { font-weight: var(--pvc-fw-semibold); color: var(--pvc-navy); }
.pvc-on-dark strong, .pvc-on-dark b { color: var(--pvc-white); }

small { font-size: var(--pvc-fs-xs); }

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

a {
  color: var(--pvc-red);
  text-decoration: none;
  transition: color var(--pvc-dur-fast) var(--pvc-ease);
}
a:hover { color: var(--pvc-red-hover); }

.pvc-prose a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

/* --- Lists -------------------------------------------------------------- */

ul, ol { margin: 0 0 var(--pvc-s-4); padding-left: 1.25rem; }
li { margin-bottom: var(--pvc-s-2); }

/* Checked feature list */
.pvc-list-check { list-style: none; padding-left: 0; }
.pvc-list-check li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: var(--pvc-s-3);
}
.pvc-list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--pvc-red);
  border-bottom: 2.5px solid var(--pvc-red);
  transform: rotate(-45deg);
}

/* --- Media -------------------------------------------------------------- */

img, svg, video, canvas, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

figure { margin: 0; }

figcaption {
  margin-top: var(--pvc-s-3);
  font-family: var(--pvc-font-util);
  font-size: var(--pvc-fs-sm);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--pvc-text-muted);
}

/* --- Tables ------------------------------------------------------------- */

table { width: 100%; border-collapse: collapse; }

.pvc-table {
  font-size: var(--pvc-fs-sm);
  border: 1px solid var(--pvc-border);
}
.pvc-table th,
.pvc-table td {
  padding: var(--pvc-s-3) var(--pvc-s-4);
  text-align: left;
  border-bottom: 1px solid var(--pvc-border);
}
.pvc-table thead th {
  background: var(--pvc-navy);
  color: var(--pvc-white);
  font-family: var(--pvc-font-util);
  font-weight: var(--pvc-fw-semibold);
  font-size: var(--pvc-fs-sm);
  letter-spacing: var(--pvc-ls-eyebrow);
  text-transform: uppercase;
  border-bottom: none;
}
.pvc-table tbody tr:nth-child(even) { background: var(--pvc-mist); }
.pvc-table tbody tr:last-child td { border-bottom: none; }
.pvc-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

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

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

.pvc-field { margin-bottom: var(--pvc-s-4); }

.pvc-label,
label {
  display: block;
  margin-bottom: var(--pvc-s-2);
  font-family: var(--pvc-font-util);
  font-size: var(--pvc-fs-sm);
  font-weight: var(--pvc-fw-semibold);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pvc-navy);
}

.pvc-label .pvc-req { color: var(--pvc-red); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--pvc-white);
  border: 1px solid var(--pvc-border);
  border-radius: var(--pvc-radius-1);
  line-height: 1.4;
  transition: border-color var(--pvc-dur-fast) var(--pvc-ease),
              box-shadow var(--pvc-dur-fast) var(--pvc-ease);
}

textarea { min-height: 148px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--pvc-navy);
  box-shadow: 0 0 0 3px rgba(20, 48, 94, .14);
}

input::placeholder, textarea::placeholder { color: var(--pvc-steel); }

.pvc-field-error input,
.pvc-field-error select,
.pvc-field-error textarea { border-color: var(--pvc-red); }

.pvc-error-text {
  display: block;
  margin-top: var(--pvc-s-2);
  font-size: var(--pvc-fs-sm);
  color: var(--pvc-red);
}

.pvc-consent {
  display: flex;
  gap: var(--pvc-s-3);
  align-items: flex-start;
}
.pvc-consent input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: .25rem;
  flex: 0 0 auto;
  accent-color: var(--pvc-red);
}
.pvc-consent label {
  margin: 0;
  font-family: var(--pvc-font-body);
  font-size: var(--pvc-fs-sm);
  font-weight: var(--pvc-fw-regular);
  letter-spacing: 0;
  text-transform: none;
  color: var(--pvc-text-muted);
  line-height: var(--pvc-lh-normal);
}

/* Honeypot — must stay visually hidden but not display:none (bots skip those) */
.pvc-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

/* --- Notices ------------------------------------------------------------ */

.pvc-notice {
  padding: var(--pvc-s-4) var(--pvc-s-5);
  margin-bottom: var(--pvc-s-5);
  border-left: 4px solid var(--pvc-navy);
  background: var(--pvc-navy-tint);
  font-size: var(--pvc-fs-sm);
}
.pvc-notice--success { border-left-color: #1E7A46; background: #E9F6EE; }
.pvc-notice--error   { border-left-color: var(--pvc-red); background: var(--pvc-red-tint); }
.pvc-notice p:last-child { margin-bottom: 0; }

/* --- Accessibility ------------------------------------------------------ */

:focus-visible {
  outline: 3px solid var(--pvc-focus);
  outline-offset: 2px;
}

.pvc-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--pvc-z-toast);
  padding: var(--pvc-s-3) var(--pvc-s-5);
  background: var(--pvc-navy);
  color: var(--pvc-white);
  font-weight: var(--pvc-fw-semibold);
}
.pvc-skip-link:focus {
  left: var(--pvc-s-4);
  top: var(--pvc-s-4);
  color: var(--pvc-white);
}

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

/* --- Utilities ---------------------------------------------------------- */

.pvc-text-center { text-align: center; }
.pvc-text-left   { text-align: left; }
.pvc-hide        { display: none !important; }

.pvc-eyebrow {
  display: block;
  margin-bottom: var(--pvc-s-3);
  font-family: var(--pvc-font-util);
  font-size: var(--pvc-fs-eyebrow);
  font-weight: var(--pvc-fw-semibold);
  letter-spacing: var(--pvc-ls-eyebrow);
  text-transform: uppercase;
  color: var(--pvc-red);
}
.pvc-on-dark .pvc-eyebrow { color: #FF6B5E; }

/* The signature flag rule — three stacked bars from the logo's USA underscore */
.pvc-rule {
  display: block;
  width: 68px;
  height: calc(var(--pvc-rule-h) * 3 + var(--pvc-rule-gap) * 2);
  background-image:
    linear-gradient(var(--pvc-red), var(--pvc-red)),
    linear-gradient(var(--pvc-red), var(--pvc-red)),
    linear-gradient(var(--pvc-navy), var(--pvc-navy));
  background-size: 100% var(--pvc-rule-h), 76% var(--pvc-rule-h), 52% var(--pvc-rule-h);
  background-position: 0 0, 0 calc(var(--pvc-rule-h) + var(--pvc-rule-gap)), 0 100%;
  background-repeat: no-repeat;
  margin-bottom: var(--pvc-s-5);
}
.pvc-rule--center { margin-inline: auto; }
.pvc-on-dark .pvc-rule {
  background-image:
    linear-gradient(var(--pvc-red), var(--pvc-red)),
    linear-gradient(var(--pvc-red), var(--pvc-red)),
    linear-gradient(#FFFFFF, #FFFFFF);
}

/* Print */
@media print {
  .pvc-header, .pvc-footer, .pvc-drawer, .pvc-to-top { display: none !important; }
  body { color: #000; }
}

/* Anchor for the hero's scroll target — offset so the sticky header
   does not sit over the top of the section it lands on. */
#pvc-next {
  display: block;
  height: 0;
  scroll-margin-top: calc(var(--pvc-header-h-sticky) + 1rem);
}
