/* RegiCore theme styles */

:root {
  --rc-teal: #3d72a4;
  --rc-teal-dark: #2d5f8e;
  --rc-dark: #283c57;
  --rc-dark-mid: #364d6a;
  --rc-dark-footer: #0f1a28;
  --rc-gray-50: #f9fafb;
  --rc-gray-100: #f3f4f6;
  --rc-gray-200: #e5e7eb;
  --rc-gray-600: #4b5563;
}

html { font-size: 17px; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* Kill the default top-level block-gap that WP inserts between sections — our sections own their own padding */
.wp-site-blocks > *,
:where(.wp-site-blocks) > *,
main.wp-block-group > *,
main#main > * { margin-block-start: 0 !important; margin-block-end: 0 !important; }
.rc-phero, .rc-section, .rc-related, .rc-cta, .rc-footer { margin: 0 !important; }

/* Layout helpers */
.rc-container { max-width: 1260px; margin-left: auto; margin-right: auto; padding-left: 2rem; padding-right: 2rem; }
@media (min-width: 1024px) { .rc-container { padding-left: 3rem; padding-right: 3rem; } }

/* Eyebrow label */
.rc-eyebrow { color: var(--rc-teal); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; display: inline-block; margin-bottom: 1rem; }

/* Section base padding */
.rc-section { padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 1024px) { .rc-section { padding-top: 5rem; padding-bottom: 5rem; } }
/* Section that follows the hero directly: pull it up so the hero→content gap is reasonable */
.rc-phero + .rc-section,
.rc-phero--cover + .rc-section,
main > .rc-phero + .rc-section { padding-top: 3rem; }
@media (min-width: 1024px) {
  .rc-phero + .rc-section,
  .rc-phero--cover + .rc-section,
  main > .rc-phero + .rc-section { padding-top: 4rem; }
}

/* Hero */
.rc-hero { position: relative; min-height: clamp(560px, 78vh, 820px); display: flex; align-items: center; overflow: hidden; padding: 5rem 2rem; }
@media (min-width: 1024px) { .rc-hero { padding-left: 3rem; padding-right: 3rem; } }
.rc-hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
.rc-hero__overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(20,30,45,0.92) 0%, rgba(20,30,45,0.75) 50%, rgba(20,30,45,0.35) 100%); }
.rc-hero__inner { position: relative; width: 100%; max-width: 1260px; margin: 0 auto; color: #fff; }
.rc-hero__title { font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; max-width: 780px; color: #fff; margin: 0 0 1.25rem; }
.rc-hero__lede { color: rgba(255,255,255,0.8); max-width: 480px; line-height: 1.65; margin: 0 0 2.25rem; }
.rc-hero__trust { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; color: rgba(255,255,255,0.75); font-size: 0.875rem; }
.rc-hero__trust .rc-avatars { display: inline-flex; align-items: center; }
.rc-hero__trust .rc-avatars img { width: 1.75rem; height: 1.75rem; border-radius: 9999px; object-fit: cover; box-shadow: 0 0 0 2px rgba(20,30,45,0.6); display: block; }
.rc-hero__trust .rc-avatars img + img { margin-left: -0.4rem; }
.rc-hero__trust strong { color: rgba(255,255,255,0.95); font-weight: 600; }

/* Buttons */
.rc-btn { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; padding: 0.85rem 1.75rem; border-radius: 9999px; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s; line-height: 1; }
.rc-btn--teal { background: var(--rc-teal); color: #fff; }
.rc-btn--teal:hover { background: var(--rc-teal-dark); color: #fff; }
.rc-btn--dark { background: var(--rc-dark); color: #fff; }
.rc-btn--dark:hover { background: var(--rc-dark-mid); color: #fff; }
.rc-btn--outline { border: 2px solid var(--rc-dark); color: var(--rc-dark); background: transparent; }
.rc-btn--outline:hover { background: var(--rc-dark); color: #fff; }
.rc-btn .rc-arrow { width: 1rem; height: 1rem; }

.rc-arrow { display: inline-block; width: 1rem; height: 1rem; vertical-align: middle; }
.rc-link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; color: var(--rc-dark); text-decoration: none; transition: color .2s; }
.rc-link-arrow:hover { color: var(--rc-teal); }

/* Icon tiles */
.rc-icon-tile { width: 3rem; height: 3rem; border-radius: 0.75rem; background: rgba(61,114,164,0.10); display: inline-flex; align-items: center; justify-content: center; color: var(--rc-teal); flex-shrink: 0; }
.rc-icon-tile svg { width: 1.5rem; height: 1.5rem; }
.rc-icon-tile--sm { width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; background: rgba(61,114,164,0.15); color: #fff; }
.rc-icon-tile--sm svg { width: 1.25rem; height: 1.25rem; }

/* About section: grid of 3 service cards */
.rc-about__hero-img { border-radius: 1rem; overflow: hidden; aspect-ratio: 21 / 9; background: var(--rc-gray-100); margin-bottom: 3rem; }
.rc-about__hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .rc-grid-3 { grid-template-columns: repeat(3, 1fr); } }
.rc-card-svc h3 { font-size: 1.125rem; font-weight: 700; margin: 0 0 0.5rem; color: var(--rc-dark); }
.rc-card-svc p { color: var(--rc-gray-600); margin: 0 0 1rem; line-height: 1.65; }
.rc-card-svc .rc-icon-tile { margin-bottom: 1.25rem; }

.rc-split-header { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: end; margin-bottom: 3.5rem; }
@media (min-width: 1024px) { .rc-split-header { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.rc-split-header h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); margin: 0; color: var(--rc-dark); }
.rc-split-header p { color: var(--rc-gray-600); line-height: 1.65; margin: 0; }

/* Global Clients */
.rc-global { background: var(--rc-gray-50); }
.rc-global__inner { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .rc-global__inner { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.rc-map { position: relative; width: 100%; max-width: 600px; aspect-ratio: 16/9; }
.rc-map svg { width: 100%; height: 100%; display: block; }
.rc-map__pin { position: absolute; }
.rc-map__pin > div { width: 3.5rem; height: 3.5rem; border-radius: 9999px; border: 3px solid #fff; box-shadow: 0 10px 25px rgba(0,0,0,0.15); overflow: hidden; }
.rc-map__pin img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Why section */
.rc-why__grid { display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px) { .rc-why__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.rc-why h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); margin: 0 0 0.75rem; color: var(--rc-dark); }
.rc-why__lede { color: var(--rc-gray-600); line-height: 1.65; margin: 0 0 2.5rem; }
.rc-feature { display: flex; gap: 1.25rem; padding: 1.5rem 0; }
.rc-feature + .rc-feature { border-top: 1px solid var(--rc-gray-200); }
.rc-feature h4 { font-size: 1.0625rem; font-weight: 700; color: var(--rc-dark); margin: 0 0 0.375rem; }
.rc-feature p { color: var(--rc-gray-600); line-height: 1.65; margin: 0; }
.rc-feature p strong { color: var(--rc-dark); font-weight: 600; }
.rc-testimonial { position: relative; }
.rc-testimonial__img { border-radius: 1rem; overflow: hidden; background: var(--rc-gray-100); }
.rc-testimonial__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; display: block; }
.rc-testimonial__card { position: absolute; bottom: -1.5rem; left: -1.5rem; background: #fff; border-radius: 0.75rem; box-shadow: 0 20px 50px -10px rgba(0,0,0,0.18); padding: 1.5rem; max-width: 340px; border: 1px solid var(--rc-gray-100); }
.rc-stars { display: flex; gap: 0.25rem; margin-bottom: 0.75rem; color: #fbbf24; }
.rc-stars svg { width: 1rem; height: 1rem; }
.rc-testimonial__quote { color: var(--rc-dark); font-weight: 500; line-height: 1.65; margin: 0 0 1rem; }
.rc-testimonial__author { display: flex; align-items: center; gap: 0.75rem; }
.rc-testimonial__author img { width: 2.25rem; height: 2.25rem; border-radius: 9999px; object-fit: cover; }
.rc-testimonial__name { color: var(--rc-dark); font-size: 0.875rem; font-weight: 600; }
.rc-testimonial__role { color: #6b7280; font-size: 0.875rem; }

/* Services Showcase */
.rc-svcshow { position: relative; color: #fff; overflow: hidden; }
.rc-svcshow__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
.rc-svcshow__overlay { position: absolute; inset: 0; background: rgba(15,26,40,0.97); }
.rc-svcshow__inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 4rem; align-items: start; }
@media (min-width: 1024px) { .rc-svcshow__inner { grid-template-columns: 1fr 1fr; gap: 6rem; } }
.rc-svcshow h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); color: #fff; margin: 0 0 1.5rem; }
.rc-svcshow p.lede { color: rgba(255,255,255,0.8); max-width: 28rem; line-height: 1.65; margin: 0 0 2.5rem; }
.rc-svc-item { display: flex; gap: 1.25rem; padding: 1.5rem 0; border-bottom: 1px solid rgba(255,255,255,0.15); color: inherit; text-decoration: none; transition: border-color .2s; }
.rc-svc-item:last-child { border-bottom: none; }
.rc-svc-item:hover { border-bottom-color: rgba(61,114,164,0.5); }
.rc-svc-item__title { font-size: 1.125rem; font-weight: 600; color: #fff; }
.rc-svc-item__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.375rem; }
.rc-svc-item__head svg { width: 1rem; height: 1rem; color: #fff; transition: color .2s; }
.rc-svc-item:hover .rc-svc-item__head svg { color: var(--rc-teal); }
.rc-svc-item p { color: rgba(255,255,255,0.75); line-height: 1.65; margin: 0; }

/* Insights */
.rc-insights h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); color: var(--rc-dark); margin: 0 0 3rem; }
.rc-insights__grid { display: grid; grid-template-columns: 1fr; gap: 1.75rem; }
@media (min-width: 768px) { .rc-insights__grid { grid-template-columns: repeat(3, 1fr); } }

/* WP Query Loop renders posts inside .wp-block-post-template (a UL).
   Inside any rc-insights__grid wrapper, turn that UL into the grid. */
.rc-insights__grid .wp-block-post-template,
.rc-insights__grid > .wp-block-post-template,
ul.wp-block-post-template.rc-insights__grid,
.wp-block-query > ul.wp-block-post-template.rc-insights__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 768px) {
  .rc-insights__grid .wp-block-post-template,
  .rc-insights__grid > .wp-block-post-template,
  ul.wp-block-post-template.rc-insights__grid,
  .wp-block-query > ul.wp-block-post-template.rc-insights__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.rc-insights__grid .wp-block-post-template > li,
ul.wp-block-post-template.rc-insights__grid > li,
ul.rc-insights__grid > li,
ul.rc-insights__grid.wp-block-post-template > li {
  background: #fff;
  border-radius: 0.75rem;
  border: 1px solid var(--rc-gray-100);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0 !important;            /* kill WP flow-layout sibling margin so cards align in the grid row */
  margin-block-start: 0 !important;
  margin-block-end: 0 !important;
}
.rc-insights__grid .wp-block-post-template .wp-block-post-featured-image {
  margin: 0;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.rc-insights__grid .wp-block-post-template .wp-block-post-featured-image img {
  width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; transition: transform .5s;
}
.rc-insights__grid .wp-block-post-template > li:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.rc-insights__grid .wp-block-post-template .rc-insight__body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.rc-insights__grid .wp-block-post-template .wp-block-post-title { font-size: 1.125rem !important; line-height: 1.35; color: var(--rc-dark); margin: 0 0 0.5rem !important; }
.rc-insights__grid .wp-block-post-template .wp-block-post-title a { color: var(--rc-dark); text-decoration: none; }
.rc-insights__grid .wp-block-post-template .wp-block-post-title a:hover { color: var(--rc-teal); }
.rc-insights__grid .wp-block-post-template .wp-block-post-excerpt { margin: 0; color: var(--rc-gray-600); line-height: 1.65; }
.rc-insights__grid .wp-block-post-template .wp-block-post-excerpt a { color: var(--rc-dark); font-weight: 600; text-decoration: none; }
.rc-insights__grid .wp-block-post-template .wp-block-post-excerpt a:hover { color: var(--rc-teal); }
.rc-insights__grid .wp-block-post-template .wp-block-post-excerpt__more-text { display: inline-block; margin-top: 0.5rem; }
.rc-insight { background: #fff; border-radius: 0.75rem; border: 1px solid var(--rc-gray-100); overflow: hidden; }
.rc-insight__img { aspect-ratio: 4/3; overflow: hidden; }
.rc-insight__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; display: block; }
.rc-insight:hover .rc-insight__img img { transform: scale(1.05); }
.rc-insight__body { padding: 1.5rem; }
.rc-insight__body h3 { font-size: 1.125rem; line-height: 1.35; color: var(--rc-dark); margin: 0 0 0.5rem; }
.rc-insight__body p { color: var(--rc-gray-600); line-height: 1.65; margin: 0 0 1rem; }
.rc-insight--dark { background: var(--rc-dark); border: none; padding: 2rem; display: flex; flex-direction: column; justify-content: space-between; min-height: 380px; }
.rc-insight--dark h3 { color: #fff; font-size: 1.5rem; line-height: 1.35; max-width: 280px; }
.rc-insight--dark .rc-circle { width: 3rem; height: 3rem; border-radius: 9999px; background: var(--rc-teal); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background-color .2s; }
.rc-insight--dark .rc-circle:hover { background: var(--rc-teal-dark); }
.rc-insight--dark .rc-circle svg { width: 1.25rem; height: 1.25rem; }

/* CTA */
.rc-cta { position: relative; padding: 6rem 2rem; background: var(--rc-gray-50); overflow: hidden; }
@media (min-width: 1024px) { .rc-cta { padding-left: 3rem; padding-right: 3rem; } }
.rc-cta__inner { position: relative; max-width: 36rem; margin: 0 auto; text-align: center; }
.rc-cta h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); color: var(--rc-dark); margin: 0; }
.rc-cta p { color: var(--rc-gray-600); max-width: 28rem; margin: 1rem auto 0; }
.rc-cta__btnwrap { margin-top: 2rem; }
.rc-cta__bg { position: absolute; inset: 0; pointer-events: none; }
.rc-cta__bg span { position: absolute; width: 2.5rem; height: 2.5rem; border-radius: 0.375rem; animation: rc-floatSq 8s ease-in-out infinite; }

@keyframes rc-floatSq {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

/* Animations */
.rc-fade-up { opacity: 0; transform: translateY(24px); animation: rc-fadeUp 0.7s ease-out forwards; }
.rc-fade-up--1 { animation-delay: 0.15s; }
.rc-fade-up--2 { animation-delay: 0.3s; }
.rc-fade-up--3 { animation-delay: 0.45s; }
.rc-fade-up--4 { animation-delay: 0.6s; }
@keyframes rc-fadeUp { to { opacity: 1; transform: translateY(0); } }

.rc-reveal { opacity: 0; transform: translateY(12px); transition: opacity .7s ease-out, transform .7s ease-out; }
.rc-reveal.is-visible { opacity: 1; transform: translateY(0); }
.rc-reveal--1 { transition-delay: 0.1s; }
.rc-reveal--2 { transition-delay: 0.2s; }
.rc-reveal--3 { transition-delay: 0.3s; }

/* Header / Nav */
.rc-nav { background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.04); padding-left: 2rem; padding-right: 2rem; position: relative; z-index: 50; }
@media (min-width: 1024px) { .rc-nav { padding-left: 3rem; padding-right: 3rem; } }
.rc-nav__inner { max-width: 1260px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; }
.rc-nav__logo img { height: 3rem; width: auto; display: block; }
.rc-nav__menu { display: none; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .rc-nav__menu { display: flex; } }
.rc-nav__menu a { color: var(--rc-dark); text-decoration: none; transition: color .2s; }
.rc-nav__menu a:hover, .rc-nav__menu a.is-active { color: var(--rc-teal); }
.rc-nav__toggle { display: inline-flex; padding: 0.5rem; background: none; border: none; color: var(--rc-dark); cursor: pointer; }
@media (min-width: 768px) { .rc-nav__toggle { display: none; } }
.rc-nav__toggle svg { width: 1.5rem; height: 1.5rem; }

.rc-mobile-menu { display: none; position: fixed; inset: 0; z-index: 60; background: #fff; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem; }
.rc-mobile-menu.is-open { display: flex; }
.rc-mobile-menu a { font-size: 1.25rem; font-weight: 600; color: var(--rc-dark); text-decoration: none; }
.rc-mobile-menu__close { position: absolute; top: 1.25rem; right: 1.5rem; padding: 0.5rem; background: none; border: none; color: var(--rc-dark); cursor: pointer; }
.rc-mobile-menu__close svg { width: 1.5rem; height: 1.5rem; }

/* Footer */
.rc-footer { background: var(--rc-dark-footer); color: rgba(255,255,255,0.75); }
.rc-footer__inner { max-width: 1260px; margin: 0 auto; }
.rc-footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem; padding: 3rem 2rem; }
@media (min-width: 1024px) { .rc-footer__cols { padding-left: 3rem; padding-right: 3rem; } }
@media (min-width: 768px) { .rc-footer__cols { grid-template-columns: repeat(4, 1fr); } }
.rc-footer h4 { color: #fff; font-weight: 700; margin: 0 0 1rem; font-size: 1rem; }
.rc-footer ul { list-style: none; padding: 0; margin: 0; }
.rc-footer li { margin-bottom: 0.625rem; line-height: 1.5; }
.rc-footer a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color .2s; }
.rc-footer a:hover { color: rgba(255,255,255,0.95); }
.rc-footer__legal {
  padding: 1.25rem 2rem;
  margin: 0 2rem;            /* same inset as the cols' inner padding so the rule and the text align */
  border-top: 1px solid rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
}
.rc-footer__legal p { margin: 0; }
@media (min-width: 1024px) {
  .rc-footer__legal { padding: 1.25rem 0; margin: 0 3rem; }
}

/* ---------- Inner page hero ---------- */
.rc-phero { position: relative; min-height: 52vh; display: flex; align-items: flex-end; overflow: hidden; padding: 0 2rem; }
@media (min-width: 1024px) { .rc-phero { padding-left: 3rem; padding-right: 3rem; } }
.rc-phero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; background-attachment: fixed; }
.rc-phero__overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(20,30,45,0.92) 0%, rgba(20,30,45,0.78) 55%, rgba(20,30,45,0.55) 100%); }
.rc-phero__inner { position: relative; width: 100%; max-width: 1260px; margin: 0 auto; padding: 5rem 0 2.5rem; color: #fff; }
.rc-phero__inner h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; max-width: 780px; color: #fff; margin: 0; }
.rc-phero__inner .rc-eyebrow { color: #9bc1e3; }
.rc-phero__inner p { color: rgba(255,255,255,0.85); max-width: 620px; line-height: 1.65; margin: 1.25rem 0 0; font-size: 1rem; }

/* ---------- About: who-we-are ---------- */
.rc-who { display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: center; }
@media (min-width: 1024px) { .rc-who { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.rc-who h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); color: var(--rc-dark); margin: 0 0 1.5rem; }
.rc-who__body p { color: var(--rc-gray-600); line-height: 1.7; margin: 0 0 1.25rem; }
.rc-who__img { border-radius: 1rem; overflow: hidden; background: var(--rc-gray-100); }
.rc-who__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/5; display: block; }

/* ---------- About: core values ---------- */
.rc-values__head { max-width: 42rem; margin-bottom: 3.5rem; }
.rc-values__head h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); color: var(--rc-dark); margin: 0; }
.rc-values__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 768px) { .rc-values__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .rc-values__grid { grid-template-columns: repeat(3, 1fr); } }
.rc-value { background: #fff; border-radius: 1rem; padding: 2rem; border: 1px solid var(--rc-gray-100); }
.rc-value__num { color: var(--rc-teal); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.08em; }
.rc-value h3 { font-size: 1.125rem; font-weight: 700; color: var(--rc-dark); margin: 0.75rem 0 0.75rem; }
.rc-value p { color: var(--rc-gray-600); line-height: 1.65; margin: 0; }

/* ---------- About: approach steps ---------- */
.rc-approach__head { max-width: 42rem; margin-bottom: 4rem; }
.rc-approach__head h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); color: var(--rc-dark); margin: 0 0 1.25rem; }
.rc-approach__head p { color: var(--rc-gray-600); line-height: 1.65; margin: 0; }
.rc-step { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: center; margin-bottom: 4rem; }
@media (min-width: 1024px) { .rc-step { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.rc-step:last-child { margin-bottom: 0; }
.rc-step--reverse .rc-step__copy { order: 1; }
@media (min-width: 1024px) { .rc-step--reverse .rc-step__copy { order: 2; } .rc-step--reverse .rc-step__img { order: 1; } }
.rc-step__copy .rc-eyebrow { color: var(--rc-teal); }
.rc-step__copy h3 { font-size: clamp(1.5rem, 2.5vw, 1.875rem); color: var(--rc-dark); margin: 1rem 0 1.25rem; line-height: 1.3; }
.rc-step__copy p { color: var(--rc-gray-600); line-height: 1.7; margin: 0; }
.rc-step__img { border-radius: 1rem; overflow: hidden; background: var(--rc-gray-100); }
.rc-step__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; display: block; }

/* ---------- Services page ---------- */
.rc-srvrow { display: grid; grid-template-columns: 1fr; gap: 3rem; align-items: start; }
@media (min-width: 1024px) { .rc-srvrow { grid-template-columns: 1fr 1.4fr; gap: 5rem; } }
.rc-srvrow__num { color: var(--rc-teal); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.08em; }
.rc-srvrow h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--rc-dark); margin: 0.75rem 0 0; line-height: 1.2; }
.rc-srvrow__copy p { color: var(--rc-gray-600); font-size: 1.0625rem; line-height: 1.7; margin: 0 0 1.5rem; }
.rc-srvrow__list { list-style: none; padding: 0; margin: 0; color: var(--rc-gray-600); }
.rc-srvrow__list li { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.5rem 0; line-height: 1.55; }
.rc-srvrow__list svg { width: 1.25rem; height: 1.25rem; color: var(--rc-teal); flex-shrink: 0; margin-top: 0.15rem; }
section.rc-srv--alt { background: var(--rc-gray-50); }

/* ---------- Contact ---------- */
.rc-contact { display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: start; }
@media (min-width: 1024px) { .rc-contact { grid-template-columns: 1fr 1.2fr; gap: 5rem; } }
.rc-contact h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); color: var(--rc-dark); margin: 0 0 1.25rem; }
.rc-contact__lede { color: var(--rc-gray-600); line-height: 1.65; margin: 0 0 2.5rem; max-width: 28rem; }
.rc-contact__list { display: flex; flex-direction: column; gap: 1.75rem; }
.rc-contact__item { display: flex; gap: 1rem; }
.rc-contact__item .rc-icon-tile { width: 2.75rem; height: 2.75rem; }
.rc-contact__item .rc-icon-tile svg { width: 1.25rem; height: 1.25rem; }
.rc-contact__label { color: var(--rc-dark); font-weight: 600; margin: 0 0 0.125rem; }
.rc-contact__item a, .rc-contact__item p { color: var(--rc-gray-600); margin: 0; line-height: 1.55; text-decoration: none; }
.rc-contact__item a:hover { color: var(--rc-teal); }

