/* Landing page grid + hero — supplements style.css */

/* Info background used by masthead hero */
.bg-info {
  background: linear-gradient(135deg, var(--info-500, #0288d1) 0%, var(--info-600, #0277bd) 100%) !important;
  color: #fff;
}

.masthead-landing {
  padding: 5rem 1rem 4.5rem;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.masthead-landing::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='560' height='420' viewBox='0 0 560 420' fill='none' stroke='rgba(255,255,255,0.22)' stroke-width='1.4'><g><polygon points='40,30 60,50 40,70 20,50'/><circle cx='120' cy='90' r='12'/><polygon points='200,40 220,40 210,58'/><rect x='280' y='30' width='22' height='22'/><polygon points='360,60 380,50 380,72'/><circle cx='450' cy='40' r='10'/><polygon points='520,80 536,66 536,94'/><rect x='60' y='140' width='18' height='18' transform='rotate(20 69 149)'/><polygon points='150,170 170,160 170,182'/><circle cx='240' cy='150' r='14'/><polygon points='320,180 340,200 320,220 300,200'/><polygon points='420,150 440,150 430,170'/><rect x='490' y='170' width='20' height='20'/><circle cx='40' cy='260' r='11'/><polygon points='110,280 130,270 130,292'/><rect x='180' y='250' width='22' height='22' transform='rotate(15 191 261)'/><polygon points='270,300 290,320 270,340 250,320'/><circle cx='360' cy='280' r='13'/><polygon points='430,300 448,290 448,312'/><rect x='500' y='280' width='18' height='18'/><polygon points='70,360 90,380 70,400 50,380'/><circle cx='160' cy='370' r='10'/><polygon points='240,380 260,370 260,392'/><rect x='320' y='360' width='20' height='20'/><polygon points='400,380 420,370 420,394'/><circle cx='490' cy='370' r='12'/></g></svg>"),
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.10) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0, transparent 45%);
  background-repeat: repeat, no-repeat, no-repeat;
  background-size: 560px 420px, auto, auto;
  pointer-events: none;
}
.masthead-landing > * { position: relative; z-index: 1; }
.masthead-landing img { max-width: 100%; height: auto; filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25)); }
.masthead-landing h3 { color: #fff; max-width: 720px; margin-left: auto; margin-right: auto; }

/* Hero CTA row — allow wrapping so buttons never get clipped on narrow phones */
.masthead-landing .flex-container.align-center {
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 0.75rem;
}

@media (max-width: 640px) {
  .masthead-landing { padding: 2.5rem 1rem 2.75rem; }
  .masthead-landing h1 { margin-bottom: 1.25rem !important; }
  .masthead-landing h1 img { width: 78vw; max-width: 320px; height: auto; }
  .masthead-landing h3 { font-size: 1rem; line-height: 1.35; padding: 0 0.25rem; }
  .masthead-landing .btn.btn-landing {
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    min-height: 44px;
    flex: 0 0 auto;
    min-width: 130px;
  }
  .masthead-landing .flex-container.align-center { gap: 0.75rem !important; padding: 0 0.5rem; }
}

.site-landing { display: block; max-width: 1200px; margin: 0 auto; padding: 2rem 1rem; }

/* Absorb remaining vertical space so the footer stays at the bottom without
   leaving a huge white gap between the last content row and the footer. */
.site-landing { min-height: 40vh; }

.row-landing {
  display: flex;
  flex-wrap: wrap;
  margin-left: -0.75rem;
  margin-right: -0.75rem;
  align-items: center;
}
.row-landing.justify-content-center,
.row-landing.justify-center { justify-content: center; }

.col-xl-12-landing,
.col-md-12-landing { flex: 0 0 100%; max-width: 100%; padding: 0 0.75rem; }
.col-md-4-landing { flex: 0 0 100%; max-width: 100%; padding: 0.75rem; }
.col-md-2-landing { flex: 0 0 50%; max-width: 50%; padding: 0.75rem; }

/* Mobile: center any lone/orphan card and tighten stacked section spacing */
@media (max-width: 767.98px) {
  .row-landing { align-items: stretch; row-gap: 0.5rem; }
  .row-landing .col-md-4-landing { padding-top: 0.25rem; padding-bottom: 0.25rem; text-align: center; }
  .row-landing .col-md-4-landing.text-right { text-align: center !important; }
  .row-landing .col-md-2-landing { padding: 0.4rem; }
  /* If an item ends up alone on its row, take the full width and center the card inside */
  .row-landing .col-md-2-landing.is-orphan {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    display: flex;
    justify-content: center;
  }
  .row-landing .col-md-2-landing.is-orphan > .cell {
    width: 50%;
    max-width: 50%;
  }
}

@media (min-width: 768px) {
  .col-md-4-landing { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-md-2-landing { flex: 0 0 16.6667%; max-width: 16.6667%; }
}

.landing-text-landing {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

/* Big pill buttons for hero */
.btn.btn-landing {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 0.6rem;
  line-height: 1;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 0 rgba(0,0,0,0.15);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn.btn-landing:hover { transform: translateY(-1px); }
.btn.btn-landing:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,0.15); }
.btn.btn-landing i { margin-right: 0.35rem; }

.text-right { text-align: right; }
@media (max-width: 767px) {
  .text-right { text-align: center; }
}

/* --- Mobile navbar fixes for landing (logged-out) --- */

/* Hide the notification bell on the landing (logged-out) navbar entirely */
.navbar li.nav-item:has(.fa-bell) { display: none !important; }

/* Navbar Login / Get Started buttons — align icon + label cleanly on all sizes */
.navbar .btn.btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 0.5rem;
  white-space: nowrap;
}
.navbar .btn.btn-sm i { margin: 0 !important; font-size: 0.9em; }
.navbar .btn.btn-sm:hover { transform: translateY(-1px); }
.navbar .btn.btn-sm:active { transform: translateY(1px); }

@media (max-width: 640px) {
  /* Keep the primary CTA next to the logo; hide the noisy search + bell so
     "Get Started" / "Login" don't wrap onto a second row. */
  .navbar .nav-search { display: none !important; }
  .navbar .nav-item .fa-bell { font-size: 1.1rem; }
  .navbar .btn.btn-sm { padding: 0.4rem 0.6rem; font-size: 0.8rem; }
  .navbar .btn.btn-sm i { margin-right: 0.25rem; }
}