/* ==========================================================================
   bento.css — CSS Grid layouts with grid-template-areas.
   Mobile: 1–2 columns (never cramped) · Tablet: 2–3 · Desktop: 4–6.
   Tiles are assigned to areas by the .a-* classes.
   ========================================================================== */
.bento { display: grid; gap: var(--gap); grid-template-columns: 1fr; align-items: stretch; }
.bento > * { min-width: 0; }

/* ---------- Home hero bento: one wide hero card, then three tiles ---------- */
.bento--home { grid-template-columns: repeat(2, 1fr);
  grid-template-areas: "hero hero" "tamil open" "steps steps"; }
.a-hero { grid-area: hero; } .a-tamil { grid-area: tamil; }
.a-open { grid-area: open; } .a-steps { grid-area: steps; }
@media (min-width: 1000px) {
  .bento--home { grid-template-columns: repeat(6, 1fr);
    grid-template-areas: "hero hero hero hero hero hero" "tamil tamil tamil open open open" "steps steps steps steps steps steps"; }
}

/* ---------- Treatments bento (full + preview) ---------- */
.bento--tr, .bento--tr-prev { grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
.tr-acu { grid-column: 1 / -1; }
.tr-all { grid-column: 1 / -1; }
@media (min-width: 640px) {
  .bento--tr, .bento--tr-prev { grid-template-columns: repeat(3, 1fr); }
  .tr-acu { grid-column: span 2; grid-row: span 2; }
  .tr-all { grid-column: span 1; }
  .bento--tr .tr-tile:last-child { grid-column: span 2; }
}
@media (min-width: 1000px) {
  .bento--tr, .bento--tr-prev { grid-template-columns: repeat(4, 1fr); }
  .bento--tr .tr-tile:nth-last-child(-n+2) { grid-column: span 2; }
  .tr-all { grid-column: 1 / -1; }
}

/* ---------- Health problems: six group tiles ---------- */
.bento--pg { grid-template-columns: 1fr; }
@media (min-width: 640px) { .bento--pg { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento--pg { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Gallery: bento masonry ---------- */
.bento--gal { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; }
.g-tile { padding: 0; cursor: zoom-in; border: 1px solid var(--glass-border); background: var(--mist); }
.g-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.g-tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.g-tile:nth-child(6) { grid-column: span 2; }
@media (hover: hover) { .g-tile:hover img { transform: scale(1.05); } }
@media (min-width: 800px) { .bento--gal { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; } }

/* ---------- FAQ: accordion tiles ---------- */
.bento--faq { grid-template-columns: 1fr; align-items: start; }
@media (min-width: 800px) { .bento--faq { grid-template-columns: repeat(2, 1fr); } }

/* ---------- About ---------- */
.bento--about { grid-template-areas: "photo" "who" "stat" "ph1" "ph2" "ph3" "clinic" "hours" "local" "map"; }
.bento--about .ab-photo { grid-area: photo; } .ab-who { grid-area: who; } .ab-stat { grid-area: stat; }
.ab-ph1 { grid-area: ph1; } .ab-ph2 { grid-area: ph2; } .ab-ph3 { grid-area: ph3; }
.ab-clinic { grid-area: clinic; } .ab-local { grid-area: local; } .ab-hours { grid-area: hours; } .ab-map { grid-area: map; }
@media (min-width: 640px) {
  .bento--about { grid-template-columns: repeat(2, 1fr); grid-template-areas: "photo who" "photo stat" "ph1 ph2" "ph3 clinic" "hours hours" "local local" "map map"; }
}
@media (min-width: 1000px) {
  .bento--about { grid-template-columns: repeat(6, 1fr);
    grid-template-areas: "photo photo who who who who" "photo photo stat stat stat stat" "ph1 ph1 ph2 ph2 ph3 ph3" "clinic clinic clinic hours hours hours" "local local local map map map"; }
}

/* ---------- Contact ---------- */
.bento--contact { grid-template-areas: "addr" "phone" "mail" "hours" "map" "form"; }
.ct-addr { grid-area: addr; } .ct-phone { grid-area: phone; } .ct-mail { grid-area: mail; }
.ct-hours { grid-area: hours; } .ct-map { grid-area: map; } .ct-form { grid-area: form; }
@media (min-width: 640px) {
  .bento--contact { grid-template-columns: repeat(2, 1fr); grid-template-areas: "addr phone" "mail hours" "map map" "form form"; }
}
@media (min-width: 1000px) {
  .bento--contact { grid-template-columns: repeat(6, 1fr);
    grid-template-areas: "addr addr phone phone mail mail" "map map map map hours hours" "map map map map form form"; }
}

/* ---------- Booking ---------- */
.booking-grid { display: grid; gap: var(--gap); align-items: start; }
@media (min-width: 1000px) {
  .booking-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); }
  .booking-aside { position: sticky; top: calc(var(--header-h) + 12px); order: 2; }
}

/* ---------- Testimonials / generic row ---------- */
.bento--3 { grid-template-columns: 1fr; }
@media (min-width: 800px) { .bento--3 { grid-template-columns: repeat(3, 1fr); } }

/* grid items must be allowed to shrink, or the scrolling date strip stretches the whole column */
.booking-grid { grid-template-columns: minmax(0, 1fr); }
.booking-grid > * { min-width: 0; }
@media (min-width: 1000px) { .booking-grid { grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); } }
