/* Astra puts branding and navigation in two primary-header sections. Let the
   branding elements take separate grid cells so both sides of SOT are equal. */
#masthead .ast-primary-header-bar .ast-builder-grid-row-no-center {
	grid-template-columns: minmax(0, 1fr) minmax(0, max-content) minmax(0, 1fr);
	align-items: center;
	gap: 0.5rem;
}

#masthead .ast-builder-grid-row-no-center > .site-header-primary-section-left {
	display: contents;
}

#masthead .ast-builder-grid-row-no-center > .site-header-primary-section-left > [data-section="title_tagline"] {
	grid-area: 1 / 1;
	justify-self: start;
	min-width: 0;
	max-width: 100%;
	padding: 0;
}

#masthead .ast-builder-grid-row-no-center .tagatrans-brand-supplier {
	grid-area: 1 / 2;
	justify-self: center;
	padding-inline: var(--tagatrans-card-inset, 0.55rem);
}

#masthead .ast-builder-grid-row-no-center > .site-header-primary-section-right {
	grid-area: 1 / 3;
	min-width: 0;
	justify-content: flex-end;
}

.site-branding .tagatrans-brand-host,
.tagatrans-brand-footer__tct img,
.tagatrans-brand-footer__sot img {
	box-sizing: border-box;
	max-width: 100%;
	background: #142331;
	border: 1px solid #48596a;
	border-radius: 0.5rem;
}

.site-branding .tagatrans-brand-host {
	display: inline-grid;
	place-items: center;
	vertical-align: middle;
	padding: 0.45rem 0.6rem;
}

.tagatrans-brand-host img {
	display: block;
	height: auto;
	max-width: 100%;
}

.site-branding .tagatrans-brand-host > img { width: 6rem; }

.tagatrans-brand-supplier {
	box-sizing: border-box;
	max-width: 100%;
	background: transparent;
	border: 0;
	display: grid;
	justify-items: center;
	row-gap: 0.15rem;
	margin-block: 0.32rem;
	padding-block: 0.25rem;
	font-family: system-ui, sans-serif;
	text-align: center;
	line-height: 1.2;
}

/* Frame the visible 180 × 135 artwork within its original 220 × 220 PNG. */
.tagatrans-brand__sot {
	position: relative;
	display: block;
	width: clamp(96px, 9.5vw, 138px);
	max-width: 100%;
	aspect-ratio: 4 / 3;
}
.tagatrans-brand__sot img {
	position: absolute;
	left: 50%;
	top: 50%;
	display: block;
	width: 119.5%;
	max-width: none;
	height: auto;
	transform: translate(-51.36%, -51.59%);
	filter: drop-shadow(0 1px 1px #101923) drop-shadow(0 0 1px #fff);
	pointer-events: none;
}

.tagatrans-brand__sites {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	column-gap: 0.75rem;
	max-width: 100%;
	min-width: 0;
}

.tagatrans-brand-supplier .tagatrans-brand__sites a {
	display: grid;
	align-items: center;
	max-width: 100%;
	min-height: 24px;
	color: #112938;
	text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
	font: 650 max(12px, 0.82rem)/1.22 system-ui, sans-serif;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	overflow-wrap: anywhere;
}

.ast-theme-transparent-header .tagatrans-brand-supplier .tagatrans-brand__sites a {
	color: #fff;
	text-shadow: -1px -1px 0 #101923, 1px -1px 0 #101923, -1px 1px 0 #101923, 1px 1px 0 #101923;
}

.tagatrans-brand__sites a:hover { text-decoration-thickness: 2px; }
.site-branding a.tagatrans-brand-host:focus-visible,
.tagatrans-brand-supplier a:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 1px;
	box-shadow: 0 0 0 4px #07566b;
}

@media (max-width: 1100px) {
	#ast-desktop-header .tagatrans-brand__sites { flex-direction: column; }
}

@media (max-width: 1200px) {
	#ast-desktop-header .main-header-menu > .menu-item > .menu-link {
		padding-inline: 0.55rem;
	}
}

#ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row-no-center {
	grid-template-columns: minmax(0, 1fr) minmax(0, min(48%, 17rem)) minmax(0, 1fr);
}

#ast-mobile-header .site-branding { padding-block: 0.3rem; }

@media (max-width: 544px) {
	#ast-mobile-header .ast-primary-header-bar .ast-builder-grid-row-no-center {
		grid-template-columns: minmax(0, 1fr) minmax(0, 53%) minmax(0, 1fr);
		gap: 4px;
	}
	.site-branding .tagatrans-brand-host { grid-template-columns: minmax(0, 1fr); padding: 0.3rem; }
	#ast-mobile-header .site-branding .tagatrans-brand-host > img { width: 4.65rem; max-width: 100%; }
	.tagatrans-brand-supplier { --tagatrans-card-inset: 0.25rem; }
	.tagatrans-brand__sites { flex-direction: column; column-gap: 0; }
}

