/* 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); }

  /* ---- v1.4.0: "Everything we do" strip (home, under the trust strip) ------------------------------------------------ */
  .care { padding: var(--space-5) 0 calc(var(--space-6) + var(--sheet-r)); background: var(--paper); }   /* the next .sheet overlaps by --sheet-r */
  .care__title { display: flex; align-items: center; gap: .5rem; margin: 0 0 var(--space-3); font-size: 1.05rem; font-family: var(--font-text);
    font-weight: 800; letter-spacing: .01em; color: var(--ink-2); }
  .care__title .i { width: 18px; height: 18px; color: var(--sun-deep); }
  .care__grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  @media (min-width: 900px) { .care__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }     /* 9 tiles = 3 × 3 */
  .care__a { display: flex; align-items: center; gap: .75rem; min-height: 64px; height: 100%; padding: .7rem .8rem; border-radius: var(--r-md);
    background: var(--paper-3); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
    transition: border-color var(--dur-1), transform var(--dur-2) var(--ease-out), box-shadow var(--dur-2); }
  .care__a:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-1); }
  .care__a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
  .care__txt { display: grid; gap: .1rem; flex: 1; min-width: 0; }
  .care__txt strong { font-size: 1rem; line-height: 1.2; }
  .care__txt span { font-size: .88rem; color: var(--ink-2); line-height: 1.3; }
  .care__go { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
  .care__item--dayout .care__a { background: var(--sun-soft); border-color: color-mix(in srgb, var(--sun) 55%, var(--line)); }
  .care__item--plants .pebble { background: #FDE2DD; }
  @media (max-width: 719px) { .swipe--care { --sw: min(72%, 280px); } .care { padding-top: var(--space-4); } }
  @media (prefers-reduced-motion: reduce) { .care__a, .care__a:hover { transition: none; transform: none; } }

  /* the "next step" link on a question card / service page (a sub-site or the day-out page) */
  .link-more--next { display: inline-flex; align-items: center; gap: .4rem; color: var(--ink); font-weight: 800; }
  .link-more--next .i { width: 18px; height: 18px; color: var(--sun-deep); }
  .svc-hero__next { margin-top: var(--space-3); }

  /* ---- v1.4.0: Day out (home section + /day-out) ------------------------------------------------------------------ */
  .dayout { background: linear-gradient(180deg, color-mix(in srgb, var(--sun-soft) 70%, var(--paper-2)), var(--paper-2) 70%); }
  .dayout__grid { display: grid; gap: var(--space-6); align-items: start; padding-top: 18px; }
  .dayout__grid > * { min-width: 0; }            /* grid items default to min-width:auto — a swipe row inside would widen the page */
  .dayout__tejas { --ear-bg: var(--paper-3); background: var(--paper-3); border-radius: var(--r-lg); padding: var(--space-5) var(--space-4);
    display: grid; gap: var(--space-4); }
  .dayout__photo { --ar-w: 4; --ar-h: 5; width: min(100%, 220px); justify-self: center; }
  .dayout__story p { margin: 0 0 var(--space-3); line-height: 1.6; }
  .dayout__chips { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
  .dayout__chips li { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: var(--r-pill);
    background: var(--sun-soft); font-weight: 750; font-size: .92rem; }
  .dayout__chips .i { width: 16px; height: 16px; }
  .dayout__price { font-size: .95rem; color: var(--ink-2); }
  .dayout__price strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
  .dayout__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); }
  .dq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
  .dq { margin: 0; height: 100%; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); border-radius: var(--r-md);
    background: var(--paper-3); border: 1px solid var(--line); }
  .dq__q { margin: 0; position: relative; }
  .dq__q p { margin: 0; line-height: 1.6; font-size: 1rem; }
  .dq__mark { width: 22px; height: 22px; color: var(--sun-deep); margin-bottom: .2rem; }
  .dq__by { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: .88rem; color: var(--ink-2); }
  .dq__more { font-weight: 750; color: var(--ink); }
  mark.hl { background: linear-gradient(transparent 52%, color-mix(in srgb, var(--sun) 62%, transparent) 52% 94%, transparent 94%);
    color: inherit; padding-inline: .05em; font-weight: 700; }
  @media (min-width: 900px) {
    .dayout__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
    .dayout__tejas { grid-template-columns: 200px minmax(0, 1fr); align-items: start; padding: var(--space-6); }
    .dayout__photo { width: 100%; }
    .dq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
  @media (max-width: 719px) { .swipe--dq { --sw: min(86%, 340px); } }
  .is-dayout .pair { grid-template-columns: minmax(0, 1fr); }
  .stay-type .hint { margin-top: .3rem; }

  /* /day-out page */
  .dayout-hero { display: grid; gap: var(--space-5); align-items: center; }
  .dayout-hero__copy h1 { text-wrap: balance; }
  .dayout-hero > * { min-width: 0; }
  .dayout-hero__fig { margin: 0; justify-self: center; width: min(78%, 340px); }
  .dayout-hero__photo { --ar-w: 4; --ar-h: 5; width: 100%; }
  .dayout-hero__fig figcaption { margin-top: .7rem; text-align: center; font-size: .88rem; color: var(--ink-2); }
  .dayout-steps { list-style: none; margin: 0; padding: 18px 0 0; display: grid; gap: var(--space-3); counter-reset: none; }
  .dayout-step { 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); }
  .dayout-step h3 { margin: 0 0 .25rem; font-size: 1.15rem; }
  .dayout-step p { margin: 0; color: var(--ink-2); line-height: 1.5; }
  .dayout-step__when { font-size: .8rem !important; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3) !important; margin-bottom: .2rem !important; }
  .dayout-photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-top: var(--space-6); }
  .dayout-photos .arch { --ar-w: 1; --ar-h: 1; margin: 0; }
  @media (min-width: 760px) { .dayout-steps { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } .dayout-photos { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
  @media (min-width: 900px) { .dayout-hero { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); } .dq-list--page { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

  /* header Services menu: the service pages + a "More care" column (day out, vet, toxic plants, groom, taxi) side by side */
  @media (hover: hover) { .has-sub:hover > .submenu:has(> .submenu__more) { display: flex; } }
  .has-sub.is-open > .submenu:has(> .submenu__more) { display: flex; }
  .submenu:has(> .submenu__more) { gap: .5rem; align-items: flex-start; }
  .submenu > .submenu__more { min-width: 270px; background: color-mix(in srgb, var(--sun-soft) 60%, var(--paper-3)); }
  .submenu > .submenu__more .pebble { background: var(--paper-3); }

  /* the FAQ grid column must not grow with its tab row (a 4th topic, "Day out", made it wider than a 320–390 px phone) */
  .faq-wrap > * { min-width: 0; }
}
