:root {
  --portara-navy: #10243b;
  --portara-navy-dark: #0a192b;
  --portara-orange: #f36c3d;
  --portara-paper: #f4f6f5;
  --portara-white: #fff;
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

a,
button,
input,
select,
textarea {
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

:where(a, button, input, select, textarea):focus-visible {
  outline: 3px solid var(--portara-orange);
  outline-offset: 3px;
}

.wp-site-blocks {
  overflow-x: clip;
}

.portara-site-header {
  background: var(--portara-white);
  padding: 18px 24px;
  position: relative;
  z-index: 20;
}

.portara-header-inner {
  align-items: center;
  display: flex;
  gap: clamp(1rem, 2vw, 2.5rem);
  margin: 0 auto;
  max-width: 1200px;
}

.portara-logo {
  display: inline-flex;
  flex: 0 0 auto;
}

.portara-logo img,
.portara-footer-logo {
  display: block;
  height: auto;
}

.portara-primary-navigation {
  flex: 1 1 auto;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.portara-primary-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.portara-primary-navigation > ul {
  align-items: center;
  display: flex;
  gap: clamp(0.8rem, 1.5vw, 1.5rem);
  justify-content: center;
}

.portara-primary-navigation a {
  color: inherit;
  text-decoration: none;
}

.portara-menu-item-row {
  align-items: center;
  display: flex;
}

.portara-menu-toggle,
.portara-submenu-toggle {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.portara-menu-toggle {
  display: none;
  font-size: 1.5rem;
}

.portara-submenu-toggle {
  line-height: 1;
  padding: 0.45rem;
}

.portara-submenu {
  background: var(--portara-white);
  border-top: 3px solid var(--portara-orange);
  box-shadow: 0 16px 35px rgb(10 25 43 / 14%);
  left: 0;
  min-width: 250px;
  opacity: 0;
  padding: 0.5rem 0 !important;
  pointer-events: none;
  position: absolute;
  top: 100%;
  transform: translateY(0.5rem);
  visibility: hidden;
}

.portara-menu-item-has-children {
  position: relative;
}

.portara-primary-navigation:not(.portara-navigation--enhanced) .portara-menu-item-has-children:hover > .portara-submenu,
.portara-primary-navigation:not(.portara-navigation--enhanced) .portara-menu-item-has-children:focus-within > .portara-submenu,
.portara-menu-item-has-children.is-open > .portara-submenu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.portara-submenu a {
  display: block;
  padding: 0.65rem 1rem;
}

.portara-language-switcher {
  flex: 0 0 auto;
  min-height: 42px;
  position: relative;
  width: 150px;
}

.portara-language-switcher ul {
  background: var(--portara-white);
  box-shadow: 0 12px 28px rgb(10 25 43 / 14%);
  list-style: none;
  margin: 0;
  min-width: 150px;
  padding: 0.35rem;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.portara-language-switcher li:not(.is-current) {
  display: none;
}

.portara-language-switcher:hover li,
.portara-language-switcher:focus-within li {
  display: block;
}

.portara-language-switcher a,
.portara-language-current,
.portara-language-fallback {
  align-items: center;
  color: inherit;
  display: flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.45rem;
  padding: 0.4rem 0.5rem;
  text-decoration: none;
  white-space: nowrap;
}

.portara-language-switcher img {
  border: 1px solid rgb(10 25 43 / 20%);
}

.portara-site-footer a {
  color: inherit;
}

.portara-site-footer {
  background: var(--portara-navy-dark);
  color: var(--portara-white);
  padding: 64px 24px 32px;
}

.portara-footer-columns,
.portara-footer-bottom {
  margin: 0 auto;
  max-width: 1200px;
}

.portara-footer-columns {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.125fr 1fr 1fr;
}

.portara-social-icons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.portara-social-icons span {
  align-items: center;
  border: 1px solid rgb(255 255 255 / 32%);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.portara-social-icons img {
  display: block;
}

.portara-footer-bottom {
  align-items: center;
  border-top: 1px solid rgb(255 255 255 / 18%);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 1.5rem;
}

.portara-kicker,
.portara-eyebrow {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portara-hero .wp-block-cover__background {
  background: linear-gradient(90deg, rgb(10 25 43 / 96%) 0%, rgb(10 25 43 / 82%) 48%, rgb(10 25 43 / 34%) 100%) !important;
  opacity: 1 !important;
}

.portara-hero .wp-block-cover__inner-container {
  padding: 72px 24px;
}

.portara-hero h1 {
  margin-bottom: 1.25rem;
}

.portara-hero .wp-block-buttons {
  margin-top: 2rem;
}

.portara-trust-strip {
  border-bottom: 1px solid #dce2e7;
}

.portara-trust-grid {
  margin-bottom: 0;
}

.portara-trust-grid > .wp-block-column {
  border-right: 1px solid #dce2e7;
  padding: 32px clamp(20px, 3vw, 52px);
}

.portara-trust-grid > .wp-block-column:last-child {
  border-right: 0;
}

.portara-trust-item {
  gap: 1.25rem;
}

.portara-trust-item h3 {
  font-size: 1.1875rem;
  margin: 0 0 0.25rem;
}

.portara-trust-item p:not(.portara-trust-number) {
  color: #637387;
  font-size: 0.875rem;
  margin: 0;
}

.portara-trust-number {
  align-items: center;
  background: #fff0ea;
  border-radius: 50%;
  color: var(--portara-orange);
  display: inline-flex;
  flex: 0 0 54px;
  font-size: 1.1rem;
  font-weight: 800;
  height: 54px;
  justify-content: center;
  margin: 0;
}

.portara-section h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-top: 0.5rem;
}

.portara-power-intro {
  margin: 2rem 0;
}

.portara-power-pills {
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.portara-power-pills p {
  background: var(--portara-white);
  border: 1px solid #dce2e7;
  margin: 0;
  padding: 0.75rem 1rem;
}

.portara-power-pills strong {
  background: var(--portara-navy);
  color: var(--portara-white);
  display: inline-block;
  margin-right: 0.5rem;
  min-width: 2rem;
  padding: 0.25rem;
  text-align: center;
}

.portara-product-card,
.portara-application-grid > .wp-block-column,
.portara-support-grid > .wp-block-column {
  border: 1px solid #dce2e7;
  padding: 1.5rem;
}

.portara-application-grid > .wp-block-column {
  border-top: 4px solid var(--portara-orange);
  min-height: 190px;
}

.portara-support-grid > .wp-block-column {
  background: var(--portara-white);
}

.portara-feature-list {
  font-size: 1.1rem;
  line-height: 2.2;
}

.portara-feature-list li::marker {
  color: var(--portara-orange);
}

.portara-video-card {
  align-items: center;
  background-image: linear-gradient(135deg, #173554, #0a192b);
  display: flex;
  justify-content: center;
  min-height: 250px;
  padding: 2rem;
  text-align: center;
}

.portara-product-card {
  height: 100%;
}

.portara-archive,
.portara-product-detail,
.portara-page-content {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
  padding: 72px 24px 96px;
}

.portara-page-shell {
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

.portara-archive-description,
.portara-product-excerpt,
.portara-not-found-copy {
  font-size: 1.15rem;
}

.portara-product-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
}

.portara-product-card {
  background: var(--portara-paper);
}

.portara-product-image {
  display: block;
}

.portara-product-image img {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  object-fit: contain;
  width: 100%;
}

.portara-pagination {
  margin-top: 2rem;
  text-align: center;
}

.portara-product-hero {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 2rem;
}

.portara-inquiry-cta {
  align-items: center;
  background: var(--portara-navy);
  color: var(--portara-white);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 4rem;
  padding: 3rem;
}

.portara-product-featured-image {
  background: var(--portara-paper);
  padding: 1.5rem;
}

.portara-product-featured-image img {
  display: block;
  height: auto;
  width: 100%;
}

.portara-product-detail .wp-block-post-featured-image {
  background: var(--portara-paper);
  padding: 1.5rem;
}

.portara-product-content table th {
  color: var(--portara-navy);
  text-align: left;
  width: 35%;
}

.portara-breadcrumb {
  color: #637387;
  font-size: 0.875rem;
}

.portara-inquiry-cta {
  gap: 2rem;
}

.portara-office-grid {
  margin: 3rem 0;
}

.portara-office-grid > .wp-block-column,
.portara-inquiry-form {
  border: 1px solid #dce2e7;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.portara-inquiry-form .ff-el-group {
  margin-bottom: 1.25rem;
}

.portara-inquiry-form label {
  color: var(--portara-navy);
  display: inline-block;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.portara-inquiry-form :where(input:not([type="checkbox"]), select, textarea) {
  background: var(--portara-white);
  border: 1px solid #aeb9c4;
  border-radius: 2px;
  box-sizing: border-box;
  color: var(--portara-navy-dark);
  font: inherit;
  padding: 0.8rem 0.9rem;
  width: 100%;
}

.portara-inquiry-form .ff-btn-submit {
  background: var(--portara-orange);
  border: 0;
  border-radius: 2px;
  color: var(--portara-white);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0.9rem 1.4rem;
}

.portara-inquiry-form .error,
.portara-inquiry-form .text-danger {
  color: #a32020;
  font-weight: 700;
}

.portara-play-button {
  align-items: center;
  background: var(--portara-orange);
  border-radius: 50%;
  display: inline-flex;
  height: 64px;
  justify-content: center;
  margin: 0 auto 1rem;
  width: 64px;
}

@media (max-width: 900px) {
  .portara-header-inner {
    flex-wrap: wrap;
    justify-content: space-between !important;
  }

  .portara-logo img {
    width: 170px;
  }

  .portara-menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .portara-primary-navigation {
    flex-basis: 100%;
    order: 4;
  }

  .portara-primary-navigation > ul {
    align-items: stretch;
    flex-direction: column;
  }

  .portara-navigation--enhanced > ul {
    display: none;
  }

  .portara-navigation--enhanced.is-open > ul {
    display: flex;
  }

  .portara-menu-item-row {
    justify-content: space-between;
  }

  .portara-submenu {
    border-top-width: 1px;
    box-shadow: none;
    margin: 0.5rem 0 0 1rem !important;
    min-width: 0;
    opacity: 1;
    pointer-events: auto;
    position: static;
    transform: none;
    visibility: visible;
  }

  .portara-navigation--enhanced .portara-submenu {
    display: none;
  }

  .portara-navigation--enhanced .is-open > .portara-submenu {
    display: block;
  }

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

  .portara-trust-grid > .wp-block-column {
    border-bottom: 1px solid #dce2e7;
    border-right: 0;
  }
}

@media (max-width: 520px) {
  .portara-hero .wp-block-cover__inner-container,
  .portara-section,
  .portara-site-footer {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .portara-hero {
    min-height: 560px !important;
  }

  .portara-trust-item {
    align-items: flex-start !important;
  }

  .portara-inquiry-cta {
    padding: 28px !important;
  }

  .portara-product-grid,
  .portara-product-hero,
  .portara-footer-columns {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
