/* Vertascale component layer. Everything a content author or Hermes can place on a page.
   Uses the theme tokens from themes/vertascale/static/css/style.css (--orange, --blue, …). */
:root { --ink: #12263f; --ink-soft: #46586c; --tint: #f3f7fc; --line: #d9e3ee; --orange-ink: #8a4b00; --shadow: 0 6px 24px rgba(18, 38, 63, .08); }

.vs-skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 10px 16px; z-index: 1000; }
.vs-skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

/* Buttons */
.vs-btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius); border: 2px solid var(--blue); color: var(--blue); background: #fff; font-weight: 700; text-decoration: none; cursor: pointer; font-family: inherit; font-size: 1rem; line-height: 1.2; transition: background .15s, color .15s, transform .15s; }
.vs-btn:hover { background: var(--blue); color: #fff; }
.vs-btn--primary { background: var(--orange); border-color: var(--orange); color: #1a1a1a; }
.vs-btn--primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #1a1a1a; transform: translateY(-1px); }
.vs-btn--ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.vs-btn--ghost:hover { background: #fff; color: var(--blue); }
.vs-btn--sm { padding: 8px 14px; font-size: .85rem; }
.vs-btn[disabled] { opacity: .6; cursor: wait; }
.header-cta { white-space: nowrap; }

/* Page header extras */
.page-header { padding: 48px 0 44px; }
.page-header h1 { max-width: 22ch; margin-left: auto; margin-right: auto; line-height: 1.12; text-wrap: balance; }
.page-header h1 em { font-style: normal; color: var(--orange); }
.page-subtitle { max-width: 62ch; margin: 0 auto; }
.vs-crumbs { font-size: .85rem; margin-bottom: 18px; opacity: .9; }
.vs-crumbs a { color: inherit; }
.blog-post .vs-crumbs { color: var(--ink-soft); }
.vs-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: #ffd08a; margin-bottom: 10px; }
.vs-eyebrow--dark { color: var(--orange-ink); }
.vs-hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 26px; }

/* Long-form content */
.content--wide { max-width: 1040px; }
.content > p, .content > ul, .content > ol, .content > h2, .content > h3, .content > h4 { max-width: 760px; }
.content--wide > p, .content--wide > ul, .content--wide > ol, .content--wide > h2, .content--wide > h3 { margin-left: auto; margin-right: auto; }
.content p, .content li { color: var(--ink-soft); }
.content a { color: var(--blue-dark); }
.content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.content h2 { text-wrap: balance; }

/* Cards */
.vs-cards { display: grid; gap: 18px; margin: 28px 0 36px; }
.vs-cards--2 { grid-template-columns: repeat(2, 1fr); }
.vs-cards--3 { grid-template-columns: repeat(3, 1fr); }
.vs-cards--4 { grid-template-columns: repeat(4, 1fr); }
.vs-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; box-shadow: var(--shadow); color: inherit; text-decoration: none; display: block; }
.vs-card h3 { font-family: 'Vertascale Display', sans-serif; font-size: 1.15rem; line-height: 1.3; margin: 0 0 8px; color: var(--ink); }
.vs-card p { margin: 0; color: var(--ink-soft); font-size: .97rem; }
.vs-card__eyebrow { font-size: .72rem !important; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--orange-ink) !important; margin-bottom: 8px !important; }
.vs-card--link { transition: transform .15s, border-color .15s; }
.vs-card--link:hover { transform: translateY(-3px); border-color: var(--blue); }
.vs-city-grid .vs-card { padding: 16px 18px; }
.vs-city-grid .vs-card p { font-size: .85rem; }

/* Steps */
.vs-steps { list-style: none; counter-reset: step; padding: 0 !important; margin: 28px 0 36px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); max-width: none !important; }
.vs-step { counter-increment: step; background: var(--tint); border-radius: 14px; padding: 22px; margin: 0 !important; }
.vs-step::before { content: "Step " counter(step); display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--orange-ink); margin-bottom: 8px; }
.vs-step h3 { font-size: 1.1rem; margin: 0 0 6px; color: var(--ink); }
.vs-step p { margin: 0; font-size: .97rem; }

