/*
Theme Name: Parry Sound District Paramedic Service
Theme URI: https://parrysounddistrictparamedics.ca/
Author: Parry Sound District Paramedic Service
Description: Custom WordPress theme for Parry Sound District Paramedic Service with floating glass navigation, Community Paramedicine pages, outreach request pages, and contact directory.
Version: 1.0.8
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: psdps
*/

:root {
  --ink: #071a44;
  --ink-2: #102653;
  --blue: #1874ff;
  --sky: #dcecff;
  --lime: #d9fb00;
  --paper: #f7f9fc;
  --white: #ffffff;
  --muted: #65728a;
  --line: rgba(7, 26, 68, 0.14);
  --glass: rgba(255, 255, 255, 0.15);
  --shadow: 0 24px 70px rgba(8, 24, 61, 0.22);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Sora, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--lime);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 18px 18px auto;
  z-index: 50;
  transition: transform 280ms ease, inset 280ms ease;
}

.site-header.is-scrolled {
  top: 10px;
}

.glass-nav {
  max-width: 1450px;
  margin: 0 auto;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 16px;
  padding: 10px 22px 10px 16px;
  color: var(--white);
  background: rgba(12, 48, 101, 0.22);
  box-shadow: 0 20px 60px rgba(0, 15, 45, 0.16);
  backdrop-filter: blur(18px) saturate(150%);
}

.site-header.is-scrolled .glass-nav {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(7, 26, 68, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 330px;
}

.brand img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.brand strong,
.brand em {
  display: block;
  text-transform: uppercase;
  font-style: normal;
  line-height: 1.05;
}

.brand strong {
  font-size: clamp(0.96rem, 1.45vw, 1.36rem);
  letter-spacing: 0;
  font-weight: 900;
}

.brand em {
  margin-top: 4px;
  color: var(--lime);
  font-size: 0.82rem;
  font-weight: 900;
}

.site-header.is-scrolled .brand em {
  color: var(--blue);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2.2vw, 36px);
  font-size: 0.83rem;
  font-weight: 900;
  text-transform: uppercase;
}

