/*
  Tanktel Public Site Shared Styles
  Purpose: common typography, navigation, footer, buttons and layout polish
  Use on public .html pages after Bootstrap and Mobirise CSS:
  <link rel="stylesheet" href="assets/css/tanktel-public.css">
*/

:root{
  --tt-ink:#172033;
  --tt-muted:#5f6b7a;
  --tt-blue:#0b4a6f;
  --tt-blue-dark:#083954;
  --tt-green:#198754;
  --tt-light:#f5f7fb;
  --tt-border:rgba(15,23,42,.12);
  --tt-shadow:0 14px 40px rgba(15,23,42,.10);
  --tt-radius:22px;
}

html{
  scroll-behavior:smooth;
}

body{
  font-family:"Jost",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--tt-ink);
  background:#fff;
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

body.has-fixed-nav{
  padding-top:4.7rem;
}

a{
  color:var(--tt-blue);
}

a:hover{
  color:var(--tt-blue-dark);
}

/* =========================
   PUBLIC NAVIGATION
   ========================= */

#menu1-2b.menu .navbar,
.tt-public-nav .navbar{
  background:#fff !important;
  box-shadow:0 1px 0 rgba(11,74,111,.18);
  border-bottom:1px solid rgba(15,23,42,.08);
  z-index:1040;
}

#menu1-2b .container-fluid,
.tt-public-nav .container-fluid{
  padding-left:1.25rem;
  padding-right:1.25rem;
}

#menu1-2b .navbar-brand,
.tt-public-nav .navbar-brand{
  display:flex;
  align-items:center;
  gap:.5rem;
}

#menu1-2b .navbar-brand img,
.tt-public-nav .navbar-brand img{
  height:3rem !important;
  width:auto;
}

#menu1-2b .navbar-collapse,
.tt-public-nav .navbar-collapse{
  justify-content:flex-end !important;
}

#menu1-2b .navbar-nav,
.tt-public-nav .navbar-nav{
  margin-left:auto !important;
  align-items:center;
}

#menu1-2b .navbar-nav .nav-link.link.text-black.text-primary.display-4,
#menu1-2b .navbar-nav .nav-link,
#menu1-2b .navbar-caption,
.tt-public-nav .navbar-nav .nav-link,
.tt-public-nav .navbar-caption{
  font-family:"Jost",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif !important;
  color:#212529 !important;
  font-size:1.03rem !important;
  font-weight:600 !important;
  line-height:1.2 !important;
  letter-spacing:-.01em !important;
  padding:.65rem .75rem !important;
}

#menu1-2b .navbar-nav .nav-link:hover,
#menu1-2b .navbar-nav .nav-link:focus,
.tt-public-nav .navbar-nav .nav-link:hover,
.tt-public-nav .navbar-nav .nav-link:focus{
  color:var(--tt-blue) !important;
}

#menu1-2b .dropdown-menu,
.tt-public-nav .dropdown-menu{
  border:1px solid rgba(15,23,42,.12);
  border-radius:14px;
  box-shadow:0 16px 35px rgba(15,23,42,.14);
  padding:.45rem;
}

#menu1-2b .dropdown-menu .dropdown-item.display-4,
#menu1-2b .dropdown-menu .dropdown-item,
.tt-public-nav .dropdown-menu .dropdown-item{
  font-family:"Jost",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif !important;
  color:#212529 !important;
  font-size:1rem !important;
  font-weight:500 !important;
  border-radius:10px;
  padding:.55rem .75rem;
}

#menu1-2b .dropdown-menu .dropdown-item:hover,
#menu1-2b .dropdown-menu .dropdown-item:focus,
.tt-public-nav .dropdown-menu .dropdown-item:hover,
.tt-public-nav .dropdown-menu .dropdown-item:focus{
  background:#eef5f9;
  color:var(--tt-blue) !important;
}

#menu1-2b .mbr-iconfont,
.tt-public-nav .mbr-iconfont{
  font-size:1rem !important;
  vertical-align:text-bottom;
}

/* Neutralise Mobirise display classes inside nav */
#menu1-2b .display-1,
#menu1-2b .display-2,
#menu1-2b .display-3,
#menu1-2b .display-4,
#menu1-2b .display-5,
#menu1-2b .display-6,
#menu1-2b .display-7,
.tt-public-nav .display-1,
.tt-public-nav .display-2,
.tt-public-nav .display-3,
.tt-public-nav .display-4,
.tt-public-nav .display-5,
.tt-public-nav .display-6,
.tt-public-nav .display-7{
  font-size:inherit !important;
  line-height:1.2 !important;
  margin:0 !important;
}

