/* Human Services — hs2 (Grok-comp aligned) */
:root {
  --navy: #0b2f44;
  --navy-deep: #072233;
  --teal: #3db4bc;
  --teal-deep: #2a949c;
  --teal-soft: #e6f6f7;
  --ink: #1a2f3d;
  --muted: #5d7382;
  --line: rgba(11, 47, 68, 0.12);
  --paper: #ffffff;
  --wash: #f4fafb;
  --radius: 16px;
  --max: 1180px;
  --shadow: 0 16px 40px rgba(7, 34, 51, 0.08);
  --sans: "Avenir Next", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--teal-deep); }
h1, h2, h3 {
  font-family: var(--sans);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 700;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.35rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .76rem;
  font-weight: 750;
  color: var(--teal-deep);
  margin-bottom: .85em;
  display: inline-block;
}
.lede { font-size: 1.08rem; color: var(--muted); max-width: 48ch; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45em;
  min-height: 46px;
  padding: .7em 1.25em;
  border-radius: 999px;
  font-weight: 650;
  font-size: .95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: .15s ease;
  cursor: pointer;
  font-family: inherit;
  background: transparent;
  color: var(--navy);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: var(--navy-deep); }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-outline { border-color: var(--teal); color: var(--teal-deep); }
.btn-outline:hover { background: var(--teal-soft); }
.btn-ghost { border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); }
.btn-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-sm { min-height: 40px; padding: .55em 1em; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  font-weight: 700;
  color: var(--teal-deep);
  text-decoration: none;
  padding: .55em 0;
}
.btn-link:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px rgba(7,34,51,.04); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 78px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(61,180,188,.22); }
.brand-text { display: grid; gap: 1px; }
.brand-text strong { color: var(--navy); font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; }
.brand-text span { color: var(--teal-deep); font-size: .74rem; font-weight: 650; }
/* Circle is a mark only — never rely on the tiny words baked into the JPEG */
.menu { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.menu > li { position: relative; }
.menu a, .menu button {
  display: block;
  padding: .55em .85em;
  color: var(--navy);
  text-decoration: none;
  font-weight: 550;
  font-size: .95rem;
  border-radius: 999px;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
}
.menu a:hover, .menu button:hover, .menu a[aria-current="page"] { color: var(--teal-deep); }
.menu .has-sub > button::after {
  content: "";
  display: inline-block;
  margin-left: 6px;
  width: 6px; height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.sub {
  position: absolute; top: 100%; left: 0; min-width: 260px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 0; display: none;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { padding: .7em .85em; border-radius: 10px; }
.sub a:hover { background: var(--teal-soft); }
.sub small { display: block; color: var(--muted); font-weight: 400; font-size: .8rem; }
.menu a.btn-primary {
  margin-left: 8px;
  background: var(--teal);
  color: var(--navy-deep);
  border-color: transparent;
  padding: .7em 1.25em;
}
.menu a.btn-primary:hover {
  background: var(--teal-deep);
  color: #fff;
}
.menu-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 650;
  color: var(--navy);
}

/* Homepage hero */
.hero-home {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(800px 420px at 100% 0%, rgba(61,180,188,.16), transparent 55%),
    linear-gradient(180deg, #f7fcfc 0%, #fff 72%);
  padding: 52px 0 28px;
}
.hero-home .wrap {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 2.5rem;
  align-items: center;
}
.hero-copy { display: grid; gap: 1rem; }
.hero-home h1 em { font-style: normal; color: var(--teal); }
.hero-media {
  border-radius: 22px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--shadow);
  background: var(--navy);
}
.hero-media img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center 30%;
}

/* Alternative hero — abstract professional (Grok comps) */
.hero-alt {
  padding: 64px 0 56px;
  background:
    radial-gradient(520px 320px at 92% 12%, rgba(61,180,188,.22), transparent 60%),
    radial-gradient(380px 260px at 8% 88%, rgba(11,47,68,.06), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f7fcfc 100%);
}
.hero-alt::before,
.hero-alt::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-alt::before {
  width: 220px;
  height: 220px;
  right: -40px;
  top: 40px;
  background: rgba(61,180,188,.12);
}
.hero-alt::after {
  width: 140px;
  height: 140px;
  left: 4%;
  bottom: 8%;
  background-image: radial-gradient(var(--teal) 1.4px, transparent 1.5px);
  background-size: 12px 12px;
  opacity: .35;
}
.hero-alt .wrap { position: relative; z-index: 1; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 22px;
  margin-top: .35rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 650;
}
.hero-trust svg {
  width: 18px;
  height: 18px;
  color: var(--teal-deep);
  flex: none;
}
.hero-media-alt {
  position: relative;
  border-radius: 24px;
  background: transparent;
  box-shadow: none;
  min-height: 0;
}
.hero-media-alt::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 28px;
  background: rgba(61,180,188,.18);
  z-index: 0;
}
.hero-media-alt img {
  position: relative;
  z-index: 1;
  min-height: 480px;
  border-radius: 24px;
  object-position: center 18%;
  box-shadow: var(--shadow);
}

