/* Everbright — phone layer (loads last). Phones are designed, not shrunk: three rules decide everything here.
   HIDE   what repeats something already on screen (call buttons, contact lines, long captions, extra bullets).
   TIGHTEN spacing and line counts, so the page reads as ~10 screens instead of 16.
   RESIZE  the header, hero and tap targets so the first screen shows the house and one clear action. */

.work__more, .form__morewrap, .s-short { display: none; }

@media (max-width: 639px) {

  /* ---------- header: compact, one-row top bar ---------- */
  :root { --bar-h: 38px; --head-row: 66px; }
  .topbar__in { flex-direction: row; justify-content: space-between; gap: 10px; text-align: left; }
  .topbar__serve { font-size: .64rem; letter-spacing: .09em; white-space: nowrap; }
  .topbar__serve i { margin: 0 .2em; }
  .topbar__links .topbar__mail { display: none; }                      /* the email is in the footer + form; the phone is the phone-first action */
  .topbar__links a { min-height: 38px; font-size: .82rem; }
  .brand__logo { width: 56px; height: 56px; }
  .header.is-stuck .header__in { min-height: 60px; }
  .burger { width: 48px; height: 48px; }

  /* ---------- hero: one action, bigger house ---------- */
  .hide-m { display: none; }
  .hero .hero__cta .btn--ghost, .phero .hero__cta .btn--ghost { display: none; }   /* the call button lives in the top bar and the sticky bar */
  .hero .hero__cta .btn--gold, .phero .hero__cta .btn--gold { width: 100%; }
  .hero__copy { padding-top: calc(var(--header-h) + 8px); }
  .hero__sub { font-size: 1rem; margin-top: 12px; }
  .hero__cta { margin-top: 18px; }
  .hero { padding-bottom: calc(max(100vw, 640px) * .5625 * .6 + 92px); }
  .hero__scene { bottom: 78px; }
  .picker { padding: 8px 0 10px; bottom: 10px; }
  .picker__label { font-size: .76rem; }

  /* ---------- rhythm: shorter sections, calmer headings ---------- */
  main > .section, #services, #permanent, #looks, #why { padding-block: 50px; }
  .head { margin-bottom: 24px; }
  .eyebrow { font-size: .75rem; letter-spacing: .18em; margin-bottom: .8rem; }
  h2 { font-size: clamp(1.85rem, 8.2vw, 2.3rem); }
  .lede { font-size: 1rem; line-height: 1.55; }
  .roofline { --rh: 52px; }
  .strip-trust li { padding: 14px 12px; gap: 10px; font-size: .84rem; }
  .strip-trust svg { width: 22px; height: 22px; }
  .path .tag, .svc-perm .tag, .photo__tag { font-size: .75rem; }   /* nothing under 12px */
  .on-night::before, .on-night-2::before { animation: none; }   /* no always-on background animation on a battery */

  /* ---------- 01 two ways: description + link only (the bullets repeat the headline) ---------- */
  .path { min-height: 0; padding: 24px 22px; }
  .path ul { display: none; }
  .path h3 { font-size: 1.7rem; margin-bottom: 10px; }
  .path p { margin-bottom: 14px; }
  .path__lights { top: 16px; height: 34px; }

  /* ---------- 02 services ---------- */
  .svc, .svc__lead { gap: 10px; }
  .card--lead { min-height: 0; padding: 82px 20px 22px; }
  .card--lead .no { display: none; }
  .card--lead h3 { font-size: 1.6rem; margin-bottom: 8px; }
  .svc__list { margin-top: 6px; }
  .svc__item { padding: 16px 0; gap: 2px 14px; grid-template-columns: 24px 1fr; }
  .svc__item h3 { font-size: 1.15rem; }
  .svc__item p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .9rem; }

  /* ---------- permanent statement: titles only ---------- */
  .perm--solo .ticks { margin: 20px auto 22px; gap: 10px; }
  .perm--solo .ticks span { display: none; }
  .perm--solo .ticks li { align-items: center; }
  .perm--solo .ticks svg { margin-top: 0; }
  .perm--solo .btn { width: 100%; }

  /* ---------- 03 looks ---------- */
  .styles { gap: 10px; }
  .style { padding: 14px; }
  .style p { font-size: .84rem; }
  .photo figcaption { font-size: .8rem; padding: 26px 14px 12px; }

  /* ---------- 04 our work: five photos, the rest on request ---------- */
  .work { gap: 8px; }
  .work__item:nth-child(n + 6) { display: none; }
  .work.is-open .work__item:nth-child(n + 6) { display: block; }
  .work__more { display: block; margin: 16px 0 0; }
  .work__more .btn, .work__cta .btn { width: 100%; }
  .work__cta { margin-top: 12px; }
  .work__zoom { display: none; }                         /* hover-only marker */

  /* ---------- 05 why ---------- */
  .reasons .reason { grid-template-columns: 26px 1fr; gap: 4px 12px; padding: 18px 0; }
  .reason h3 { font-size: 1.25rem; }
  .reason p { font-size: .92rem; line-height: 1.5; }

  /* ---------- service area ---------- */
  .split { gap: 22px; }
  .areas { gap: 8px; }
  .areas li { min-height: 40px; padding: 0 15px; font-size: .9rem; }

  /* ---------- 06 faq ---------- */
  .faq { gap: 8px; }
  .faq summary { font-size: 1.08rem; padding: 14px 16px; min-height: 56px; }
  .faq .ans { padding: 0 16px 16px; font-size: .95rem; }

  /* ---------- free estimate: the form first, nothing repeated ---------- */
  .est { gap: 22px; }
  .est__copy .lede { font-size: .95rem; }
  .est__copy--after { order: 2; }                         /* on the Estimate page the form comes first, the explanation after it */
  .phero, .phero--xmas { padding-top: calc(var(--header-h) + 22px); padding-bottom: 34px; }
  .phero h1 { font-size: clamp(2.1rem, 9.5vw, 2.6rem); }
  .phero .lede { margin-top: 14px; }
  .crumbs { margin-bottom: 14px; }
  .est__facts { display: none; }                         /* phone + email are already one tap away in the top bar, sticky bar and footer */
  .form { padding: 20px 16px; }
  .form__grid { gap: 14px; }
  .field textarea { min-height: 92px; }
  .form .btn--lg { width: 100%; }
  .form__grid { grid-template-columns: 1fr 1fr; }          /* first + last name share a row */
  .form__grid .field--full, .form__grid .field:has(#f-phone), .form__grid .field:has(#f-email), .form__grid .field:has(#f-type) { grid-column: 1 / -1; }
  .form__morewrap { display: block; grid-column: 1 / -1; margin-top: -2px; }
  .form__more { width: 100%; min-height: 48px; border-radius: var(--r-s); border: 1px dashed var(--line-strong); background: transparent; color: var(--gold-hi); font: 600 .92rem/1 var(--f-body); cursor: pointer; }
  .form__grid .field--opt { display: none; }               /* optional fields stay out of the way until asked for */
  .form.show-more .field--opt { display: grid; }

  /* ---------- footer: contact + the pages that matter ---------- */
  .footer { padding-top: 34px; }
  .footer__grid { gap: 24px; }
  .footer__serve { display: none; }                      /* the towns are in the service-area section right above */
  .footer .brand__logo { width: 92px; height: 92px; }
  .footer p { max-width: none; font-size: .9rem; }
  .footer__grid > div:nth-child(2) ul { grid-template-columns: 1fr 1fr; gap: 0 12px; }   /* Explore links in two columns */
  .footer ul { gap: 0; }
  .footer ul a { min-height: 44px; }
  .footer .foot-h { margin-bottom: 8px; }
  .footer__bar { margin-top: 26px; font-size: .8rem; }
  .footer__legal a, .footer__terms { display: inline-flex; align-items: center; min-height: 44px; }
  .mbar .btn { font-size: .95rem; }
}

@media (max-width: 359px) {
  .s-long { display: none; }
  .s-short { display: inline; }                         /* "Serving MD · VA · DC" on the narrowest phones */
  .topbar__serve { letter-spacing: .06em; }
  h1 { font-size: 2.35rem; }
}
