/* ============================================================
   Site shell: announcement bar, two-row header, phone price bar, footer.
   Source: docs/chapter-1/reference-build (v43) and MASTER_PROMPT 6.3 / 6.6.
   ============================================================ */

/* ---------- announcement bar ---------- */
/* ---------- announcement bar: three equal zones on one 40 px line (FIXES_1_SPEC 1) ---------- */
.ann { height: 32px; background: var(--pw-forest-deep); color: var(--pw-white); font: 600 13px/16px var(--font-body); }
.ann__in { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 24px; align-items: center; height: 32px; }
.ann__l { display: flex; align-items: center; justify-self: start; gap: 16px; min-width: 0; }
.ann__r { display: flex; align-items: center; justify-self: end; min-width: 0; }
.ann__msgs { display: grid; height: 16px; text-align: center; }
.ann__msgs > span { grid-area: 1 / 1; opacity: 0; white-space: nowrap; transition: opacity 300ms ease-out; }
.ann__msgs > span.is-on { opacity: 1; }
.ann__msgs b { font-weight: 600; }
.ann__msgs a { color: inherit; }
.ann__msgs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ann a:focus-visible { outline: 3px solid var(--pw-foil-gold); outline-offset: 2px; }

/* ---------- header ---------- */
.sitehd { position: sticky; top: 0; z-index: var(--z-header); background: var(--pw-white); border-bottom: 1px solid var(--pw-line); transition: box-shadow .25s; }
.sitehd.is-stuck { box-shadow: 0 4px 18px rgba(35, 27, 21, .1); }
.sitehd__top { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; padding-top: 22px; padding-bottom: 12px; }
.sitehd__top .brand { display: flex; }
.sitehd__search { flex: 1 1 260px; min-width: 0; display: flex; margin: 0; }
.sitehd__search input { width: 100%; min-height: var(--pw-h-header-line); padding: 0 18px; border: 1.5px solid var(--pw-line); border-radius: 999px; background: var(--pw-white); color: var(--pw-bark); font: 400 16px var(--font-body); }
.sitehd__search input::placeholder { color: var(--pw-bark-muted); }
.sitehd__search input:focus { outline: 3px solid var(--pw-foil-gold); outline-offset: 1px; border-color: var(--state-border-hover); }
.sitehd__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px var(--hd-gap, 12px); }
.sitehd__actions > .btn--forest.sitehd__cta { width: var(--hd-ds-w, 153px); padding: 0; justify-content: center; } /* Design Studio and Get My Quote: the two widths row 2's icon block spans */
.sitehd__actions > .sitehd__cta:last-child { width: var(--hd-quote-w, 136px); padding: 0; justify-content: center; }
.hd-track { display: inline-flex; align-items: center; gap: 7px; min-height: var(--pw-h-header-line); padding: 0 14px 0 10px; border-radius: 999px; font: 600 14px var(--font-body); color: var(--pw-bark); transition: background .2s, color .2s; }
.hd-track svg { color: var(--pw-forest); }
.hd-track:hover { background: var(--state-fill-hover); color: var(--state-text-hover); }
.sitehd__cta { min-height: var(--pw-h-header-line); gap: 9px; padding: 0 18px 0 14px; border: 0; font-size: 14px; }
.sitehd__cta.btn--primary { padding: 0 22px; }

/* menus open on hover or keyboard focus on desktop; on smaller screens the links simply open their page */

/* ---------- homepage hero: text column (5fr) + 3D panel (7fr), fills the first screen ---------- */
.hero3 { background: var(--pw-white); }
.hero3__grid { display: flex; flex-wrap: wrap; gap: 32px 40px; padding-top: 24px; padding-bottom: 24px; }
.hero3__copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.hero3__eyebrow { align-self: flex-start; margin: 0; font: 700 var(--pw-t-tagline)/22px var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--pw-forest); }
.hero3 h1 { margin: 18px 0 0; font: 800 40px/44px var(--font-display); letter-spacing: -.02em; color: var(--pw-bark); }
.hero3 h1 span { color: var(--pw-forest); }
.hero3__intro { margin: 18px 0 0; max-width: 540px; font-size: var(--pw-t-intro); line-height: 28px; color: var(--pw-bark-muted); }
.hero3__ctas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; max-width: 520px; margin-top: 18px; }
.hero3__ctas .btn { padding: 0 12px; }
.hero3__ctas .btn:first-child { grid-column: 1 / -1; }
.hero3__proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; width: 100%; max-width: 520px; margin: 34px 0 0; padding: 0; list-style: none; } /* 2 x 2, as wide as the button row above */
.hero3__proof li { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 24px; font-weight: 600; color: var(--pw-bark-muted); }
.hero3__proof svg { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--pw-leaf); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hero3__panel { flex: 1 1 520px; min-width: 0; position: relative; overflow: hidden; min-height: clamp(480px, 74svh, 600px); border-radius: 16px; background: var(--pw-kraft-mist); }
@media (min-width: 960px) {
  .hero3__grid { display: grid; grid-template-columns: 5fr 7fr; column-gap: 48px; align-items: stretch; align-content: center; min-height: calc(100vh - 153px); padding-top: 32px; padding-bottom: 32px; } /* 100vh - 217px of content, plus the 32px paddings */
  .hero3 h1 { margin-top: 24px; font-size: clamp(40px, 3.75vw, var(--pw-t-h1)); line-height: 1.07; }
  .hero3__intro { margin-top: 24px; }
  .hero3__ctas { margin-top: 32px; }
  .hero3__proof { margin-top: 16px; }
  .hero3__panel { min-height: clamp(440px, calc(100vh - 217px), 680px); }
}
@media (min-width: 1180px) {
  .hero3__ctas { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; }
  .hero3__ctas .btn:first-child { grid-column: auto; }
  .hero3__proof { max-width: none; }
}

