/**
 * Public winterize landing page — faithful build of the approved mockup
 * (Oswald + Source Serif 4, warm palette). Colors come from bo-tokens.css.
 * Degrades safely: no stylesheet → an unstyled but working form (§7.5.1).
 */

.bo-winterize {
  --osw: "Oswald", "Arial Narrow", sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  background: var(--bo-paper);
  color: var(--bo-ink);
  font-family: var(--serif);
  max-width: 1440px;
  margin: 0 auto;
}
.bo-winterize *, .bo-winterize *::before, .bo-winterize *::after { box-sizing: border-box; }
.bo-winterize .osw { font-family: var(--osw); }
.bo-winterize a { color: var(--bo-orange); text-decoration: none; }
.bo-winterize a:hover { color: var(--bo-orange-hover); text-decoration: underline; }

/* ── Top bar ────────────────────────────────────────────────────────────── */
.bo-topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 15px clamp(16px, 5vw, 72px); background: var(--bo-paper);
  border-bottom: 1px solid var(--bo-hairline);
}
.bo-topbar__brand { display: flex; align-items: center; gap: 15px; }
.bo-topbar__logo { width: 78px; height: 78px; display: block; flex: none; }
.bo-topbar__name { font-family: var(--osw); font-size: 21px; font-weight: 600; letter-spacing: .05em; color: var(--bo-ink); display: block; }
.bo-topbar__tag { font-size: 13.5px; font-style: italic; color: var(--bo-muted); display: block; }
.bo-topbar__right { display: flex; align-items: center; gap: 28px; }
.bo-topbar__area { font-family: var(--osw); font-size: 13px; letter-spacing: .09em; text-transform: uppercase; color: var(--bo-muted); }
.bo-topbar__phone { font-family: var(--osw); font-size: 24px; font-weight: 600; color: var(--bo-orange); letter-spacing: .02em; }

