/*
Theme Name: Phoenix Digital
Theme URI: https://dev.martincroft.co.uk/
Author: Codex
Description: A lightweight custom WordPress theme for Phoenix Digital Systems.
Version: 1.4.14
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.1
Text Domain: phoenix-digital
*/

:root {
  --pds-ink: #243235;
  --pds-muted: #52666a;
  --pds-line: #cdd9d5;
  --pds-panel: #DDE7E1;
  --pds-white: #fff;
  --pds-cream: #F5F0E6;
  --pds-sage: #DDE7E1;
  --pds-teal: #164E52;
  --pds-teal-dark: #10383B;
  --pds-shadow: 0 18px 45px rgba(16, 56, 59, .12);
  --pds-radius: 16px;
  --pds-radius-sm: 10px;
  --pds-radius-lg: 24px;
  --pds-max: 1180px;
}

* {
  box-sizing: border-box;
}

/*
 * This is a classic theme with no theme.json, so WordPress core always
 * re-wraps every Group block's rendered content in an extra
 * `.wp-block-group__inner-container` div for pre-5.8 style compatibility
 * (see wp_restore_group_inner_container() in wp-includes/block-supports/
 * layout.php). That extra level breaks any CSS grid/flex layout (and any
 * `gap`) that expects the Group's children directly, e.g. `.pds-card-grid`
 * and `.pds-manufacturer-list`/`.pds-manufacturer-item`. Since the wrapper
 * carries no styling of its own, making it `display: contents` removes it
 * from layout entirely so its children act as direct children of the
 * Group block wrapper again, exactly as authored.
 */
.wp-block-group > .wp-block-group__inner-container {
  display: contents;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--pds-ink);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  background: var(--pds-white);
}

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

a {
  color: var(--pds-teal);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

a:hover {
  color: var(--pds-teal-dark);
}

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

:focus-visible {
  outline: 3px solid var(--pds-teal);
  outline-offset: 3px;
}

/* Dark, teal-filled backgrounds need a light outline to stay visible */
.hero :focus-visible,
.page-hero--overlay :focus-visible,
.band--dark :focus-visible,
.band--ink :focus-visible,
.cta-band :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--pds-cream);
}

.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;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 240, 230, .97);
  border-bottom: 1px solid rgba(16, 56, 59, .16);
  backdrop-filter: blur(10px);
}

