/**
 * UNIMART public landing — full-bleed campus hero, brand-first.
 * Palette: orange · slate · white (official brand tokens).
 * Type: Fraunces (display) · Manrope (UI)
 */

body.landing-brand {
  --ul-orange: var(--unimart-orange, #f68b1e);
  --ul-orange-deep: var(--unimart-orange-deep, #e96703);
  --ul-slate: var(--unimart-slate, #2c3e50);
  --ul-text: var(--unimart-text, #1a1a2e);
  --ul-muted: var(--unimart-text-muted, #6b7280);
  --ul-bg: var(--unimart-bg, #ffffff);
  --ul-bg-soft: #f5f6f8;
  --ul-border: #e8e8e8;
  --ul-radius: 12px;
  --ul-radius-sm: 8px;
  --ul-font: var(--unimart-font-sans, "Manrope", sans-serif);
  --ul-display: var(--unimart-font-display, "Fraunces", Georgia, serif);
  background: var(--ul-bg);
  color: var(--ul-text);
  font-family: var(--ul-font);
}

body.landing-brand .content-wrapper.full-width,
body.landing-brand .content-wrapper.full-width .content-inner,
body.landing-brand .content-inner {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin: 0 !important;
}

body.landing-brand .partners-section,
body.landing-brand .footer,
body.landing-brand .dm-fab {
  display: none !important;
}

.ul-wrap {
  width: min(1100px, calc(100% - 2rem));
  margin-inline: auto;
}

.ul-accent {
  color: var(--ul-orange) !important;
  font-style: italic;
  font-weight: 700;
}

/* ── Hero ── */
.ul-hero {
  position: relative;
  min-height: min(88dvh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.ul-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.ul-hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.03);
  animation: ulHeroIn 1.1s ease-out both;
  background: #2c3e50;
}

.ul-hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      100deg,
      rgba(44, 62, 80, 0.68) 0%,
      rgba(44, 62, 80, 0.38) 42%,
      rgba(246, 139, 30, 0.18) 100%
    ),
    linear-gradient(
      180deg,
      rgba(44, 62, 80, 0.18) 0%,
      rgba(44, 62, 80, 0.12) 40%,
      rgba(44, 62, 80, 0.48) 100%
    );
}

.ul-hero__frame {
  position: relative;
  z-index: 1;
  width: min(920px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Open stage — no glass card; type sits on the full-bleed scene */
.ul-hero__stage {
  width: 100%;
  max-width: 40rem;
  text-align: center;
}

body.landing-brand .ul-hero h1.ul-hero__brand,
.ul-hero__brand {
  margin: 0 auto 0.85rem !important;
  font-family: var(--ul-display) !important;
  font-size: clamp(2.35rem, 7vw, 4.1rem) !important;
  font-weight: 700 !important;
  letter-spacing: -0.04em !important;
  line-height: 1.05 !important;
  color: #ffffff !important;
  text-shadow: 0 2px 28px rgba(20, 24, 32, 0.45);
  animation: ulBrandIn 0.85s ease-out both;
}

.ul-hero__lead {
  margin: 0 auto 1.65rem;
  max-width: 28rem;
  font-family: var(--ul-font);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.92) !important;
  text-shadow: 0 1px 16px rgba(20, 24, 32, 0.4);
  text-align: center;
  animation: ulLeadIn 0.9s ease-out 0.12s both;
}

/* Legacy selectors kept for any residual markup */
.ul-hero__eyebrow,
.ul-hero__ask,
body.landing-brand .ul-hero h1.ul-hero__title,
.ul-hero__title {
  display: none;
}

@keyframes ulBrandIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes ulLeadIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.ul-hero__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ul-hero__convert {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  animation: ulLeadIn 0.95s ease-out 0.22s both;
}

.ul-hero__search {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 3.35rem;
  padding: 0.3rem 0.35rem 0.3rem 1.15rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 24px rgba(20, 24, 32, 0.18);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.15s ease, transform 0.15s ease;
}

.ul-hero__convert.is-leaving .ul-hero__search {
  opacity: 0.72;
  transform: scale(0.985);
  pointer-events: none;
}

.ul-hero__search:focus-within {
  border-color: rgba(246, 139, 30, 0.7);
  box-shadow: 0 8px 24px rgba(20, 24, 32, 0.2);
}

.ul-hero__search > .fa-magnifying-glass,
.ul-hero__search > i.fas.fa-magnifying-glass {
  flex: 0 0 auto;
  color: #8a93a0;
  font-size: 0.95rem;
}

.ul-hero__search-input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--ul-font);
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a2e;
  line-height: 1.3;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.ul-hero__search-input:focus,
.ul-hero__search-input:focus-visible {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.ul-hero__search-input::placeholder {
  color: #8a93a0;
  font-weight: 500;
  transition: opacity 0.35s ease;
}

.ul-hero__search-input.is-rotating-out::placeholder {
  opacity: 0;
}

.ul-hero__send {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  width: auto;
  height: 2.65rem;
  padding: 0 1.1rem;
  border: none;
  border-radius: 999px;
  background: var(--ul-orange);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.ul-hero__send:hover,
.ul-hero__send:focus-visible {
  background: var(--ul-orange-deep);
  transform: translateY(-1px);
  outline: none;
}

.ul-hero__send-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  font-family: var(--ul-font);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.ul-hero__send-face.is-rotating-out {
  opacity: 0;
  transform: scale(0.88);
}

.ul-hero__hint {
  margin: 1rem 0 0;
  padding: 0 0.5rem;
  font-family: var(--ul-font);
  font-size: 0.86rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.78) !important;
  text-shadow: 0 1px 10px rgba(20, 24, 32, 0.45);
  text-align: center;
}

/* Landing: keep secondary nav strip, hide its search */
body.landing-brand .search-filter-bar .search-container,
body.landing-brand .search-filter-bar--hybrid .search-container {
  display: none !important;
}

body.landing-brand .search-filter-bar,
body.landing-brand .search-filter-bar--hybrid {
  min-height: 2.75rem;
  --search-bar-height: 2.75rem;
}

@media (max-width: 991.98px) {
  body.landing-brand.has-hybrid-header.header-has-search {
    padding-top: calc(var(--top-nav-height-mobile, 48px) + 2.75rem) !important;
  }

  body.landing-brand.has-hybrid-header:not(.header-has-search) {
    padding-top: var(--top-nav-height-mobile, 48px) !important;
  }
}

/* Guests: hide confidence menus (desktop tabs + mobile bottom nav) */
body.landing-guest.has-hybrid-header .top-nav .nav-links--layers,
body.landing-guest .top-nav .nav-links--layers,
body.landing-guest .unimart-nav--confidence,
body.landing-guest .search-filter-bar,
body.landing-guest .search-filter-bar--hybrid,
body.landing-guest .mobile-category-nav {
  display: none !important;
}

body.landing-guest.has-hybrid-header,
body.landing-guest.has-confidence-nav.has-unimart-nav {
  --mobile-bottom-nav-height: 0px;
  padding-bottom: 0 !important;
}

@media (max-width: 991.98px) {
  body.landing-guest.has-hybrid-header.header-has-search,
  body.landing-guest.has-hybrid-header:not(.header-has-search) {
    padding-top: var(--top-nav-height-mobile, 48px) !important;
  }
}

.ul-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

.ul-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--ul-radius-sm);
  padding: 0.82rem 1.3rem;
  font-size: 0.94rem;
  font-weight: 700;
  font-family: var(--ul-font);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ul-btn--primary {
  background: linear-gradient(135deg, var(--ul-orange), var(--ul-orange-deep));
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(233, 103, 3, 0.38);
}

.ul-btn--primary:hover {
  background: linear-gradient(135deg, var(--ul-orange-deep), #d45a02);
  color: #fff !important;
  transform: translateY(-1px);
}

.ul-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.55);
}

.ul-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff !important;
}

.ul-btn--ghost-dark {
  background: transparent;
  color: var(--ul-slate) !important;
  border-color: var(--ul-border);
}

.ul-btn--ghost-dark:hover {
  border-color: var(--ul-slate);
  color: var(--ul-slate) !important;
}

/* ── Mobile / tablet hero — full-viewport stage; rest on scroll ── */
@media (max-width: 900px) {
  .ul-hero {
    min-height: calc(
      100dvh
      - var(--top-nav-height-mobile, 48px)
      - var(--mobile-bottom-nav-height, 64px)
      - env(safe-area-inset-bottom, 0px)
    );
    min-height: calc(
      100svh
      - var(--top-nav-height-mobile, 48px)
      - var(--mobile-bottom-nav-height, 64px)
      - env(safe-area-inset-bottom, 0px)
    );
    align-items: center;
    justify-content: center;
  }

  body.landing-brand:not(.landing-guest).header-has-search .ul-hero {
    min-height: calc(
      100dvh
      - var(--top-nav-height-mobile, 48px)
      - 2.75rem
      - var(--mobile-bottom-nav-height, 64px)
      - env(safe-area-inset-bottom, 0px)
    );
    min-height: calc(
      100svh
      - var(--top-nav-height-mobile, 48px)
      - 2.75rem
      - var(--mobile-bottom-nav-height, 64px)
      - env(safe-area-inset-bottom, 0px)
    );
  }

  .ul-hero__frame {
    width: min(100%, calc(100% - 1.5rem));
    padding: 1.25rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .ul-hero__lead {
    font-size: 0.98rem;
    max-width: 22rem;
    margin-bottom: 1.35rem;
  }

  .ul-hero__convert {
    max-width: 100%;
  }

  .ul-hero__send {
    min-width: 3.25rem;
    height: 2.5rem;
    padding: 0 0.8rem;
  }

  .ul-hero__hint {
    margin-top: 0.95rem;
    font-size: 0.82rem;
  }

  .ul-hero__shade {
    background:
      linear-gradient(
        180deg,
        rgba(44, 62, 80, 0.22) 0%,
        rgba(44, 62, 80, 0.48) 50%,
        rgba(44, 62, 80, 0.82) 100%
      );
  }
}

@media (max-width: 640px) {
  .ul-hero__frame {
    padding: 1rem 0 1.25rem;
  }

  .ul-hero__lead {
    max-width: none;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }

  .ul-hero__hint {
    margin-top: 1rem;
    font-size: 0.78rem;
  }

  .ul-hero__search {
    min-height: 3.15rem;
    padding-left: 0.9rem;
  }

  .ul-hero__search-input {
    font-size: 16px;
  }

  .ul-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ul-hero__search {
    min-height: 3.15rem;
    padding-left: 0.85rem;
  }

  .ul-btn {
    width: 100%;
    min-height: 48px;
  }

  .ul-wrap {
    width: min(100%, calc(100% - 1.5rem));
  }

  .ul-agent { padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .ul-paths { padding-top: 2.5rem; padding-bottom: 2.75rem; }
  .ul-how { padding-top: 2.75rem; padding-bottom: 2.75rem; }
  .ul-close { padding-top: 2.75rem; padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px)); }

  .ul-close .ul-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ul-proof {
    padding: 1rem 0;
  }

  .ul-proof__row {
    gap: 0.85rem 1rem;
  }

  .ul-proof__item {
    flex: 1 1 calc(33.33% - 0.85rem);
    min-width: 5rem;
  }
}

@media (max-width: 380px) {
  .ul-hero__frame {
    width: min(100%, calc(100% - 1rem));
  }

  .ul-hero__hint {
    margin-top: 0.95rem;
  }

  .ul-proof__item {
    flex: 1 1 calc(50% - 0.75rem);
  }
}

/* ── Proof ── */
.ul-proof {
  background: var(--ul-bg-soft);
  border-bottom: 1px solid var(--ul-border);
  padding: 1.35rem 0;
}

.ul-proof__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  justify-content: center;
  text-align: center;
}

.ul-proof__item {
  flex: 1 1 6.5rem;
  min-width: 5.5rem;
}

.ul-proof__item strong {
  display: block;
  font-family: var(--ul-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ul-slate);
}

.ul-proof__item span {
  font-size: 0.78rem;
  color: var(--ul-muted);
  text-transform: lowercase;
}

.ul-section-title {
  margin: 0 0 0.5rem;
  font-family: var(--ul-display);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ul-text);
}

