/* =========================================================
   PUBLIC HEALTH COUNCILS CSS
   ========================================================= */

:root {
  --phc-navy: #103b4d;
  --phc-teal: #0f766e;
  --phc-aqua: #0f6f7d;
  --phc-sky: #e8f5f7;
  --phc-mint: #edf8f3;
  --phc-gold: #d7b46a;
  --phc-text: #1f2937;
  --phc-muted: #5b6875;
  --phc-border: #dbe4ea;
  --phc-surface: rgba(255, 255, 255, 0.86);
  --phc-shadow: 0 16px 40px rgba(16, 59, 77, 0.12);

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --container: 1200px;
}

/* =========================
   Base
========================= */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--phc-text);
  line-height: 1.65;
  background:
    radial-gradient(circle at top right, rgba(19, 142, 160, 0.14), transparent 30%),
    radial-gradient(circle at left center, rgba(15, 118, 110, 0.1), transparent 28%),
    linear-gradient(180deg, #f4fbfc 0%, #ffffff 24%, #f8fbfd 100%);
}

a {
  color: var(--phc-aqua);
}

.p-margins {
  margin: 5px 0;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  overflow: clip;
}

.no-break {
  white-space: nowrap;
}

.muted {
  color: var(--phc-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip: rect(0, 0, 0, 0);
}

.align-middle {
  margin: 0 auto;
  text-align: center;
}

#backToTopBtn {
  color: #fff;
}

/* =========================
   Shared layout containers
========================= */
.hero-inner,
.content-grid,
.footer-spacer {
  width: min(100%, var(--container));
  margin: 0 auto;
}

.text-highlight {
  font-weight: 600;
  color: var(--phc-navy);

  /* underline highlight (initially hidden) */
  /*background-image: linear-gradient(180deg,
      transparent 60%,
      rgba(232, 136, 60, 0.25) 60%);*/
  background-repeat: no-repeat;
  background-size: 0% 100%;
  /* hidden initially */

  padding: 0 2px;

  transition: background-size 0.6s ease;
}

.text-highlight.is-visible {
  background-size: 100% 100%;
  /* animates underline in */
}

.text-highlight-carousel {
  font-weight: 600;
  color: #fff;
}

/* =========================
   Hero
========================= */
.hero {
  position: relative;
  isolation: isolate;
  padding: 2rem 1rem 1rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  min-height: 460px;
  background:
    linear-gradient(120deg, rgba(16, 59, 77, 0.88), rgba(19, 142, 160, 0.76)),
    url("/owhs/images/banner/banner-phc.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 24, 32, 0.14), rgba(7, 24, 32, 0.52));
}

.hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 1.5rem;
  align-items: center;
  padding: 2.25rem 0 3rem;
}

.hero-copy {
  padding: 2rem;
  color: #fff;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(6px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: #cceff4;
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-lead {
  max-width: 64ch;
  margin: 0 0 1.2rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.hero-aside {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =========================
   Shared cards / panels
========================= */
.stat-card,
.quote-card,
.callout-card,
.content-card,
.section-panel,
.award-panel {
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-xl);
  box-shadow: var(--phc-shadow);
  backdrop-filter: blur(10px);
}

.section-panel,
.award-panel,
.content-card,
.stat-card,
.callout-card {
  background: var(--phc-surface);
}

.section-panel,
.award-panel {
  padding: 1.35rem;
}

.content-card {
  padding: 1.5rem;
}

.stat-card {
  padding: 1.35rem;
}

.callout-card {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  padding: 1.25rem;
}

.callout-card .contact-list li>div {
  font-size: 0.9rem;
}

.callout-card .contact-list li>div strong {
  font-size: 1rem;
}

/* =========================
   Quote card
========================= */
.quote-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  padding: 1.35rem 1.35rem 1.1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(232, 245, 247, 0.72));
}

.quote-card::before,
.quote-card::after {
  position: absolute;
  color: rgba(19, 142, 160, 0.14);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 5rem;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
}

.quote-card::before {
  content: "“";
  top: 0.45rem;
  left: 0.85rem;
}

.quote-card::after {
  content: "”";
  right: 0.85rem;
  bottom: -0.35rem;
}

.quote-track {
  position: relative;
  z-index: 1;
}

.quote-track blockquote,
.quote-slide blockquote {
  margin: 0;
  padding-left: 2rem;
  color: var(--phc-navy);
  font-size: clamp(0.95rem, 1.05vw, 1.1rem);
  font-weight: 500;
  line-height: 1.55;
}

.quote-track cite,
.quote-slide cite {
  display: block;
  max-width: 42ch;
  margin-top: 0.8rem;
  padding-left: 2rem;

  color: var(--phc-muted);

  font-size: clamp(0.8rem, 0.9vw, 0.95rem);
  line-height: 1.4;

  font-style: normal;
  font-weight: 600;
}

.quote-slide cite::before {
  content: "— ";
  color: var(--phc-gold);
  font-weight: 700;
}

.quote-rotator {
  position: relative;
  min-height: 240px;
  overflow: hidden;
}

.quote-slide {
  position: absolute;
  inset: 0;
  padding: 0.25rem 0 2.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    visibility 0.6s ease;
}

.quote-slide.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1800px) {
  .quote-rotator {
    min-height: 300px;
    /* adjust as needed */
  }

  .quote-slide {
    padding-bottom: 1.75rem;
    /* gives cite more breathing room */
  }
}

/* =========================
   Buttons / links
========================= */
.btn-modern {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: clamp(0.7rem, 1vw, 0.95rem) clamp(0.9rem, 1.2vw, 1.15rem);
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: clamp(0.9rem, 1vw, 1rem);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-modern:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: var(--phc-navy);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.btn-secondary {
  color: #fff !important;
  border: 2px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.btn-resources {
  background: #f28732;
  color: #fff;
  border: 2px solid #fff;
}

.btn-resources:hover {
  background: #d96f1f;
  /* slightly darker for hover */
  color: #fff;
}

.btn-submit,
.btn-reporting {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.btn-submit {
  color: #fff !important;
  background: linear-gradient(135deg, var(--phc-aqua), var(--phc-teal));
  box-shadow: 0 6px 14px rgba(16, 59, 77, 0.2);
}

.btn-submit:hover {
  color: #fff !important;
  background: linear-gradient(135deg, var(--phc-teal), var(--phc-navy));
  transform: translateY(-1px);
}

.btn-reporting {
  color: #5c481a !important;
  border: 1px solid rgba(215, 180, 106, 0.45);
  background: rgba(215, 180, 106, 0.18);
}

.btn-reporting:hover {
  color: #fff !important;
  background: linear-gradient(135deg, #d7b46a, #b8964f);
  transform: translateY(-1px);
}

.link-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0b5cab;
  font-weight: 600;
  text-decoration: none;
}

.link-with-icon:hover {
  text-decoration: underline;
}

.link-with-icon i {
  font-size: 0.8em;
}

/* =========================
   Stats
========================= */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.stat-pill {
  padding: 0.95rem;
  border: 1px solid var(--phc-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.stat-pill strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--phc-navy);
  font-size: 1.35rem;
  line-height: 1;
}

.stat-pill span {
  color: var(--phc-muted);
  font-size: 0.92rem;
}

/* =========================
   Search
========================= */
.search-wrap {
  position: relative;
  z-index: 3;
  width: min(100%, var(--container));
  margin: 0 auto;
}

.search-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-bottom-right-radius: var(--radius-xl);
  border-bottom-left-radius: var(--radius-xl);
  background: var(--phc-surface);
  box-shadow: var(--phc-shadow);
  backdrop-filter: blur(10px);
}

.search-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.7rem 0.6rem 0.95rem;
  border: 1px solid var(--phc-border);
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.search-bar i {
  color: var(--phc-aqua);
  font-size: 0.95rem;
}

.search-input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--phc-text);
  font-size: 0.96rem;
}

.search-input::placeholder {
  color: var(--phc-muted);
}

.search-btn {
  padding: 0.72rem 0.95rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--phc-aqua), var(--phc-teal));
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.search-btn:hover {
  transform: translateY(-1px);
}

/* results shell */
.search-results {
  display: none;
  margin-top: 0.7rem;
  border: 1px solid var(--phc-border);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16, 59, 77, 0.08);
}

.search-results.visible {
  display: block;
}

/* scroll area */
.search-results-panel {
  position: relative;
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.search-results-list {
  display: flex;
  flex-direction: column;
}

/* result row */
.search-result-link {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: center;
  padding: 0.72rem 0.9rem;
  border-top: 1px solid var(--phc-border);
  color: inherit;
  text-decoration: none;
  transition: background 0.18s ease;
}

.search-result-link:first-child {
  border-top: 0;
}

.search-result-link:hover,
.search-result-link:focus-visible {
  background: #f7fbfc;
  text-decoration: none;
}

.search-result-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #f3f8fa;
  color: var(--phc-aqua);
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.search-result-link:hover .search-result-icon,
.search-result-link:focus-visible .search-result-icon {
  background: var(--phc-sky);
  color: var(--phc-teal);
  transform: translateY(-1px);
}

.search-result-content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.search-result-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--phc-navy);
}

.search-result-meta {
  font-size: 0.75rem;
  color: var(--phc-muted);
}

/* empty state */
.search-result-empty {
  padding: 0.9rem 0.95rem;
}

.search-result-empty p {
  margin: 0;
  color: var(--phc-muted);
  font-size: 0.9rem;
}

/* footer */
.search-results-footer {
  display: none;
  position: sticky;
  bottom: 0;
  padding: 0.65rem 0.8rem;
  border-top: 1px solid var(--phc-border);
  /*background: linear-gradient(to bottom, rgba(255, 255, 255, 0.92), #fff);*/
  backdrop-filter: blur(6px);
}

