/* AMAXA brand tokens from Figma design reference. */
:root {
  --navy: #043673;
  --ink: #092351;
  --text: #47576e;
  --light: #f6f9fc;
  --blue: #ebf2fa;
  --line: #d9e6f4;
  --container: 1200px;
  --amaxa-page-gutter: 24px;
  --radius: 20px;
  --space: clamp(48px, 6vw, 88px);
}

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

body,
.editor-styles-wrapper {
  margin: 0;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  background: #fff;
}

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

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 2 * var(--amaxa-page-gutter)));
  margin-inline: auto;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(36px, 4vw, 62px);
}

h2 {
  font-size: clamp(28px, 2.5vw, 38px);
  margin: 0 0 20px;
}

h3 {
  font-size: 20px;
}

p {
  margin: 0 0 16px;
}

.section-space {
  padding-block: var(--space);
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 13px 23px;
  background: var(--navy);
  color: white;
  border-radius: 4px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  transition:
    background 0.25s,
    transform 0.25s;
}

.button:hover {
  background: #102b58;
  transform: translateY(-2px);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #558bd5;
  outline-offset: 5px;
}

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

.brand img {
  width: 145px;
  display: block;
}

.brand-placeholder {
  display: block;
  border: 2px solid var(--navy);
  padding: 0 8px;
  color: var(--navy);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.3;
  text-decoration: none;
  font-size: 26px;
}

.nav-list,
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 26px;
  align-items: center;
}

.nav-list > li {
  position: relative;
}

.nav-list a {
  text-decoration: none;
  font-size: 11px;
  text-transform: uppercase;
  color: var(--ink);
}

.nav-list a:hover {
  text-decoration: underline;
}

.nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 190px;
  list-style: none;
  padding: 16px;
  box-shadow: 0 8px 30px #102b581a;
  display: none;
  z-index: 10;
}

.nav-list li:hover > .sub-menu,
.nav-list li:focus-within > .sub-menu {
  display: block;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: white;
  padding: 8px 12px;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  cursor: pointer;
}

.site-footer {
  background: var(--navy);
  color: white;
  padding-block: 30px;
  margin-top: 48px;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  justify-content: space-between;
}

