/* Astorga — /pool-estimate/ landing page. Theme tokens only (theme.json
   presets + the --ast-* custom properties in astorga.css). Mobile first. */

.ast-est-page .wp-block-post-content, .ast-est-page .entry-content { max-width: none !important; padding: 0 !important; margin: 0 !important; }
.ast-est-page .wp-block-post-content > * { max-width: none; margin-left: 0; margin-right: 0; }
.ast-header__bar--landing { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.ast-header--landing .ast-header__bar { justify-content: space-between; }
.ast-header__call--landing { font-family: var(--wp--preset--font-family--body); font-weight: 700; font-size: .92rem; color: var(--wp--preset--color--navy); text-decoration: none; border: 1px solid var(--wp--preset--color--navy); border-radius: var(--ast-radius); padding: .6rem .95rem; white-space: nowrap; min-height: 2.75rem; display: inline-flex; align-items: center; }
.ast-header__call--landing:hover, .ast-header__call--landing:focus-visible { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--warm-white); }

/* ---------- hero + card ---------- */
.ast-est-hero { position: relative; isolation: isolate; background: var(--wp--preset--color--navy-deep); overflow: hidden; }
.ast-est-hero__bg { position: absolute; inset: 0; z-index: -2; display: block; margin: 0; }
.ast-est-hero__bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.ast-est-hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(4, 26, 51, .94) 0%, rgba(4, 26, 51, .78) 40%, rgba(4, 26, 51, .42) 70%, rgba(4, 26, 51, .55) 100%), linear-gradient(180deg, rgba(4, 26, 51, .3) 0%, rgba(4, 26, 51, .12) 45%, rgba(4, 26, 51, .6) 100%); }
.ast-est-hero__wrap { max-width: 1300px; margin: 0 auto; padding: clamp(1.5rem, 3vw, 2.5rem) clamp(1.25rem, 4vw, 3rem) clamp(2rem, 4vw, 3rem); display: grid; gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.ast-est-hero__wrap > * { min-width: 0; }
.ast-est-hero__copy { display: flex; flex-direction: column; gap: 1rem; max-width: 42rem; }
.ast-est-hero__brand { color: var(--wp--preset--color--gold); }
.ast-est-hero__h1 { margin: 0; font-family: var(--wp--preset--font-family--display); font-weight: 400; font-size: clamp(2.6rem, 7vw, 4.8rem); line-height: .98; letter-spacing: .01em; color: var(--wp--preset--color--warm-white); }
.ast-est-hero__lede { margin: 0; font-size: clamp(1.02rem, 1.4vw, 1.18rem); line-height: 1.6; max-width: 48ch; }
.ast-est-hero__steps { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .7rem; counter-reset: est; }
.ast-est-hero__steps li { counter-increment: est; display: grid; grid-template-columns: 2.1rem 1fr; gap: .2rem .7rem; align-items: baseline; }
.ast-est-hero__steps li::before { content: counter(est); grid-row: 1 / span 2; font-family: var(--wp--preset--font-family--display); font-size: 1.9rem; line-height: 1; color: var(--wp--preset--color--gold); }
.ast-est-hero__steps strong { font-family: var(--wp--preset--font-family--label); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; font-size: .86rem; color: var(--wp--preset--color--warm-white); }
.ast-est-hero__steps span { font-size: .92rem; line-height: 1.5; color: rgba(247, 244, 237, .8); }
@media (max-width: 679px) { .ast-est-hero__steps { display: none; } }

.ast-est__card { box-sizing: border-box; background: var(--wp--preset--color--white); color: var(--wp--preset--color--charcoal); border: var(--ast-hair); border-radius: 6px; padding: clamp(1.15rem, 2.4vw, 1.8rem); width: 100%; scroll-margin-top: 4.5rem; box-shadow: 0 18px 50px rgba(4, 26, 51, .28); }
.ast-on-dark .ast-est__card, .ast-on-dark .ast-est__card p { color: var(--wp--preset--color--charcoal); }
.ast-on-dark .ast-est__card h2 { color: var(--wp--preset--color--navy); }

@media (min-width: 900px) {
  .ast-est-hero__wrap { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; min-height: clamp(560px, calc(100svh - 72px), 860px); }
  .ast-est__card { max-width: 34rem; justify-self: end; }
}

/* ---------- the app ---------- */
.ast-est { display: grid; gap: .9rem; }
.ast-est__progress { display: flex; flex-wrap: wrap; gap: .35rem; }
.ast-est__dot { flex: 1 1 0; }
.ast-est__progress::before { content: attr(data-count); flex: 0 0 100%; font-family: var(--wp--preset--font-family--label); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(41, 43, 45, .6); margin-bottom: .1rem; }
.ast-est__dot { display: block; font-size: 0; height: 3px; border-radius: 1px; background: rgba(6, 36, 71, .14); }
.ast-est__dot--done { background: var(--wp--preset--color--gold); }
.ast-est__dot--now { background: var(--wp--preset--color--navy); }
.ast-est__live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ast-est__stage { display: grid; gap: .8rem; }
.ast-est__stage[aria-busy="true"] { min-height: 12rem; }
.ast-est__q { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: clamp(1.7rem, 3.2vw, 2.2rem); line-height: 1.02; letter-spacing: .01em; color: var(--wp--preset--color--navy); }
.ast-est__hint { margin: 0; font-size: .92rem; line-height: 1.5; color: rgba(41, 43, 45, .78); }
.ast-est__choices { display: grid; gap: .55rem; }
.ast-est__choices--multi { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ast-est__choice { -webkit-appearance: none; appearance: none; width: 100%; min-height: 3.3rem; text-align: left; font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 600; line-height: 1.3; color: var(--wp--preset--color--navy); background: var(--wp--preset--color--warm-white); border: 1px solid rgba(6, 36, 71, .22); border-radius: var(--ast-radius); padding: .85rem 2.6rem .85rem 1rem; position: relative; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.ast-est__choice::after { content: ""; position: absolute; right: .9rem; top: 50%; width: .95rem; height: .95rem; margin-top: -.5rem; border: 2px solid rgba(6, 36, 71, .35); border-radius: 50%; transition: all .15s ease; }
.ast-est__choices--multi .ast-est__choice::after { border-radius: 2px; }
.ast-est__choice:hover { border-color: var(--wp--preset--color--navy); }
.ast-est__choice:focus-visible { outline: 2px solid var(--wp--preset--color--navy); outline-offset: 2px; }
.ast-est__choice[aria-pressed="true"] { border-color: var(--wp--preset--color--navy); background: #fff; box-shadow: inset 0 0 0 1px var(--wp--preset--color--navy); }
.ast-est__choice[aria-pressed="true"]::after { border-color: var(--wp--preset--color--navy); background: var(--wp--preset--color--navy); box-shadow: inset 0 0 0 3px #fff; }
.ast-est__choices--multi .ast-est__choice[aria-pressed="true"]::after { box-shadow: none; background: var(--wp--preset--color--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.4' d='M3 8.5l3 3 7-7'/%3E%3C/svg%3E") center/80% no-repeat; }
.ast-est__nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; margin-top: .3rem; padding-top: .9rem; border-top: var(--ast-hair); }
.ast-est__nav--stack { flex-direction: column; align-items: stretch; }
.ast-est__btn { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; box-sizing: border-box; min-height: 3.375rem; font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 700; letter-spacing: .02em; color: var(--wp--preset--color--warm-white); background: var(--wp--preset--color--navy); border: 1px solid transparent; border-radius: var(--ast-radius); padding: .9rem 1.4rem; text-decoration: none; cursor: pointer; transition: background .18s ease; flex: 1 1 auto; }
.ast-est__btn:hover { background: var(--wp--preset--color--navy-deep); color: var(--wp--preset--color--warm-white); }
.ast-est__btn:focus-visible { outline: 2px solid var(--wp--preset--color--aqua); outline-offset: 2px; }
.ast-est__btn--ghost { background: transparent; color: var(--wp--preset--color--navy); border-color: var(--wp--preset--color--navy); }
.ast-est__btn--ghost:hover { background: rgba(6, 36, 71, .06); color: var(--wp--preset--color--navy); }
.ast-est__back { -webkit-appearance: none; appearance: none; background: none; border: 0; padding: .6rem .2rem; min-height: 2.75rem; font-family: var(--wp--preset--font-family--body); font-size: .95rem; font-weight: 600; color: var(--wp--preset--color--navy); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.ast-est__back:focus-visible { outline: 2px solid var(--wp--preset--color--navy); outline-offset: 2px; }
.ast-est__busy { margin: 0; padding: 2.5rem 0; text-align: center; font-weight: 600; color: var(--wp--preset--color--navy); }
.ast-est__busy::after { content: ""; display: block; width: 2rem; height: 2rem; margin: 1rem auto 0; border: 3px solid rgba(6, 36, 71, .15); border-top-color: var(--wp--preset--color--navy); border-radius: 50%; animation: ast-est-spin .9s linear infinite; }
@keyframes ast-est-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ast-est__busy::after { animation: none; } }
.ast-est__error { margin: 0; padding: .9rem 1rem; border: 1px solid #A32E2E; border-radius: var(--ast-radius); background: rgba(163, 46, 46, .05); color: #8A2727; font-size: .95rem; font-weight: 600; line-height: 1.5; }
.ast-est__error a { color: inherit; }
.ast-est__noscript { margin: 0; font-size: .95rem; }

/* ---------- estimate reveal ---------- */
.ast-est__price { margin: 0; font-family: var(--wp--preset--font-family--display); font-size: clamp(3.2rem, 9vw, 4.6rem); line-height: .95; letter-spacing: .01em; color: var(--wp--preset--color--navy); }
.ast-est__price--custom { font-size: clamp(2.2rem, 6vw, 3.2rem); }
.ast-est__lede { margin: 0; font-size: 1rem; line-height: 1.55; }
.ast-est__summary { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .6rem 1rem; padding: .9rem 0; border-top: var(--ast-hair); border-bottom: var(--ast-hair); }
.ast-est__summary div { min-width: 0; }
.ast-est__summary dt { font-family: var(--wp--preset--font-family--label); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(41, 43, 45, .6); }
.ast-est__summary dd { margin: .15rem 0 0; font-size: .95rem; font-weight: 600; color: var(--wp--preset--color--navy); }
.ast-est__lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; font-size: .92rem; }
.ast-est__lines li { display: flex; justify-content: space-between; gap: 1rem; }
.ast-est__lines li span:last-child { font-weight: 700; white-space: nowrap; }
.ast-est__details { border-top: var(--ast-hair); }
.ast-est__details summary { cursor: pointer; padding: .7rem 1.6rem .7rem 0; font-weight: 600; font-size: .95rem; color: var(--wp--preset--color--navy); list-style: none; position: relative; }
.ast-est__details summary::-webkit-details-marker { display: none; }
.ast-est__details summary::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); font-family: var(--wp--preset--font-family--display); font-size: 1.3rem; color: var(--wp--preset--color--gold); }
.ast-est__details[open] summary::after { content: "–"; }
.ast-est__details ul { margin: 0 0 .8rem; padding-left: 1.1rem; font-size: .9rem; line-height: 1.5; }
.ast-est__fine { margin: 0; font-size: .8rem; line-height: 1.5; color: rgba(41, 43, 45, .72); }
.ast-est__fine code { font-size: .85em; }

/* ---------- calendar ---------- */
.ast-est__days { display: flex; gap: .45rem; overflow-x: auto; padding: .2rem 0 .5rem; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.ast-est__day { flex: 0 0 auto; scroll-snap-align: start; -webkit-appearance: none; appearance: none; min-width: 4.4rem; min-height: 3.6rem; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; background: var(--wp--preset--color--warm-white); border: 1px solid rgba(6, 36, 71, .22); border-radius: var(--ast-radius); padding: .45rem .6rem; cursor: pointer; font-family: var(--wp--preset--font-family--body); color: var(--wp--preset--color--navy); }
.ast-est__day span { font-family: var(--wp--preset--font-family--label); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.ast-est__day strong { font-size: .98rem; }
.ast-est__day[aria-selected="true"] { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--warm-white); border-color: var(--wp--preset--color--navy); }
.ast-est__day:focus-visible { outline: 2px solid var(--wp--preset--color--navy); outline-offset: 2px; }
.ast-est__slotday { margin: 0; font-family: var(--wp--preset--font-family--label); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(41, 43, 45, .7); }
.ast-est__slotgrid { margin-top: .5rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.ast-est__slot { -webkit-appearance: none; appearance: none; min-height: 3rem; font-family: var(--wp--preset--font-family--body); font-size: .98rem; font-weight: 600; color: var(--wp--preset--color--navy); background: #fff; border: 1px solid rgba(6, 36, 71, .3); border-radius: var(--ast-radius); cursor: pointer; }
.ast-est__slot:hover { background: var(--wp--preset--color--navy); color: var(--wp--preset--color--warm-white); }
.ast-est__slot:focus-visible { outline: 2px solid var(--wp--preset--color--navy); outline-offset: 2px; }

/* ---------- contact ---------- */
.ast-est__held { margin: 0; padding: .7rem .9rem; background: var(--wp--preset--color--parchment); border-left: 3px solid var(--wp--preset--color--gold); font-size: .92rem; line-height: 1.5; }
.ast-est__form { display: grid; gap: .75rem; }
.ast-est__row { display: grid; gap: .75rem; }
@media (min-width: 480px) { .ast-est__row { grid-template-columns: 1fr 1fr; } .ast-est__row--zip { grid-template-columns: minmax(7rem, 2fr) 3fr; } }
.ast-est__field label { display: block; font-size: .82rem; font-weight: 600; color: var(--wp--preset--color--navy); margin-bottom: .3rem; letter-spacing: .01em; }
.ast-est__field input { width: 100%; box-sizing: border-box; min-height: 3rem; font-family: var(--wp--preset--font-family--body); font-size: 1rem; color: var(--wp--preset--color--charcoal); background: #fff; border: 1px solid rgba(6, 36, 71, .3); border-radius: var(--ast-radius); padding: .7rem .85rem; }
.ast-est__field input:hover { border-color: rgba(6, 36, 71, .55); }
.ast-est__field input:focus-visible { outline: 2px solid var(--wp--preset--color--navy); outline-offset: 2px; border-color: var(--wp--preset--color--navy); }
.ast-est__field--error input { border-color: #A32E2E; }
.ast-est__err { display: block; margin-top: .35rem; font-size: .8rem; font-weight: 600; color: #A32E2E; }
.ast-est__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ast-est__use { margin: 0; font-size: .8rem; line-height: 1.5; color: rgba(41, 43, 45, .78); }
.ast-est__use a { color: var(--wp--preset--color--navy); }
.ast-est__check { display: flex; gap: .55rem; align-items: flex-start; font-size: .88rem; line-height: 1.45; cursor: pointer; }
.ast-est__check input { margin: .2rem 0 0; width: 1.1rem; height: 1.1rem; flex: none; accent-color: var(--wp--preset--color--navy); }

/* ---------- confirmed ---------- */
.ast-est__when { margin: 0; font-size: 1.15rem; line-height: 1.5; color: var(--wp--preset--color--navy); }
.ast-est__when strong { font-family: var(--wp--preset--font-family--display); font-size: 1.9rem; letter-spacing: .01em; font-weight: 400; }

/* ---------- sections below the fold ---------- */
.ast-est__inner { max-width: 1100px; margin: 0 auto; padding-left: clamp(1.25rem, 4vw, 3rem); padding-right: clamp(1.25rem, 4vw, 3rem); }
.ast-est-rev h2, .ast-est-faq h2 { margin: .3rem 0 1rem; }
.ast-est-rev .ast-gr--strip { margin: 0 0 1.4rem; padding: 0; background: transparent; border: 0; }
.ast-est-rev .ast-gr--strip .ast-gr__wrap { padding: 0; max-width: none; }
.ast-est-rev__grid { display: grid; gap: .9rem; }
@media (min-width: 700px) { .ast-est-rev__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ast-est-rev__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ast-est-rev__grid .ast-est-rev__card:nth-child(4), .ast-est-rev__grid .ast-est-rev__card:nth-child(5) { grid-column: span 1; } }
.ast-est-rev__card { min-width: 0; }
.ast-est-rev .ast-gr__notice { margin: 1.2rem 0 .4rem; font-size: .85rem; max-width: 70ch; }
.ast-est-faq .ast-faqs { max-width: 76ch; }
.ast-est-faq__cta { margin: 1.8rem 0 0; display: flex; flex-wrap: wrap; gap: .7rem; }
.ast-est-faq__cta .ast-est__btn { flex: 0 1 auto; }

/* ---------- 2026-10-31 rework: custom size, two prices, channel choice, text handoff ---------- */
.ast-est__custom { display: grid; gap: .75rem; padding-top: .4rem; }
.ast-est__custom .ast-est__nav { margin-top: 0; padding-top: .4rem; border-top: 0; }
.ast-est__field select { width: 100%; box-sizing: border-box; min-height: 3rem; font-family: var(--wp--preset--font-family--body); font-size: 1rem; color: var(--wp--preset--color--charcoal); background: #fff; border: 1px solid rgba(6, 36, 71, .3); border-radius: var(--ast-radius); padding: .6rem .85rem; }
.ast-est__field select:focus-visible { outline: 2px solid var(--wp--preset--color--navy); outline-offset: 2px; }
.ast-est__spec { margin: 0; font-size: 1rem; line-height: 1.5; }
.ast-est__spec strong { color: var(--wp--preset--color--navy); }
.ast-est__prices { display: grid; gap: .6rem; }
@media (min-width: 480px) { .ast-est__prices { grid-template-columns: 1fr 1fr; } }
.ast-est__pricecard { display: flex; flex-direction: column; gap: .25rem; padding: .95rem 1rem 1rem; border: 1px solid rgba(6, 36, 71, .22); border-radius: var(--ast-radius); background: var(--wp--preset--color--warm-white); min-width: 0; }
.ast-est__pricecard--deck { border-color: var(--wp--preset--color--navy); border-top: 3px solid var(--wp--preset--color--gold); background: #fff; }
.ast-est__pricelabel { font-family: var(--wp--preset--font-family--label); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(41, 43, 45, .7); }
.ast-est__pricecard .ast-est__price { font-size: clamp(2.2rem, 6vw, 2.9rem); line-height: .98; }
.ast-est__pricenote { font-size: .8rem; line-height: 1.4; color: rgba(41, 43, 45, .72); }
.ast-est__channels { display: grid; gap: .6rem; margin-top: .4rem; padding-top: .9rem; border-top: var(--ast-hair); }
.ast-est__channels .ast-est__hint { margin-bottom: .1rem; }
.ast-est__channels .ast-est__btn { flex-direction: column; align-items: flex-start; text-align: left; gap: .15rem; padding: .85rem 1.1rem; }
.ast-est__channels .ast-est__btn small { font-weight: 500; font-size: .8rem; line-height: 1.35; opacity: .85; }
.ast-est__smsbody { margin: .4rem 0 0; padding: .8rem .9rem; border-left: 3px solid var(--wp--preset--color--gold); background: var(--wp--preset--color--parchment); font-size: .9rem; line-height: 1.5; user-select: all; }
.ast-est__fine a { color: var(--wp--preset--color--navy); }

/* ---------- 2026-10-31 (later): one big price, small opt-out line; perimeter readout; stage form in admin is unstyled on purpose ---------- */
.ast-est__pricebox { display: flex; flex-direction: column; gap: .3rem; padding: 1rem 1.1rem 1.1rem; border: 1px solid var(--wp--preset--color--navy); border-top: 3px solid var(--wp--preset--color--gold); border-radius: var(--ast-radius); background: #fff; }
.ast-est__pricebox .ast-est__price { font-size: clamp(3.2rem, 10vw, 4.6rem); line-height: .95; }
.ast-est__optout { margin-top: .5rem; padding-top: .6rem; border-top: var(--ast-hair); font-size: .86rem; line-height: 1.45; color: rgba(41, 43, 45, .78); }
.ast-est__optout strong { color: var(--wp--preset--color--navy); }
.ast-est__perimeter { margin: 0; font-size: .92rem; color: rgba(41, 43, 45, .8); min-height: 1.3em; }
.ast-est__perimeter strong { color: var(--wp--preset--color--navy); }
