/* BBMedia Flutter Tools — standalone page styles, prefixed bb-* */

:root {
  --bb-bg: #65828f;
  --bb-heading: #ffffff;
  --bb-heading-alt: #2c4855;
  --bb-text: #e6edf0;
  --bb-accent: #ffa245;
  --bb-card-bg: #2c4855;
  --bb-footer-bg: #ffffff;
  --bb-footer-text: #65828f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", "Montserrat", sans-serif;
  background-color: var(--bb-bg);
  color: var(--bb-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bb-content {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

/* Hero */

.bb-hero {
  text-align: center;
  padding: 40px 0 24px;
}

.bb-hero-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 80px;
  margin-bottom: 16px;
}

.bb-hero-icons img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35));
}

.bb-hero h1 {
  font-family: "Montserrat", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(28px, 5vw, 32px);
  color: var(--bb-heading-alt);
  margin-bottom: 24px;
}

.bb-hero h1 .bb-accent-num {
  color: var(--bb-heading);
}

.bb-hero p {
  max-width: 760px;
  margin: 0 auto 14px;
  color: var(--bb-text);
}

.bb-hero ul {
  list-style: none;
  max-width: 520px;
  margin: 0 auto 14px;
  text-align: left;
  padding-left: 0;
}

.bb-hero ul li::before {
  content: "•";
  color: var(--bb-accent);
  margin-right: 10px;
}

/* Download button */

.bb-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 24px auto 0;
  background-color: var(--bb-accent);
  color: var(--bb-heading);
  font-weight: 500;
  text-decoration: none;
  padding: 8px 24px;
  border-radius: 60px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.bb-download .material-symbols-outlined {
  font-size: 20px;
}

.bb-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Block grid — configurable max columns via row_max_N */

.row_max_2,
.row_max_3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 56px;
  align-items: flex-start;
  /* fixed-width blocks; gap is the minimum spacing between them */
  gap: 50px;
}

/* Fixed block width — 290px regardless of column count */
.row_max_3 > .bb-block,
.row_max_2 > .bb-block {
  width: 350px;
}

/* Block */

.bb-block {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.bb-block-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 0px;
}

.bb-block-num {
  font-family: "Montserrat", sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 32px;
  color: var(--bb-heading);
}

.bb-block-title {
  font-family: "Montserrat", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 24px;
  color: var(--bb-heading-alt);
}

.bb-block-img {
  width: 100%;
  border-radius: 10px;
  display: block;
  margin-bottom: 16px;
  background-color: var(--bb-card-bg);
  filter: drop-shadow(0 4px 4px rgba(0, 0, 0, 0.35));
}

.bb-block h4 {
  color: var(--bb-heading);
  font-weight: 600;
  margin-bottom: 8px;
}

.bb-text-bold {
  color: var(--bb-heading);
  font-weight: 500;
}

.bb-block p {
  margin-bottom: 12px;
}

.bb-block ul {
  list-style: none;
  margin-bottom: 12px;
}

.bb-block ul li::before {
  content: "•";
  color: var(--bb-accent);
  margin-right: 10px;
}

.bb-block code {
  display: inline-block;
  color: var(--bb-heading);
  padding: 2px 6px;
  font-size: 13px;
}

/* In-block links: same size/line-height as surrounding text, themed color */
.bb-block a {
  color: var(--bb-heading-alt);
  font-size: inherit;
  line-height: inherit;
  text-decoration: none;
}

.bb-block a:visited {
  color: var(--bb-heading-alt);
}

.bb-block a:hover {
  text-decoration: underline;
}

/* Inline icons inside links match the text size */
.bb-block a .material-symbols-outlined {
  font-size: inherit;
  line-height: inherit;
  vertical-align: middle;
}

/* Closing summary */

.bb-summary {
  max-width: 760px;
  margin: 64px auto 0;
  text-align: center;
}

.bb-summary h2 {
  font-family: "Montserrat", sans-serif;
  font-style: italic;
  font-weight: 800;
  font-size: 28px;
  color: var(--bb-heading-alt);
  margin-bottom: 16px;
}

.bb-summary p {
  margin-bottom: 12px;
}

/* Install instructions */

.bb-install {
  max-width: 560px;
  margin: 40px auto 0;
  text-align: left;
  font-size: 14px;
}

.bb-install h3 {
  font-family: "Montserrat", sans-serif;
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  color: var(--bb-heading-alt);
  margin-bottom: 16px;
  text-align: center;
}

.bb-install ul {
  list-style: none;
  margin-bottom: 16px;
}

.bb-install li {
  margin-bottom: 8px;
}

.bb-install li::before {
  content: "•";
  color: var(--bb-accent);
  margin-right: 10px;
}

.bb-install code {
  background-color: var(--bb-card-bg);
  color: var(--bb-heading);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}

/* Footer (white background, text in --bb-footer-text) */

.footer {
  display: flex;
  flex-direction: column;
  background-color: var(--bb-footer-bg);
}

.footer .contact {
  color: var(--bb-footer-text);
  text-align: center;
  padding: 20px;
}

.contact-text {
  font-size: 14px;
}
.footer .law {
  color: var(--bb-footer-text);
  text-align: center;
  font-weight: 400;
  font-size: 12px;
  padding: 20px;
}

.footer a {
  color: var(--bb-footer-text);
  font-weight: 700;
  text-decoration: none;
}

.footer a:visited {
  color: var(--bb-footer-text);
}

.footer .law a {
  font-weight: 400;
}

.footer .row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 20px;
  padding: 40px;
}

.row-left {
  flex: 1;
  text-align: left;
  font-size: 12px;
  color: var(--bb-footer-text);
}

.row-right {
  flex: 1;
  text-align: right;
  color: var(--bb-footer-text);
}

/* Our products bar */
.bb-products {
  width: 100%;
  height: 75px;
  background-color: #ffe045;
  /* wide screen: center the row; narrow screen: scroll horizontally */
  overflow-x: auto;
  overflow-y: hidden;
  /* no rubber-band bounce at the edges */
  overscroll-behavior-x: none;
  /* hide the scrollbar itself, keep scrolling functional */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bb-products::-webkit-scrollbar {
  display: none;
}

.bb-products-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 75px;
  /* keep items on one line and let the row grow past the viewport */
  flex-wrap: nowrap;
  min-width: max-content;
  /* center when there is room, start-aligned when scrolling */
  margin: 0 auto;
  padding: 0 75px;
}

.bb-products-title {
  font-weight: 400;
  font-size: 14px;
  color: var(--bb-footer-text);
}

.bb-products a {
  display: flex;
  align-items: center;
}

.bb-products img {
  height: 65px;
  width: auto;
  display: block;
  object-fit: contain;
}