/* Trust strip */
.trust-bar {
  background: var(--wash);
  border-block: 1px solid var(--line);
  padding: 18px 0;
}
.trust-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  justify-content: space-between;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: .9rem;
  font-weight: 650;
}
.trust-item svg { width: 20px; height: 20px; color: var(--teal-deep); flex: none; }

/* Sections */
section { padding: 72px 0; }
.section-wash { background: var(--wash); }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head.center { margin-inline: auto; text-align: center; }
.underline {
  width: 64px; height: 3px; border-radius: 999px;
  background: var(--teal); margin: .4rem 0 .2rem;
}
.section-head.center .underline { margin-inline: auto; }

/* Solution cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  box-shadow: var(--shadow);
}
a.card { text-decoration: none; color: inherit; transition: .15s ease; }
a.card:hover { border-color: var(--teal); transform: translateY(-2px); }
.card p { color: var(--muted); margin: 0; }
.card .more { margin-top: auto; font-weight: 700; color: var(--teal-deep); }
.icon {
  width: 56px; height: 56px; border-radius: 14px;
  background: var(--teal-soft); color: var(--navy);
  display: grid; place-items: center;
}
.icon svg { width: 28px; height: 28px; }
.feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.feature-media {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--navy);
}
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.feature-card:hover .feature-media img { transform: scale(1.04); }
.feature-body {
  padding: 22px 22px 24px;
  display: grid;
  gap: .55rem;
}
.feature-body h3 { margin: 0; font-size: 1.15rem; }
.feature-body p { margin: 0; color: var(--muted); }

.card-logo {
  height: 56px;
  display: flex;
  align-items: center;
  margin-bottom: 6px;
}
.card-logo img {
  max-height: 52px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
}
.card-logo--hs {
  gap: 10px;
  height: auto;
  min-height: 52px;
}
.card-logo--hs img {
  width: 44px;
  height: 44px;
  max-height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}
.card-logo--hs .lockup-text {
  display: grid;
  gap: 1px;
}
.card-logo--hs .lockup-text strong {
  color: var(--navy);
  font-size: .82rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  line-height: 1.15;
}
.card-logo--hs .lockup-text span {
  color: var(--teal-deep);
  font-size: .7rem;
  font-weight: 650;
}
.product-lockup {
  margin-bottom: .15rem;
}
.product-lockup img {
  display: block;
  height: auto;
  width: auto;
  max-height: 78px;
  max-width: min(300px, 100%);
  object-fit: contain;
  object-position: left center;
  background: #fff;
  border-radius: 12px;
  padding: 10px 14px;
}
/* HS mark + readable HTML wordmark (baked-in logo text is unreadable when small) */
.product-lockup--hs {
  display: flex;
  align-items: center;
  gap: 14px;
}
.product-lockup--hs img {
  max-height: 64px;
  max-width: 64px;
  padding: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 0 3px rgba(255,255,255,.18);
  flex: none;
}
.product-lockup--hs .lockup-text {
  display: grid;
  gap: 2px;
  color: #fff;
}
.product-lockup--hs .lockup-text strong {
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.1;
}
.product-lockup--hs .lockup-text span {
  font-size: .78rem;
  font-weight: 650;
  color: var(--teal);
}