.ul-section-lead {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ul-muted);
  max-width: 42ch;
}

.ul-agent {
  padding: 4rem 0;
  background: var(--ul-bg);
}

.ul-agent__grid {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .ul-agent__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
  }
}

.ul-agent__panel {
  background: var(--ul-slate);
  color: #fff;
  border-radius: 16px;
  padding: 1.35rem 1.4rem;
}

.ul-agent__panel-label {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.ul-agent__panel-line {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  line-height: 1.4;
  padding-left: 0.85rem;
  border-left: 2px solid var(--ul-orange);
}

.ul-agent__panel-line:last-child {
  margin-bottom: 0;
}

.ul-paths {
  padding: 3.5rem 0 4rem;
  background: var(--ul-bg-soft);
}

.ul-paths__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--ul-border);
}

.ul-paths__list a,
.ul-paths__row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--ul-border);
  text-decoration: none;
  color: inherit;
}

@media (min-width: 640px) {
  .ul-paths__list a,
  .ul-paths__row {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

.ul-paths__list a:hover strong,
.ul-paths__row:hover strong {
  color: var(--ul-orange-deep);
}

.ul-paths__list strong {
  font-family: var(--ul-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ul-slate);
  flex: 0 0 auto;
  min-width: 6.5rem;
}

.ul-paths__list span {
  font-size: 0.9rem;
  color: var(--ul-muted);
}

.ul-paths__items {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  text-align: left;
}

@media (min-width: 640px) {
  .ul-paths__items {
    text-align: right;
    align-items: flex-end;
  }
}

.ul-paths__items > span {
  display: block;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ul-muted);
}

.ul-how {
  padding: 4rem 0;
  background: var(--ul-bg);
}

.ul-how__steps {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .ul-how__steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

.ul-how__num {
  display: block;
  font-family: var(--ul-font);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ul-orange);
  margin-bottom: 0.4rem;
}

.ul-how__steps strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--ul-slate);
}

