/*
Theme Name: Petronex
Author: AAGENS
Version: 1.0
Description: Premium custom WordPress theme for Petronex Energy Inc.
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: Proprietary
Text Domain: petronex
*/

/* ====================================================
   DESIGN TOKENS
   ==================================================== */

:root {
  --pnx-deep-blue:   #1b2d4f;
  --pnx-mid-blue:    #2c5fa5;
  --pnx-light-blue:  #4a8dc8;
  /* WCAG AA fix: #c49b1f was 2.61:1 on white; #927216 achieves 4.53:1 (passes 4.5:1 threshold). */
  --pnx-gold:        #927216;
  --pnx-gold-light:  #e8ba4a;
  --pnx-white:       #ffffff;
  --pnx-off-white:   #f7f9fb;
  --pnx-text:        #1a1a2e;
  --pnx-text-light:  #4a5568;

  --pnx-border:          rgba(27, 45, 79, 0.12);
  --pnx-font:            'Inter', system-ui, -apple-system, sans-serif;
  --pnx-font-size-base:  1rem;
  --pnx-line-height:     1.7;
  --pnx-container-max:   1200px;
  --pnx-container-pad:   clamp(1.5rem, 5vw, 3rem);
  --pnx-section-pad:     5rem 0;
  --pnx-transition:      0.2s ease;

  /* Greyscale scale — used by component styles */
  --pnx-dark-grey:    #2d3748;
  --pnx-mid-grey:     #718096;
  --pnx-light-grey:   #e2e8f0;

  /* Font aliases — heading and body both use the Inter stack */
  --pnx-font-heading: var(--pnx-font);
  --pnx-font-body:    var(--pnx-font);
}

/* ====================================================
   RESET / NORMALISE
   ==================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
}

body {
  font-family: var(--pnx-font);
  font-size: var(--pnx-font-size-base);
  line-height: var(--pnx-line-height);
  color: var(--pnx-text);
  background-color: var(--pnx-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

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

/* ====================================================
   TYPOGRAPHY — Inter
   ==================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--pnx-font);
  font-weight: 700;
  line-height: 1.2;
  color: var(--pnx-deep-blue);
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.25rem,  5vw,   3.5rem); }
h2 { font-size: clamp(1.75rem,  3.5vw, 2.75rem); }
h3 { font-size: clamp(1.375rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.125rem, 2vw,   1.5rem); }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: 1.25rem;
  color: var(--pnx-text);
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--pnx-mid-blue);
  text-decoration: none;
  transition: color var(--pnx-transition);
}

a:hover {
  color: var(--pnx-deep-blue);
}

a:focus-visible {
  outline: 2px solid var(--pnx-gold);
  outline-offset: 2px;
}

strong, b { font-weight: 700; }
em, i     { font-style: italic; }

blockquote {
  border-left: 4px solid var(--pnx-gold);
  padding-left: 1.5rem;
  margin: 2rem 0;
  color: var(--pnx-text-light);
  font-size: 1.125rem;
}

hr {
  border: none;
  border-top: 1px solid var(--pnx-border);
  margin: 2.5rem 0;
}

/* ====================================================
   LAYOUT — CONTAINER
   ==================================================== */

.container,
.pnx-container {
  width: 100%;
  max-width: var(--pnx-container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--pnx-container-pad);
  padding-right: var(--pnx-container-pad);
}

/* ====================================================
   BUTTONS — Corporate
   ==================================================== */

.btn {
  display: inline-block;
  padding: 0.875rem 2.25rem;
  font-family: var(--pnx-font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition:
    background-color var(--pnx-transition),
    color            var(--pnx-transition),
    border-color     var(--pnx-transition);
}

/* Gold — primary CTA */
.btn--gold {
  background-color: var(--pnx-gold);
  color: var(--pnx-white); /* white on dark gold = 4.53:1; hover uses gold-light + deep-blue (7.53:1) */
  border-color: var(--pnx-gold);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background-color: var(--pnx-gold-light);
  border-color: var(--pnx-gold-light);
  color: var(--pnx-deep-blue);
}

/* Outline — on dark backgrounds */
.btn--outline {
  background-color: transparent;
  color: var(--pnx-white);
  border-color: var(--pnx-white);
}

.btn--outline:hover,
.btn--outline:focus-visible {
  background-color: var(--pnx-white);
  color: var(--pnx-deep-blue);
}

/* Navy — on light backgrounds */
.btn--navy {
  background-color: var(--pnx-deep-blue);
  color: var(--pnx-white);
  border-color: var(--pnx-deep-blue);
}

.btn--navy:hover,
.btn--navy:focus-visible {
  background-color: var(--pnx-mid-blue);
  border-color: var(--pnx-mid-blue);
  color: var(--pnx-white);
}

/* ====================================================
   ACCESSIBILITY
   ==================================================== */

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  background-color: var(--pnx-deep-blue);
  color: var(--pnx-white);
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: top 0.15s ease;
}

