body,h1 {font-family: "Raleway", sans-serif}

body {
  background:
    radial-gradient(circle at top left, rgba(122, 101, 46, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(50, 111, 147, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f6f1 0%, #fdfbf8 45%, #f5f7f8 100%);
  color: #20323e;
}

a {
  text-decoration: none;
}

p, h4, h6 {
  font-family: Quicksand, sans-serif;
}

.w3-bar-item {
  font-family: Quicksand, sans-serif;
  color: #326f93;
  font-size: 18px;
}

.services-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--site-header-offset, 140px) + 1.25rem) 1rem 4rem;
}

@media (max-width: 750px) {
  .services-page {
    padding-top: calc(var(--site-header-offset, 140px) + 1rem);
  }
}

.hero-panel,
.callout-panel,
.category-accordion {
  box-shadow: 0 18px 50px rgba(50, 111, 147, 0.08);
}

.hero-panel,
.category-shell,
.callout-panel {
  scroll-margin-top: 110px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.5rem;
}

.hero-copy,
.hero-aside,
.callout-panel,
.category-content {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(122, 101, 46, 0.14);
  border-radius: 28px;
}

.hero-copy {
  padding: clamp(1.5rem, 3vw, 2.4rem);
}

.hero-copy p {
  max-width: 70ch;
}

.hero-aside {
  padding: 1.5rem;
  display: flex;
  align-items: stretch;
}

.hero-eyebrow,
.info-kicker {
  font-family: Quicksand, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #326f93;
  margin-bottom: 0.75rem;
}

.hero-panel h1,
.callout-panel h2 {
  color: #7b652e;
  line-height: 1.05;
  margin-bottom: 0.9rem;
}

.hero-panel h1 {
  font-size: clamp(2.3rem, 4.8vw, 4.7rem);
}

.hero-lead,
.hero-support,
.section-intro p,
.service-card p,
.callout-panel p,
.quick-list {
  font-family: Quicksand, sans-serif;
  line-height: 1.75;
}

.hero-support {
  color: #4d6572;
  margin-bottom: 0;
}

.hero-actions,
.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-family: Quicksand, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.primary-button {
  background: linear-gradient(135deg, #326f93, #4f8bae);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(50, 111, 147, 0.18);
}

.secondary-button {
  background: #fff;
  border: 1px solid rgba(50, 111, 147, 0.28);
  color: #326f93;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button:focus-visible,
.secondary-button:focus-visible,
.category-accordion > summary:focus-visible {
  outline: 2px solid rgba(50, 111, 147, 0.5);
  outline-offset: 2px;
}

.info-card {
  width: 100%;
  background: linear-gradient(180deg, rgba(122, 101, 46, 0.08), rgba(50, 111, 147, 0.04));
  border-radius: 22px;
  padding: 1.2rem;
}

.quick-list {
  margin: 0;
  padding-left: 1.1rem;
  color: #20323e;
}

.category-shell {
  margin-top: 1.1rem;
}

.category-accordion {
  border: 1px solid rgba(50, 111, 147, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
}

.category-accordion > summary {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: 0.55rem;
  align-items: start;
  padding: 1.5rem 1.35rem;
  background: linear-gradient(135deg, rgba(122, 101, 46, 0.12), rgba(50, 111, 147, 0.08));
  list-style: none;
  cursor: pointer;
  transition: background-color 140ms ease;
}

.category-accordion > summary:hover {
  background: linear-gradient(135deg, rgba(122, 101, 46, 0.16), rgba(50, 111, 147, 0.12));
}

.category-accordion > summary::-webkit-details-marker {
  display: none;
}

.category-accordion > summary::after {
  content: "+";
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  font-size: 1.35rem;
  line-height: 1;
  color: #7b652e;
  font-weight: 700;
}

.category-accordion[open] > summary::after {
  content: "-";
}

.category-accordion > summary strong {
  display: block;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.15;
  color: #7b652e;
}

.category-accordion > summary em {
  display: block;
  margin-top: 0.2rem;
  font-style: normal;
  color: #4d6572;
  max-width: 54rem;
}

.category-accordion > summary span {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.category-content {
  margin-top: 0.9rem;
  padding: 1.2rem;
}

.section-intro {
  margin-bottom: 1.25rem;
}

.section-intro p:last-child {
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (min-width: 1400px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .hero-panel {
    grid-template-columns: 1fr;
  }
}

.service-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid rgba(50, 111, 147, 0.12);
  border-radius: 22px;
  padding: 1.05rem 1.05rem 0.9rem;
  box-shadow: 0 12px 30px rgba(50, 111, 147, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(50, 111, 147, 0.12);
}

.service-card h3 {
  margin: 0 0 0.55rem;
  color: #20323e;
  font-family: Quicksand, sans-serif;
  font-size: 1.06rem;
  line-height: 1.25;
}

.service-card p {
  margin: 0;
  color: #4d6572;
  max-width: 60ch;
  font-size: 0.95rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.service-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: rgba(122, 101, 46, 0.1);
  color: #7b652e;
  font-family: Quicksand, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
}

.service-card .service-actions {
  margin-top: auto;
  padding-top: 0.55rem;
  display: flex;
  justify-content: center;
  width: 100%;
  gap: 0.45rem;
}

.service-card .primary-button {
  width: 100%;
  min-height: 30px;
  padding: 0.22rem 0.55rem;
  font-size: 0.8rem;
}

.callout-panel {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  margin-top: 1.4rem;
  padding: 1.5rem;
}

.callout-panel h2 {
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.callout-panel p {
  margin-bottom: 0;
  color: #4d6572;
}

.quick-list li,
.section-intro p,
.service-card p,
.callout-panel p {
  margin-bottom: 0.75rem;
}

.quick-list li:last-child,
.section-intro p:last-child,
.service-card p:last-child {
  margin-bottom: 0;
}

@media (max-width: 750px) {
  .category-accordion > summary,
  .callout-panel {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .callout-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-card,
  .service-card:hover,
  .primary-button,
  .secondary-button {
    transform: none;
    transition: none;
  }
}
