/* =================================================================
   Subpages (loaded after site.css)
   ================================================================= */
.nav a[aria-current="page"] { color: var(--g-700); background: var(--leaf-50); box-shadow: inset 0 0 0 1px var(--line); }
.crumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .88rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--g-700); text-decoration: underline; text-underline-offset: .2em; }
.crumbs .ic { width: 14px; height: 14px; opacity: .6; }
.section-lead { margin-top: 12px; max-width: 46em; color: var(--ink-2); font-size: 1.05rem; }

/* Page hero: copy left, photo right on a green stage */
.phero { position: relative; isolation: isolate; padding: clamp(80px, 7vw, 100px) 0 clamp(48px, 5vw, 72px); background: linear-gradient(180deg, var(--leaf-50), var(--white)); }
.phero::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 64px; left: calc(50% + 60px); right: 0; background-color: var(--g-800); background-image: linear-gradient(160deg, var(--g-600), var(--g-900)); border-bottom-left-radius: 180px; }
.phero--plain::before, .phero--form::before { display: none; }
.phero--plain { padding-bottom: 24px; }
.phero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.phero h1 { font-size: clamp(2.3rem, 4vw, 3.4rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; }
.phero .hero__lead { margin-top: 18px; max-width: 38em; }
.phero .hero__lead a { color: var(--g-700); font-weight: 700; }
.phero__fig { position: relative; margin: 0; justify-self: center; width: min(100%, 480px); }
.phero__fig img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--sh-3); }
.phero__chips { position: absolute; left: -28px; bottom: 28px; display: grid; gap: 10px; }
.phero__chips li { display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 12px; border-radius: 16px; background: var(--white); box-shadow: var(--sh-2); font-size: .95rem; color: var(--ink-2); }
.phero__chips li:nth-child(2) { margin-left: 34px; }
.phero__chips .ic { width: 36px; height: 36px; padding: 8px; border-radius: 11px; background: var(--leaf-50); color: var(--g-600); }
.phero__chips b { color: var(--ink); font-weight: 900; font-size: 1.1rem; letter-spacing: -0.02em; }
.phero--center { text-align: center; padding-bottom: clamp(72px, 8vw, 120px); }
.hero__actions--center { justify-content: center; }

/* Info: prose + sticky facts card */
.info { padding: clamp(56px, 6vw, 88px) 0; }
.info__grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.prose { max-width: 68ch; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 44px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.3rem; margin: 30px 0 10px; }
.prose p { margin-top: 12px; color: var(--ink-2); font-size: 1.04rem; line-height: 1.65; }
.prose p.small { font-size: .9rem; color: var(--ink-3); }
.prose a { color: var(--g-700); font-weight: 700; }
.ticks-list { display: grid; gap: 8px; margin-top: 14px; }
.ticks-list li { position: relative; padding-left: 30px; color: var(--ink-2); line-height: 1.5; }
.ticks-list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 6px; background: var(--leaf-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f7319' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.timeline { display: grid; margin: 22px 0 6px; border-left: 3px solid var(--leaf-100); }
.timeline li { position: relative; padding: 0 0 18px 24px; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--g-600); box-shadow: 0 0 0 4px var(--white); }
.timeline li:last-child::before { background: var(--yellow); }
.timeline b { display: block; font-size: 1.05rem; font-weight: 800; }
.timeline span { color: var(--ink-2); }
.facts-card { position: sticky; top: 24px; padding: 26px; border-radius: var(--r-lg); background: var(--g-900); color: var(--on-g); box-shadow: var(--sh-2); }
.facts-card__title { font-weight: 900; font-size: 1.25rem; letter-spacing: -0.02em; color: var(--white); margin-bottom: 14px; }
.facts-card ul { display: grid; gap: 12px; margin-bottom: 22px; }
.facts-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-g-2); }
.facts-card li .ic { flex: none; width: 22px; height: 22px; padding: 4px; border-radius: 7px; background: var(--yellow); color: var(--ink); stroke-width: 2.6; margin-top: 1px; }

