/* JXS Ranch — shared styles.
   Most layout lives in inline styles carried over from the approved design.
   This file adds base rules, accessibility, and the phone layout
   (!important is needed to override the inline desktop sizes). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #F4EFE6; }
a { color: #7A5A28; }
a:hover { color: #5C431B; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid #C9A063; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #C9A063; color: #14160F; padding: 10px 16px; border-radius: 4px; font: 600 16px Inter, system-ui, sans-serif; }

/* hover feedback on buttons */
a[style*="background: #C9A063"]:hover, button[type="submit"]:hover { filter: brightness(1.08); }
a[style*="border: 1.5px solid"]:hover { background: rgba(201,160,99,.14) !important; }

/* FAQ disclosure marker */
details summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; font-size: 26px; font-weight: 400; color: #7A5A28; line-height: 1; }
details[open] summary::after { content: "–"; }

/* quote form */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
#quote-form input:focus, #quote-form select:focus, #quote-form textarea:focus { outline: 2px solid #C9A063; outline-offset: 1px; border-color: #7A5A28 !important; }
#quote-form [aria-invalid="true"] { border-color: #8C3B2A !important; }
#quote-form button[disabled] { opacity: .6; cursor: wait; }
#quote-status.ok { color: #3F6B3A; font-weight: 600; }
#quote-status.err { color: #8C3B2A; font-weight: 600; }

/* phone quick-action bar (shown on small screens only) */
.quickbar { display: none; }

/* ---------- tablet ---------- */
@media (max-width: 960px) {
  header nav[aria-label="Main"] { display: none !important; }
}

/* ---------- phone ---------- */
@media (max-width: 720px) {
  body { padding-bottom: 84px; }
  .quickbar {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: #14160F; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 20px rgba(0,0,0,.25); font: 600 17px Inter, system-ui, sans-serif;
  }
  .quickbar a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: 4px; text-decoration: none; }
  .qb-email { border: 1.5px solid #E3C48F; color: #F4EFE6; }
  .qb-quote { background: #C9A063; color: #14160F; }

  header img { height: 52px !important; }
  header a[data-mail] { display: none !important; }
  html { scroll-padding-top: 84px; }

  h1 { font-size: 42px !important; }
  h2 { font-size: 34px !important; }
  #book h2 { font-size: 40px !important; }

  [style*="padding: 104px"], [style*="padding: 96px"], [style*="padding: 112px"], [style*="padding: 88px"] {
    padding-top: 64px !important; padding-bottom: 64px !important;
  }
  [style*="padding: 104px"], [style*="padding: 96px"], [style*="padding: 112px"], [style*="padding: 88px"], [style*="padding: 56px 24px"], [style*="padding: 40px 24px"] {
    padding-left: 20px !important; padding-right: 20px !important;
  }
  [style*="gap: 56px"] { gap: 36px !important; }

  .jxs-hero { min-height: 560px !important; }
  .jxs-hero > div { padding: 96px 20px 56px !important; }
  .jxs-hero p[style*="font-size: 20px"] { font-size: 18px !important; }

  /* trust strip under the hero: 2 per row */
  [style*="minmax(220px"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 18px 16px !important; padding: 24px 20px !important; }
  [style*="minmax(220px"] p[style*="font-size: 30px"] { font-size: 22px !important; line-height: 1.15; }
  [style*="minmax(220px"] p[style*="font-size: 15px"] { font-size: 13px !important; line-height: 1.4; }

  /* single-column cards on phones */
  [style*="minmax(440px"], [style*="minmax(340px"], [style*="minmax(320px"], [style*="minmax(300px"], [style*="minmax(280px"], [style*="minmax(260px"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  article[style*="padding: 36px 32px"], [style*="padding: 32px;"], [style*="padding: 36px;"] { padding: 24px !important; }
  #quote-form { padding: 22px !important; grid-template-columns: minmax(0, 1fr) !important; }

  /* recent-hunts photo grid */
  #field [style*="repeat(4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; grid-auto-rows: 170px !important; }
  #field figure { grid-row: auto !important; grid-column: auto !important; }
  #field figure:first-child { grid-column: 1 / -1 !important; grid-row: span 2 !important; }

  /* tall photos */
  #lodge img[style*="height: 340px"] { height: 220px !important; }
  #lodge img[style*="height: 266px"] { height: 150px !important; }
  #story a[href*="youtube"] { height: 300px !important; }
  #dining img[style*="height: 520px"] { height: 300px !important; max-width: none !important; }
  #dining [style*="minmax(260px"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  #dining [style*="minmax(260px"] img { height: 140px !important; }

  /* rate tables: keep prices from wrapping awkwardly */
  td[style*="text-align: right"] { padding-left: 12px !important; }
}
