/* Public quote intake and one persistent marketing action. */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.marketing-page,.site-shell > .header{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.site-shell{display:flex;flex-direction:column;min-height:100vh;min-height:100svh}
.site-shell > .page,.site-shell > .workspace{flex:1}
.site-header{position:sticky;top:0;z-index:30;box-shadow:0 1px 0 var(--line)}
.header .brand,.home-page .header .brand{width:auto;max-width:240px}
.brand-logo{width:220px;height:120px;flex-basis:220px}
.brand-name{display:none}
.footer-brand .brand-logo{width:180px;height:108px;flex-basis:180px}
.quote-entry{min-height:48px}
.home-page .hero-copy{padding:0}
.home-page .hero--photo .hero-copy{align-items:center}

.marketing-service{border:1px solid var(--line);background:#fff;border-radius:8px;overflow:hidden;min-width:0}
.marketing-service img{height:200px;object-position:center bottom}
.marketing-service>div{padding:24px}
.marketing-service h2{font:650 22px/1.25 system-ui,sans-serif;letter-spacing:-.025em}
.marketing-service a{min-height:44px;display:inline-flex;align-items:center;font-weight:650}
.service-detail{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start;max-width:none;padding-inline:var(--page-gutter)}
.service-detail>img{aspect-ratio:16/10;border-radius:8px}
.service-detail h1{font:600 clamp(32px,4vw,60px)/1.1 system-ui,sans-serif}
.service-detail p{max-width:65ch}
.service-choice-grid {
  --choice-columns: 2;
  --choice-gap: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--choice-gap);
}
.service-choice-grid > .service-choice {
  flex: 0 0 calc((100% - (var(--choice-columns) - 1) * var(--choice-gap)) / var(--choice-columns));
}
@media (min-width: 900px) {
  .service-choice-grid { --choice-columns: 3; }
}
.service-choice{border:1px solid var(--line);border-radius:8px;overflow:hidden;background:white;min-width:0}
.service-choice:has(input:checked){border:2px solid var(--green)}
.service-choice label{margin:0;cursor:pointer;font-size:16px}
.service-choice img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--cream);
}
.service-choice label>span{display:flex;gap:10px;align-items:center;padding:16px}
.service-choice a{display:inline-flex;padding:0 16px 16px;min-height:44px}
.site-footer{display:grid;grid-template-columns:auto minmax(0,1fr);gap:24px 48px;align-items:center;padding:32px var(--page-gutter)}
.site-footer .contact-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.site-footer .contact-card{border:0;background:transparent;padding:0;gap:5px;min-width:0}
.site-footer small{grid-column:1/-1}
[data-intake-calendar][hidden]{display:none}
@media(max-width:800px){
 .service-detail{grid-template-columns:1fr}
 .site-footer{grid-template-columns:minmax(0,1fr)}.site-footer .contact-links{grid-template-columns:1fr;gap:20px}
 .site-shell.home-page::after{content:"";height:calc(72px + env(safe-area-inset-bottom,0px));background:#fff}
 .home-page .quote-entry{position:fixed;bottom:calc(16px + env(safe-area-inset-bottom,0px));left:16px;right:16px;z-index:40;box-shadow:0 2px 12px #173b2933}
 .home-page:not(.past-hero) .quote-entry{display:none}
 .site-header{position:relative}

 .header .brand,.home-page .header .brand{width:auto;max-width:220px}
 .brand-logo{width:190px;height:110px;flex-basis:190px}
}
@media(max-width:500px){.service-choice-grid{--choice-columns:1}.marketing-service img{height:180px}}

html:has(.marketing-page){scroll-padding-top:156px;scroll-padding-bottom:96px}
@media(max-width:800px){html:has(.marketing-page){scroll-padding-top:16px;scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}}

.site-footer>*{min-width:0}.site-footer .footer-brand{width:180px;max-width:100%}

.marketing-service h2,.service-detail h1,.service-choice label>span{overflow-wrap:anywhere;min-width:0}

/* Public header, service reveals, and compact contact footer. */
.site-shell > .header{padding-block:10px;gap:24px;flex-wrap:nowrap}
.site-shell > .header .brand{width:auto;max-width:170px}
.site-shell > .header .brand-logo{width:160px;height:90px;flex-basis:160px}
.site-shell > .header nav{font-size:17px;gap:18px;flex-wrap:nowrap}
.header-links{display:flex;align-items:center;gap:18px;white-space:nowrap}
.header-links > form{display:flex}
.header-links .text-button{font:inherit;min-height:44px;padding:6px 0;text-decoration:none}
.header-links .text-button:hover,.header-links .text-button:focus-visible{text-decoration:underline}
.header-links .quote-entry{font-size:16px;min-height:48px;padding:12px 22px;margin-inline-start:0}
html:has(.marketing-page){scroll-padding-top:var(--marketing-header-height,110px)}
.home-page section[id]{scroll-margin-top:0}
.home-page .hero-quote{margin-top:8px;border:1px solid #ffffffb3}
.home-page #services{padding-block:32px 40px}
.marketing-services {
  --service-columns: 3;
  --service-gap: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--service-gap);
}
.marketing-services > .marketing-service {
  flex: 0 0 calc((100% - (var(--service-columns) - 1) * var(--service-gap)) / var(--service-columns));
}
.marketing-service{position:relative;display:grid;perspective:1200px;background:transparent;border:0;overflow:visible}
.marketing-service>.service-flip-inner{display:grid;padding:0;transform-style:preserve-3d;transition:transform .42s ease}
.is-flipped .service-flip-inner{transform:rotateY(180deg)}
.service-front,.service-back{grid-area:1/1;min-width:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#fff}
.service-front{display:flex;flex-direction:column}
.service-front>img{width:100%;height:auto;flex:none;aspect-ratio:4/3;object-fit:cover;object-position:center;background:var(--cream)}
.service-front-copy{padding:14px 18px;display:flex;flex:1;flex-direction:column;align-items:flex-start;gap:6px}
.service-front-copy h2{min-block-size:2.5em}
.service-front-copy .service-details-label,.service-front-copy noscript{margin-top:auto}
.home-page .marketing-service h2{font:650 clamp(20px,1.65vw,26px)/1.25 system-ui,sans-serif;letter-spacing:-.025em;margin:0;overflow-wrap:anywhere}
.service-details-label{display:none;font-size:14px;font-weight:650;text-decoration:underline}
.service-flip:has(.service-toggle:not([hidden])) .service-details-label{display:inline}
.service-toggle{position:absolute;inset:0;width:100%;border:0;border-radius:8px;background:transparent;padding:0}
.service-toggle:hover{background:transparent;filter:none}
.service-toggle[hidden]{display:none}
.service-back{transform:rotateY(180deg);padding:clamp(20px,2vw,32px);display:flex;flex-direction:column;justify-content:center}
.service-back[hidden]{display:none}
.service-back p{font-size:16px;line-height:1.65;margin:12px 0 0;max-width:60ch;overflow-wrap:anywhere}
.home-page .about{padding-block:36px;gap:clamp(24px,4vw,64px)}
.home-page .process{padding-block:32px}.home-page .steps{margin-top:24px;gap:32px}.home-page .steps>div{padding-top:20px}.home-page .steps p{font-size:16px;margin-bottom:0}
.site-footer{grid-template-columns:auto minmax(0,1fr);gap:8px 36px;padding:16px var(--page-gutter);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.site-footer .footer-brand{width:108px}.site-footer .footer-brand .brand-logo{width:108px;height:64px;flex-basis:108px}
.site-footer .contact-links{display:flex;justify-content:flex-end;align-items:center;gap:24px 48px;flex-wrap:wrap}
.site-footer .contact-card{display:flex;gap:4px;font-size:16px}.site-footer .contact-label{font:650 12px system-ui,sans-serif;text-transform:none;letter-spacing:0}
.site-footer .contact-card a{overflow-wrap:anywhere;min-width:0;line-height:1.5}
.site-footer small{max-width:none;font-size:12px;line-height:1.5}
@media(max-width:1100px){.site-shell > .header nav{font-size:16px}}
@media(max-width:760px){.marketing-services{--service-columns:2}}
@media (max-width: 800px) {
  .site-shell > .header { gap: 8px; padding-block: 8px 12px; }
  .site-shell > .header .brand { max-width: 150px; margin-inline: auto; }
  .site-shell > .header .brand-logo { width: 150px; height: 82px; flex-basis: 150px; }
  .site-shell > .header nav { flex-direction: column; gap: 2px; font-size: 14px; }
  .header-links { justify-content: center; gap: 12px; }
  .header-links:first-child { min-height: 36px; }
  .header-links:last-child { min-height: 44px; }
  .header-links .quote-entry { min-height: 44px; padding: 8px; font-size: 14px; }
  .site-footer { grid-template-columns: 1fr; gap: 12px; }
  .site-footer .footer-brand .brand-logo { margin-inline-start: -14px; }
  .site-footer .contact-links { justify-content: flex-start; gap: 16px 32px; }
}
@media(max-width:500px){.marketing-services{--service-columns:1;--service-gap:20px}.home-page #services{padding-block:24px}.site-footer .contact-links{align-items:flex-start;flex-direction:column;gap:12px}}
@media(prefers-reduced-motion:reduce){.service-flip-inner{transition:none}.is-flipped .service-flip-inner,.service-back{transform:none}.is-flipped .service-front{visibility:hidden}}


.check input[type="radio"]{width:18px;height:18px;min-height:18px;padding:0;margin:0;flex:0 0 18px;accent-color:var(--green)}

@media (min-width: 1150px) {
  .marketing-services { --service-gap: 18px; }
  .home-page .marketing-service h2 { font-size: clamp(18px,1.45vw,22px); }
  .service-front-copy { padding: 12px 14px; }
}

.site-menu { display: none; }
@media (min-width: 801px) { .header-links .mobile-quote-entry { display: none; } }
.home-page .hero .hero-quote {
  min-height: 64px;
  padding: 15px 36px;
  border: 2px solid #fff3ce;
  background: #f7d875;
  color: #173b29;
  font-size: clamp(19px, 2vw, 24px);
}
.booking-wizard:has(#quote-intake-form) { width: 100%; max-width: 1180px; }
.booking-wizard > .panel:has(#quote-intake-form) { padding: 0; }
.quote-step-content {
  max-height: clamp(180px, 55dvh, 720px);
  overflow: auto;
  padding: clamp(16px, 3vw, 32px);
  scroll-padding: 16px;
}
.quote-step-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(16px, 3vw, 32px);
  border-top: 1px solid var(--line);
  background: #fff;
  border-radius: 0 0 8px 8px;
}
.quote-step-next { margin-inline-start: auto; }

.booking-wizard:has(#quote-intake-form .service-choice-grid) {
  max-width: 1600px;
  padding-inline: clamp(16px, 3vw, 48px);
}
.quote-step-content fieldset:has(.service-choice-grid) {
  border: 0;
  margin: 0 0 24px;
  padding: 0;
}
.sidebar nav a[aria-current="location"] { background: var(--green); color: white; }
.configuration-tabs a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 800px) {
  .site-shell > .header { position: relative; flex-flow: row wrap; align-items: center; }
  .site-shell > .header .brand { margin-inline: 0; }
  .site-menu:not([hidden]) {
    display: inline-flex;
    margin-inline-start: auto;
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--green);
  }
  .site-menu-icon {
    width: 26px;
    height: 3px;
    border-radius: 3px;
    background: currentColor;
    box-shadow: 0 -7px currentColor, 0 7px currentColor;
  }
  .site-menu:not([hidden])[aria-expanded="false"] + nav { display: none; }
  .site-menu[aria-expanded="true"] + #main-navigation {
    flex: 0 0 100%;
    align-items: center;
    gap: 0;
    border-top: 1px solid var(--line);
    padding: 6px 0 18px;
    text-align: center;
    font-size: 18px;
  }
  .site-menu[aria-expanded="true"] + nav .header-links {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    white-space: normal;
  }
  .site-menu[aria-expanded="true"] + nav .header-links > a:not(.quote-entry),
  .site-menu[aria-expanded="true"] + nav .text-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 8px 12px;
  }
  .site-menu[aria-expanded="true"] + nav .header-links .quote-entry {
    min-height: 48px;
    margin: 12px auto 0;
    padding-inline: 24px;
    font-size: 17px;
  }
  .home-page:not(.past-hero) .header .quote-entry,
  .home-page .header .quote-entry { display: inline-flex; position: static; box-shadow: none; }
  .home-page.past-hero .site-menu[aria-expanded="false"] + nav {
    display: flex;
    position: fixed;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    left: 16px;
    right: 16px;
    width: auto;
    z-index: 40;
  }
  .home-page.past-hero .site-menu[aria-expanded="false"] + nav > .header-links:first-child,
  .home-page.past-hero .site-menu[aria-expanded="false"] + nav > .header-links:last-child > :not(.quote-entry) {
    display: none;
  }
  .home-page .hero .hero-quote { min-height: 68px; padding-inline: 40px; }
  .home-page.past-hero .site-menu[aria-expanded="false"] + nav .quote-entry {
    min-height: 52px;
    padding-inline: 20px;
    font-size: 16px;
  }
}

.service-admin-list { padding: 0; list-style: none; }
.service-admin-list .panel { padding-block: 14px; }
.service-admin-list .actions { margin-top: 0; gap: 12px; }
.service-switch { gap: 8px; background: #fff; color: var(--green); padding: 6px 10px; min-height: 44px; }
.service-switch::before { content: ""; width: 34px; height: 20px; border: 1px solid var(--line); border-radius: 12px; background: radial-gradient(circle at 9px 9px,#fff 0 7px,transparent 7px),#8c958c; }
.service-switch[aria-checked="true"]::before { background: radial-gradient(circle at 24px 9px,#fff 0 7px,transparent 7px),var(--green); }

.consultation-appointment {
  max-width: 1120px;
  padding: clamp(28px, 4vw, 56px) clamp(16px, 4vw, 48px);
}
.consultation-summary {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}
.consultation-summary .booking-review,
.consultation-services .included-work { margin-block: 0; }
.consultation-appointment .page-title { font-size: clamp(2.35rem, 4.2vw, 3.8rem); }
.consultation-appointment .booking-review,
.consultation-appointment .included-work,
.consultation-appointment button,
.consultation-appointment > p { font-size: 1rem; }
.consultation-services h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.5vw, 1.85rem);
}
@media (min-width: 720px) {
  .consultation-summary {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 32px;
  }
  .consultation-summary .booking-review { grid-template-columns: max-content minmax(0, 1fr); }
  .consultation-services {
    border-inline-start: 1px solid var(--line);
    padding-inline-start: 32px;
  }
}

.admin-bottom-nav { display: none; }
.admin-drawer {
  position: fixed;
  inset: auto 8px calc(70px + env(safe-area-inset-bottom)) auto;
  margin: 0 auto;
  width: min(calc(100% - 16px), 400px);
  max-width: none;
  box-sizing: border-box;
  max-height: min(55dvh, calc(100dvh - 80px));
  padding: 12px 16px;
  border: 1px solid #d6ded4;
  border-radius: 16px;
  color: var(--green);
  background: #fff;
  box-shadow: 0 8px 28px rgb(0 0 0 / 16%);
  overflow: auto;
}
@media (prefers-reduced-motion: no-preference) {
  .admin-drawer:popover-open { animation: admin-menu-enter 160ms ease-out both; }
  @keyframes admin-menu-enter {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.admin-drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-drawer-heading h2 { margin: 0; font-size: 1.15rem; }
.admin-drawer-heading button { min-height: 44px; padding: 6px 12px; }
.admin-drawer nav { display: grid; gap: 4px; margin-top: 16px; }
.admin-drawer nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
}
.admin-drawer nav a[aria-current] { background: var(--green); color: #fff; }
@media (max-width: 800px) {
  .workspace:has(> .admin-bottom-nav:not([hidden])) > .admin-sidebar { display: none; }
  .site-shell:has(.admin-bottom-nav:not([hidden])) {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }
  .admin-bottom-nav:not([hidden]) {
    position: fixed;
    inset: auto 0 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #d6ded4;
  }
  .admin-bottom-nav :is(a, button) {
    display: grid;
    align-content: center;
    justify-items: center;
    min-height: 54px;
    margin: 0;
    padding: 4px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--green);
    font: inherit;
    font-size: .75rem;
    font-weight: 700;
    text-decoration: none;
  }
  .admin-bottom-nav span { font-size: 1.3rem; line-height: 1.1; }
  .admin-bottom-nav :is([aria-current], [data-current]) {
    background: var(--green);
    color: #fff;
  }
}

.consultation-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}
.consultation-actions > * { grid-column: 1 / -1; }
.consultation-actions > .consultation-quote-action { text-align: center; justify-content: center; }
.consultation-actions > .consultation-customer-action { grid-column: 1; grid-row: 2; }
.consultation-actions > .consultation-cancel-action { grid-column: 2; grid-row: 2; }
.consultation-cancel-action button.text-button {
  min-height: 44px;
  color: #a32626;
  text-decoration: underline;
}
.quote-editor { margin: 24px 0 16px; }
.quote-field-grid, .quote-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 20px;
}
.quote-services {
  min-width: 0;
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.quote-services legend { font-weight: 650; }
.quote-services .check { margin: 0; min-height: 36px; }
.quote-services input { flex-shrink: 0; }
.quote-history-search {
  display: flex;
  align-items: end;
  gap: 12px;
  margin: 16px 0 24px;
}
.quote-history-search label { flex: 1; margin: 0; }
@media (max-width: 560px) {
  .quote-field-grid, .quote-services { grid-template-columns: minmax(0, 1fr); }
  .quote-field-grid { gap: 0; }
}

.saved-quote { position: relative; }
.saved-quote > details > summary {
  min-height: 44px;
  padding: 10px 202px 10px 0;
  font-weight: 650;
  cursor: pointer;
}
.saved-quote > .saved-quote-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .85rem;
  position: absolute;
  top: 20px;
  right: 20px;
  margin: 0;
}
.saved-quote-actions a { display: inline-flex; align-items: center; min-height: 44px; }
.saved-quote-actions form { margin: 0; }
.quote-editor:has(+ .quote-secondary-actions) { margin-bottom: 0; }
.quote-secondary-actions { margin-top: 2px; gap: 0 16px; }
.quote-secondary-actions form { margin: 0; }
.quote-secondary-actions :is(.quote-withdraw, a) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  font: inherit;
  text-decoration: underline;
}
.quote-secondary-actions .quote-withdraw { color: #a32626; }

.job-card-name { color: inherit; text-decoration: none; }
.job-card-name:hover, .job-card-name:focus-visible { text-decoration: underline; }
.job-card-schedule {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
}
.job-card-schedule label { min-width: 0; margin: 0; }
.job-card-schedule input { min-width: 0; }
.job-card-schedule button { min-height: 44px; padding: 8px 12px; }
.job-card-extra-actions:empty { display: none; }

.job-agenda-row {
  display: grid;
  grid-template-columns: minmax(110px, .8fr) minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: 8px;
  padding: 12px 16px;
}
.job-agenda-time { font-weight: 650; }
.job-agenda-row .button { justify-self: end; white-space: nowrap; }
.job-history-status { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
@media (max-width: 700px) {
  .job-agenda-row { grid-template-columns: minmax(0, 1fr) auto; }
  .job-agenda-time { grid-column: 1 / -1; }
  .job-agenda-row > div { grid-column: 1; }
  .job-agenda-row > .job-agenda-actions { grid-column: 2; grid-row: 2 / span 2; }
}

[data-work-seconds] { font-size: 1.5rem; font-weight: 650; font-variant-numeric: tabular-nums; }

.job-agenda-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.job-agenda-row > div { min-width: 0; overflow-wrap: anywhere; }
.job-edit-link { min-width: 44px; }
.job-cancel-form .quote-withdraw { color: #a32626; font-size: .85rem; }
.quote-history-actions { font-size: inherit; align-items: center; }
.quote-history-actions .hint { margin: 0; font-size: inherit; }
.saved-quote > details { font-size: 1rem; }
.saved-quote > details > summary { font-size: inherit; }
@media (max-width: 520px) {
  .job-agenda-row { grid-template-columns: minmax(0, 1fr); }
  .job-agenda-row > .job-agenda-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}