/* only show footer when JS says results overflow */
.search-results.has-overflow .search-results-footer,
.search-results.has-footer-only .search-results-footer {
  display: block;
}

.search-view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;

  width: fit-content;
  padding: 0.35rem 0.2rem;

  border: none;
  background: transparent;

  color: var(--phc-aqua);
  text-decoration: none;

  font-size: 0.88rem;
  font-weight: 700;

  transition: color 0.18s ease;
}

.search-view-more-link:hover {
  color: var(--phc-teal);
  text-decoration: underline;
}

.search-view-more-link span:first-child {
  font-size: 0.92rem;
  font-weight: 700;
}

.search-view-more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  height: auto;

  background: none;
}

.search-view-more-link:hover .search-view-more-icon {
  transform: translateX(3px);
}

/* bottom fade only when results actually overflow */
.search-results-panel::after {
  content: "";
  position: sticky;
  left: 0;
  bottom: 0;
  display: block;
  height: 22px;
  margin-top: -22px;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 85%);
  transition: opacity 0.18s ease;
}

.search-results.has-overflow .search-results-panel::after {
  opacity: 1;
}

/* optional: hide fade when user reaches bottom */
.search-results.is-at-bottom .search-results-panel::after {
  opacity: 0;
}

/* mobile */
@media (max-width: 480px) {
  .search-card {
    padding: 0.8rem;
    border-radius: 14px;
  }

  .search-bar {
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    padding: 0.45rem;
  }

  .search-input {
    padding: 0.55rem 0.7rem;
    font-size: 0.88rem;
  }

  .search-input::placeholder {
    font-size: 0.85rem;
    letter-spacing: 0.01em;
  }

  .search-btn {
    padding: 0.7rem 0.8rem;
    font-size: 0.88rem;
  }

  .search-results-panel {
    max-height: min(180px, 40vh);
  }

  .search-result-link {
    padding: 0.72rem 0.8rem;
  }

  .search-result-title {
    font-size: 0.9rem;
  }

  .search-result-meta {
    font-size: 0.75rem;
  }

  .search-results-footer {
    padding: 0.7rem 0.8rem;
  }

  .search-view-more-link {
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
  }

  .search-view-more-link span:first-child {
    font-size: 0.88rem;
  }

  .search-view-more-icon {
    width: 26px;
    height: 26px;
  }

  .phc-aside-grid {
    grid-template-columns: 1fr;
  }

  .quote-card--inline .quote-rotator {
    min-height: 175px !important;
  }

  .quote-track blockquote,
  .quote-slide blockquote {
    font-size: clamp(0.85rem, 2vw, 1.02rem) !important;
  }

  .quote-track cite,
  .quote-slide cite {
    font-size: 0.68rem !important;
  }
}

@media (max-width: 400px) {
  .quote-card--inline .quote-rotator {
    min-height: 210px !important;
  }
}

/* =========================
   Content layout
========================= */
.content-grid {
  display: grid;
  align-items: start;
  gap: 1.5rem;
  padding: 2rem 1rem 2rem;
}

.content-stack {
  display: grid;
  gap: 1.5rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 1.25rem;
}

/* =========================
   Typography / labels
========================= */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.8rem;

  color: #8a4b1f;
  /* warm sand / muted orange */
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 0.75rem;
  color: var(--phc-navy);
  font-size: clamp(1.64rem, 2.9vw, 2.25rem);
  line-height: 1.1;
  font-weight: 500;
}

.lede {
  margin-bottom: 1rem;
  color: var(--phc-muted);
  font-size: 1.02rem;
}

.callout-card h3 {
  margin: 0;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(15, 118, 110, 0.25);
  color: var(--phc-navy);
  font-size: 1.15rem;
  font-weight: 800;
}

.section-panel h3,
.award-panel h3,
.resource-category h3,
.material-category h3 {
  margin: 0 0 0.75rem;
  color: var(--phc-navy);
  font-size: 1.08rem;
}

/* =========================
   Jump links
========================= */
.jump-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 1.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.jump-links::-webkit-scrollbar {
  display: none;
}

.jump-links a,
.utility-links li a {
  color: inherit;
}

.jump-links a {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(215, 180, 106, 0.4);
  border-radius: 999px;
  background: rgba(215, 180, 106, 0.14);
  color: #5c481a;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  display: block;
  text-align: center;
}

.jump-links a:hover {
  background: rgba(215, 180, 106, 0.28);
  color: #5c481a;
  box-shadow: none;
  transform: none;
}

.hero-quote-inline {
  display: none;
}

.quote-card--inline {
  max-width: 100%;
}

/* =========================
   Hero quote layout switch
   Desktop: aside rotator
   <= 872px: inline rotator inside hero-copy
========================= */
@media (max-width: 872px) {
  .hero-card {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-quotes {
    display: none;
  }

  .hero-quote-inline {
    display: block;
    margin-top: 1rem;
  }

  .quote-card--inline {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 1rem 1rem 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.92),
        rgba(232, 245, 247, 0.72));
    box-shadow: var(--phc-shadow);
    backdrop-filter: blur(8px);
  }

  .quote-card--inline::before,
  .quote-card--inline::after {
    position: absolute;
    color: rgba(19, 142, 160, 0.14);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
  }

  .quote-card--inline::before {
    content: "“";
    top: 0.35rem;
    left: 0.6rem;
    font-size: 3.2rem;
  }

  .quote-card--inline::after {
    content: "”";
    right: 0.6rem;
    bottom: -0.3rem;
    font-size: 3.2rem;
  }

  .quote-card--inline .quote-track {
    position: relative;
    z-index: 1;
  }

  .quote-card--inline .quote-rotator {
    position: relative;
    min-height: 155px;
    overflow: hidden;
  }

  .quote-card--inline .quote-slide {
    position: absolute;
    inset: 0;
    padding: 0.15rem 0 1.8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition:
      opacity 0.6s ease,
      transform 0.6s ease,
      visibility 0.6s ease;
  }

  .quote-card--inline .quote-slide.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .quote-card--inline blockquote {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--phc-navy);
    font-size: clamp(1.01rem, 2.53vw, 1.13rem);
    line-height: 1.5;
    font-weight: 500;
  }

  .quote-card--inline cite {
    display: block;
    max-width: 42ch;
    margin-top: 0.55rem;
    padding-left: 1.25rem;
    color: var(--phc-muted);
    font-size: clamp(0.72rem, 1.7vw, 0.8rem);
    line-height: 1.35;
    font-style: normal;
    font-weight: 600;
  }

  .quote-card--inline cite::before {
    content: "— ";
    color: var(--phc-gold);
    font-weight: 700;
  }
}

@media (max-width: 768px) {
  .jump-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 500px) {
  .industry-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  /*.jump-links {
    grid-template-columns: 1fr;
  }*/
}

@media (max-width: 450px) {
  .quote-rotator {
    min-height: 220px !important;
  }
}

@media (max-width: 380px) {
  .jump-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 370px) {

  .quote-track blockquote,
  .quote-slide blockquote {
    padding-left: 1.5rem;
    font-size: 0.8rem;
  }

  /* Keep the larger value from the duplicate rules */
  .quote-rotator {
    min-height: 270px !important;
  }
}

/* =========================
   Shared lists
========================= */
.contact-list,
.mini-list,
.resource-list,
.materials-list,
.awards-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li,
.mini-list li,
.resource-list li,
.materials-list li,
.awards-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--phc-border);
}

.contact-list li:first-child,
.mini-list li:first-child,
.resource-list li:first-child,
.materials-list li:first-child,
.awards-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

/* =========================
   Shared icons
========================= */
.contact-icon,
.list-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 14px;
  color: var(--phc-teal);
  background: linear-gradient(135deg, rgba(19, 142, 160, 0.12), rgba(15, 118, 110, 0.16));
  font-size: 0.98rem;
}

.phc-feature-list {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.phc-feature-list li {
  position: relative;
  padding: 0.95rem 1rem 0.95rem 3rem;
  border: 1px solid var(--phc-border);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f7fbfc);
  color: var(--phc-text);
  font-weight: 400;
  line-height: 1.65;
  box-shadow: 0 8px 18px rgba(16, 59, 77, 0.04);
}

.phc-feature-list li::before {
  content: "\f058";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: var(--phc-teal);
  font-size: 1rem;
}

/* Remove default same icon */
.phc-feature-list li::before {
  content: none;
}

/* Base icon styling */
.phc-feature-list li {
  position: relative;
  padding-left: 3.5rem;
}

.phc-feature-list li::after {
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: 1rem;

  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;

  color: var(--phc-teal);
  background: linear-gradient(135deg,
      rgba(19, 142, 160, 0.12),
      rgba(15, 118, 110, 0.16));

  box-shadow: 0 4px 10px rgba(16, 59, 77, 0.08);
}

/* Individual icons */
.phc-feature-list li:nth-child(1)::after {
  content: "\f21e";
  /* shield - safety */
}

.phc-feature-list li:nth-child(2)::after {
  content: "\f3ed";
  /* gavel - anti-retaliation */
}

.phc-feature-list li:nth-child(3)::after {
  content: "\f0e7";
  /* bolt - emergency */
}

.phc-feature-list li:nth-child(4)::after {
  content: "\f06d";
  /* fire - hazards */
}

.phc-feature-list li:nth-child(5)::after {
  content: "\f132";
  /* user-secret - trafficking */
}

.phc-feature-list li:nth-child(6)::after {
  content: "\f53a";
  /* file-invoice-dollar - wages */
}

.phc-feature-list--two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
  margin-top: 1.25rem;
}