.skip-to-content:focus {
  top: 1rem;
}

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

/* ====================================================
   SITE HEADER
   ==================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--pnx-white);
  border-bottom: 1px solid var(--pnx-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--pnx-deep-blue);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.site-header__brand:hover {
  color: var(--pnx-mid-blue);
}

.site-header__brand--logo {
  flex-shrink: 0;
}

.site-header__brand--logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.site-header__logo img,
.site-header__brand--logo img {
  height: 60px;
  width: auto;
  max-height: 60px;
  display: block;
}

@media (max-width: 767.98px) {
  .site-header__brand--logo img {
    height: 48px;
    max-height: 48px;
  }
}

/* ====================================================
   PRIMARY NAVIGATION
   ==================================================== */

.pnx-nav {
  position: relative;
  display: flex;
  align-items: center;
}

/* Below 992px, use .site-header (position:sticky) as the dropdown's containing block
   so left:0/right:0 spans the full header width, not just the nav fragment. */
@media (max-width: 991.98px) {
  .pnx-nav {
    position: static;
  }
}

/* Hidden on mobile, shown from md */
.pnx-nav__list {
  display: none;
  gap: 0;
}

.pnx-nav__item {
  position: relative;
}

.pnx-nav__link {
  display: block;
  padding: 0.5rem 1rem;
  /* Deep blue on the white header — WCAG AA contrast (well above #666666). */
  color: var(--pnx-deep-blue);
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color var(--pnx-transition);
}

.pnx-nav__link:hover,
.pnx-nav__link--active {
  color: var(--pnx-mid-blue);
}

.pnx-nav__arrow {
  font-size: 0.5rem;
  margin-left: 0.25rem;
  vertical-align: middle;
}

/* Dropdown */
.pnx-nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--pnx-white);
  border: 1px solid var(--pnx-border);
  min-width: 210px;
  z-index: 200;
  box-shadow: 0 6px 20px rgba(27, 45, 79, 0.1);
}

.pnx-nav__item--has-children:hover .pnx-nav__dropdown,
.pnx-nav__item--has-children:focus-within .pnx-nav__dropdown {
  display: block;
}

.pnx-nav__dropdown .pnx-nav__link {
  padding: 0.625rem 1.25rem;
  border-bottom: 1px solid var(--pnx-border);
  font-size: 0.875rem;
}

.pnx-nav__dropdown li:last-child .pnx-nav__link {
  border-bottom: none;
}

/* Hamburger toggle */
.pnx-nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-shrink: 0;
}

.pnx-nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--pnx-deep-blue);
  transition: all var(--pnx-transition);
}

.pnx-nav__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.pnx-nav__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.pnx-nav__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile open panel — positioned against .site-header (sticky), not .pnx-nav */
.pnx-nav__list--open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--pnx-white);
  border-top: 1px solid var(--pnx-border);
  box-shadow: 0 8px 24px rgba(27, 45, 79, 0.08);
  padding: 0.5rem 0 1rem;
  z-index: 200;
}

.pnx-nav__list--open .pnx-nav__link {
  padding: 0.75rem 1.5rem;
}

@media (min-width: 992px) {
  .pnx-nav__toggle {
    display: none;
  }

  .pnx-nav__list {
    display: flex;
  }

  .pnx-nav__list--open {
    position: static;
    flex-direction: row;
    border-top: none;
    box-shadow: none;
    padding: 0;
    width: auto;
    margin-left: 0;
  }

  .pnx-nav__list--open .pnx-nav__link {
    padding: 0.5rem 1rem;
  }
}

