/*
 * Hytrans layout/theme (app pages)
 * ------------------------------
 * This file is intentionally limited to Hytrans-specific components.
 * Frame + bootstrap-like utilities live in hytrans_bootstrap_layout.css.
 */

:root {
  --ht-blue-dark: #0f4b8a;
  --ht-muted: #6b7280;

  --ht-radius-lg: 14px;
  --ht-radius-md: 10px;
  --ht-shadow-tile: 0 10px 20px rgba(0,0,0,0.15);
}

/* Keep pages consistent */
.ht-page-content {
  padding-left: 18px;
  padding-right: 18px;
}

/* =============================
   Brand + hero (Dashboard)
   ============================= */
.ht-header {
  position: relative;
  padding: 18px 18px 0;
  min-height: 210px;
}

.ht-brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  z-index: 2;
  position: relative;
}

.ht-brand__link {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  text-decoration: none;
}

.ht-brand__logo {
  height: 44px;
  width: auto;
  display: block;
}

/* Important: prevent gigantic wordmarks (this broke the header previously) */
.ht-brand__wordmark {
  height: 38px;
  width: auto;
  display: block;
  opacity: 0.9;
}

@media (max-width: 520px) {
  .ht-brand__logo { height: 36px; }
  .ht-brand__wordmark { height: 30px; }
}

.ht-hero {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 420px;
  height: 150px;
  z-index: 1;
}

/* light grey background shape behind image */
.ht-hero__bg {
  position: absolute;
  inset: 0;
  background: #e7e7e7;
  border-radius: 0 0 0 40px;
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 30%);
}

.ht-hero__image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 0 40px;
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 30%);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

@media (max-width: 960px) {
  .ht-hero { width: 360px; height: 135px; }
}

@media (max-width: 720px) {
  .ht-header { min-height: 190px; }
  .ht-hero { width: 300px; height: 118px; }
}

@media (max-width: 520px) {
  .ht-header { min-height: 165px; }
  .ht-hero { width: 220px; height: 92px; }
  .ht-hero__bg,
  .ht-hero__image {
    border-radius: 0 0 0 28px;
    clip-path: polygon(22% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 36%);
  }
}

/* =============================
   App hero (Account)
   ============================= */
.ht-app-hero {
  padding: 18px 18px 0;
  margin-bottom: 24px;
}

.ht-app-hero__brand {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.ht-app-hero__logo {
  height: 44px;
  width: auto;
  display: block;
}

.ht-app-hero__wordmark {
  height: 38px;
  width: auto;
  display: block;
}

.ht-app-hero__art-wrap {
  position: relative;
  width: 100%;
}

.ht-app-hero__bg {
  position: absolute;
  inset: 0;
  background: #e7e7e7;
  border-radius: 0 0 0 40px;
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 30%);
}

.ht-app-hero__art {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  background-size: cover;
  background-position: center;
  border-radius: 0 0 0 40px;
  clip-path: polygon(18% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 30%);
  box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

@media (max-width: 520px) {
  .ht-app-hero__logo { height: 36px; }
  .ht-app-hero__wordmark { height: 30px; }
  .ht-app-hero__bg,
  .ht-app-hero__art {
    border-radius: 0 0 0 28px;
    clip-path: polygon(22% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 36%);
  }
}

/* Generic button used across pages */
.ht-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 22px;
  border: 2px solid var(--ht-red);
  border-radius: 10px;
  background: #fff;
  color: var(--ht-text);
  font-weight: 700;
  text-decoration: none;
}

.ht-cta:focus,
.ht-cta:hover {
  color: var(--ht-text);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* ------------------------------------------------------------
 * Bottom navigation (shared)
 * Spec:
 * - bar: #CCC9C8
 * - active tile: #14539B
 * - icons: FontAwesome (35px), white
 * - labels: Acumin Pro Light 12.5px, white
 * ------------------------------------------------------------ */
.ht-page--mobile{
  --hyt-bottom-nav-h: 110px;
}

.ht-mobile__content{
  /* keep content above sticky bottom-nav */
  padding-bottom: calc(var(--hyt-bottom-nav-h) + env(safe-area-inset-bottom, 0px));
}

.ht-bottom-nav{
  position: sticky;
  bottom: 0;
  z-index: 50;
  background: #CCC9C8;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.ht-bottom-nav__list{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: var(--hyt-bottom-nav-h);
}

.ht-bottom-nav__item{
  height: 100%;
}

.ht-bottom-nav__link{
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;

  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.04em;

  color: #FFFFFF;
  font-family: var(--hyt-font-base);
  font-weight: 300; /* Light */
  font-size: 12.5px;
  line-height: 1.05;
}

.ht-bottom-nav__item.is-active .ht-bottom-nav__link{
  background: #14539B;
}

.ht-bottom-nav__icon{
  font-size: 35px;
  line-height: 1;
  color: #FFFFFF;
  display: block;
}

.ht-bottom-nav__icon-image{
  width: 35px;
  height: 35px;
  object-fit: contain;
  display: block;
}

.ht-bottom-nav__label{
  display: block;
  text-align: center;
  padding: 0 4px;
  white-space: nowrap;
}