.industry-pill {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-height: 68px;
  padding: 1rem;

  border: 1px solid rgba(232, 136, 60, 0.14);
  border-radius: var(--radius-lg);

  /* subtle warm-neutral background */
  background: linear-gradient(180deg,
      rgba(232, 136, 60, 0.05),
      #ffffff);

  box-shadow: 0 8px 18px rgba(16, 59, 77, 0.05);
  color: var(--phc-navy);
  font-weight: 600;
  line-height: 1.35;
}

/* icon styling */
.industry-pill i {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 12px;

  /* soft warm + teal blend */
  background: linear-gradient(135deg,
      rgba(232, 136, 60, 0.10),
      rgba(232, 136, 60, 0.04));

  color: #8a4b1f;
  font-size: 0.95rem;
  flex: 0 0 auto;
}

@media (max-width: 1100px) {
  .industry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {

  .phc-feature-list--two-col,
  .industry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-rotator {
    min-height: 310px;
  }
}

@media (max-width: 768px) {

  .phc-feature-list li,
  .industry-pill {
    padding: 0.95rem;
  }

  .phc-feature-list li {
    padding-left: 2.75rem;
  }
}

@media (max-width: 480px) {
  .phc-feature-list li {
    padding-left: 3.75rem;
  }
}

/* =========================
   Link lists
========================= */
.resource-list a,
.materials-list a,
.awards-list a,
.mini-list a,
.contact-list a {
  color: var(--phc-aqua);
  font-weight: 600;
  text-decoration: none;
}

.resource-list a:hover,
.materials-list a:hover,
.awards-list a:hover,
.mini-list a:hover,
.contact-list a:hover {
  color: var(--phc-teal);
  text-decoration: underline;
}

/* =========================
   Resource / materials grids
========================= */
.resource-grid,
.materials-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.resource-category,
.material-category {
  min-height: 100%;
  padding: 1.1rem;
  border: 1px solid var(--phc-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(232, 245, 247, 0.8), rgba(255, 255, 255, 1)),
    url("https://images.unsplash.com/photo-1586773860418-d37222d8fce3?auto=format&fit=crop&w=1200&q=80") center / cover no-repeat;
  background-blend-mode: screen;
}

/* =========================
   Sidebar
========================= */
.sidebar-stack {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 1.25rem;
}

.sidebar-panel {
  overflow: hidden;
  border: 1px solid var(--phc-border);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 59, 77, 0.08);
}

.sidebar-panel .panel-top {
  padding: 1.15rem 1.15rem 0.9rem;
  border-bottom: 1px solid var(--phc-border);
  background: linear-gradient(135deg, var(--phc-sky), #ffffff);
}

.sidebar-panel .panel-body {
  padding: 1.15rem;
}

/* =========================
   Awards
========================= */
.award-badge {
  display: grid;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid var(--phc-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, #f7fafc);
}

.award-badge img {
  width: min(100%, 220px);
  margin: 0 auto;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.award-card {
  min-height: 100%;
}

.award-card-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--phc-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #fff, #f7fafc);
  box-shadow: 0 10px 24px rgba(16, 59, 77, 0.06);
  text-align: center;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.award-card-link:hover {
  /*transform: translateY(-2px);*/
  border-color: rgba(15, 118, 110, 0.25);
  box-shadow: 0 14px 30px rgba(16, 59, 77, 0.12);
  text-decoration: none;
}

.award-card-logo {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.award-card-logo2 {
  width: 100%;
  max-width: 140px;
  margin: 0 auto 1rem;
  object-fit: contain;
}

.award-card h3 {
  margin: 0 0 0.5rem;
  color: var(--phc-navy);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
}

.award-card p {
  margin: 0;
  color: var(--phc-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* =========================
   Awards auto focus (desktop only)
========================= */

@media (min-width: 769px) {
  .award-card {
    transition: transform 0.4s ease;
  }

  .award-card .award-card-link {
    transition:
      box-shadow 0.4s ease,
      border-color 0.4s ease,
      background-color 0.4s ease;
    border-color: var(--phc-border);
    background: linear-gradient(180deg, #fff, #f7fafc);
    box-shadow: 0 8px 18px rgba(16, 59, 77, 0.05);
  }

  .award-card.is-active {
    transform: scale(1.04);
  }

  .award-card.is-active .award-card-link {
    /* warm orange accent */
    border-color: #f28732;

    /* soft glow using same hue */
    box-shadow: 0 18px 40px rgba(242, 135, 50, 0.28);

    /* very subtle warm background tint */
    background: linear-gradient(180deg, #ffffff, #fff4ec);
  }
}

/* =========================
   Tabs / accordion
========================= */
.tab-panel[hidden],
.accordion-panel[hidden] {
  display: none;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.tab-button {
  padding: 0.6rem 0.9rem;
  border: 1px solid rgba(15, 118, 110, 0.25);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, var(--phc-sky));
  color: var(--phc-navy);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.tab-button:hover,
.tab-button.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--phc-aqua), var(--phc-teal));
  color: #fff;
  box-shadow: 0 6px 14px rgba(16, 59, 77, 0.18);
}

.accordion {
  display: grid;
  gap: 0.75rem;
}

.accordion-item {
  overflow: hidden;
  border: 1px solid var(--phc-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.accordion-trigger {
  width: 100%;
  padding: 1rem 1.1rem;
  border: 0;
  background: transparent;
  color: var(--phc-navy);
  cursor: pointer;
  font-weight: 700;
  text-align: left;
  transition: background 0.2s ease;
}

.accordion-trigger:hover,
.accordion-trigger.is-active {
  background: var(--phc-sky);
}

.accordion-panel {
  padding: 0 1.1rem 1rem;
}

/* =========================
   Contact form
========================= */
.contact-split-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  align-items: stretch;
  overflow: hidden;
  margin-top: 1rem;
  border: 1px solid var(--phc-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(16, 59, 77, 0.08);
}

.contact-split-info {
  position: relative;
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(16, 59, 77, 0.92), rgba(15, 111, 125, 0.86)),
    url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1200&q=80") center / cover no-repeat;
}

.contact-split-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18));
}

.contact-split-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.55rem;
  height: 100%;
  padding: 1rem;
  color: #fff;
}

.contact-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 0.3rem;
  padding: 0.28rem 0.6rem;

  border: 1px solid rgba(255, 255, 255, 0.9);
  /* orange border */
  border-radius: 999px;

  background: rgba(242, 135, 50, 0.8);
  /* soft orange tint */
  color: #fff;

  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  backdrop-filter: blur(6px);
}

.kicker-dot {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #fff;
}

.contact-split-content h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.contact-copy {
  max-width: 55ch;
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-info-list {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.1rem;
  padding: 0.45rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.5rem 0.65rem;
  border: 1px solid #e3edf2;
  border-radius: 10px;
  background: #fff;
  color: var(--phc-navy);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.3;
  box-shadow: 0 2px 8px rgba(16, 59, 77, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

a.contact-info-item:hover {
  color: var(--phc-navy);
  text-decoration: none;
  transform: translateY(-1px);
  border-color: #d4e3e9;
  box-shadow: 0 6px 14px rgba(16, 59, 77, 0.08);
}

.contact-info-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 8px;
  background: #f1f6f8;
  color: var(--phc-teal);
  font-size: 0.78rem;
}

.contact-privacy {
  margin-top: 0.5rem;
  padding: 0.6rem 0.7rem 0.6rem 0.8rem;
  border: 1px solid #d7e9ee;
  border-left: 4px solid var(--phc-teal);
  border-radius: 10px;
  background: #f1f8fa;
  color: #0f3b4d;
  font-size: 0.74rem;
  line-height: 1.45;
}

.contact-privacy strong {
  color: var(--phc-teal);
  font-weight: 700;
}

.contact-privacy i {
  margin-right: 0.35rem;
  color: var(--phc-teal);
}

.contact-split-form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  padding: 1.2rem;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #f4f9fa 100%);
}

.contact-form-title {
  margin: 0 0 0.8rem;
  color: var(--phc-navy);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.contact-form-intro {
  margin: -0.3rem 0 0.85rem;
  color: var(--phc-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.contact-modern-form {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1rem;
  border: 1px solid rgba(16, 59, 77, 0.08);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 12px 30px rgba(16, 59, 77, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
}

.contact-modern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.contact-modern-grid input,
.contact-modern-grid select {
  margin-bottom: 0 !important;
}

.contact-modern-field {
  position: relative;
  display: grid;
  gap: 0.28rem;
}

.contact-modern-field label {
  position: absolute;
  top: -7px;
  left: 10px;
  padding: 0 6px;
  background: #fff;
  color: var(--phc-teal);
  font-size: 0.7rem;
  font-weight: 700;
}

.contact-modern-field input,
.contact-modern-field select,
.contact-modern-field textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid #d8e6eb;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfe 100%);
  color: var(--phc-text);
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.4;
  appearance: none;
  box-shadow: 0 1px 2px rgba(16, 59, 77, 0.03);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease,
    background 0.18s ease;
}

.contact-modern-field textarea {
  min-height: 120px;
  resize: vertical;
  margin-bottom: 0 !important;
}

.contact-modern-field input::placeholder,
.contact-modern-field textarea::placeholder {
  color: #8a98a3;
}

.contact-modern-field input:hover,
.contact-modern-field select:hover,
.contact-modern-field textarea:hover {
  border-color: #bfd5dc;
  background: #ffffff;
}

.contact-modern-field input:focus,
.contact-modern-field select:focus,
.contact-modern-field textarea:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.48);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
  background: #ffffff;
}

.contact-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.05rem;
}

.contact-choice-pill {
  position: relative;
  cursor: pointer;
}

.contact-choice-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.contact-choice-pill span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 0.55rem 0.85rem;
  border: 1px solid #d9e4ea;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #f7fbfc);
  color: var(--phc-muted);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(16, 59, 77, 0.04);
  transition: all 0.18s ease;
}

.contact-choice-pill span:hover {
  border-color: #bfd5dc;
  transform: translateY(-1px);
}

.contact-choice-pill input:checked+span {
  border-color: transparent;
  background: linear-gradient(135deg, var(--phc-aqua), var(--phc-teal));
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 59, 77, 0.16);
}

.contact-modern-actions {
  margin-top: 0.2rem;
}

.contact-modern-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 1.05rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--phc-aqua), var(--phc-teal));
  color: #fff;
  cursor: pointer;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(16, 59, 77, 0.16);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.contact-modern-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(16, 59, 77, 0.2);
  filter: saturate(1.05);
}

