/* Consultant theme: extras that theme.json cannot express. */

:root {
  --c-primary: #175E60;
  --c-primary-dark: #0F4344;
  --c-accent: #E4D88C;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(8px);
}
.admin-bar .site-header { top: 32px; }
.site-header .wp-block-site-title a { text-decoration: none; color: inherit; }
.site-header .wp-block-navigation a { text-decoration: none; }
.site-header .wp-block-navigation__submenu-container {
  background: var(--c-primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 0.5rem;
  min-width: 230px;
}
.site-header .wp-block-navigation__submenu-container a:hover { color: var(--c-accent); }
.header-cta .wp-block-button__link { white-space: nowrap; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .eyebrow, .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.hero-art {
  position: relative;
  width: 100%;
  max-width: 380px;
  aspect-ratio: 359 / 386;
  margin-inline: auto;
}
/* Two overlapping pills that echo the logo mark */
.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  top: 6%;
  bottom: 6%;
  border-radius: 999px 999px 999px 999px / 50% 50% 50% 50%;
}
.hero-art::before {
  left: 8%;
  width: 56%;
  background: var(--c-accent);
  border-radius: 140px 0 0 140px;
}
.hero-art::after {
  right: 6%;
  width: 52%;
  background: #175E60;
  border-radius: 0 140px 140px 0;
  box-shadow: -10px 12px 0 rgba(0, 0, 0, 0.15);
}

/* ---------- Logo marquee ---------- */
.logo-strip { overflow: hidden; }
.logo-strip .marquee {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 4rem !important;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.logo-strip .marquee p {
  margin: 0;
  white-space: nowrap;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .logo-strip .marquee { animation: none; }
}

/* ---------- Media placeholder ---------- */
.media-ph {
  min-height: 340px;
  border-radius: 24px;
  position: relative;
  overflow: hidden;
}
.media-ph::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 55%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

/* ---------- Cards ---------- */
.card {
  height: 100%;
  border-radius: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 67, 68, 0.14); }
.card .wp-block-button__link { padding-left: 1.2em; padding-right: 1.2em; }

/* ---------- Testimonials ---------- */
.testimonials-scroll {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 1.5rem !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}
.testimonials-scroll > .testimonial {
  flex: 0 0 min(420px, 86vw);
  scroll-snap-align: start;
}
.testimonial blockquote, .testimonial .wp-block-quote { margin: 0; border: 0; padding: 0; }

/* ---------- Case study / query cards ---------- */
.wp-block-post-template.is-layout-grid { gap: 2rem; }
.wp-block-post-featured-image img { border-radius: 16px; width: 100%; height: auto; }
.wp-block-post-title a { text-decoration: none; color: inherit; }
.wp-block-post-title a:hover { color: var(--c-primary); }

/* ---------- Page title band ---------- */
.page-hero { background: var(--c-primary-dark); color: #fff; }

/* ---------- Footer ---------- */
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--c-accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 0.5rem; }

@media (max-width: 781px) {
  .admin-bar .site-header { top: 46px; }
  .hero-art { max-width: 260px; margin-top: 2rem; }
}
