:root {
  /* TrueSeva brand palette */
  --indigo:      #622B14;   /* primary — headings, buttons, logo, footer */
  --indigo-deep: #4e2210;
  --teal:        #978F66;   /* secondary — light bands */
  --teal-deep:   #787251;
  --green:       #995F2F;   /* testimonial band + accents */
  --green-deep:  #7a4c25;
  --peri:        #f2ecd8;   /* light section bg */
  --peri-line:   #d8cba0;
  --orange:      #995F2F;   /* warm CTA + caregiver bands */
  --orange-deep: #7a4c25;
  --sand:        #E4D6A9;   /* warm sand — safe-harbor, find-care, footer */
  --sand-deep:   #cdc098;
  --border:      #ececec;
  --ink:       #2a2017;
  --ink-soft:  #4a3f30;
  --ink-mute:  #6e6151;
  --white:     #ffffff;
  --shadow:    0 20px 50px rgba(98,43,20,0.15);
  --shadow-sm: 0 8px 24px rgba(98,43,20,0.10);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Instrument Sans', system-ui, sans-serif; color: var(--ink); background: var(--white); font-size: 18px; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: 'Montagu Slab', Georgia, serif; line-height: 1.18; color: var(--indigo); font-weight: 600; }
img { max-width: 100%; display: block; }

a:focus-visible, button:focus-visible, select:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--indigo); color: #fff; padding: 14px 22px; font-weight: 700; border-radius: 0 0 8px 0; text-decoration: none; }
.skip-link:focus { left: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; } }

.container { max-width: 1180px; margin: 0 auto; padding: 0 26px; }

