/* Subuh across the public site: brand tokens over Tabler, then the home page. */
:root {
    --tblr-primary: #14538C;
    --tblr-primary-rgb: 20, 83, 140;
    --tblr-link-color: #14538C;
    --tblr-link-color-rgb: 20, 83, 140;
    --tblr-font-sans-serif: 'Instrument Sans', system-ui, sans-serif;
    --sb-ink: #0F2A4A;
    --sb-blue: #14538C;
    --sb-muted: #3D5873;
    --sb-sun: #FFB020;
}

html, body { font-family: 'Instrument Sans', system-ui, sans-serif; color: var(--sb-ink); }
h1, h2, h3, .navbar-brand { font-family: 'Bricolage Grotesque', system-ui, sans-serif; }
a, .btn-link { color: var(--sb-blue); }
.btn-primary { color: #fff; background-color: var(--sb-blue); border-color: var(--sb-blue); }
.btn-primary:hover, .btn-primary:focus { background-color: #0F426F; border-color: #0F426F; color: #fff; }
.bg-primary { background-color: var(--sb-blue) !important; }
.text-primary { color: var(--sb-blue) !important; }
.footer.bg-dark { background-color: var(--sb-ink) !important; }

.sb-brand-name { color: var(--sb-ink); letter-spacing: -.02em; font-weight: 800; }

.sb-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 780px;
    overflow: hidden;
    background: #CFEBFB;
}
.sb-scene { position: absolute; inset: 0; width: 100%; height: 100%; }
.sb-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 760px;
    padding: clamp(24px, 4vw, 56px) clamp(16px, 5vw, 64px);
}
.sb-copy h1 { margin: 0; font-size: clamp(44px, 6vw, 80px); line-height: 1; font-weight: 800; letter-spacing: -.03em; color: var(--sb-ink); }
.sb-copy p { margin: 0; max-width: 560px; font-size: 20px; }
.sb-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.sb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 24px;
    font-weight: 600;
    text-decoration: none;
}
.sb-btn:hover { text-decoration: none; filter: brightness(.96); }
.sb-btn.is-sun { background: var(--sb-sun); color: var(--sb-ink); }
.sb-btn.is-ghost { box-shadow: inset 0 0 0 2px var(--sb-ink); color: var(--sb-ink); }

.sb-events {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 980px;
    margin-top: auto;
    padding: 0 clamp(16px, 5vw, 64px) 28px;
}
.sb-event { padding: 8px 14px; border-radius: 12px; background: #fff; animation: sb-pop .5s both; animation-delay: var(--at); }
.sb-event small { display: block; font-size: 12px; color: var(--sb-muted); }
.sb-event b { font-size: 15px; }
.sb-sample { position: absolute; right: clamp(16px, 5vw, 64px); bottom: 14px; color: #fff; font-size: 13px; }

.sb-sun { animation: sb-sun 12s cubic-bezier(.2, .6, .3, 1) both; }
.sb-dawn { animation: sb-fade 12s linear both; }
.sb-shutter { transform-box: fill-box; transform-origin: top; animation: sb-shutter 1.6s ease-in-out both; animation-delay: var(--at); }
.sb-van { animation: sb-van 5s 5s cubic-bezier(.2, .7, .3, 1) both; }

@keyframes sb-pop { from { opacity: 0; transform: translateY(14px) scale(.95); } to { opacity: 1; transform: none; } }
@keyframes sb-sun { from { transform: translateY(380px); } to { transform: none; } }
@keyframes sb-fade { from { opacity: 1; } to { opacity: 0; } }
@keyframes sb-shutter { from { transform: scaleY(1); } to { transform: scaleY(.1); } }
@keyframes sb-van { from { transform: translateX(-900px); } to { transform: none; } }

@media (prefers-reduced-motion: reduce) {
    .sb-event, .sb-sun, .sb-van { animation: none; }
    .sb-dawn { animation: none; opacity: 0; }
    .sb-shutter { animation: none; transform: scaleY(.1); }
}

.sb-wrap { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 7vw, 96px) clamp(16px, 5vw, 64px); }
.sb-h2 { margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.02; font-weight: 800; letter-spacing: -.03em; color: var(--sb-ink); }
.sb-day { display: flex; flex-direction: column; margin-top: 40px; }
.sb-moment { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px; padding: 18px 0; border-bottom: 1px solid #CFE3F2; }
.sb-moment time { flex: 0 0 96px; font-weight: 600; color: var(--sb-blue); }
.sb-moment h3 { flex: 1 1 380px; margin: 0; font-size: 26px; line-height: 1.15; font-weight: 800; color: var(--sb-ink); }
.sb-moment p { flex: 1 1 300px; margin: 0; color: var(--sb-muted); }
.sb-band { background: #CFEBFB; }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 40px; }
.sb-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 20px; background: #fff; }
.sb-card h3 { margin: 0; font-size: 26px; font-weight: 800; color: var(--sb-ink); }
.sb-card p { margin: 0; color: var(--sb-muted); }
.sb-law {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 40px;
    padding: 24px clamp(16px, 5vw, 64px);
    background: var(--sb-sun);
    color: var(--sb-ink);
    font: 800 clamp(24px, 3.4vw, 44px) 'Bricolage Grotesque', system-ui, sans-serif;
}
.sb-price { display: flex; flex-direction: column; gap: 8px; padding: 28px; border-radius: 20px; background: #EAF5FD; }
.sb-price b { font: 800 64px/1 'Bricolage Grotesque', system-ui, sans-serif; letter-spacing: -.03em; }
.sb-price.is-on { background: var(--sb-blue); color: #fff; }

.navbar-brand img { width: auto; height: 36px; }
.footer img[alt="Leja"] { width: auto; }

.sb-copy { max-width: 640px; }
.sb-copy h1 { font-size: clamp(40px, 4.8vw, 68px); }

/* On a phone the street sits under the words instead of behind them. */
@media (max-width: 900px) {
    .sb-hero { min-height: 0; background: linear-gradient(#A9D8F5, #CFEBFB 70%, #FFE3B0); padding-bottom: 330px; }
    .sb-scene { top: auto; height: 340px; }
    .sb-events, .sb-sample { display: none; }
}

.footer img[alt="Leja"] { height: 40px; }
#blazor-error-ui { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; padding: 10px 16px; background: #FFE3B0; color: var(--sb-ink); }
#blazor-error-ui .dismiss { float: right; cursor: pointer; }
@media (max-width: 900px) {
    .sb-hero { background: #A9D8F5; }
}