.tagatrans-brand-footer {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: end;
	gap: 1rem;
	max-width: 1200px;
	margin: 0 auto 1.5rem;
	padding: 1.25rem 0;
	border-block: 1px solid #39414d;
}

.tagatrans-brand-footer a {
	display: grid;
	justify-items: center;
	gap: 0.5rem;
	max-width: 100%;
	color: #9edfff;
	font: 650 0.9rem/1.3 system-ui, sans-serif;
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 0.18em;
	overflow-wrap: anywhere;
}

.tagatrans-brand-footer img {
	display: block;
	height: auto;
	max-width: 100%;
}

.tagatrans-brand-footer__tct { justify-self: start; }
.tagatrans-brand-footer__sot { justify-self: center; }
.tagatrans-brand-footer__qr  { justify-self: end; }

.tagatrans-brand-footer__tct img { width: 8rem; padding: 0.45rem 0.6rem; }
.tagatrans-brand-footer__sot img { width: 5rem; padding: 0.3rem; }

.tagatrans-brand-footer__qr img {
	width: 111px;
	image-rendering: pixelated;
}

.tagatrans-brand-footer a:hover,
.tagatrans-brand-footer a:focus-visible {
	color: white;
}

.tagatrans-brand-footer a:focus-visible {
	outline: 2px solid #9edfff;
	outline-offset: 3px;
}

@media (max-width: 480px) {
	.tagatrans-brand-footer {
		grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
		align-items: center;
	}
	.tagatrans-brand-footer__tct,
	.tagatrans-brand-footer__sot {
		grid-column: 1;
		justify-self: stretch;
	}
	.tagatrans-brand-footer__sot img { width: 3rem; }
	.tagatrans-brand-footer__qr {
		grid-column: 2;
		grid-row: 1 / span 2;
	}
}

/* Solutions Office Taga — recrutare șoferi */
#tagatrans-footer-recruitment {
  grid-column: 1 / -1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  max-width: 100%;
  border-radius: 12px;
  text-decoration: none;
  touch-action: manipulation;
}

#tagatrans-footer-recruitment .tagatrans-recruitment-driver {
  width: clamp(48px, 5vw, 64px);
  height: auto;
}

#tagatrans-footer-recruitment .tagatrans-recruitment-picture {
  display: block;
  flex: none;
}

#tagatrans-footer-recruitment .tagatrans-recruitment-label {
  --driver-ink: #08392f;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 46px;
  padding: .65rem .95rem;
  border: 1px solid #11a782;
  border-radius: 12px;
  background: linear-gradient(115deg, #b2f8d8, #5de1c5);
  color: var(--driver-ink);
  box-shadow: inset 0 1px 0 #d2ffe7, 0 3px 0 #17725d;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(34, 185, 139, .24);
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}

/* Steering wheel and direction indicator are purely decorative. */
#tagatrans-footer-recruitment .tagatrans-recruitment-label::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid currentColor;
  border-radius: 50%;
  background:
    radial-gradient(circle, currentColor 0 23%, transparent 25%),
    conic-gradient(transparent 0deg 64deg, currentColor 64deg 78deg,
      transparent 78deg 174deg, currentColor 174deg 186deg,
      transparent 186deg 282deg, currentColor 282deg 296deg, transparent 296deg);
}

#tagatrans-footer-recruitment .tagatrans-recruitment-label::after {
  content: "";
  flex: none;
  width: .45rem;
  height: .45rem;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  transform: rotate(45deg);
}

@media (hover: hover) {
  #tagatrans-footer-recruitment:hover .tagatrans-recruitment-label {
    background: linear-gradient(115deg, #c6ffe4, #76edd1);
    box-shadow: inset 0 1px 0 #e4fff0, 0 4px 0 #17725d;
    transform: translateY(-1px);
  }
}

#tagatrans-footer-recruitment:focus-visible {
  outline: 3px solid #1478bd;
  outline-offset: 2px;
  box-shadow: 0 0 0 2px #fff, 0 3px 0 #17725d;
}

#tagatrans-footer-recruitment:active .tagatrans-recruitment-label {
  background: #42ccaa;
  box-shadow: inset 0 2px 3px rgba(8, 57, 47, .27);
  transform: translateY(2px);
  transition-duration: 0s;
}

@media (prefers-reduced-motion: reduce) {
  #tagatrans-footer-recruitment .tagatrans-recruitment-label,
  #tagatrans-footer-recruitment:hover .tagatrans-recruitment-label,
  #tagatrans-footer-recruitment:active .tagatrans-recruitment-label { transform: none; transition: none; }
}

@media (forced-colors: active) {
  #tagatrans-footer-recruitment .tagatrans-recruitment-label { border: 2px solid LinkText; }
  .tagatrans-brand-supplier .tagatrans-brand__sites a { text-shadow: none; }
  #tagatrans-footer-recruitment:focus-visible { outline-color: Highlight; }
  #tagatrans-footer-recruitment:active .tagatrans-recruitment-label { border-style: inset; }
}
