/* Vista's shared public-facing typography, surfaces, and interactive states. */
:root {
  --vista-ink: #13253d;
  --vista-copy: #354b63;
  --vista-accent: #075e63;
  --vista-link: #174f88;
  --vista-rule: #d7e2eb;
  --vista-paper: #f2f6fa;
  --vista-mist: #edf6f6;
  --vista-dark: #142943;
  --vista-dark-copy: #e5eef7;
  --vista-dark-accent: #a6e6db;
  --vista-focus: #1266b3;
}

body {
  background: #fff;
  color: var(--vista-ink);
}

#main:is(#main) {
  color: var(--vista-ink);
}

#main:is(#main) :is(h1, h2, h3) {
  color: var(--vista-ink) !important;
  text-wrap: balance;
  letter-spacing: -.035em !important;
}

#main:is(#main) h1 {
  font-size: clamp(2.35rem, 4.8vw, 4.25rem) !important;
  line-height: 1.05 !important;
}

#main:is(#main) h2 {
  line-height: 1.15 !important;
}

#main:is(#main) :where(p, li, dt, dd, td, label, summary) {
  font-size: 1rem;
  line-height: 1.65;
}

#main:is(#main) :is(.vista-hero-copy > p, .case-deck, .home-intro-copy > p:not(.event-label)) {
  color: var(--vista-copy) !important;
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem) !important;
  line-height: 1.65 !important;
}

#main:is(#main) :is(.eyebrow, .pill, .event-label, .case-kicker) {
  color: var(--vista-accent) !important;
  font-size: .875rem !important;
  letter-spacing: .07em !important;
  line-height: 1.45 !important;
}

#main:is(#main) :is(.vista-hero-section, .case-hero, .inner-hero, .error-page, .home-intro) {
  padding-block: clamp(46px, 6vw, 86px) !important;
  background: linear-gradient(120deg, #f6f9fc 18%, #e8f3f4 100%) !important;
  border-bottom: 1px solid var(--vista-rule);
}

#main:is(#main) :is(.vista-hero-grid, .home-intro-grid) {
  gap: clamp(28px, 5vw, 72px) !important;
}

#main:is(#main) :is(.v-people-image, .home-intro-photo, .event-spotlight-photo) {
  border-radius: 14px !important;
  box-shadow: none;
}

#main:is(#main) .v-people-image {
  border-color: var(--vista-rule);
}

#main:is(#main) .v-people-figure figcaption strong {
  color: var(--vista-ink);
  font-size: .9375rem;
}

#main:is(#main) .v-people-figure figcaption div > span {
  color: var(--vista-copy);
  font-size: .875rem;
}

#main:is(#main) .section {
  padding-block: clamp(48px, 6vw, 84px) !important;
}

#main:is(#main) :is(.section.soft, .case-hub-list, .case-proof, .home-faq-section) {
  background: var(--vista-paper) !important;
}

#main:is(#main) :is(.event-workflow, .v-workflow-section) {
  background: var(--vista-mist) !important;
}

#main:is(#main) :is(.vlg-card, .case-card, .info-card, .process-card, .event-format-grid article, .event-stages > li, .home-services-grid article, .legal-card, .contact-form) {
  color: var(--vista-ink);
  border: 1px solid var(--vista-rule) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: none !important;
}

#main:is(#main) :is(.vlg-card, .case-card, .info-card, .home-services-grid article) {
  border-top: 3px solid #23847f !important;
}

#main:is(#main) :is(.vlg-card, .case-card, .info-card, .process-card, .home-services-grid article, .event-format-grid article, .event-stages > li, .legal-card, .case-story, .vlg-section-head, .case-section-head, .home-process-grid, .home-faq-items) p {
  color: var(--vista-copy) !important;
  font-size: 1rem !important;
}

#main:is(#main) :is(.case-card-metric span, .vlg-note, .case-proof-footnote, .case-period, .v-platform-note, .v-form-email, .v-booking-note, .vlg-card ul, .vlg-table td, .case-story li) {
  color: var(--vista-copy) !important;
}

#main:is(#main) :is(.v-link-inline, .v-link-action, .text-arrow, .case-read, .case-proof-footnote a) {
  color: var(--vista-link) !important;
  text-decoration: underline;
  text-underline-offset: .18em;
}

#main:is(#main) :is(.v-link-action, .case-read, .text-arrow)::after {
  content: none !important;
}

#main:is(#main) :is(.event-hero, .event-spotlight, .cta-card, .v-workflow-track > li:last-child) {
  background: var(--vista-dark) !important;
  color: #fff;
}

#main:is(#main) :is(.event-hero, .event-spotlight, .cta-card, .v-workflow-track > li:last-child) :is(h1, h2, h3) {
  color: #fff !important;
}

#main:is(#main) :is(.event-hero, .event-spotlight, .cta-card, .v-workflow-track > li:last-child) p {
  color: var(--vista-dark-copy) !important;
}

#main:is(#main) :is(.event-hero, .event-spotlight, .cta-card) :is(.event-label, .eyebrow) {
  color: var(--vista-dark-accent) !important;
}

#main:is(#main) .event-stages > li::before {
  content: counter(event-stage) / "";
}

#main:is(#main) .cta-card {
  border-radius: 16px !important;
  box-shadow: none !important;
}

#main:is(#main) .btn,
#vista-site-header .nav-actions > a {
  font-size: .9375rem !important;
  border-radius: 8px !important;
}