/* ── Hero: photo bleeds left into a CSS fade over a pure-white band ─────── */
.bo-hero { position: relative; background: var(--bo-hero); overflow: hidden; }
.bo-hero__photo { position: absolute; left: 0; top: 0; width: 64%; height: 100%; object-fit: cover; object-position: left center; display: block; }
.bo-hero__fade { position: absolute; left: 0; top: 0; bottom: 0; width: 64%; background: linear-gradient(to right, rgba(255,255,255,0) 50%, #FFFFFF 82%); }
.bo-hero__copy { position: relative; margin-left: 53%; padding: 58px clamp(16px,5vw,72px) 58px 0; display: flex; flex-direction: column; gap: 20px; }
.bo-hero__eyebrow { font-family: var(--osw); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bo-orange); }
.bo-hero__h1 { font-family: var(--osw); margin: 0; font-size: clamp(38px, 5vw, 60px); line-height: 1.02; font-weight: 600; letter-spacing: -.01em; color: var(--bo-ink); }
.bo-hero__sub { margin: 0; font-size: 20px; line-height: 1.45; color: var(--bo-prose); }
.bo-hero__offer { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 14px 18px; background: #FFFFFF; border: 1px solid var(--bo-border-card); border-left: 4px solid var(--bo-orange); border-radius: 4px; margin-top: 4px; }
.bo-hero__offer-price { font-family: var(--osw); font-size: 34px; font-weight: 700; color: var(--bo-green); line-height: 1; }
.bo-hero__offer-reg { font-size: 15px; color: var(--bo-muted); text-decoration: line-through; }
.bo-hero__offer-note { flex-basis: 100%; font-size: 15px; line-height: 1.5; color: var(--bo-text-2); margin-top: 2px; }
.bo-hero__offer-deadline { flex-basis: 100%; font-family: var(--osw); font-weight: 600; letter-spacing: .02em; color: var(--bo-orange); font-size: 15.5px; margin-top: 4px; }
.bo-hero__cta-row { display: flex; align-items: center; gap: 18px; margin-top: 4px; flex-wrap: wrap; }
.bo-winterize a.bo-btn, .bo-winterize .bo-btn {
  font-family: var(--osw); display: inline-flex; align-items: center; gap: 12px;
  background: var(--bo-orange); color: #fff !important; font-size: 19px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; padding: 17px 30px; border-radius: 3px;
  border: none; cursor: pointer;
}
.bo-winterize a.bo-btn:hover, .bo-winterize .bo-btn:hover { background: var(--bo-orange-hover); color: #fff !important; text-decoration: none; }
.bo-hero__callnote { font-size: 17px; color: var(--bo-muted); }
.bo-hero__stats { display: flex; gap: 30px; padding-top: 18px; border-top: 1px solid #E8DFD2; margin-top: 4px; flex-wrap: wrap; }
.bo-stat { display: flex; flex-direction: column; gap: 2px; }
.bo-stat__n { font-family: var(--osw); font-size: 26px; font-weight: 600; color: var(--bo-green); }
.bo-stat__l { font-size: 14.5px; color: var(--bo-muted); }

/* ── Request form band + card ───────────────────────────────────────────── */
.bo-formband { background: var(--bo-sand); padding: clamp(40px,6vw,76px) clamp(16px,5vw,72px) clamp(48px,7vw,84px); }
.bo-formband__inner { max-width: 940px; margin: 0 auto; display: flex; flex-direction: column; gap: 34px; }
.bo-formband__h2 { font-family: var(--osw); margin: 0; font-size: clamp(32px,4.5vw,44px); font-weight: 600; letter-spacing: -.005em; color: var(--bo-ink); }
.bo-formband__intro { margin: 12px 0 0; font-size: 19px; line-height: 1.55; color: var(--bo-text-2); max-width: 62ch; }

/* The Drupal form itself is the card. */
.bo-form-card {
  background: var(--bo-card); border: 1px solid var(--bo-border-card); border-radius: 4px;
  padding: clamp(24px,4vw,44px) clamp(20px,4vw,48px) 40px;
  display: flex; flex-direction: column; gap: 26px;
}
.bo-form-card .form-item { margin: 0; }
.bo-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.bo-grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; }

/* Labels + fields, mockup .lbl / .fld */
.bo-form-card label,
.bo-form-card .form-item__label {
  font-family: var(--osw); font-size: 13px; font-weight: 500; letter-spacing: .09em;
  text-transform: uppercase; color: var(--bo-muted); display: block; margin-bottom: 7px;
}
.bo-form-card input[type="text"], .bo-form-card input[type="email"], .bo-form-card input[type="tel"],
.bo-form-card select {
  width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--bo-field-border);
  background: var(--bo-card); border-radius: 3px; font-family: var(--serif); font-size: 17px; color: var(--bo-ink);
}
.bo-form-card textarea {
  width: 100%; min-height: 84px; padding: 12px 14px; border: 1px solid var(--bo-field-border);
  background: var(--bo-card); border-radius: 3px; font-family: var(--serif); font-size: 17px; color: var(--bo-ink); line-height: 1.45; resize: vertical;
}
.bo-form-card input:focus, .bo-form-card select:focus, .bo-form-card textarea:focus {
  outline: 2px solid var(--bo-orange); outline-offset: 1px; border-color: var(--bo-orange);
}
.bo-form-card .description { font-size: 14px; color: var(--bo-muted-2); margin-top: 5px; font-family: var(--serif); text-transform: none; letter-spacing: 0; }

/* Specific-date block — orange left rule */
.bo-form-card .winterize-specific-date {
  padding: 20px 24px; border: 1px solid #E0D0BA; border-left: 3px solid var(--bo-orange);
  border-radius: 3px; background: #FFFFFF;
}
.bo-form-card .winterize-specific-date .description { font-style: italic; }

/* Opt-in pair block */
.bo-optin { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; background: #FAF5ED; border: 1px solid #E7DBC9; border-radius: 3px; }
.bo-form-card .winterize-specific-date label,
.bo-optin label { font-family: var(--serif); font-size: 17.5px; font-weight: 400; letter-spacing: 0; text-transform: none; color: #2C251E; line-height: 1.45; }

/* Freeze disclaimer */
.winterize-disclaimer { display: flex; gap: 13px; align-items: flex-start; }
.winterize-disclaimer svg { flex: none; margin-top: 2px; }
.winterize-disclaimer p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--bo-muted); max-width: 74ch; }

/* CAPTCHA — drop Drupal's fieldset chrome (legend, border, boilerplate help);
   keep just the reCAPTCHA widget. Legend is visually hidden, not removed, for
   screen readers. */
.bo-winterize fieldset.captcha { border: 0; padding: 0; margin: 0; }
.bo-winterize fieldset.captcha > legend {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.bo-winterize fieldset.captcha .description,
.bo-winterize fieldset.captcha .fieldset__description { display: none; }

/* Submit row */
.bo-form-card .form-actions { display: flex; align-items: center; gap: 26px; padding-top: 4px; flex-wrap: wrap; margin: 0; }
/* !important + appearance reset to beat Olivero's own .button styling. */
.bo-winterize .winterize-submit,
.bo-form-card .winterize-submit {
  font-family: var(--osw); border: none; cursor: pointer;
  background: var(--bo-orange) !important; background-image: none !important; color: #fff !important;
  font-size: 20px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: 20px 42px; border-radius: 3px; box-shadow: none; -webkit-appearance: none; appearance: none;
}
.bo-winterize .winterize-submit:hover,
.bo-form-card .winterize-submit:hover { background: var(--bo-orange-hover) !important; color: #fff !important; }
.bo-form__limit { font-size: 15px; color: var(--bo-muted-2); font-style: italic; }

/* ── What happens next ──────────────────────────────────────────────────── */
.bo-next { padding: clamp(44px,6vw,74px) clamp(16px,5vw,72px) clamp(40px,5vw,66px); background: var(--bo-paper); }
.bo-next__inner { max-width: 1160px; margin: 0 auto; display: flex; flex-direction: column; gap: 38px; }
.bo-next__eyebrow { font-family: var(--osw); margin: 0; font-size: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--bo-orange); }
.bo-next__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 44px; }
.bo-step { display: flex; flex-direction: column; gap: 14px; }
.bo-step h3 { font-family: var(--osw); margin: 0; font-size: 23px; font-weight: 500; color: var(--bo-ink); }
.bo-step p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--bo-text-2); }