.btn { display: inline-flex; align-items: center; gap: 10px; font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: 1.4px; padding: 16px 30px; border-radius: 6px; text-decoration: none; cursor: pointer; border: 2px solid transparent; min-height: 54px; white-space: nowrap; transition: all .3s ease; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { filter: brightness(0.9); }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-terra { background: var(--green); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-teal { background: var(--teal); color: var(--indigo); }
.btn-outline { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-outline:hover { background: var(--indigo); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-outline-light:hover { background: #fff; color: var(--orange); }

header.site { position: sticky; top: 0; z-index: 1000; background: #fff; border-bottom: 1px solid var(--border); transition: box-shadow .3s; }
header.site.scrolled { box-shadow: 0 4px 22px rgba(98,43,20,.10); }
header.site .container { display: flex; align-items: center; justify-content: space-between; min-height: 96px; gap: 20px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-group { display: flex; flex-direction: column; gap: 2px; flex-shrink: 0; }
.license-tag { font-family: 'Instrument Sans', sans-serif; font-size: 11px; font-weight: 500; letter-spacing: .2px; color: var(--ink-mute); opacity: .75; margin-left: 29px; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 16px; letter-spacing: .2px; color: var(--indigo); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; transition: border-color .2s, color .2s; }
.nav a:not(.btn):hover, .nav a.is-active:not(.btn) { color: var(--orange); border-color: var(--orange); }
.nav .btn { margin-left: 6px; padding: 12px 24px; min-height: 48px; }
.hamburger { display: none; background: none; border: 2px solid var(--sand-deep); border-radius: 10px; padding: 10px; cursor: pointer; }
.hamburger span { display: block; width: 24px; height: 2.5px; background: var(--indigo); margin: 5px 0; border-radius: 2px; }

section { padding: 88px 0; }
.bg-sand { background: var(--sand); }
.bg-peri { background: var(--peri); }
.bg-teal { background: var(--teal); }
.bg-green { background: var(--green); color: #fff; }
.bg-indigo { background: var(--indigo); color: #fff; }
.bg-orange { background: var(--orange); color: #fff; }

.eyebrow { font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 20px; text-transform: uppercase; letter-spacing: 2.4px; color: var(--indigo); }
.bg-green .eyebrow, .bg-indigo .eyebrow, .bg-orange .eyebrow { color: rgba(255,255,255,.88); }
h1.title, h2.title { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 18px; }
.bg-green h1.title, .bg-indigo h1.title, .bg-orange h1.title, .bg-green h2.title, .bg-indigo h2.title, .bg-orange h2.title { color: #fff; }
.bg-orange.band h2 { color: #fff; }
p.sub { font-size: 19.5px; color: var(--ink-soft); max-width: 620px; }
.bg-green p.sub, .bg-indigo p.sub, .bg-orange p.sub { color: rgba(255,255,255,.92); }
.center { text-align: center; }
.center p.sub { margin-left: auto; margin-right: auto; }

.photo { position: relative; border-radius: 14px; overflow: hidden; background: transparent; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; }
.photo .ph-inner { text-align: center; color: #4a3f44; padding: 24px; }
.photo .ph-inner svg { width: 52px; height: 52px; opacity: .5; margin-bottom: 10px; }
.photo .ph-inner span { display: block; font-family: 'Instrument Sans', sans-serif; font-weight: 600; font-size: 15px; opacity: .8; }

/* Real photos: drop a src into each img and it covers the placeholder; any caption auto-hides on load */
.photo img.real, .hero-card img.real { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-card img.real { z-index: 0; }
.has-photo .ph-inner { display: none; }

.hero { padding: 36px 0 64px; }
.hero-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow); display: flex; align-items: flex-end; justify-content: center; background: transparent; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(35,34,52,0) 35%, rgba(35,34,52,.72) 100%); z-index: 1; }
.hero-text { position: relative; z-index: 2; padding: 28px 34px 30px; color: #fff; max-width: 520px; text-align: center; }
.hero-text h1 { color: #fff; font-size: clamp(30px, 4.5vw, 48px); font-weight: 600; margin-bottom: 14px; }
.hero-text p { font-size: 15px; color: rgba(255,255,255,.94); margin: 0 auto 20px; max-width: 380px; }

.band { text-align: center; padding: 56px 0; }
.band h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 24px; color: var(--indigo); }

.sub-hero { padding: 44px 0 48px; }
.sub-hero .hero-card { aspect-ratio: 16 / 9; align-items: center; }
@media (max-width: 700px) { .sub-hero { padding: 32px 0 36px; } .sub-hero .hero-card { aspect-ratio: 4 / 3; } }

.awards { text-align: center; }
.awards h2 { font-size: clamp(26px, 3vw, 36px); max-width: 720px; margin: 0 auto 40px; }
.awards-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; }
.badge { width: 124px; height: 124px; border-radius: 50%; border: 2px solid var(--peri-line); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 14px; }
.badge svg { width: 28px; height: 28px; color: var(--green); margin-bottom: 7px; }
.badge strong { font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 13.5px; color: var(--indigo); line-height: 1.2; }
.badge span { font-size: 12px; color: var(--ink-mute); }

.lede { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.lede .photo { aspect-ratio: 5/4; }

.svc-head { max-width: 720px; margin: 0 auto 52px; }
.svc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); }
.svc-col { text-align: center; padding: 4px 28px; border-left: 1px solid var(--peri-line); }
.svc-col:first-child { border-left: none; }
.svc-col .ic { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--indigo); display: flex; align-items: center; justify-content: center; }
.svc-col .ic svg { width: 40px; height: 40px; }
.svc-col h3 { font-size: 19px; text-transform: uppercase; letter-spacing: .6px; font-family: 'Instrument Sans', sans-serif; font-weight: 700; color: var(--indigo); margin-bottom: 12px; }
.svc-col p { font-size: 16.5px; color: var(--ink-soft); }
.svc-col a.more { display: inline-block; margin-top: 10px; font-size: 14.5px; font-weight: 700; color: var(--orange-deep); text-decoration: none; }
.svc-col a.more:hover { text-decoration: underline; }

.tasks { max-width: 800px; margin: 56px auto 0; text-align: center; }
.tasks h3 { font-family: 'Montagu Slab', serif; font-size: 25px; margin-bottom: 26px; }
.tasks ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; text-align: left; }
.tasks li { display: flex; align-items: flex-start; gap: 12px; font-size: 17.5px; }
.tasks li svg { width: 22px; height: 22px; color: var(--green-deep); flex-shrink: 0; margin-top: 2px; }
.tasks .btn { margin-top: 38px; }

.find { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.finder label { display: block; font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--indigo); margin: 18px 0 8px; }
.finder select { font-family: inherit; font-size: 18px; padding: 14px 16px; border: 2px solid var(--peri-line); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; max-width: 420px; min-height: 54px; }
.finder .btn { margin-top: 24px; }
#finder-result { margin-top: 18px; font-size: 17.5px; color: var(--ink); min-height: 26px; }
#finder-result strong { color: var(--green-deep); }
.view-all { display: inline-block; margin-top: 16px; color: var(--indigo); font-weight: 700; }
.map-panel { background: var(--green); border-radius: 16px; padding: 34px; box-shadow: var(--shadow); }
.map-panel h3 { color: #fff; font-family: 'Instrument Sans', sans-serif; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; font-size: 15px; margin-bottom: 18px; opacity: .9; }
.map-panel--full { padding: 44px; }
.map-panel--full .pin-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 20px; }
.pin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.pin { display: flex; align-items: center; gap: 9px; color: #fff; font-size: 16.5px; font-weight: 600; }
.pin svg { width: 18px; height: 18px; color: rgba(255,255,255,.85); flex-shrink: 0; }

.quotes { max-width: 820px; margin: 40px auto 0; text-align: center; }
.quote { display: none; }
.quote.active { display: block; }
.quote .stars { color: #f2cf7e; letter-spacing: 4px; font-size: 20px; margin-bottom: 18px; }
.quote p { font-family: 'Montagu Slab', serif; font-size: clamp(20px, 2.4vw, 26px); font-style: italic; line-height: 1.55; color: #fff; margin-bottom: 24px; }
.quote .who strong { display: block; font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 17px; color: #fff; }
.quote .who span { color: rgba(255,255,255,.82); font-size: 15px; }
.dots { display: flex; gap: 10px; justify-content: center; margin-top: 30px; }
.dots button { width: 12px; height: 12px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; padding: 0; }
.dots button.on { background: #fff; }

/* Static testimonial grid (used on the full Testimonials page) */
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 48px; text-align: left; }
.quote-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 28px; }
.quote-card .stars { color: #f2cf7e; letter-spacing: 3px; font-size: 16px; margin-bottom: 12px; }
.quote-card p { font-family: 'Montagu Slab', serif; font-size: 17.5px; font-style: italic; line-height: 1.55; color: #fff; margin-bottom: 16px; }
.quote-card .who strong { display: block; font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 15.5px; color: #fff; }
.quote-card .who span { color: rgba(255,255,255,.78); font-size: 14px; }

/* Page header band used on every subpage */
.page-hero { padding: 56px 0 52px; }
.page-hero p.sub { margin: 14px auto 0; }

/* Long-form prose (privacy / terms) */
.prose { max-width: 760px; margin: 0 auto; text-align: left; }
.prose h1 { font-size: 30px; margin: 0 0 20px; }
.prose h2 { font-size: 23px; margin: 38px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin: 28px 0 10px; }
.prose p { margin-bottom: 16px; color: var(--ink-soft); font-size: 17px; }
.prose ul, .prose ol { margin: 0 0 16px 22px; color: var(--ink-soft); font-size: 17px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--indigo); text-decoration: underline; }
.prose img { max-width: 100%; height: auto; border-radius: 10px; margin: 20px 0; }
.prose blockquote { border-left: 4px solid var(--peri-line); padding-left: 18px; margin: 20px 0; color: var(--ink-mute); font-style: italic; }
.prose strong, .prose b { color: var(--ink); }
.prose .updated { color: var(--ink-mute); font-size: 15px; margin-bottom: 36px; }

/* FAQ accordion */
.faq-list { max-width: 820px; margin: 44px auto 0; text-align: left; }
.faq-item { border-bottom: 1px solid var(--peri-line); padding: 18px 4px; }
.faq-item summary { cursor: pointer; font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 17.5px; color: var(--indigo); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 24px; color: var(--orange); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\2013'; }
.faq-item .a { margin-top: 12px; color: var(--ink-soft); font-size: 16.5px; }

/* Resource filter toolbar */
.res-toolbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 36px; }
.res-filters { display: flex; flex-wrap: wrap; gap: 10px; }
#newsletter-filters { margin-bottom: 28px; }
.res-filter-btn { background: #fff; border: 1.5px solid var(--peri-line); border-radius: 999px; padding: 8px 18px; font-size: 14.5px; font-family: 'Instrument Sans', sans-serif; font-weight: 600; color: var(--ink-soft); cursor: pointer; transition: all .18s; }
.res-filter-btn:hover { border-color: var(--indigo); color: var(--indigo); }
.res-filter-btn.is-active { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.res-search-wrap { position: relative; flex-shrink: 0; }
.res-search-wrap svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--ink-soft); pointer-events: none; }
#res-search, #newsletter-search { border: 1.5px solid var(--peri-line); border-radius: 999px; padding: 9px 18px 9px 38px; font-size: 15px; font-family: 'Instrument Sans', sans-serif; color: var(--ink); background: #fff; width: 220px; outline: none; }
#res-search:focus, #newsletter-search:focus { border-color: var(--indigo); }
.res-no-results { text-align: center; color: var(--ink-soft); font-size: 17px; padding: 40px 0; }
.res-no-results a { color: var(--indigo); text-decoration: none; font-weight: 600; }
.art-card[hidden] { display: none; }

/* Article / resource cards */
.art-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; text-align: left; }
.art-card { background: #fff; border-radius: 14px; padding: 30px; box-shadow: var(--shadow-sm); }
.art-card .eyebrow { font-size: 12.5px; }
.art-card h3 { font-size: 20.5px; margin: 10px 0 12px; }
.art-card p { color: var(--ink-soft); font-size: 16px; margin-bottom: 16px; }
.art-card a.more { color: var(--indigo); font-weight: 700; text-decoration: none; }
.art-card a.more:hover { text-decoration: underline; }
.art-card .art-thumb { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; margin-bottom: 16px; }

/* Newsletter (Kit) */
.newsletter-signup { display: flex; align-items: center; justify-content: space-between; gap: 40px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-sm); padding: 34px 38px; margin-bottom: 44px; flex-wrap: wrap; }
.newsletter-signup h2 { margin: 8px 0 8px; }
.newsletter-signup p { color: var(--ink-soft); max-width: 420px; margin: 0; }
.newsletter-form-embed { flex: 1 1 320px; min-width: 280px; }
.newsletter-archive-heading { margin: 8px 0 0; }
.newsletter-status { color: var(--ink-soft); grid-column: 1 / -1; }
@media (max-width: 700px) { .newsletter-signup { padding: 26px; } }

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

.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input[type="email"] { font-family: inherit; font-size: 16px; padding: 13px 16px; border: 1.5px solid var(--peri-line); border-radius: 8px; background: #fff; color: var(--ink); flex: 1 1 220px; min-width: 200px; min-height: 48px; outline: none; }
.newsletter-form input[type="email"]:focus { border-color: var(--indigo); }
.newsletter-form .btn { min-height: 48px; padding: 13px 24px; }
.newsletter-form-msg { min-height: 20px; font-size: 14.5px; margin-top: 10px; }
.newsletter-form-msg.is-success { color: var(--green-deep); font-weight: 600; }
.newsletter-form-msg.is-error { color: #a3311c; font-weight: 600; }
.newsletter-unsub-note { font-size: 13.5px; color: var(--ink-mute); margin-top: 8px; max-width: 420px; }

.newsletter-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.newsletter-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 30px; }
.newsletter-pagination .btn { padding: 10px 20px; min-height: 42px; font-size: 13px; }
.newsletter-pagination .btn:disabled { opacity: .4; cursor: not-allowed; }
#newsletter-page-info { font-size: 14.5px; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 700px) { .newsletter-toolbar { flex-direction: column; align-items: stretch; } .newsletter-toolbar .res-search-wrap { width: 100%; } #newsletter-search { width: 100%; } }

/* Sitemap */
.sitemap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 44px; max-width: 920px; margin: 0 auto; text-align: left; }
.sitemap-grid h4 { font-family: 'Instrument Sans', sans-serif; color: var(--indigo); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; font-weight: 700; }
.sitemap-grid ul { list-style: none; }
.sitemap-grid li { margin-bottom: 10px; }
.sitemap-grid a { color: var(--ink-soft); text-decoration: none; font-size: 16px; }
.sitemap-grid a:hover { color: var(--orange); text-decoration: underline; }

footer { background: var(--indigo); color: rgba(255,255,255,.72); padding: 64px 0 0; }
.foot-body { padding-bottom: 52px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px 48px; }
.foot-info > svg { display: block; }
.foot-map { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); height: 280px; }
.foot-map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 780px) {
  .foot-body { grid-template-columns: 1fr; gap: 32px; }
  .foot-map { height: 240px; }
}
.foot-tagline { margin-top: 22px; font-size: 15.5px; line-height: 1.75; color: rgba(255,255,255,.72); max-width: 380px; }
.foot-hours { margin-top: 20px; display: flex; flex-direction: column; gap: 5px; }
.foot-hours strong { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.5); margin-bottom: 2px; }
.foot-hours span { font-size: 15px; color: rgba(255,255,255,.72); line-height: 1.7; }
.foot-address { margin-top: 20px; display: flex; flex-direction: column; gap: 5px; }
.foot-address a, .foot-address span { font-size: 15px; color: rgba(255,255,255,.72); text-decoration: none; line-height: 1.7; }
.foot-address a:hover { color: #fff; text-decoration: underline; }
.socials { display: flex; gap: 12px; margin-top: 28px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.22); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.8); transition: background .18s, border-color .18s; }
.socials a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: rgba(255,255,255,.5); }
.foot-bottom a { color: rgba(255,255,255,.6); text-decoration: none; }
.foot-bottom a:hover { color: #fff; }
.foot-legal { display: flex; gap: 22px; flex-wrap: wrap; }
@media (max-width: 640px) { .foot-bottom { flex-direction: column; align-items: flex-start; gap: 12px; } }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Schedule Consultation modal — a compact, brand-styled popup that wraps Calendly's
   inline embed, since Calendly's own popup overlay can't be resized or restyled. */
body.modal-open { overflow: hidden; }
.schedule-modal-overlay { position: fixed; inset: 0; background: rgba(42,32,23,.55); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 3000; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.schedule-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.schedule-modal { position: relative; width: min(640px, 100%); height: min(640px, 85vh); background: var(--peri); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.schedule-modal-close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--white); color: var(--indigo); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.schedule-modal-close:hover { background: var(--sand); }
.schedule-modal-body { width: 100%; height: 100%; }
.schedule-modal-body .calendly-inline-widget { width: 100%; height: 100%; }
@media (max-width: 700px) { .schedule-modal { height: 90vh; } }

/* Careers page: open-roles job cards + Apply modal (posts to our own /api/job-apply
   Cloud Function, which relays to Zoho Recruit server-side — Zoho is never mentioned
   to the applicant). */
.job-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.job-card { background: #fff; border-radius: 14px; padding: 32px; box-shadow: var(--shadow-sm); }
.job-card h3 { font-size: 22px; margin: 10px 0 12px; color: var(--indigo); }
.job-card p { color: var(--ink-soft); font-size: 16px; margin-bottom: 20px; }
@media (max-width: 700px) { .job-cards { grid-template-columns: 1fr; } }

.apply-modal-overlay { position: fixed; inset: 0; background: rgba(42,32,23,.55); display: flex; align-items: center; justify-content: center; padding: 20px; z-index: 3000; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.apply-modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.apply-modal { position: relative; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: var(--peri); border-radius: 16px; box-shadow: var(--shadow); padding: 40px 32px 32px; }
.apply-modal-close { position: absolute; top: 10px; right: 10px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: none; background: var(--white); color: var(--indigo); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.apply-modal-close:hover { background: var(--sand); }
.apply-modal h3 { font-size: 22px; margin-bottom: 4px; color: var(--indigo); }
.apply-modal .apply-modal-role { font-size: 15px; color: var(--ink-soft); margin-bottom: 22px; }

/* Job details panel (shown first, before the applicant clicks "Apply now" inside it) */
.apply-modal-details .eyebrow { font-size: 13px; }
.apply-modal-details h3 { margin-top: 10px; }
.apply-modal-summary { color: var(--ink-soft); font-size: 16px; margin: 12px 0 22px; }
.apply-modal-details h4 { font-family: 'Instrument Sans', sans-serif; font-size: 14px; text-transform: uppercase; letter-spacing: .6px; color: var(--indigo); margin: 20px 0 10px; }
.apply-modal-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.apply-modal-list li { font-size: 15.5px; color: var(--ink-soft); line-height: 1.5; padding-left: 22px; position: relative; }
.apply-modal-list li::before { content: ''; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange-deep); }
.apply-modal-details .apply-open-form { width: 100%; justify-content: center; margin-top: 26px; }
.apply-back-link { display: inline-block; background: none; border: none; padding: 0; margin-bottom: 16px; font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 14px; color: var(--orange-deep); cursor: pointer; }
.apply-back-link:hover { text-decoration: underline; }
.apply-form label { display: block; font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--indigo); margin: 16px 0 6px; }
.apply-form label:first-of-type { margin-top: 0; }
.apply-form input[type="text"], .apply-form input[type="email"], .apply-form input[type="tel"] { width: 100%; font-family: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--peri-line); border-radius: 8px; background: #fff; color: var(--ink); min-height: 46px; outline: none; }
.apply-form input:focus { border-color: var(--indigo); }
.apply-form input[type="file"] { width: 100%; font-family: inherit; font-size: 14.5px; color: var(--ink-soft); }
.apply-form input[type="file"]::file-selector-button, .apply-form input[type="file"]::-webkit-file-upload-button {
  font-family: 'Instrument Sans', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px;
  padding: 11px 20px; margin-right: 14px; border-radius: 6px; border: 2px solid var(--indigo);
  background: transparent; color: var(--indigo); cursor: pointer; transition: all .3s ease;
}
.apply-form input[type="file"]:hover::file-selector-button, .apply-form input[type="file"]:hover::-webkit-file-upload-button { background: var(--indigo); color: #fff; }
.apply-form .name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.apply-form .btn { width: 100%; margin-top: 22px; justify-content: center; }
.apply-form-msg { min-height: 20px; font-size: 14.5px; margin-top: 12px; }
.apply-form-msg.is-success { color: var(--green-deep); font-weight: 600; }
.apply-form-msg.is-error { color: #a3311c; font-weight: 600; }
@media (max-width: 480px) { .apply-form .name-row { grid-template-columns: 1fr; } }

/* Nav collapses to the menu button earlier, so the row never crowds/clips the Contact button */
@media (max-width: 1120px) {
  .nav { display: none; position: absolute; top: 96px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 16px 26px 24px; gap: 4px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-sm); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--border); }
  .nav .btn { margin: 10px 0 0; justify-content: center; }
  .hamburger { display: block; }
}
@media (max-width: 940px) {
  .lede, .find { grid-template-columns: 1fr; gap: 40px; }
  .find .map-panel { order: -1; }
  .svc-cols, .art-grid { grid-template-columns: 1fr 1fr; gap: 40px 30px; }
  .res-toolbar { flex-direction: column; }
  #res-search { width: 100%; }
  .svc-col { border-left: none; }
  .tasks ul { grid-template-columns: 1fr; }
  .quote-grid, .sitemap-grid { grid-template-columns: 1fr 1fr; }
  .hero-text { padding: 36px 32px 40px; }
}
@media (max-width: 560px) {
  .svc-cols, .art-grid { grid-template-columns: 1fr; }
  .quote-grid, .sitemap-grid { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
  .hero-card { aspect-ratio: 4 / 3; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}
