/* Brumly website. Colours match the app's design tokens (application/frontend/src/core/tokens.ts). */
:root {
  --brumly-bg: #F6F5EF;
  --brumly-surface: #FFFFFF;
  --brumly-text: #123D31;
  --brumly-muted: #536C61;
  --brumly-accent: #146B48;
  --brumly-tint: #E5F1D9;
  --brumly-line: #DDE3DA;
  --brumly-mint: #A7CFBF;
  --brumly-night: #102A23;
  --brumly-bus: #146B48;
  --brumly-tram: #1D5C8C;
  --brumly-train: #8E2F45;

  --bs-body-bg: var(--brumly-bg);
  --bs-body-color: var(--brumly-text);
  --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-link-color: var(--brumly-accent);
  --bs-link-color-rgb: 20, 107, 72;
  --bs-link-hover-color: #0F5238;
  --bs-border-color: var(--brumly-line);
}

body { background: var(--brumly-bg); color: var(--brumly-text); font-family: var(--bs-body-font-family); -webkit-font-smoothing: antialiased; }
a { color: var(--brumly-accent); }
h1, h2, h3, .display-5 { font-weight: 800; letter-spacing: -0.02em; }
.text-muted-brumly { color: var(--brumly-muted) !important; }

/* Header */
.navbar { background: var(--brumly-bg); }
.navbar-brand img { height: 40px; width: auto; }
.navbar .nav-link { color: var(--brumly-text); font-weight: 600; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--brumly-accent); }
.region-tag { font-size: .7rem; font-weight: 700; letter-spacing: .06em; color: var(--brumly-muted); }

/* Buttons */
.btn-brumly { background: var(--brumly-accent); border-color: var(--brumly-accent); color: #fff; font-weight: 700;
  border-radius: 14px; padding: .7rem 1.2rem; }
.btn-brumly:hover, .btn-brumly:focus { background: #0F5238; border-color: #0F5238; color: #fff; }

/* Store placeholders: plain "coming soon" buttons until the store links exist */
.store-btn { display: inline-flex; align-items: center; gap: .65rem; background: var(--brumly-night); color: #fff;
  border-radius: 14px; padding: .55rem 1.1rem; min-width: 190px; text-decoration: none; cursor: default; }
.store-btn svg { flex: none; }
.store-btn small { display: block; font-size: .7rem; opacity: .8; line-height: 1.1; }
.store-btn strong { display: block; font-size: 1.05rem; line-height: 1.2; }

/* Official store badges (files from Apple and Google, unmodified) */
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.store-badge img { height: 50px; width: auto; }
.store-badge-play img { height: 72px; margin: -11px -10px; } /* Google's PNG has built-in padding */
.store-badge:focus-visible { outline: 3px solid var(--brumly-accent); outline-offset: 3px; }
.store-qr figure img { width: 104px; height: 104px; border-radius: 10px; background: #fff; padding: 4px; box-shadow: 0 2px 10px rgba(18, 61, 49, .10); }
.store-qr figcaption { font-size: .8rem; color: var(--brumly-muted); margin-top: .35rem; }

/* Hero */
.hero { padding: 3rem 0 2rem; }
.hero .lead { color: var(--brumly-muted); font-size: 1.2rem; }
.phones { position: relative; display: flex; justify-content: center; gap: 1rem; }
.phones img { width: 46%; max-width: 280px; height: auto; border-radius: 36px; box-shadow: 0 18px 40px rgba(18, 61, 49, .16); }
.phones img + img { margin-top: 3rem; }

/* Cards with the app's coloured mode line */
.card-brumly { background: var(--brumly-surface); border: 0; border-radius: 18px; padding: 1.4rem 1.4rem 1.4rem 1.6rem;
  position: relative; overflow: hidden; height: 100%; }
.card-brumly::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--line, var(--brumly-accent)); }
.card-brumly.bus { --line: var(--brumly-bus); }
.card-brumly.tram { --line: var(--brumly-tram); }
.card-brumly.train { --line: var(--brumly-train); }
.card-brumly h3 { font-size: 1.15rem; margin: .7rem 0 .35rem; }
.card-brumly p { color: var(--brumly-muted); margin: 0; }
.icon-tile { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--brumly-tint); color: var(--brumly-accent); }
.card-brumly.tram .icon-tile { background: #E7F0F8; color: var(--brumly-tram); }
.card-brumly.train .icon-tile { background: #F8E9ED; color: var(--brumly-train); }

/* Mode chips like the app */
.mode-chip { display: inline-flex; align-items: center; gap: .4rem; background: var(--brumly-surface); border-radius: 999px;
  padding: .45rem .9rem; font-weight: 700; font-size: .95rem; }
.mode-chip.bus { color: var(--brumly-bus); } .mode-chip.tram { color: var(--brumly-tram); } .mode-chip.train { color: var(--brumly-train); }

/* Privacy band */
.privacy-band { background: var(--brumly-tint); border-radius: 24px; padding: 2.5rem; }
.privacy-band li { margin-bottom: .4rem; }

/* Birmingham skyline, full width above the footer (same artwork as the app) */
.skyline { width: 100%; aspect-ratio: 1600 / 467; background: url("../assets/img/birmingham-canals.jpg") center bottom / cover no-repeat; margin-top: 3rem; }

/* Footer */
.site-footer { background: var(--brumly-night); color: #D6E4DC; padding: 2.5rem 0 2rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .wordmark { height: 36px; width: auto; }
.powered { display: inline-flex; align-items: center; gap: .6rem; background: #fff; border-radius: 12px; padding: .45rem .8rem; color: var(--brumly-text) !important; }
.powered span { font-size: .75rem; font-weight: 700; color: var(--brumly-muted); }
.powered img { height: 20px; width: auto; }
.small-print { font-size: .8rem; color: #A9C2B6; }

/* Text pages (privacy, support) */
.page-head { padding: 2.5rem 0 1rem; }
.prose { background: var(--brumly-surface); border-radius: 18px; padding: 2rem; }
.prose h2 { font-size: 1.3rem; margin-top: 1.8rem; }
.prose h2:first-child { margin-top: 0; }
.accordion-item { border-color: var(--brumly-line); }
.accordion-item:first-of-type, .accordion-item:first-of-type .accordion-button { border-top-left-radius: 18px; border-top-right-radius: 18px; }
.accordion-item:last-of-type, .accordion-item:last-of-type .accordion-button.collapsed { border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; }
.accordion-button { font-weight: 700; color: var(--brumly-text); }
.accordion-button:not(.collapsed) { background: var(--brumly-tint); color: var(--brumly-text); box-shadow: none; }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(20,107,72,.25); border-color: var(--brumly-accent); }

:focus-visible { outline: 3px solid var(--brumly-accent); outline-offset: 2px; }
@media (max-width: 575.98px) {
  .hero { padding-top: 1.5rem; }
  .privacy-band, .prose { padding: 1.4rem; }
}

.h4, .h5, .h6 { font-weight: 800; }