/* ====================================================
   SITE FOOTER
   ==================================================== */

.site-footer {
  background-color: var(--pnx-deep-blue);
  color: var(--pnx-off-white);
  padding: 4rem 0 0;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.site-footer__col-label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pnx-gold);
  margin-bottom: 1.25rem;
}

.site-footer p,
.site-footer address {
  color: rgba(247, 249, 251, 0.75);
  font-size: 0.9375rem;
  font-style: normal;
  line-height: 1.9;
  margin-bottom: 0;
}

.site-footer__address {
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  padding-top: 1rem;
}

.site-footer__address p {
  margin-bottom: 0.25rem;
}

.site-footer a {
  color: rgba(247, 249, 251, 0.75);
  font-size: 0.9375rem;
  transition: color var(--pnx-transition);
}

.site-footer a:hover {
  color: var(--pnx-gold-light);
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer__copyright {
  color: rgba(247, 249, 251, 0.5);
  font-size: 0.875rem;
}

/* ====================================================
   UTILITY SPACING
   ==================================================== */

.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-4 { margin-top: 2rem !important; }
.mt-6 { margin-top: 3rem !important; }
.mt-8 { margin-top: 4rem !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mb-6 { margin-bottom: 3rem !important; }
.mb-8 { margin-bottom: 4rem !important; }

.pt-4  { padding-top: 2rem !important; }
.pt-8  { padding-top: 4rem !important; }
.pt-12 { padding-top: 6rem !important; }

.pb-4  { padding-bottom: 2rem !important; }
.pb-8  { padding-bottom: 4rem !important; }
.pb-12 { padding-bottom: 6rem !important; }

.text-center { text-align: center; }
.text-left   { text-align: left; }

/* ====================================================
   SECTION SYSTEM — pnx-section
   ==================================================== */

.pnx-section {
  padding: var(--pnx-section-pad);
}

.pnx-section--dark {
  background-color: var(--pnx-deep-blue);
  color: var(--pnx-off-white);
}

.pnx-section--dark h1,
.pnx-section--dark h2,
.pnx-section--dark h3,
.pnx-section--dark h4 {
  color: var(--pnx-white);
}

.pnx-section--dark p {
  color: rgba(247, 249, 251, 0.85);
}

.pnx-section--white {
  background-color: var(--pnx-white);
}

.pnx-section--light {
  background-color: var(--pnx-off-white);
}

/* Inner-page hero block */
.pnx-page-hero {
  padding: 5rem 0 4rem;
}

.pnx-page-hero h1 {
  color: var(--pnx-white);
  margin-bottom: 1.5rem;
}

.pnx-page-hero .pnx-btn {
  margin-top: 0.5rem;
}

@media (max-width: 767.98px) {
  .pnx-page-hero {
    padding: 3rem 0 2.5rem;
  }
}

/* ============================================================
   CAPABILITIES GRID
   ============================================================ */

.pnx-capabilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

.pnx-capability-card {
  background: var(--pnx-white);
  border: 1px solid var(--pnx-border);
  border-top: 4px solid var(--pnx-mid-blue);
  border-radius: 3px;
  padding: 2rem;
}

.pnx-capability-card h3 {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  margin-bottom: 1rem;
  color: var(--pnx-deep-blue);
}

.pnx-capability-card p {
  color: var(--pnx-dark-grey);
  font-size: 0.9375rem;
  line-height: 1.75;
}

/* ============================================================
   CTA STRIP
   ============================================================ */

.pnx-cta-strip { text-align: center; }

.pnx-cta-strip h2 {
  margin-bottom: 1.75rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.pnx-cta-strip p {
  font-size: 1.0625rem;
  color: var(--pnx-off-white);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   CONTACT PAGE — Hero header
   ============================================================ */

.pnx-contact-hero {
  padding: 4rem 0;
}

.pnx-contact-hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--pnx-white);
  margin: 0;
}

/* ============================================================
   CONTACT PAGE — Body grid (form + details sidebar)
   ============================================================ */

.pnx-contact-body__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .pnx-contact-body__grid {
    grid-template-columns: 1fr 360px;
    gap: 4rem;
    align-items: start;
  }
}

/* ============================================================
   CONTACT PAGE — Enquiry form wrapper
   ============================================================ */

.pnx-contact-form-wrap__heading {
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  color: var(--pnx-deep-blue);
  margin-bottom: 1.75rem;
}

/* ============================================================
   FORM COMPONENTS
   ============================================================ */

.pnx-form__group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.25rem;
}