.site-header__inner,
.site-footer__inner,
.wrap {
  width: min(var(--pds-max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--pds-teal-dark);
  text-decoration: none;
}

.site-branding img {
  width: 168px;
  max-height: 66px;
  object-fit: contain;
}

.site-branding__region {
  /* Kept in the markup for the branding link's accessible name context, but
     hidden from the compact desktop header row - see the "About" heading
     item list this header must fit on one line, which does not include it. */
  display: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 15px;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-header__actions .nav-cta {
  padding: 10px 16px;
  font-size: 14px;
  white-space: nowrap;
  border-color: var(--pds-teal-dark);
  background: var(--pds-teal-dark);
  color: var(--pds-cream);
}

.site-header__actions .nav-cta:hover {
  border-color: var(--pds-teal);
  background: var(--pds-teal);
  color: var(--pds-cream);
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  color: var(--pds-teal-dark);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.nav-phone:hover {
  color: var(--pds-teal-dark);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(16, 56, 59, .25);
  border-radius: var(--pds-radius-sm);
  background: var(--pds-cream);
  color: var(--pds-teal-dark);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  content: "";
  background: currentColor;
}

.primary-menu {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.primary-menu li {
  position: relative;
}

.primary-menu a {
  display: inline-flex;
  align-items: center;
  color: var(--pds-teal-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.primary-menu a:hover {
  color: var(--pds-teal-dark);
}

.primary-menu .sub-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: -18px;
  z-index: 30;
  display: grid;
  min-width: 270px;
  gap: 4px;
  padding: 12px;
  margin: 0;
  list-style: none;
  border: 1px solid rgba(16, 56, 59, .16);
  border-radius: var(--pds-radius);
  background: var(--pds-cream);
  box-shadow: var(--pds-shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease;
}

.primary-menu .sub-menu::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 18px;
  content: "";
}

.primary-menu .menu-item-has-children:hover > .sub-menu,
.primary-menu .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.primary-menu .sub-menu a {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--pds-radius-sm);
}

.primary-menu .sub-menu a:hover,
.primary-menu .sub-menu a:focus-visible {
  background: var(--pds-panel);
}

.submenu-toggle {
  display: none;
}

button[hidden],
input[type="submit"][hidden] {
  display: none;
}

.nav-cta,
.button,
.wp-block-button__link,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 2px solid var(--pds-teal);
  border-radius: var(--pds-radius-sm);
  background: var(--pds-teal);
  color: var(--pds-white);
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.button--dark {
  border-color: var(--pds-ink);
  background: var(--pds-ink);
  color: var(--pds-white);
}

.button--ghost {
  background: transparent;
  color: var(--pds-ink);
}

.button--on-dark {
  color: var(--pds-white);
}

.button--light {
  border-color: var(--pds-white);
  background: var(--pds-white);
  color: var(--pds-ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.nav-cta:hover,
.button:hover,
.wp-block-button__link:hover,
button:hover,
input[type="submit"]:hover {
  border-color: var(--pds-teal-dark);
  background: var(--pds-teal-dark);
  color: var(--pds-white);
}

.hero {
  position: relative;
  overflow: hidden;
  background: var(--pds-teal-dark);
  color: var(--pds-white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__bg-layer {
  position: absolute;
  inset: 0;
  background-position: right center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
}

.hero__bg-layer.is-active {
  opacity: 1;
}

.hero__bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(115deg, rgba(16, 56, 59, .93) 0%, rgba(22, 78, 82, .85) 42%, rgba(22, 78, 82, .58) 72%, rgba(22, 78, 82, .38) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg-layer {
    transition: none;
  }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: block;
  min-height: 560px;
  padding: 96px 0 88px;
}

.hero__content {
  max-width: 600px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--pds-teal);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0 0 18px;
  color: inherit;
  font-weight: 850;
  line-height: 1.08;
}

h1 {
  max-width: 840px;
  font-size: 56px;
}

h2 {
  font-size: 38px;
}

h3 {
  font-size: 23px;
}

p {
  margin: 0 0 18px;
}

.lead {
  max-width: 760px;
  color: inherit;
  font-size: 21px;
  line-height: 1.55;
}

.muted {
  color: var(--pds-muted);
}

.hero .eyebrow {
  color: var(--pds-cream);
}

.hero h1 {
  color: var(--pds-cream);
}

.hero .lead {
  color: rgba(245, 240, 230, .92);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero__actions .button:not(.button--ghost),
.hero__actions .button:not(.button--ghost) .wp-block-button__link {
  border-color: var(--pds-cream);
  background: var(--pds-cream);
  color: var(--pds-teal-dark);
}

.hero__actions .button:not(.button--ghost):hover,
.hero__actions .button:not(.button--ghost) .wp-block-button__link:hover {
  border-color: var(--pds-white);
  background: var(--pds-white);
  color: var(--pds-teal-dark);
}

.hero__actions .button--ghost.button--on-dark,
.hero__actions .button--ghost.button--on-dark .wp-block-button__link {
  border-color: rgba(245, 240, 230, .55);
  background: transparent;
  color: var(--pds-cream);
}

.hero__actions .button--ghost.button--on-dark:hover,
.hero__actions .button--ghost.button--on-dark .wp-block-button__link:hover {
  border-color: var(--pds-cream);
  color: var(--pds-cream);
}

.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  padding: 0;
  margin: 30px 0 0;
  list-style: none;
}

.hero__points li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 240, 230, .92);
  font-size: 14px;
  font-weight: 700;
}

.hero__points li::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
  content: "";
  background: var(--pds-cream);
}

.band {
  padding: 96px 0;
  background: var(--pds-cream);
}

.band h2 {
  color: var(--pds-teal-dark);
}

.band--light {
  background: var(--pds-sage);
}

.band--dark {
  background: var(--pds-ink);
  color: var(--pds-white);
}

.band--dark h2 {
  color: var(--pds-white);
}

.band--ink {
  background: linear-gradient(125deg, var(--pds-teal-dark), var(--pds-teal) 75%);
  color: var(--pds-white);
}

.band--ink h2 {
  color: var(--pds-white);
}

.band--ink .muted,
.band--dark .muted {
  color: rgba(245, 240, 230, .78);
}

.section-head {
  max-width: 780px;
  margin-bottom: 38px;
}

.grid {
  display: grid;
  gap: 24px;
}

/* Keep core Columns and Buttons used on Home visually equivalent to the
 * previous classic-template markup while remaining wholly editor-managed. */
.wp-block-columns.grid {
  margin-block: 0;
}

.grid > .wp-block-column.panel {
  margin: 0;
}

.pds-inline-link {
  margin-bottom: 0;
}

.wp-block-button.button--ghost .wp-block-button__link {
  background: transparent;
  color: var(--pds-ink);
}

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

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

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

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

.service-item,
.panel,
.wp-block-group.is-style-pds-panel {
  padding: 28px;
  border: 1px solid rgba(16, 78, 82, .18);
  background: var(--pds-white);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(16, 56, 59, .08);
}

.panel__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin: -28px -28px 20px;
  border-radius: 18px 18px 0 0;
  background: var(--pds-sage);
}

.panel__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-item {
  overflow: hidden;
}

.service-item--feature {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
}

.service-item--feature img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--pds-panel);
}

.service-item--feature div {
  padding: 28px;
}

.service-item--compact {
  min-height: 230px;
}

.service-item h3,
.panel h3 {
  color: var(--pds-teal-dark);
}

/* The three primary commercial routes stay visually dominant */
.grid--3 .panel {
  padding: 32px 28px;
  border-top: 3px solid var(--pds-teal);
}

/* Print Software / Interactive Displays stay secondary */
.grid--2 .panel {
  background: var(--pds-sage);
  box-shadow: none;
}

.service-item a {
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: start;
}

.split--visual {
  align-items: center;
}

.image-panel {
  overflow: hidden;
  border: 1px solid var(--pds-line);
  border-radius: var(--pds-radius-lg);
  background: var(--pds-white);
  box-shadow: var(--pds-shadow);
}

.image-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.image-panel--dark {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.08);
}