.ul-how__steps p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ul-muted);
}

.ul-close {
  padding: 4rem 0 5rem;
  background: var(--ul-slate);
  color: #fff;
}

.ul-close__inner {
  text-align: center;
}

.ul-close__title {
  margin: 0 0 0.5rem;
  font-family: var(--ul-display);
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff !important;
}

.ul-close__lead {
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.78);
}

.ul-close .ul-hero__actions {
  justify-content: center;
}

.ul-close__signin {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
}

.ul-close__signin a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@keyframes ulHeroIn {
  from { transform: scale(1.06); opacity: 0.8; }
  to { transform: scale(1.03); opacity: 1; }
}

.landing-brand .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.landing-brand .ul-hero .reveal,
.landing-brand .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .ul-hero__photo { animation: none; }
  .landing-brand .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Open hero — brand owns the first paint */
.ul-hero--open .ul-hero__search {
  border-radius: 14px;
  animation: ulLeadIn 0.95s ease-out 0.22s both;
}

.ul-hero--open .ul-hero__hint {
  margin-top: 1rem;
}

/* Below-fold layer browse — text links, not hero pills */
.ul-explore {
  padding: 3.25rem 0 2.5rem;
  background: var(--ul-bg);
  border-bottom: 1px solid var(--ul-border);
}

