/* Home page polish (loaded only by index.php) */

/* breathing room after full-bleed dark bands */
.dark + section.tight, .water-band + section.tight, .hero2 + section:not(.live-today-band), section.dark + section { padding-top: clamp(56px, 7vw, 96px) !important; }

/* Live at the Centre Today status strip */
.live-today-band { padding: 28px 0 36px !important; background: linear-gradient(180deg, #F0F7F2 0%, #FAFBF9 100%); border-bottom: 1px solid #E3EAE5; }
.lt-shell { background: #fff; border: 1px solid #DCE7DF; border-radius: 22px; padding: 18px 20px 20px; box-shadow: 0 12px 32px -22px rgba(11, 74, 34, .28); }
.lt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid #EDF3EF; }
.lt-brand { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lt-brand strong { font-size: .95rem; font-weight: 800; color: #0B4A22; letter-spacing: .01em; text-transform: uppercase; }
.lt-clock { font-size: .84rem; color: #5F6F66; font-weight: 600; font-variant-numeric: tabular-nums; }
.lt-pulse { width: 10px; height: 10px; border-radius: 50%; flex: none; position: relative; }
.lt-pulse.is-ok { background: #16A34A; box-shadow: 0 0 0 4px rgba(22, 163, 74, .18); animation: ltPulse 2.2s ease-out infinite; }
.lt-pulse.is-off { background: #DC2626; box-shadow: 0 0 0 4px rgba(220, 38, 38, .16); }
@keyframes ltPulse { 0% { box-shadow: 0 0 0 0 rgba(22, 163, 74, .42); } 70% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); } }
.lt-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lt-updated { font-size: .8rem; font-weight: 600; color: #64748B; background: #F4F7F5; padding: 4px 10px; border-radius: 999px; }
.lt-edit { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; color: #0B4A22; background: #ECFDF3; border: 1px solid #BBF7D0; padding: 4px 11px; border-radius: 999px; text-decoration: none; transition: background .15s, border-color .15s; }
.lt-edit:hover { background: #DCFCE7; border-color: #86EFAC; text-decoration: none; }
.lt-notice { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 14px; border-radius: 14px; background: #FFF8EB; border: 1px solid #F6DDAE; color: #78350F; font-size: .9rem; font-weight: 600; }
.lt-notice .ico { color: #D97706; flex: none; }
.lt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lt-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px 15px; border-radius: 16px; background: #F8FBF9; border: 1px solid #E4EDE7; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s, box-shadow .2s; }
.lt-tile.lt-link { background: linear-gradient(135deg, #F4FAF6, #FFFBF2); border-color: #DFEAE2; }
.lt-tile.lt-link:hover { transform: translateY(-2px); border-color: #86C59B; box-shadow: 0 10px 22px -16px rgba(11, 74, 34, .35); text-decoration: none; }
.lt-tile.lt-link::after { display: none !important; }
.lt-tile-top { display: flex; align-items: center; gap: 8px; }
.lt-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.lt-ico.c-green { background: #DCFCE7; color: #15803D; }
.lt-ico.c-blue { background: #DBEAFE; color: #1D4ED8; }
.lt-ico.c-teal { background: #CCFBF1; color: #0F766E; }
.lt-ico.c-amber { background: #FEF3C7; color: #B45309; }
.lt-kicker { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #5F6F66; margin-right: auto; }
.lt-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: .72rem; font-weight: 800; white-space: nowrap; }
.lt-badge.st-ok { background: #DCFCE7; color: #166534; }
.lt-badge.st-warn { background: #FEF3C7; color: #92400E; }
.lt-badge.st-off { background: #FEE2E2; color: #991B1B; }
.lt-arrow { color: #15803D; display: inline-flex; transition: transform .2s; }
.lt-tile.lt-link:hover .lt-arrow { transform: translateX(3px); }
.lt-val { font-size: 1.05rem; font-weight: 800; color: #0F172A; line-height: 1.25; margin-top: 2px; }
.lt-sub { font-size: .8rem; color: #5F6F66; line-height: 1.35; }
.lt-bar { height: 6px; border-radius: 999px; background: #E2EAE5; overflow: hidden; margin: 2px 0; }
.lt-bar i { display: block; height: 100%; border-radius: 999px; transition: width .5s cubic-bezier(.16, 1, .3, 1); }
.lt-bar i.st-ok { background: linear-gradient(90deg, #16A34A, #22C55E); }
.lt-bar i.st-warn { background: linear-gradient(90deg, #D97706, #F59E0B); }
.lt-bar i.st-off { background: #CBD5E1; }
@media (max-width: 1020px) { .lt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .live-today-band { padding: 18px 0 24px !important; }
  .lt-shell { padding: 14px; border-radius: 18px; }
  .lt-grid { grid-template-columns: 1fr; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .lt-pulse, .lt-bar i, .lt-tile { animation: none; transition: none; } }

/* gallery bento */
.home-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; gap: 14px; }
.bento-tile { position: relative; display: block; border-radius: 20px; overflow: hidden; background: #E3EFE7; text-decoration: none; isolation: isolate; }
.bento-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.bento-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(4, 30, 15, .82)); z-index: 1; }
.bento-tile:hover img { transform: scale(1.05); }
.bt-cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; display: grid; gap: 2px; }
.bt-cap strong { font-size: 1.02rem; }
.bt-cap small { font-size: .82rem; color: rgba(255, 255, 255, .82); }
.bt-0 { grid-column: span 2; grid-row: span 2; }
.bt-0 .bt-cap strong { font-size: 1.35rem; }
.bt-3 { grid-column: span 2; }
.bento-tile:focus-visible { outline: 3px solid #F5A01A; outline-offset: 3px; }

/* compact documents band */
.docs-band { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: 28px; background: linear-gradient(135deg, #F3FAF5, #FFF8EB); border: 1px solid #E3EAE5; }
.docs-text h2 { margin: 6px 0 10px; }
.docs-text .lead { margin: 0 0 20px; }
.docs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.docs-list a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #E3EAE5; text-decoration: none; color: inherit; transition: transform .2s, border-color .2s; }
.docs-list a:hover { transform: translateX(4px); border-color: #9FCDB0; }
.dl-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #ECFDF3; color: #15803D; flex: none; }
.docs-list strong { display: block; font-size: .94rem; color: #0F172A; }
.docs-list small { display: block; font-size: .8rem; color: #64748B; }

/* partner levels: normal type for amounts */
#partner .level-amount { font-family: inherit !important; letter-spacing: -.01em; font-weight: 800; }

@media (max-width: 960px) {
  .home-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; }
  .bt-0 { grid-column: span 2; grid-row: span 1; }
  .bt-3 { grid-column: span 2; }
  .docs-band { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .home-bento { grid-auto-rows: 160px; gap: 10px; }
  .bt-cap small { display: none; }
  .docs-text .btn-row .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .bento-tile img, .docs-list a { transition: none; } }
.bt-4, .bt-5 { grid-column: span 2; }
.docs-list a, .docs-list a:hover, .bento-tile, .bento-tile:hover { border-bottom-width: 1px; background-image: none; text-decoration: none; }
.docs-list a { border-bottom-color: #E3EAE5; } .docs-list a:hover { border-bottom-color: #9FCDB0; }
.bento-tile { border: 0 !important; }
.docs-list a::after, .bento-tile::before { display: none !important; }
@media (max-width: 960px) { .bt-4, .bt-5 { grid-column: span 1; } }

/* phones: tighter visit steps and desk mock-up */
.desk-mockup .stamp { white-space: nowrap; flex: none; }
@media (max-width: 600px) {
  #about + section .steps { grid-template-columns: 1fr 1fr; gap: 10px; }
  #about + section .steps li { padding: 16px 14px; }
  #about + section .steps li::before { width: 34px; height: 34px; font-size: .95rem; margin-bottom: 10px; }
  #about + section .steps h3 { font-size: .98rem; }
  #about + section .steps p { font-size: .84rem; }
  .desk-mockup { padding: 14px; }
  .desk-mockup strong { font-size: .86rem; }
}
@media (max-width: 380px) { #about + section .steps { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .desk-mockup .tiles { gap: 8px; }
  .desk-mockup .tile { padding: 10px; }
  .desk-mockup .tile-name { font-size: .8rem; overflow-wrap: normal; word-break: normal; }
  .desk-mockup .tile p { font-size: .74rem; }
  .desk-mockup .tile .stamp { font-size: .66rem; }
}