.coverage-map {
  overflow: hidden;
  border: 1px solid rgba(16, 78, 82, .18);
  border-radius: 18px;
  background: var(--pds-white);
  box-shadow: 0 10px 28px rgba(16, 56, 59, .08);
}

.coverage-map img {
  display: block;
  width: 100%;
  height: auto;
}

.fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.22);
}

.fact-strip div {
  padding: 24px;
  background: rgba(255,255,255,.08);
}

.fact-strip strong {
  display: block;
  margin-bottom: 5px;
  color: var(--pds-cream);
  font-size: 26px;
}

.page-hero {
  padding: 58px 0;
  background: linear-gradient(115deg, var(--pds-panel), #fff 74%);
  border-bottom: 1px solid var(--pds-line);
}

.page-hero--overlay {
  position: relative;
  min-height: 470px;
  padding: 0;
  overflow: hidden;
  background: var(--pds-teal-dark);
  color: var(--pds-white);
}

.page-hero--overlay::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(16, 56, 59, .90) 0%, rgba(16, 56, 59, .74) 45%, rgba(16, 56, 59, .20) 100%);
}

.page-hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero--overlay .page-hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 470px;
  padding: 86px 0;
}

.page-hero--overlay .page-hero__inner > div {
  max-width: 760px;
}

.page-hero.page-hero--overlay h1,
.page-hero.page-hero--overlay .lead {
  color: var(--pds-white);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .28);
}

.page-hero--overlay .eyebrow {
  color: var(--pds-cream);
}