/* Testimonials marquee — matches xCare strip */
.testimonials {
  background: #eef3f8;
  padding: 48px 0 40px;
  overflow: hidden;
}
.testimonials .section-head { margin-bottom: 18px; }
.testimonials .section-head .lede { max-width: 58ch; }
.tp-marquee {
  position: relative;
  padding: 8px 0 10px;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.tp-track {
  display: flex;
  gap: 14px;
  width: max-content;
  padding: 0;
  animation: tp-scroll 70s linear infinite;
  will-change: transform;
}
.tp-marquee:hover .tp-track { animation-play-state: paused; }
@keyframes tp-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .tp-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
  }
}
.tp-card {
  flex: 0 0 min(340px, 78vw);
  margin: 0;
  padding: 20px 18px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #d7e0ea;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tp-stars {
  color: var(--teal);
  letter-spacing: .08em;
  font-size: .95rem;
  line-height: 1;
}
.tp-card blockquote {
  margin: 0;
  font-size: .98rem;
  line-height: 1.45;
  color: var(--navy);
  letter-spacing: -.01em;
}
.tp-card figcaption {
  display: grid;
  gap: 2px;
  margin-top: auto;
}
.tp-card figcaption strong {
  font-size: .88rem;
  color: var(--navy);
}
.tp-card figcaption span,
.tp-card figcaption em {
  font-size: .76rem;
  color: var(--muted);
  font-style: normal;
}

/* From the Floor notes */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.note-search {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}
.note-search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px 18px;
  box-shadow: var(--shadow);
}
.note-search-field:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(61,180,188,.18);
}
.note-search-field svg {
  width: 20px;
  height: 20px;
  color: var(--teal-deep);
  flex: none;
}
.note-search-field input {
  border: 0;
  outline: 0;
  width: 100%;
  background: transparent;
  font: inherit;
  color: var(--ink);
  padding: 0;
}
.note-search-field input::placeholder { color: var(--muted); }
.note-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.note-filter {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  border-radius: 999px;
  padding: .45em .95em;
  font: inherit;
  font-size: .88rem;
  font-weight: 650;
  cursor: pointer;
}
.note-filter:hover { border-color: var(--teal); color: var(--teal-deep); }
.note-filter.is-active {
  background: var(--teal-soft);
  border-color: var(--teal);
  color: var(--teal-deep);
}
.note-search-status {
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.note-empty {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 1rem;
}
.note-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.note-list--compact { margin-bottom: 8px; }
.note-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.note-card[hidden],
.note-card.is-filtered-out,
.note-empty[hidden] { display: none !important; }
.note-cover {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}
.note-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.note-card:hover .note-cover img { transform: scale(1.03); }
.note-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,34,51,.12) 30%, rgba(7,34,51,.72) 100%);
  pointer-events: none;
}
.note-cover strong {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  color: #fff;
  font-size: 1.05rem;
  line-height: 1.2;
  max-width: 16ch;
  letter-spacing: -.015em;
}
.note-body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  flex: 1;
}
a.note-card--link {
  text-decoration: none;
  color: inherit;
  transition: .15s ease;
}
a.note-card--link:hover { border-color: var(--teal); transform: translateY(-2px); }
.note-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.note-meta time { color: var(--muted); font-size: .86rem; }
.note-card h2, .note-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.note-card h2 a { color: inherit; text-decoration: none; }
.note-card h2 a:hover { color: var(--teal-deep); }
.note-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.note-card .btn-link { margin-top: auto; padding-top: .25rem; }
.note-page .page-hero { padding-bottom: 12px; }
.note-hero-media {
  max-width: 720px;
  margin: 0 auto 4px;
  padding: 0 24px;
}
.note-hero-media img {
  width: 100%;
  max-height: 220px;
  aspect-ratio: 2.4 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(7, 34, 51, 0.08);
}
.note-prose {
  max-width: 720px;
  padding: 8px 24px 72px;
}
.note-prose h2 { margin-top: 1.6em; font-size: 1.35rem; }
.note-prose p { font-size: 1.05rem; color: var(--ink); }
.note-signoff {
  margin-top: 2rem !important;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted) !important;
  font-size: .95rem !important;
}