.nav-links a {
  position: relative;
  padding: 13px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--lime);
  transition: transform 260ms ease;
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.menu-toggle b {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hero {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  min-height: 100svh;
  padding: 0;
  overflow: clip;
  isolation: isolate;
}

.hero-media,
.hero-media img,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero .wp-block-cover.hero-cover {
  min-height: 100svh;
  padding: 190px 7vw 0;
  overflow: visible;
  background: transparent;
}

.hero .wp-block-cover.hero-cover .wp-block-cover__inner-container {
  width: 100%;
}

.hero .wp-block-cover.hero-cover .wp-block-cover__image-background {
  object-position: 63% center;
}

.hero-media {
  z-index: -2;
  background: #13467d;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 63% center;
  transform: scale(1.03) translateY(var(--hero-y, 0));
  will-change: transform;
}

.hero-shade {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(248, 250, 255, 0.9) 0%, rgba(248, 250, 255, 0.72) 30%, rgba(248, 250, 255, 0.15) 64%, rgba(5, 15, 38, 0.08) 100%),
    linear-gradient(180deg, rgba(4, 18, 49, 0.18), rgba(4, 18, 49, 0.04) 62%, var(--paper) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  margin-left: clamp(0px, 3vw, 70px);
  padding-bottom: 220px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 3px;
  background: currentColor;
  border-radius: 99px;
}

.hero h1 {
  margin: 0;
  text-transform: uppercase;
  font-size: clamp(4rem, 9.2vw, 8.6rem);
  line-height: 0.9;
  font-weight: 950;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero h1 span:nth-child(2) {
  color: var(--blue);
}

.hero h1 span:nth-child(3) {
  color: var(--lime);
  text-shadow: 0 6px 26px rgba(7, 26, 68, 0.18);
}

.hero-copy {
  display: inline-block;
  max-width: 520px;
  margin: 24px 0 0;
  color: #111827;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.64);
  box-shadow: 0 12px 32px rgba(7, 26, 68, 0.1);
  backdrop-filter: blur(8px);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 550;
}

.hero-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.stacked-actions {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.button:not(.wp-block-button) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0 24px;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.wp-block-button.button {
  display: inline-flex;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
}

.wp-block-button.button .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 0 24px;
  color: inherit;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 950;
  text-transform: uppercase;
}

.button:not(.wp-block-button):hover,
.wp-block-button.button:hover {
  transform: translateY(-2px);
}

.button.primary:not(.wp-block-button),
.wp-block-button.button.primary .wp-block-button__link {
  background: var(--lime);
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(217, 251, 0, 0.32);
}

.button.secondary:not(.wp-block-button),
.wp-block-button.button.secondary .wp-block-button__link {
  border-color: var(--blue);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.66);
  backdrop-filter: blur(10px);
}

.hero-status {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  max-width: var(--max);
  margin: -120px auto 0;
  padding: 30px 22px;
  border: 1px solid rgba(7, 26, 68, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-status article {
  min-height: 150px;
  padding: 0 28px;
  text-align: center;
  border-right: 1px solid var(--line);
}

.hero-status article:last-child {
  border-right: 0;
}

.hero-status strong,
.hero-status h3 {
  display: block;
  margin: 14px 0 8px;
  font-size: 0.98rem;
  text-transform: uppercase;
}

.hero-status p,
.section-body p,
.form-card p,
.base-grid p,
.career-grid p,
.contact-cards p {
  color: var(--muted);
}

.line-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--blue);
}

.line-icon::before,
.line-icon::after {
  content: "";
  position: absolute;
}

.clock {
  border: 4px solid var(--lime);
  border-radius: 50%;
}

.clock::before {
  width: 3px;
  height: 16px;
  top: 6px;
  left: 16px;
  background: var(--lime);
}

.clock::after {
  width: 14px;
  height: 3px;
  top: 17px;
  left: 17px;
  background: var(--lime);
}

.people::before {
  width: 22px;
  height: 16px;
  border: 4px solid currentColor;
  border-radius: 14px 14px 8px 8px;
  bottom: 2px;
}

.people::after {
  width: 13px;
  height: 13px;
  border: 4px solid currentColor;
  border-radius: 50%;
  top: 1px;
}

.cross::before,
.cross::after {
  background: var(--ink);
  border-radius: 2px;
}

.cross::before {
  width: 34px;
  height: 9px;
}

.cross::after {
  width: 9px;
  height: 34px;
}

.heart::before {
  width: 27px;
  height: 27px;
  border-left: 4px solid var(--lime);
  border-bottom: 4px solid var(--lime);
  transform: rotate(-45deg);
  border-radius: 0 0 0 7px;
}

.section-pad {
  padding: clamp(78px, 10vw, 132px) 7vw;
}

.intro-section {
  padding-top: 180px;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.82fr) minmax(280px, 1fr);
  gap: clamp(28px, 7vw, 90px);
  max-width: var(--max);
  margin: 0 auto;
}

.section-heading h2 {
  margin: 0;
  max-width: 600px;
  font-size: clamp(2.4rem, 5vw, 5rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-body {
  align-self: center;
  font-size: clamp(1rem, 1.2vw, 1.16rem);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--max);
  margin: 56px auto 0;
}

.metrics article,
.base-grid article,
.career-grid article,
.contact-cards article,
.form-card {
  border: 1px solid rgba(7, 26, 68, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(10, 32, 74, 0.08);
}

.metrics article {
  padding: 26px;
}

.metrics strong {
  display: block;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1;
}

.metrics span {
  color: var(--ink);
  font-weight: 850;
  text-transform: uppercase;
}

.dark-band {
  color: var(--white);
  background:
    radial-gradient(circle at 85% 15%, rgba(24, 116, 255, 0.28), transparent 28rem),
    linear-gradient(135deg, #06183c, #102b5d 62%, #0a1e46);
}

.dark-band .eyebrow,
.dark-band .base-grid span {
  color: var(--lime);
}

.dark-band .section-body p,
.dark-band .base-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.base-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: var(--max);
  margin: 58px auto 0;
}

.base-grid article {
  min-height: 210px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
  backdrop-filter: blur(10px);
}

.base-grid span {
  display: block;
  font-weight: 900;
  margin-bottom: 26px;
}

.base-grid strong,
.career-grid strong,
.contact-cards strong {
  display: block;
  font-size: 1.12rem;
  text-transform: uppercase;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 520px);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
  max-width: calc(var(--max) + 14vw);
  margin: 0 auto;
}

.feature-panel h2 {
  margin: 0 0 22px;
  font-size: clamp(2.6rem, 6.5vw, 6.8rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.feature-panel p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
}

.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 15px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
}

.form-card {
  padding: clamp(22px, 3vw, 34px);
}

.form-card h3 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  text-transform: uppercase;
}