.page-hero__inner {
  display: grid;
  gap: 34px;
}

.page-hero__inner.page-hero--visual {
  grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr);
  align-items: center;
}

.page-hero__media {
  overflow: hidden;
  border: 1px solid var(--pds-line);
  border-radius: var(--pds-radius-lg);
  background: #fff;
  box-shadow: var(--pds-shadow);
}

.page-hero__media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.page-hero h1 {
  max-width: 920px;
  color: var(--pds-teal-dark);
  font-size: 48px;
}

.content-area {
  padding: 64px 0;
}

.content-area > *:first-child {
  margin-top: 0;
}

.content-area ul,
.content-area ol {
  margin-top: 0;
}

.content-area h2 {
  margin-top: 42px;
  color: var(--pds-teal-dark);
}

.content-area h3 {
  color: var(--pds-teal-dark);
}

.pds-section {
  margin: 44px 0;
}

.pds-card-grid,
.pds-check-grid,
.pds-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0;
}

.pds-route-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pds-card,
.pds-route,
.pds-note,
.pds-faq,
.pds-form-wrap {
  padding: 26px;
  border: 1px solid var(--pds-line);
  border-radius: var(--pds-radius);
  background: var(--pds-white);
}

.pds-card__media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  margin: -26px -26px 20px;
  border-radius: var(--pds-radius) var(--pds-radius) 0 0;
  background: var(--pds-panel);
}

.pds-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pds-card,
.pds-route,
.pds-form-wrap {
  box-shadow: 0 12px 30px rgba(16, 56, 59, .09);
}

.pds-card h2,
.pds-card h3,
.pds-route h2,
.pds-route h3,
.pds-note h2,
.pds-note h3,
.pds-faq h2,
.pds-faq h3 {
  margin-top: 0;
}

.pds-note {
  background: var(--pds-panel);
}

.pds-check-list {
  padding-left: 1.25rem;
}

.pds-check-list li + li {
  margin-top: 8px;
}

.pds-service-link-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

.pds-service-link-list a {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid var(--pds-line);
  border-radius: var(--pds-radius-sm);
  color: var(--pds-ink);
  font-weight: 800;
  text-decoration: none;
}

.pds-service-link-list a:hover,
.pds-service-link-list a:focus-visible {
  border-color: var(--pds-teal);
  background: var(--pds-sage);
}

.pds-manufacturer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 28px 0;
  list-style: none;
}

/*
 * `li` covers any page still using the plain <ul><li> markup; the
 * `.pds-manufacturer-item` class covers the native-block version (a Group
 * block using a <div>, since the Group block has no <li> tag option) used
 * by the About page migration and the "Phoenix — Manufacturer Logo Grid"
 * pattern from v1.4.11 onwards. Same visual result either way.
 */
.pds-manufacturer-list li,
.pds-manufacturer-list .pds-manufacturer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 20px;
  border: 1px solid rgba(16, 78, 82, .18);
  border-radius: var(--pds-radius-sm);
  background: var(--pds-white);
  color: var(--pds-teal-dark);
  font-weight: 800;
}

.pds-manufacturer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 70px;
}

.pds-manufacturer-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pds-manufacturer-name {
  /* Overrides the global `p { margin: 0 0 18px; }` now this is a Paragraph
     block rather than the original plain <span>. */
  margin: 0;
  font-size: 14px;
}

.pds-testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 28px 0;
}

.pds-testimonial {
  padding: 26px;
  border: 1px solid rgba(16, 78, 82, .18);
  border-radius: 16px;
  background: var(--pds-white);
  box-shadow: 0 12px 30px rgba(16, 56, 59, .07);
}

.pds-testimonial p {
  margin-bottom: 14px;
  font-style: italic;
}