.footer-brand {
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.footer-links {
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a,
.footer-meta {
  font-size: 10px;
  text-decoration: none;
}

.footer-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: white;
  padding: 12px;
  z-index: 100;
}

.skip-link:focus {
  top: 12px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.article-page {
  max-width: 880px;
}

.article-page h1 {
  font-size: clamp(32px, 4vw, 52px);
}

.article-page > article > img {
  width: 100%;
  border-radius: var(--radius);
  margin: 24px 0;
}

.article-content {
  margin-top: 32px;
}

@media (max-width: 980px) {
  .nav-list {
    gap: 16px;
  }
  .footer-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  :root {
    --amaxa-page-gutter: 16px;
  }
  .container {
    width: calc(100% - 2 * var(--amaxa-page-gutter));
  }
  .header-inner {
    min-height: 72px;
    flex-wrap: wrap;
    gap: 0;
  }
  .brand-placeholder {
    font-size: 22px;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .primary-navigation {
    width: 100%;
    padding: 20px 0;
  }
  .has-menu-js .primary-navigation {
    display: none;
  }
  .has-menu-js .primary-navigation.is-open {
    display: block;
  }
  .nav-list {
    display: block;
  }
  .nav-list > li {
    padding: 9px 0;
  }
  .nav-list .sub-menu {
    display: block;
    position: static;
    box-shadow: none;
    padding: 8px 16px;
  }
  .footer-inner {
    align-items: flex-start;
    gap: 22px;
  }
  .footer-links {
    gap: 12px;
  }
  .footer-meta {
    width: 100%;
  }
  .archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  html.has-reveal [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* Polished brand interactions */
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--navy);
  border-radius: 7px;
  transition:
    color 0.35s ease,
    border-color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #092351;
  transform: translateX(-102%);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: -1;
}

.button span {
  display: inline-block;
  transition: transform 0.35s ease;
}

@media (hover: hover) {
  .button:hover {
    background: var(--navy);
    transform: translateY(-3px);
    box-shadow: 0 12px 26px #04367324;
  }
  .button:hover::before {
    transform: translateX(0);
  }
  .button:hover span {
    transform: translate(3px, -3px);
  }
}

.button:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .button::before,
  .button span {
    transition: none !important;
  }
}

/* Navigation: animated underline, consistent in header and footer */
.nav-list a,
.footer-links a,
.footer-meta a {
  position: relative;
  display: inline-block;
  text-decoration: none;
  transition: color 250ms ease;
}

.nav-list a::after,
.footer-links a::after,
.footer-meta a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.footer-links a::after,
.footer-meta a::after {
  height: 1px;
}

@media (hover: hover) {
  .nav-list a:hover,
  .nav-list .current-menu-item > a {
    color: #336eac;
  }

  .footer-links a:hover,
  .footer-meta a:hover {
    color: #c9e0ff;
  }

  .nav-list a:hover::after,
  .nav-list a:focus-visible::after,
  .nav-list .current-menu-item > a::after,
  .footer-links a:hover::after,
  .footer-links a:focus-visible::after,
  .footer-meta a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nav-list a,
  .footer-links a,
  .footer-meta a,
  .nav-list a::after,
  .footer-links a::after,
  .footer-meta a::after {
    transition: none;
  }
}

/* Keep only the animated pseudo-element underline in header and footer. */
.nav-list a,
.nav-list a:hover,
.nav-list a:focus,
.footer-links a,
.footer-links a:hover,
.footer-links a:focus,
.footer-meta a,
.footer-meta a:hover,
.footer-meta a:focus {
  text-decoration: none !important;
  border-bottom: 0 !important;
  background-image: none;
}

/* Navigation typography — desktop and mobile, including submenu items. */
.nav-list a,
.nav-list .sub-menu a {
  font-size: 16px;
  font-weight: 500;
  color: #47576e;
  text-transform: none;
}

.footer-links a,
.footer-meta a {
  font-size: 16px;
  font-weight: 400;
  color: #c2cfe0;
  text-transform: none;
}

/* Navigation: uppercase labels in both header and footer. */
.nav-list a,
.nav-list .sub-menu a,
.footer-links a,
.footer-meta a {
  text-transform: uppercase;
}

/* ========================================================
   AMAXA — Contact Form 7: Career / Contact / Safety
   Forms are scoped to .amaxa-cf7; no global CF7 overrides.
   ======================================================== */
.amaxa-cf7 {
  --form-heading: #092351;
  --form-border: #c7d6e8;
  --form-border-active: #c9def6;
  --form-button: #092351;
  width: 100%;
  padding: 45px 0 50px;
  box-sizing: border-box;
}
.amaxa-cf7--career {
  background: #f6f9fc;
}
.amaxa-cf7--contact,
.amaxa-cf7--safety {
  background: #fff;
}
.amaxa-cf7__inner {
  width: min(calc(100% - 48px), 1200px);
  margin-inline: auto;
}
.amaxa-cf7__title {
  margin: 0 0 28px;
  color: var(--form-heading);
  font-family: Inter, sans-serif;
  font-size: clamp(26px, 2.4vw, 38px);
  font-weight: 600;
  line-height: 1.2;
}
.amaxa-cf7__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 30px;
  row-gap: 18px;
}
.amaxa-cf7__field {
  position: relative;
  min-width: 0;
}
.amaxa-cf7__field .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.amaxa-cf7 input:not([type="submit"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.amaxa-cf7 select,
.amaxa-cf7 textarea {
  display: block;
  width: 100%;
  height: 55px;
  min-height: 55px;
  padding: 0 18px;
  margin: 0;
  box-sizing: border-box;
  border: 1px solid var(--form-border);
  border-radius: 4px;
  outline: none;
  background: #fff;
  box-shadow: none;
  color: #092351;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  transition: border-color 0.25s ease;
}
.amaxa-cf7 textarea {
  resize: vertical;
  padding-top: 18px;
  padding-bottom: 12px;
  overflow: auto;
}
.amaxa-cf7 input::placeholder,
.amaxa-cf7 textarea::placeholder {
  color: #092351;
  font-size: 11px;
  font-weight: 600;
  opacity: 1;
}
.amaxa-cf7 input:not([type="submit"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.amaxa-cf7 input:not([type="submit"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):active,
.amaxa-cf7 select:focus,
.amaxa-cf7 select:active,
.amaxa-cf7 textarea:focus,
.amaxa-cf7 textarea:active {
  border-color: var(--form-border-active);
}
.amaxa-cf7__field--upload:focus-within,
.amaxa-cf7__field--upload:active {
  border-color: var(--form-border-active);
}
.amaxa-cf7__field--upload {
  min-height: 55px;
  box-sizing: border-box;
  border: 1px solid var(--form-border);
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  padding: 8px 18px;
  gap: 12px;
}
.amaxa-cf7__upload-label {
  color: #092351;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.amaxa-cf7__field--upload input[type="file"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  color: #47576e;
  font-size: 11px;
}
.amaxa-cf7__field--upload input[type="file"]::file-selector-button {
  border: 0;
  border-radius: 3px;
  background: #ebf2fa;
  color: #092351;
  padding: 8px 10px;
  margin-right: 10px;
  cursor: pointer;
  font: inherit;
}
.amaxa-cf7__actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}
.amaxa-cf7__actions > p {
  position: relative;
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.amaxa-cf7__actions br {
  display: none;
}
.amaxa-cf7 .amaxa-cf7__actions .wpcf7-spinner {
  position: absolute;
  inset-inline-end: 192px;
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.amaxa-cf7__actions input[type="submit"] {
  display: block;
  margin-inline-start: auto;
  margin-inline-end: 0;
}
.amaxa-cf7 input[type="submit"] {
  min-width: 180px;
  height: 54px;
  padding: 0 30px;
  box-sizing: border-box;
  border: 1px solid var(--form-button);
  border-radius: 4px;
  background: var(--form-button);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}
.amaxa-cf7 input[type="submit"]:hover:not(:disabled),
.amaxa-cf7 input[type="submit"]:focus-visible {
  background: transparent;
  border-color: #092351;
  color: #092351;
}
.amaxa-cf7 input[type="submit"]:active:not(:disabled) {
  transform: scale(0.98);
}
.amaxa-cf7 input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.amaxa-cf7 .wpcf7-spinner {
  margin: 0 12px;
}
.amaxa-cf7 .wpcf7-form-control.wpcf7-not-valid {
  border-color: #c94b4b;
}
.amaxa-cf7 .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  color: #c94b4b;
  font-size: 12px;
  font-weight: 400;
}
.amaxa-cf7 .wpcf7-response-output {
  margin: 20px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
}
/* CF7 auto paragraph formatting should not alter grid spacing. */
.amaxa-cf7 .amaxa-cf7__field > p,
.amaxa-cf7 .amaxa-cf7__actions > p {
  margin: 0;
}
@media (max-width: 1024px) {
  .amaxa-cf7__grid {
    column-gap: 20px;
    row-gap: 15px;
  }
}
@media (max-width: 768px) {
  .amaxa-cf7 {
    padding: 35px 0 40px;
  }
  .amaxa-cf7__inner {
    width: min(calc(100% - 32px), 1200px);
  }
  .amaxa-cf7__title {
    font-size: 26px;
    margin-bottom: 24px;
  }
  .amaxa-cf7__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .amaxa-cf7 input:not([type="submit"]):not([type="file"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .amaxa-cf7 select,
  .amaxa-cf7 textarea {
    height: 52px;
    min-height: 52px;
  }
  .amaxa-cf7__actions {
    margin-top: 24px;
  }
  .amaxa-cf7 input[type="submit"] {
    width: 100%;
  }
  .amaxa-cf7 .amaxa-cf7__actions .wpcf7-spinner {
    inset-inline-start: 12px;
    inset-inline-end: auto;
  }
}

/* Required form controls, accessible labels and privacy acknowledgement. */
.amaxa-cf7__label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.amaxa-cf7__field br {
  display: none;
}
.amaxa-cf7__field--full {
  grid-column: 1 / -1;
}
.amaxa-cf7__field--full textarea {
  height: 120px;
  min-height: 120px;
}
.amaxa-cf7 select {
  appearance: none;
  padding-right: 42px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23092351' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  text-overflow: ellipsis;
}
.amaxa-cf7--career .amaxa-cf7__field--upload {
  align-self: start;
  height: 55px;
}
.amaxa-cf7__field--upload .wpcf7-form-control-wrap {
  flex: 1;
  min-width: 0;
}
.amaxa-cf7__field--upload > p {
  display: contents;
}
.amaxa-cf7__consent {
  margin-top: 24px;
  color: var(--form-heading);
  font-size: 13px;
  line-height: 1.6;
}
.amaxa-cf7__consent p {
  margin: 0;
}
.amaxa-cf7__consent .wpcf7-list-item {
  display: block;
  margin: 0;
}
.amaxa-cf7__consent label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.amaxa-cf7__consent input[type="checkbox"] {
  appearance: none;
  display: grid;
  place-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  min-height: 0;
  padding: 0;
  margin: 1px 0 0;
  border: 1px solid var(--form-border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.amaxa-cf7__consent input[type="checkbox"]::before {
  content: "";
  width: 11px;
  height: 8px;
  background: #fff;
  clip-path: polygon(0 42%, 15% 25%, 38% 65%, 85% 0, 100% 15%, 38% 100%);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.amaxa-cf7__consent input[type="checkbox"]:checked {
  border-color: #043673;
  background: #043673;
}
.amaxa-cf7__consent input[type="checkbox"]:checked::before {
  opacity: 1;
  transform: scale(1);
}
.amaxa-cf7__consent input[type="checkbox"]:focus-visible {
  outline: 2px solid #043673;
  outline-offset: 3px;
}
.amaxa-cf7__consent a {
  color: #043673;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.amaxa-cf7__consent a:hover {
  text-decoration-thickness: 2px;
}
@media (max-width: 768px) {
  .amaxa-cf7--career .amaxa-cf7__field--upload {
    height: 52px;
    min-height: 52px;
  }
  .amaxa-cf7__field--full textarea {
    height: 120px;
    min-height: 120px;
  }
  .amaxa-cf7__consent {
    margin-top: 20px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .amaxa-cf7__consent input[type="checkbox"],
  .amaxa-cf7__consent input[type="checkbox"]::before {
    transition: none;
  }
}

/* Footer legal links — compact, sentence case, with separators as in the reference. */
.site-footer .footer-meta {
  align-items: center;
  gap: 6px;
  color: #c2cfe0;
  font-size: 11px;
  line-height: 1.5;
}
.site-footer .footer-meta a {
  font-size: 11px;
  font-weight: 400;
  text-transform: none;
  white-space: nowrap;
}
.site-footer .footer-meta__copyright {
  white-space: nowrap;
}
.site-footer .footer-meta__separator {
  opacity: 0.75;
}

/* Local SVG social icons, placed before footer navigation. */
.footer-social {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  transition: background-color 0.25s ease;
}
.footer-social img {
  display: block;
  max-width: none;
  filter: brightness(0) invert(1);
  transition: transform 0.25s ease;
}
@media (hover: hover) {
  .footer-social a:hover {
    background: #ffffff14;
  }
  .footer-social a:hover img {
    transform: translateY(-2px) scale(1.05);
  }
}
.footer-social a:focus-visible {
  outline: 2px solid #c9def6;
  outline-offset: 2px;
  background: #ffffff14;
}
.footer-social a:active img {
  transform: scale(0.96);
}
@media (prefers-reduced-motion: reduce) {
  .footer-social a,
  .footer-social img {
    transition: none !important;
  }
  .footer-social a img {
    transform: none !important;
  }
}

