/* ================================================================
   Wilson & Farr: phone and touch layer (from the Nov 28 2026 site audit)
   Loaded after wf-premium.css on every page. Requires js/wf-phone.js.
   1. Quote bar (phones) and header quote button (768px to 1180px)
   2. Contact page: form first (phones)
   3. Long sections fold to a preview with a Show all button (phones)
   4. Services showcase: compact rows (phones)
   5. Tap targets: 44px on phones, tablets and any touch screen
   6. Small labels: 12px minimum at every width
================================================================ */

/* ── 1. Quote bar ── */
.wfp-bar { display: none; }
.nav-quote { display: none; }
@media (max-width: 767px) {
  .wfp-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 180;
    display: flex; gap: 10px; align-items: stretch;
    padding: 10px 14px; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(1,1,1,.96); border-top: 1px solid var(--dark-border);
    transform: translateY(110%); transition: transform .32s cubic-bezier(.22,1,.36,1);
  }
  .wfp-bar.is-up { transform: none; }
  .wfp-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; border-radius: 4px; text-decoration: none;
    font-size: 15px; font-weight: 700; letter-spacing: .02em;
  }
  .wfp-bar .wfp-quote { flex: 1 1 auto; background: var(--green); color: var(--black); }
  .wfp-bar .wfp-call { display: none; flex: 0 0 auto; padding: 0 18px; color: var(--white); border: 1px solid rgba(255,255,255,.32); }
  .wfp-bar .wfp-call.is-open { display: flex; }
  .wfp-bar .wfp-call svg { width: 20px; height: 20px; fill: none; stroke: var(--green); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
  .wfp-bar a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
  body.wfp-has-bar footer { padding-bottom: 104px; }
}
@media (prefers-reduced-motion: reduce) { .wfp-bar { transition: none; } }

/* Tablets and small laptops (menu collapsed): a quote button beside the menu icon */
@media (min-width: 768px) and (max-width: 1180px) {
  .nav-quote {
    display: inline-flex; align-items: center; margin-left: auto; margin-right: 10px;
    min-height: 40px; padding: 0 18px; border-radius: 4px;
    background: var(--green); color: var(--black) !important;
    font-size: 13px; font-weight: 700; letter-spacing: .03em; text-decoration: none;
  }
  .nav-quote + .nav-call.is-open { margin-left: 0; }
}