.pds-testimonial-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--pds-sage);
  color: var(--pds-teal-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.pds-form-placeholder {
  scroll-margin-top: 110px;
  padding: 30px;
  border: 2px dashed var(--pds-line);
  border-radius: var(--pds-radius-lg);
  background: var(--pds-panel);
}

.pds-form-placeholder__note {
  margin: 0;
  color: var(--pds-muted);
  font-size: 14px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.process-step {
  padding: 24px;
  border: 1px solid var(--pds-line);
  border-radius: var(--pds-radius);
  background: var(--pds-white);
}

.process-step span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  place-items: center;
  background: var(--pds-teal);
  color: var(--pds-white);
  font-weight: 900;
}

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

.quote-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  border: 1px solid var(--pds-line);
  border-radius: var(--pds-radius-lg);
  background: linear-gradient(120deg, #fff, var(--pds-sage));
  box-shadow: var(--pds-shadow);
}

.cta-band {
  padding: 54px 0;
  background: var(--pds-teal);
  color: var(--pds-white);
}

.cta-band h2 {
  color: var(--pds-white);
}

.cta-band .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

/*
 * The CTA button must not share the band's own teal fill/border colour -
 * a same-colour button becomes invisible against its own background,
 * leaving only the text visible. Cream-on-teal keeps it a clearly
 * visible button here, consistent with the hero's dark-background
 * button treatment. flex-shrink/min-width/white-space stop the button
 * from being squeezed and wrapping onto two lines in the flex row.
 */
.cta-band .button {
  flex-shrink: 0;
  min-width: 200px;
  white-space: nowrap;
  border-color: var(--pds-cream);
  background: var(--pds-cream);
  color: var(--pds-teal-dark);
}

.cta-band .button:hover {
  border-color: var(--pds-white);
  background: var(--pds-white);
  color: var(--pds-teal-dark);
}

.site-footer {
  padding: 54px 0 26px;
  background: var(--pds-teal-dark);
  color: rgba(245, 240, 230, .85);
}

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--pds-cream);
}

.footer-phone {
  display: inline-block;
  font-weight: 800;
  font-size: 18px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(150px, .5fr));
  gap: 30px;
}

.site-footer h2,
.site-footer h3 {
  font-size: 18px;
}

.site-footer ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-footer li + li {
  margin-top: 8px;
}

.footer-logo {
  width: 180px;
  padding: 10px;
  background: #fff;
  border-radius: var(--pds-radius);
}

.copyright {
  width: min(var(--pds-max), calc(100% - 40px));
  margin: 36px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: rgba(245, 240, 230, .65);
  font-size: 14px;
}

form.pds-form {
  display: grid;
  gap: 18px;
}

.pds-form-wrap--workflow {
  max-width: 760px;
  padding: 34px;
  border-radius: var(--pds-radius-lg);
  background: linear-gradient(180deg, #fff, rgba(221, 231, 225, .45));
}

.pds-form__intro h2,
.pds-form__intro p {
  margin: 0;
}

.pds-form__intro p {
  margin-top: 4px;
  color: var(--pds-muted);
}

.pds-form-steps[hidden] {
  display: none;
}

.pds-form-steps {
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 4px 0 6px;
  list-style: none;
}

.pds-form-steps span {
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid var(--pds-line);
  border-radius: 50%;
  place-items: center;
  background: #fff;
  color: var(--pds-teal);
  font-size: 15px;
  font-weight: 900;
}

.pds-form-steps span.is-active,
.pds-form-steps span[aria-current="step"] {
  border-color: var(--pds-teal);
  background: var(--pds-teal);
  color: #fff;
}

.pds-form-step {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  border: 0;
}

.pds-form-step[hidden] {
  display: none;
}

.pds-form-step legend {
  padding: 0;
  margin-bottom: 6px;
  color: var(--pds-ink);
  font-size: 22px;
  font-weight: 900;
}

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

.pds-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 4px;
}

.pds-form-review {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--pds-line);
  border-radius: var(--pds-radius);
  background: var(--pds-panel);
}

.pds-form-review:empty::before {
  content: "Review your answers before sending.";
  color: var(--pds-muted);
}

.pds-form-review div {
  display: grid;
  grid-template-columns: minmax(130px, .45fr) 1fr;
  gap: 14px;
}