.contact-modern-btn:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  filter: grayscale(0.1);
}

.contact-modern-form input:focus,
.contact-modern-form select:focus,
.contact-modern-form textarea:focus,
.contact-modern-form button:focus {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}

.contact-modern-form input:focus-visible,
.contact-modern-form select:focus-visible,
.contact-modern-form textarea:focus-visible,
.contact-modern-form button:focus-visible {
  outline: 3px solid #0b5fff;
  outline-offset: 3px;
}

.contact-modern-form input:focus:not(:focus-visible),
.contact-modern-form select:focus:not(:focus-visible),
.contact-modern-form textarea:focus:not(:focus-visible),
.contact-modern-form button:focus:not(:focus-visible) {
  outline: none;
}

.contact-modern-field.is-invalid input,
.contact-modern-field.is-invalid select,
.contact-modern-field.is-invalid textarea {
  border-color: #b42318;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.12);
}

.contact-modern-field.is-valid input,
.contact-modern-field.is-valid select,
.contact-modern-field.is-valid textarea {
  border-color: #067647;
  box-shadow: 0 0 0 4px rgba(6, 118, 71, 0.1);
}

.contact-modern-field.is-invalid input:focus,
.contact-modern-field.is-invalid select:focus,
.contact-modern-field.is-invalid textarea:focus {
  border-color: #b42318;
  box-shadow:
    0 0 0 4px rgba(180, 35, 24, 0.12),
    0 0 0 1px #b42318;
}