/* Before / after 1981 split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.split__card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--leaf-50); box-shadow: inset 0 0 0 1px var(--line); }
.split__card h2 { margin-top: 12px; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.split__card > p { margin-top: 12px; color: var(--ink-2); }
.split__tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--yellow); font-weight: 800; font-size: .85rem; }
.split__card--dark { background: var(--g-900); color: var(--on-g); box-shadow: none; }
.split__card--dark h2 { color: var(--white); }
.split__card--dark > p, .split__card--dark .ticks-list li { color: var(--on-g-2); }
.split__card--dark .ticks-list li::before { background-color: rgba(255,255,255,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2ca50' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E"); }

/* Price tiles on service pages */
.prices__head p { margin-top: 12px; max-width: 52em; color: var(--ink-2); }
.ptiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.ptile { display: grid; align-content: start; gap: 6px; padding: 22px; border-radius: var(--r-lg); background: var(--white); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); transition: transform .45s var(--spring), box-shadow .3s; }
.ptile:hover { transform: translateY(-5px); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.ptile__ic { width: 64px; height: 46px; margin-bottom: 8px; fill: none; stroke: var(--g-600); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--spring); }
.ptile:hover .ptile__ic { transform: translateY(-3px) scale(1.05); }
.ptile__name { font-weight: 700; color: var(--ink-2); line-height: 1.3; min-height: 2.6em; }
.ptile strong { font-size: 2.3rem; font-weight: 900; letter-spacing: -0.045em; line-height: 1; color: var(--g-600); font-variant-numeric: tabular-nums; }
.ptile--quote { background: var(--g-900); box-shadow: var(--sh-2); }
.ptile--quote .ptile__ic { stroke: var(--leaf); }
.ptile--quote .ptile__name { color: var(--on-g-2); }
.ptile--quote strong { font-size: 1.45rem; letter-spacing: -0.02em; color: var(--leaf); }