/* ---------- phone price bar ---------- */
.mprice { display: none; }

/* ---------- footer (FORM_AND_FOOTER_SPEC B) ---------- */
.footcta { background: var(--pw-kraft-mist); border-top: 1px solid var(--pw-line); }
.footcta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; padding-top: 24px; padding-bottom: 24px; }
.footcta p { margin: 0; font: 700 22px/28px var(--font-display); color: var(--pw-bark); }
.footcta__btn { min-height: 48px; border: 1.5px solid var(--pw-forest); background: transparent; color: var(--pw-forest); }
.footcta__btn:hover { background: var(--pw-white); }
.sitefoot { background: var(--pw-forest-deep); color: var(--pw-sage-mist); }
.sitefoot__in { display: flex; flex-direction: column; gap: 32px; padding-top: 48px; padding-bottom: 24px; }
.footbrand { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(236, 243, 236, .15); }
.footbrand__id { display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 22px; }
.footbrand__id img { height: 44px; width: auto; align-self: flex-start; margin-bottom: 4px; }
.footbrand__contact { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.footcontact { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; font: 400 15px/22px var(--font-body); }
.footcontact li { display: flex; align-items: center; gap: 8px; }
.footcontact a { color: var(--pw-white); }
.footcontact li { min-width: 0; } .footcontact a { overflow-wrap: anywhere; } /* the long email address no longer pushes the page 1 px wider than a 320 px screen */
.footsocial { display: flex; gap: 4px; margin-right: -6px; }
.footsocial__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--pw-sage-mist); }
.footsocial__icon:hover { background: rgba(236, 243, 236, .12); color: var(--pw-white); }
.footcols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.footcol summary { display: block; margin-bottom: 8px; font: 600 15px/22px var(--font-body); color: var(--pw-white); list-style: none; pointer-events: none; }
.footcol summary::-webkit-details-marker { display: none; }
.footcol summary svg { display: none; }
.footcol ul { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.footcol li a { display: inline-flex; align-items: center; min-height: 36px; font-size: 15px; line-height: 20px; }
.sitefoot a { color: var(--pw-sage-mist); text-decoration: none; }
.sitefoot a:hover, .sitefoot a:focus-visible { color: var(--pw-white); text-decoration: underline; text-underline-offset: 3px; }
.footpay { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding-top: 24px; border-top: 1px solid rgba(236, 243, 236, .15); }
.footpay__h { font-size: 14px; color: rgba(236, 243, 236, .72); }
.footpay__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tb { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 6px; background: var(--pw-white); color: var(--pw-bark) !important; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tb svg { color: var(--pw-forest); }
.sitefoot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 16px; border-top: 1px solid rgba(236, 243, 236, .15); font-size: 13px; line-height: 20px; }
@media (max-width: 1023px) { .footcols { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .footbrand { flex-direction: column; }
  .footbrand__contact { align-items: flex-start; }
  .footcols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .footcol { border-bottom: 1px solid rgba(236, 243, 236, .15); }
  .footcol summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0; pointer-events: auto; cursor: pointer; }
  .footcol summary svg { display: block; transition: transform .15s ease-out; }
  .footcol[open] summary svg { transform: rotate(180deg); }
  .footcol ul { padding-bottom: 8px; }
  .footlegal { display: flex; flex-direction: column; gap: 4px; }
  .footlegal { font-size: 0; } .footlegal a { font-size: 13px; }
}

@media (max-width: 720px) {
  .sitehd { position: static; }
  .sitehd__cta { display: none; }
  .hd-track { margin-left: -10px; }
  .mprice { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: var(--z-sticky); display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--pw-white); box-shadow: 0 6px 22px rgba(35, 27, 21, .18); font-size: var(--pw-t-caption); color: var(--pw-bark-muted); }
  .mprice .btn { min-height: 44px; }
  body { padding-bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .ann__msgs > span { transition: none; }
  .sitehd, .hd-track { transition: none; }
}

.paylogo { display: block; border-radius: 4px; }
.sitefoot__social { flex-wrap: wrap; }/* six social icons: one row when the column is wide enough, otherwise 3 + 3 so the rows stay even */
.sitefoot__brand { container-type: inline-size; }
.sitefoot__social { max-width: 148px; }
@container (min-width: 280px) { .sitefoot__social { max-width: none; } }

/* Track My Order: the truck drives once (400 ms, transform only) on hover and keyboard focus; the label never moves; none when reduced motion is asked for */
.trk__w { transform-box: fill-box; transform-origin: center; }
@keyframes trkdrive { 0% { transform: translate(0, 0); } 50% { transform: translate(4px, -1px); } 100% { transform: translate(0, 0); } }
@keyframes trkspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .hd-track:focus-visible .trk, .mtrack:focus-visible .trk { animation: trkdrive 400ms cubic-bezier(.2, .8, .2, 1) 1; }
  .hd-track:focus-visible .trk__w, .mtrack:focus-visible .trk__w { animation: trkspin 400ms cubic-bezier(.2, .8, .2, 1) 1; }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .hd-track:hover .trk { animation: trkdrive 400ms cubic-bezier(.2, .8, .2, 1) 1; }
  .hd-track:hover .trk__w { animation: trkspin 400ms cubic-bezier(.2, .8, .2, 1) 1; }
}

/* Design Studio page: the studio button is the current page (darker forest). */
.sitehd__cta[aria-current="page"] { background: var(--pw-forest-deep); }