/* ── Accordions ─────────────────────────────────────────────────────────── */
.bo-detail { padding: 8px clamp(16px,5vw,72px) 82px; background: var(--bo-paper); }
.bo-detail__inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 300px 1fr; gap: 64px; align-items: start; }
.bo-detail__head { display: flex; flex-direction: column; gap: 14px; padding-top: 26px; }
.bo-detail__head h2 { font-family: var(--osw); margin: 0; font-size: 34px; font-weight: 600; line-height: 1.12; color: var(--bo-ink); }
.bo-detail__head p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--bo-muted); }
.winterize-detail-intro { margin-bottom: 6px; font-size: 17.5px; line-height: 1.62; color: var(--bo-prose); }
.winterize-detail-section { border-top: 1px solid var(--bo-hairline); }
.winterize-detail-section:last-of-type { border-bottom: 1px solid var(--bo-hairline); }
.winterize-detail-section > summary {
  list-style: none; cursor: pointer; padding: 22px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; font-family: var(--osw); font-weight: 500;
  font-size: 20px; letter-spacing: .01em; color: var(--bo-ink);
}
.winterize-detail-section > summary::-webkit-details-marker { display: none; }
.winterize-detail-section > summary::after { content: "+"; flex: none; color: var(--bo-orange); font-family: var(--osw); font-weight: 400; font-size: 30px; line-height: .6; transition: transform .18s ease; }
.winterize-detail-section[open] > summary::after { transform: rotate(45deg); }
.winterize-detail-section > *:not(summary) { font-size: 17.5px; line-height: 1.62; color: var(--bo-prose); margin: 0 0 16px; max-width: 70ch; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.bo-footer { background: var(--bo-ink); color: var(--bo-footer-text); padding: 46px clamp(16px,5vw,72px); }
.bo-footer__inner { max-width: 1160px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.bo-footer__brand { display: flex; align-items: center; gap: 18px; }
.bo-footer__copy { max-width: 1160px; margin: 22px auto 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: var(--bo-footer-text); text-align: center; }
.bo-footer__logo { width: 112px; height: 112px; display: block; flex: none; }
.bo-footer__name { font-family: var(--osw); font-size: 17px; font-weight: 600; letter-spacing: .05em; color: var(--bo-footer-strong); display: block; }
.bo-footer__addr { font-size: 14.5px; display: block; margin-top: 3px; }
.bo-footer__right { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.bo-footer__phone { font-family: var(--osw); font-size: 24px; font-weight: 600; color: var(--bo-footer-strong); }
.bo-footer__tag { font-size: 14px; font-style: italic; }
.bo-footer a { color: var(--bo-footer-strong); }

/* Confirmation state (after submit) — reuse the card look on the sand band. */
.bo-formband .winterize-confirmation { background: var(--bo-card); border: 1px solid var(--bo-border-card); border-radius: 4px; padding: clamp(24px,4vw,44px); max-width: 760px; margin: 0 auto; }
.winterize-confirmation h2 { font-family: var(--osw); }

/* ── Phone (≤ 720px) ────────────────────────────────────────────────────── */
@media (max-width: 720px) {
  .bo-topbar { flex-wrap: wrap; gap: 12px 20px; padding: 14px 18px; }
  .bo-topbar__logo { width: 50px; height: 50px; }
  .bo-topbar__name { font-size: 16px; }
  .bo-topbar__right { gap: 14px; }
  .bo-topbar__phone { font-size: 19px; }
  .bo-topbar__area { display: none; }
  /* Hero: photo becomes a band across the top; copy below on paper. */
  .bo-hero { background: var(--bo-paper); }
  .bo-hero__photo { position: static; width: 100%; height: 220px; object-position: left 55%; }
  .bo-hero__fade { display: none; }
  .bo-hero__copy { margin-left: 0; padding: 22px 18px 26px; }
  .bo-hero__h1 { font-size: 38px; }
  .bo-grid-2, .bo-grid-2-1, .bo-next__grid { grid-template-columns: 1fr; }
  .bo-detail__inner { grid-template-columns: 1fr; gap: 8px; }
  .bo-detail__head { padding-top: 0; }
  .bo-footer__inner { flex-direction: column; align-items: flex-start; }
  .bo-footer__right { align-items: flex-start; }
  .bo-form-card .winterize-submit { width: 100%; }
  /* reCAPTCHA v2 is a fixed 302px widget — scale it to fit narrow phones and
     tighten the CAPTCHA fieldset so nothing runs off the right edge. */
  .bo-winterize fieldset.captcha { max-width: 100%; box-sizing: border-box; }
  .bo-winterize .captcha__element,
  .bo-winterize .g-recaptcha { max-width: 100%; overflow: hidden; }
  .bo-winterize .g-recaptcha { transform: scale(0.9); transform-origin: 0 0; height: 71px; }
}
@media (max-width: 360px) {
  .bo-winterize .g-recaptcha { transform: scale(0.78); transform-origin: 0 0; height: 62px; }
}
