.previewRoot {
  --preview-white: #ffffff;
  --preview-mineral: #f6f9f7;
  --preview-ink: #17201c;
  --preview-text: #34423c;
  --preview-muted: #6b7772;
  --preview-green: #15513c;
  --preview-green-hover: #0f4432;
  --preview-green-soft: #eff8f4;
  --preview-border: #dde4e0;
  --preview-border-strong: #c3cdc8;
  min-height: 0;
  overflow-x: clip;
  background: var(--preview-white);
  color: var(--preview-ink);
  font-family: Manrope, Arial, sans-serif;
}

body:has(.design-preview-root) {
  background: #ffffff;
}

body:has(.design-preview-root) .civic-site {
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
}

body:has(.design-preview-root) .civic-main {
  display: flex;
  width: 100%;
  min-height: 0;
  min-width: 0;
  flex: 1 0 auto;
}

body:has(.design-preview-root) > .site-header,
body:has(.design-preview-root) > footer {
  display: none;
}

.previewRoot h1,
.previewRoot h2,
.previewRoot h3,
.previewRoot p {
  margin: 0;
}

.previewRoot h1,
.previewRoot h2,
.previewRoot h3,
.cardName,
.trustMark,
.logo {
  font-family: Onest, Manrope, Arial, sans-serif;
}