.form-error {
  min-height: 1.25rem;
  margin-top: 0.2rem;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.contact-form-status {
  margin: 0.75rem 0 0;
  color: #067647;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

.contact-form-status.is-error {
  color: #b42318;
}

.contact-form-status:focus {
  outline: none;
}

.contact-required-note {
  margin: 0 0 0.25rem;
  color: var(--phc-muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.copied-msg {
  margin-left: auto;
  color: #067647;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(2px);
  transition: all 0.2s ease;
}

.copied-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Toast
========================= */
.contact-form-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 10;
  width: calc(100% - 32px);
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -60%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.contact-form-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.contact-form-toast--error {
  background: #b42318;
  color: #fff;
}

.contact-form-toast--success {
  background: #067647;
  color: #fff;
}

/* =========================
   Overview / misc
========================= */
.overview-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* =========================
   Quick access accordion
========================= */
.quick-access-card {
  gap: 0.85rem;
}

.quick-access-accordion {
  gap: 0.75rem;
}

.quick-access-accordion .accordion-item {
  overflow: hidden;
  border: 1px solid var(--phc-border);
  border-radius: var(--radius-md);
  background: #fff;
}

.quick-access-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 1rem;
  background: transparent;
}

.quick-access-trigger-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.quick-access-trigger-text {
  color: var(--phc-navy);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.quick-access-chevron {
  flex: 0 0 auto;
  color: var(--phc-teal);
  transition: transform 0.2s ease;
}

.quick-access-trigger[aria-expanded="true"] .quick-access-chevron {
  transform: rotate(180deg);
}

.quick-access-panel {
  padding: 0 1rem 1rem;
}

.quick-access-panel p {
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.quick-access-panel .btn-submit,
.quick-access-panel .btn-reporting {
  margin-top: 0.35rem;
}

/* =========================
   PHC dashboard — aside / sidebar
========================= */
.phc-dashboard-card {
  gap: 0.75rem;

  /* Subtle sand / warm-neutral tint */
  background: linear-gradient(180deg,
      rgba(232, 136, 60, 0.06),
      rgba(255, 255, 255, 0.94));

  border: 1px solid rgba(232, 136, 60, 0.14);
  box-shadow: 0 16px 36px rgba(16, 59, 77, 0.10);
}

.phc-dashboard--aside {
  display: grid;
  gap: 0.75rem;
  padding: 0;
  background: transparent;
}

.phc-dashboard__header--aside {
  margin: 0;
  text-align: left;
}

/* Keep text soft and readable */
.phc-dashboard__intro--aside {
  margin: 0;
  color: var(--phc-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* Subtle warm divider under title */
.phc-dashboard-card h3 {
  border-bottom: 2px solid rgba(232, 136, 60, 0.18);
  padding-bottom: 0.5rem;
  color: #8a4b1f;
}

.phc-aside-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

/* Keep stat cards clean + airy */
.phc-dashboard--aside .phc-stat-card {
  padding: 0.9rem;
  border: 1px solid rgba(16, 42, 67, 0.08);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbfd);
  box-shadow: 0 8px 20px rgba(16, 42, 67, 0.06);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    box-shadow 0.25s ease;
}

.phc-dashboard--aside .phc-stat-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.phc-dashboard--aside .phc-stat-card:hover {
  box-shadow: 0 10px 24px rgba(16, 42, 67, 0.08);
}

.phc-dashboard--aside .phc-stat-card__top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

/* Subtle warm + teal blend (very soft) */
.phc-dashboard--aside .phc-stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg,
      rgba(19, 142, 160, 0.12),
      rgba(15, 118, 110, 0.16),
      rgba(232, 136, 60, 0.08));
  color: var(--phc-teal);
}

.phc-dashboard--aside .phc-stat-card__icon i {
  font-size: 0.95rem;
}

.phc-dashboard--aside .phc-stat-card__number {
  margin: 0;
  color: #102a43;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.phc-dashboard--aside .phc-stat-card__label {
  margin: 0;
  color: #486581;
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.phc-stat-card--hero {
  padding: 1rem !important;
  background: linear-gradient(135deg, #0b5cab 0%, #0f7a5c 100%) !important;
}

.phc-stat-card--hero .phc-stat-card__icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.phc-stat-card--hero .phc-stat-card__number,
.phc-stat-card--hero .phc-stat-card__label {
  color: #fff;
}

.phc-stat-card--hero .phc-stat-card__number {
  font-size: clamp(1.7rem, 3vw, 2rem);
}

.phc-stat-card--hero .phc-stat-card__label {
  font-size: 0.88rem;
  line-height: 1.4;
}

.phc-stat-card--compact {
  min-height: 100%;
}

.phc-stat-card--compact .phc-stat-card__number {
  font-size: 1.15rem;
}

.phc-stat-card--compact .phc-stat-card__label {
  font-size: 0.76rem;
  line-height: 1.3;
}

.phc-dashboard__footer--aside {
  display: flex;
  justify-content: flex-end;
}

/* Softer, warm-neutral pill */
.phc-dashboard__updated--aside {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(232, 136, 60, 0.10);
  color: #8a4b1f;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.phc-dashboard__updated--aside i {
  font-size: 0.7rem;
}

/* =========================
   Responsive
========================= */
@media (max-width: 1024px) {

  .content-grid,
  .intro-grid,
  .resource-grid,
  .materials-grid {
    grid-template-columns: 1fr;
  }

  .sidebar-stack {
    position: static;
  }

  /* =========================================
     OVERVIEW STACK ORDER FIX
     ========================================= */

  /* Flatten wrapper so children can reorder */
  .overview-content {
    display: contents;
  }

  /* Text order */
  .overview-content>.section-label {
    order: 1;
  }

  .overview-content>.section-title {
    order: 2;
  }

  .overview-content>.lede {
    order: 3;
  }

  .overview-content>p:not(.lede):nth-of-type(2) {
    order: 4;
  }

  .overview-content>p:not(.lede):nth-of-type(3) {
    order: 5;
  }

  /* Dashboard comes next */
  .intro-grid>.phc-dashboard-card {
    order: 6;
    margin-top: 0.5rem;
  }

  /* Jump links LAST */
  .overview-content>.jump-links {
    order: 7;
    margin-top: 1rem;
  }
}

@media (max-width: 900px) {
  .contact-split-card {
    grid-template-columns: 1fr;
  }

  .contact-split-form-wrap {
    order: 1;
  }

  .contact-split-info {
    order: 2;
    min-height: auto;
  }
}

@media (min-width: 769px) {
  .quick-access-accordion .accordion-item {
    border: 0;
    border-top: 1px solid var(--phc-border);
    border-radius: 0;
    background: transparent;
  }

  .quick-access-accordion .accordion-item:first-child {
    border-top: 0;
  }

  .quick-access-trigger {
    padding: 0.9rem 0 0.4rem;
    cursor: default;
  }

  .quick-access-trigger:hover,
  .quick-access-trigger.is-active {
    background: transparent;
  }

  .quick-access-chevron {
    display: none;
  }

  .quick-access-panel {
    display: block !important;
    padding: 0 0 0.9rem 3.05rem;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 0.75rem 0 0.5rem;
  }

  .hero-card {
    gap: 0.75rem;
    padding: 0.75rem 0 1rem;
  }

  .hero-copy {
    padding: 1rem;
    border-radius: 16px;
  }

  .hero h1 {
    margin-bottom: 0.5rem;
    font-size: clamp(1.75rem, 8vw, 2.4rem);
  }

  .hero-lead {
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .hero-actions .btn-modern {
    width: auto;
    flex: 1;
    justify-content: center;
  }

  .btn-modern {
    width: 100%;
    padding: 0.8rem 1rem;
  }

  .search-card {
    padding: 0.9rem;
  }

  .search-tags {
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .search-tags::-webkit-scrollbar {
    display: none;
  }

  .search-tag {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .content-grid {
    gap: 1rem;
    padding: 1rem 0.75rem 2rem;
  }

  .content-stack {
    gap: 1rem;
  }

  .content-card,
  .search-card,
  .quote-card,
  .callout-card {
    border-radius: 16px;
  }

  .content-card,
  .callout-card {
    padding: 1rem;
  }

  .section-title {
    font-size: 1.35rem;
    line-height: 1.15;
  }

  .lede,
  p,
  li {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .overview-content p {
    margin-bottom: 0.2rem;
  }

  .overview-content .lede {
    margin-bottom: 0.3rem;
  }

  .callout-card {
    gap: 0.5rem;
    padding: 1rem;
  }

  .contact-list li {
    gap: 0.6rem;
    padding: 0.7rem 0;
  }

  .contact-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 10px;
    font-size: 0.9rem;
  }

  .callout-card .contact-list li>div {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .btn-submit,
  .btn-reporting {
    padding: 0.45rem 0.7rem;
    font-size: 0.8rem;
  }

  .awards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 0.85rem;
    overflow: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .award-card {
    flex: initial;
    min-width: 0;
  }

  .award-card-link {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem;
    text-align: left;
    border-radius: 16px;
  }

  .award-card-logo,
  .award-card-logo2 {
    width: 100%;
    max-width: 72px;
    margin: 0 auto;
  }

  .award-card-link h3 {
    margin: 0 0 0.3rem;
    font-size: 0.98rem;
    line-height: 1.25;
  }

  .award-card-link p {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .quick-access-card {
    padding: 1rem;
  }

  .quick-access-trigger {
    padding: 0.9rem;
  }

  .quick-access-trigger-text {
    font-size: 0.92rem;
  }

  .quick-access-panel {
    padding: 0 0.9rem 0.9rem;
  }

  .quick-access-panel p {
    font-size: 0.88rem;
  }

  .quick-access-panel .btn-submit,
  .quick-access-panel .btn-reporting {
    width: 100%;
    text-align: center;
  }

  .contact-split-content,
  .contact-split-form-wrap {
    padding: 1rem;
  }

  .contact-form-title {
    font-size: 1.1rem;
  }

  .contact-info-list {
    padding: 0.4rem;
  }

  .contact-modern-grid {
    grid-template-columns: 1fr;
  }

  .contact-modern-form {
    gap: 0.6rem;
    padding: 0.85rem;
  }

  .contact-modern-field input,
  .contact-modern-field select,
  .contact-modern-field textarea {
    padding: 0.7rem 0.8rem;
    font-size: 0.85rem;
  }

  .contact-modern-field textarea {
    min-height: 92px;
  }

  .contact-modern-btn {
    padding: 0.85rem 1rem;
    font-size: 1rem;
  }

  .phc-dashboard-card {
    gap: 0.65rem;
  }

  .phc-dashboard__intro--aside {
    font-size: 0.86rem;
  }

  .phc-aside-grid {
    gap: 0.55rem;
  }

  .phc-dashboard--aside .phc-stat-card {
    padding: 0.8rem;
    border-radius: 14px;
  }

  .phc-dashboard--aside .phc-stat-card__top {
    gap: 0.55rem;
    margin-bottom: 0.4rem;
  }

  .phc-dashboard--aside .phc-stat-card__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
  }

  .phc-dashboard--aside .phc-stat-card__icon i {
    font-size: 0.85rem;
  }

  .phc-stat-card--hero .phc-stat-card__number {
    font-size: 1.5rem;
  }

  .phc-stat-card--compact .phc-stat-card__number {
    font-size: 1.02rem;
  }

  .phc-dashboard--aside .phc-stat-card__label {
    font-size: 0.72rem;
  }

  .phc-dashboard__updated--aside {
    font-size: 0.68rem;
  }
}

@media (max-width: 640px) {
  .search-result-title {
    font-size: 0.85rem !important;
    width: unset !important;
  }
}

@media (prefers-reduced-motion: reduce) {

  .contact-modern-field input,
  .contact-modern-field select,
  .contact-modern-field textarea,
  .contact-modern-btn,
  .form-error,
  .quote-slide,
  .btn-modern,
  .btn-submit,
  .btn-reporting,
  .search-btn,
  .search-tag,
  .award-card-link {
    transition: none !important;
  }
}

/* =========================
   Extra responsive fix for 625px and below
========================= */
@media (max-width: 625px) {

  .hero,
  .search-wrap,
  .content-grid {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .hero-card,
  .intro-grid,
  .resource-grid,
  .materials-grid,
  .contact-modern-grid,
  .stat-grid {
    grid-template-columns: 1fr !important;
  }

  .hero-card,
  .content-grid,
  .content-stack,
  .intro-grid,
  .resource-grid,
  .materials-grid,
  .awards-grid {
    gap: 0.85rem;
  }

  .hero-copy,
  .content-card,
  .callout-card,
  .section-panel,
  .award-panel,
  .search-card,
  .quote-card,
  .sidebar-panel .panel-top,
  .sidebar-panel .panel-body,
  .contact-split-content,
  .contact-split-form-wrap,
  .contact-modern-form {
    padding: 0.9rem;
  }

  .hero-copy,
  .content-card,
  .callout-card,
  .section-panel,
  .award-panel,
  .search-card,
  .quote-card,
  .contact-split-card,
  .accordion-item,
  .sidebar-panel {
    border-radius: 14px;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 8vw, 2.1rem);
    line-height: 1.1;
  }

  .hero-lead,
  .lede,
  p,
  li {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .section-title {
    font-size: 1.25rem;
    line-height: 1.15;
  }

  .eyebrow,
  .section-label {
    font-size: 0.74rem;
  }

  .btn-modern,
  .btn-submit,
  .btn-reporting,
  .contact-modern-btn,
  .quick-access-panel .btn-submit,
  .quick-access-panel .btn-reporting {
    width: 100%;
    text-align: center;
  }

  .search-bar {
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding: 0.75rem;
    border-radius: 18px;
  }

  .search-input,
  .search-btn {
    width: 100%;
  }

  .search-btn {
    padding: 0.8rem 1rem;
  }

  .search-tags,
  .jump-links,
  .awards-grid {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .search-tags::-webkit-scrollbar,
  .jump-links::-webkit-scrollbar,
  .awards-grid::-webkit-scrollbar {
    display: none;
  }

  .search-tag,
  .jump-links a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .award-card {
    flex: 0 0 88%;
  }

  .industry-pill,
  .stat-pill,
  .award-card-link,
  .resource-category,
  .material-category {
    padding: 0.9rem;
  }

  .industry-pill {
    min-height: auto;
    align-items: flex-start;
  }

  .industry-pill span,
  .award-card h3,
  .award-card p,
  .phc-dashboard--aside .phc-stat-card__label,
  .quick-access-trigger-text,
  .contact-info-item,
  .contact-list li>div,
  .mini-list li,
  .resource-list li,
  .materials-list li,
  .awards-list li {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .contact-split-card {
    grid-template-columns: 1fr !important;
  }

  .contact-split-info,
  .contact-split-form-wrap,
  .overview-content,
  .callout-card,
  .award-card,
  .resource-category,
  .material-category,
  .phc-dashboard--aside .phc-stat-card {
    min-width: 0;
  }

  .contact-form-title {
    font-size: 1rem !important;
  }

  .contact-form-intro,
  .contact-required-note,
  .form-error,
  .contact-form-status,
  .contact-privacy {
    font-size: 0.78rem !important;
  }

  .contact-modern-field input,
  .contact-modern-field select,
  .contact-modern-field textarea {
    padding: 0.68rem 0.78rem !important;
    font-size: 0.84rem !important;
    margin-bottom: 0.2rem !important;
  }

  .contact-modern-field textarea {
    min-height: 88px !important;
  }

  .contact-choice-pill {
    width: 100%;
  }

  .contact-choice-pill span {
    width: 100%;
    min-width: 0;
  }

  .quick-access-trigger {
    padding: 0.8rem 0.85rem;
  }

  .quick-access-panel {
    padding: 0 0.85rem 0.85rem;
  }

  .phc-dashboard--aside .phc-stat-card {
    padding: 0.75rem;
  }

  .phc-dashboard--aside .phc-stat-card__number {
    font-size: 1.1rem;
  }

  .phc-dashboard--aside .phc-stat-card__label,
  .phc-dashboard__intro--aside,
  .phc-dashboard__updated--aside {
    font-size: 0.72rem;
  }

  .quote-track blockquote,
  .quote-slide blockquote {
    padding-left: 1.5rem;
    font-size: 0.9rem;
  }

  .quote-track cite,
  .quote-slide cite {
    padding-left: 1rem;
    font-size: 0.76rem;
  }
}

@media (max-width: 520px) {

  .phc-feature-list--two-col {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

@media (max-width: 514px) {

  .hero-actions,
  .contact-choice-row {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =========================
   Featured Projects
========================= */

.featured-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.featured-project-card {
  height: 100%;
  padding: 1.25rem;
  border: 1px solid var(--phc-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #ffffff, #f7fbfc);
  box-shadow: 0 10px 24px rgba(16, 59, 77, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.featured-project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.25);
  box-shadow: 0 14px 30px rgba(16, 59, 77, 0.12);
}

.featured-project-card h3 {
  margin: 0 0 0.6rem;
  color: var(--phc-navy);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.featured-project-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.featured-project-card li {
  position: relative;
  padding: 0.6rem 0 0.6rem 1.4rem;
  border-top: 1px solid var(--phc-border);
  color: var(--phc-text);
  font-size: 0.92rem;
  line-height: 1.55;
}

.featured-project-card li:first-child {
  border-top: 0;
  padding-top: 0;
}

.featured-project-card li::before {
  content: "";
  position: absolute;
  top: 0.9rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--phc-teal);
}

/* Responsive */
@media (max-width: 900px) {
  .featured-projects-grid {
    grid-template-columns: 1fr;
  }
}

.phc-subheading {
  margin: 1.5rem 0 0.8rem;
  color: var(--phc-navy);
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 600;
}

/* =========================
   Mobile contact card
   Deduplicated: kept the more complete version with:
   - mobile label badge
   - 2-column mobile form layout
   - textarea / actions full-width behavior
========================= */

.contact-mobile-simple {
  display: none;
}

@media (max-width: 768px) {
  .contact-split-card {
    display: none;
  }

  .contact-mobile-simple {
    display: block;
    margin-top: 1rem;
    overflow: hidden;
    border: 1px solid var(--phc-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(16, 59, 77, 0.08);
  }

  /* top hero area = desktop left panel vibe */
  .contact-mobile-hero {
    position: relative;
    background:
      linear-gradient(135deg, rgba(16, 59, 77, 0.92), rgba(15, 111, 125, 0.86)),
      url("https://images.unsplash.com/photo-1576091160550-2173dba999ef?auto=format&fit=crop&w=1200&q=80") center / cover no-repeat;
  }

  .contact-mobile-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.18));
  }

  .contact-mobile-hero-content {
    position: relative;
    z-index: 1;
    padding: 1rem;
    color: #fff;
  }

  .contact-mobile-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    width: fit-content;
    margin-bottom: 0.6rem;
    padding: 0.28rem 0.6rem;
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(242, 135, 50, 0.8);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
  }

  .contact-mobile-title {
    margin: 0 0 0.45rem;
    color: #fff;
    font-size: clamp(1.4rem, 5vw, 1.9rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .contact-mobile-intro {
    margin: 0 0 0.85rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .contact-mobile-actions {
    display: grid;
    gap: 0.45rem;
    padding: 0.45rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
  }

  .contact-mobile-action {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 42px;
    padding: 0.5rem 0.65rem;
    border: 1px solid #e3edf2;
    border-radius: 10px;
    background: #fff;
    color: var(--phc-navy);
    text-decoration: none;
    font-size: 0.82rem;
    line-height: 1.3;
    box-shadow: 0 2px 8px rgba(16, 59, 77, 0.05);
  }

  .contact-mobile-action i {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1.8rem;
    height: 1.8rem;
    border-radius: 8px;
    background: #f1f6f8;
    color: var(--phc-teal);
    font-size: 0.78rem;
  }

  .contact-mobile-action:hover {
    color: var(--phc-navy);
    text-decoration: none;
  }

  #emailTextMobile {
    overflow-wrap: anywhere;
  }

  .contact-mobile-simple .contact-modern-form {
    padding: 0.85rem 1rem 0.25rem;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f4f9fa 100%);
    box-shadow: none;
    backdrop-filter: none;
  }

  .contact-mobile-note {
    margin: 0 1rem 1rem;
    padding: 0.6rem 0.7rem 0.6rem 0.8rem;
    border: 1px solid #d7e9ee;
    border-left: 4px solid var(--phc-teal);
    border-radius: 10px;
    background: #f1f8fa;
    color: #0f3b4d;
    font-size: 0.74rem;
    line-height: 1.45;
  }

  .contact-mobile-note i {
    margin-right: 0.35rem;
    color: var(--phc-teal);
  }

  /* make form grid */
  .contact-mobile-simple .contact-modern-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  /* each field */
  .contact-mobile-simple .contact-modern-field {
    margin: 0;
  }

  /* textarea spans full width */
  .contact-mobile-simple .contact-modern-field:has(textarea) {
    grid-column: 1 / -1;
  }

  /* recaptcha + button full width */
  .contact-mobile-simple .contact-modern-actions {
    grid-column: 1 / -1;
  }

  /* status + note full width */
  .contact-mobile-simple .contact-form-status,
  .contact-mobile-simple .contact-mobile-note {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {

  .contact-mobile-simple .contact-modern-form {
    grid-template-columns: 1fr;
  }

  .contact-mobile-simple .contact-modern-field textarea,
  .contact-mobile-simple .contact-modern-actions,
  .contact-mobile-simple .contact-form-status,
  .contact-mobile-simple .contact-mobile-note {
    grid-column: auto;
  }
}

/* =========================================================
   SEARCH TOOL ENHANCEMENTS
   Notes:
   - The base search results shell is defined earlier.
   - The rules below upgrade the search bar, filters, and active chips.
   ========================================================= */

.search-card {
  position: relative;
  width: 100%;
}

/* =========================================================
   SEARCH BAR
   ========================================================= */

.search-bar {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem;
  border: 1px solid var(--phc-border);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 253, 0.96));
  box-shadow:
    0 16px 34px rgba(16, 59, 77, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
}

.search-bar>i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--phc-teal);
  font-size: 0.95rem;
}

.search-input {
  width: 100%;
  min-width: 0;
  padding: 0.25rem 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--phc-navy);
  font-size: 0.98rem;
  line-height: 1.4;
}

.search-input::placeholder {
  color: var(--phc-muted);
}

.search-filter-btn,
.search-btn {
  appearance: none;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.search-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.78rem 0.95rem;
  border: 1px solid var(--phc-border);
  background: #fff;
  color: var(--phc-navy);
  font-size: 0.9rem;
}

.search-filter-btn i {
  color: inherit;
}

.search-filter-btn:hover,
.search-filter-btn:focus-visible {
  border-color: rgba(15, 118, 110, 0.28);
  background: var(--phc-sky);
  transform: translateY(-1px);
}

.search-filter-btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--phc-aqua), var(--phc-teal));
  color: #fff;
  box-shadow: 0 10px 22px rgba(16, 59, 77, 0.14);
}

.search-filter-btn.is-active i {
  color: #fff;
}

.search-btn {
  padding: 0.8rem 1.15rem;
  border: 0;
  background: linear-gradient(135deg, var(--phc-aqua), var(--phc-teal));
  color: #fff;
  font-size: 0.92rem;
  box-shadow: 0 10px 22px rgba(16, 59, 77, 0.14);
}

.search-btn:hover,
.search-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(16, 59, 77, 0.18);
}

/* =========================================================
   ACTIVE FILTERS
   ========================================================= */

.active-search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.active-search-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--phc-teal);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
}

.active-search-filter button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.active-search-filter button:hover,
.active-search-filter button:focus-visible {
  background: rgba(15, 118, 110, 0.1);
}

/* Hide mobile button by default (desktop) */
.contact-btn-mobile {
  display: none;
}

/* Show mobile button only on small screens */
@media (max-width: 768px) {
  .contact-btn-mobile {
    display: inline-flex;
  }

  .contact-btn-desktop {
    display: none;
  }
}

@media (max-width: 350px) {

  /* Force single column layout */
  .contact-mobile-simple .contact-modern-form {
    grid-template-columns: 1fr !important;
    gap: 0.4rem;
  }

  /* Inputs + textarea */
  .contact-modern-field input,
  .contact-modern-field select,
  .contact-modern-field textarea {
    font-size: 0.8rem;
    padding: 0.6rem 0.7rem;
  }

  /* Labels (floating labels) */
  .contact-modern-field label {
    font-size: 0.65rem;
    top: -6px;
    left: 8px;
  }

  /* Reduce textarea height */
  .contact-modern-field textarea {
    min-height: 70px;
  }

  /* Button full width + easier tap */
  .contact-modern-btn {
    font-size: 0.9rem;
    padding: 0.75rem;
  }

  /* Reduce spacing */
  .contact-modern-form {
    padding: 0.7rem;
    gap: 0.5rem;
  }

  /* Error + helper text */
  .form-error,
  .contact-form-status {
    font-size: 0.7rem;
  }

  /* Recaptcha scaling (important for 350px) */
  .g-recaptcha {
    transform: scale(0.85);
    transform-origin: 0 0;
  }
}

.contact-mobile-simple .contact-modern-form {
  display: grid;
}

/* =========================================================
   FILTER PANEL
   ========================================================= */

.search-filters {
  position: relative;
  margin-top: 0.2rem;
}

.search-filters-panel[hidden] {
  display: none;
}

.search-filters-panel {
  position: relative;
  z-index: 20;
  margin-top: 0.25rem;
  padding: 1rem;
  border: 1px solid var(--phc-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 14px 32px rgba(16, 59, 77, 0.08);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease,
    visibility 0.22s ease;
}

.search-filters-panel.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.search-filter-group+.search-filter-group {
  margin-top: 1rem;
}

.search-filter-label {
  margin: 0 0 0.65rem;
  color: var(--phc-navy);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
}

.search-filter-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}

.search-filter-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border: 1px solid var(--phc-border);
  border-radius: 999px;
  background: #fff;
  color: var(--phc-muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.search-filter-chip:hover,
.search-filter-chip:focus-visible {
  border-color: rgba(15, 118, 110, 0.24);
  background: var(--phc-sky);
  color: var(--phc-teal);
  transform: translateY(-1px);
}

.search-filter-chip.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--phc-aqua), var(--phc-teal));
  color: #fff;
  box-shadow: 0 8px 18px rgba(16, 59, 77, 0.14);
}

/* Mobile: dropdown-style scrollable filter list */
@media (max-width: 640px) {
  .search-filters-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: 260px;
    overflow-y: auto;
    padding: 0.7rem;
    border-radius: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .search-filter-label {
    margin-bottom: 0.55rem;
    font-size: 0.8rem;
  }

  .search-filter-chips {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .search-filter-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    padding: 0.65rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: normal;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

  .search-filters-panel,
  .search-filter-chip {
    transition: none !important;
    animation: none !important;
    transform: none !important;
  }
}

/* =========================================================
   RESULTS AREA
   ========================================================= */

.search-results {
  position: absolute;
  top: calc(100% + 0.75rem);
  left: 0;
  width: 100%;
  z-index: 50;
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    visibility 0.24s ease;
}

.search-results.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.search-results-shell {
  overflow: hidden;
  border: 1px solid var(--phc-border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 252, 0.98));
  box-shadow: 0 18px 38px rgba(16, 59, 77, 0.14);
}

.search-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(16, 59, 77, 0.08);
  background: rgba(248, 252, 253, 0.8);
}

.search-results-summary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.search-results-kicker {
  color: var(--phc-teal);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.search-results-titlebar {
  color: var(--phc-navy);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.search-results-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.42rem 0.62rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--phc-teal);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

/* default grid version */
.search-results-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  max-height: 420px;
  overflow-y: auto;
  padding: 1rem;
}

/* compact version */
.search-results-grid--compact {
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

/* =========================================================
   RESULT CARDS
   ========================================================= */

.search-result-card {
  display: flex;
  gap: 0.9rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(16, 59, 77, 0.08);
  border-radius: 20px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(16, 59, 77, 0.05);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.search-result-card:hover,
.search-result-card:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(15, 118, 110, 0.2);
  background: linear-gradient(180deg, #fff, rgba(246, 252, 251, 0.9));
  box-shadow: 0 16px 30px rgba(16, 59, 77, 0.1);
}

.search-result-card--compact {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: start;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(16, 59, 77, 0.05);
}

.search-result-card--compact:hover,
.search-result-card--compact:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 59, 77, 0.08);
}

.search-result-icon-wrap {
  flex: 0 0 auto;
}

.search-result-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(14, 165, 164, 0.16));
  color: var(--phc-teal);
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.search-result-body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

.search-result-topline,
.search-result-headline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.search-result-headline {
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}

.search-result-tag {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  padding: 0.34rem 0.58rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--phc-teal);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
}

.search-result-title {
  margin: 0.5rem 0 0 0;
  color: var(--phc-navy);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  width: 80ch;
}

.search-result-description {
  margin: 0 0 0.5rem;
  color: var(--phc-muted);
  font-size: 0.84rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result-footer {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  color: var(--phc-teal);
  font-size: 0.79rem;
  font-weight: 800;
}

.search-result-footer i {
  font-size: 0.8rem;
}

/* =========================================================
   EMPTY STATE
   ========================================================= */

.search-result-empty {
  padding: 2rem 1.1rem 1.4rem;
  text-align: center;
}

.search-result-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.2rem;
  height: 3.2rem;
  margin-bottom: 0.8rem;
  border-radius: 20px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--phc-teal);
  font-size: 1.1rem;
}

.search-result-empty h3 {
  margin: 0 0 0.35rem;
  color: var(--phc-navy);
  font-size: 1rem;
  font-weight: 800;
}

.search-result-empty p {
  margin: 0;
  color: var(--phc-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

/* =========================================================
   FOOTER LINK
   ========================================================= */

.search-results-footer {
  display: flex;
  justify-content: center;
  padding: 0 1rem 1rem;
}

.search-view-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.82rem 1rem;
  border: 1px solid rgba(15, 118, 110, 0.14);
  border-radius: 999px;
  background: #fff;
  color: var(--phc-teal);
  text-decoration: none !important;
  font-size: 0.84rem;
  font-weight: 800;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;

  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.search-view-more-link:hover,
.search-view-more-link:focus-visible {
  transform: translateY(-1.5px);
  border-color: rgba(15, 118, 110, 0.24);
  background: var(--phc-sky);
  box-shadow: 0 10px 20px rgba(16, 59, 77, 0.08);
}

.search-view-more-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 920px) {
  .search-results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .search-bar {
    grid-template-columns: 1fr auto auto;
    padding: 0.72rem;
  }

  .search-bar>i {
    display: none;
  }

  .search-filter-btn {
    padding: 0.75rem 0.82rem;
  }

  .search-filter-btn span {
    display: none;
  }

  .search-btn {
    padding: 0.76rem 0.92rem;
  }

  .search-results {
    top: calc(100% + 0.6rem);
  }

  .search-results-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-results-grid {
    gap: 0.8rem;
    padding: 0.85rem;
    max-height: min(65vh, 420px);
  }

  .search-result-card {
    padding: 0.9rem;
    border-radius: 18px;
  }

  .search-result-card--compact {
    grid-template-columns: 1fr;
  }

  .search-result-headline {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-filter-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .search-filter-chips::-webkit-scrollbar {
    display: none;
  }

  .search-filter-chip {
    flex: 0 0 auto;
  }

  .search-filters-panel {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    z-index: 60;
    max-height: 260px;
    overflow-y: auto;
    padding: 0.7rem;
    border-radius: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .search-filter-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));

    gap: 0.45rem;
  }

  .search-filter-chip {
    width: 100%;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    padding: 0.65rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.2;
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .search-results {
    transition: none !important;
    transform: none !important;
  }
}

/* =========================================================
   Story Rotator CSS
   ========================================================= */
.story-collage-section {
  width: min(100%, var(--container, 1200px));
  margin: 0 auto;
}

.story-collage-wrap {
  width: 100%;
}

.story-collage {
  display: grid;
  grid-template-columns: minmax(320px, 600px) minmax(280px, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--radius-xl, 24px);

  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.22), transparent 35%),
    linear-gradient(135deg, #fde6cc 0%, #f7a24c 55%, #e67e22 100%);
}

.story-collage .grid-container {
  margin: auto;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-template-rows: repeat(16, 1fr);
}

.phc-feature-list li::before .story-collage .item {
  padding: 0;
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  opacity: 0.45;
  transform: scale(0.9);
  box-shadow: rgba(0, 0, 0, 0.35) 10px 10px 10px 0px;
  transition:
    transform 0.55s ease,
    opacity 0.45s ease,
    box-shadow 0.5s ease,
    z-index 0.2s ease,
    border-color 0.3s ease;
}

.story-collage .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* codepen positions */
.story-collage .item1 {
  z-index: 10;
  grid-area: 1 / 6 / 5 / 10;
}

.story-collage .item2 {
  z-index: 6;
  grid-area: 5 / 1 / 11 / 7;
}

.story-collage .item3 {
  z-index: 5;
  grid-area: 4 / 6 / 11 / 13;
}

.story-collage .item4 {
  grid-area: 2 / -1 / 8 / -7;
}

.story-collage .item5 {
  z-index: 10;
  grid-area: 7 / -3 / 10 / -6;
}

.story-collage .item6 {
  z-index: 6;
  grid-area: -1 / 3 / -9 / 11;
}

.story-collage .item7 {
  z-index: 6;
  grid-area: -3 / -2 / -9 / -8;
}

.story-collage .item:hover {
  opacity: 0.8;
}

.story-collage .item.is-active {
  z-index: 99;
  opacity: 1;
  transform: scale(1.16);
  border-color: #fff7ef;
  box-shadow:
    0 0 0 6px rgba(255, 247, 239, 0.42),
    0 0 0 12px rgba(242, 135, 50, 0.16),
    0 14px 24px rgba(92, 72, 26, 0.22);
}

.story-collage-copy {
  position: relative;
  height: auto;
  transition: height 0.35s ease;
}

.story-copy {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    visibility 0.6s ease;
  padding: 1.5rem 1.5rem 2rem;
  border-radius: var(--radius-xl, 24px);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;

  /* warmer card to match the orange section */
  background: linear-gradient(180deg, rgba(255, 250, 245, 0.96), rgba(255, 244, 236, 0.92));
  border: 1px solid rgba(232, 136, 60, 0.18);
  box-shadow: 0 16px 40px rgba(16, 59, 77, 0.12);
  backdrop-filter: blur(10px);
}

.story-copy::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(255, 244, 236, 0) 0%,
      rgba(255, 244, 236, 0.78) 58%,
      rgba(255, 244, 236, 0.96) 100%);
}