.pnx-form__label {
  font-family: var(--pnx-font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--pnx-deep-blue);
  margin-bottom: 0.375rem;
}

.pnx-form__required {
  color: #c0392b;
  margin-left: 0.2em;
}

.pnx-form__input,
.pnx-form__textarea {
  font-family: var(--pnx-font-body);
  font-size: 1rem;
  color: var(--pnx-dark-grey);
  background: var(--pnx-white);
  border: 1.5px solid var(--pnx-light-grey);
  border-radius: 3px;
  padding: 0.625rem 0.875rem;
  transition: border-color var(--pnx-transition), box-shadow var(--pnx-transition);
  width: 100%;
}

.pnx-form__input:focus,
.pnx-form__textarea:focus {
  outline: 3px solid var(--pnx-mid-blue);
  outline-offset: 2px;
  border-color: var(--pnx-mid-blue);
  box-shadow: 0 0 0 3px rgba(44, 95, 165, 0.2);
}

/* High-contrast focus ring for keyboard users (WCAG 2.1 AA 1.4.11) */
.pnx-form__input:focus-visible,
.pnx-form__textarea:focus-visible {
  outline: 3px solid var(--pnx-mid-blue);
  outline-offset: 2px;
}

.pnx-form__textarea {
  resize: vertical;
  min-height: 9rem;
}

.pnx-form__required-note {
  font-size: 0.875rem;
  color: var(--pnx-mid-grey);
  margin-bottom: 1.5rem;
}

.pnx-form__actions {
  display: flex;
}

/* Submit button focus ring */
.pnx-btn:focus,
.pnx-btn:focus-visible {
  outline: 3px solid var(--pnx-mid-blue);
  outline-offset: 2px;
}

/* ============================================================
   CONTACT PAGE — Details sidebar
   ============================================================ */

.pnx-contact-details {
  background: var(--pnx-off-white);
  border: 1px solid var(--pnx-border);
  border-radius: 4px;
  padding: 2rem;
}

.pnx-contact-details__heading {
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  color: var(--pnx-deep-blue);
  margin-bottom: 1.5rem;
}

.pnx-contact-details__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.pnx-contact-details__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.pnx-contact-details__term {
  font-family: var(--pnx-font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--pnx-mid-grey);
}

.pnx-contact-details__value {
  font-size: 1rem;
  color: var(--pnx-dark-grey);
}