/* Forms */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.form { display: grid; gap: 16px; margin-top: 28px; padding: clamp(22px, 3vw, 32px); border-radius: var(--r-xl); background: var(--white); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row--zip { grid-template-columns: .5fr 1fr; }
.field { display: grid; gap: 6px; }
.field > span, .form__set legend { font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.field i, .form__set legend i { font-style: normal; color: #b4401f; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--leaf-50); box-shadow: inset 0 0 0 1.5px var(--line); font: 500 1rem/1.4 var(--font); color: var(--ink); transition: box-shadow .2s, background-color .2s; }
.field textarea { resize: vertical; }
.field input:hover, .field textarea:hover { box-shadow: inset 0 0 0 1.5px #c3cfb5; }
.field input:focus, .field textarea:focus { outline: 0; background: var(--white); box-shadow: inset 0 0 0 2px var(--g-600), 0 0 0 4px rgba(63,115,25,.12); }
.field.is-invalid input, .field.is-invalid textarea { box-shadow: inset 0 0 0 2px #c4502b; background: #fdf3ef; }
.field--date input { max-width: 260px; }
.form__set { display: grid; gap: 10px; border: 0; margin: 0; padding: 0; min-width: 0; }
.form__set legend { margin-bottom: 10px; padding: 0; }
.form__set.is-invalid .spicks { border-radius: 16px; box-shadow: 0 0 0 2px #c4502b; }
.form__error { padding: 12px 14px; border-radius: 12px; background: #fdf0ec; color: #9b3818; font-weight: 600; font-size: .92rem; }
.form__note { font-size: .85rem; color: var(--ink-3); }
.form__note a { color: var(--g-700); font-weight: 700; }
.form .btn { justify-self: start; }

.spicks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spick { position: relative; display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.spick:hover { background: var(--leaf-50); }
.spick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.spick .chk__box { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px #b9c6aa; background: var(--white); flex: none; transition: background-color .15s, transform .3s var(--spring); }
.spick .chk__box .ic { width: 15px; height: 15px; stroke-width: 2.6; color: var(--white); opacity: 0; transform: scale(.4); transition: opacity .15s, transform .35s var(--spring); }
.spick:has(input:checked) { background: #fffbea; box-shadow: inset 0 0 0 2px #d9a91c; }
.spick:has(input:checked) .chk__box { background: var(--g-600); box-shadow: none; }
.spick:has(input:checked) .chk__box .ic { opacity: 1; transform: none; }
.spick:has(input:focus-visible) { outline: 3px solid #d9a91c; outline-offset: 2px; }
.spick__name { font-weight: 700; }
.spick__price { margin-left: auto; font-weight: 800; color: var(--g-600); font-size: .92rem; white-space: nowrap; }

.tpicks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tpick { position: relative; display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; font-size: .84rem; font-weight: 700; line-height: 1.2; color: var(--ink-2); cursor: pointer; transition: background-color .2s, box-shadow .2s; }
.tpick:hover { background: var(--leaf-50); }
.tpick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tpick__ic { width: 46px; height: 33px; fill: none; stroke: var(--g-600); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s var(--spring); }
.tpick:has(input:checked) { background: #fffbea; box-shadow: inset 0 0 0 2px #d9a91c; color: var(--ink); }
.tpick:has(input:checked) .tpick__ic { transform: scale(1.1); }
.tpick:has(input:focus-visible) { outline: 3px solid #d9a91c; outline-offset: 2px; }

/* Price summary next to the request form */
.summary { position: sticky; top: 24px; margin-top: 110px; padding: 26px; border-radius: var(--r-xl); background: var(--g-900); color: var(--on-g); box-shadow: var(--sh-3); }
.summary__title { font-weight: 900; font-size: 1.25rem; color: var(--white); }
.summary__lines { display: grid; margin-top: 14px; }
.summary__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.12); color: var(--on-g-2); }
.summary__lines li b { color: var(--white); font-variant-numeric: tabular-nums; white-space: nowrap; }
.summary__lines li.summary__empty { border: 0; font-size: .92rem; }
.summary__combi { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(242,202,80,.14); color: var(--yellow); font-weight: 700; font-size: .9rem; }
.summary__combi[hidden] { display: none; }
.summary__combi b { margin-left: auto; }
.summary__total { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 16px; }
.summary__total span { color: var(--on-g-2); font-weight: 600; }
.summary__total strong { display: inline-block; font-size: 2.6rem; font-weight: 900; letter-spacing: -0.045em; line-height: 1; color: var(--leaf); font-variant-numeric: tabular-nums; }
.summary__total strong.is-quote { font-size: 1.4rem; letter-spacing: -0.02em; }
.summary__eta { margin-top: 8px; min-height: 1.3em; font-size: .88rem; color: var(--on-g-2); }
.summary__facts { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: .9rem; color: var(--on-g-2); }
.summary__facts li { display: flex; align-items: center; gap: 8px; }
.summary__facts .ic { color: var(--yellow); }

/* Contact cards */
.contact-cards { display: grid; gap: 10px; margin-top: 110px; }
.ccard { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--r); background: var(--white); box-shadow: var(--sh-1), inset 0 0 0 1px var(--line); text-decoration: none; font-weight: 800; font-size: 1.05rem; transition: transform .45s var(--spring), box-shadow .3s; overflow-wrap: anywhere; }
a.ccard:hover { transform: translateY(-3px); box-shadow: var(--sh-2), inset 0 0 0 1px var(--line); }
.ccard small { display: block; font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.ccard .ic { flex: none; width: 46px; height: 46px; padding: 12px; border-radius: 14px; background: var(--g-900); color: var(--yellow); }
.ccard:first-child { background: var(--yellow-50); box-shadow: inset 0 0 0 1px #efd98e; }

/* Confirmation + 404 */
.done { max-width: 720px; display: grid; justify-items: center; gap: 4px; }
.done > p { color: var(--ink-2); margin-top: 8px; }
.done__ic { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 18px; border-radius: 28px; background: var(--yellow); color: var(--ink); box-shadow: var(--sh-2); }
.done__ic .ic { width: 40px; height: 40px; stroke-width: 2.6; }
.done__ic--muted { width: auto; padding: 0 22px; font-size: 2rem; font-weight: 900; background: var(--leaf-100); box-shadow: none; }
@media (prefers-reduced-motion: no-preference) {
  .done__ic { animation: pop-in .7s var(--spring) .1s both; }
  @keyframes pop-in { from { transform: scale(.4) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Legal */
.legal { padding: 8px 0 clamp(72px, 8vw, 120px); }
.prose--legal { max-width: 76ch; }
.prose--legal h2 { font-size: 1.35rem; margin-top: 36px; }
.prose--legal ul { display: grid; gap: 6px; margin: 12px 0 0 20px; list-style: disc; color: var(--ink-2); }

/* Steps with three items */
.steps--3 .steps__list { grid-template-columns: repeat(3, 1fr); }
.steps--3 .steps__track { left: 16.66%; right: 16.66%; }

@media (max-width: 1120px) {
  .ptiles { grid-template-columns: repeat(3, 1fr); }
  .tpicks { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .phero::before { display: none; }
  .phero__grid, .info__grid, .form-grid, .split { grid-template-columns: 1fr; }
  .phero__fig { width: min(100%, 560px); justify-self: start; }
  .phero__chips { left: 16px; bottom: 16px; }
  .facts-card, .summary { position: static; margin-top: 0; }
  .contact-cards { margin-top: 0; }
  .ptiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .phero { padding-top: 52px; }
  .phero h1 { font-size: 2.2rem; }
  .phero__chips li { padding: 8px 12px 8px 8px; font-size: .85rem; }
  .phero__chips li:nth-child(2) { margin-left: 0; }
  .ptiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ptile { padding: 16px; }
  .ptile strong { font-size: 1.8rem; }
  .ptile--quote strong { font-size: 1.15rem; }
  .form__row, .form__row--zip, .spicks { grid-template-columns: 1fr; }
  .tpicks { grid-template-columns: repeat(2, 1fr); }
  .form .btn { justify-self: stretch; }
  .steps--3 .steps__list { grid-template-columns: 1fr 1fr; }
}

/* Pages without the overlapping close card get a normal footer top */
main:not(:has(.close)) + .footer { padding-top: 64px; }
.values + .services { padding-top: clamp(48px, 5vw, 72px); }
.phero h1 { overflow-wrap: anywhere; hyphens: auto; }
.ptiles:has(> :nth-child(5):last-child) > :last-child { grid-column: span 1; }
.ccard:first-child small { color: #5a4a12; }

/* ---- Tablet (601-960px) ---- */
@media (max-width: 960px) and (min-width: 601px) {
  .phero::before { display: block; left: 60%; bottom: 40px; border-bottom-left-radius: 120px; }
  .phero--plain::before, .phero--form::before { display: none; }
  .phero__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 28px; }
  .phero h1 { font-size: clamp(2rem, 4.8vw, 2.6rem); }
  .phero .hero__lead { font-size: 1rem; }
  .phero__fig { width: 100%; justify-self: end; }
  .phero__fig img { aspect-ratio: 4 / 5; }
  .phero__chips { left: -18px; bottom: 16px; }
  .phero__chips li { padding: 8px 12px 8px 8px; font-size: .82rem; }
  .phero__chips li:nth-child(2) { margin-left: 18px; }
  .phero__chips .ic { width: 30px; height: 30px; padding: 6px; }
  .info__grid { display: flex; flex-direction: column-reverse; gap: 32px; }
  .facts-card { width: 100%; }
  .facts-card ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .ptiles { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; }
  .split__card { padding: 22px; }
  .steps--3 .steps__list { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-grid--wide .summary { order: -1; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .contact-cards .ccard:first-child { grid-column: 1 / -1; }
  .tpicks { grid-template-columns: repeat(4, 1fr); }
}