label {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

label:has(input[type="checkbox"]) {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 13px;
  border: 1px solid rgba(7, 26, 68, 0.12);
  border-radius: 8px;
  background: #f9fbff;
  text-transform: none;
  line-height: 1.35;
}

input[type="checkbox"] {
  width: auto;
  margin-top: 2px;
  accent-color: var(--blue);
}

input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  border: 1px solid rgba(7, 26, 68, 0.16);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #f9fbff;
  font: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(24, 116, 255, 0.18);
  border-color: var(--blue);
}

fieldset {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

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

.inner-page {
  background: var(--paper);
}

.inner-page .site-header {
  position: sticky;
  inset: auto;
  top: 18px;
  margin: 18px 18px 0;
}

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

.admin-bar.inner-page .site-header {
  top: 50px;
}

.page-hero {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  padding: 90px 7vw 42px;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.page-hero p:last-child {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.16rem;
}

.forms-page {
  display: grid;
  gap: 34px;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 0;
}

.large-form h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 0.98;
  text-transform: uppercase;
}

.notice-card {
  border: 1px solid rgba(7, 26, 68, 0.1);
  border-left: 6px solid var(--blue);
  border-radius: 8px;
  padding: clamp(22px, 3vw, 34px);
  background: var(--white);
  box-shadow: 0 20px 55px rgba(10, 32, 74, 0.08);
}

.notice-card h2 {
  margin: 0 0 10px;
  text-transform: uppercase;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--max);
  margin: 64px auto 0;
}

.service-list article {
  border: 1px solid rgba(7, 26, 68, 0.1);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(10, 32, 74, 0.08);
}

.service-list li {
  list-style: none;
  border: 1px solid rgba(7, 26, 68, 0.1);
  border-radius: 8px;
  padding: 24px;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(10, 32, 74, 0.08);
}

.service-list h3,
.service-list strong {
  margin: 0 0 10px;
  text-transform: uppercase;
  font-size: 1rem;
}

.service-list p {
  margin: 0;
  color: var(--muted);
}

.referral-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
  padding-top: 0;
}

.request-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  border: 1px solid rgba(7, 26, 68, 0.1);
  border-radius: 8px;
  padding: clamp(26px, 4vw, 44px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.98)),
    var(--white);
  box-shadow: 0 24px 70px rgba(8, 24, 61, 0.1);
}

.request-card h2 {
  margin: 0 0 14px;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: clamp(2rem, 4.1vw, 4.2rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.request-card p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
}

.request-card .button {
  margin-top: 18px;
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: var(--max);
  margin: 0 auto;
}

.audience-card {
  min-height: 420px;
}

.audience-card h2 {
  font-size: clamp(2rem, 4.1vw, 4.2rem);
  line-height: 0.96;
}

.audience-card p {
  font-size: 1rem;
}

.pill-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(360px, 100%);
  min-height: 86px;
  border-radius: 999px;
  padding: 0 42px;
  color: var(--white);
  background: #07313c;
  font-size: clamp(1.2rem, 2vw, 2rem);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.pill-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(7, 49, 60, 0.2);
}

.cp-contact-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  max-width: var(--max);
  margin: 36px auto 0;
  border: 1px solid rgba(7, 26, 68, 0.1);
  border-radius: 8px;
  padding: 18px 22px;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(10, 32, 74, 0.08);
}

.provider-links {
  margin-top: 58px;
}

.team-section {
  max-width: var(--max);
  margin: clamp(72px, 9vw, 118px) auto 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 36px;
}

.team-card {
  overflow: hidden;
  border: 1px solid rgba(7, 26, 68, 0.1);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 20px 55px rgba(10, 32, 74, 0.08);
}

.team-card img {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
  object-position: center top;
  background: var(--sky);
}

.team-card figure {
  margin: 0;
}