.pds-form-review strong {
  color: var(--pds-ink);
}

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

fieldset.pds-field {
  padding: 0;
  margin: 0;
  border: 0;
}

.pds-field label {
  font-weight: 800;
}

.pds-field legend {
  padding: 0;
  font-weight: 800;
}

.pds-field input:not([type="checkbox"]):not([type="radio"]),
.pds-field select,
.pds-field textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--pds-line);
  border-radius: var(--pds-radius);
  color: var(--pds-ink);
  font: inherit;
}

.pds-form-step label:has(> input[type="checkbox"]),
.pds-form-step label:has(> input[type="radio"]) {
  display: block;
  position: relative;
  padding-left: 28px;
  font-weight: 500;
}

.pds-form-step label:has(> input[type="checkbox"]) > input,
.pds-form-step label:has(> input[type="radio"]) > input {
  position: absolute;
  top: 3px;
  left: 0;
  margin: 0;
}

.pds-field input[type="checkbox"],
.pds-field input[type="radio"] {
  width: 18px;
  height: 18px;
}

.pds-field textarea {
  min-height: 130px;
}

.pds-error {
  color: #9d251d;
  font-weight: 700;
}

.pds-notice {
  padding: 14px 16px;
  border-left: 4px solid var(--pds-teal);
  background: var(--pds-panel);
}

.pds-notice--error {
  border-color: #9d251d;
}

.pds-notice--success {
  border-color: #137333;
}

.pds-consent {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  width: min(440px, calc(100% - 36px));
  padding: 20px;
  border: 1px solid var(--pds-line);
  border-radius: var(--pds-radius-lg);
  background: #fff;
  box-shadow: var(--pds-shadow);
}

.pds-consent[hidden] {
  display: none;
}

.pds-consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pds-manage-consent {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.pds-manage-consent:hover,
.pds-manage-consent:focus-visible {
  border: 0;
  background: transparent;
  color: #fff;
}

.pds-honeypot {
  position: absolute;
  left: -9999px;
}

.vpl-quote-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.vpl-quote-modal[hidden] {
  display: none;
}

.vpl-quote-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 56, 59, .62);
}

.vpl-quote-modal__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(560px, 100%);
  max-height: min(76vh, 640px);
  overflow: hidden;
  border-radius: var(--pds-radius-lg);
  background: var(--pds-white);
  box-shadow: var(--pds-shadow);
}

.vpl-quote-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--pds-line);
}

.vpl-quote-modal__title {
  margin: 0;
  font-size: 22px;
}

.vpl-quote-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-height: 0;
  padding: 0;
  border: 1px solid var(--pds-line);
  border-radius: var(--pds-radius-sm);
  background: var(--pds-white);
  color: var(--pds-ink);
  font-size: 22px;
  line-height: 1;
}

.vpl-quote-modal__close:hover {
  border-color: var(--pds-teal-dark);
  background: var(--pds-panel);
  color: var(--pds-ink);
}

.vpl-quote-modal__body {
  overflow-y: auto;
}