.previewRoot a,
.previewRoot button {
  -webkit-tap-highlight-color: transparent;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 80px;
  border-bottom: 1px solid rgba(221, 228, 224, 0.84);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.headerInner {
  display: flex;
  width: min(1280px, calc(100% - 48px));
  min-height: 80px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  color: var(--preview-green);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.previewNav {
  display: flex;
  width: auto;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}

.desktopNavLink,
.loginLink {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  border-radius: 10px;
  color: var(--preview-text);
}

.desktopNavLink:hover,
.loginLink:hover {
  color: var(--preview-green);
}

.loginLink {
  padding: 0 18px;
  border: 1px solid var(--preview-border-strong);
  color: var(--preview-green);
}

.heroSection {
  display: flex;
  min-width: 0;
  flex: 1 0 auto;
  flex-direction: column;
  background: var(--preview-white);
}

.heroInner {
  display: grid;
  width: min(1280px, calc(100% - 48px));
  min-height: 520px;
  flex: 1 0 auto;
  margin: 0 auto;
  grid-template-columns: minmax(0, 1fr) minmax(470px, 616px);
  align-items: center;
  gap: 64px;
  padding: 52px 0 48px;
}

body:has(.design-preview-root) .previewRoot {
  display: flex;
  width: 100%;
  min-width: 0;
  flex: 1 0 auto;
  flex-direction: column;
}

body:has(.design-preview-root) .civic-footer {
  flex: 0 0 auto;
}

.heroCopy {
  max-width: 600px;
}

.eyebrow {
  color: var(--preview-green);
  font-size: 14px;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.heroCopy h1 {
  max-width: 590px;
  margin-top: 0;
  font-size: clamp(42px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.125;
  letter-spacing: -0.8px;
}

.heroText {
  max-width: 565px;
  margin-top: 24px !important;
  color: var(--preview-text);
  font-size: 18px;
  line-height: 28px;
}

.heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.primaryButton,
.secondaryButton {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.primaryButton {
  background: var(--preview-green);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(21, 81, 60, 0.16);
}

.primaryButton:hover {
  background: var(--preview-green-hover);
  transform: translateY(-1px);
}

.secondaryButton {
  border-color: var(--preview-border-strong);
  background: #ffffff;
  color: var(--preview-ink);
}

.secondaryButton:hover {
  border-color: var(--preview-green);
  color: var(--preview-green);
}

.assurance {
  display: block;
  max-width: 560px;
  margin-top: 24px !important;
  color: var(--preview-muted);
  font-size: 13px;
  line-height: 20px;
}

.assuranceDetail {
  display: inline;
}

.carousel {
  --cover-near-offset: 208px;
  --cover-exit-offset: 460px;
  position: relative;
  width: 100%;
  min-width: 0;
  outline: none;
}

.carousel::before {
  position: absolute;
  z-index: 0;
  top: 282px;
  left: 50%;
  width: min(560px, 86%);
  height: 104px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(21, 81, 60, 0.14) 0%, rgba(21, 81, 60, 0.06) 44%, rgba(21, 81, 60, 0) 76%);
  content: "";
  filter: blur(14px);
  pointer-events: none;
  transform: translateX(-50%);
}

.carouselStage {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 326px;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.carouselStage:active {
  cursor: grabbing;
}

.specialistCard {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  display: flex;
  width: 240px;
  height: 244px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 18px 17px;
  overflow: hidden;
  border: 1px solid var(--preview-border);
  border-radius: 16px;
  background: #ffffff;
  color: var(--preview-ink);
  font: inherit;
  text-align: center;
  box-shadow: 0 10px 24px rgba(13, 31, 23, 0.09);
  cursor: pointer;
  backface-visibility: hidden;
  /* Let Chrome retire the composited layer after the transition. */
  transition:
    transform 400ms cubic-bezier(0.2, 0.72, 0.2, 1),
    width 400ms cubic-bezier(0.2, 0.72, 0.2, 1),
    height 400ms cubic-bezier(0.2, 0.72, 0.2, 1),
    padding 400ms cubic-bezier(0.2, 0.72, 0.2, 1),
    box-shadow 400ms ease,
    border-color 180ms ease,
    opacity 260ms ease;
}

.specialistCard.left {
  z-index: 2;
  opacity: 1;
  transform: translate3d(calc(-50% - var(--cover-near-offset)), 44px, -24px) rotateY(6deg) scale(0.985);
  transform-origin: right center;
}

.specialistCard.right {
  z-index: 2;
  opacity: 1;
  transform: translate3d(calc(-50% + var(--cover-near-offset)), 44px, -24px) rotateY(-6deg) scale(0.985);
  transform-origin: left center;
}

.specialistCard.center {
  left: 50%;
  z-index: 3;
  width: 308px;
  height: 286px;
  padding: 20px 22px;
  opacity: 1;
  transform: translate3d(-50%, 20px, 0);
  box-shadow: 0 16px 36px rgba(13, 31, 23, 0.14);
}

.specialistCard.farLeft,
.specialistCard.farRight {
  z-index: 0;
  opacity: 1;
  pointer-events: none;
}

.specialistCard.hidden {
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

.specialistCard.farLeft {
  transform: translate3d(calc(-50% - var(--cover-exit-offset)), 54px, -80px) rotateY(10deg) scale(0.9);
}

.specialistCard.farRight {
  transform: translate3d(calc(-50% + var(--cover-exit-offset)), 54px, -80px) rotateY(-10deg) scale(0.9);
}

.specialistCard.hidden {
  transform: translate3d(-50%, 54px, -120px) scale(0.84);
}

.specialistCard:hover {
  border-color: var(--preview-border-strong);
}

.specialistCard.center:hover {
  transform: translate3d(-50%, 17px, 0);
  box-shadow: 0 20px 42px rgba(13, 31, 23, 0.17);
}

.portrait {
  display: block;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 50%;
  transition: width 400ms cubic-bezier(0.2, 0.72, 0.2, 1), height 400ms cubic-bezier(0.2, 0.72, 0.2, 1), margin 400ms ease;
}

.portrait img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.center .portrait {
  width: 94px;
  height: 94px;
  margin-bottom: 14px;
}

.cardName {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--preview-ink);
  font-size: 18px;
  font-weight: 600;
  line-height: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: font-size 400ms ease, line-height 400ms ease;
}

.center .cardName {
  font-size: 20px;
  line-height: 26px;
}

.cardSpecialization,
.cardMeta {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cardSpecialization {
  margin-top: 6px;
  color: var(--preview-text);
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  transition: font-size 400ms ease, line-height 400ms ease;
}

.center .cardSpecialization {
  font-size: 15px;
  line-height: 20px;
}

.cardMeta {
  margin-top: 4px;
  color: var(--preview-muted);
  font-size: 13px;
  line-height: 18px;
  transition: font-size 400ms ease, line-height 400ms ease;
}

.trustMark {
  display: inline-flex;
  max-width: 100%;
  min-height: 28px;
  margin-top: 10px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--preview-green-soft);
  color: var(--preview-green);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
  transition: margin 400ms ease, padding 400ms ease, font-size 400ms ease, line-height 400ms ease;
}

.center .trustMark {
  margin-top: 18px;
  font-size: 14px;
}

.carouselControls {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.carouselControls button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--preview-border-strong);
  border-radius: 12px;
  background: #ffffff;
  color: var(--preview-green);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.carouselControls button:hover {
  border-color: var(--preview-green);
  background: var(--preview-green-soft);
  transform: translateY(-1px);
}

@media (min-width: 1121px) {
  .heroInner {
    padding: 40px 0;
  }

  .heroCopy h1 {
    max-width: 620px;
    font-size: 54px;
    line-height: 1.1;
    letter-spacing: -0.9px;
  }

  .primaryButton,
  .secondaryButton {
    min-height: 54px;
    padding-right: 24px;
    padding-left: 24px;
  }

  .carouselStage {
    height: 332px;
  }

  .specialistCard {
    width: 250px;
    height: 254px;
    padding: 19px 18px;
  }

  .specialistCard.center {
    width: 320px;
    height: 300px;
    padding: 22px 24px;
    transform: translate3d(-50%, 14px, 0);
  }

  .specialistCard.center:hover {
    transform: translate3d(-50%, 11px, 0);
  }

  .portrait {
    width: 86px;
    height: 86px;
  }

  .center .portrait {
    width: 100px;
    height: 100px;
  }

  .center .cardName {
    font-size: 21px;
    line-height: 27px;
  }
}

.previewRoot a:focus-visible,
.previewRoot button:focus-visible,
.carousel:focus-visible {
  outline: 3px solid rgba(21, 81, 60, 0.28);
  outline-offset: 3px;
}

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

@media (max-width: 1120px) {
  .heroInner {
    grid-template-columns: minmax(0, 1fr) minmax(430px, 0.95fr);
    gap: 28px;
  }

  .specialistCard {
    width: 212px;
  }

  .specialistCard.center {
    width: 284px;
  }

  .carousel {
    --cover-near-offset: 112px;
    --cover-exit-offset: 340px;
  }
}

@media (max-width: 900px) {
  .heroInner {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 56px;
  }

  .heroCopy {
    max-width: 700px;
  }

  .carousel {
    --cover-near-offset: 208px;
    --cover-exit-offset: 460px;
    width: min(616px, 100%);
    margin: 0 auto;
  }

  .specialistCard {
    width: 240px;
  }

  .specialistCard.center {
    width: 308px;
  }
}

@media (max-width: 700px) {
  .header,
  .headerInner {
    min-height: 64px;
  }

  .headerInner,
  .heroInner {
    width: calc(100% - 40px);
  }

  .desktopNavLink {
    display: none;
  }

  .previewNav {
    gap: 0;
  }

  .previewNav .loginLink {
    display: inline-flex;
  }

  .loginLink {
    padding: 0 14px;
  }

  .heroInner {
    min-height: auto;
    gap: 18px;
    padding: 28px 0 32px;
  }

  .eyebrow {
    font-size: 12px;
    line-height: 18px;
  }

  .heroCopy h1 {
    margin-top: 0;
    font-size: 40px;
    line-height: 46px;
    letter-spacing: -0.65px;
  }

  .heroText {
    margin-top: 20px !important;
    font-size: 16px;
    line-height: 24px;
  }

  .heroActions {
    display: grid;
    gap: 10px;
    margin-top: 20px;
  }

  .primaryButton,
  .secondaryButton {
    width: 100%;
  }

  .assurance {
    margin-top: 20px !important;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
  }

  .assuranceDetail {
    display: none;
  }

  .carouselStage {
    height: 268px;
  }

  .carousel::before {
    top: 220px;
    width: min(340px, 92%);
    height: 86px;
    filter: blur(12px);
  }

  .carousel {
    --cover-near-offset: calc(50% + 58px);
    --cover-exit-offset: calc(50% + 330px);
  }

  .specialistCard {
    width: 236px;
    height: 202px;
    padding: 13px 12px;
  }

  .specialistCard.left {
    transform: translate3d(calc(-50% - var(--cover-near-offset)), 38px, -24px) rotateY(6deg) scale(0.985);
  }

  .specialistCard.right {
    transform: translate3d(calc(-50% + var(--cover-near-offset)), 38px, -24px) rotateY(-6deg) scale(0.985);
  }

  .specialistCard.center {
    width: min(284px, calc(100% - 34px));
    height: 244px;
    padding: 18px 18px;
    transform: translate3d(-50%, 10px, 0);
  }

  .specialistCard.center:hover {
    transform: translate3d(-50%, 7px, 0);
  }

  .portrait {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
  }

  .center .portrait {
    width: 76px;
    height: 76px;
    margin-bottom: 12px;
  }

  .cardName {
    font-size: 15px;
    line-height: 20px;
  }

  .center .cardName {
    font-size: 17px;
    line-height: 22px;
  }

  .cardSpecialization {
    margin-top: 6px;
    font-size: 12px;
    line-height: 17px;
  }

  .center .cardSpecialization {
    font-size: 13px;
    line-height: 18px;
  }

  .cardMeta {
    margin-top: 5px;
    font-size: 11px;
    line-height: 16px;
  }

  .trustMark {
    margin-top: 9px;
    font-size: 11px;
    line-height: 16px;
  }

  .center .trustMark {
    margin-top: 10px;
    font-size: 12px;
  }

  .carouselControls {
    gap: 14px;
  }

}

.emptyShowcase {
  display: grid;
  min-height: 348px;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 36px;
  border: 1px solid var(--preview-border);
  border-radius: 24px;
  background: linear-gradient(145deg, #fff, var(--preview-mineral));
  color: var(--preview-green);
  text-align: center;
  box-shadow: 0 24px 70px rgba(21,81,60,.09);
}

.emptyShowcase h2 {
  font-size: 25px;
  font-weight: 600;
}

.emptyShowcase p {
  max-width: 390px;
  color: var(--preview-text);
  font-size: 14px;
  line-height: 1.6;
}

.emptyShowcase a {
  display: inline-flex;
  min-height: 44px;
  margin-top: 6px;
  align-items: center;
  color: var(--preview-green);
  font-weight: 700;
}

.valueSection,
.categoriesSection,
.selectionSection,
.contactSection {
  padding: 88px 0;
}

.valueSection,
.selectionSection {
  background: var(--preview-mineral);
}

.sectionInner,
.contactInner {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.sectionEyebrow {
  color: var(--preview-green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sectionInner > h2,
.sectionHeading h2,
.contactInner h2 {
  max-width: 740px;
  margin-top: 12px;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.03em;
}

.valueGrid {
  display: grid;
  margin-top: 36px;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}

.valueGrid article {
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--preview-border);
  border-radius: 18px;
  background: #fff;
}

.valueGrid svg {
  color: var(--preview-green);
}

.valueGrid h3 {
  margin-top: 30px;
  font-size: 20px;
  font-weight: 600;
}

.valueGrid p {
  margin-top: 9px;
  color: var(--preview-text);
  font-size: 14px;
  line-height: 1.65;
}

.sectionHeading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}

.sectionHeading > a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--preview-green);
  font-weight: 700;
}

.categoryList {
  display: flex;
  margin-top: 34px;
  flex-wrap: wrap;
  gap: 10px;
}

.categoryList a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 16px;
  border: 1px solid var(--preview-border);
  border-radius: 999px;
  background: #fff;
  color: var(--preview-text);
  font-weight: 600;
}

.categoryList a:hover {
  border-color: var(--preview-green);
  color: var(--preview-green);
}

.selectionSection .specialist-grid {
  margin-top: 36px;
}

.contactSection {
  padding: 104px 0;
}

.contactInner {
  padding: 56px;
  border-radius: 28px;
  background: var(--preview-green);
  color: #fff;
}

.contactInner .sectionEyebrow {
  color: #b8ddcd;
}

.contactInner h2 {
  max-width: 820px;
}

.contactInner > p:not(.sectionEyebrow) {
  max-width: 720px;
  margin-top: 18px;
  color: rgba(255,255,255,.78);
  font-size: 16px;
  line-height: 1.65;
}

.contactInner .primaryButton {
  margin-top: 26px;
  background: #fff;
  color: var(--preview-green);
}

@media (max-width: 760px) {
  .sectionInner,
  .contactInner {
    width: calc(100% - 32px);
  }
  .valueSection,
  .categoriesSection,
  .selectionSection,
  .contactSection {
    padding: 64px 0;
  }
  .valueGrid {
    grid-template-columns: 1fr;
  }
  .valueGrid article {
    min-height: auto;
  }
  .sectionHeading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
  .contactInner {
    padding: 32px 24px;
    border-radius: 20px;
  }
}

@media (max-width: 390px) {
  .headerInner,
  .heroInner {
    width: calc(100% - 32px);
  }

  .logo {
    font-size: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .previewRoot *,
  .previewRoot *::before,
  .previewRoot *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Text metrics change with role, not on an independent animation clock. */
.cardName,.cardSpecialization,.cardMeta{transition:none}

/* Hidden roles are never painted; keep the three authored card shadows unclipped. */
.specialistCard.hidden,.specialistCard.farLeft,.specialistCard.farRight{visibility:hidden;opacity:0;pointer-events:none}