.story-copy.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.story-copy__eyebrow {
  display: inline-flex;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(242, 135, 50, 0.14);
  color: #8a4b1f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-copy h3 {
  margin: 0 0 0.6rem;
  color: var(--phc-navy, #103b4d);
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  line-height: 1.18;
}

.story-copy p {
  margin: 0;
  padding-bottom: 0.35rem;
  color: var(--phc-muted, #5b6875);
  line-height: 1.55;
  font-size: 0.97rem;
  position: relative;
  z-index: 1;
}

.story-copy {
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem 1.5rem 1.7rem;
}

.story-copy__eyebrow,
.story-copy h3,
.story-copy p {
  position: relative;
  z-index: 1;
}

/* =========================================================
   Responsive refinements for story collage
   ========================================================= */

/* large tablet / small laptop */
@media (max-width: 1020px) {
  .story-collage {
    grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .story-copy {
    padding: 1.25rem 1.25rem 1.7rem;
  }

  .story-copy h3 {
    font-size: clamp(1.12rem, 2vw, 1.5rem);
    line-height: 1.16;
  }

  .story-copy p {
    font-size: 0.93rem;
    line-height: 1.5;
  }

  .story-copy__eyebrow {
    margin-bottom: 0.7rem;
    font-size: 0.72rem;
  }

  .story-collage .item.is-active {
    transform: scale(1.14);
  }
}


/* =========================================================
   Story Rotator CSS
   ========================================================= */
.story-collage-section {
  width: min(100%, var(--container, 1200px));
  margin: 0 auto;
}

.story-collage-wrap {
  width: 100%;
}

.story-collage {
  display: grid;
  grid-template-columns: minmax(320px, 600px) minmax(280px, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: var(--radius-xl, 24px);

  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.28), transparent 40%),
    linear-gradient(135deg, #fff3e6 0%, #f9b873 60%, #f28732 100%);
}

.story-collage .grid-container {
  margin: auto;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 1;
  display: grid;
  grid-template-columns: repeat(16, 1fr);
  grid-template-rows: repeat(16, 1fr);
}

.story-collage .item {
  padding: 0;
  border: 5px solid rgba(255, 255, 255, 0.92);
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  opacity: 0.45;
  transform: scale(0.9);
  box-shadow: rgba(0, 0, 0, 0.35) 10px 10px 10px 0px;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease,
    box-shadow 0.5s ease,
    z-index 0.2s ease,
    border-color 0.3s ease;
}

.story-collage .item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* codepen positions */
.story-collage .item1 {
  z-index: 10;
  grid-area: 1 / 6 / 5 / 10;
}

.story-collage .item2 {
  z-index: 6;
  grid-area: 5 / 1 / 11 / 7;
}

.story-collage .item3 {
  z-index: 5;
  grid-area: 4 / 6 / 11 / 13;
}

.story-collage .item4 {
  grid-area: 2 / -1 / 8 / -7;
}

.story-collage .item5 {
  z-index: 10;
  grid-area: 7 / -3 / 10 / -6;
}

.story-collage .item6 {
  z-index: 6;
  grid-area: -1 / 3 / -9 / 11;
}

.story-collage .item7 {
  z-index: 6;
  grid-area: -3 / -2 / -9 / -8;
}

.story-collage .item:hover {
  opacity: 0.8;
}

.story-collage .item.is-active {
  z-index: 99;
  opacity: 1;
  transform: scale(1.16);
  border-color: #fff7ef;
  box-shadow: 0 14px 24px rgba(92, 72, 26, 0.22);
}

.story-collage-copy {
  position: relative;
  height: auto;
  transition: height 0.35s ease;
}

.story-copy {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease,
    visibility 0.6s ease;
  padding: 1.5rem 1.5rem 2rem;
  border-radius: var(--radius-xl, 24px);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;

  /* warmer card to match the orange section */
  /*background: linear-gradient(180deg, rgba(255, 250, 245, 0.96), rgba(255, 244, 236, 0.92));*/
  background: #fff;
  border: 1px solid rgba(232, 136, 60, 0.18);
  box-shadow: 0 16px 40px rgba(16, 59, 77, 0.12);
  backdrop-filter: blur(10px);
}

.story-copy::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  pointer-events: none;
  background: linear-gradient(180deg,
      rgba(255, 244, 236, 0) 0%,
      rgba(255, 244, 236, 0.78) 58%,
      rgba(255, 244, 236, 0.96) 100%);
}

.story-copy.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.story-copy__eyebrow {
  display: inline-flex;
  margin-bottom: 0.85rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(242, 135, 50, 0.14);
  color: #8a4b1f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-copy h3 {
  margin: 0 0 0.6rem;
  color: var(--phc-navy, #103b4d);
  font-size: clamp(1.25rem, 2.3vw, 1.8rem);
  font-weight: 500;
  text-transform: capitalize;
  line-height: 1.18;
}

.story-copy p {
  margin: 0;
  padding-bottom: 0.35rem;
  color: var(--phc-muted, #5b6875);
  line-height: 1.55;
  font-size: 0.97rem;
  position: relative;
  z-index: 1;
}

.story-copy {
  width: 100%;
  box-sizing: border-box;
  padding: 1.5rem 1.5rem 1.7rem;
}

.story-copy__eyebrow,
.story-copy h3,
.story-copy p {
  position: relative;
  z-index: 1;
}

/* Featured section title integration */
#featured-projects {
  margin-top: 2rem;
  padding: 1.25rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, #ffffff, #f7fbfc);
  border: 1px solid var(--phc-border);
  box-shadow: 0 12px 30px rgba(16, 59, 77, 0.06);
}

.featured-title {
  margin: 0 0 1.2rem;
  padding-left: 0.75rem;
  border-left: 4px solid var(--phc-teal);
}

/* Optional: subtle section intro feel */
.featured-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 0.5rem;
  background: linear-gradient(90deg, var(--phc-teal), transparent);
  border-radius: 2px;
}

/* =========================================================
   Responsive refinements for story collage
   ========================================================= */

/* large tablet / small laptop */
@media (max-width: 1020px) {
  .story-collage {
    grid-template-columns: minmax(280px, 520px) minmax(0, 1fr);
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .story-copy {
    padding: 1.25rem 1.25rem 1.7rem;
  }

  .story-copy h3 {
    font-size: clamp(1.12rem, 2vw, 1.5rem);
    line-height: 1.16;
  }

  .story-copy p {
    font-size: 0.93rem;
    line-height: 1.5;
  }

  .story-copy__eyebrow {
    margin-bottom: 0.7rem;
    font-size: 0.72rem;
  }

  .story-collage .item.is-active {
    transform: scale(1.14);
  }
}

@media (max-width: 900px) {
  .story-collage {
    grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1.05fr);
    gap: 1rem;
    padding: 1rem;
    align-items: center;
  }

  .story-collage .grid-container {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }

  .story-collage-copy {
    position: relative;
    width: 100%;
    margin: 0;
    min-height: 340px;
    height: auto !important;
  }

  .story-copy {
    position: absolute;
    inset: 0;
    padding: 1.05rem 1.05rem 1.35rem;
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(14px);
    transition:
      opacity 0.45s ease,
      transform 0.45s ease,
      visibility 0.45s ease;
  }

  .story-copy.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .story-copy::after {
    height: 30px;
  }

  .story-copy__eyebrow {
    margin-bottom: 0.6rem;
    font-size: 0.6rem;
  }

  .story-copy h3 {
    font-size: 1.4rem;
    line-height: 1.16;
    margin-bottom: 0.65rem;
  }

  .story-copy p {
    font-size: 0.89rem;
    line-height: 1.46;
  }

  .story-collage .item {
    border-width: 4px;
  }

  .story-collage .item.is-active {
    transform: scale(1.08);
  }
}

@media (max-width: 768px) {
  .story-collage .item.is-active {
    transform: scale(1.32);
    box-shadow:
      0 0 0 5px rgba(255, 247, 239, 0.42),
      0 0 0 10px rgba(242, 135, 50, 0.18),
      0 12px 22px rgba(92, 72, 26, 0.24);
  }
}

/* mobile */
@media (max-width: 640px) {
  .story-collage {
    grid-template-columns: 1fr;
    padding: 0.9rem;
    gap: 0.9rem;
    border-radius: 18px;
  }

  .story-collage .grid-container {
    max-width: 100%;
  }

  .story-collage-copy {
    width: 100%;
    margin: 0;
    min-height: auto;
    height: auto !important;
  }

  .story-copy {
    position: relative;
    inset: auto;
    display: none;
    padding: 1rem 1rem 1.3rem;
    border-radius: 18px;
    transform: none;
  }

  .story-copy.is-visible {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  .story-copy:not(.is-visible) {
    opacity: 0;
    visibility: hidden;
    height: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
    box-shadow: none;
  }

  .story-copy::after {
    height: 28px;
  }

  .story-copy__eyebrow {
    margin-bottom: 0.6rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.6rem;
  }

  .story-copy h3 {
    font-size: 1.5rem;
    margin-bottom: 0.65rem;
  }

  .story-copy p {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .story-collage .item {
    border-width: 4px;
  }

  .story-collage .item.is-active {
    transform: scale(1.06);
  }
}

/* ===== FINAL MOBILE CONTACT FIX ===== */
@media (max-width: 480px) {

  .contact-mobile-simple,
  .contact-mobile-simple *,
  .contact-mobile-simple .contact-modern-form,
  .contact-mobile-simple .contact-modern-field,
  .contact-mobile-simple .contact-modern-actions {
    min-width: 0;
    box-sizing: border-box;
  }

  .contact-mobile-simple .contact-modern-form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: 100%;
    max-width: 100%;
    gap: 0.55rem;
    padding: 0.75rem;
    overflow-x: hidden;
  }

  .contact-mobile-simple .contact-modern-field,
  .contact-mobile-simple .contact-modern-actions,
  .contact-mobile-simple .contact-form-status {
    grid-column: 1 / -1 !important;
    width: 100%;
    max-width: 100%;
  }

  .contact-mobile-simple .contact-modern-field input,
  .contact-mobile-simple .contact-modern-field select,
  .contact-mobile-simple .contact-modern-field textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .contact-mobile-simple .contact-modern-field textarea {
    min-height: 90px;
  }

  .contact-mobile-simple .recaptcha-wrapper {
    width: 100%;
    overflow: hidden;
  }

  .contact-mobile-simple .g-recaptcha {
    transform: scale(0.85);
    transform-origin: left top;
  }
}

@media (max-width: 350px) {
  .contact-mobile-simple .contact-modern-form {
    padding: 0.65rem;
    gap: 0.45rem;
  }

  .contact-mobile-simple .contact-modern-field input,
  .contact-mobile-simple .contact-modern-field select,
  .contact-mobile-simple .contact-modern-field textarea {
    padding: 0.6rem 0.7rem;
    font-size: 0.8rem;
  }

  .contact-mobile-simple .contact-modern-field label {
    left: 8px;
    font-size: 0.64rem;
  }

  .contact-mobile-simple .contact-modern-btn {
    font-size: 0.92rem;
    padding: 0.78rem;
  }

  .contact-mobile-simple .g-recaptcha {
    transform: scale(0.77);
    transform-origin: left top;
  }
}