/* sites.css — shared parts of the BilluBnB family sub-sites (v1.3.0) + the home page "family" section.
   Phone-first (base rules = 390 px). One sub-site's own look goes in static/css/sites/<label>.css, loaded from its template's
   {% block head %}. Reuses the tokens; never hard-codes a brand colour except through them. */

@layer sections {
  /* ---- the sub-site bar under the main header ------------------------------------------------------------------- */
  .sitebar { background: var(--sage-deep); color: var(--on-deep); position: relative; z-index: 2; }
  .sitebar__inner { display: flex; align-items: center; gap: var(--space-3) var(--space-5); min-height: 50px; flex-wrap: wrap; padding-block: .35rem; }
  .sitebar__name { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-display); font-variation-settings: "SOFT" 100;
    font-weight: 750; font-size: 1.05rem; color: var(--on-deep); text-decoration: none; }
  .sitebar__name .i { width: 20px; height: 20px; color: var(--sun); }
  .sitebar__nav { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
  .sitebar__nav::-webkit-scrollbar { display: none; }
  .sitebar__nav a { display: inline-flex; align-items: center; min-height: 40px; padding: .2rem .8rem; border-radius: var(--r-pill);
    color: var(--on-deep-2); font-weight: 700; font-size: .95rem; text-decoration: none; white-space: nowrap; }
  .sitebar__nav a:hover, .sitebar__nav a[aria-current="page"] { background: color-mix(in srgb, var(--on-deep) 12%, transparent); color: var(--on-deep); }
  .submenu--family ul { min-width: 360px; }
  .sitebar__name { min-height: 44px; }
  @media (max-width: 479px) { .sitebar__nav { flex-basis: 100%; } }      /* own row on small phones: no re-wrap (CLS) after the font swap */

  /* ---- sub-site hero ------------------------------------------------------------------------------------------------ */
  .site-hero { padding: var(--space-7) 0 calc(var(--space-6) + var(--sheet-r)); background:
      radial-gradient(120% 80% at 85% 0%, color-mix(in srgb, var(--sun) 26%, transparent), transparent 60%), var(--paper); }
  .site-hero__inner { display: grid; gap: var(--space-6); align-items: center; }
  .site-hero__kicker { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 var(--space-3); font-weight: 800; font-size: .95rem;
    color: var(--ink-2); letter-spacing: .01em; }
  .pebble--sm { width: 34px; height: 34px; } .pebble--sm .i { width: 18px; height: 18px; }
  .site-hero__title { font-size: clamp(2.2rem, 7vw + .6rem, 4.2rem); line-height: 1.02; margin: 0; text-wrap: balance; }
  .site-hero__title em { font-style: normal; background: linear-gradient(transparent 58%, color-mix(in srgb, var(--sun) 70%, transparent) 58% 92%, transparent 92%);
    padding-inline: .06em; }
  .site-hero__lead { font-size: var(--step-1); line-height: 1.45; color: var(--ink-2); margin: var(--space-4) 0 0; max-width: 36rem; }
  .site-hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
  .site-hero__art { position: relative; justify-self: center; width: min(100%, 420px); }
  @media (min-width: 900px) {
    .site-hero { padding: var(--space-8) 0 calc(var(--space-7) + var(--sheet-r)); }   /* the next .sheet overlaps by --sheet-r */
    .site-hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--space-8); }
  }

  /* ---- promises strip --------------------------------------------------------------------------------------------- */
  .promises { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
  .promise { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--r-md); background: var(--paper-3);
    border: 1px solid var(--line); }
  .promise strong { display: block; font-size: 1.02rem; }
  .promise p { margin: .2rem 0 0; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
  @media (min-width: 720px) { .promises { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } }

  /* ---- price / offer cards (vet, groom, taxi, talk) ---------------------------------------------------------------- */
  .offers { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6) var(--space-4); padding-top: 18px; }
  @media (min-width: 720px) { .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 1100px) { .offers--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  .offer { --ear-bg: var(--paper-3); display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-5) var(--space-4) var(--space-4); height: 100%; }
  .offer--combo { --ear-bg: var(--paper-2); }
  .offer__head { display: flex; gap: var(--space-3); align-items: flex-start; }
  .offer__head > div { flex: 1; min-width: 0; }
  .offer__title { font-size: 1.25rem; line-height: 1.2; margin: 0; }
  .offer__when { display: flex; align-items: center; gap: .35rem; margin: .3rem 0 0; font-size: .9rem; font-weight: 700; color: var(--ink-2); }
  .offer__when .i { width: 15px; height: 15px; }
  .offer__badge { align-self: flex-start; white-space: nowrap; }
  .offer__line { margin: 0; font-weight: 700; font-size: 1.02rem; line-height: 1.4; }
  .offer__desc { font-size: .97rem; color: var(--ink-2); }
  .offer__inc { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .95rem; }
  .offer__inc li { display: flex; gap: .45rem; align-items: flex-start; }
  .offer__inc .i { width: 18px; height: 18px; flex: none; margin-top: .12rem; color: var(--sage-deep); stroke-width: 2.4; }
  .offer__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
    padding-top: var(--space-3); border-top: 1px dashed var(--line-strong); }
  .offer__price { margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; }
  .offer__price strong { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-size: 1.6rem; font-weight: 800; line-height: 1; }
  .offer__price s { color: var(--ink-3); font-weight: 700; }
  .offer__from { font-size: .85rem; font-weight: 800; color: var(--ink-2); text-transform: lowercase; }
  .offer__ask { font-size: 1.25rem !important; }
  .offer__dur { display: inline-flex; align-items: center; gap: .25rem; font-size: .88rem; font-weight: 700; color: var(--ink-2); }
  .offer__dur .i { width: 15px; height: 15px; }
  .offer__pick.is-picked { background: var(--sun-soft); }

  /* ---- the shared "ask" form card ---------------------------------------------------------------------------------- */
  .ask[data-ask] { position: relative; top: auto; }                   /* sections.css styles the Cat Talk form with the same class names */
  .ask[data-ask] > .ask__head { display: block; }
  .ask { --ear-bg: var(--paper-3); background: var(--paper-3); padding: var(--space-5) var(--space-4); display: grid; gap: var(--space-4); border-radius: var(--r-lg); }
  .ask__head h3 { margin: 0; font-size: var(--step-2); line-height: 1.15; }
  .ask__head p { margin: var(--space-2) 0 0; color: var(--ink-2); }
  .ask .fgrid { grid-template-columns: minmax(0, 1fr); }
  .ask__actions { display: grid; gap: var(--space-3); }
  .ask__note { margin: 0; color: var(--ink-2); }
  .ask__alert { margin: 0 0 var(--space-3); padding: .7rem .9rem; border-radius: var(--r-sm); background: #FFF4F2; color: var(--err); font-weight: 750; }
  .ask__done { display: grid; gap: var(--space-3); justify-items: start; }
  .ask__done h3 { margin: 0; }
  .btn--ghost-wa { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
  .btn--ghost-wa .i { color: var(--wa); }
  @media (min-width: 640px) {
    .ask { padding: var(--space-6); }
    .ask .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ask .fgrid__full, .ask .chipset { grid-column: 1 / -1; }
    .ask__actions { grid-template-columns: 1fr 1fr; }
  }
  .field.glow, .chipset.glow { animation: bb-glow 2.4s ease-in-out; border-radius: var(--r-sm); }
  @keyframes bb-glow { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 15%, 70% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--sun) 60%, transparent); } }
  @media (prefers-reduced-motion: reduce) { .field.glow, .chipset.glow { animation: none; outline: 3px solid var(--sun); } }

  /* ---- honest note -------------------------------------------------------------------------------------------------- */
  .honest { display: flex; gap: .6rem; align-items: flex-start; margin: 0; padding: .8rem 1rem; border-radius: var(--r-md); background: var(--sage-tint);
    font-size: .95rem; font-weight: 650; line-height: 1.45; }
  .honest .i { width: 20px; height: 20px; flex: none; margin-top: .1rem; color: var(--sage-deep); }

  /* ---- the BilluBnB family (home section + "more from the family") ---------------------------------------------- */
  .family-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
  .fam__a { position: relative; display: flex; flex-direction: column; gap: .45rem; height: 100%; padding: var(--space-4); border-radius: var(--r-lg);
    background: var(--paper-3); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1);
    transition: transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-1); }
  .fam__a:hover { transform: translateY(-3px) rotate(-.4deg); box-shadow: var(--shadow-2); border-color: var(--line-strong); }
  .fam__a:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
  .fam .pebble { width: 46px; height: 46px; } .fam .pebble .i { width: 23px; height: 23px; }
  .fam__name { margin: .2rem 0 0; font-size: 1.22rem; line-height: 1.15; }
  .fam__line { margin: 0; font-size: .95rem; color: var(--ink-2); line-height: 1.45; flex: 1; }
  .fam__host { font-family: var(--font-mono); font-size: .78rem; font-weight: 600; color: var(--ink-3); letter-spacing: -.01em; }
  .fam__cta { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; font-size: .95rem; }
  .fam__cta .i { width: 18px; height: 18px; transition: transform var(--dur-2) var(--ease-out); }
  .fam__a:hover .fam__cta .i { transform: translateX(3px); }
  .fam--shop .pebble, .fam--merch .pebble { background: var(--blush-soft); }
  .fam--vet .pebble, .fam--groom .pebble, .fam--taxi .pebble { background: var(--sage-tint); }
  .fam--toofan .pebble, .fam--tejas .pebble { background: var(--sun); }
  @media (min-width: 640px) { .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (min-width: 900px) { .family-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
  @media (min-width: 1200px) { .family-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  @media (prefers-reduced-motion: reduce) { .fam__a, .fam__a:hover { transition: none; transform: none; } }

  /* ---- "more from the family" band at the foot of every sub-site --------------------------------------------------- */
  .family-band { background: var(--paper-2); }
}
