:root {
  --bg: #f2efe8;
  --surface: #ffffff;
  --surface-alt: #e8efe9;
  --text: #152221;
  --muted: #3f5351;
  --primary: #1f4f4e;
  --primary-contrast: #ffffff;
  --accent: #8aa33c;
  --border: #c6d0ca;
  --focus: #6f9725;
  --shadow: 0 12px 36px rgba(21, 34, 33, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, #ffffff 0, #f2efe8 42%),
    radial-gradient(circle at 100% 100%, #e9f0ea 0, #f2efe8 40%);
}

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

a {
  color: var(--primary);
  text-underline-offset: 0.2em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--text);
  color: var(--primary-contrast);
  padding: 0.5rem 0.75rem;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
  z-index: 1000;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.site-footer {
  background: #0f2524;
  color: #d8e3dc;
  border-top: 1px solid #334845;
  padding-bottom: calc(2.8rem + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 760px) {
  .site-footer {
    padding-bottom: 0;
  }
}

.footer-wrap a {
  color: #d8e3dc;
}

.header-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  flex-wrap: wrap;
}

.site-header .header-wrap {
  padding: 0.75rem 0;
  align-content: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 0 auto;
  min-width: max-content;
  white-space: nowrap;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-mark {
  width: 42px;
  height: auto;
  flex: 0 0 42px;
}

.menu-toggle {
  min-width: 44px;
  min-height: 44px;
  padding: 0.4rem 0.8rem;
  border: 1px solid #6f9725;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #ffffff, #f5f7f4);
  color: var(--text);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(21, 34, 33, 0.06);
}

.site-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  width: 100%;
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: max-height 220ms ease, opacity 180ms ease, transform 180ms ease;
}

.site-nav.is-open {
  margin-top: 0.55rem;
  max-height: 18rem;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  background: #f6f7f4;
  border: 1px solid rgba(21, 34, 33, 0.08);
  border-radius: 0.8rem;
  box-shadow: 0 10px 24px rgba(21, 34, 33, 0.08);
}

.site-nav a {
  min-height: 52px;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0.1rem 1rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 0.55rem;
}

.site-nav a[aria-current="page"] {
  color: #123735;
  background: #edf2e0;
  text-decoration: none;
  font-weight: 700;
}

.site-nav a[aria-current="page"]::after {
  display: none;
}

.site-nav a[aria-current="page"]:focus-visible {
  outline-offset: 3px;
}

.hero {
  padding: 2.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.hero-media {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 560px;
  margin: 0 auto;
}

.hero-media img {
  display: block;
  width: 100%;
}

.hero-media-home {
  position: relative;
  aspect-ratio: 1 / 1;
}

.hero-media-home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 56% 34%;
}

.hero-media-home::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 62% 38%, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0) 60%),
    linear-gradient(to bottom, rgba(31, 79, 78, 0.04), rgba(31, 79, 78, 0.10));
}

.page-header {
  padding: 2.5rem 0 0;
  min-height: 11.8rem;
}

.page-header h1 {
  font-size: clamp(1.6rem, 4.5vw, 2.6rem);
  margin: 0.25rem 0 0.6rem;
  max-width: 28ch;
}

.page-header .lead {
  margin-bottom: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

h1,
h2,
h3 {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h1 {
  font-size: clamp(1.95rem, 6vw, 3.35rem);
  margin: 0.25rem 0 1rem;
  max-width: 18ch;
}

.about-below-hero {
  padding-top: 0.5rem;
}

.about-below-hero-inner {
  max-width: none;
  margin: 0 auto;
}

.about-below-hero .lead {
  max-width: none;
}

.about-headshot {
  float: right;
  margin: 0.2rem 0 1rem 1.5rem;
  max-width: 240px;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  shape-outside: margin-box;
}

.about-headshot img {
  display: block;
  width: 100%;
}

@media (min-width: 760px) {
  .about-headshot {
    max-width: 300px;
  }
}

.heritage-block {
  position: relative;
  max-width: 65ch;
  margin: 0 auto 1.5rem;
  padding: 3rem 2.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(21, 34, 33, 0.08);
}

.heritage-block::before {
  display: none;
}

.heritage-block::after {
  display: none;
}

.heritage-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: block;
}

.heritage-quote {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  line-height: 1.35;
  font-style: italic;
  color: var(--primary);
  margin: 0 0 1.25rem 0;
  letter-spacing: -0.01em;
}

.heritage-support {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 auto;
  max-width: 50ch;
}

h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  margin-top: 0;
}

.lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 80ch;
}

.hero-pullquote {
  margin: 1rem 0 1.1rem;
  padding: 0.1rem 0 0.1rem 1rem;
  border-left: 3px solid var(--accent);
  background: transparent;
  color: var(--text);
  border-radius: 0;
}

.hero-pullquote p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
}

.nowrap {
  white-space: nowrap;
}

.is-hidden {
  display: none !important;
}

.section {
  padding: 2.5rem 0;
}

.pt-0 {
  padding-top: 0 !important;
}

.section-tight-top {
  padding-top: 0.5rem;
}

.pb-0 {
  padding-bottom: 0 !important;
}

.section-alt {
  background: linear-gradient(180deg, rgba(138, 163, 60, 0.12), transparent 55%);
}

.section-intro-story {
  padding-bottom: 1.45rem;
}

.section-intro-story .translation-content > :last-child {
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.72rem 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #234e4e, #2d6661);
  color: var(--primary-contrast);
  text-decoration: none;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(31, 79, 78, 0.26);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-service {
  margin-top: 0.65rem;
  width: fit-content;
  background: #ffffff;
  color: var(--primary);
  border: 1px solid rgba(31, 79, 78, 0.35);
  box-shadow: none;
}

.btn-service:hover {
  background: #f2f7f5;
  box-shadow: 0 6px 14px rgba(31, 79, 78, 0.12);
}

.card-grid {
  display: grid;
  gap: 1rem;
}

.span-full {
  grid-column: 1 / -1;
}

.card {
  --base-shadow: 0 6px 18px rgba(21, 34, 33, 0.08);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.1rem;
  box-shadow: var(--base-shadow);
}

.card-featured {
  max-width: 65ch;
  margin: 0 auto;
}

.callout {
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.8rem 1rem;
  margin-bottom: 0.7rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::before {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.4em;
  height: 1.4em;
  margin-right: 0.5em;
  border-radius: 0.35em;
  background: var(--surface-alt);
  font-weight: 700;
  font-size: 0.9em;
  line-height: 1;
  flex-shrink: 0;
  vertical-align: middle;
}

.faq details[open] summary::before {
  content: "\2212";
}

.faq p {
  margin-bottom: 0;
}

.contact-shell {
  --base-shadow: var(--shadow);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  box-shadow: var(--base-shadow);
  padding: 1.2rem;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
  max-width: 680px;
}

input,
textarea {
  width: 100%;
  border: 1px solid #8fa29e;
  border-radius: 0.5rem;
  padding: 0.7rem;
  font: inherit;
  background: #fff;
}

.form-status {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
}

.form-status.is-info {
  color: var(--muted);
}

.form-status.is-success {
  color: #1f6a3f;
  animation: fadeInFlourish 0.6s ease-out forwards;
}

@keyframes fadeInFlourish {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-status.is-error {
  color: #8f1d1d;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.accent-band {
  background: linear-gradient(rgba(15, 37, 36, 0.8), rgba(15, 37, 36, 0.8)),
    url("../images/services-accent-bg.webp") center / cover no-repeat;
  color: #eff5f2;
  border-radius: 1rem;
  padding: 1.5rem;
}

.accent-band h2 {
  color: #ffffff;
}

@media (min-width: 760px) {
  .site-header .header-wrap {
    padding: 1rem 0;
  }

  .menu-toggle {
    display: none;
  }

  .site-nav {
    display: flex;
    width: auto;
    margin-top: 0;
    flex-direction: row;
    gap: 1.1rem;
    max-height: none;
    opacity: 1;
    overflow: visible;
    pointer-events: auto;
    transform: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transition: none;
  }

  .site-nav a {
    min-height: 44px;
    width: auto;
    padding: 0;
    border-radius: 0;
  }

  .site-nav a[aria-current="page"] {
    position: relative;
    background: transparent;
  }

  .site-nav a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -0.32rem;
    width: 0;
    height: 0;
    border-left: 0.33rem solid transparent;
    border-right: 0.33rem solid transparent;
    border-top: 0.4rem solid var(--primary);
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.1rem;
  }

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

  .contact-shell {
    padding: 1.8rem;
  }
}


[aria-invalid="true"] {
  border-color: #8f1d1d;
  box-shadow: 0 0 0 2px rgba(143, 29, 29, 0.18);
}

body {
  overflow-x: hidden;
}

[id] {
  scroll-margin-top: 108px;
}

.card.anchor-focus,
.contact-shell.anchor-focus {
  animation: anchorPulse 2.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes anchorPulse {
  0% {
    transform: translateY(0);
    border-color: var(--border);
    box-shadow: 0 0 0 2px rgba(138, 163, 60, 0.35), 0 0 0 rgba(138, 163, 60, 0), var(--base-shadow);
  }
  15% {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(138, 163, 60, 0.15), 0 0 24px rgba(138, 163, 60, 0.35), 0 12px 28px rgba(21, 34, 33, 0.15);
  }
  100% {
    transform: translateY(0);
    border-color: var(--border);
    box-shadow: 0 0 0 0 rgba(138, 163, 60, 0), 0 0 0 rgba(138, 163, 60, 0), var(--base-shadow);
  }
}

@media (min-width: 760px) {
  [id] {
    scroll-margin-top: 96px;
  }
}

.translation-block {
  display: grid;
}

.translation-block-inline {
  width: fit-content;
}

.translation-content {
  grid-row: 1;
  grid-column: 1;
  opacity: 1;
  visibility: visible;
  transition: opacity 180ms ease, visibility 0ms 0ms;
}

.translation-content.is-plain {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transition: opacity 180ms ease, visibility 0ms 180ms;
}

html.show-plain-language .translation-content.is-industry {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  transition: opacity 180ms ease, visibility 0ms 180ms;
}

html.show-plain-language .translation-content.is-plain {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
  transition: opacity 180ms ease, visibility 0ms 0ms;
}

/* PLAIN-LANGUAGE HERO EMOJI BLOOP TUNING
   Cmd+F: HERO EMOJI BLOOP
   - .plain-wink: base size/position before animation
   - html.show-plain-language .plain-wink: duration/easing/delay
   - @keyframes bloop: movement (start, overshoot, bounce-back, settle)
*/
.plain-wink {
  display: inline-block;
  margin-top: 0.12em;
  font-size: 0.8em;
  font-style: normal;
  opacity: 0;
  transform: scale(0) translateY(0.05em);
  transform-origin: 0% 65%;
}

html.show-plain-language .plain-wink {
  animation: bloop 500ms cubic-bezier(0.175, 0.785, 0.22, 1.1) 175ms forwards;
}

@keyframes bloop {
  0% {
    opacity: 0;
    transform: scale(0) translateY(0.05em);
  }
  40% {
    opacity: 1;
    transform: scale(1.04) translateY(0);
  }
  70% {
    transform: scale(0.97) translateY(0);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .translation-content,
  .plain-wink {
    transition: none;
  }

  .toggle-intro-active .toggle-language-group {
    animation: none;
  }
}

.plain-language-toggle {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  background: rgba(242, 239, 232, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border: 0;
  border-top: 1px solid rgba(198, 208, 202, 0.6);
  border-radius: 0;
  box-shadow: 0 -2px 12px rgba(21, 34, 33, 0.06);
  padding: 0.3rem 0.6rem calc(0.3rem + env(safe-area-inset-bottom, 0px));
  min-height: 44px;
}

.plain-language-toggle-label {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  line-height: 1.1;
  cursor: pointer;
  transition: color 140ms ease;
}

.plain-language-toggle-label[aria-pressed="true"] {
  background: var(--primary);
  color: var(--primary-contrast);
}

.toggle-language-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.plain-language-toggle-label {
  position: relative;
}

.plain-language-toggle-label::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid var(--muted);
  opacity: 0;
  transition: opacity 180ms ease;
}

.plain-language-toggle-label[aria-pressed="true"]::before {
  opacity: 0.35;
}

.toggle-divider {
  width: 1px;
  height: 1.4rem;
  background: var(--border);
  margin: 0 0.35rem;
}

.toggle-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #234e4e, #2d6661);
  color: var(--primary-contrast);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.toggle-contact-btn:active {
  transform: scale(0.97);
}

.toggle-contact-plain {
  display: none;
}

html.show-plain-language .toggle-contact-industry {
  display: none;
}

html.show-plain-language .toggle-contact-plain {
  display: inline;
}

.plain-language-toast {
  position: fixed;
  left: 50%;
  bottom: calc(3.2rem + env(safe-area-inset-bottom, 0px));
  z-index: 121;
  background: #0f2524;
  color: #eff5f2;
  border-radius: 999px;
  border: 1px solid #334845;
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  box-shadow: 0 10px 24px rgba(15, 37, 36, 0.25);
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  white-space: nowrap;
}

.plain-language-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}


@keyframes toggleFlourish {
  0% {
    transform: translateY(0) scale(1);
    box-shadow: 0 -2px 12px rgba(21, 34, 33, 0.06);
  }
  40% {
    transform: translateY(-2px) scale(1.015);
    box-shadow: 0 -4px 18px rgba(31, 79, 78, 0.22);
  }
  100% {
    transform: translateY(0) scale(1);
    box-shadow: 0 -2px 12px rgba(21, 34, 33, 0.06);
  }
}

.plain-language-toggle.is-flourish {
  animation: toggleFlourish 520ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes toggleGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(138, 163, 60, 0);
  }
  25%, 75% {
    box-shadow: 0 0 0 4px rgba(138, 163, 60, 0.25), 0 0 16px rgba(138, 163, 60, 0.15);
  }
  50% {
    box-shadow: 0 0 0 2px rgba(138, 163, 60, 0.15);
  }
}

.toggle-intro-active .toggle-language-group {
  animation: toggleGlow 1.5s ease-in-out;
  border-radius: 999px;
}

.toggle-intro-tooltip {
  position: fixed;
  z-index: 122;
  background: #0f2524;
  color: #eff5f2;
  border-radius: 0.5rem;
  padding: 0.4rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(15, 37, 36, 0.25);
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 300ms ease, transform 300ms ease;
  left: 0.8rem;
  bottom: calc(3.4rem + env(safe-area-inset-bottom, 0px));
  transform: translateY(4px);
}

.toggle-intro-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #0f2524;
}

.toggle-intro-tooltip.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toggle-intro-tooltip.is-dismissing {
  opacity: 0;
  transform: translateY(4px);
}

@media (min-width: 760px) {
  .plain-language-toggle {
    left: auto;
    right: 1.5rem;
    bottom: 1.5rem;
    display: inline-flex;
    justify-content: flex-start;
    gap: 0.25rem;
    background: var(--surface);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 1px solid var(--border);
    border-radius: 999px;
    box-shadow: 0 10px 24px rgba(21, 34, 33, 0.18);
    padding: 0.25rem;
  }

  .toggle-divider,
  .toggle-contact-btn {
    display: none;
  }

  .plain-language-toggle-label::before {
    display: none;
  }

  .toggle-language-group {
    gap: 0.25rem;
  }

  .plain-language-toast {
    left: auto;
    right: 1.5rem;
    bottom: 4.7rem;
    transform: translateY(6px);
  }

  .plain-language-toast.is-visible {
    transform: translateY(0);
  }

  .toggle-intro-tooltip {
    left: auto;
    right: 1.5rem;
    bottom: 4.7rem;
    transform: translateY(4px);
  }

  .toggle-intro-tooltip.is-visible {
    transform: translateY(0);
  }

  .toggle-intro-tooltip.is-dismissing {
    transform: translateY(4px);
  }
}