/* Callout, answer box, banner */
.vs-callout { border-left: 5px solid var(--orange); background: #fff7ea; border-radius: 0 12px 12px 0; padding: 16px 20px; margin: 24px 0; }
.vs-callout p { margin: 0; color: var(--ink) !important; }
.vs-callout__title { font-weight: 700; margin-bottom: 4px !important; }
.vs-answer { border: 1px solid #bcd6f5; background: #eef5fe; border-radius: 12px; padding: 18px 22px; margin: 0 0 28px; }
.vs-answer p { margin: 0; color: var(--ink) !important; font-size: 1.05rem; }
.vs-answer__label { font-size: .75rem !important; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--blue-dark) !important; margin-bottom: 6px !important; }
.vs-banner { display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(120deg, #0d4fa8, var(--blue)); color: #fff; border-radius: 16px; padding: 28px 32px; margin: 40px 0; }
.vs-banner h2, .content .vs-banner h2 { font-family: 'Vertascale Display', sans-serif; font-size: 1.5rem; margin: 0 0 6px; color: #fff; line-height: 1.25; }
.vs-banner p { margin: 0; color: #e4eeff !important; }
.vs-banner > div { flex: 1 1 320px; }

/* Closing CTA + FAQ */
.vs-cta { text-align: center; background: var(--tint); border-radius: 16px; padding: 40px 28px; margin: 48px 0 0; }
.vs-cta h2 { margin: 0 0 12px; font-family: 'Vertascale Display', sans-serif; font-size: 1.8rem; color: var(--ink); }
.vs-cta p { max-width: 60ch; margin: 0 auto 22px; }
.vs-cta .vs-btn { margin: 4px; }
.vs-faq { margin: 44px 0; }
.vs-faq__item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: #fff; }
.vs-faq__q { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.vs-faq__q::-webkit-details-marker { display: none; }
.vs-faq__q::after { content: "+"; color: var(--blue); font-size: 1.3rem; line-height: 1; }
.vs-faq__item[open] .vs-faq__q::after { content: "–"; }
.vs-faq__a { padding: 0 20px 16px; }
.vs-faq__a p { margin: 0 0 10px; }

/* Forms */
.vs-form { display: grid; gap: 14px; }
.vs-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vs-form label { display: block; font-weight: 600; font-size: .92rem; color: var(--ink); }
.vs-form input:not([type=checkbox]), .vs-form select, .vs-form textarea,
.vs-advisor__inputs input, .vs-advisor__inputs select { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1px solid #9fb4c9; border-radius: var(--radius); font: inherit; font-weight: 400; background: #fff; color: var(--ink); }
.vs-form__status { min-height: 1.5em; font-weight: 600; color: var(--ink); margin: 0; }
.vs-form__fine, .vs-fine { font-size: .84rem; color: var(--ink-soft); margin: 6px 0 0; }
.vs-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.vs-check input { margin-top: 4px; width: 18px; height: 18px; flex: none; }
.vs-optional { font-weight: 400; color: var(--ink-soft); }

/* Advisor — guided assessment: progress sidebar + step panels */
.vs-advisor { margin: 32px 0; scroll-margin-top: 90px; }
.vs-advisor__layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 20px; align-items: start; }
.vs-advisor__side, .vs-advisor__main { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.vs-advisor__side { padding: 22px; position: sticky; top: 90px; }
.vs-advisor__side-title { font-weight: 700; color: var(--ink) !important; margin: 0 !important; }
.vs-advisor__pct { margin: 2px 0 10px !important; font-size: .9rem; }
.vs-advisor__bar { height: 8px; border-radius: 99px; background: #e6edf5; overflow: hidden; margin-bottom: 16px; }
.vs-advisor__bar span { display: block; height: 100%; width: 33%; background: var(--orange); border-radius: 99px; transition: width .25s; }
.vs-advisor__nav { list-style: none; padding: 0 !important; margin: 0 0 18px !important; counter-reset: nav; display: grid; gap: 6px; }
.vs-advisor__nav li { margin: 0 !important; counter-increment: nav; }
.vs-advisor__nav button { width: 100%; text-align: left; font: inherit; font-weight: 600; color: var(--ink); background: var(--tint); border: 1px solid transparent; border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.vs-advisor__nav button::before { content: counter(nav) ". "; color: var(--ink-soft); }
.vs-advisor__nav button[aria-current] { background: var(--blue); color: #fff; }
.vs-advisor__nav button[aria-current]::before { color: #dbe9ff; }
.vs-advisor__nav button.is-done:not([aria-current])::after { content: " ✓"; color: #1a7f4b; }
.vs-advisor__running { border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 10px; }
.vs-advisor__running span { display: block; font-size: .8rem; color: var(--ink-soft); }
.vs-advisor__running strong { display: block; font-size: 1.25rem; line-height: 1.25; color: var(--blue-dark); font-variant-numeric: tabular-nums; }
.vs-advisor__main { padding: clamp(20px, 3.5vw, 34px); }
.vs-advisor h2 { margin: 0 0 6px !important; font-family: 'Vertascale Display', sans-serif; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--ink); max-width: none; }
.vs-advisor__intro { margin: 0 0 20px !important; }
.vs-advisor__step { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.vs-advisor__step legend { font-family: 'Vertascale Display', sans-serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); padding: 0; margin-bottom: 12px; }
fieldset.vs-advisor__step { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
fieldset.vs-advisor__step legend { grid-column: 1 / -1; }
.vs-advisor__inputs label { font-weight: 600; font-size: .92rem; color: var(--ink); }
.vs-slider { grid-column: 1 / -1; }
.vs-slider__value { float: right; font-weight: 700; color: var(--blue-dark); background: var(--tint); border-radius: 999px; padding: 2px 12px; font-size: .88rem; }
.vs-advisor__inputs .vs-slider input[type="range"] { padding: 0; border: 0; background: transparent; height: 28px; margin-top: 10px; accent-color: var(--orange); cursor: pointer; }
.vs-slider__ends { display: flex; justify-content: space-between; font-weight: 400; font-size: .8rem; color: var(--ink-soft); }
.vs-advisor__addon { grid-column: 1 / -1; background: #fff7ea; border: 1px solid #f3d6a4; border-radius: 10px; padding: 14px 16px; font-weight: 600 !important; cursor: pointer; }
.vs-advisor__results { background: var(--tint); border-radius: 14px; padding: 22px; }
.vs-advisor__headline span, .vs-advisor__budget span { display: block; font-weight: 600; color: var(--ink-soft); font-size: .92rem; }
.vs-advisor__headline strong { display: block; font-family: 'Vertascale Display', sans-serif; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.15; color: var(--blue-dark); margin: 4px 0; font-variant-numeric: tabular-nums; }
.vs-advisor__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.vs-advisor__stats div { background: #fff; border-radius: 10px; padding: 12px; }
.vs-advisor__stats dt { font-size: .78rem; color: var(--ink-soft); }
.vs-advisor__stats dd { margin: 2px 0 0; font-weight: 700; font-size: 1.1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.vs-advisor__budget { border-top: 1px solid var(--line); padding-top: 16px; }
.vs-advisor__budget strong { display: block; font-size: 1.3rem; color: var(--ink); margin: 2px 0; font-variant-numeric: tabular-nums; }
.vs-advisor__lead { margin-top: 26px; }
.vs-advisor__lead h3 { margin: 0 0 6px !important; font-size: 1.25rem; color: var(--ink); }
.vs-advisor__lead > p { margin: 0 0 16px; max-width: 70ch; }
.vs-advisor__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.vs-advisor__pager { display: none; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 6px; }
.vs-advisor.is-stepped .vs-advisor__pager { display: flex; }
.vs-advisor__pager [data-next] { margin-left: auto; }
.vs-advisor:not(.is-stepped) .vs-advisor__nav button { pointer-events: none; }
[hidden] { display: none !important; }

/* Blog */
.post-header h1 { text-wrap: balance; }
.post-meta { display: flex; gap: 6px 18px; flex-wrap: wrap; color: var(--ink-soft); font-size: .9rem; margin-top: 12px; }
.post-hero { display: block; width: 100%; max-width: 960px; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: 14px; margin: 24px auto 32px; }
.blog-card__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.blog-card__title { font-size: 1.15rem; line-height: 1.3; margin: 8px 0; }
.blog-card__title a { color: inherit; text-decoration: none; }
.vs-related { max-width: 1040px; margin: 56px auto 0; }
.vs-related h2 { font-family: 'Vertascale Display', sans-serif; font-size: 1.5rem; margin-bottom: 4px; }
.vs-linklist { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.vs-linklist a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--blue-dark); background: #fff; }
.vs-linklist a:hover { border-color: var(--blue); }

/* Footer: five columns */
.vs-footer-grid { grid-template-columns: 1.1fr 1fr 1.4fr 1.1fr 1.2fr; }
.footer-contact a { display: block; }

@media (max-width: 900px) {
  .vs-cards--3, .vs-cards--4 { grid-template-columns: repeat(2, 1fr); }
  .vs-advisor__layout { grid-template-columns: 1fr; }
  .vs-advisor__side { position: static; }
  .vs-advisor__nav { grid-template-columns: repeat(3, 1fr); }
  .vs-advisor__nav button { font-size: .85rem; padding: 8px; }
  .vs-advisor__side .vs-fine { display: none; }
  .vs-footer-grid { grid-template-columns: 1fr 1fr; }
  .header-cta { display: none; }
}
@media (max-width: 600px) {
  .vs-cards--2, .vs-cards--3, .vs-cards--4, .vs-form__row, .vs-footer-grid { grid-template-columns: 1fr; }
  .page-header h1 { font-size: 2rem; }
  .vs-banner { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* Header: real navigation on desktop, hamburger below 1024px */
@media (min-width: 1024px) {
  .menu-toggle { display: none; }
  .main-nav, .main-nav.open { display: flex; position: static; flex-direction: row; align-items: center; gap: 4px; border: 0; box-shadow: none; padding: 0; min-width: 0; background: transparent; order: 2; margin-left: auto; }
  .main-nav .nav-link { padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: .95rem; white-space: nowrap; border: 0; }
  .main-nav .nav-link:hover, .main-nav .nav-link.active { color: var(--blue-dark); background: var(--tint); }
  .header-actions { order: 3; }
  .email-link { display: none; }
}
.footer-social { flex-wrap: wrap; gap: 8px; }
.footer-social a { width: auto; height: auto; padding: 6px 10px; font-size: .8rem; color: #1a1a1a; }

/* Migrated WordPress content: consistent rhythm for everything Markdown can produce */
.content > *:first-child { margin-top: 0; }
.content h2, .content h3, .content h4 { color: var(--ink); line-height: 1.25; }
.content h4 { font-size: 1.15rem; margin: 26px 0 10px; }
.content ol { margin-bottom: 20px; padding-left: 24px; }
.content li > ul, .content li > ol { margin: 8px 0 0; }
.content blockquote { border-left: 4px solid var(--blue); background: var(--tint); margin: 24px 0; padding: 14px 20px; border-radius: 0 10px 10px 0; }
.content blockquote p { margin: 0; color: var(--ink); }
.content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .95rem; display: block; overflow-x: auto; }
.content th, .content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.content th { background: var(--tint); color: var(--ink); }
.content hr { border: 0; border-top: 1px solid var(--line); margin: 36px 0; }
/* one image = framed figure; two or more in a paragraph = even gallery (was: Elementor image columns) */
.content p:has(> img) { max-width: none; margin: 28px 0; }
.content p > img:only-child { display: block; width: 100%; max-height: 440px; object-fit: cover; box-shadow: var(--shadow); }
.content p:has(> img + img) { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.content p:has(> img + img) > img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--shadow); }
.content--wide > .vs-faq, .content--wide > .vs-cta { max-width: 860px; margin-left: auto; margin-right: auto; }
.hero-form-panel textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius); font: inherit; resize: vertical; }

/* Homepage (copy in data/home.yaml) */
.hero h1 { margin-bottom: 24px; }
.hero-rotate { font-size: 1.15rem; font-weight: 600; color: var(--ink); margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; }
.hero-rotate__lead { color: var(--ink-soft); font-weight: 500; }
/* All phrases share one grid cell, so the line never changes height. Only one is ever visible:
   the outgoing phrase is fully gone (0.2s) before the incoming one starts (0.25s delay). */
.hero-rotate__words { display: grid; min-width: 0; max-width: 100%; }
.hero-rotate__words > span { grid-area: 1 / 1; justify-self: start; min-width: 0; opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; color: var(--blue-dark); text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 6px; padding-bottom: 6px; }
.hero-rotate__words > span.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease .25s, transform .3s ease .25s, visibility 0s linear .25s; }
.hero-actions .vs-btn { background: transparent; }
.hero .hero-form-title { font-family: 'Vertascale Display', sans-serif; font-size: 1.2rem; font-weight: 700; line-height: 1.3; margin-bottom: 20px; color: var(--text); font-style: italic; }
.vs-home-services { grid-template-columns: repeat(4, 1fr); }
.vs-home-tools { padding: 72px 0; background: var(--tint); }
.vs-home-tools .vs-cards { max-width: 1140px; margin-left: auto; margin-right: auto; }
.vs-card--tool { padding: 28px; display: grid; gap: 10px; align-content: start; }
.vs-card--tool h3 { font-size: 1.35rem; }
.vs-card--tool .vs-btn { justify-self: start; margin-top: 8px; }
.testimonial-name { font-family: 'Vertascale Display', sans-serif; font-size: 1.2rem; margin-bottom: 4px; color: var(--text); }
.testimonial-card { margin: 0; }
.testimonial-card blockquote { margin: 12px 0 0; }
.vs-home-more { text-align: center; margin-top: 32px; }
.blog-card h3 a { color: inherit; text-decoration: none; }
.location-grid { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1000px) { .vs-home-services { grid-template-columns: repeat(2, 1fr); } .location-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .vs-home-services { grid-template-columns: 1fr; } .location-grid { grid-template-columns: repeat(2, 1fr); } .hero-rotate { font-size: 1rem; } .hero-rotate__words { flex-basis: 100%; } }

/* Where we work: region by default, visitor's own location when known */
.vs-geo { font-size: 1.1rem; font-weight: 600; color: var(--ink) !important; text-align: center; max-width: 70ch; margin: 0 auto 28px !important; }
.vs-geo a { display: inline-block; margin-left: 8px; color: var(--blue-dark); white-space: nowrap; }
.vs-states { list-style: none; padding: 0 !important; margin: 18px auto !important; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: none !important; }
.vs-states li { margin: 0 !important; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 18px; font-weight: 600; color: var(--ink) !important; }
.vs-states__more { text-align: center; color: var(--ink-soft); margin: 0 auto 20px; }
.service-area-grid { text-align: center; }
.vs-local { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0 0 28px; }
.vs-local div { background: var(--tint); border-radius: 12px; padding: 14px 16px; }
.vs-local dt { font-size: .78rem; color: var(--ink-soft); }
.vs-local dd { margin: 2px 0 0; font-weight: 700; color: var(--ink); }
.vs-map iframe { display: block; width: 100%; height: 360px; border: 0; border-radius: 12px; }
.vs-map p { margin: 8px 0 0; font-size: .9rem; }
.top-bar a + a { margin-left: 0; }
.vs-guides { columns: 2; column-gap: 32px; padding-left: 20px; margin: 14px 0 0; }
.vs-guides li { margin-bottom: 8px; break-inside: avoid; }
.vs-guides a { color: var(--blue-dark); }
.vs-localhub { margin-top: 36px; }
@media (max-width: 700px) { .vs-guides { columns: 1; } }
.vs-advisor__onward { margin: 16px 0 0 !important; padding: 12px 16px; background: #fff; border: 1px dashed var(--line); border-radius: 10px; font-size: .95rem; }
