/* assets/styles/app.css */

/* =========================================================
   Fonts (Acumin Pro / Acumin Pro ExtraCondensed)
   ========================================================= */

@font-face {
  font-family: 'Acumin Pro';
  src: url("../fonts/AcuminPro-Light-G8zvs6U.woff2") format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Acumin Pro';
  src: url("../fonts/AcuminPro-Regular-x25rxYO.woff2") format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Acumin Pro';
  src: url("../fonts/AcuminPro-Medium-lhcJAYH.woff2") format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Acumin Pro ExtraCondensed';
  src: url("../fonts/AcuminProExtraCond-Semibold-u9Z6DpS.woff2") format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Acumin Pro ExtraCondensed';
  src: url("../fonts/AcuminProExtraCond-Bold--ePTZW4.woff2") format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Acumin Pro ExtraCondensed';
  src: url("../fonts/AcuminProExtraCond-BoldItalic-u9nmtv3.woff2") format('woff2');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* =========================================================
   HyTrans Mobile UI – basis tokens + component classes
   (Bootstrap blijft geladen, maar we gebruiken eigen classes)
   ========================================================= */

:root{
  --ht-blue:#14539B;
  --ht-red:#D50C1A;
  --ht-grey:#CCC9C8;
  --ht-success:#238B45;
  --ht-warn:#F26C21;
  --ht-link:#2F8EEC;

  --ht-text:#0b0b0b;
  --ht-shadow: 0 4px 10px rgba(0,0,0,.12);
  --ht-radius: 6px;
}

.ht-page{
  background:#fff;
  font-family: 'Acumin Pro', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.ht-page--mobile{ min-height:100vh; }
.ht-mobile{ min-height:100vh; display:flex; flex-direction:column; }
.ht-mobile__content{ flex:1; padding-bottom: 110px; }

.ht-sr-only{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}

/* ---------- Auth hero (V-cutout) ---------- */
.ht-auth-hero{
  width:100%;
}

/* Auth-only styling (prevents regressions on dashboard/account) */
.ht-page--auth .ht-auth-hero__media{
  position: relative;
  height: 420px;
  overflow: hidden;
  background: #000;

  /* V-cutout (photo is clipped; white background shows below) */
  -webkit-clip-path: polygon(0 0, 100% 0, 100% var(--ht-auth-hero-edge, 56%), 50% 100%, 0 var(--ht-auth-hero-edge, 56%));
  clip-path: polygon(0 0, 100% 0, 100% var(--ht-auth-hero-edge, 56%), 50% 100%, 0 var(--ht-auth-hero-edge, 56%));
}

.ht-page--auth .ht-auth-hero__image{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ht-page--auth .ht-auth-hero__gradient{
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(20,83,155,1) 0%, rgba(20,83,155,0) 70%);
  pointer-events:none;
}

.ht-page--auth .ht-auth-hero__logo{
  position: absolute;
  top: 22px;
  left: 22px;
  height: 72px;
  width: auto;
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.25));
}

/* ---------- Auth form ---------- */
.ht-page--auth .ht-auth{
  padding: 28px 0 32px;
  text-align: center;
}

.ht-page--auth .ht-auth__title{
  margin: 0 0 22px;
  font-family: 'Acumin Pro ExtraCondensed', 'Acumin Pro', system-ui, sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: 40px;
  color: #000;
}

/* Title row (e.g. Login) + "Hytrans App" install button */
.ht-page--auth .ht-auth__title-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin: 0 auto 22px;
  flex-wrap: wrap;
}
.ht-page--auth .ht-auth__title-row .ht-auth__title{ margin: 0; }

/* Make the install button smaller than the primary/secondary auth buttons */
.ht-page--auth .ht-auth__app-btn.ht-btn{
  width: auto;
  max-width: none;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 12px;
  background: #14539B;
  border: 1px solid #14539B;
  color: #FFFFFF;
  font-family: 'Acumin Pro ExtraCondensed', 'Acumin Pro', system-ui, sans-serif;
  font-weight: 700;
  font-size: 25px;
  line-height: 1;
  box-shadow: var(--ht-shadow);
}
.ht-page--auth .ht-auth__app-btn-icon{
  height: 22px;
  width: auto;
  margin-right: 8px;
  flex: 0 0 auto;
}