.ul-explore__list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.75rem 0 0;
  padding: 0;
  border-top: 1px solid var(--ul-border);
}

.ul-explore__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1.25rem;
  padding: 1.05rem 0.15rem;
  border-bottom: 1px solid var(--ul-border);
  text-decoration: none;
  color: inherit;
  transition: color 0.15s ease;
}

.ul-explore__link strong {
  font-family: var(--ul-font);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ul-slate);
}

.ul-explore__link span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ul-muted);
}

.ul-explore__link:hover strong,
.ul-explore__link:focus-visible strong {
  color: var(--ul-orange-deep);
}

@media (prefers-reduced-motion: reduce) {
  body.landing-brand .ul-hero h1.ul-hero__brand,
  .ul-hero__brand,
  .ul-hero__lead,
  .ul-hero__convert,
  .ul-hero--open .ul-hero__search {
    animation: none;
  }
}

@media (max-width: 640px) {
  .ul-hero--open .ul-hero__frame {
    width: min(100%, calc(100% - 1.5rem));
    padding-block: 2.5rem;
  }

  body.landing-brand .ul-hero h1.ul-hero__brand,
  .ul-hero__brand {
    font-size: clamp(2.1rem, 11vw, 3rem) !important;
  }

  .ul-explore {
    padding: 2.5rem 0 2rem;
  }
}
