/* Homepage "Show more" cards, collapsible panels and the business-app flagship cards.
   Hand-written, not a Mobirise export. Loaded by public/index.html with assets/theme/js/home-collapse.js.
   Panels are only hidden once the script has added .js-more to <html>, so without JavaScript every section shows. */

.js-more [data-more-panel]:not(.is-open) { display: none !important; }

.home-more-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 999px;
  background: #A33F21; color: #fff; font: 700 .95rem/1.2 "Montserrat", sans-serif; cursor: pointer; transition: background-color .15s ease; }
.home-more-btn::after { content: ""; width: 8px; height: 8px; margin-top: -4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .15s ease; }
.home-more-btn[aria-expanded="true"]::after { margin-top: 4px; transform: rotate(-135deg); }
.home-more-btn:hover { background: #87331a; }
.home-more-btn:focus-visible { outline: 3px solid #1F2024; outline-offset: 3px; }

/* "More work, services and background" band */
.home-more { background: #f7f7f7; padding: 56px 0 60px; }
.home-more h2 { margin: 6px 0 24px; font: 700 clamp(1.6rem, 3vw, 2.2rem)/1.2 "Montserrat", sans-serif; color: #1F2024; }
.home-more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.home-more-card { display: flex; flex-direction: column; align-items: flex-start; padding: 20px; background: #fff; border: 1px solid #e3e3e3; border-radius: 14px; }
.home-more-card h3 { margin: 0 0 6px; font: 700 1.08rem/1.3 "Montserrat", sans-serif; color: #1F2024; }
.home-more-card p { margin: 0 0 16px; color: #4a4d55; font-size: .94rem; line-height: 1.55; }
.home-more-card .home-more-btn { margin-top: auto; }

/* Business and AI apps: flagship cards and the toggle on the dark band */
.ai-flagships { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0 0 24px; }
.ai-flagship { display: flex; flex-direction: column; overflow: hidden; background: #253041; border: 1px solid rgba(255,255,255,.1); border-radius: 14px;
  color: rgba(255,255,255,.78); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.ai-flagship:hover, .ai-flagship:focus-visible { border-color: #ef7c7c; color: rgba(255,255,255,.85); text-decoration: none; transform: translateY(-2px); }
.ai-flagship:focus-visible { outline: 3px solid #ef7c7c; outline-offset: 3px; }
.ai-flagship img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: #fff; }
.ai-flagship .ai-app-status { margin: 16px 20px 8px; }
.ai-flagship h3 { margin: 0 20px 6px; color: #fff; font: 700 1.15rem/1.3 "Montserrat", sans-serif; }
.ai-flagship p { margin: 0 20px 20px; font-size: .95rem; line-height: 1.55; }
.ai-apps .home-more-toggle { margin: 0 0 8px; }
.ai-apps .home-more-btn { background: #ef7c7c; color: #1F2024; }
.ai-apps .home-more-btn:hover { background: #f5a3a3; }
.ai-apps .home-more-btn:focus-visible { outline-color: #fff; }
.ai-apps #more-ai-apps { padding-top: 22px; }

@media (max-width: 1199px) {
  .home-more-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .home-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-flagships { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .home-more { padding: 44px 0 46px; }
  .home-more-grid, .ai-flagships { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .home-more-btn, .home-more-btn::after, .ai-flagship { transition: none; }
  .ai-flagship:hover, .ai-flagship:focus-visible { transform: none; }
}