/* Split / about */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.portrait {
  border-radius: 20px;
  overflow: hidden;
  min-height: 460px;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.portrait img {
  width: 100%; height: 100%; min-height: 460px;
  object-fit: cover; object-position: center 12%;
  filter: grayscale(1);
}

/* About page — text-led, smaller portrait */
.about-intro {
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 36px;
  align-items: start;
}
.about-facts {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.about-facts h3 {
  margin: 0 0 .8rem;
  font-size: 1rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.people-grid { display: grid; gap: 20px; margin-bottom: 28px; }
.person-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
@media (min-width: 800px) {
  .person-card {
    grid-template-columns: 240px 1fr;
    gap: 36px;
  }
}
.person-photo {
  width: 100%;
  max-width: 240px;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: var(--navy);
  flex: none;
  aspect-ratio: 4 / 5;
}
.person-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 15%;
  filter: grayscale(1);
}
.person-body h3 { margin: 0 0 .2rem; }
.person-role {
  margin: 0 0 1rem;
  color: var(--teal-deep);
  font-weight: 650;
  font-size: .95rem;
}
.person-body p { color: var(--ink); }
.person-body .ticks { margin-top: .8rem; }
.team-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.team-strip article {
  border-top: 3px solid var(--teal);
  padding: 18px 4px 8px;
}
.team-strip h3 { margin: 0 0 .45rem; font-size: 1.05rem; }
.team-strip p { margin: 0; color: var(--muted); font-size: .94rem; }
.about-contact {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

/* Page heroes */
.page-hero {
  padding: 56px 0 36px;
  background: linear-gradient(180deg, var(--wash), #fff);
}
.page-hero.navy {
  background: linear-gradient(135deg, var(--navy-deep), #0f3d55);
  color: #fff;
}
.page-hero.navy h1,
.page-hero.navy .eyebrow,
.page-hero.navy p { color: #fff; }
.page-hero.navy .eyebrow { color: #9edce0; }
.page-hero p { color: var(--muted); max-width: 54ch; font-size: 1.05rem; }

.hero-split {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 0;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy-deep);
  color: #fff;
  min-height: 420px;
}
.hero-split-copy {
  padding: 36px 40px;
  display: grid;
  align-content: center;
  gap: .75rem;
}
.hero-split-copy h1 { color: #fff; font-size: clamp(1.45rem, 2.5vw, 2rem); max-width: 20ch; line-height: 1.2; }
.hero-split-copy p { color: rgba(255,255,255,.82); margin: 0; max-width: 42ch; }
.hero-split-copy .eyebrow { color: var(--teal); margin: 0; }
.hero-split-media img {
  width: 100%; height: 100%; min-height: 420px;
  object-fit: cover; object-position: center;
}

/* Build Fix Grow */
.bfg .feature-card { border-top: 3px solid var(--teal); }
.bfg .feature-body h3 { font-size: 1.25rem; }
.bfg .feature-body h3 span {
  display: block;
  color: var(--teal-deep);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .35rem;
}
.bfg .btn-link { margin-top: .35rem; }

/* Resources library */
.res-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.res-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.res-cover {
  aspect-ratio: 4/3;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
  background: var(--navy);
}
.res-cover.photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,34,51,.15) 20%, rgba(7,34,51,.78) 100%);
  z-index: 1;
}
.res-cover.photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.res-cover .art {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 48%;
  height: auto;
  pointer-events: none;
  z-index: 1;
}
.res-cover strong {
  position: relative;
  z-index: 2;
  font-size: 1.15rem;
  line-height: 1.2;
  max-width: 14ch;
  letter-spacing: -.015em;
}
.res-cover.book {
  background: linear-gradient(150deg, var(--navy) 0%, #173a52 100%);
  border-bottom: 4px solid #c8a35a;
}
.res-cover.guide1 { background: linear-gradient(150deg, var(--teal-deep), #0b5e66); }
.res-cover.guide2 { background: linear-gradient(150deg, #1e2a33, #0e3e44); }
.res-cover.soon {
  background: linear-gradient(150deg, #e8eef2, #d5dee5);
  color: var(--navy);
}
.res-body { padding: 18px 18px 20px; display: grid; gap: .55rem; flex: 1; }
.res-type {
  font-size: .72rem; font-weight: 750; letter-spacing: .1em;
  text-transform: uppercase; color: var(--teal-deep);
}
.res-body h3 { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.res-body p { margin: 0; color: var(--muted); font-size: .92rem; }
.res-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: .4rem; }

/* Contact / forms */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.panel h2 { font-family: var(--serif); margin-top: 0; }
.contact-list { display: grid; gap: 12px; margin-top: 18px; }
.contact-list a { font-weight: 650; color: var(--navy); text-decoration: none; }
.contact-list a:hover { color: var(--teal-deep); }
.contact-products {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.contact-product {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--navy);
  background: #fff;
  transition: border-color .15s ease, background .15s ease;
}
.contact-product:hover {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--navy);
}
.contact-product img {
  height: 36px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  flex: none;
}
.contact-product span {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.contact-product strong {
  font-size: .95rem;
  line-height: 1.15;
}
.contact-product small {
  font-size: .78rem;
  color: var(--muted);
  font-weight: 550;
}
form.contact { display: grid; gap: 14px; }
label { font-weight: 650; font-size: .9rem; display: grid; gap: 6px; color: var(--navy); }
input, select, textarea {
  font: inherit; padding: .75em .9em; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-note { margin: 0; color: var(--muted); font-size: .86rem; }

.ticks { list-style: none; padding: 0; margin: 1em 0 0; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: .55em; color: var(--ink); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: .55em;
  width: 12px; height: 7px; border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal); transform: rotate(-45deg);
}

/* CTA / footer */
.cta-band { background: var(--navy-deep); color: #fff; padding: 56px 0; }
.cta-band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 .25em; }
.cta-band p { color: rgba(255,255,255,.75); margin: 0; }
.phone-big { font-weight: 700; font-size: 1.45rem; color: #fff; text-decoration: none; }

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 56px 0 28px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer h4 {
  color: #fff; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 12px; font-family: var(--sans);
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.foot-brand .brand--foot {
  margin-bottom: 14px;
  color: inherit;
}
.foot-brand .brand--foot .brand-text strong { color: #fff; }
.foot-brand .brand--foot .brand-text span { color: var(--teal); }
.foot-brand .brand--foot img {
  width: 48px;
  height: 48px;
  margin-bottom: 0;
}
.legal {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 40px; padding-top: 18px; font-size: .8rem;
  color: rgba(255,255,255,.5); display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}

.badge-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.badge {
  font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  padding: .45em .8em; border-radius: 8px; border: 1px solid rgba(255,255,255,.25); color: #fff;
}
.badge.light { border-color: var(--line); color: var(--navy); background: #fff; }

@media (max-width: 960px) {
  .hero-home .wrap, .grid-2, .hero-split, .contact-grid, .res-grid,
  .about-intro, .person-card, .team-strip { grid-template-columns: 1fr; }
  .note-list { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .res-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .person-photo { max-width: 200px; }
  .menu-toggle { display: inline-flex; }
  .menu {
    display: none; position: absolute; top: 78px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: 12px 24px 20px; border-bottom: 1px solid var(--line);
  }
  .menu.open { display: flex; }
  .sub { position: static; display: block; box-shadow: none; border: 0; padding-left: 8px; }
  .menu a.btn-primary { margin: 10px 0 0; justify-content: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-media img, .hero-media-alt img, .hero-split-media img, .portrait img { min-height: 320px; }
  .hero-media-alt::before { inset: 12px -12px -12px 12px; }
}
@media (max-width: 600px) {
  .res-grid, .note-list { grid-template-columns: 1fr; }
}
