/*
 * Page-local styles for the marketing/static pages app (sesam_pages).
 *
 * All classes in this file use the `sesam-pages-` prefix to make it visible
 * at the call site that they are scoped to the marketing pages. Truly shared
 * helpers (color utilities, `.sesam-cursor-help`, `.sesam-switch`, etc.) live in
 * `static/css/components.css`. Promote a rule from here to components.css as
 * soon as a second app needs it.
 */

.btn-link {
  text-decoration: none !important;
}

/* Marketing nav uses a muted gray text color (overrides the global blue
   link color set in the central base.css for SESAM application pages). */
.nav-link {
  color: var(--sesam-gray-400) !important;
}

.nav-item .nav-link:hover {
  color: var(--sesam-blue) !important;
}

.dropdown .dropdown-menu {
  font-size: .85rem;
}

.dropdown-item {
  clear: both;
  display: block;
  width: 100%;
  padding: .25rem 1.5rem;
  font-weight: 400;
  color: var(--sesam-dropdown-item) !important;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: #2e2f37;
  text-decoration: none;
  background-color: var(--sesam-surface-muted);
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff !important;
  text-decoration: none;
  background-color: var(--sesam-blue);
}

.dropdown-item.disabled,
.dropdown-item:disabled {
  color: var(--sesam-gray-500);
  pointer-events: none;
  background-color: transparent;
}

.dropdown-divider {
  height: 0;
  margin: .5rem 0;
  overflow: hidden;
  border-block-start: 1px solid var(--sesam-surface-muted);
}

#footer {
  padding-block: 30px;
  background-color: var(--sesam-dark-blue);
}

#footer a {
  color: white;
}

/* Marketing-page-specific helpers ------------------------------------------ */

/* Pill in the marketing navbar around the SESAM logo. */
.sesam-pages-beta-badge {
  font-size: 40%;
  color: var(--sesam-blue);
  border: 1px solid var(--sesam-blue);
}

/* Header buttons (Login / Create account) on the marketing navbar use a
   tighter Bootstrap-3-style corner radius than the default BS5 button. */
.sesam-pages-navbar-btn { border-radius: .25rem; }

/* Hero ("jumbotron") block on the marketing landing page. */
.sesam-pages-hero {
  position: relative;
  min-height: 500px;

  /* hero_image.jpg lives in the globally collected /static/img/ dir. */
  background-image:
    linear-gradient(rgb(19 50 77 / .8), rgb(35 91 140 / .5)),
    url("/static/img/hero_image.ce39824d857c.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.sesam-pages-hero-inner {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  color: #fff;
  transform: translate(-50%, -50%);
}

.sesam-pages-hero-title {
  margin-block-end: 1.5rem;
  font-size: xx-large;
  font-weight: 800;
  color: #f3f3f6;
}

.sesam-pages-hero-cta {
  padding: 1rem 1.2rem !important;
  box-shadow: rgb(100 100 111 / .2) 0 7px 29px 0;
}

/* Section that lists feature cards. */
.sesam-pages-features-section {
  padding: 100px 0;
  color: var(--sesam-marketing-blue);
}

/* Keep at least 21rem per card before adding another column. A single card
   can shrink to the viewport width on phones; all nine features share one grid. */
.sesam-pages-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr));
  gap: 1.5rem;
}

.sesam-pages-feature-title {
  font-size: medium;
  font-weight: bolder;
}

/* Use the same compact spacing for all four sections. Scope the shared Edit
   fragment override to the landing page; reduce spacing further on phones. */
.sesam-pages-usecase-row,
.sesam-pages-usecase-row-last,
.sesam-pages-usecases .sesam-pages-feature-hero {
  padding: clamp(2rem, 6vw, 6rem) 0;
}

/* Metrics band (Scenarios built / Simulations performed / Users served). */
.sesam-pages-metrics { margin-block-start: 100px; }
.sesam-pages-metric-value { font-size: 2rem; font-weight: 600; }

/* "SESAM is for everyone" customer band with the dark-blue gradient card. */
.sesam-pages-customers-section { padding: 100px 0; }

.sesam-pages-customers-card {
  padding: 80px 40px;
  color: #fff;
  background: rgb(19 50 77);
  background: linear-gradient(227deg,
  rgb(19 50 77 / 1) 0%,
  rgb(35 91 140 / 1) 46%,
  rgb(0 212 255 / 1) 100%);
  border-radius: 1rem;
}
.sesam-pages-customers-row { line-height: 1.8; }
.sesam-pages-customers-col { padding: 20px; }

/* Section title used on the customer band and the "Available plans" heading. */
.sesam-pages-section-title {
  margin-block-end: 50px;
  font-size: 2rem !important;
  font-weight: 600;
}

/* Logo image keeps original aspect ratio at a fixed height. */
.sesam-img-auto-width { width: auto; }

/* Feature card on the landing page (icon + title + body). */
.sesam-pages-feature-card {
  height: 100%;
  padding: 36px;
  background-color: #f3f3f6;
  border: 1px solid rgb(0 0 0 / .125);
  border-radius: 1rem;
  box-shadow: .1rem .2em .3rem rgb(24 21 30 / .12),
    inset 0 0 1px #70697d;
}

/* Feature-card icon wrapper uses .h1 only for sizing; the icon color must
   follow the surrounding section color (text-primary) and not the global
   h1 heading color. */
.sesam-pages-feature-card .h1 {
  color: inherit;
}