#main:is(#main) .btn-dark,
#vista-site-header .nav-actions > .btn-dark,
#vista-site-header .mobile-booking {
  background: #174f88 !important;
  border-color: #174f88 !important;
  color: #fff !important;
}

#main:is(#main) .btn-dark:hover,
#vista-site-header .nav-actions > .btn-dark:hover {
  background: #123a65 !important;
  border-color: #123a65 !important;
}

#main:is(#main) .btn-white {
  background: #fff !important;
  color: var(--vista-ink) !important;
}

#main:is(#main) .btn-outline-light {
  background: transparent !important;
  border-color: #a7bdd2 !important;
  color: #fff !important;
}

#main:is(#main) .btn-outline-light:hover {
  background: #29445f !important;
}

#vista-site-header a.nav-events[aria-current="page"] {
  color: var(--vista-accent);
  text-decoration: underline;
  text-underline-offset: .25em;
}

#vista-site-header .nav-menu a small {
  color: var(--vista-copy);
  font-size: .875rem;
}

#main:is(#main) :is(input:not([type=hidden]), textarea, select) {
  color: var(--vista-ink);
  font-size: 1rem;
}

#main:is(#main) :is(input, textarea)::placeholder {
  color: #4d6279;
  opacity: 1;
}

#main:is(#main) .vlg-table thead th {
  background: #e1eef5;
  color: var(--vista-ink);
}

#main:is(#main) :focus-visible,
#vista-site-header :focus-visible {
  outline: 3px solid var(--vista-focus) !important;
  outline-offset: 4px;
}

#main:is(#main) :is(.event-hero, .event-spotlight, .cta-card) :focus-visible,
.footer :focus-visible {
  outline: 3px solid var(--vista-dark-accent) !important;
  outline-offset: 4px;
}

.footer {
  background: #102138 !important;
}

.footer :is(p, a, .footer-bottom) {
  color: #dce8f4 !important;
}

.footer a:hover {
  color: #fff !important;
  text-decoration: underline;
}

@media (max-width: 600px) {
  #main:is(#main) h1 {
    font-size: clamp(2.15rem, 9vw, 2.85rem) !important;
  }

  #main:is(#main) .button-row .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

#main:is(#main) .process-card > span {
  color: var(--vista-link);
}

#main:is(#main) .legal-card {
  max-width: 76ch;
}

#main:is(#main) .inner-hero.compact {
  padding-block: clamp(38px, 5vw, 68px) !important;
}

/* Make service discovery and stand-alone actions easier to see and select. */
#main:is(#main) .home-services-grid .home-service-card,
#main:is(#main) .event-related-grid a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  width: 100%;
  margin: 0;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid #ccdbe6;
  border-radius: 14px;
  background: #f6fafb;
  color: var(--vista-ink);
  font-weight: 400;
  text-decoration: none;
}

#main:is(#main) .home-services-grid .home-service-card {
  border-top: 3px solid #23847f;
}

#main:is(#main) .home-service-card h3,
#main:is(#main) .event-related-grid strong {
  margin: 0 0 10px;
  color: var(--vista-ink);
  font-size: 1.1875rem;
  line-height: 1.35;
}

#main:is(#main) .home-service-card p,
#main:is(#main) .event-related-grid span {
  margin: 0 0 16px;
  color: var(--vista-copy);
  font-size: 1rem;
  line-height: 1.6;
}

#main:is(#main) .home-service-card .home-service-price {
  color: var(--vista-ink);
  font-weight: 700;
}

#main:is(#main) :is(.home-service-action, a.case-read, .home-section-heading > a, .case-proof-footnote > a, .home-faq-grid > div > a) {
  display: inline-flex !important;
  align-items: center;
  max-width: 100%;
  width: fit-content;
  min-height: 44px;
  padding: 8px 13px !important;
  border: 1px solid #b9cedd !important;
  border-radius: 8px;
  background: #fff;
  color: var(--vista-link) !important;
  font-size: .9375rem !important;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none !important;
  white-space: normal;
}

#main:is(#main) .home-service-card .home-service-action {
  margin-top: auto;
  background: #e9f4f4;
  border-color: #bfdbd8 !important;
  color: var(--vista-accent) !important;
}

#main:is(#main) .case-proof-footnote > a {
  margin: 8px 0 0;
}

#main:is(#main) :is(.home-service-card, .event-related-grid a):is(:hover, :focus-visible) {
  background: #edf7f8;
  border-color: #43878b;
}

#main:is(#main) :is(.home-service-card:is(:hover, :focus-visible) .home-service-action, a.case-read:is(:hover, :focus-visible), .home-section-heading > a:is(:hover, :focus-visible), .case-proof-footnote > a:is(:hover, :focus-visible), .home-faq-grid > div > a:is(:hover, :focus-visible)) {
  background: #e5f0fa;
  border-color: #5890b8 !important;
}

#main:is(#main) .event-related {
  padding: 30px 0 0;
  border-top: 1px solid var(--vista-rule);
}

#main:is(#main) .event-related h2 {
  margin: 0 0 20px;
  font-size: clamp(1.5rem, 3vw, 2rem) !important;
}

#main:is(#main) .event-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#main:is(#main) .event-related-grid a {
  height: 100%;
}

#main:is(#main) .event-related-grid strong {
  color: var(--vista-link);
  text-decoration: underline;
  text-underline-offset: .2em;
}

#main:is(#main) .event-related-grid span {
  margin: 0;
}

@media (max-width: 600px) {
  #main:is(#main) .event-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