/* iOS PWA install helper (banner + modal). Hidden by default; toggled via JS. */
.ht-ios-install-banner{
  max-width: 420px;
  margin: 10px auto 18px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(20,83,155,.20);
  background: rgba(20,83,155,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ht-ios-install-banner__left{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.ht-ios-install-banner__icon{
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}
.ht-ios-install-banner__text{ min-width: 0; }
.ht-ios-install-banner__title{
  font-family: 'Acumin Pro ExtraCondensed', 'Acumin Pro', system-ui, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: #14539B;
}
.ht-ios-install-banner__subtitle{
  margin-top: 2px;
  font-size: 13px;
  line-height: 1.2;
  color: rgba(0,0,0,.70);
}
.ht-ios-install-banner__right{
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.ht-ios-install-banner__btn{
  border: 1px solid #14539B;
  background: #14539B;
  color: #FFFFFF;
  border-radius: 10px;
  padding: 8px 10px;
  font-family: 'Acumin Pro ExtraCondensed', 'Acumin Pro', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.ht-ios-install-banner__close{
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(20,83,155,.25);
  background: #FFFFFF;
  color: #14539B;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

/* Modal */
.ht-ios-install-modal{
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: block;
}
.ht-ios-install-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
}
.ht-ios-install-modal__sheet{
  position: absolute;
  left: 50%;
  top: 12%;
  transform: translateX(-50%);
  width: min(520px, calc(100% - 24px));
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.25);
  padding: 14px 14px 12px;
}
.ht-ios-install-modal__x{
  position: absolute;
  right: 10px;
  top: 8px;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.10);
  background: #FFFFFF;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}
.ht-ios-install-modal__header{
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 36px;
}
.ht-ios-install-modal__icon{
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
}
.ht-ios-install-modal__title{
  font-family: 'Acumin Pro ExtraCondensed', 'Acumin Pro', system-ui, sans-serif;
  font-weight: 700;
  font-size: 26px;
  line-height: 1;
  color: #14539B;
}
.ht-ios-install-modal__subtitle{
  margin-top: 4px;
  font-size: 14px;
  color: rgba(0,0,0,.70);
}
.ht-ios-install-modal__content{
  margin-top: 10px;
}
.ht-ios-install-steps__list{
  margin: 0;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.35;
}
.ht-ios-install-steps__list li{ margin: 8px 0; }
.ht-ios-install-modal__footer{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}
.ht-ios-install-modal__primary,
.ht-ios-install-modal__secondary{
  border-radius: 12px;
  padding: 10px 12px;
  font-family: 'Acumin Pro ExtraCondensed', 'Acumin Pro', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.ht-ios-install-modal__primary{
  border: 1px solid #14539B;
  background: #14539B;
  color: #FFFFFF;
}
.ht-ios-install-modal__secondary{
  border: 1px solid rgba(0,0,0,.15);
  background: #FFFFFF;
  color: rgba(0,0,0,.75);
}
.ht-auth__error{
  margin: 0 auto 14px;
  max-width: 420px;
  border: 1px solid rgba(213,12,26,.35);
  background: rgba(213,12,26,.06);
  padding: 10px 12px;
  border-radius: 8px;
  color: #7a0b13;
  text-align:left;
}
.ht-page--auth .ht-auth__form{
  display:flex;
  flex-direction:column;
  gap: 18px;
  align-items:center;
}
.ht-field{ width:100%; max-width: 420px; }

/* Shared input baseline (used e.g. in the contact modal) */
.ht-input{
  width:100%;
  border: 1px solid var(--ht-blue);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  box-shadow: var(--ht-shadow);
  outline: none;
  font-family: 'Acumin Pro', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #000;
}

.ht-input::placeholder{ color:#b8b8b8; }

.ht-input:focus{
  box-shadow: 0 0 0 3px rgba(20,83,155,.18), var(--ht-shadow);
}

.ht-page--auth .ht-input{
  width:100%;
  border: 1px solid var(--ht-blue);
  border-radius: 14px;
  padding: 16px 18px;
  font-family: 'Acumin Pro ExtraCondensed', 'Acumin Pro', system-ui, sans-serif;
  font-weight: 600;
  font-size: 25px;
  color: #000;
  box-shadow: var(--ht-shadow);
  outline: none;
}

.ht-page--auth .ht-input::placeholder{
  color: var(--ht-grey);
}

.ht-page--auth .ht-input:focus{
  box-shadow: 0 0 0 3px rgba(20,83,155,.18), var(--ht-shadow);
}

.ht-page--auth .ht-auth__forgot{
  width:100%;
  max-width:420px;
  text-align:center;
  margin-top: -6px;
}

/* Remember-me (login) */
.ht-page--auth .ht-auth__remember{
  width:100%;
  max-width:420px;
  margin: 10px auto 6px;
  text-align:left;
  padding: 0 6px;
}
.ht-page--auth .ht-remember{
  display:flex;
  gap: 10px;
  align-items:center;
  cursor:pointer;
  user-select:none;
  font-family: 'Acumin Pro ExtraCondensed', 'Acumin Pro', system-ui, sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #000;
}
.ht-page--auth .ht-remember__checkbox{
  width: 18px;
  height: 18px;
  accent-color: var(--ht-blue);
}


.ht-page--auth .ht-link{
  font-family: 'Acumin Pro', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 300;
  font-size: 17.5px;
  color: var(--ht-blue);
  text-decoration: underline;
}

.ht-page--auth .ht-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width: min(360px, 100%);
  max-width: 420px;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 14px;
  font-family: 'Acumin Pro ExtraCondensed', 'Acumin Pro', system-ui, sans-serif;
  font-weight: 700;
  font-size: 25px;
  text-decoration:none;
  box-shadow: var(--ht-shadow);
}
.ht-page--auth .ht-btn--primary{
  background: var(--ht-red);
  color:#fff;
  border: 1px solid var(--ht-red);
}
.ht-page--auth .ht-btn--secondary{
  background: var(--ht-grey);
  color:#fff;
  border: 1px solid var(--ht-grey);
}
.ht-page--auth .ht-auth__btn{ margin-top: 8px; }

/* ---------- Buttons (shared) ---------- */
.ht-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration:none;
  cursor:pointer;
  border: 1px solid transparent;
  box-shadow: var(--ht-shadow);
}

.ht-btn--primary{
  background: var(--ht-red);
  color:#fff;
  border-color: var(--ht-red);
}

.ht-btn--secondary{
  background: var(--ht-grey);
  color:#fff;
  border-color: var(--ht-grey);
}

.ht-btn--outline{
  background: transparent;
  color: var(--ht-text);
  border-color: var(--ht-red);
}

/* ---------- App hero (logo links, foto rechts) ---------- */
.ht-app-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 18px 18px 10px;
}
.ht-app-hero__left{
  flex: 0 0 auto;
}
.ht-app-hero__logo{
  height: 48px;
  width:auto;
  display:block;
}
.ht-app-hero__photo{
  flex: 1 1 auto;
  height: 150px;
  background-size: cover;
  background-position:center;
  border-bottom-left-radius: 24px;
  overflow:hidden;
  -webkit-clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 0 42%);
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%, 0 42%);
}
.ht-app-hero__photo--placeholder{
  background: #e9eef6;
}

/* ---------- Bottom nav (5 tabs) ---------- */
/* ---------- Bottom nav ---------- */
.ht-bottom-nav{
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  background: var(--ht-grey);
  height: 88px;
  border-top: 1px solid rgba(0,0,0,.08);
}

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

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

.ht-bottom-nav__link{
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color:#fff;
  text-decoration:none;
  font-size: 12.5px;
  font-family: 'Acumin Pro Light','Acumin Pro', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.ht-bottom-nav__link:visited{ color:#fff; }
.ht-bottom-nav__link:hover{ color:#fff; text-decoration:none; }

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

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

.ht-bottom-nav__label{
  line-height: 1;
}

.ht-bottom-nav__item.is-active .ht-bottom-nav__link{
  background: var(--ht-blue);
}

/* ---------- Modal ---------- */
.ht-modal{
  position:fixed;
  inset:0;
  display:none;
  z-index: 9999;
}
.ht-modal.is-open{ display:block; }
.ht-modal__backdrop{
  position:absolute;
  inset:0;
  background: rgba(0,0,0,.4);
}
.ht-modal__dialog{
  position:absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100% - 36px));
  background:#fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.ht-modal__close{
  position:absolute;
  top: 12px;
  right: 12px;
  border:0;
  background: transparent;
  font-size: 18px;
}
.ht-modal__title{
  margin: 4px 0 14px;
  font-weight: 800;
  font-style: italic;
  font-size: 28px;
}
.ht-label{ display:block; font-size: 14px; margin-bottom: 6px; }
.ht-input--textarea{ min-height: 120px; }
.ht-modal-open{ overflow:hidden; }