.vpl-quote-modal__body .pds-form-wrap {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.vpl-quote-modal__body .pds-form__intro {
  display: none;
}

.vpl-quote-modal__body .pds-form-wrap--workflow {
  max-width: none;
}

.vpl-quote-modal__body .pds-form-step {
  gap: 20px;
}

.vpl-quote-modal__body .pds-field-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.vpl-quote-modal__body .pds-field {
  gap: 8px;
}

html.vpl-quote-modal-open,
html.vpl-quote-modal-open body {
  overflow: hidden;
}

/*
 * Header/nav breakpoint: kept wider than the general content breakpoint
 * below. The header's fixed max-width (1180px) only offers a full-width
 * budget once the viewport reaches ~1220px, so the compact single-row
 * desktop nav (with the phone number and CTA) is only attempted at widths
 * that reliably have room for it; narrower widths - including common
 * tablet landscape sizes - use the same mobile nav pattern as phones.
 */
@media (max-width: 1200px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    inset: 100% 0 auto 0;
    display: none;
    padding: 20px;
    border-bottom: 1px solid rgba(16, 56, 59, .16);
    background: var(--pds-cream);
  }

  .site-nav.is-open {
    display: block;
  }

  .primary-menu {
    display: grid;
    gap: 14px;
  }

  .primary-menu li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
  }

  .primary-menu a {
    font-size: 15px;
  }

  .primary-menu .sub-menu {
    position: static;
    grid-column: 1 / -1;
    display: none;
    min-width: 0;
    padding: 8px 0 0 16px;
    border: 0;
    border-left: 3px solid var(--pds-line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .primary-menu .sub-menu li {
    grid-template-columns: 1fr;
  }

  .primary-menu .sub-menu.is-open {
    display: grid;
  }

  .primary-menu .sub-menu a {
    padding: 8px 10px;
  }

  .submenu-toggle {
    display: inline-flex;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid rgba(16, 56, 59, .25);
    border-radius: var(--pds-radius-sm);
    background: var(--pds-cream);
    color: var(--pds-teal-dark);
  }

  .submenu-toggle::before {
    content: "+";
    font-size: 22px;
    line-height: 1;
  }

  .submenu-toggle[aria-expanded="true"]::before {
    content: "-";
  }

  .site-header__inner {
    flex-wrap: wrap;
    row-gap: 14px;
  }

  .site-header__actions {
    flex: 1 1 100%;
    justify-content: space-between;
  }

  .site-header__actions .nav-cta {
    padding: 11px 18px;
    font-size: inherit;
  }

  .nav-phone {
    font-size: 15px;
  }

  .site-branding img {
    width: 190px;
  }

  .site-branding__region {
    display: inline;
  }
}

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

  .hero__inner,
  .split,
  .page-hero__inner.page-hero--visual,
  .grid--2,
  .grid--3,
  .grid--4,
  .service-list,
  .pds-card-grid,
  .pds-check-grid,
  .pds-route-grid,
  .pds-testimonial-grid,
  .process-steps,
  .faq-grid,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  /*
   * .cta-band .wrap is a flex row, not a grid - grid-template-columns
   * had no effect on it here, which was the other half of the CTA
   * button bug (it never actually restacked, so the row got squeezed
   * and the button's text wrapped). flex-direction is the real fix.
   */
  .cta-band .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .hero__inner {
    min-height: auto;
    padding: 58px 0;
  }

  .page-hero--overlay {
    min-height: 430px;
  }

  .page-hero--overlay::after {
    background: linear-gradient(180deg, rgba(16, 56, 59, .90) 0%, rgba(16, 56, 59, .78) 58%, rgba(16, 56, 59, .50) 100%);
  }

  .page-hero--overlay .page-hero__inner {
    min-height: 430px;
    padding: 62px 0;
  }

  h1,
  .page-hero h1 {
    font-size: 40px;
  }

  h2 {
    font-size: 31px;
  }

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

  .quote-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .vpl-quote-modal {
    padding: 0;
    align-items: flex-end;
  }

  .vpl-quote-modal__panel {
    width: 100%;
    max-height: 92vh;
    border-radius: var(--pds-radius-lg) var(--pds-radius-lg) 0 0;
  }
}

@media (max-width: 560px) {
  .site-header__inner,
  .site-footer__inner,
  .wrap,
  .copyright {
    width: min(100% - 28px, var(--pds-max));
  }

  .site-branding img {
    width: 150px;
  }

  .site-branding__region {
    display: none;
  }

  .band,
  .content-area {
    padding: 48px 0;
  }

  .pds-form-wrap--workflow {
    padding: 24px;
  }

  .pds-field-grid,
  .pds-form-review div {
    grid-template-columns: 1fr;
  }

  .pds-form-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .pds-form-actions button {
    width: 100%;
  }

  h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .lead {
    font-size: 19px;
  }

  .fact-strip {
    grid-template-columns: 1fr;
  }
}