@media (max-width: 767px) {

  /* ── 2. Contact page: the form comes first ── */
  .contact-layout .form-card { order: -1; scroll-margin-top: 84px; }
  .wfp-contact .page-hero { padding: 30px 24px 26px; }
  .wfp-contact .page-hero > img { height: 40px !important; margin-bottom: 12px !important; }
  .wfp-contact .page-hero h1 { margin-bottom: 12px; }
  .wfp-contact .page-hero p { font-size: 16px; }
  .wfp-contact .divider { display: none; }
  .wfp-contact .page-hero + .divider + .section { padding-top: 8px; }

  /* ── 3. Long sections fold to a preview with a button (all text stays in the page) ── */
  .wfp-fold { position: relative; max-height: 760px; overflow: hidden; }
  .wfp-fold::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 130px; pointer-events: none;
    background: linear-gradient(rgba(1,1,1,0), var(--wfp-fade, #010101));
  }
  .wfp-fold.is-open { max-height: none; overflow: visible; }
  .wfp-fold.is-open::after { display: none; }
  .wfp-more {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; min-height: 48px; margin-top: 14px; padding: 0 16px;
    background: transparent; color: var(--white); cursor: pointer;
    border: 1px solid rgba(255,255,255,.3); border-radius: 4px;
    font-family: var(--mono, inherit); font-size: 12px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  }
  .wfp-more::after { content: "+"; color: var(--green); font-size: 16px; letter-spacing: 0; }
  .wfp-more[aria-expanded="true"]::after { content: "\2212"; }
  .wfp-more:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
  section.wfp-folded { padding-top: 56px !important; padding-bottom: 56px !important; }

  /* ── 4. Services showcase: compact rows under the pinned photo ── */
  .svp-item { padding: 15px 0 15px 18px; }
  .svp-item::before { top: 15px; bottom: 15px; }
  .svp-item .svp-num { margin-bottom: 4px; }
  .svp-item h3 { font-size: 21px; margin-bottom: 0; padding-right: 34px; }
  .svp-item p { display: none; }
  .svp-item .service-link { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); font-size: 0 !important; letter-spacing: 0 !important; }
  .svp-item .service-link::after { content: "\2192"; font-size: 20px; color: var(--green); }
  .svp-js .svp-item:not(.is-active) h3 { color: rgba(255,255,255,.82); }
  .svp-js .svp-item:not(.is-active) .service-link { opacity: 1; }

  /* Footer link lists in two columns, so taller rows do not lengthen the footer */
  .footer-grid > .footer-col:nth-child(2), .footer-grid > .footer-col:nth-child(3) { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .footer-grid > .footer-col:nth-child(2) > :first-child, .footer-grid > .footer-col:nth-child(3) > :first-child { grid-column: 1 / -1; }

  /* Phone-only type adjustments */
  .wf-note-t, .wf-note-hd .wf-note-no, .section-label, .tour-kicker { letter-spacing: .14em !important; }
  .nav-logo-sub { font-size: 11px !important; letter-spacing: .14em !important; }
  .hero-eyebrow { font-size: 11px !important; letter-spacing: .04em !important; gap: 7px !important; }

  /* Top progress line off on phones */
  #wfm-progress { display: none !important; }
}

/* ── 5. Tap targets: phones, tablets (menu collapsed) and any touch screen ── */
@media (max-width: 1180px), (pointer: coarse) {
  .footer-col a { display: flex; align-items: center; min-height: 44px; margin-bottom: 0; line-height: 1.3; }
  .footer-col h3, .footer-col h4 { margin-bottom: 6px; }
  .footer-social { gap: 4px; margin-left: -12px; }
  .footer-social a { width: 44px; height: 44px; justify-content: center; }
  .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer-badges { gap: 4px; flex-wrap: wrap; }
  .area-pill, .areas-band a { min-height: 44px; display: inline-flex; align-items: center; }
  .csp-promo-pill { min-height: 44px; }
  .contact-detail-text a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ── 6. Small labels: nothing under 12px, at every width ── */
.section-label, .tour-kicker, .svp-num, .service-link, .wf-q-count, .svp-count,
.wf-note-hd .wf-note-no, .wf-note-t, .wf-q-src, .svp-fig, .wf-fig,
.hero-kicker, .footer-col h4, .page-hero-eyebrow,
.wf-award [class*="cv-"], .wf-award small, .wf-award a, .wf-award-go, .wf-tier em,
.footer-badges a, .footer-badges span, .footer-badge, .tour-chip, .photo-optional, .wf-legal,
.distinction-label, .vinyl-tag, .sa-kicker, .ref-avoid-h, .csp-promo-k, .mm-mono, .mm-tag, .tos-toc-hd, .tos-no, .tos-top { font-size: 12px !important; }
.wf-q-stars { font-size: 12px; }

/* The word-by-word paragraph reveal is retired everywhere (wf-motion.js no longer builds it) */
.wfm [data-fx-words] .fw { color: inherit !important; transition: none !important; }

/* ── 7. Header text over photos and video (Nov 28 2026): brighter text with a soft shadow, every width.
      Applies to every .hero with a photo or video behind it; plain black page headers are untouched.
      The Clear Season Pass header keeps its own treatment. ── */
.hero:not(.csp-hero) .hero-subtitle { color: #f2f2f2 !important; }
.hero:not(.csp-hero) .hero-title .hero-kicker { color: #dedede !important; }
.hero:not(.csp-hero) .hero-eyebrow { color: #f2f2f2 !important; }
.hero:not(.csp-hero) .hero-subtitle, .hero:not(.csp-hero) .hero-kicker, .hero:not(.csp-hero) .hero-eyebrow { text-shadow: 0 1px 2px rgba(0,0,0,.8), 0 0 16px rgba(0,0,0,.6); }
.hero:not(.csp-hero) .hero-title .r { text-shadow: 0 2px 20px rgba(0,0,0,.5); }
/* Homepage only (its photo and video are the lightest): a soft dark fade behind the text side */
.hero:has(> .hero-still)::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.50) 0%, rgba(0,0,0,.36) 50%, rgba(0,0,0,.10) 100%); }
@media (min-width: 768px) { .hero:has(> .hero-still)::after { background: linear-gradient(90deg, rgba(0,0,0,.50) 0%, rgba(0,0,0,.30) 38%, rgba(0,0,0,0) 62%); } }