/* Bootstrap badge used by Driver Login */
#menu1-2b .badge,
.tt-public-nav .badge{
  font-size:.72rem;
  font-weight:700;
  border-radius:999px;
  vertical-align:middle;
}

/* Mobile nav tidy */
@media (max-width:991.98px){
  #menu1-2b .navbar-nav,
  .tt-public-nav .navbar-nav{
    align-items:flex-start;
    padding:.75rem 0;
  }

  #menu1-2b .navbar-nav .nav-link,
  .tt-public-nav .navbar-nav .nav-link{
    width:100%;
    padding:.75rem 0 !important;
  }

  #menu1-2b .dropdown-menu,
  .tt-public-nav .dropdown-menu{
    box-shadow:none;
    border-radius:12px;
    margin:.25rem 0 .75rem;
    width:100%;
  }
}

/* =========================
   SHARED PAGE LAYOUT
   ========================= */

.tt-section{
  padding:4.5rem 0;
}

.tt-section-sm{
  padding:3rem 0;
}

.tt-section-light{
  background:var(--tt-light);
}

.tt-hero{
  background:linear-gradient(120deg,#1f2937,#0b4a6f);
  color:#fff;
  padding:5rem 0 4.5rem;
}

.tt-hero h1{
  font-weight:700;
  letter-spacing:-.025em;
  line-height:1.08;
}

.tt-hero .lead{
  color:rgba(255,255,255,.92);
  line-height:1.6;
}

.tt-panel,
.tt-card{
  background:#fff;
  border:1px solid var(--tt-border);
  border-radius:var(--tt-radius);
  box-shadow:var(--tt-shadow);
}

.tt-panel{
  padding:2rem;
}

.tt-card{
  padding:1.5rem;
  height:100%;
}

.tt-kicker{
  color:var(--tt-blue);
  font-size:.85rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.tt-muted{
  color:var(--tt-muted);
}

.tt-lead{
  font-size:1.14rem;
  line-height:1.65;
  color:#334155;
}

.tt-list-clean{
  padding-left:1.15rem;
}

.tt-list-clean li{
  margin-bottom:.45rem;
}

.tt-cta-strip{
  background:#0f172a;
  color:#fff;
  border-radius:var(--tt-radius);
  padding:2rem;
  box-shadow:var(--tt-shadow);
}

.tt-img-frame{
  border-radius:18px;
  border:1px solid var(--tt-border);
  box-shadow:var(--tt-shadow);
  overflow:hidden;
  background:#fff;
}

.tt-img-frame img{
  display:block;
  width:100%;
  height:auto;
}

.btn{
  border-radius:999px;
  font-weight:600;
  padding:.72rem 1.15rem;
}

.btn-success{
  background-color:var(--tt-green);
  border-color:var(--tt-green);
}

.btn-outline-dark{
  border-color:#111827;
  color:#111827;
}

.btn-outline-dark:hover{
  background:#111827;
  color:#fff;
}

/* =========================
   PUBLIC FOOTER
   ========================= */

.tt-public-footer{
  background:#0f172a;
  color:#fff;
  padding:2.25rem 0;
}

.tt-public-footer a{
  color:#fff;
  text-decoration:none;
}

.tt-public-footer a:hover{
  color:#dbeafe;
  text-decoration:underline;
}

.tt-public-footer .list-inline-item{
  margin-right:1rem;
  margin-bottom:.5rem;
}

.tt-public-footer small,
.tt-public-footer .small{
  color:rgba(255,255,255,.75);
}

.tt-footer-light{
  background:#fff;
  border-top:1px solid var(--tt-border);
  color:var(--tt-ink);
}

.tt-footer-light a{
  color:var(--tt-ink);
}

.tt-footer-light small,
.tt-footer-light .small{
  color:var(--tt-muted);
}

/* Backwards compatible Mobirise footer correction */
.footer3 .row-copirayt .mbr-text,
.footer3 .foot-menu-item{
  font-family:"Jost",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif !important;
}

/* Utility */
.tt-max-760{ max-width:760px; }
.tt-max-900{ max-width:900px; }
.tt-max-1100{ max-width:1100px; }

@media (max-width:767.98px){
  .tt-section{ padding:3.25rem 0; }
  .tt-hero{ padding:4rem 0 3rem; }
  .tt-panel{ padding:1.35rem; }
}