.rc-form { background: #fff; border: 1px solid var(--rc-gray-100); border-radius: 1rem; padding: 2rem; }
@media (min-width: 1024px) { .rc-form { padding: 2.5rem; } }
.rc-form h3 { font-size: 1.25rem; font-weight: 600; color: var(--rc-dark); margin: 0 0 0.5rem; }
.rc-form__sub { color: #6b7280; font-size: 0.875rem; margin: 0 0 1.75rem; }
.rc-form__sub .rc-req { color: var(--rc-teal); }
.rc-form .rc-field { margin-bottom: 1.25rem; }
.rc-form label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--rc-dark); margin-bottom: 0.375rem; }
.rc-form input, .rc-form textarea { width: 100%; padding: 0.75rem 1rem; border-radius: 0.5rem; background: var(--rc-gray-50); border: 1px solid var(--rc-gray-200); color: var(--rc-dark); font-size: 0.875rem; font-family: inherit; transition: border-color .15s, box-shadow .15s; box-sizing: border-box; }
.rc-form input:focus, .rc-form textarea:focus { outline: none; border-color: var(--rc-teal); box-shadow: 0 0 0 1px var(--rc-teal); }
.rc-form textarea { resize: vertical; min-height: 8rem; }
.rc-form button { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; background: var(--rc-teal); color: #fff; font-weight: 600; padding: 0.875rem 1.75rem; border-radius: 0.5rem; border: none; cursor: pointer; transition: background-color .2s; }
.rc-form button:hover { background: var(--rc-teal-dark); }
.rc-form button svg { width: 1rem; height: 1rem; }
.rc-form__hp { position: absolute; left: -9999px; visibility: hidden; }
.rc-form__notice { padding: 1rem 1.25rem; border-radius: 0.75rem; margin-bottom: 1.5rem; font-size: 0.95rem; }
.rc-form__notice--ok { background: rgba(61,114,164,0.10); border: 1px solid rgba(61,114,164,0.30); color: var(--rc-teal-dark); }
.rc-form__notice--err { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }

/* ---------- Single post hero (cover-rendered) ----------
   The hero text column is pinned to the same 760px width as the article body
   so the H1 sits in a straight vertical line with the meta, TOC and paragraphs
   directly beneath it. Background image still bleeds full-width. */
.rc-phero--cover.wp-block-cover {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 1.5rem;
  min-height: 38vh !important;
}
@media (min-width: 1024px) {
  .rc-phero--cover.wp-block-cover { padding-left: 2rem; padding-right: 2rem; min-height: 42vh !important; }
}
.rc-phero--cover.wp-block-cover .wp-block-cover__inner-container {
  width: 100%;
  max-width: 760px !important;
  flex-basis: 100% !important;
  min-width: 0;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 0;
  margin-bottom: 0;
  padding: 4rem 0 2.25rem;
}
.rc-phero--cover .rc-phero__inner {
  padding: 0 !important;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.rc-phero--cover .rc-breadcrumbs--hero { margin: 0 0 0.25rem; font-size: 0.85rem; }
.rc-phero--cover .rc-eyebrow {
  color: #9bc1e3 !important;
  margin: 0 !important;
  letter-spacing: 0.18em;
}
.rc-phero--cover .wp-block-post-title {
  color: #fff !important;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0.25rem 0 0 !important;
  max-width: none;
}

/* Article wrapper is full width with outer gutter; the inner column is hard-pinned to 760px.
   Highest specificity is intentional: WP's own layout/inline rules win otherwise. */
article.rc-post,
.wp-block-group.rc-post {
  padding: 3.5rem 1.5rem 4rem;
  color: var(--rc-dark);
  font-size: 1.0625rem;
  line-height: 1.8;
  max-width: none;
}
@media (min-width: 1024px) {
  article.rc-post,
  .wp-block-group.rc-post { padding: 4rem 2rem 5rem; }
}
article.rc-post > .wp-block-post-content,
.wp-block-group.rc-post > .wp-block-post-content,
article.rc-post .entry-content,
.wp-block-group.rc-post .entry-content {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.rc-breadcrumbs { font-size: 0.875rem; color: #6b7280; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.rc-breadcrumbs a { color: var(--rc-teal); text-decoration: none; }
.rc-breadcrumbs a:hover { color: var(--rc-teal-dark); }
.rc-breadcrumbs [aria-current="page"] { color: var(--rc-dark); }
.rc-breadcrumbs--hero { color: rgba(255,255,255,0.7); }
.rc-breadcrumbs--hero a { color: rgba(255,255,255,0.9); }
.rc-breadcrumbs--hero a:hover { color: #fff; }
.rc-post > * + * { margin-top: 1.25rem; }
.rc-post h2 { font-size: 1.625rem; font-weight: 600; color: var(--rc-dark); margin-top: 2.5rem; margin-bottom: 0.75rem; letter-spacing: -0.01em; }
.rc-post h3 { font-size: 1.25rem; font-weight: 600; color: var(--rc-dark); margin-top: 2rem; margin-bottom: 0.5rem; }
.rc-post p { color: var(--rc-gray-600); margin: 0; }
.rc-post ul, .rc-post ol { color: var(--rc-gray-600); padding-left: 1.5rem; line-height: 1.8; }
.rc-post ul li, .rc-post ol li { margin-bottom: 0.5rem; }
.rc-post a { color: var(--rc-teal); text-decoration: underline; text-underline-offset: 3px; }
.rc-post a:hover { color: var(--rc-teal-dark); }
.rc-post blockquote { border-left: 3px solid var(--rc-teal); margin: 2rem 0; padding: 0.5rem 0 0.5rem 1.5rem; font-style: italic; color: var(--rc-dark); }
.rc-post img { border-radius: 0.75rem; }

.rc-related { padding: 4rem 2rem 1.5rem; }
@media (min-width: 1024px) { .rc-related { padding-left: 3rem; padding-right: 3rem; } }
.rc-related .rc-eyebrow { color: var(--rc-teal); margin: 0 0 0.5rem; }
.rc-related h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); color: var(--rc-dark); margin: 0; }

/* Read-more link in post cards: own line, with arrow icon */
.wp-block-read-more.rc-link-arrow,
a.wp-block-read-more.rc-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1rem;
  color: var(--rc-dark);
  font-weight: 600;
  text-decoration: none;
}
.wp-block-read-more.rc-link-arrow:hover,
a.wp-block-read-more.rc-link-arrow:hover { color: var(--rc-teal); }
.wp-block-read-more.rc-link-arrow::after {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.5' viewBox='0 0 24 24'><path stroke-linecap='round' stroke-linejoin='round' d='M7 17L17 7M17 7H7M17 7v10'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='black' stroke-width='2.5' viewBox='0 0 24 24'><path stroke-linecap='round' stroke-linejoin='round' d='M7 17L17 7M17 7H7M17 7v10'/></svg>") no-repeat center / contain;
}

/* Ensure the post-excerpt paragraph in cards no longer ends with the trailing more text on the same line */
.rc-insights__grid .wp-block-post-template .wp-block-post-excerpt p { margin: 0; }
.rc-insights__grid .wp-block-post-template .rc-insight__body { gap: 0; }

/* Post meta line + TOC.
   .rc-post p { margin: 0 } wins on specificity over plain .rc-post__meta,
   so qualify the selector to win the cascade cleanly. */
.rc-post p.rc-post__meta,
article.rc-post p.rc-post__meta {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}
.rc-post p.rc-post__meta time { color: var(--rc-dark); font-weight: 500; }
.rc-toc { background: var(--rc-gray-50); border: 1px solid var(--rc-gray-100); border-radius: 0.75rem; padding: 1.5rem 1.5rem 1.5rem 2.75rem; margin: 0 0 2rem; }
.rc-toc__label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 600; color: var(--rc-teal); margin: 0 0 0.75rem; padding-left: 0; }
.rc-toc ol { margin: 0; padding-left: 0.5rem; color: var(--rc-gray-600); }
.rc-toc ol li { margin-bottom: 0.4rem; }
.rc-toc ol li a { color: var(--rc-dark); text-decoration: none; }
.rc-toc ol li a:hover { color: var(--rc-teal); text-decoration: underline; text-underline-offset: 3px; }

/* FAQ accordion on the services page */
.rc-faq { padding: 5rem 2rem; background: #fff; }
@media (min-width: 1024px) { .rc-faq { padding-left: 3rem; padding-right: 3rem; } }
.rc-faq__head { max-width: 42rem; margin: 0 auto 2.5rem; text-align: center; }
.rc-faq__head h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); color: var(--rc-dark); margin: 1rem 0 0; }
.rc-faq__list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }
.rc-faq details { background: var(--rc-gray-50); border: 1px solid var(--rc-gray-100); border-radius: 0.75rem; padding: 1.25rem 1.5rem; }
.rc-faq summary { font-weight: 600; color: var(--rc-dark); cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rc-faq summary::-webkit-details-marker { display: none; }
.rc-faq summary::after { content: "+"; color: var(--rc-teal); font-weight: 400; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.rc-faq details[open] summary::after { content: "−"; }
.rc-faq details p { margin: 0.75rem 0 0; color: var(--rc-gray-600); line-height: 1.65; }