.pnx-contact-details__link {
  color: var(--pnx-mid-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.pnx-contact-details__link:hover {
  color: var(--pnx-deep-blue);
}

.pnx-contact-details__link:focus-visible {
  outline: 3px solid var(--pnx-mid-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.pnx-contact-details__address {
  font-style: normal;
  line-height: 1.6;
}

/* ============================================================
   CONTACT PAGE — Map placeholder
   ============================================================ */

.pnx-contact-map {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--pnx-light-grey);
  border-radius: 4px;
  overflow: hidden;
}

/* Map iframe (when added) fills the container */
.pnx-contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ============================================================
   LEGAL PAGES
   ============================================================ */

.legal-page__header {
  border-bottom: 3px solid var(--pnx-gold);
  padding-bottom: 2rem;
  margin-bottom: 3rem;
}

.legal-page__title {
  color: var(--pnx-deep-blue);
}

.legal-page__meta {
  color: var(--pnx-mid-grey);
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

.legal-page__prose {
  max-width: 780px;
}

.legal-page__section {
  margin-bottom: 2.75rem;
}

.legal-page__section h2 {
  color: var(--pnx-deep-blue);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  border-bottom: 1px solid var(--pnx-border);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.legal-page__prose ul,
.legal-page__prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.legal-page__prose li {
  margin-bottom: 0.5rem;
  line-height: var(--pnx-line-height);
}

.legal-page__prose a {
  color: var(--pnx-mid-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page__prose a:hover {
  color: var(--pnx-deep-blue);
}

.legal-page__contact-block {
  background: var(--pnx-off-white);
  border-left: 4px solid var(--pnx-gold);
  padding: 1.5rem 2rem;
  margin-top: 1.5rem;
  border-radius: 3px;
}

.legal-page__contact-block p {
  margin-bottom: 0.5rem;
}

.legal-page__contact-block p:last-child {
  margin-bottom: 0;
}

/* ====================================================
   BUTTONS — pnx-btn (primary CTA used across templates)
   ==================================================== */

.pnx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 2rem;
  font-family: var(--pnx-font);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 3px;
  transition:
    background-color var(--pnx-transition),
    border-color     var(--pnx-transition),
    color            var(--pnx-transition);
}

.pnx-btn--primary {
  background-color: var(--pnx-gold);
  color: var(--pnx-white); /* white on dark gold = 4.53:1; hover uses gold-light + deep-blue (7.53:1) */
  border-color: var(--pnx-gold);
}

.pnx-btn--primary:hover,
.pnx-btn--primary:focus-visible {
  background-color: var(--pnx-gold-light);
  border-color: var(--pnx-gold-light);
  color: var(--pnx-deep-blue);
}

/* ====================================================
   HEADER CTA — inline on desktop, floating on mobile
   ==================================================== */

.pnx-header-cta {
  flex-shrink: 0;
}

@media (min-width: 992px) {
  .pnx-header-cta {
    margin-left: 1rem;
  }
}

/* Below 992px the CTA moves into a slim full-width bottom bar.
   Full-width means it never overlaps page text; footer padding
   keeps the bar from covering footer links. */
@media (max-width: 991.98px) {
  .pnx-header-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.02em;
    z-index: 300;
    box-shadow: 0 -2px 12px rgba(27, 45, 79, 0.18);
  }

  /* Reserve space so footer content is not hidden behind the bar */
  .site-footer {
    padding-bottom: 4.5rem;
  }
}

/* ====================================================
   BREADCRUMBS
   ==================================================== */

.pnx-breadcrumb {
  background-color: var(--pnx-off-white);
  border-bottom: 1px solid var(--pnx-border);
}

.pnx-breadcrumb__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  padding: 0.875rem 0;
  font-size: 0.875rem;
}

.pnx-breadcrumb__item {
  display: flex;
  align-items: center;
  color: var(--pnx-text-light);
}

/* Decorative separator drawn with CSS so it is not announced to screen readers. */
.pnx-breadcrumb__item + .pnx-breadcrumb__item::before {
  content: "\203A";
  margin-right: 0.5rem;
  color: var(--pnx-text-light);
}

.pnx-breadcrumb__link {
  display: inline-flex;
  align-items: center;
  color: var(--pnx-mid-blue);
}

.pnx-breadcrumb__link:hover,
.pnx-breadcrumb__link:focus-visible {
  color: var(--pnx-deep-blue);
  text-decoration: underline;
}

.pnx-breadcrumb__item--current {
  color: var(--pnx-text);
  font-weight: 600;
}

/* ====================================================
   FORM VALIDATION — text error messages (not colour alone)
   ==================================================== */

.pnx-form__error {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  margin-top: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #b02a1a;
}

.pnx-form__error[hidden] {
  display: none;
}

/* Decorative warning glyph reinforces the visible text message. */
.pnx-form__error::before {
  content: "\26A0";
  line-height: 1.4;
}

.pnx-form__input--invalid,
.pnx-form__input--invalid:focus {
  border-color: #b02a1a;
  box-shadow: 0 0 0 3px rgba(176, 42, 26, 0.15);
}

/* ====================================================
   TOUCH TARGETS — minimum 44x44px on mobile
   ==================================================== */

@media (max-width: 991.98px) {
  .pnx-nav__link {
    display: flex;
    align-items: center;
    min-height: 44px;
  }

  .pnx-nav__toggle {
    width: 44px;
    height: 44px;
  }

  .pnx-btn,
  .pnx-header-cta {
    min-height: 44px;
  }

  .pnx-form__input,
  .pnx-form__textarea {
    min-height: 44px;
  }

  .pnx-breadcrumb__link {
    min-height: 44px;
  }

  .site-footer__links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}