.team-card div {
  display: grid;
  gap: 7px;
  padding: 22px;
}

.team-card h3 {
  margin: 0;
  font-size: 1.18rem;
  text-transform: uppercase;
}

.team-card p {
  min-height: 50px;
  margin: 0 0 8px;
  color: var(--muted);
}

.team-card a,
.team-card span {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

.team-card a:hover {
  color: var(--blue);
}

.form-card button {
  width: 100%;
  margin-top: 20px;
  border: 0;
  cursor: pointer;
}

output {
  display: block;
  min-height: 24px;
  margin-top: 12px;
  color: var(--blue);
  font-weight: 800;
}

.careers {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(220, 236, 255, 0.76)),
    var(--paper);
}

.career-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: var(--max);
  margin: 56px auto 0;
}

.career-grid article {
  padding: 30px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 520px);
  gap: clamp(24px, 6vw, 80px);
  max-width: var(--max);
  margin: 54px auto 0;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-cards-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: var(--max);
  margin: 54px auto 0;
}

.contact-cards article {
  padding: 24px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 7vw;
  color: var(--white);
  background: #06183c;
}

.site-footer img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.site-footer p {
  margin: 0;
  font-weight: 900;
  text-transform: uppercase;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 800;
  font-size: 0.86rem;
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 780ms ease, transform 780ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Block editor: keep animated content visible while editing. */
.editor-styles-wrapper .reveal,
.editor-styles-wrapper .reveal.is-visible,
.block-editor-block-list__layout .reveal,
.block-editor-block-list__layout .reveal.is-visible {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.editor-styles-wrapper .site-header,
.block-editor-block-list__layout .site-header {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  margin: 0 0 24px !important;
}

.editor-styles-wrapper .hero,
.block-editor-block-list__layout .hero {
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  min-height: auto;
}

.editor-styles-wrapper .hero .wp-block-cover.hero-cover,
.block-editor-block-list__layout .hero .wp-block-cover.hero-cover {
  min-height: 760px;
}

@media (max-width: 1050px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 104px 18px auto;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 18px;
    border-radius: 12px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 16px 6px;
    border-bottom: 1px solid var(--line);
  }

  .hero-status,
  .metrics,
  .base-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-status article:nth-child(2) {
    border-right: 0;
  }

  .hero-status article {
    border-bottom: 1px solid var(--line);
    padding-top: 20px;
  }

  .hero-status article:nth-child(3),
  .hero-status article:nth-child(4) {
    border-bottom: 0;
  }

  .section-grid,
  .split-feature,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .career-grid {
    grid-template-columns: 1fr;
  }

  .team-grid,
  .referral-links,
  .service-list,
  .audience-grid,
  .contact-cards-wide {
    grid-template-columns: 1fr;
  }

  .audience-card {
    min-height: 520px;
  }
}

@media (max-width: 700px) {
  .site-header {
    inset: 10px;
  }

  .glass-nav {
    min-height: 74px;
    padding: 8px 12px;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .brand strong {
    font-size: 0.82rem;
  }

  .brand em {
    font-size: 0.68rem;
  }

  .hero {
    min-height: 960px;
    padding: 0;
  }

  .hero .wp-block-cover.hero-cover {
    min-height: 960px;
    padding: 126px 22px 0;
  }

  .hero-media img {
    object-position: 64% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(248, 250, 255, 0.96) 0%, rgba(248, 250, 255, 0.76) 38%, rgba(248, 250, 255, 0.08) 74%, var(--paper) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.1));
  }

  .hero-content {
    margin-left: 0;
    padding-bottom: 230px;
  }

  .hero h1 {
    font-size: clamp(2.72rem, 13.2vw, 4.45rem);
  }

  .hero-status {
    grid-template-columns: 1fr;
    margin-top: -190px;
  }

  .hero-status article,
  .hero-status article:nth-child(2),
  .hero-status article:nth-child(3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-status article:last-child {
    border-bottom: 0;
  }

  .intro-section {
    padding-top: 90px;
  }

  .metrics,
  .base-grid {
    grid-template-columns: 1fr;
  }

  .section-pad {
    padding-left: 22px;
    padding-right: 22px;
  }

  .site-footer {
    display: grid;
    justify-items: start;
  }

  .form-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 70px 22px 38px;
  }
}
