:root {
  --deep-sage: #536b5e;
  --soft-sage: #8fa99a;
  --warm-ivory: #f7f4ed;
  --muted-gold: #c6a15b;
  --charcoal: #2f3431;
  --white: #ffffff;
  --sage-deep: #3f5147;
  --navy: var(--deep-sage);
  --navy-deep: var(--sage-deep);
  --ink: var(--charcoal);
  --paper: var(--warm-ivory);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "articulat-cf", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, var(--white) 0%, var(--paper) 100%);
}

.top-stripe {
  min-height: 46px;
  padding: 8px 5%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.top-stripe p {
  margin: 0;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
}

.top-stripe p a {
  color: var(--white);
  font-weight: 800;
  text-decoration: underline;
}

.top-stripe-cta {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.top-stripe-cta:hover,
.top-stripe-cta:focus-visible {
  background: var(--soft-sage);
  outline: none;
}

.site-nav {
  position: relative;
  height: auto;
  min-height: 74px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  background: var(--white);
  border-bottom: 1px solid rgba(83, 107, 94, 0.16);
}

.site-nav img {
  width: 100px;
  height: auto;
  display: block;
}

.nav-links {
  margin: 0;
  padding: 14px 0 4px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px 24px;
}

.nav-links a {
  display: block;
  color: var(--navy);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: clamp(14px, 1.4vw, 17px);
  transition: background 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(143, 169, 154, 0.24);
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: inline-flex;
  flex: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(83, 107, 94, 0.24);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 220ms ease, opacity 220ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

/* Fluid reveal: animating grid-template-rows 0fr -> 1fr expands to the
   panel's natural height with no JS measuring and no fixed max-height
   guess, and collapses cleanly back to zero. */
.nav-panel {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  order: 3;
  transition: grid-template-rows 320ms cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-panel > .nav-links {
  overflow: hidden;
  min-height: 0;
}

.nav-toggle[aria-expanded="true"] + .nav-panel {
  grid-template-rows: 1fr;
}

.nav-links a[aria-current="page"] {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .nav-panel,
  .nav-toggle-bar {
    transition: none;
  }
}

.hero {
  background-image: linear-gradient(rgba(247, 244, 237, 0.45), rgba(247, 244, 237, 0.45)), url("hero-image.jpg");
  background-position: center;
  background-size: cover;
  min-height: 42vh;
  padding: 64px 0 70px;
  display: flex;
  align-items: flex-end;
}

.hero-inner {
  width: min(900px, 92%);
  margin: 0 auto;
}

.hero h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 7vw, 62px);
  line-height: 0.97;
  max-width: 16ch;
  font-weight: 900;
}

.content-layout {
  margin: -44px auto 0;
  width: min(900px, 92%);
  position: relative;
  z-index: 2;
  padding-bottom: 60px;
}

.panel {
  background: var(--white);
  border-radius: 14px;
  padding: 26px;
  box-shadow: 0 18px 45px rgba(47, 52, 49, 0.12);
}

.panel h2 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.1;
}

.panel h3 {
  margin: 18px 0 8px;
  color: var(--navy);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 1.2;
}

.panel p {
  margin: 0 0 12px;
  line-height: 1.6;
}

.panel ul {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
  font-size: 16px;
}

.panel a:not(.btn) {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.panel a:not(.btn):hover,
.panel a:not(.btn):focus-visible {
  text-decoration: underline;
}

.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: var(--white);
  padding: 34px 8% 18px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .top-stripe {
    min-height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-direction: column;
    align-items: flex-start;
  }

  .content-layout {
    margin-top: -26px;
  }
}

@media (max-width: 680px) {
  .hero {
    min-height: 38vh;
    padding: 42px 0 50px;
  }

  .panel {
    padding: 20px;
  }
}
